1<?php
2/**
3 * DokuWiki Ravel Template
4 * Based on the starter template and a wordpress theme of the same name
5 r * @link     http://dokuwiki.org/template:ravel
6 * @author   desbest <afaninthehouse@gmail.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@require_once(dirname(__FILE__).'/tpl_functions.php'); /* include hook for template functions */
12header('X-UA-Compatible: IE=edge,chrome=1');
13
14$showTools = !tpl_getConf('hideTools') || ( tpl_getConf('hideTools') && !empty($_SERVER['REMOTE_USER']) );
15$showSidebar = page_findnearest($conf['sidebar']) && ($ACT=='show');
16?><!DOCTYPE html>
17<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $conf['lang'] ?>"
18  lang="<?php echo $conf['lang'] ?>" dir="<?php echo $lang['direction'] ?>" class="no-js">
19<head>
20    <meta charset="UTF-8" />
21    <title><?php tpl_pagetitle() ?> [<?php echo strip_tags($conf['title']) ?>]</title>
22    <script>(function(H){H.className=H.className.replace(/\bno-js\b/,'js')})(document.documentElement)</script>
23    <?php tpl_metaheaders() ?>
24    <meta name="viewport" content="width=device-width,initial-scale=1" />
25    <?php echo tpl_favicon(array('favicon', 'mobile')) ?>
26    <?php tpl_includeFile('meta.html') ?>
27    <link rel="stylesheet" id="ravel-fonts-css" href="//fonts.googleapis.com/css?family=Lora%3A400%2C700%2C400italic%2C700italic%7CRoboto%3A400%2C400italic%2C700%2C700italic&amp;ver=5.4.4" type="text/css" media="all">
28</head>
29
30<body id="dokuwiki__top">
31    <?php /* with these Conditional Comments you can better address IE issues in CSS files,
32             precede CSS rules by #IE8 for IE8 (div closes at the bottom) */ ?>
33    <!--[if lte IE 8 ]><div id="IE8"><![endif]-->
34
35    <?php /* the "dokuwiki__top" id is needed somewhere at the top, because that's where the "back to top" button/link links to */ ?>
36    <?php /* tpl_classes() provides useful CSS classes; if you choose not to use it, the 'dokuwiki' class at least
37             should always be in one of the surrounding elements (e.g. plugins and templates depend on it) */ ?>
38
39    <div id="container" class="site <?php echo tpl_classes(); ?> <?php echo ($showSidebar) ? 'hasSidebar' : ''; ?>"><div class="wrap"> <!-- ravel theme -->
40
41    <!-- <div id="dokuwiki__site"> -->
42        <?php tpl_includeFile('header.html') ?>
43
44        <!-- ravel header -->
45
46
47            <header id="header" role="banner" itemscope="itemscope" itemtype="http://schema.org/WPHeader">
48
49                <div id="branding">
50
51                         <h1 id="site-title"><?php tpl_link(wl(),$conf['title'],'accesskey="h" title="[H]"') ?></h1>
52                        <?php /* how to insert logo instead (if no CSS image replacement technique is used):
53                                upload your logo into the data/media folder (root of the media manager) and replace 'logo.png' accordingly:
54                                tpl_link(wl(),'<img src="'.ml('logo.png').'" alt="'.$conf['title'].'" />','id="dokuwiki__top" accesskey="h" title="[H]"') */ ?>
55                        <?php if ($conf['tagline']): ?>
56                            <h2 class="claim"><?php echo $conf['tagline'] ?></h2>
57                        <?php endif ?>
58                    <ul class="a11y skip">
59                    <li><a href="#main"><?php echo $lang['skip_to_content'] ?></a></li>
60                    </ul>
61
62                </div><!-- #branding -->
63
64                <nav id="menu-primary" class="menu" role="navigation" itemscope="itemscope" itemtype="http://schema.org/SiteNavigationElement">
65                    <div class="assistive-text skip-link">
66                    <a href="#main">Skip to content</a>
67                    </div><!-- .skip-link -->
68
69                    <h3 class="menu-toggle">
70                    <span class="screen-reader-text">Navigation</span>
71                    </h3><!-- .menu-toggle -->
72
73                    <div class="wrap"><ul id="menu-primary-items" class="menu-items">
74                        <h3 class="a11y"><?php echo $lang['site_tools'] ?></h3>
75                        <?php tpl_toolsevent('sitetools', array(
76                            'recent'    => tpl_action('recent', 1, 'li', 1),
77                            'media'     => tpl_action('media', 1, 'li', 1),
78                            'index'     => tpl_action('index', 1, 'li', 1),
79                        )); ?>
80                    </ul></div>
81                </nav>
82                 <?php if ($conf['useacl'] && $showTools): ?>
83                <nav id="menu-primary" class="menu" role="navigation" itemscope="itemscope" itemtype="http://schema.org/SiteNavigationElement"><ul id="menu-primary-items" class="menu-items">
84
85                    <?php /* the optional second parameter of tpl_action() switches between a link and a button,
86                             e.g. a button inside a <li> would be: tpl_action('edit', 0, 'li') */
87                    ?>
88                    <?php tpl_toolsevent('usertools', array(
89                        'admin'     => tpl_action('admin', 1, 'li', 1),
90                        'userpage'  => _tpl_action('userpage', 1, 'li', 1),
91                        'profile'   => tpl_action('profile', 1, 'li', 1),
92                        'register'  => tpl_action('register', 1, 'li', 1),
93                        'login'     => tpl_action('login', 1, 'li', 1),
94                    )); ?>
95                    <div class="mobile">
96                    <?php tpl_toolsevent('sitetools', array(
97                            'recent'    => tpl_action('recent', 1, 'li', 1),
98                            'media'     => tpl_action('media', 1, 'li', 1),
99                            'index'     => tpl_action('index', 1, 'li', 1),
100                        )); ?>
101                    </div>
102                </ul></nav>
103                <?php endif ?>
104
105                <?php //endif; // End check for header text. ?>
106
107                <!-- // Loads the menu/primary.php template. -->
108
109            </header><!-- #header -->
110
111            <!-- <div id="main" class="main content-container"></div> -->
112
113
114        <!-- ********** HEADER ********** -->
115        <header id="header" style="padding: 0px;">
116        <!-- <div id="dokuwiki__header"><div class="pad"> -->
117
118
119            <div class="tools">
120                <!-- USER TOOLS -->
121                <?php if ($conf['useacl'] && $showTools): ?>
122                    <!-- <div id="dokuwiki__usertools"> -->
123                        <span style="float: right;"><?php tpl_userinfo();  /* 'Logged in as ...' */ ?></span>
124                    <!-- </div> -->
125                <?php endif ?>
126
127                <!-- SITE TOOLS -->
128                <div id="dokuwiki__sitetools">
129                    <?php tpl_searchform() ?>
130                </div>
131
132            </div>
133            <div class="clearer"></div>
134
135            <!-- BREADCRUMBS -->
136            <?php if($conf['breadcrumbs']){ ?>
137                <div class="breadcrumbs"><?php tpl_breadcrumbs() ?></div>
138            <?php } ?>
139            <?php if($conf['youarehere']){ ?>
140                <div class="breadcrumbs"><?php tpl_youarehere() ?></div>
141            <?php } ?>
142
143            <div class="clearer"></div>
144            <hr class="a11y" />
145        </header>
146        <!-- </div></div> --><!-- /header -->
147        <div id="main" class="main content-container"><main id="content" class="contentXXX">
148            <article id="post-12" class="entry post" itemscope="itemscope">
149
150            <?php html_msgarea() /* occasional error and info messages on top of the page */ ?>
151
152            <header class="entry-header">
153
154                <div class="entry-byline">
155                    <!-- <time class="entry-published updated" datetime="2020-02-04T19:11:31+00:00" title="Tuesday, February 4, 2020, 7:11 pm">February 4, 2020</time>   -->
156                        <!-- PAGE ACTIONS -->
157                        <?php if ($showTools): ?>
158                            <!-- <div id="dokuwiki__pagetools"> -->
159                                <h3 class="a11y"><?php echo $lang['page_tools'] ?></h3>
160                                <ul class="sidebarmenu">
161                                    <?php tpl_toolsevent('pagetools', array(
162                                        'edit'      => tpl_action('edit', 1, 'li', 1),
163                                        'discussion'=> _tpl_action('discussion', 1, 'li', 1),
164                                        'revisions' => tpl_action('revisions', 1, 'li', 1),
165                                        'backlink'  => tpl_action('backlink', 1, 'li', 1),
166                                        'subscribe' => tpl_action('subscribe', 1, 'li', 1),
167                                        'revert'    => tpl_action('revert', 1, 'li', 1),
168                                        'top'       => tpl_action('top', 1, 'li', 1),
169                                    )); ?>
170                                </ul>
171                            <!-- </div> -->
172                        <?php endif; ?>
173
174                         <!-- ********** ASIDE ********** -->
175                        <?php if ($showSidebar): ?>
176                            <div id="writtensidebar" class="desktop">
177                            <?php tpl_includeFile('sidebarheader.html') ?>
178                            <?php tpl_include_page($conf['sidebar'], 1, 1) /* includes the nearest sidebar page */ ?>
179                            <?php tpl_includeFile('sidebarfooter.html') ?>
180                            <div class="clearer"></div>
181                            </div>
182                        <?php endif; ?>
183                </div><!-- .entry-byline -->
184
185                <!-- <h1 class="entry-title" itemprop="headline">Test post</h1> -->
186
187            </header>
188
189
190
191            <div class="entry-content" itemprop="articlebody">
192            <!-- ********** CONTENT ********** -->
193            <!-- <div id="dokuwiki__content"><div class="pad"> -->
194                <?php tpl_flush() /* flush the output buffer */ ?>
195                <?php tpl_includeFile('pageheader.html') ?>
196
197                <div class="page">
198                    <!-- wikipage start -->
199                    <?php tpl_content() /* the main content */ ?>
200                    <!-- wikipage stop -->
201                    <div class="clearer"></div>
202                </div>
203
204                <?php tpl_flush() ?>
205                <?php tpl_includeFile('pagefooter.html') ?>
206            </article>
207            </div>
208            <!-- </div></div> --><!-- /content -->
209
210            <!-- ********** ASIDE ********** -->
211            <?php if ($showSidebar): ?>
212                <div id="writtensidebar" class="mobile">
213                <?php tpl_includeFile('sidebarheader.html') ?>
214                <?php tpl_include_page($conf['sidebar'], 1, 1) /* includes the nearest sidebar page */ ?>
215                <?php tpl_includeFile('sidebarfooter.html') ?>
216                <div class="clearer"></div>
217                </div>
218            <?php endif; ?>
219
220            <div class="clearer"></div>
221            <hr class="a11y" />
222        </main></div><!-- #main -->
223        <!-- </div> --><!-- /wrapper -->
224
225        <footer id="footer" role="contentinfo" itemscope="itemscope" itemtype="http://schema.org/WPFooter">
226
227            <!-- // Loads the menu/social.php template. -->
228
229            <div class="footer-content">
230                <p class="copyright"><?php tpl_pageinfo() /* 'Last modified' etc */ ?></p>
231                    <?php tpl_license('button') /* content license, parameters: img=*badge|button|0, imgonly=*0|1, return=*0|1 */ ?>
232                <!-- .copyright -->
233            </div><!-- .footer-content -->
234
235        </footer><!-- #footer -->
236        <?php tpl_includeFile('footer.html') ?>
237    <!-- </div> --><!-- /dokuwiki__site -->
238    </div></div> <!-- end ravel .container -->
239
240    <div class="no"><?php tpl_indexerWebBug() /* provide DokuWiki housekeeping, required in all templates */ ?></div>
241    <!--[if lte IE 8 ]></div><![endif]-->
242</body>
243</html>
244