1*c1e0eaa8SAndreas Gohr<?php 2*c1e0eaa8SAndreas Gohrecho \dokuwiki\template\sprintdoc\Template::getInstance()->getNavigation(); 36c61749bSAndreas Gohr?> 46c61749bSAndreas Gohr 56c61749bSAndreas Gohr<nav class="nav-sitetools"> 6b92c574dSJana Deutschländer <div class="nav"><a href="#sidebar-site-tools" role="heading" aria-level="2"> 7fa1028adSAndreas Gohr <span class="ico"><?php echo inlineSVG(__DIR__ . '/../img/sitemap.svg') ?></span> 8fa1028adSAndreas Gohr <span class="lbl"><?php echo $lang['site_tools']; ?></span> 99e264cdcSAndreas Gohr </a></div> 10373f4a8fSAndreas Gohr <div class="nav-panel level1"> 11d23a0779SMichael Große <ul id="sidebar-site-tools" class="toollist"> 126c61749bSAndreas Gohr <?php 136b6e2bd6SMichael Große if (file_exists(DOKU_INC . 'inc/Menu/SiteMenu.php')) { 14d23a0779SMichael Große echo (new \dokuwiki\Menu\SiteMenu())->getListItems('toollist__listitem '); 156b6e2bd6SMichael Große } else { 166b6e2bd6SMichael Große //Pre-Greebo Backwards compatibility 176c61749bSAndreas Gohr tpl_toolsevent( 186c61749bSAndreas Gohr 'sitetools', 196c61749bSAndreas Gohr array( 206c61749bSAndreas Gohr 'recent' => tpl_action('recent', 1, 'li', 1), 216c61749bSAndreas Gohr 'media' => tpl_action('media', 1, 'li', 1), 226c61749bSAndreas Gohr 'index' => tpl_action('index', 1, 'li', 1), 236c61749bSAndreas Gohr ) 246c61749bSAndreas Gohr ); 256b6e2bd6SMichael Große } 266c61749bSAndreas Gohr ?> 276c61749bSAndreas Gohr </ul> 286c61749bSAndreas Gohr </div> 296c61749bSAndreas Gohr</nav> 306c61749bSAndreas Gohr 316c61749bSAndreas Gohr 326c61749bSAndreas Gohr<nav class="nav-usermenu"> 33b92c574dSJana Deutschländer <div class="nav"><a href="#sidebar-user-tools" role="heading" aria-level="2"> 34fa1028adSAndreas Gohr <span class="ico"><?php echo inlineSVG(__DIR__ . '/../img/account-settings.svg') ?></span> 35fa1028adSAndreas Gohr <span class="lbl"><?php echo $lang['user_tools']; ?></span> 369e264cdcSAndreas Gohr </a></div> 37373f4a8fSAndreas Gohr <div class="nav-panel level1"> 38d23a0779SMichael Große <ul id="sidebar-user-tools" class="toollist"> 396c61749bSAndreas Gohr <?php /* dokuwiki user tools */ 406b6e2bd6SMichael Große if (file_exists(DOKU_INC . 'inc/Menu/UserMenu.php')) { 41d23a0779SMichael Große echo (new \dokuwiki\Menu\UserMenu())->getListItems('toollist__listitem '); 426b6e2bd6SMichael Große } else { 436b6e2bd6SMichael Große //Pre-Greebo Backwards compatibility 446c61749bSAndreas Gohr tpl_toolsevent( 456c61749bSAndreas Gohr 'usertools', 466c61749bSAndreas Gohr array( 476c61749bSAndreas Gohr 'login' => tpl_action('login', 1, 'li', 1), 48ef84665dSAndreas Gohr 'profile' => tpl_action('profile', 1, 'li', 1), 496c61749bSAndreas Gohr 'admin' => tpl_action('admin', 1, 'li', 1), 506c61749bSAndreas Gohr 'register' => tpl_action('register', 1, 'li', 1), 516c61749bSAndreas Gohr ) 526c61749bSAndreas Gohr ); 536b6e2bd6SMichael Große } 546c61749bSAndreas Gohr ?> 556c61749bSAndreas Gohr </ul> 566c61749bSAndreas Gohr </div> 576c61749bSAndreas Gohr</nav> 586c61749bSAndreas Gohr 591fc95e4dSAndreas Gohr<?php 601fc95e4dSAndreas Gohr/** @var helper_plugin_starred $plugin_starred */ 611fc95e4dSAndreas Gohr$plugin_starred = plugin_load('helper', 'starred'); 621fc95e4dSAndreas Gohr$stars = array(); 631fc95e4dSAndreas Gohrif($plugin_starred) $stars = $plugin_starred->loadStars(); 641fc95e4dSAndreas Gohrif($stars): 651fc95e4dSAndreas Gohr ?> 661fc95e4dSAndreas Gohr <nav class="nav-starred"> 67b92c574dSJana Deutschländer <div class="nav"><a href="#sidebar-menu-starred" role="heading" aria-level="2"> 681fc95e4dSAndreas Gohr <span class="ico"><?php echo inlineSVG(__DIR__ . '/../img/star-circle.svg') ?></span> 691fc95e4dSAndreas Gohr <span class="lbl"><?php echo tpl_getLang('head_menu_starred'); ?></span> 709e264cdcSAndreas Gohr </a></div> 711fc95e4dSAndreas Gohr <div class="nav-panel level1 plugin_starred"> 72b92c574dSJana Deutschländer <ul id="sidebar-menu-starred"> 731fc95e4dSAndreas Gohr <?php 741fc95e4dSAndreas Gohr foreach($stars as $pid => $time) { 751fc95e4dSAndreas Gohr echo '<li>'; 761fc95e4dSAndreas Gohr echo $plugin_starred->starHtml($ID, $pid); 771fc95e4dSAndreas Gohr echo ' '; 781fc95e4dSAndreas Gohr echo html_wikilink(":$pid"); 791fc95e4dSAndreas Gohr echo '</li>'; 801fc95e4dSAndreas Gohr } 811fc95e4dSAndreas Gohr ?> 821fc95e4dSAndreas Gohr </ul> 831fc95e4dSAndreas Gohr </div> 841fc95e4dSAndreas Gohr </nav> 851fc95e4dSAndreas Gohr<?php endif; ?> 861fc95e4dSAndreas Gohr 871fc95e4dSAndreas Gohr 886c61749bSAndreas Gohr 896c61749bSAndreas Gohr<?php if($conf['breadcrumbs']): ?> 904055de39SAndreas Gohr <nav class="nav-trace"> 91b92c574dSJana Deutschländer <div class="nav"><a href="#sidebar-menu_trace" role="heading" aria-level="2"> 92fa1028adSAndreas Gohr <span class="ico"><?php echo inlineSVG(__DIR__ . '/../img/apple-safari.svg') ?></span> 93fa1028adSAndreas Gohr <span class="lbl"><?php echo tpl_getLang('head_menu_trace'); ?></span> 949e264cdcSAndreas Gohr </a></div> 95373f4a8fSAndreas Gohr <div class="nav-panel level1"> 96b92c574dSJana Deutschländer <ul id="sidebar-menu_trace"> 976c61749bSAndreas Gohr <?php /* trace breadcrumbs as list */ 986c61749bSAndreas Gohr // FIXME move to helper class 996c61749bSAndreas Gohr $crumbs = breadcrumbs(); 1006c61749bSAndreas Gohr $crumbs = array_reverse($crumbs, true); 1016c61749bSAndreas Gohr foreach($crumbs as $id => $name) { 1026c61749bSAndreas Gohr echo '<li>'; 10383e6372cSAndreas Gohr tpl_link(wl($id), hsc($name), 'title="' . $id . '"'); 1046c61749bSAndreas Gohr echo '</li>'; 1056c61749bSAndreas Gohr } 1066c61749bSAndreas Gohr ?> 1076c61749bSAndreas Gohr </ul> 1086c61749bSAndreas Gohr </div> 1094055de39SAndreas Gohr </nav> 1106c61749bSAndreas Gohr<?php endif ?> 111