refactor: use the new menu classes from master if available

This is still fully compatible with the current stable Frusterick
Manners, however these old method calls should be removed after the
release of Greebo.
This commit is contained in:
Michael Große 2018-01-19 11:52:30 +01:00
commit 6b6e2bd6f7
No known key found for this signature in database
GPG key ID: 7E31028FBFEACC79
4 changed files with 78 additions and 27 deletions

View file

@ -140,7 +140,14 @@ $classWideContent = ($ACT === "show") ? "": "wide-content ";
<div class="menu-tool-select">
<h5 class="sr-only" role="heading" aria-level="2"><?php echo tpl_getLang('head_menu_tool-select') ?></h5>
<?php tpl_actiondropdown($lang['tools'], "test"); ?>
<?php
if (file_exists(DOKU_INC . 'inc/Menu/MobileMenu.php')) {
echo (new \dokuwiki\Menu\MobileMenu())->getDropdown();
} else {
//Pre-Greebo Backwards compatibility
tpl_actiondropdown($lang['tools'], "test");
}
?>
</div><!-- .menu-tool-select -->
</div><!-- .headings -->
</div><!-- .col -->