User:ITAC/pixeled.js

skinname = 'pixeled'; $this->stylename = 'pixeled'; $this->template = 'pixeledTemplate'; } }

/** * @todo document * @addtogroup Skins */ class pixeledTemplate extends QuickTemplate { /**	 * Template filter callback for Pixeled 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 { global $wgUser; $skin = $wgUser->getSkin;

// Suppress warnings to prevent notices about missing indexes in $this->data wfSuppressWarnings;

?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> text('xhtmldefaultnamespace') ?>" data['xhtmlnamespaces'] as $tag => $ns) { ?>xmlns:xml:lang="text('lang') ?>" lang="text('lang') ?>" dir="text('dir') ?>"> text('mimetype') ?>; charset=text('charset') ?>" /> html('headlinks') ?> text('pagetitle') ?> /*<![CDATA[*/ @import "text('stylepath') ?>/common/shared.css?"; @import "text('stylepath') ?>/text('stylename') ?>/style.css?<?php echo $GLOBALS['wgStyleVersion'] ?>"; /*]]>*/ 		<link rel="stylesheet" type="text/css" <?php if(empty($this->data['printable']) ) { ?>media="print"<?php } ?> href="<?php $this->text('stylepath') ?>/common/commonPrint.css?<?php echo $GLOBALS['wgStyleVersion'] ?>" /> <meta http-equiv="imagetoolbar" content="no" /> <?php print Skin::makeGlobalVariablesScript( $this->data ); ?> <script type="<?php $this->text('jsmimetype') ?>" src="<?php $this->text('stylepath' ) ?>/common/wikibits.js?<?php echo $GLOBALS['wgStyleVersion'] ?>"> <?php	if($this->data['jsvarurl' ]) { ?> <script type="<?php $this->text('jsmimetype') ?>" src="<?php $this->text('jsvarurl' ) ?>"> <?php	} ?> <?php	if($this->data['pagecss'  ]) { ?> <style type="text/css"><?php $this->html('pagecss'  ) ?> <?php	} if($this->data['usercss'  ]) { ?> <style type="text/css"><?php $this->html('usercss'  ) ?> <?php	} if($this->data['userjs'   ]) { ?> <script type="<?php $this->text('jsmimetype') ?>" src="<?php $this->text('userjs' ) ?>"> <?php	} if($this->data['userjsprev']) { ?> <script type="<?php $this->text('jsmimetype') ?>"><?php $this->html('userjsprev') ?> <?php	} if($this->data['trackbackhtml']) print $this->data['trackbackhtml']; ?> <?php $this->html('headscripts') ?> <style type="text/css"><?php if ($wgUser->getOption('justify')) { $s .= "#article, #bodyContent { text-align: justify; }\n"; }		if (!$wgUser->getOption('showtoc')) { $s .= "#toc { display: none; }\n"; }		if (!$wgUser->getOption('editsection')) { $s .= ".editsection { display: none; }\n"; }		echo $s; ?>

<a href="/"><?php $this->msg('sitetitle') ?></a> <?php $this->msg('sitesubtitle') ?> <ul> <?php 			foreach($this->data['personal_urls'] as $key => $item) { ?> <li id="pt-<?php echo Sanitizer::escapeId($key) ?>"<?php if ($item['active']) { ?> class="active"<?php } ?>><a href="<?php				echo htmlspecialchars($item['href']) ?>"<?php echo $skin->tooltipAndAccesskey('pt-'.$key) ?><?php if(!empty($item['class'])) { ?> class="<?php				echo htmlspecialchars($item['class']) ?>"<?php } ?>><?php echo htmlspecialchars($item['text']) ?></a></li> <?php			} ?> </ul>

<?php			foreach($this->data['content_actions'] as $key => $tab) { ?> <li id="ca-<?php echo Sanitizer::escapeId($key) ?>"<?php if($tab['class']) { ?> class="<?php echo htmlspecialchars($tab['class']) ?>"<?php } ?>><a href="<?php echo htmlspecialchars($tab['href']) ?>"<?php echo $skin->tooltipAndAccesskey('ca-'.$key) ?>><?php echo htmlspecialchars($tab['text']) ?></a></li> <?php			 } ?> </ul>

<?php $this->data['displaytitle']!=""?$this->html('title'):$this->text('title') ?> <?php $this->html('bodytext') ?>

<div id="sidebar_full"> <ul> <li> <label for="searchInput"><?php $this->msg('search') ?> <form action="<?php $this->text('searchaction') ?>" id="searchform"> <input id="searchInput" name="search" type="text"<?php echo $skin->tooltipAndAccesskey('search'); if( isset( $this->data['search'] ) ) { ?> value="<?php $this->text('search') ?>"<?php } ?> /> <input type="submit" name="go" class="searchButton" id="searchGoButton"	value="<?php $this->msg('searcharticle') ?>" /> <input type="submit" name="fulltext" class="searchButton" id="mw-searchButton" value="<?php $this->msg('searchbutton') ?>" /> </li> <?php if($this->data['catlinks']) { ?> <li> <?php      $this->html('catlinks') ?> </li> <?php } ?> </ul>

<?php $sidebar = $this->data['sidebar']; foreach ($sidebar as $boxName => $cont) { if ( $boxName == 'navigation' ) { ?>			<div id="sidebar_left"> <ul> <li> <?php $out = wfMsg( $boxName ); if (wfEmptyMsg($boxName, $out)) echo $boxName; else echo $out; ?> <ul> <?php foreach($cont as $key => $val) { ?> <li id="<?php echo Sanitizer::escapeId($val['id']) ?>"<?php if ( $val['active'] ) { ?> class="active" <?php } ?>><a href="<?php echo htmlspecialchars($val['href']) ?>"<?php echo $skin->tooltipAndAccesskey($val['id']) ?>><?php echo htmlspecialchars($val['text']) ?></a></li> <?php } ?> </ul> </li> </ul> <?php	} } ?>

<div id="sidebar_right"> <ul> <li> <?php $this->msg('toolbox') ?> <ul> <?php if($this->data['notspecialpage']) { ?> <li id="t-whatlinkshere"><a href="<?php								echo htmlspecialchars($this->data['nav_urls']['whatlinkshere']['href'])								?>"<?php echo $skin->tooltipAndAccesskey('t-whatlinkshere') ?>><?php $this->msg('whatlinkshere') ?></a></li> <?php if( $this->data['nav_urls']['recentchangeslinked'] ) { ?> <li id="t-recentchangeslinked"><a href="<?php								echo htmlspecialchars($this->data['nav_urls']['recentchangeslinked']['href'])								?>"<?php echo $skin->tooltipAndAccesskey('t-recentchangeslinked') ?>><?php $this->msg('recentchangeslinked') ?></a></li> <?php }	}	if(isset($this->data['nav_urls']['trackbacklink'])) { ?> <li id="t-trackbacklink"><a href="<?php								echo htmlspecialchars($this->data['nav_urls']['trackbacklink']['href'])								?>"<?php echo $skin->tooltipAndAccesskey('t-trackbacklink') ?>><?php $this->msg('trackbacklink') ?></a></li> <?php }	if($this->data['feeds']) { ?> <?php foreach($this->data['feeds'] as $key => $feed) { ?><span id="feed-<?php echo Sanitizer::escapeId($key) ?>"><a href="<?php								echo htmlspecialchars($feed['href']) ?>"<?php echo $skin->tooltipAndAccesskey('feed-'.$key) ?>><?php echo htmlspecialchars($feed['text'])?></a> <?php } ?>								</li> <?php }

foreach( array('contributions', 'log', 'blockip', 'emailuser', 'upload', 'specialpages') as $special ) {

if($this->data['nav_urls'][$special]) { ?><li id="t-<?php echo $special ?>"><a href="<?php echo htmlspecialchars($this->data['nav_urls'][$special]['href'])				?>"<?php echo $skin->tooltipAndAccesskey('t-'.$special) ?>><?php $this->msg($special) ?></a></li> <?php		} }

if(!empty($this->data['nav_urls']['print']['href'])) { ?> <li id="t-print"><a href="<?php echo htmlspecialchars($this->data['nav_urls']['print']['href'])				?>"<?php echo $skin->tooltipAndAccesskey('t-print') ?>><?php $this->msg('printableversion') ?></a></li><?php }

if(!empty($this->data['nav_urls']['permalink']['href'])) { ?> <li id="t-permalink"><a href="<?php echo htmlspecialchars($this->data['nav_urls']['permalink']['href'])				?>"<?php echo $skin->tooltipAndAccesskey('t-permalink') ?>><?php $this->msg('permalink') ?></a></li><?php } elseif ($this->data['nav_urls']['permalink']['href'] === '') { ?> <li id="t-ispermalink"<?php echo $skin->tooltip('t-ispermalink') ?>><?php $this->msg('permalink') ?></li><?php }

wfRunHooks( 'PixeledTemplateToolboxEnd', array( &$this ) ); ?>							</ul> </li> </ul>

Looking for something? Use the form below to search the wiki: <form action="<?php $this->text('searchaction') ?>" id="searchform"> <input id="searchInput" name="search" type="text"<?php echo $skin->tooltipAndAccesskey('search'); if( isset( $this->data['search'] ) ) { ?> value="<?php $this->text('search') ?>"<?php } ?> /> <input type="submit" name="go" class="searchButton" id="searchGoButton"	value="<?php $this->msg('searcharticle') ?>" /> <input type="submit" name="fulltext" class="searchButton" id="mw-searchButton" value="<?php $this->msg('searchbutton') ?>" /> Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it! <?php //$sidebar = $this->data['sidebar']; foreach ($sidebar as $boxName => $cont) { if ( $boxName == 'navigation' ) { ?>			 <?php $out = wfMsg( $boxName ); if (wfEmptyMsg($boxName, $out)) echo $boxName; else echo $out; ?> <ul> <?php foreach($cont as $key => $val) { ?> <li id="<?php echo Sanitizer::escapeId($val['id']) ?>"<?php if ( $val['active'] ) { ?> class="active" <?php } ?>><a href="<?php echo htmlspecialchars($val['href']) ?>"<?php echo $skin->tooltipAndAccesskey($val['id']) ?>><?php echo htmlspecialchars($val['text']) ?></a></li> <?php } ?> </ul> <?php	} } ?>			 <?php $this->msg('toolbox') ?> <ul> <?php if($this->data['notspecialpage']) { ?> <li id="t-whatlinkshere"><a href="<?php				echo htmlspecialchars($this->data['nav_urls']['whatlinkshere']['href'])				?>"<?php echo $skin->tooltipAndAccesskey('t-whatlinkshere') ?>><?php $this->msg('whatlinkshere') ?></a></li> <?php if( $this->data['nav_urls']['recentchangeslinked'] ) { ?> <li id="t-recentchangeslinked"><a href="<?php				echo htmlspecialchars($this->data['nav_urls']['recentchangeslinked']['href'])				?>"<?php echo $skin->tooltipAndAccesskey('t-recentchangeslinked') ?>><?php $this->msg('recentchangeslinked') ?></a></li> <?php 			} }		if(isset($this->data['nav_urls']['trackbacklink'])) { ?> <li id="t-trackbacklink"><a href="<?php				echo htmlspecialchars($this->data['nav_urls']['trackbacklink']['href'])				?>"<?php echo $skin->tooltipAndAccesskey('t-trackbacklink') ?>><?php $this->msg('trackbacklink') ?></a></li> <?php 	} if($this->data['feeds']) { ?> <?php foreach($this->data['feeds'] as $key => $feed) { ?><span id="feed-<?php echo Sanitizer::escapeId($key) ?>"><a href="<?php				echo htmlspecialchars($feed['href']) ?>"<?php echo $skin->tooltipAndAccesskey('feed-'.$key) ?>><?php echo htmlspecialchars($feed['text'])?></a> <?php } ?></li><?php }

foreach( array('contributions', 'log', 'blockip', 'emailuser', 'upload', 'specialpages') as $special ) {

if($this->data['nav_urls'][$special]) { ?><li id="t-<?php echo $special ?>"><a href="<?php echo htmlspecialchars($this->data['nav_urls'][$special]['href'])				?>"<?php echo $skin->tooltipAndAccesskey('t-'.$special) ?>><?php $this->msg($special) ?></a></li> <?php			} }

if(!empty($this->data['nav_urls']['print']['href'])) { ?> <li id="t-print"><a href="<?php echo htmlspecialchars($this->data['nav_urls']['print']['href'])				?>"<?php echo $skin->tooltipAndAccesskey('t-print') ?>><?php $this->msg('printableversion') ?></a></li><?php }

if(!empty($this->data['nav_urls']['permalink']['href'])) { ?> <li id="t-permalink"><a href="<?php echo htmlspecialchars($this->data['nav_urls']['permalink']['href'])				?>"<?php echo $skin->tooltipAndAccesskey('t-permalink') ?>><?php $this->msg('permalink') ?></a></li><?php } elseif ($this->data['nav_urls']['permalink']['href'] === '') { ?> <li id="t-ispermalink"<?php echo $skin->tooltip('t-ispermalink') ?>><?php $this->msg('permalink') ?></li><?php }

wfRunHooks( 'PixeledTemplateToolboxEnd', array( &$this ) ); ?>			</ul>

<?php $this->html('bottomscripts'); /* JS call to runBodyOnloadHook */ ?> <?php $this->html('reporttime') ?> <?php if ( $this->data['debug'] ): ?>

<?php endif; ?> <?php wfRestoreWarnings; } // end of execute method } // end of class ?>