1<?php
2
3if (!defined('DOKU_INC')) die();
4
5if (empty($_REQUEST['do']) || in_array($_REQUEST['do'], array('revisions', 'show', 'edit'))) {
6    $page_type = 'content-page';
7} else {
8    $page_type = 'do-page';
9}
10
11?>
12<!DOCTYPE html>
13<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $conf['lang']?>"
14 lang="<?php echo $conf['lang']?>" dir="<?php echo $lang['direction']?>">
15<head>
16  <meta charset="utf-8" />
17  <title><?php tpl_pagetitle() ?> - <?php echo strip_tags($conf['title']) ?></title>
18  <link rel="icon" href="/images/favicon.ico" type="image/ico"/>
19  <?php tpl_metaheaders() ?>
20
21  <style type="text/css">
22  <?php if (tpl_getConf('width') != 'auto') : ?>
23  .h6e-main-content {
24      width:<?php echo tpl_getConf('width') ?>;
25      padding-left:2.5em;
26      padding-right:2.5em;
27  }
28  <?php endif ?>
29  .h6e-post-content {
30      font-size:<?php echo tpl_getConf('font-size') ?>;
31  }
32  body {
33      background:<?php echo tpl_getConf('background') ?>;
34      color:<?php echo tpl_getConf('font-color') ?>;
35  }
36  .h6e-main-content {
37      background-color:<?php echo tpl_getConf('content-background-color') ?>;
38      border:<?php echo tpl_getConf('border') ?>;
39  }
40  .h6e-entry-title, .h6e-entry-title a, .h6e-entry-title a:visited, .do-page h1, .content-page h2 {
41      color:<?php echo tpl_getConf('title-color') ?>;
42  }
43  </style>
44
45</head>
46
47<body class="h6e-layout">
48
49<div class="dokuwiki">
50
51  <?php if ((isset($_SERVER['REMOTE_USER'])) || (!tpl_getConf('hide-login-block'))) { include dirname(__FILE__) . '/top.php'; } ?>
52
53  <div class="<?php echo $page_type ?> h6e-main-content">
54
55    <?php /* if($conf['breadcrumbs']){?>
56    <div class="breadcrumbs">
57      <?php tpl_breadcrumbs() ?>
58    </div>
59    <?php } */?>
60
61    <?php if (class_exists('Ld_Ui') && method_exists('Ld_Ui', 'topNav')) { Ld_Ui::topNav(); } ?>
62
63    <?php /*
64    <ul class="h6e-tabs">
65      <li><?php tpl_actionlink('history') ?></li>
66      <li><?php tpl_actionlink('edit') ?></li>
67    </ul>
68    */ ?>
69
70    <?php if (tpl_getConf('content-block')){?>
71        <div class="h6e-block">
72    <?php } else { ?>
73        <div>
74    <?php } ?>
75
76    <?php if (!tpl_getConf('hide-entry-title')){?>
77        <h2 class="h6e-entry-title">
78        <?php tpl_pagetitle($ID) ?>
79        </h2>
80    <?php }?>
81
82    <?php if($conf['youarehere']){?>
83    <div class="breadcrumbs">
84      <?php tpl_youarehere() ?>
85    </div>
86    <?php }?>
87
88    <div id="wikipage" class="h6e-post-content">
89        <?php tpl_content()?>
90    </div>
91
92    <?php if(empty($_REQUEST['do'])){?>
93
94    <div class="pageinfo">
95        <?php tpl_pageinfo()?>
96    </div>
97
98    <div class="actions actions-page">
99        <?php tpl_button('edit')?>
100        <?php tpl_button('history')?>
101        <?php tpl_button('revert')?>
102    </div>
103
104    <?php }?>
105
106    </div>
107
108    <div class="h6e-simple-footer">
109
110      <div class="actions actions-site">
111          <div class="a">
112              <?php tpl_button('recent')?>
113              <?php tpl_button('index')?>
114          </div>
115          <div class="b">
116              <?php tpl_searchform() ?>
117          </div>
118      </div>
119
120    </div>
121
122  </div>
123  <div class="footer-text"><?php echo tpl_getConf('footer-text') ?></div>
124
125</div>
126
127<div class="no"><?php /* provide DokuWiki housekeeping, required in all templates */ tpl_indexerWebBug()?></div>
128
129</body>
130</html>
131