User:WitchyTwink/global.css

addHeadItem( 'viewport',			''		); } }

class EruditeTemplate extends BaseTemplate { /**	 * Like msgWiki but it ensures edit section links are never shown. *	 * Needed for Mediawiki 1.19 & 1.20 due to bug 36975: * https://bugzilla.wikimedia.org/show_bug.cgi?id=36975 *	 * @param $message string Name of wikitext message to return * @return string */	function msgWikiNoEdit( $message ) { global $wgOut; $wgParser = MediaWiki\MediaWikiServices::getInstance->getParser;

$popts = new ParserOptions( $this->getSkin->getUser ); $text = wfMessage( $message )->text; return $wgParser->parse( $text, $wgOut->getTitle, $popts ) ->getText( [ 'enableSectionEditLinks' => false ] ); }

/**	 * Template filter callback for this 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. */	public function execute { ?>

msg( 'erudite-skiptocontent' ) ?>msg( 'comma-separator' ) ?> msg( 'erudite-skiptosearch' ) ?>

data['nav_urls']['mainpage']['href'] ) ?>" title="text( 'sitename' ); ?>" rel="home">text( 'sitename' ); ?> msg( 'tagline' ) ?>

Menu <?php if( array_key_exists( 'navigation', $this->data['sidebar'] ) ) { echo "<ul id='menu'>\n"; foreach( $this->data['sidebar']['navigation'] as $item ) { printf( '<li id="menu-item-%s">', Sanitizer::escapeIdForAttribute( $item['id'] ) ); printf( '%s</a>', htmlspecialchars( $item['href'] ), htmlspecialchars( $item['text'] ) ); echo "</li>\n"; }					echo "</ul>\n"; }			?>

<?php foreach( array( 'newtalk', 'sitenotice', 'undelete' ) as $msg ) { if( $this->data[$msg] ) { echo "<div id='$msg' class='message'> "; $this->html( $msg ); echo ' '; }			}		?>

<?php foreach ( $this->data['content_actions'] as $key => $tab ) { echo $this->makeListItem( $key, $tab, array( 'tag' => 'span' ) ); echo ' | '; }			?>

<?php $this->html( 'title' ); ?> <?php if ( $this->data['subtitle'] ) { ?> <?php $this->html( 'subtitle' ) ?> <?php } ?>

<?php $this->html( 'bodytext' ) ?> <?php $this->html( 'dataAfterContent' ); ?>

<?php foreach ( $this->getFooterLinks as $category => $links ) { if ( $category === 'info' ) { foreach ( $links as $key ) { echo ' '; $this->html( $key ); echo ' '; }						} else { echo '<ul>'; foreach ( $links as $key ) { echo '<li>'; $this->html( $key ); echo '</li>'; }							echo '</ul>'; }					}				?>

<?php $this->html( 'catlinks' ); ?>

<ul>

<li id="search" class="widget"> <?php $this->msg( 'search' ) ?> <form action="<?php $this->text( 'wgScript' ); ?>" id="searchform"> <input type='hidden' name="title" value="<?php $this->text( 'searchtitle' ) ?>" /> <?php echo $this->makeSearchInput( array( 'type' => 'text', 'id' => 's' ) ); ?> <?php echo $this->makeSearchButton( 'go', array( 'value' => $this->msg( 'searchbutton' ), 'class' => "searchButton", 'id'   => "searchsubmit", ) ); ?>			</li>

<?php if( $this->data['language_urls'] ) { ?> <li> <?php $this->msg( 'otherlanguages' ) ?> <ul> <?php foreach( $this->data['language_urls'] as $key => $langlink ) { echo $this->makeListItem( $key, $langlink ); }					?>					</ul> </li> <?php } ?>

<?php if( $this->getPersonalTools ) { ?> <?php $this->msg( 'personaltools' ) ?> <ul> <?php foreach ( $this->getPersonalTools as $key => $item ) { echo $this->makeListItem( $key, $item ); }					?>					</ul> </li> <?php } ?>

<?php echo $this->msgWikiNoEdit( 'erudite-extracontent-column1' ); ?> </li>

</ul>

<ul>

<li id="toolbox" class="widget"> <?php $this->msg( 'toolbox' ) ?> <ul> <?php $toolbox = $this->get('sidebar')['TOOLBOX']; foreach ( $toolbox as $key => $tbitem ) { echo $this->makeListItem( $key, $tbitem ); }					// Avoid PHP 7.1 warning of passing $this by reference $skin = $this; Hooks::run( 'SkinTemplateToolboxEnd', array( &$skin ) ); ?>				</ul> </li>

<?php foreach( $this->data['sidebar'] as $name => $menu ) { /* standard menus are already handled elsewhere */ if( empty($menu) ||						$name == 'navigation' ||						$name == 'SEARCH' ||						$name == 'LANGUAGES' ||						$name == 'TOOLBOX'					) { continue; }					echo "<li class='widget'>"; $msgObj = wfMessage( $name ); $heading = $msgObj->exists ? $msgObj->text : $name; printf( ' %s ', htmlspecialchars( $heading ) ); echo "<ul>\n"; foreach( $menu as $item ) { printf( '<li>%s</a></li>' . "\n",							htmlspecialchars( $item['href'] ),							htmlspecialchars( $item['text'] ?? '' )						);					}					echo "</ul></li>\n"; }			?>

<?php echo $this->msgWikiNoEdit( 'erudite-extracontent-column2' ); ?> </li>

</ul>

<ul>

<?php echo Html::element( 'img', array( 'id' => 'logo', 'src' => $this->data['logopath'], 'alt' => '' ) ); ?> </li>

<?php echo $this->msgWikiNoEdit( 'erudite-extracontent-column3' ); ?> </li>

</ul>

<?php } }