Converted sidebar sitetitle to Mustache

This commit is contained in:
alistair3149 2020-06-02 21:21:24 -04:00
parent 37732ea6a9
commit 35de211a49
No known key found for this signature in database
GPG key ID: 94D081060FD3DD9C
2 changed files with 5 additions and 15 deletions

View file

@ -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

View file

@ -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}}}