xref: /template/sprintdoc/tpl/main-sidebar-nav.php (revision 1fc95e4da6733dbfd6643acd48333894b4f013bf)
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<nav class="nav-sitetools">
806938c6dSAndreas Gohr    <a class="nav" role="heading" aria-level="2">
9fa1028adSAndreas Gohr        <span class="ico"><?php echo inlineSVG(__DIR__ . '/../img/sitemap.svg') ?></span>
10fa1028adSAndreas Gohr        <span class="lbl"><?php echo $lang['site_tools']; ?></span>
1106938c6dSAndreas Gohr    </a>
12373f4a8fSAndreas Gohr    <div class="nav-panel level1">
136c61749bSAndreas Gohr        <ul>
146c61749bSAndreas Gohr            <?php
156c61749bSAndreas Gohr            tpl_toolsevent(
166c61749bSAndreas Gohr                'sitetools',
176c61749bSAndreas Gohr                array(
186c61749bSAndreas Gohr                    'recent' => tpl_action('recent', 1, 'li', 1),
196c61749bSAndreas Gohr                    'media' => tpl_action('media', 1, 'li', 1),
206c61749bSAndreas Gohr                    'index' => tpl_action('index', 1, 'li', 1),
216c61749bSAndreas Gohr                )
226c61749bSAndreas Gohr            );
236c61749bSAndreas Gohr            ?>
246c61749bSAndreas Gohr        </ul>
256c61749bSAndreas Gohr    </div>
266c61749bSAndreas Gohr</nav>
276c61749bSAndreas Gohr
286c61749bSAndreas Gohr
296c61749bSAndreas Gohr<nav class="nav-usermenu">
3006938c6dSAndreas Gohr    <a class="nav" role="heading" aria-level="2">
31fa1028adSAndreas Gohr        <span class="ico"><?php echo inlineSVG(__DIR__ . '/../img/account-settings.svg') ?></span>
32fa1028adSAndreas Gohr        <span class="lbl"><?php echo $lang['user_tools']; ?></span>
3315e86d99SAndreas Gohr    </a>
34373f4a8fSAndreas Gohr    <div class="nav-panel level1">
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),
41ef84665dSAndreas Gohr                    'profile' => tpl_action('profile', 1, 'li', 1),
426c61749bSAndreas Gohr                    'admin' => tpl_action('admin', 1, 'li', 1),
436c61749bSAndreas Gohr                    'register' => tpl_action('register', 1, 'li', 1),
446c61749bSAndreas Gohr                )
456c61749bSAndreas Gohr            );
466c61749bSAndreas Gohr            ?>
476c61749bSAndreas Gohr        </ul>
486c61749bSAndreas Gohr    </div>
496c61749bSAndreas Gohr</nav>
506c61749bSAndreas Gohr
51*1fc95e4dSAndreas Gohr<?php
52*1fc95e4dSAndreas Gohr/** @var helper_plugin_starred $plugin_starred */
53*1fc95e4dSAndreas Gohr$plugin_starred = plugin_load('helper', 'starred');
54*1fc95e4dSAndreas Gohr$stars = array();
55*1fc95e4dSAndreas Gohrif($plugin_starred) $stars = $plugin_starred->loadStars();
56*1fc95e4dSAndreas Gohrif($stars):
57*1fc95e4dSAndreas Gohr    ?>
58*1fc95e4dSAndreas Gohr    <nav class="nav-starred">
59*1fc95e4dSAndreas Gohr        <a class="nav" role="heading" aria-level="2">
60*1fc95e4dSAndreas Gohr            <span class="ico"><?php echo inlineSVG(__DIR__ . '/../img/star-circle.svg') ?></span>
61*1fc95e4dSAndreas Gohr            <span class="lbl"><?php echo tpl_getLang('head_menu_starred'); ?></span>
62*1fc95e4dSAndreas Gohr        </a>
63*1fc95e4dSAndreas Gohr        <div class="nav-panel level1 plugin_starred">
64*1fc95e4dSAndreas Gohr            <ul>
65*1fc95e4dSAndreas Gohr                <?php
66*1fc95e4dSAndreas Gohr                foreach($stars as $pid => $time) {
67*1fc95e4dSAndreas Gohr                    echo '<li>';
68*1fc95e4dSAndreas Gohr                    echo $plugin_starred->starHtml($ID, $pid);
69*1fc95e4dSAndreas Gohr                    echo '&nbsp;';
70*1fc95e4dSAndreas Gohr                    echo html_wikilink(":$pid");
71*1fc95e4dSAndreas Gohr                    echo '</li>';
72*1fc95e4dSAndreas Gohr                }
73*1fc95e4dSAndreas Gohr                ?>
74*1fc95e4dSAndreas Gohr            </ul>
75*1fc95e4dSAndreas Gohr        </div>
76*1fc95e4dSAndreas Gohr    </nav>
77*1fc95e4dSAndreas Gohr<?php endif; ?>
78*1fc95e4dSAndreas Gohr
79*1fc95e4dSAndreas Gohr
806c61749bSAndreas Gohr
816c61749bSAndreas Gohr<?php if($conf['breadcrumbs']): ?>
824055de39SAndreas Gohr    <nav class="nav-trace">
8306938c6dSAndreas Gohr        <a class="nav" role="heading" aria-level="2">
84fa1028adSAndreas Gohr            <span class="ico"><?php echo inlineSVG(__DIR__ . '/../img/apple-safari.svg') ?></span>
85fa1028adSAndreas Gohr            <span class="lbl"><?php echo tpl_getLang('head_menu_trace'); ?></span>
8606938c6dSAndreas Gohr        </a>
87373f4a8fSAndreas Gohr        <div class="nav-panel level1">
886c61749bSAndreas Gohr            <ul>
896c61749bSAndreas Gohr                <?php /* trace breadcrumbs as list */
906c61749bSAndreas Gohr                // FIXME move to helper class
916c61749bSAndreas Gohr                $crumbs = breadcrumbs();
926c61749bSAndreas Gohr                $crumbs = array_reverse($crumbs, true);
936c61749bSAndreas Gohr                foreach($crumbs as $id => $name) {
946c61749bSAndreas Gohr                    echo '<li>';
9583e6372cSAndreas Gohr                    tpl_link(wl($id), hsc($name), 'title="' . $id . '"');
966c61749bSAndreas Gohr                    echo '</li>';
976c61749bSAndreas Gohr                }
986c61749bSAndreas Gohr                ?>
996c61749bSAndreas Gohr            </ul>
1006c61749bSAndreas Gohr        </div>
1014055de39SAndreas Gohr    </nav>
1026c61749bSAndreas Gohr<?php endif ?>
103