xref: /template/sprintdoc/tpl/main-sidebar-nav.php (revision 6c61749bf2a1268695f9fe689d24c6c675880110)
1*6c61749bSAndreas Gohr<nav class="nav-main">
2*6c61749bSAndreas Gohr    <?php /* main navigation, loaded from sidebar, fixed up by javascript */
3*6c61749bSAndreas Gohr    tpl_include_page($conf['sidebar'], 1, 1);
4*6c61749bSAndreas Gohr    ?>
5*6c61749bSAndreas Gohr</nav>
6*6c61749bSAndreas Gohr
7*6c61749bSAndreas Gohr
8*6c61749bSAndreas Gohr<nav class="nav-sitetools">
9*6c61749bSAndreas Gohr    <h6 role="heading" aria-level="2">
10*6c61749bSAndreas Gohr        <span><?php echo inlineSVG(__DIR__ . '/../img/sitemap.svg')?></span>
11*6c61749bSAndreas Gohr        <?php echo $lang['site_tools']; ?>
12*6c61749bSAndreas Gohr    </h6>
13*6c61749bSAndreas Gohr    <div class="nav-panel">
14*6c61749bSAndreas Gohr        <ul>
15*6c61749bSAndreas Gohr            <?php
16*6c61749bSAndreas Gohr            tpl_toolsevent(
17*6c61749bSAndreas Gohr                'sitetools',
18*6c61749bSAndreas Gohr                array(
19*6c61749bSAndreas Gohr                    'recent' => tpl_action('recent', 1, 'li', 1),
20*6c61749bSAndreas Gohr                    'media' => tpl_action('media', 1, 'li', 1),
21*6c61749bSAndreas Gohr                    'index' => tpl_action('index', 1, 'li', 1),
22*6c61749bSAndreas Gohr                )
23*6c61749bSAndreas Gohr            );
24*6c61749bSAndreas Gohr            ?>
25*6c61749bSAndreas Gohr        </ul>
26*6c61749bSAndreas Gohr    </div>
27*6c61749bSAndreas Gohr</nav>
28*6c61749bSAndreas Gohr
29*6c61749bSAndreas Gohr
30*6c61749bSAndreas Gohr<nav class="nav-usermenu">
31*6c61749bSAndreas Gohr    <h6 role="heading" aria-level="2">
32*6c61749bSAndreas Gohr        <span><?php echo inlineSVG(__DIR__ . '/../img/account-settings.svg')?></span>
33*6c61749bSAndreas Gohr        <?php echo $lang['user_tools']; ?></h6>
34*6c61749bSAndreas Gohr    <div class="nav-panel">
35*6c61749bSAndreas Gohr        <ul>
36*6c61749bSAndreas Gohr            <?php /* dokuwiki user tools */
37*6c61749bSAndreas Gohr            tpl_toolsevent(
38*6c61749bSAndreas Gohr                'usertools',
39*6c61749bSAndreas Gohr                array(
40*6c61749bSAndreas Gohr                    'login' => tpl_action('login', 1, 'li', 1),
41*6c61749bSAndreas Gohr                    'admin' => tpl_action('admin', 1, 'li', 1),
42*6c61749bSAndreas Gohr                    'register' => tpl_action('register', 1, 'li', 1),
43*6c61749bSAndreas Gohr                )
44*6c61749bSAndreas Gohr            );
45*6c61749bSAndreas Gohr            ?>
46*6c61749bSAndreas Gohr        </ul>
47*6c61749bSAndreas Gohr    </div>
48*6c61749bSAndreas Gohr</nav>
49*6c61749bSAndreas Gohr
50*6c61749bSAndreas Gohr
51*6c61749bSAndreas Gohr<?php if($conf['breadcrumbs']): ?>
52*6c61749bSAndreas Gohr    <nav class="nav-trace">
53*6c61749bSAndreas Gohr        <h6 role="heading" aria-level="2">
54*6c61749bSAndreas Gohr            <span><?php echo inlineSVG(__DIR__ . '/../img/apple-safari.svg')?></span>
55*6c61749bSAndreas Gohr            <?php echo tpl_getLang('head_menu_trace'); ?></h6>
56*6c61749bSAndreas Gohr        <div class="nav-panel">
57*6c61749bSAndreas Gohr            <ul>
58*6c61749bSAndreas Gohr                <?php /* trace breadcrumbs as list */
59*6c61749bSAndreas Gohr                // FIXME move to helper class
60*6c61749bSAndreas Gohr                $crumbs = breadcrumbs();
61*6c61749bSAndreas Gohr                $crumbs = array_reverse($crumbs, true);
62*6c61749bSAndreas Gohr                foreach($crumbs as $id => $name) {
63*6c61749bSAndreas Gohr                    echo '<li>';
64*6c61749bSAndreas Gohr                    tpl_link(wl($id), hsc($name), 'class="breadcrumbs" title="' . $id . '"');
65*6c61749bSAndreas Gohr                    echo '</li>';
66*6c61749bSAndreas Gohr                }
67*6c61749bSAndreas Gohr                ?>
68*6c61749bSAndreas Gohr            </ul>
69*6c61749bSAndreas Gohr        </div>
70*6c61749bSAndreas Gohr    </nav>
71*6c61749bSAndreas Gohr<?php endif ?>
72