1<?php
2/**
3 * DokuWiki Default 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 * @link   http://dokuwiki.org/templates
12 * @author Andreas Gohr <andi@splitbrain.org>
13 */
14
15// must be run from within DokuWiki
16if (!defined('DOKU_INC')) die();
17
18include(dirname(__FILE__).'/sidebar.php');
19
20?>
21<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
22 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
23<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $conf['lang']?>"
24 lang="<?php echo $conf['lang']?>" dir="<?php echo $lang['direction']?>">
25<head>
26  <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
27  <title>
28    <?php //tpl_pagetitle()?>
29    [<?php echo strip_tags($conf['title'])?>]
30  </title>
31
32  <?php tpl_metaheaders()?>
33  <?php echo tpl_favicon(array('favicon', 'mobile')) ?>
34
35  <?php /*old includehook*/ @include(dirname(__FILE__).'/meta.html')?>
36</head>
37
38<body>
39<?php /*old includehook*/ @include(dirname(__FILE__).'/topheader.html')?>
40<div class="dokuwiki">
41  <?php html_msgarea()?>
42
43  <div class="stylehead">
44
45    <div class="header">
46      <div class="pagename">
47        <!--[[<?php tpl_link(wl($ID,'do=backlink'),tpl_pagetitle($ID,true),'title="'.$lang['btn_backlink'].'"')?>]]-->
48        <a href="/"><img src="/lib/tpl/default/icon.png"  alt="knotux" /></a>
49        <?php tpl_link(wl(),$conf['title'],'name="dokuwiki__top" id="dokuwiki__top" accesskey="h" title="[H]"')?>
50      </div>
51      <div class="logo">
52
53      </div>
54      <div style="float:right; width: 440px;  padding: 10px; background-color: #2e3436; border: 1px solid #AAAAAA;">
55      edit to lib/tpl/knotux/main.php
56      </div>
57
58      <!-- google plus button -->
59      <script type="text/javascript">
60  window.___gcfg = {lang: 'ru'};
61
62  (function() {
63    var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
64    po.src = 'https://apis.google.com/js/plusone.js';
65    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
66  })();
67</script>
68
69      <div class="clearer"></div>
70    </div>
71
72    <?php /*old includehook*/ @include(dirname(__FILE__).'/header.html')?>
73
74    <div class="bar" id="bar__top">
75      <div class="bar-left" id="bar__topleft">
76        <?php tpl_button('edit')?>
77        <?php /*tpl_button('history')*/?>
78        <?php tpl_button('login')?>
79        <?php tpl_button('register')?>
80      </div>
81
82      <div class="bar-right" id="bar__topright">
83        <?php /*tpl_button('recent')*/?>
84        <?php tpl_searchform()?>&nbsp;
85      </div>
86
87      <div class="clearer"></div>
88    </div>
89
90    <?php if($conf['breadcrumbs']){?>
91    <div class="breadcrumbs">
92      <?php /*tpl_breadcrumbs()*/echo "<br>";?>
93      <?php //tpl_youarehere() //(some people prefer this)?>
94    </div>
95    <?php }?>
96
97    <?php if($conf['youarehere']){?>
98    <div class="breadcrumbs">
99      <?php tpl_youarehere() ?>
100    </div>
101    <?php }?>
102
103  </div>
104  <?php tpl_flush()?>
105
106  <?php /*old includehook*/ @include(dirname(__FILE__).'/pageheader.html')?>
107  <?php html_sidebar()?>
108  <?php if($ACT == 'show') {?>
109  <div class="page_with_sidebar">
110  <?php }else {?>
111  <div class="page">
112  <?php } ?>
113
114  <div class="page">
115    <!-- wikipage start -->
116    <?php tpl_content()?>
117    <!-- wikipage stop -->
118  </div>
119<hr>
120  <div class="clearer"></div>
121
122  <?php tpl_flush()?>
123
124  <div class="stylefoot">
125
126    <div class="meta">
127      <div class="user">
128        <?php tpl_userinfo()?>
129      </div>
130      <div class="doc">
131        <?php /*tpl_pageinfo()*/?>
132      </div>
133    </div>
134
135   <?php /*old includehook*/ @include(dirname(__FILE__).'/pagefooter.html')?>
136
137    <div class="bar" id="bar__bottom">
138      <div class="bar-left" id="bar__bottomleft">
139        <?php tpl_button('edit')?>
140        <?php /*tpl_button('history')*/?>
141        <?php /*tpl_button('revert')*/?>
142      </div>
143      <div class="bar-right" id="bar__bottomright">
144        <?php tpl_button('subscribe')?>
145        <?php /*tpl_button('media')*/?>
146        <?php tpl_button('register')?>
147        <?php tpl_button('admin')?>
148        <?php tpl_button('profile')?>
149        <?php tpl_button('login')?>
150        <?php /*tpl_button('index')*/?>
151        <?php tpl_button('top')?>&nbsp;
152      </div>
153      <div class="clearer"></div>
154    </div>
155
156  </div>
157
158  <?php //tpl_license(false);?>
159  <?php echo'<center>KnoTux 2011</center>';?>
160
161</div>
162<?php /*old includehook*/ @include(dirname(__FILE__).'/footer.html')?>
163
164<div class="no"><?php /* provide DokuWiki housekeeping, required in all templates */ tpl_indexerWebBug()?></div>
165</body>
166</html>
167