SpecialPage::removePage( "Asksql" );
}
+# Placeholders in case of DB error
+$wgTitle = Title::newFromText( wfMsg( "badtitle" ) );
+$wgArticle = new Article($wgTitle);
+
# Extension setup functions
# Entries should be added to this variable during the inclusion
# of the extension file. This allows the extension to perform
global $wgUser, $wgOut, $wgSiteNotice;
if( $wgSiteNotice ) {
- $note = "\n<div id='notice' style='font-weight: bold; color: red; text-align: center'>$wgSiteNotice</div>\n";
+ $note = "\n<div id='siteNotice'>$wgSiteNotice</div>\n";
} else {
$note = "";
}
global $wgTitle, $wgArticle, $wgUser, $wgLang, $wgOut;
global $wgScript, $wgStylePath, $wgLanguageCode, $wgUseNewInterlanguage;
global $wgMimeType, $wgOutputEncoding, $wgUseDatabaseMessages, $wgRequest;
- global $wgDisableCounters, $wgLogo, $action, $wgFeedClasses;
+ global $wgDisableCounters, $wgLogo, $action, $wgFeedClasses, $wgSiteNotice;
extract( $wgRequest->getValues( 'oldid', 'diff' ) );
$tpl->setRef( "debug", &$out->mDebugtext );
$tpl->set( "reporttime", $out->reportTime() );
-
+ $tpl->set( "sitenotice", $wgSiteNotice );
+
$tpl->setRef( "bodytext", &$out->mBodytext );
$language_urls = array();
h2, h3, h4, h5, h6 { margin-bottom: 0; }
small { font-size: 75%; }
+#siteNotice {
+ border: 1px solid red;
+}
+
/* debugging tool.. */
/*div{ border:1px solid #000000;}*/
+#siteNotice {
+ border: 1px solid red;
+}
+
/* Mac IE 5.0 fix; floated content turns invisible */
* > html #column-content {
td { empty-cells:show; }
td.bottom { border-top: 1px solid gray; }
td.top { border-bottom: 1px solid gray; }
+
+
+#siteNotice {
+ border: 1px solid red;
+}
<div tal:condition="catlinks" id="catlinks" tal:content="structure catlinks"></div>
<h3 id="siteSub" i18n:translate="string:fromwikipedia">From Wikipedia, the free encyclopedia.</h3>
<div id="contentSub" tal:content="structure subtitle"></div>
+ <div id="siteNotice" tal:condition="sitenotice" tal:content="structure sitenotice"></div>
<!-- <esi:include src="userxy/message"/> cached per user, purged on new message-->
<div tal:condition="newtalk" class="usermessage" tal:content="structure newtalk"></div>
<!-- the content area is cached with the remaining inexpensive skeleton, one version for all.