html("specialpageattributes") ?>>
+
data['sitenotice']) { ?>
html('sitenotice') ?>
-
html('title') ?>
-
-
msg('tagline') ?>
+
html('title') ?>
+
+
msg('tagline') ?>
html('userlangattributes') ?>>html('subtitle') ?>
data['undelete']) { ?>
html('undelete') ?>
data['newtalk'] ) { ?>
html('newtalk') ?>
data['showjumplinks']) { ?>
-
+
html('bodytext') ?>
@@ -94,124 +89,99 @@ class MonoBookTemplate extends QuickTemplate {
html('userlangattributes') ?>>
-
+cactions(); ?>
msg('personaltools') ?>
html('userlangattributes') ?>>
-data['personal_urls'] as $key => $item) { ?>
- - " class="active">tooltipAndAccesskey('pt-'.$key) ?> class="">
-
+getPersonalTools() as $key => $item) { ?>
+ makeListItem($key, $item); ?>
+
+
-
data['sidebar'];
- if ( !isset( $sidebar['SEARCH'] ) ) $sidebar['SEARCH'] = true;
- if ( !isset( $sidebar['TOOLBOX'] ) ) $sidebar['TOOLBOX'] = true;
- if ( !isset( $sidebar['LANGUAGES'] ) ) $sidebar['LANGUAGES'] = true;
- foreach ($sidebar as $boxName => $cont) {
- if ( $boxName == 'SEARCH' ) {
- $this->searchBox();
- } elseif ( $boxName == 'TOOLBOX' ) {
- $this->toolbox();
- } elseif ( $boxName == 'LANGUAGES' ) {
- $this->languageBox();
- } else {
- $this->customBox( $boxName, $cont );
- }
- }
+ $this->renderPortals( $this->data['sidebar'] );
?>
+getFooterIcons( "icononly" );
+ $validFooterLinks = $this->getFooterLinks( "flat" ); // Additional footer links
+
+ if ( count( $validFooterIcons ) + count( $validFooterLinks ) > 0 ) { ?>
';
+ } else {
+ $footerEnd = '';
+ }
+ foreach ( $validFooterIcons as $blockName => $footerIcons ) { ?>
+
+
+ getSkin()->makeFooterIcon( $icon ); ?>
+
data['copyrightico']) { ?>
-
html('copyrightico') ?>
+?>
+
data[$aLink] ) && $this->data[$aLink] ) {
- $validFooterLinks[] = $aLink;
- }
- }
if ( count( $validFooterLinks ) > 0 ) {
?>
data[$aLink] ) && $this->data[$aLink] ) {
-?> - html($aLink) ?>
-
+ - html($aLink) ?>
+
-
-
-html('bottomscripts'); /* JS call to runBodyOnloadHook */ ?>
-html('reporttime') ?>
-data['debug'] ): ?>
-
-
+printTrail();
echo Html::closeElement( 'body' );
echo Html::closeElement( 'html' );
wfRestoreWarnings();
} // end of execute() method
/*************************************************************************************************/
+
+ /**
+ * @param $sidebar array
+ */
+ protected function renderPortals( $sidebar ) {
+ if ( !isset( $sidebar['SEARCH'] ) ) $sidebar['SEARCH'] = true;
+ if ( !isset( $sidebar['TOOLBOX'] ) ) $sidebar['TOOLBOX'] = true;
+ if ( !isset( $sidebar['LANGUAGES'] ) ) $sidebar['LANGUAGES'] = true;
+
+ foreach( $sidebar as $boxName => $content ) {
+ if ( $content === false )
+ continue;
+
+ if ( $boxName == 'SEARCH' ) {
+ $this->searchBox();
+ } elseif ( $boxName == 'TOOLBOX' ) {
+ $this->toolbox();
+ } elseif ( $boxName == 'LANGUAGES' ) {
+ $this->languageBox();
+ } else {
+ $this->customBox( $boxName, $content );
+ }
+ }
+ }
+
function searchBox() {
global $wgUseTwoButtonsSearchForm;
?>
@@ -220,19 +190,15 @@ if($this->data['copyrightico']) { ?>
@@ -240,6 +206,26 @@ if($this->data['copyrightico']) { ?>
+
+
msg('views') ?>
+
+
data['content_actions'] as $key => $tab) {
+ echo '
+ ' . $this->makeListItem( $key, $tab );
+ } ?>
+
+
+
+
+
@@ -248,51 +234,13 @@ if($this->data['copyrightico']) { ?>
@@ -308,9 +256,9 @@ if($this->data['copyrightico']) { ?>
html('userlangattributes') ?>>msg('otherlanguages') ?>
-data['language_urls'] as $langlink) { ?>
-
+data['language_urls'] as $key => $langlink) { ?>
+ makeListItem($key, $langlink); ?>
+
@@ -320,17 +268,26 @@ if($this->data['copyrightico']) { ?>
}
/*************************************************************************************************/
+ /**
+ * @param $bar string
+ * @param $cont array|string
+ */
function customBox( $bar, $cont ) {
+ $portletAttribs = array( 'class' => 'generated-sidebar portlet', 'id' => Sanitizer::escapeId( "p-$bar" ) );
+ $tooltip = Linker::titleAttrib( "p-$bar" );
+ if ( $tooltip !== false ) {
+ $portletAttribs['title'] = $tooltip;
+ }
+ echo ' ' . Html::openElement( 'div', $portletAttribs );
?>
-