1<?php
2/**
3 * DokuWiki Apricot Template
4 *
5 * @link   http://dokuwiki.org/template:apricot
6 * @author Arun Chaganty <arunchaganty@gmail.com>
7 * @author Andreas Gohr <andi@splitbrain.org>
8 * @author Anika Henke <anika@selfthinker.org>
9 */
10
11if (!defined('DOKU_INC')) die(); /* must be run from within DokuWiki */
12@require_once(dirname(__FILE__).'/tpl_functions.php'); /* include hook for template functions */
13?>
14
15<div>
16  <p class="blogtitle"><?php tpl_link(wl(),$conf['title'],'id="dokuwiki__top" class="hidelink" accesskey="h" title="[H]"') ?></p>
17  <?php if (tpl_getConf('tagline')): ?>
18      <p class="description"><?= tpl_getConf('tagline') ?></p>
19  <?php endif ?>
20
21  <ul class="a11y">
22      <li><a href="#dokuwiki__content"><?= tpl_getLang('skip_to_content') ?></a></li>
23  </ul>
24</div>
25
26<div class="tools">
27  <!-- USER TOOLS -->
28  <?php if ($conf['useacl'] && $showTools): ?>
29    <div id="dokuwiki__usertools">
30      <h3 class="a11y"><?= tpl_getLang('user_tools') ?></h3>
31      <ul>
32        <?php /* the optional second parameter of tpl_action() switches between a link and a button,
33               e.g. a button inside a <li> would be: tpl_action('edit',0,'li') */
34          if ($_SERVER['REMOTE_USER']) {
35            echo '<li class="user">';
36            tpl_userinfo(); /* 'Logged in as ...' */
37            echo '</li>';
38          }
39          tpl_action('admin', 1, 'li');
40          _tpl_action('userpage', 1, 'li');
41          tpl_action('profile', 1, 'li');
42          _tpl_action('register', 1, 'li'); /* DW versions > 2011-02-20 can use the core function tpl_action('register', 1, 'li') */
43          tpl_action('login', 1, 'li');
44        ?>
45    </ul>
46  </div>
47  <?php endif ?>
48</div>
49
50