1<?php
2/**
3 * Typowiki
4 *
5 * @author   axlevxa
6 * @license  GPL 2 (http://www.gnu.org/licenses/gpl.html)
7 */
8
9if (!defined('DOKU_INC')) die(); /* must be run from within DokuWiki */
10@require_once(dirname(__FILE__).'/tpl_functions.php'); /* include hook for template functions */
11header('X-UA-Compatible: IE=edge,chrome=1');
12
13$showTools = !tpl_getConf('hideTools') || ( tpl_getConf('hideTools') && !empty($_SERVER['REMOTE_USER']) );
14$showSidebar = page_findnearest($conf['sidebar']) && ($ACT=='show');
15?><!DOCTYPE html>
16<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $conf['lang'] ?>"
17  lang="<?php echo $conf['lang'] ?>" dir="<?php echo $lang['direction'] ?>" class="no-js">
18<head>
19    <meta charset="UTF-8" />
20    <title><?php tpl_pagetitle() ?> | <?php echo strip_tags($conf['title']) ?></title>
21    <script>(function(H){H.className=H.className.replace(/\bno-js\b/,'js')})(document.documentElement)</script>
22    <?php tpl_metaheaders() ?>
23    <meta name="viewport" content="width=device-width,initial-scale=1" />
24    <?php echo tpl_favicon(array('favicon', 'mobile')) ?>
25    <?php tpl_includeFile('meta.html') ?>
26    <link href="<?php echo tpl_basedir(); ?>assets/fonts/microns/microns.css" rel="stylesheet">
27</head>
28
29<body>
30    <?php /* with these Conditional Comments you can better address IE issues in CSS files,
31             precede CSS rules by #IE8 for IE8 (div closes at the bottom) */ ?>
32    <!--[if lte IE 8 ]><div id="IE8"><![endif]-->
33
34    <?php /* the "dokuwiki__top" id is needed somewhere at the top, because that's where the "back to top" button/link links to */ ?>
35    <?php /* tpl_classes() provides useful CSS classes; if you choose not to use it, the 'dokuwiki' class at least
36             should always be in one of the surrounding elements (e.g. plugins and templates depend on it) */ ?>
37    <div id="dokuwiki__site"><div id="dokuwiki__top" class="site <?php echo tpl_classes(); ?> <?php
38        echo ($showSidebar) ? 'hasSidebar' : ''; ?>">
39        <?php tpl_includeFile('header.html') ?>
40
41        <!-- ********** HEADER ********** -->
42        <nav>
43            <div class="nav-bar dark">
44                <div class="container">
45                    <div class="row">
46                    <div class="col-3 col-md-6 col-lg-7 nav-brand">
47                      <?php /* Uncomment the line below for a custom logo. Upload a SQUARE (70x70) logo into the data/media folder (root of the media manager) and replace 'logo.png' accordingly: */ ?>
48                      <?php
49                      $logo = tpl_getMediaFile(array(':wiki:logo.png', ':logo.png', 'images/logo.png', ':wiki:dokuwiki-128.png'));
50                      tpl_link(wl(),'<img src="'.$logo.'" alt="" />','id="wiki-logo" accesskey="h" title="[H]"') ?>
51                      <h2><?php tpl_link(wl(),$conf['title'],'accesskey="h" title="[H]"') ?></h2>
52                    </div>
53                    <div class="col-9 col-md-6 col-lg-5 nav-actions">
54                        <span id="doku-action-btn"><?php tpl_button('edit')?></span>
55                        <button id="menu-toggle" onclick="togglediv('menu_unified')"><?php echo tpl_getLang('uni_menu') ?> <span class="mu mu-menu txt-12" aria-hidden="true"></span></button>
56                    </div>
57
58                    </div>
59                </div>
60            </div>
61        <ul class="a11y skip">
62            <a href="#dokuwiki__content"><?php echo $lang['skip_to_content'] ?></a>
63        </ul>
64        <div class="nav-expanded dark">
65            <div id="menu_unified" class="nav-expanded-inner">
66                <div class="container">
67                    <div class="row">
68                        <div class="col-sm-7 left">
69                            <span class="mu mu-search menu-icon" aria-hidden="true"></span>
70                            <?php tpl_searchform() ?>
71                        </div>
72                        <div class="col-sm-5 right">
73                          <span class="mu mu-user menu-icon" aria-hidden="true"></span><?php
74                              if (!empty($_SERVER['REMOTE_USER'])) {
75                                  echo '<p class="ui-title">';
76                                  tpl_userinfo(); /* 'Logged in as ...' */
77                                  echo '</p>';
78                              }
79                          ?>
80                          <ul role="navigation">
81                              <?php tpl_toolsevent('usertools', array(
82                                  'userpage'  => _tpl_action('userpage', 1, 'li', 1),
83                                  'profile'   => tpl_action('profile', 1, 'li', 1),
84                                  'register'  => tpl_action('register', 1, 'li', 1),
85                                  'login'     => tpl_action('login', 1, 'li', 1),
86                                  'admin'     => tpl_action('admin', 1, 'li', 1),
87                              )); ?>
88                          </ul>
89                        </div>
90                    </div>
91                </div>
92            </div>
93        </div>
94    </nav>
95
96        <div class="wrapper">
97
98            <!-- ********** CONTENT ********** -->
99        <div class="usr-content">
100            <div id="dokuwiki__content">
101                <div class="container usr-container">
102                        <?php if($conf['breadcrumbs']){ ?>
103                                        <div class="breadcrumbs"><?php tpl_breadcrumbs() ?></div>
104                                    <?php } ?>
105                                    <?php if($conf['youarehere']){ ?>
106                                        <div class="breadcrumbs"><?php tpl_youarehere() ?></div>
107                        <?php } ?>
108                    <div class="row usr-inner">
109                        <div class="col-md-9 col-main">
110                        <?php tpl_flush() /* flush the output buffer */ ?>
111                        <?php tpl_includeFile('pageheader.html') ?>
112
113                            <div class="page">
114                                <?php html_msgarea() /* occasional error and info messages on top of the page */ ?>
115
116                                <!-- BREADCRUMBS -->
117
118                                <!-- wikipage start -->
119                                <?php tpl_content(false) /* the main content */ ?>
120                                <!-- wikipage stop -->
121                                <div class="clearer"></div>
122                            </div>
123                        </div>
124                        <div class="col-md-3 col-side">
125                            <?php tpl_flush() ?>
126                            <div class="nav-side" role="navigation">
127                                <div class="nav-side-inner">
128                                    <?php tpl_toc()?>
129
130                                    <!-- ********** ASIDE ********** -->
131                                    <?php if ($showSidebar): ?>
132                                        <div id="dokuwiki__aside"><div class="pad aside include group ul-raw">
133                                            <?php tpl_includeFile('sidebarheader.html') ?>
134                                            <?php tpl_include_page($conf['sidebar'], 1, 1) /* includes the nearest sidebar page */ ?>
135                                            <?php tpl_includeFile('sidebarfooter.html') ?>
136                                            <div class="clearer"></div>
137                                        </div></div><!-- /aside -->
138                                    <?php endif; ?>
139
140                                    <div class="back-to-top-wrapper">
141                                        <a href="#dokuwiki__top" class="back-to-top-link primary"><span class="mu mu-arrow-up"></span> Back to Top</a>
142                                    </div>
143                                </div>
144                            </div>
145                            <?php tpl_includeFile('pagefooter.html') ?>
146                        </div>
147                    </div><!-- /row -->
148                </div><!-- /container -->
149            </div><!-- /content -->
150        </div>
151
152            <div class="clearer"></div>
153            <hr class="a11y" />
154
155        </div><!-- /wrapper -->
156
157        <!-- ********** FOOTER ********** -->
158        <footer id="dokuwiki__footer">
159            <div class="container">
160                <div class="row">
161                    <div class="col-sm-6 col-md-8">
162                        <div class="doc"><?php tpl_pageinfo() /* 'Last modified' etc */ ?></div>
163                        <?php tpl_license('button') /* content license, parameters: img=*badge|button|0, imgonly=*0|1, return=*0|1 */ ?>
164                    </div>
165                    <div class="col-sm-3 col-md-2">
166                        <!-- PAGE ACTIONS -->
167                        <?php if ($showTools): ?>
168                            <div id="dokuwiki__pagetools">
169                                <ul class="footer-menu ul-raw">
170                                    <?php tpl_toolsevent('pagetools', array(
171                                        'edit'      => tpl_action('edit', 1, 'li', 1),
172                                        'discussion'=> _tpl_action('discussion', 1, 'li', 1),
173                                        'revisions' => tpl_action('revisions', 1, 'li', 1),
174                                        'backlink'  => tpl_action('backlink', 1, 'li', 1),
175                                        'subscribe' => tpl_action('subscribe', 1, 'li', 1),
176                                        'revert'    => tpl_action('revert', 1, 'li', 1),
177                                        'top'       => tpl_action('top', 1, 'li', 1),
178                                    )); ?>
179                                </ul>
180                            </div>
181                        <?php endif; ?>
182                    </div>
183                    <div class="col-sm-3 col-md-2">
184                        <!-- SITE TOOLS -->
185                        <div id="dokuwiki__sitetools">
186                            <ul class="footer-menu ul-raw">
187                                <?php tpl_toolsevent('sitetools', array(
188                                    'recent'    => tpl_action('recent', 1, 'li', 1),
189                                    'media'     => tpl_action('media', 1, 'li', 1),
190                                    'index'     => tpl_action('index', 1, 'li', 1),
191                                )); ?>
192                            </ul>
193                        </div>
194                    </div>
195                </div>
196            </div>
197        <div class="no"><?php tpl_indexerWebBug() /* provide DokuWiki housekeeping, required in all templates */ ?></div>
198        </footer><!-- /footer -->
199
200        <?php tpl_includeFile('footer.html') ?>
201    </div></div><!-- /site -->
202
203    <script>
204        function togglediv(id) {
205            var div = document.getElementById(id);
206            div.style.display = div.style.display == "block" ? "none" : "block";
207        }
208    </script>
209</body>
210</html>
211