$wgNamespacesToBeSearchedDefault = array( -1 => 0, 0 => 1, 1 => 0,
2 => 0, 3 => 0, 4 => 0, 5 => 0, 6 => 0, 7 => 0 );
+# If set, a bold ugly notice will show up at the top of every page.
+$wgSiteNotice = "";
+
?>
#
function beforeContent()
{
- global $wgUser, $wgOut;
+ global $wgUser, $wgOut, $wgSiteNotice;
if ( $wgOut->isPrintable() ) {
$s = $this->pageTitle() . $this->pageSubtitle() . "\n";
$s .= "\n<div class='bodytext'>";
return $s;
}
- return $this->doBeforeContent();
+ if( $wgSiteNotice ) {
+ $note = "\n<div id='notice' style='font-weight: bold; color: red; text-align: center'>$wgSiteNotice</div>\n";
+ } else {
+ $note = "";
+ }
+ return $this->doBeforeContent() . $note;
}
function doBeforeContent()