$this->html( 'headelement' );
echo $this->beforeContent();
$this->html( 'bodytext' );
+ echo '<div class=\"printfooter\">';
+ $this->html( 'printfooter' );
+ echo '</div>';
+ $this->html( 'debughtml' );
echo "\n";
echo $this->afterContent();
$this->html( 'dataAfterContent' );
$tpl->set( 'reporttime', wfReportTime() );
$tpl->set( 'sitenotice', $this->getSiteNotice() );
$tpl->set( 'bottomscripts', $this->bottomScripts( $out ) );
+ $tpl->set( 'printfooter', $this->printSource() );
- // @todo Give printfooter userlangattributes
- $printfooter = "<div class=\"printfooter\">\n" . $this->printSource() . "</div>\n";
global $wgBetterDirectionality;
if ( $wgBetterDirectionality ) {
$realBodyAttribs = array( 'lang' => $wgLanguageCode, 'dir' => $wgContLang->getDir() );
$out->mBodytext = Html::rawElement( 'div', $realBodyAttribs, $out->mBodytext );
}
- $out->mBodytext .= $printfooter . $this->generateDebugHTML( $out );
$tpl->setRef( 'bodytext', $out->mBodytext );
# Language links
$tpl->set( 'headscripts', $out->getScript() );
}
+ $tpl->set( 'debughtml', $this->generateDebugHTML( $out ) );
+
// original version by hansm
if( !wfRunHooks( 'SkinTemplateOutputPageBeforeExec', array( &$this, &$tpl ) ) ) {
wfDebug( __METHOD__ . ": Hook SkinTemplateOutputPageBeforeExec broke outputPage execution!\n" );
<?php if($this->data['showjumplinks']) { ?><div id="jump-to-nav"><?php $this->msg('jumpto') ?> <a href="#mw_portlets"><?php $this->msg('jumptonavigation') ?></a>, <a href="#searchInput"><?php $this->msg('jumptosearch') ?></a></div><?php } ?>
<?php $this->html('bodytext') ?>
+ <?php if($this->data['printfooter']) { ?><div class="printfooter"><?php $this->html('printfooter'); ?></div><?php } ?>
+ <?php $this->html('debughtml'); ?>
<div class='mw_clear'></div>
<?php if($this->data['catlinks']) { $this->html('catlinks'); } ?>
<?php $this->html ('dataAfterContent') ?>
<?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'); } ?>
<!-- bodytext -->
<?php $this->html( 'bodytext' ) ?>
<!-- /bodytext -->
+ <?php if ( $this->data['printfooter'] ): ?>
+ <!-- printfooter -->
+ <div class="printfooter">
+ <?php $this->html( 'printfooter' ); ?>
+ </div>
+ <!-- /printfooter -->
+ <?php endif; ?>
+ <!-- debughtml -->
+ <?php $this->html('debughtml'); ?>
+ <!-- /debughtml -->
<?php if ( $this->data['catlinks'] ): ?>
<!-- catlinks -->
<?php $this->html( 'catlinks' ); ?>