* @ingroup Skins
*/
class MonoBookTemplate extends BaseTemplate {
+
+ /**
+ * @var Skin
+ */
var $skin;
+
/**
* Template filter callback for MonoBook skin.
* Takes an associative array of data set from a SkinTemplate-based
* @access private
*/
function execute() {
- global $wgRequest;
-
$this->skin = $skin = $this->data['skin'];
- $action = $wgRequest->getText( 'action' );
// Suppress warnings to prevent notices about missing indexes in $this->data
wfSuppressWarnings();
<?php } ?>
<!-- start content -->
<?php $this->html('bodytext') ?>
+ <?php if($this->data['printfooter']) { ?><div class="printfooter"><?php $this->html('printfooter'); ?></div><?php } ?>
+ <?php $this->html('debughtml'); ?>
<?php if($this->data['catlinks']) { $this->html('catlinks'); } ?>
<!-- end content -->
<?php if($this->data['dataAfterContent']) { $this->html ('dataAfterContent'); } ?>
</div>
<div class="portlet" id="p-logo">
<?php
- $logoAttribs = array() + $skin->tooltipAndAccesskeyAttribs('p-logo');
+ $logoAttribs = array() + Linker::tooltipAndAccesskeyAttribs('p-logo');
$logoAttribs['style'] = "background-image: url({$this->data['logopath']});";
$logoAttribs['href'] = $this->data['nav_urls']['mainpage']['href'];
echo Html::element( 'a', $logoAttribs );
$linkAttribs = array( 'href' => $tab['href'] );
if( isset( $tab["tooltiponly"] ) && $tab["tooltiponly"] ) {
- $title = $skin->titleAttrib( "ca-$key" );
+ $title = Linker::titleAttrib( "ca-$key" );
if ( $title !== false ) {
$linkAttribs['title'] = $title;
}
} else {
- $linkAttribs += $skin->tooltipAndAccesskeyAttribs( "ca-$key" );
+ $linkAttribs += Linker::tooltipAndAccesskeyAttribs( "ca-$key" );
}
$linkHtml = Html::element( 'a', $linkAttribs, $tab['text'] );
/*************************************************************************************************/
function customBox( $bar, $cont ) {
$portletAttribs = array( 'class' => 'generated-sidebar portlet', 'id' => Sanitizer::escapeId( "p-$bar" ) );
- $tooltip = $this->skin->titleAttrib( "p-$bar" );
+ $tooltip = Linker::titleAttrib( "p-$bar" );
if ( $tooltip !== false ) {
$portletAttribs['title'] = $tooltip;
}
echo ' ' . Html::openElement( 'div', $portletAttribs );
?>
- <h5><?php $out = wfMsg( $bar ); if (wfEmptyMsg($bar, $out)) echo htmlspecialchars($bar); else echo htmlspecialchars($out); ?></h5>
+ <h5><?php $out = wfMsg( $bar ); if (wfEmptyMsg($bar)) echo htmlspecialchars($bar); else echo htmlspecialchars($out); ?></h5>
<div class='pBody'>
<?php if ( is_array( $cont ) ) { ?>
<ul>