getFuzzyBool( 'debug' ) ? '' : '.min'; $out->addHeadItem( 'csshover', '" ); $out->addModuleScripts( 'skins.cppreference2' ); } /** * Load skin and user CSS files in the correct order * fixes bug 22916 * @param $out OutputPage object */ function setupSkinUserCss( OutputPage $out ){ parent::setupSkinUserCss( $out ); $out->addModuleStyles( 'skins.cppreference2' ); } } /** * QuickTemplate class for Cppreference2 skin * @ingroup Skins */ class Cppreference2Template extends BaseTemplate { /* Members */ /** * @var Skin Cached skin object */ var $skin; /* Functions */ /** * Outputs the entire contents of the (X)HTML page */ public function execute() { global $wgLang, $wgVectorUseIconWatch; $this->skin = $this->data['skin']; // Build additional attributes for navigation urls //$nav = $this->skin->buildNavigationUrls(); $nav = $this->data['content_navigation']; if ( $wgVectorUseIconWatch ) { $mode = $this->skin->getTitle()->userIsWatching() ? 'unwatch' : 'watch'; if ( isset( $nav['actions'][$mode] ) ) { $nav['views'][$mode] = $nav['actions'][$mode]; $nav['views'][$mode]['class'] = rtrim( 'icon ' . $nav['views'][$mode]['class'], ' ' ); $nav['views'][$mode]['primary'] = true; unset( $nav['actions'][$mode] ); } } $xmlID = ''; foreach ( $nav as $section => $links ) { foreach ( $links as $key => $link ) { if ( $section == 'views' && !( isset( $link['primary'] ) && $link['primary'] ) ) { $link['class'] = rtrim( 'collapsible ' . $link['class'], ' ' ); } $xmlID = isset( $link['id'] ) ? $link['id'] : 'ca-' . $xmlID; $nav[$section][$key]['attributes'] = ' id="' . Sanitizer::escapeId( $xmlID ) . '"'; if ( $link['class'] ) { $nav[$section][$key]['attributes'] .= ' class="' . htmlspecialchars( $link['class'] ) . '"'; unset( $nav[$section][$key]['class'] ); } if ( isset( $link['tooltiponly'] ) && $link['tooltiponly'] ) { $nav[$section][$key]['key'] = Linker::tooltip( $xmlID ); } else { $nav[$section][$key]['key'] = Xml::expandAttributes( Linker::tooltipAndAccesskeyAttribs( $xmlID ) ); } } } $this->data['namespace_urls'] = $nav['namespaces']; $this->data['view_urls'] = $nav['views']; $this->data['action_urls'] = $nav['actions']; $this->data['variant_urls'] = $nav['variants']; // Reverse horizontally rendered navigation elements if ( $wgLang->isRTL() ) { $this->data['view_urls'] = array_reverse( $this->data['view_urls'] ); $this->data['namespace_urls'] = array_reverse( $this->data['namespace_urls'] ); } // Output HTML Page $this->html( 'headelement' ); global $Cppreference2SkinRootLink; $root_link = '/'; if (isset($Cppreference2SkinRootLink)) { $root_link = htmlspecialchars($Cppreference2SkinRootLink); } ?>
renderNavigation( 'PERSONAL' ); ?>
renderNavigation( array( 'NAMESPACES', 'VARIANTS' ) ); ?>
renderNavigation( array( 'VIEWS', 'ACTIONS' ) ); ?>
data['sitenotice'] ): ?>
html( 'sitenotice' ) ?>

html( 'title' ) ?>

data['isarticle'] ): ?>
msg( 'tagline' ) ?>
html( 'userlangattributes' ) ?>>html( 'subtitle' ) ?>
data['undelete'] ): ?>
html( 'undelete' ) ?>
data['newtalk'] ): ?>
html( 'newtalk' ) ?>
html( 'bodycontent' ) ?> data['printfooter'] ): ?>
html( 'printfooter' ); ?>
data['catlinks'] ): ?> html( 'catlinks' ); ?> data['dataAfterContent'] ): ?> html( 'dataAfterContent' ); ?>
html( 'debughtml' ); ?>
printTrail(); ?> getToolbox(); $msg = 'toolbox'; $msg_obj = wfMessage( $msg ); $message = htmlspecialchars($msg_obj->exists() ? $msg_obj->text() : $msg); ?>
data['sidebar']['navigation']; $msg = 'navigation'; $msg_obj = wfMessage( $msg ); $message = htmlspecialchars($msg_obj->exists() ? $msg_obj->text() : $msg); ?>
data['language_urls']; $msg = 'otherlanguages'; $msg_obj = wfMessage( $msg ); $message = htmlspecialchars($msg_obj->exists() ? $msg_obj->text() : $msg); ?>
data['language_urls'] ) { $this->renderLanguages(); } foreach( $this->getFooterLinks() as $category => $links ): ?> getFooterIcons("icononly"); if ( count( $footericons ) > 0 ): ?>
isRTL() ) { $elements = array_reverse( $elements ); } // Render elements foreach ( $elements as $name => $element ) { echo "\n\n"; switch ( $element ) { case 'NAMESPACES': ?>
msg( 'namespaces' ) ?>
html( 'userlangattributes' ) ?>> data['namespace_urls'] as $link ): ?>
  • >>
  • data['variant_urls'] as $link ): ?>

    msg( 'variants' ) ?>
    msg('views') ?>
    html('userlangattributes') ?>> data['view_urls'] as $link ): ?> >>' : htmlspecialchars( $link['text'] ); } ?>
    msg( 'actions' ) ?>
    getPersonalTools(); $item = reset($tools); $key = key($tools); array_shift($tools); echo $this->makeListItem( $key, $item, array( 'tag' => 'span' ) ); if ( count( $tools ) > 0 ) { ?>
    \n"; } } }