skinname = 'minit'; $this->stylename = 'minit'; $this->template = 'MinitTemplate'; $this->useHeadElement = true; $out->addModuleScripts( 'skins.minit' ); } function setupSkinUserCss( OutputPage $out ) { global $wgHandheldStyle; parent::setupSkinUserCss( $out ); $out->addStyle( 'minit/main.css', 'screen' ); $out->addStyle( 'minit/960_12_col.css', 'screen' ); if ( $wgHandheldStyle ) { $out->addStyle( $wgHandheldStyle, 'handheld' ); } $out->addModuleStyles( 'skins.minit' ); } } /** * @todo document * @ingroup Skins */ class MinitTemplate extends BaseTemplate { /** * @var Skin */ var $skin; /** * Template filter callback for MonoBook skin. * Takes an associative array of data set from a SkinTemplate-based * class, and a wrapper for MediaWiki's localization database, and * outputs a formatted page. * * @access private */ function execute() { $this->skin = $this->data['skin']; // Suppress warnings to prevent notices about missing indexes in $this->data wfSuppressWarnings(); $this->html( 'headelement' ); ?>

html('title') ?>

msg('tagline') ?>
html('userlangattributes') ?>>html('subtitle') ?>
data['sitenotice']) { ?>
html('sitenotice') ?>
data['undelete']) { ?>
html('undelete') ?>
data['newtalk'] ) { ?>
html('newtalk') ?>
data['showjumplinks']) { ?> html('bodytext') ?> data['catlinks']) { $this->html('catlinks'); } ?> data['dataAfterContent']) { $this->html('dataAfterContent'); } ?>
html('userlangattributes') ?>> renderPortals( $this->data['sidebar'] ); ?>
printTrail(); echo Html::closeElement( 'body' ); echo Html::closeElement( 'html' ); wfRestoreWarnings(); } // end of execute() method /*************************************************************************************************/ 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; if ( !isset( $sidebar['VIEW'] ) ) $sidebar['VIEW'] = true; if ( !isset( $sidebar['PERSONAL'] ) ) $sidebar['PERSONAL'] = true; if ( !isset( $sidebar['RC'] ) ) $sidebar['RC'] = 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(); } elseif ( $boxName == 'PERSONAL' ) { $this->personalBox(); } elseif ( $boxName == 'VIEW' ) { $this->cactions(); } elseif ( $boxName == 'RC' ) { $this->recentChangeBox(); } else { $this->customBox( $boxName, $content ); } } } function searchBox() { global $wgUseTwoButtonsSearchForm; ?>

msg('views') ?>

    data['content_actions'] as $key => $tab) { $linkAttribs = array( 'href' => $tab['href'] ); if( isset( $tab["tooltiponly"] ) && $tab["tooltiponly"] ) { $title = Linker::titleAttrib( "ca-$key" ); if ( $title !== false ) { $linkAttribs['title'] = $title; } } else { $linkAttribs += Linker::tooltipAndAccesskeyAttribs( "ca-$key" ); } $linkHtml = Html::element( 'a', $linkAttribs, $tab['text'] ); /* Surround with a
  • */ $liAttribs = array( 'id' => Sanitizer::escapeId( "ca-$key" ) ); if( $tab['class'] ) { $liAttribs['class'] = $tab['class']; } echo ' ' . Html::rawElement( 'li', $liAttribs, $linkHtml ); } ?>

msg('personaltools') ?>

    getPersonalTools() as $key => $item ) { echo $this->makeListItem($key, $item); } ?>

Recent Changes

    array('recentchanges' => 'rc_timestamp') ); $dbr = wfGetDB( DB_SLAVE ); $rows = $dbr->select( $tables, '*', $conds, __METHOD__, array( 'ORDER BY' => 'rc_timestamp DESC', 'LIMIT' => 50 ) + $query_options, $join_conds ); $history = array(); foreach ($rows as $row) { $title = Title::makeTitle( $row->rc_namespace, $row->rc_title ); if (in_array($title, $history)) { continue; } array_push($history, $title); $str = $row->rc_title; $str = str_replace("_", " ", $str); $str = str_replace(":", ": ", $str); ?>

msg('toolbox') ?>

    getToolbox() as $key => $tbitem ) { echo $this->makeListItem($key, $tbitem); } wfRunHooks( 'MonoBookTemplateToolboxEnd', array( &$this ) ); wfRunHooks( 'SkinTemplateToolboxEnd', array( &$this, true ) ); ?>
data['language_urls'] ) { ?>
html('userlangattributes') ?>>msg('otherlanguages') ?>
    data['language_urls'] as $key => $langlink) { ?> makeListItem($key, $langlink); ?>
'generated-sidebar portlet', 'id' => Sanitizer::escapeId( "p-$bar" ) ); $tooltip = Linker::titleAttrib( "p-$bar" ); if ( $tooltip !== false ) { $portletAttribs['title'] = $tooltip; } echo ' ' . Html::openElement( 'div', $portletAttribs ); ?>

exists() ? $msg->text() : $bar ); ?>