xref: /template/sprintdoc/tpl/main-sidebar-nav.php (revision 83e6372c7d3f6cbe45ad2361c0dfc93169455296)
16c61749bSAndreas Gohr<nav class="nav-main">
26c61749bSAndreas Gohr    <?php /* main navigation, loaded from sidebar, fixed up by javascript */
36c61749bSAndreas Gohr    tpl_include_page($conf['sidebar'], 1, 1);
46c61749bSAndreas Gohr    ?>
56c61749bSAndreas Gohr</nav>
66c61749bSAndreas Gohr
76c61749bSAndreas Gohr
86c61749bSAndreas Gohr<nav class="nav-sitetools">
96c61749bSAndreas Gohr    <h6 role="heading" aria-level="2">
106c61749bSAndreas Gohr        <span><?php echo inlineSVG(__DIR__ . '/../img/sitemap.svg')?></span>
116c61749bSAndreas Gohr        <?php echo $lang['site_tools']; ?>
126c61749bSAndreas Gohr    </h6>
136c61749bSAndreas Gohr    <div class="nav-panel">
146c61749bSAndreas Gohr        <ul>
156c61749bSAndreas Gohr            <?php
166c61749bSAndreas Gohr            tpl_toolsevent(
176c61749bSAndreas Gohr                'sitetools',
186c61749bSAndreas Gohr                array(
196c61749bSAndreas Gohr                    'recent' => tpl_action('recent', 1, 'li', 1),
206c61749bSAndreas Gohr                    'media' => tpl_action('media', 1, 'li', 1),
216c61749bSAndreas Gohr                    'index' => tpl_action('index', 1, 'li', 1),
226c61749bSAndreas Gohr                )
236c61749bSAndreas Gohr            );
246c61749bSAndreas Gohr            ?>
256c61749bSAndreas Gohr        </ul>
266c61749bSAndreas Gohr    </div>
276c61749bSAndreas Gohr</nav>
286c61749bSAndreas Gohr
296c61749bSAndreas Gohr
306c61749bSAndreas Gohr<nav class="nav-usermenu">
316c61749bSAndreas Gohr    <h6 role="heading" aria-level="2">
326c61749bSAndreas Gohr        <span><?php echo inlineSVG(__DIR__ . '/../img/account-settings.svg')?></span>
336c61749bSAndreas Gohr        <?php echo $lang['user_tools']; ?></h6>
346c61749bSAndreas Gohr    <div class="nav-panel">
356c61749bSAndreas Gohr        <ul>
366c61749bSAndreas Gohr            <?php /* dokuwiki user tools */
376c61749bSAndreas Gohr            tpl_toolsevent(
386c61749bSAndreas Gohr                'usertools',
396c61749bSAndreas Gohr                array(
406c61749bSAndreas Gohr                    'login' => tpl_action('login', 1, 'li', 1),
416c61749bSAndreas Gohr                    'admin' => tpl_action('admin', 1, 'li', 1),
426c61749bSAndreas Gohr                    'register' => tpl_action('register', 1, 'li', 1),
436c61749bSAndreas Gohr                )
446c61749bSAndreas Gohr            );
456c61749bSAndreas Gohr            ?>
466c61749bSAndreas Gohr        </ul>
476c61749bSAndreas Gohr    </div>
486c61749bSAndreas Gohr</nav>
496c61749bSAndreas Gohr
506c61749bSAndreas Gohr
516c61749bSAndreas Gohr<?php if($conf['breadcrumbs']): ?>
526c61749bSAndreas Gohr    <nav class="nav-trace">
536c61749bSAndreas Gohr        <h6 role="heading" aria-level="2">
546c61749bSAndreas Gohr            <span><?php echo inlineSVG(__DIR__ . '/../img/apple-safari.svg')?></span>
556c61749bSAndreas Gohr            <?php echo tpl_getLang('head_menu_trace'); ?></h6>
566c61749bSAndreas Gohr        <div class="nav-panel">
576c61749bSAndreas Gohr            <ul>
586c61749bSAndreas Gohr                <?php /* trace breadcrumbs as list */
596c61749bSAndreas Gohr                // FIXME move to helper class
606c61749bSAndreas Gohr                $crumbs = breadcrumbs();
616c61749bSAndreas Gohr                $crumbs = array_reverse($crumbs, true);
626c61749bSAndreas Gohr                foreach($crumbs as $id => $name) {
636c61749bSAndreas Gohr                    echo '<li>';
64*83e6372cSAndreas Gohr                    tpl_link(wl($id), hsc($name), 'title="' . $id . '"');
656c61749bSAndreas Gohr                    echo '</li>';
666c61749bSAndreas Gohr                }
676c61749bSAndreas Gohr                ?>
686c61749bSAndreas Gohr            </ul>
696c61749bSAndreas Gohr        </div>
706c61749bSAndreas Gohr    </nav>
716c61749bSAndreas Gohr<?php endif ?>
72