You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

89 lines
2.9 KiB

  1. <?php
  2. /**
  3. * Template header, included in the main and detail files
  4. */
  5. // must be run from within DokuWiki
  6. if (!defined('DOKU_INC')) die();
  7. ?>
  8. <!-- ********** HEADER ********** -->
  9. <header id="dokuwiki__header"><div class="pad group">
  10. <?php tpl_includeFile('header.html') ?>
  11. <div class="headings group">
  12. <ul class="a11y skip">
  13. <li><a href="#dokuwiki__content"><?php echo $lang['skip_to_content']; ?></a></li>
  14. </ul>
  15. <h1 class="logo"><?php
  16. // get logo either out of the template images folder or data/media folder
  17. $logoSize = [];
  18. $logo = tpl_getMediaFile([
  19. ':wiki:logo.svg', ':logo.svg',
  20. ':wiki:logo.png', ':logo.png',
  21. 'images/logo.svg', 'images/logo.png'
  22. ], false, $logoSize);
  23. // display logo and wiki title in a link to the home page
  24. tpl_link(
  25. wl(),
  26. '<img src="' . $logo . '" ' . ($logoSize ? $logoSize[3] : '') . ' alt="" />' .
  27. '<span>' . $conf['title'] . '</span>',
  28. 'accesskey="h" title="' . tpl_getLang('home') . ' [h]"'
  29. );
  30. ?></h1>
  31. <?php if ($conf['tagline']) : ?>
  32. <p class="claim"><?php echo $conf['tagline']; ?></p>
  33. <?php endif ?>
  34. </div>
  35. <div class="tools group">
  36. <!-- USER TOOLS -->
  37. <?php if ($conf['useacl']) : ?>
  38. <div id="dokuwiki__usertools">
  39. <h3 class="a11y"><?php echo $lang['user_tools']; ?></h3>
  40. <ul>
  41. <?php
  42. if (!empty($_SERVER['REMOTE_USER'])) {
  43. echo '<li class="user">';
  44. tpl_userinfo(); /* 'Logged in as ...' */
  45. echo '</li>';
  46. }
  47. echo (new \dokuwiki\Menu\UserMenu())->getListItems('action ');
  48. ?>
  49. </ul>
  50. </div>
  51. <?php endif ?>
  52. <!-- SITE TOOLS -->
  53. <div id="dokuwiki__sitetools">
  54. <h3 class="a11y"><?php echo $lang['site_tools']; ?></h3>
  55. <?php tpl_searchform(); ?>
  56. <div class="mobileTools">
  57. <?php echo (new \dokuwiki\Menu\MobileMenu())->getDropdown($lang['tools']); ?>
  58. </div>
  59. <ul>
  60. <?php echo (new \dokuwiki\Menu\SiteMenu())->getListItems('action ', false); ?>
  61. </ul>
  62. </div>
  63. </div>
  64. <!-- BREADCRUMBS -->
  65. <?php if ($conf['breadcrumbs'] || $conf['youarehere']) : ?>
  66. <div class="breadcrumbs">
  67. <?php if ($conf['youarehere']) : ?>
  68. <div class="youarehere"><?php tpl_youarehere() ?></div>
  69. <?php endif ?>
  70. <?php if ($conf['breadcrumbs']) : ?>
  71. <div class="trace"><?php tpl_breadcrumbs() ?></div>
  72. <?php endif ?>
  73. </div>
  74. <?php endif ?>
  75. <hr class="a11y" />
  76. </div></header><!-- /header -->