1<?php 2echo \dokuwiki\template\sprintdoc\Template::getInstance()->getNavigation(); 3?> 4 5<nav class="nav-sitetools"> 6 <div class="nav"><a href="#sidebar-site-tools" role="heading" aria-level="2"> 7 <span class="ico"><?php echo inlineSVG(__DIR__ . '/../img/sitemap.svg') ?></span> 8 <span class="lbl"><?php echo $lang['site_tools']; ?></span> 9 </a></div> 10 <div class="nav-panel level1"> 11 <ul id="sidebar-site-tools" class="toollist"> 12 <?php 13 if (file_exists(DOKU_INC . 'inc/Menu/SiteMenu.php')) { 14 echo (new \dokuwiki\Menu\SiteMenu())->getListItems('toollist__listitem '); 15 } else { 16 //Pre-Greebo Backwards compatibility 17 tpl_toolsevent( 18 'sitetools', 19 array( 20 'recent' => tpl_action('recent', 1, 'li', 1), 21 'media' => tpl_action('media', 1, 'li', 1), 22 'index' => tpl_action('index', 1, 'li', 1), 23 ) 24 ); 25 } 26 ?> 27 </ul> 28 </div> 29</nav> 30 31 32<nav class="nav-usermenu"> 33 <div class="nav"><a href="#sidebar-user-tools" role="heading" aria-level="2"> 34 <span class="ico"><?php echo inlineSVG(__DIR__ . '/../img/account-settings.svg') ?></span> 35 <span class="lbl"><?php echo $lang['user_tools']; ?></span> 36 </a></div> 37 <div class="nav-panel level1"> 38 <ul id="sidebar-user-tools" class="toollist"> 39 <?php /* dokuwiki user tools */ 40 if (file_exists(DOKU_INC . 'inc/Menu/UserMenu.php')) { 41 echo (new \dokuwiki\Menu\UserMenu())->getListItems('toollist__listitem '); 42 } else { 43 //Pre-Greebo Backwards compatibility 44 tpl_toolsevent( 45 'usertools', 46 array( 47 'login' => tpl_action('login', 1, 'li', 1), 48 'profile' => tpl_action('profile', 1, 'li', 1), 49 'admin' => tpl_action('admin', 1, 'li', 1), 50 'register' => tpl_action('register', 1, 'li', 1), 51 ) 52 ); 53 } 54 ?> 55 </ul> 56 </div> 57</nav> 58 59<?php 60/** @var helper_plugin_starred $plugin_starred */ 61$plugin_starred = plugin_load('helper', 'starred'); 62$stars = array(); 63if($plugin_starred) $stars = $plugin_starred->loadStars(); 64if($stars): 65 ?> 66 <nav class="nav-starred"> 67 <div class="nav"><a href="#sidebar-menu-starred" role="heading" aria-level="2"> 68 <span class="ico"><?php echo inlineSVG(__DIR__ . '/../img/star-circle.svg') ?></span> 69 <span class="lbl"><?php echo tpl_getLang('head_menu_starred'); ?></span> 70 </a></div> 71 <div class="nav-panel level1 plugin_starred"> 72 <ul id="sidebar-menu-starred"> 73 <?php 74 foreach($stars as $pid => $time) { 75 echo '<li>'; 76 echo $plugin_starred->starHtml($ID, $pid); 77 echo ' '; 78 echo html_wikilink(":$pid"); 79 echo '</li>'; 80 } 81 ?> 82 </ul> 83 </div> 84 </nav> 85<?php endif; ?> 86 87 88 89<?php if($conf['breadcrumbs']): ?> 90 <nav class="nav-trace"> 91 <div class="nav"><a href="#sidebar-menu_trace" role="heading" aria-level="2"> 92 <span class="ico"><?php echo inlineSVG(__DIR__ . '/../img/apple-safari.svg') ?></span> 93 <span class="lbl"><?php echo tpl_getLang('head_menu_trace'); ?></span> 94 </a></div> 95 <div class="nav-panel level1"> 96 <ul id="sidebar-menu_trace"> 97 <?php /* trace breadcrumbs as list */ 98 // FIXME move to helper class 99 $crumbs = breadcrumbs(); 100 $crumbs = array_reverse($crumbs, true); 101 foreach($crumbs as $id => $name) { 102 echo '<li>'; 103 tpl_link(wl($id), hsc($name), 'title="' . $id . '"'); 104 echo '</li>'; 105 } 106 ?> 107 </ul> 108 </div> 109 </nav> 110<?php endif ?> 111