1<?php
2/**
3 * Template header, included in the main and detail files
4 */
5
6// must be run from within DokuWiki
7if (!defined('DOKU_INC')) die();
8?>
9
10<!-- ********** HEADER ********** -->
11<div id="dokuwiki__header"><div class="pad group">
12
13    <?php tpl_includeFile('header.html') ?>
14
15<!-- logo, wiki title, tagline -->
16    <div class="headings group">
17        <ul class="a11y skip">
18            <li><a href="#dokuwiki__content"><?php echo $lang['skip_to_content']; ?></a></li>
19        </ul>
20
21        <h1><?php
22            // get logo either out of the template images folder or data/media folder
23            $logoSize = array();
24            $logo = tpl_getMediaFile(array(':wiki:logo.jpg', ':logo.jpg', 'images/logo.jpg'), false, $logoSize);
25
26            // display logo and wiki title in a link to the home page
27            tpl_link(
28                wl(),
29                '<img src="'.$logo.'" '.$logoSize[3].' alt="" /> ',
30                'accesskey="h" title="[H]"'
31            );
32        ?></h1>
33        <?php if ($conf['tagline']): ?>
34            <p class="claim"><?php echo $conf['tagline']; ?></p>
35        <?php endif ?>
36    </div>
37
38
39    <hr class="a11y" />
40</div></div><!-- /header -->
41