diff --git a/includes/skins/MinervaTemplate.php b/includes/skins/MinervaTemplate.php index ed9660105..904a7492a 100644 --- a/includes/skins/MinervaTemplate.php +++ b/includes/skins/MinervaTemplate.php @@ -212,20 +212,14 @@ class MinervaTemplate extends BaseTemplate { } /** - * Gets the main menu only on Special:MobileMenu. - * On other pages the menu is rendered via JS. + * Gets the main menu HTML. * @param array $data Data used to build the page * @return string */ protected function getMainMenuHtml( $data ) { - if ( $this->isSpecialMobileMenuPage ) { - $templateParser = new TemplateParser( - __DIR__ . '/../../resources/skins.minerva.scripts/menu/' ); + $templateParser = new TemplateParser( __DIR__ ); - return $templateParser->processTemplate( 'menu', $data['mainMenu']['items'] ); - } - - return ''; + return $templateParser->processTemplate( 'menu', $data['mainMenu']['items'] ); } /** diff --git a/includes/skins/SkinMinerva.php b/includes/skins/SkinMinerva.php index 2b4ecebbb..1416c59d2 100644 --- a/includes/skins/SkinMinerva.php +++ b/includes/skins/SkinMinerva.php @@ -790,8 +790,6 @@ class SkinMinerva extends SkinTemplate { ], 'wgMinervaFeatures' => $this->skinOptions->getAll(), 'wgMinervaDownloadNamespaces' => $this->getConfig()->get( 'MinervaDownloadNamespaces' ), - // hamburger icon is already rendered, pass only menu items - 'wgMinervaMenuData' => $menuData['items'] ]; return $vars; diff --git a/resources/skins.minerva.scripts/menu/menu.mustache b/includes/skins/menu.mustache similarity index 100% rename from resources/skins.minerva.scripts/menu/menu.mustache rename to includes/skins/menu.mustache diff --git a/resources/skins.minerva.scripts/menu/menuGroup.mustache b/includes/skins/menuGroup.mustache similarity index 100% rename from resources/skins.minerva.scripts/menu/menuGroup.mustache rename to includes/skins/menuGroup.mustache diff --git a/includes/skins/minerva.mustache b/includes/skins/minerva.mustache index ca235d8b2..124f5d798 100644 --- a/includes/skins/minerva.mustache +++ b/includes/skins/minerva.mustache @@ -1,9 +1,11 @@ {{{headelement}}}