@ -37,45 +37,7 @@ class TimelessTemplate extends BaseTemplate {
$html .= Html::rawElement( 'div', [ 'id' => 'mw-content-container', 'class' => 'ts-container' ],
Html::rawElement( 'div', [ 'id' => 'mw-content-block', 'class' => 'ts-inner' ],
Html::rawElement( 'div', [ 'id' => 'mw-content-wrapper' ],
Html::rawElement( 'div', [ 'id' => 'mw-content' ],
Html::rawElement( 'div', [ 'id' => 'content', 'class' => 'mw-body', 'role' => 'main' ],
$this->getSiteNotices() .
$this->getIndicators() .
Html::rawElement(
'h1',
[
'id' => 'firstHeading',
'class' => 'firstHeading',
'lang' => $this->get( 'pageLanguage' )
],
$this->get( 'title' )
) .
Html::rawElement( 'div', [ 'id' => 'siteSub' ], $this->getMsg( 'tagline' )->parse() ) .
Html::rawElement( 'div', [ 'id' => 'mw-page-header-links' ],
$this->getPortlet(
'namespaces',
$this->pileOfTools['namespaces'],
'timeless-namespaces'
) .
$this->getPortlet(
'more',
$this->pileOfTools['more'],
'timeless-more'
) .
$this->getPortlet(
'views',
$this->pileOfTools['page-primary'],
'timeless-pagetools'
)
) .
$this->getClear() .
Html::rawElement( 'div', [ 'class' => 'mw-body-content', 'id' => 'bodyContent' ],
$this->getContentSub() .
$this->get( 'bodytext' ) .
$this->getClear()
)
)
) .
$this->getContentBlock() .
$this->getAfterContent()
) .
Html::rawElement( 'div', [ 'id' => 'mw-site-navigation' ],
@ -121,6 +83,56 @@ class TimelessTemplate extends BaseTemplate {
echo $html;
}
/**
* Generate the page content block
* Broken out here due to the excessive indenting, or stuff.
*
* @return string html
*/
protected function getContentBlock() {
$html = Html::rawElement(
'div',
[ 'id' => 'content', 'class' => 'mw-body', 'role' => 'main' ],
$this->getSiteNotices() .
$this->getIndicators() .
Html::rawElement(
'h1',
[
'id' => 'firstHeading',
'class' => 'firstHeading',
'lang' => $this->get( 'pageLanguage' )
],
$this->get( 'title' )
) .
Html::rawElement( 'div', [ 'id' => 'siteSub' ], $this->getMsg( 'tagline' )->parse() ) .
Html::rawElement( 'div', [ 'id' => 'mw-page-header-links' ],
$this->getPortlet(
'namespaces',
$this->pileOfTools['namespaces'],
'timeless-namespaces'
) .
$this->getPortlet(
'more',
$this->pileOfTools['more'],
'timeless-more'
) .
$this->getPortlet(
'views',
$this->pileOfTools['page-primary'],
'timeless-pagetools'
)
) .
$this->getClear() .
Html::rawElement( 'div', [ 'class' => 'mw-body-content', 'id' => 'bodyContent' ],
$this->getContentSub() .
$this->get( 'bodytext' ) .
$this->getClear()
)
);
return Html::rawElement( 'div', [ 'id' => 'mw-content' ], $html );
}
/**
* Generates a block of navigation links with a header
*