1<?php
2/**
3 * DokuWiki Arctic Template
4 *
5 * This is the template you need to change for the overall look
6 * of DokuWiki.
7 *
8 * You should leave the doctype at the very top - It should
9 * always be the very first line of a document.
10 *
11 * @author Andreas Gohr <andi@splitbrain.org>
12 * @author Michael Klier <chi@chimeric.de>
13 * @link   http://wiki.splitbrain.org/template:arctic
14 * @link   http://chimeric.de/projects/dokuwiki/template/arctic
15 */
16
17// must be run from within DokuWiki
18if (!defined('DOKU_INC')) die();
19
20// include custom arctic template functions
21require_once(dirname(__FILE__).'/tpl_functions.php');
22?>
23<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
24 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
25<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $conf['lang']?>"
26 lang="<?php echo $conf['lang']?>" dir="<?php echo $lang['direction']?>">
27<head>
28  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
29  <title>
30        <?php echo strip_tags($conf['title'])?> &gt;&gt; <?php tpl_pagetitle()?>
31
32  </title>
33
34  <?php tpl_metaheaders()?>
35  <link rel="shortcut icon" href="<?php echo DOKU_TPL?>images/favicon.ico" />
36
37
38</head>
39<body>
40<div id="wrapper">
41  <div class="dokuwiki">
42    <?php html_msgarea()?>
43    <div class="head">
44      <div class="menu" id="menu" style="float: left">
45        <div class="menu-title small darkblue awesome">Actions</div>
46        <div class="menu-content">
47          <?php
48            if(!tpl_getConf('closedwiki') || (tpl_getConf('closedwiki') && isset($_SERVER['REMOTE_USER']))) {
49
50                    // check if new page button plugin is available
51                    if(!plugin_isdisabled('npd') && ($npd =& plugin_load('helper', 'npd'))) {
52                      $npd->html_new_page_button();
53                    }
54                    tpl_actionlink('edit');
55                    tpl_actionlink('history');
56            }
57                if(!tpl_getConf('closedwiki') || (tpl_getConf('closedwiki') && isset($_SERVER['REMOTE_USER']))) {
58                  tpl_actionlink('admin');
59                  tpl_actionlink('profile');
60                  tpl_actionlink('recent');
61                  tpl_actionlink('index');
62                  tpl_actionlink('login');
63                } else {
64                  tpl_actionlink('login');
65                }
66          ?>
67        </div>
68    </div>
69    <div class="stylehead">
70          <?php tpl_link(wl(),$conf['title'],'name="dokuwiki__top" accesskey="h" title="[ALT+H]"')?>
71          &gt;&gt; <?php tpl_link(wl($ID,'do=backlink'),tpl_pagetitle($ID,true))?>
72      </div>
73      <div id="search"><?php if(tpl_getConf('sidebar') == 'none') tpl_searchform(); ?></div>
74	</div>
75
76    <?php flush()?>
77
78      <div class="page">
79        <?php tpl_content() ?>
80      </div>
81
82      <div class="stylefoot">
83        <div class="meta">
84          <div class="user">
85          <?php tpl_userinfo()?>
86          </div>
87          <div class="doc">
88          <?php tpl_pageinfo()?>
89          </div>
90        </div>
91      </div>
92
93    <div class="clearer"></div>
94
95    <?php flush()?>
96
97  </div>
98</div>
99
100<div class="no"><?php /* provide DokuWiki housekeeping, required in all templates */ tpl_indexerWebBug()?></div>
101</body>
102</html>
103