dokuwiki-template-sprintdoc.../tpl/nav-page-tools.php
Michael Große 6b6e2bd6f7
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.
2018-01-19 15:26:22 +01:00

27 lines
643 B
PHP
Executable file

<?php
if (!defined('DOKU_INC')) {
die();
}
?>
<nav id="dokuwiki__pagetools">
<div class="tools">
<?php include('nav-status.php'); ?>
<ul>
<?php
if (file_exists(DOKU_INC . '/inc/Menu/PageMenu.php')) {
echo (new \dokuwiki\Menu\PageMenu())->getListItems();
} else {
//Pre-Greebo Backwards compatibility
$data = dokuwiki\template\sprintdoc\tpl::assemblePageTools();
foreach ($data['items'] as $k => $html) {
echo $html;
}
}
?>
</ul>
</div>
</nav>