1<?php
2if (!defined('DOKU_INC')) {
3    die();
4}
5?>
6
7
8<nav id="dokuwiki__pagetools">
9    <div class="tools">
10
11        <?php include('nav-status.php'); ?>
12        <ul>
13            <?php
14            if (file_exists(DOKU_INC . '/inc/Menu/PageMenu.php')) {
15                echo (new \dokuwiki\Menu\PageMenu())->getListItems();
16            } else {
17                //Pre-Greebo Backwards compatibility
18                $data = dokuwiki\template\sprintdoc\tpl::assemblePageTools();
19
20                foreach ($data['items'] as $k => $html) {
21                    echo $html;
22                }
23            }
24            ?>
25        </ul>
26    </div>
27</nav>
28