1<?php
2/**
3 * DokuWiki Retro Template
4 *
5 * @link     http://dokuwiki.org/template:minimal
6 * @author   Reactive Matter <reactivematter@protonmail.com>
7 * @license  GPL 2 (http://www.gnu.org/licenses/gpl.html)
8 */
9
10if (!defined('DOKU_INC')) die(); /* must be run from within DokuWiki */
11
12$showTools = !tpl_getConf('hideTools') || ( tpl_getConf('hideTools') && !empty($_SERVER['REMOTE_USER']) );
13
14
15$theme = '';
16if(tpl_getConf('theme')!='Default')
17{
18    $theme = ' theme-'.strtolower(tpl_getConf('theme'));
19}
20
21$toc = tpl_getConf('inlineToc')?' itoc':'';
22$width = tpl_getConf('fullWidthSite')?' full-width':'';
23$tpl_retro_classes =  tpl_classes().$toc.$width.$theme;
24?>
25
26<!DOCTYPE html>
27<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $conf['lang'] ?>"
28  lang="<?php echo $conf['lang'] ?>" dir="<?php echo $lang['direction'] ?>" class="no-js">
29<head>
30    <meta charset="UTF-8" />
31    <title><?php tpl_pagetitle() ?> [<?php echo strip_tags($conf['title']) ?>]</title>
32    <script>(function(H){H.className=H.className.replace(/\bno-js\b/,'js')})(document.documentElement)</script>
33    <?php tpl_metaheaders() ?>
34    <meta name="viewport" content="width=device-width,initial-scale=1" />
35    <?php echo tpl_favicon(array('favicon', 'mobile')) ?>
36    <?php tpl_includeFile('meta.html') ?>
37</head>
38
39
40<body class="<?=$tpl_retro_classes?>">
41<div id="dokuwiki__top"></div>
42<navbar id="navbar" class="container" role="navigation" aria-label="Main navigation">
43        <div id='showhidesidemenu' class="mobile icon">
44            <div class="button"></div>
45        </div>
46        <div class="left-column">
47        <a class="site-name" href="<?=DOKU_BASE?>">
48        <div class="site-logo">
49            <img src="<?=tpl_getMediaFile(array(':wiki:logo.png', ':wiki:logo.svg', ':wiki:logo.jpeg',':wiki:logo.jpg',  ':logo.png', ':logo.svg', ':logo.jpeg',':logo.jpg', 'images/logo.png', ':wiki:dokuwiki.svg'), false)?>">
50        </div>
51        <div class="site-title">
52            <?=$conf['title']?>
53        </div>
54        </a>
55        <?php if($conf['tagline']):?>
56        <div class="site-tagline">
57            <?=$conf['tagline']?>
58        </div>
59        <?php endif;?>
60        </div>
61        <?php if(actionOK('search') ):?>
62        <div class="right-column">
63        <?php if($showTools):?>
64        <div class="search">
65            <?php tpl_searchform(true,false) ?>
66        </div>
67        <?php endif?>
68
69        </div>
70
71     <?php endif?>
72    </navbar>
73    <?php if(tpl_getConf('topToolBar') ):?>
74         <div class="top-toolbar plain-toolbar">
75           <?php if(strpos(tpl_getConf('topToolBar'), 'page') !== false)
76           {echo (new \dokuwiki\Menu\PageMenu())->getListItems();}
77            ?>
78            <?php if(strpos(tpl_getConf('topToolBar'), 'site') !== false)
79           {echo (new \dokuwiki\Menu\SiteMenu())->getListItems();}
80            ?>
81            <?php if(strpos(tpl_getConf('topToolBar'), 'user') !== false)
82           {
83            echo (new \dokuwiki\Menu\UserMenu())->getListItems();
84            if($USERINFO) { echo '<li>('.$USERINFO['name'].')</li>'; }
85           }
86            ?>
87
88        </div>
89    <?php endif; ?>
90
91    <?php if($conf['youarehere'] || $conf['breadcrumbs'] || (page_exists(":header") && auth_quickaclcheck(":header"))):?>
92    <div class="site-header">
93    <?php html_msgarea()  ?>
94    <!-- ********** Notice ********** -->
95    <?php
96        if(page_exists(":header") && auth_quickaclcheck(":header"))
97        {
98            echo '<div class="site-header-content">';
99            tpl_include_page(':header');
100            echo '</div>';
101        }
102    ?>
103
104    <?php if($conf['youarehere'] || $conf['breadcrumbs']):?>
105
106    <div class="site-navigation">
107        <!-- BREADCRUMBS -->
108        <?php if($conf['youarehere']){ ?>
109            <div class="breadcrumbs"><?php tpl_youarehere() ?></div>
110        <?php } ?>
111        <?php if($conf['breadcrumbs']){ ?>
112            <div class="breadcrumbs"><?php tpl_breadcrumbs() ?></div>
113        <?php } ?>
114    </div>
115    <?php endif?>
116    </div>
117    <?php endif?>
118
119<div id="main">
120        <article id="content">
121            <?php tpl_flush();
122                if($conf['tocminheads']>0)
123                {
124
125                    tpl_toc();
126                }
127                tpl_content(false);
128                tpl_flush(); ?>
129        </article>
130        <?php if(tpl_getConf('showPageInfo') ):?>
131         <div class="page-info">
132                <?php tpl_pageinfo()?>
133        </div>
134        <?php endif; ?>
135        <!-- /footer -->
136     <div style="display: none;"><?php tpl_indexerWebBug()?></div>
137    </div>
138    <?php if(tpl_getConf('bottomToolBar') ):?>
139         <div class="bottom-toolbar plain-toolbar">
140         <?php if(strpos(tpl_getConf('bottomToolBar'), 'page') !== false)
141           {echo (new \dokuwiki\Menu\PageMenu())->getListItems();}
142            ?>
143            <?php if(strpos(tpl_getConf('bottomToolBar'), 'site') !== false)
144           {echo (new \dokuwiki\Menu\SiteMenu())->getListItems();}
145            ?>
146            <?php if(strpos(tpl_getConf('bottomToolBar'), 'user') !== false)
147           {echo (new \dokuwiki\Menu\UserMenu())->getListItems();
148            if($USERINFO) { echo '<li>('.$USERINFO['name'].')</li>'; }
149
150           }
151            ?>
152
153        </div>
154    <?php endif; ?>
155        <?php
156    if(page_exists(":footer") && auth_quickaclcheck(":footer"))
157    {
158        echo '<footer id="footer">';
159        tpl_include_page(':footer');
160        echo '</footer>';
161    }
162    ?>
163</body>
164</html>
165