mirror of
https://github.com/StarCitizenTools/mediawiki-skins-Citizen.git
synced 2024-12-01 01:16:38 +00:00
Converted sidebar sitetitle to Mustache
This commit is contained in:
parent
37732ea6a9
commit
35de211a49
|
@ -70,6 +70,7 @@ class CitizenTemplate extends BaseTemplate {
|
|||
],
|
||||
|
||||
'msg-sitetitle' => $this->getMsg( 'sitetitle' )->text(),
|
||||
'main-page-href' => Skin::makeMainPageUrl(),
|
||||
];
|
||||
|
||||
// TODO: Convert the header to Mustache
|
||||
|
@ -102,8 +103,7 @@ class CitizenTemplate extends BaseTemplate {
|
|||
// TODO: Convert the rest to Mustache
|
||||
ob_start();
|
||||
|
||||
$html = $this->getSideTitle();
|
||||
$html .= $this->getBottomBar();
|
||||
$html = $this->getBottomBar();
|
||||
|
||||
echo $html;
|
||||
$params['html-unported'] = ob_get_contents();
|
||||
|
@ -148,19 +148,6 @@ class CitizenTemplate extends BaseTemplate {
|
|||
return $header . $navigation . $userIconsSearchBar . Html::closeElement( 'header' );
|
||||
}
|
||||
|
||||
/**
|
||||
* The rotated site title
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
protected function getSideTitle() {
|
||||
return Html::rawElement(
|
||||
'div',
|
||||
[ 'class' => 'mw-sidebar-sitename', 'role' => 'banner' ],
|
||||
$this->getSiteTitle( 'link' )
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Generates the bottom bar
|
||||
* @return string html
|
||||
|
|
|
@ -51,5 +51,8 @@
|
|||
</div>
|
||||
</main>
|
||||
{{#data-footer}}{{>Footer}}{{/data-footer}}
|
||||
<div class="mw-sidebar-sitename" role="banner">
|
||||
<a class="mw-wiki-title" href="{{{main-page-href}}}">{{{msg-sitetitle}}}</a>
|
||||
</div>
|
||||
{{{html-unported}}}
|
||||
{{{html-printtail}}}
|
Loading…
Reference in a new issue