structure

This commit is contained in:
Jana Deutschländer 2016-11-22 17:24:51 +01:00
commit cf24d7da37
12 changed files with 235 additions and 41 deletions

View file

@ -12,7 +12,7 @@
<span class="skip">
<a href="#content"><?php echo tpl_getLang('direct_content_main'); ?></a><span class="sr-out"> /</span>
<a href="#dokuwiki__usertools"><?php echo $lang['user_tools']; ?></a><span class="sr-out"> /</span>
<a href="#nav-main"><?php echo tpl_getLang('direct_menu_main'); ?>
<a href="#nav-main"><?php echo tpl_getLang('direct_menu_main'); ?></a>
</span>
</p>

19
tpl/nav-magicmatcher.php Normal file
View file

@ -0,0 +1,19 @@
<?php
if (!defined('DOKU_INC')) die();
?>
<div id="dokuwiki_magic-matcher" class="magic-matcher no-print">
<div class="container">
<?php
$mm = plugin_load('helper', 'magicmatcher_context');
if($mm){
echo "<h6 class=\"sr-only\" role=\"heading\" aria-level=\"2\">";
echo tpl_getLang('head_magic_matcher');
echo "</h6>";
$mm->tpl();
}
?>
</div><!-- .container -->
</div><!-- .magic-matcher -->

24
tpl/nav-usertools.php Normal file
View file

@ -0,0 +1,24 @@
<?php
if (!defined('DOKU_INC')) die();
if ($conf['useacl'] && $showTools): ?>
<nav id="dokuwiki__usertools" class="nav-usertools">
<h6 class="sr-only" role="heading" aria-level="2"><?php echo $lang['user_tools']; ?></h6>
<ul>
<?php
if (!empty($_SERVER['REMOTE_USER'])) {
echo '<li class="user"><span class="sr-only">'.$lang['loggedinas'].' </span>'.userlink().'</li>';
}?>
<li class="log"><?php tpl_actionlink('login'); ?></li>
<?php tpl_toolsevent('usertools', array(
'admin' => tpl_action('admin', 1, 'li', 1),
'userpage' => _tpl_action('userpage', 1, 'li', 1),
'profile' => tpl_action('profile', 1, 'li', 1),
'register' => tpl_action('register', 1, 'li', 1),
)); ?>
</ul>
</nav><!-- #dokuwiki__usertools -->
<?php endif ?>