<?php
/**
* ElOtroLado template
*
* based on MonoBook template
*/
if( !defined( 'MEDIAWIKI' ) )
die( -1 );
/** */
require_once('includes/SkinTemplate.php');
/**
* Inherit main code from SkinTemplate, set the CSS and template filter.
* @todo document
* @package MediaWiki
* @subpackage Skins
*/
class SkinElOtroLado extends SkinTemplate {
function initPage( &$out ) {
SkinTemplate::initPage( $out );
$this->skinname = 'ElOtroLado';
$this->stylename = 'elotrolado';
$this->template = 'EOLTemplate';
}
}
/**
* @todo document
* @package MediaWiki
* @subpackage Skins
*/
class EOLTemplate extends QuickTemplate {
/**
* Template filter callback for ElOtroLado 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() {
// 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">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php $this->text('lang') ?>" lang="<?php $this->text('lang') ?>" dir="<?php $this->text('dir') ?>">
<head>
<meta http-equiv="Content-Type" content="<?php $this->text('mimetype') ?>; charset=<?php $this->text('charset') ?>" />
<?php $this->html('headlinks') ?>
<title><?php $this->text('pagetitle') ?></title>
<style type="text/css" media="screen,projection">/*<![CDATA[*/ @import "<?php $this->text('stylepath') ?>/<?php $this->text('stylename') ?>/main.css?7"; /*]]>*/</style>
<style type="text/css" media="screen,projection">/*<![CDATA[*/ @import "/general_v2.css"; /*]]>*/</style>
<link rel="stylesheet" type="text/css" <?php if(empty($this->data['printable']) ) { ?>media="print"<?php } ?> href="<?php $this->text('stylepath') ?>/common/commonPrint.css" />
<!--[if lt IE 5.5000]><style type="text/css">@import "<?php $this->text('stylepath') ?>/<?php $this->text('stylename') ?>/IE50Fixes.css";</style><![endif]-->
<!--[if IE 5.5000]><style type="text/css">@import "<?php $this->text('stylepath') ?>/<?php $this->text('stylename') ?>/IE55Fixes.css";</style><![endif]-->
<!--[if IE 6]><style type="text/css">@import "<?php $this->text('stylepath') ?>/<?php $this->text('stylename') ?>/IE60Fixes.css";</style><![endif]-->
<!--[if IE 7]><style type="text/css">@import "<?php $this->text('stylepath') ?>/<?php $this->text('stylename') ?>/IE70Fixes.css?1";</style><![endif]-->
<!--[if lt IE 7]><script type="<?php $this->text('jsmimetype') ?>" src="<?php $this->text('stylepath') ?>/common/IEFixes.js"></script>
<meta http-equiv="imagetoolbar" content="no" /><![endif]-->
<script type="<?php $this->text('jsmimetype') ?>">var skin = '<?php $this->text('skinname')?>';var stylepath = '<?php $this->text('stylepath')?>';</script>
<script type="<?php $this->text('jsmimetype') ?>" src="<?php $this->text('stylepath' ) ?>/common/wikibits.js"><!-- wikibits js --></script>
<script type="<?php $this->text('jsmimetype') ?>" src="/menu2.js"><!-- menu js --></script>
<?php if($this->data['jsvarurl' ]) { ?>
<script type="<?php $this->text('jsmimetype') ?>" src="<?php $this->text('jsvarurl' ) ?>"><!-- site js --></script>
<?php } ?>
<?php if($this->data['pagecss' ]) { ?>
<style type="text/css"><?php $this->html('pagecss' ) ?></style>
<?php }
if($this->data['usercss' ]) { ?>
<style type="text/css"><?php $this->html('usercss' ) ?></style>
<?php }
if($this->data['userjs' ]) { ?>
<script type="<?php $this->text('jsmimetype') ?>" src="<?php $this->text('userjs' ) ?>"></script>
<?php }
if($this->data['userjsprev']) { ?>
<script type="<?php $this->text('jsmimetype') ?>"><?php $this->html('userjsprev') ?></script>
<?php }
if($this->data['trackbackhtml']) print $this->data['trackbackhtml']; ?>
<!-- Head Scripts -->
<?php $this->html('headscripts') ?>
</head>
<body <?php if($this->data['body_ondblclick']) { ?>ondblclick="<?php $this->text('body_ondblclick') ?>"<?php } ?>
<?php if($this->data['body_onload' ]) { ?>onload="<?php $this->text('body_onload') ?>"<?php } ?>
class="<?php $this->text('nsclass') ?> <?php $this->text('dir') ?>">
<a name="inicio"></a>
<div id="cabecera">
<div id="logo">
<a href="http://www.elotrolado.net"><img height="50" title="ElOtroLado" alt="ElOtroLado" src="http://banners.elotrolado.net:81/nuevo_logo2.jpg" width="260" /></a>
</div>
<div id="p-search">
<div id="searchBody" >
<form name="buscador" action="/search.php" method="post">
<input type="hidden" name="s" value="" />
<input type="hidden" name="searchdate" value="-1" />
<input type="hidden" name="beforeafter" value="after" />
<input type="hidden" name="sortby" value="lastpost" />
<input type="hidden" name="sortorder" value="descending" />
<input type="hidden" name="action" value="simplesearch" />
<input type="hidden" name="showposts" value="1" />
<input type="text" size="14" name="query" value="> Búsqueda" onClick="if (this.value=='> Búsqueda') {this.value=''}"
<?php
if($this->haveMsg('accesskey-search')) {
?>accesskey="<?php $this->msg('accesskey-search') ?>"<?php } ?> /><br />
<select name="forumchoice">
<option value="-2">Wiki</option>
<option value="41">Noticias</option>
<option value="-1">Foros</option>
</select>
<input type="image" alt="Buscar" title="Buscar" src="/imageshome/search.gif" align="middle" value="submit" name="image" />
</form>
</div>
</div> <!--p-search-->
<div id="cablogin">
<?php if ($this->data['loggedin']): ?>
<div id="loggedin"><br /><br />
Usuario conectado: <strong><?=$this->data['loggedusername']?></strong> [<a href="/member.php?s=&action=logout">Cerrar sesión</a>]
<?php else: ?>
<div id="loggedout">
<form action="/member.php" method="post" name="lf">
<input type="hidden" name="action" value="login" />
<table>
<tr><td><i>Usuario:</i></td><td><input type="text" class="bginputform" size="9" name="username" tabindex="1" /> <input type="submit" class="bginputform" value="Login" tabindex="3" /></td></tr>
<tr><td><i>Contraseña:</i></td><td><input type="password" class="bginputform" size="9" name="password" tabindex="2" /> <i><a href="/mensajes.php?s=&opcion=whyregister">¿No estás registrado?</a></i></td></tr></table></form>
<?php endif; ?>
</div>
</div> <!--cablogin-->
</div> <!-- cabecera-->
<div id="menu">
<?php $this->html('menu' ) ?>
</div> <!-- menu -->
<div id="banner-top">
<?php $this->html('banner-top' ) ?>
</div> <!-- banner-top -->
<div id="contenedor">
<div id="banner-left">
<?php $this->html('banner-left' ) ?>
</div> <!-- banner-left -->
<div id="contenido">
<div id="p-barras">
<!-- navegacion -->
<?php foreach ($this->data['sidebar'] as $bar => $cont) { ?>
<div class='portlet' id='p-<?php echo htmlspecialchars($bar) ?>'>
<h5><?php $out = wfMsg( $bar ); if (wfEmptyMsg($bar, $out)) echo $bar; else echo $out; ?></h5>
<div class='pBody'>
<ul>
<?php foreach($cont as $key => $val) { ?>
<li id="<?php echo htmlspecialchars($val['id']) ?>"<?php
if ( $val['active'] ) { ?> class="active" <?php }
?>><a href="<?php echo htmlspecialchars($val['href']) ?>"><?php echo htmlspecialchars($val['text']) ?></a></li>
<?php } ?>
</ul>
</div>
</div>
<?php } ?>
<!-- /navegacion -->
<!-- herramientas -->
<div class="portlet" id="p-tb">
<h5><?php $this->msg('toolbox') ?></h5>
<div class="pBody">
<ul>
<?php
if($this->data['notspecialpage']) { ?>
<li id="t-whatlinkshere"><a href="<?php
echo htmlspecialchars($this->data['nav_urls']['whatlinkshere']['href'])
?>"><?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 $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 $this->msg('trackbacklink') ?></a></li>
<?php }
if($this->data['feeds']) { ?>
<li id="feedlinks"><?php foreach($this->data['feeds'] as $key => $feed) {
?><span id="feed-<?php echo htmlspecialchars($key) ?>"><a href="<?php
echo htmlspecialchars($feed['href']) ?>"><?php echo htmlspecialchars($feed['text'])?></a> </span>
<?php } ?></li><?php
}
foreach( array('contributions', '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 $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 $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 $this->msg('permalink') ?></a></li><?php
} elseif ($this->data['nav_urls']['permalink']['href'] === '') { ?>
<li id="t-ispermalink"><?php $this->msg('permalink') ?></li><?php
}
?>
</ul>
</div>
</div>
<!-- /herramientas-->
</div> <!-- p-barras -->
<div id="p-cactions" class="portlet">
<h5><?php $this->msg('views') ?></h5>
<ul>
<?php foreach($this->data['content_actions'] as $key => $tab) { ?>
<li id="ca-<?php echo htmlspecialchars($key) ?>"<?php
if($tab['class']) { ?> class="<?php echo htmlspecialchars($tab['class']) ?>"<?php }
?>><a href="<?php echo htmlspecialchars($tab['href']) ?>"><?php
echo htmlspecialchars($tab['text']) ?></a></li>
<?php } ?>
</ul>
</div>
<div id="content">
<a name="top" id="top"></a>
<?php if($this->data['sitenotice']) { ?><div id="siteNotice"><?php $this->html('sitenotice') ?></div><?php } ?>
<h1 class="firstHeading"><?php $this->text('title') ?></h1>
<div id="bodyContent">
<h3 id="siteSub"><?php $this->msg('tagline') ?></h3>
<div id="contentSub"><?php $this->html('subtitle') ?></div>
<?php if($this->data['undelete']) { ?><div id="contentSub2"><?php $this->html('undelete') ?></div><?php } ?>
<?php if($this->data['newtalk'] ) { ?><div class="usermessage"><?php $this->html('newtalk') ?></div><?php } ?>
<?php if($this->data['showjumplinks']) { ?><div id="jump-to-nav"><?php $this->msg('jumpto') ?> <a href="#column-one"><?php $this->msg('jumptonavigation') ?></a>, <a href="#searchInput"><?php $this->msg('jumptosearch') ?></a></div><?php } ?>
<!-- start content -->
<?php $this->html('bodytext') ?>
<?php if($this->data['catlinks']) { ?><div id="catlinks"><?php $this->html('catlinks') ?></div><?php } ?>
<!-- end content -->
</div> <!-- bodycontent-->
</div> <!-- content -->
<div id="powered">
<?php $this->html('poweredbyico') ?>
</div>
</div> <!-- contenido -->
</div> <!-- contenedor -->
<div id="pie1">
</div>
<div id="footer">
<div id="extreme_stats">
<a target="_top" href="http://extremetracking.com/open?login=elotrola">
<img src="http://t1.extreme-dm.com/i.gif" height="38"
border="0" width="41" alt="" /></a><script type="text/javascript"><!--
EXs=screen;EXw=EXs.width;navigator.appName!="Netscape"?
EXb=EXs.colorDepth:EXb=EXs.pixelDepth;//-->
</script><script type="text/javascript"><!--
EXd=document;EXw?"":EXw="na";EXb?"":EXb="na";
EXd.write("<img src=\"http://t0.extreme-dm.com",
"/c.g?tag=elotrola&j=y&srw="+EXw+"&srb="+EXb+"&",
"l="+escape(EXd.referrer)+"\" height=\"1\" width=\"1\">");//-->
</script><noscript><img height="1" width="1" alt=""
src="http://t0.extreme-dm.com/c.g?tag=elotrola&j=n" /></noscript>
</div>
<div id="footer_mensajes">
<a href="/wiki/ElOtroLado:T%C3%A9rminos_y_condiciones">Términos y condiciones</a> | <a href="/wiki/ElOtroLado:Publicidad">Publicidad</a> | <a href="/wiki/ElOtroLado:Staff">Staff</a>
<a href="#inicio"><img alt="Subir" title="Subir al principio de la página" src="/imageshome/up.gif" height="10" hspace="10" width="9"></a>
</div>
<div id="copyright">
<a href="http://www.elotrolado.net/?s="><img title="www.elotrolado.net" alt="www.elotrolado.net" src="/imageshome/logoeolpie.gif" height="18" width="100"></a> ©©
1999-2007 <a href="/wiki/ElOtroLado:Licencia_de_contenidos">Algunos derechos reservados</a>
</div>
</div>
<script type="text/javascript"> if (window.runOnloadHook) runOnloadHook();</script>
<?php $this->html('reporttime') ?>
</body></html>
<?php
wfRestoreWarnings();
} // end of execute() method
} // end of class
?>