<?php /** * DokuWiki Apricot Template * * @link http://dokuwiki.org/template:apricot * @author Arun Chaganty <arunchaganty@gmail.com> * @author Andreas Gohr <andi@splitbrain.org> * @author Anika Henke <anika@selfthinker.org> */ if (!defined('DOKU_INC')) die(); /* must be run from within DokuWiki */ @require_once(dirname(__FILE__).'/tpl_functions.php'); /* include hook for template functions */ ?> <div> <p class="blogtitle"><?php tpl_link(wl(),$conf['title'],'id="dokuwiki__top" class="hidelink" accesskey="h" title="[H]"') ?></p> <?php if (tpl_getConf('tagline')): ?> <p class="description"><?= tpl_getConf('tagline') ?></p> <?php endif ?> <ul class="a11y"> <li><a href="#dokuwiki__content"><?= tpl_getLang('skip_to_content') ?></a></li> </ul> </div> <div class="tools"> <!-- USER TOOLS --> <?php if ($conf['useacl'] && $showTools): ?> <div id="dokuwiki__usertools"> <h3 class="a11y"><?= tpl_getLang('user_tools') ?></h3> <ul> <?php /* the optional second parameter of tpl_action() switches between a link and a button, e.g. a button inside a <li> would be: tpl_action('edit',0,'li') */ if ($_SERVER['REMOTE_USER']) { echo '<li class="user">'; tpl_userinfo(); /* 'Logged in as ...' */ echo '</li>'; } tpl_action('admin', 1, 'li'); _tpl_action('userpage', 1, 'li'); tpl_action('profile', 1, 'li'); _tpl_action('register', 1, 'li'); /* DW versions > 2011-02-20 can use the core function tpl_action('register', 1, 'li') */ tpl_action('login', 1, 'li'); ?> </ul> </div> <?php endif ?> </div>