1<?php
2/**
3 * DokuWiki Able Template
4 * Based on the starter template and a wordpress theme of the same name
5 *
6 * @link     http://dokuwiki.org/template:able
7 * @author   desbest <afaninthehouse@gmail.com>
8 * @license  GPL 2 (http://www.gnu.org/licenses/gpl.html)
9 */
10
11if (!defined('DOKU_INC')) die(); /* must be run from within DokuWiki */
12@require_once(dirname(__FILE__).'/tpl_functions.php'); /* include hook for template functions */
13header('X-UA-Compatible: IE=edge,chrome=1');
14
15$showTools = !tpl_getConf('hideTools') || ( tpl_getConf('hideTools') && !empty($_SERVER['REMOTE_USER']) );
16$showSidebar = page_findnearest($conf['sidebar']) && ($ACT=='show');
17?><!DOCTYPE html>
18<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $conf['lang'] ?>"
19  lang="<?php echo $conf['lang'] ?>" dir="<?php echo $lang['direction'] ?>" class="no-js">
20<head>
21    <meta charset="UTF-8" />
22    <title><?php tpl_pagetitle() ?> [<?php echo strip_tags($conf['title']) ?>]</title>
23    <script>(function(H){H.className=H.className.replace(/\bno-js\b/,'js')})(document.documentElement)</script>
24    <?php tpl_metaheaders() ?>
25    <meta name="viewport" content="width=device-width,initial-scale=1" />
26    <?php echo tpl_favicon(array('favicon', 'mobile')) ?>
27    <?php tpl_includeFile('meta.html') ?>
28    <link rel='dns-prefetch' href='//fonts.googleapis.com' />
29    <link rel='stylesheet' id='droid-serif-css'  href='http://fonts.googleapis.com/css?family=Droid+Serif%3A400%2C700%2C400italic%2C700italic&#038;ver=5.4.4' type='text/css' media='all' />
30</head>
31
32<body class="right-sidebar">
33
34<div id="page" id="dokuwiki__top" class="hfeed site <?php echo tpl_classes(); ?> <?php echo ($showSidebar) ? 'hasSidebar' : ''; ?>">
35    <div id="site-introduction">
36        <h1 class="site-title"><?php tpl_link(wl(),$conf['title'],'accesskey="h" title="[H]"') ?></h1>
37
38        <h2 class="site-description"> <?php if ($conf['tagline']): ?>
39            <?php echo $conf['tagline'] ?>
40        <?php endif ?></h2>
41          <ul class="a11y skip">
42                    <li><a href="#dokuwiki__content"><?php echo $lang['skip_to_content'] ?></a></li>
43                </ul>
44    </div><!-- #site-title -->
45    <div id="page-liner">
46        <?php tpl_includeFile('header.html') ?>
47        <header id="masthead" class="site-header" role="banner">
48            <div id="headimg">
49
50                    <?php /* how to insert logo instead (if no CSS image replacement technique is used):
51                     upload your logo into the data/media folder (root of the media manager) and replace 'logo.png' accordingly:
52                    tpl_link(wl(),'<img src="'.ml('logo.png').'" alt="'.$conf['title'].'" />','id="dokuwiki__top" accesskey="h" title="[H]"') */ ?>
53
54            </div><!-- #headimg -->
55             <!-- // if ( ! empty( $header_image ) ) -->
56
57            <nav role="navigation" class="site-navigation main-navigation">
58                <h1 class="assistive-text">Menu</h1>
59                <div class="assistive-text skip-link"><a href="#content" title="Skip to content">Skip to content</a></div>
60
61                <div class="menu-my-first-menu-container"><ul id="menu-my-first-menu" class="menu">
62                <!-- SITE TOOLS -->
63                    <h3 class="a11y"><?php echo $lang['site_tools'] ?></h3>
64
65
66                        <?php tpl_toolsevent('sitetools', array(
67                            'recent'    => tpl_action('recent', 1, 'li', 1),
68                            'media'     => tpl_action('media', 1, 'li', 1),
69                            'index'     => tpl_action('index', 1, 'li', 1),
70                        )); ?>
71
72                </ul></div>
73
74                <?php //wp_nav_menu( array( 'theme_location' => 'primary' ) ); ?>
75            </nav><!-- .site-navigation .main-navigation -->
76        </header><!-- #masthead .site-header -->
77
78        <div id="main">
79
80            <div id="primary" class="site-content">
81        <div id="content" role="main">
82
83
84
85
86
87<article id="post-9" class="post type-post">
88    <header class="entry-header">
89        <!-- <h1 class="entry-title"><a href="http://localhost/wordpress/test-post/" rel="bookmark">Test post</a></h1> -->
90
91                <!-- <div class="entry-meta"> -->
92                 <!-- Posted on <a href="http://localhost/wordpress/test-post/" title="7:11 pm" rel="bookmark"><time class="entry-date" datetime="2020-02-04T19:11:31+00:00" pubdate="">February 4, 2020</time></a><span class="byline"> by <span class="author vcard"><a class="url fn n" href="http://localhost/wordpress/author/desbest/" title="View all posts by desbest" rel="author">desbest</a></span></span>     </div> -->
93                <!-- .entry-meta -->
94            </header><!-- .entry-header -->
95
96        <div class="entry-content">
97             <!-- BREADCRUMBS -->
98            <?php if($conf['breadcrumbs']){ ?>
99                <div class="breadcrumbs"><?php tpl_breadcrumbs() ?></div>
100            <?php } ?>
101            <?php if($conf['youarehere']){ ?>
102                <div class="breadcrumbs"><?php tpl_youarehere() ?></div>
103            <?php } ?>
104         <?php html_msgarea() /* occasional error and info messages on top of the page */ ?>
105        <!-- ********** CONTENT ********** -->
106                <?php tpl_flush() /* flush the output buffer */ ?>
107                <?php tpl_includeFile('pageheader.html') ?>
108
109                <div class="page">
110                    <!-- wikipage start -->
111                    <?php tpl_content() /* the main content */ ?>
112                    <!-- wikipage stop -->
113                    <div class="clearer"></div>
114                </div>
115
116                <?php tpl_flush() ?>
117                <?php tpl_includeFile('pagefooter.html') ?>
118            </div><!-- .entry-content -->
119
120
121</article><!-- #post-## -->
122
123
124
125        </div><!-- #content -->
126    </div>
127
128    <div id="tertiary" class="widget-area" role="complementary">
129
130        <aside class="widget"><?php tpl_searchform() ?></aside>
131
132
133        <aside id="categories-11" class="widget widget_categories"><h1 class="widget-title">Page Tools</h1><ul>
134             <!-- PAGE ACTIONS -->
135            <?php if ($showTools): ?>
136                <h3 class="a11y"><?php echo $lang['page_tools'] ?></h3>
137                <?php tpl_toolsevent('pagetools', array(
138                    'edit'      => tpl_action('edit', 1, 'li', 1),
139                    'discussion'=> _tpl_action('discussion', 1, 'li', 1),
140                    'revisions' => tpl_action('revisions', 1, 'li', 1),
141                    'backlink'  => tpl_action('backlink', 1, 'li', 1),
142                    'subscribe' => tpl_action('subscribe', 1, 'li', 1),
143                    'revert'    => tpl_action('revert', 1, 'li', 1),
144                    'top'       => tpl_action('top', 1, 'li', 1),
145                )); ?>
146            <?php endif; ?>
147        </ul>
148        </aside>
149
150            <?php if ($conf['useacl'] && $showTools): ?>
151            <aside class="widget">
152            <h1 class="widget-title">User Tools</h1>
153                    <ul>
154                        <?php
155                                if (!empty($_SERVER['REMOTE_USER'])) {
156                                    echo '<li class="user">';
157                                    tpl_userinfo(); /* 'Logged in as ...' */
158                                    echo '</li>';
159                                }
160                            ?>
161                    <?php tpl_toolsevent('usertools', array(
162                            'admin'     => tpl_action('admin', 1, 'li', 1),
163                            'userpage'  => _tpl_action('userpage', 1, 'li', 1),
164                            'profile'   => tpl_action('profile', 1, 'li', 1),
165                            'register'  => tpl_action('register', 1, 'li', 1),
166                            'login'     => tpl_action('login', 1, 'li', 1),
167                        )); ?>
168                    </ul>
169            </aside>
170
171             <!-- ********** ASIDE ********** -->
172            <?php if ($showSidebar): ?>
173                <aside id="writtensidebar" class="widget">
174                    <?php tpl_includeFile('sidebarheader.html') ?>
175                    <?php tpl_include_page($conf['sidebar'], 1, 1) /* includes the nearest sidebar page */ ?>
176                    <?php tpl_includeFile('sidebarfooter.html') ?>
177                    <div class="clearer"></div>
178                </aside>
179            <?php endif; ?>
180            <?php endif; ?>
181
182            </div><!-- #main -->
183
184        <footer id="colophon" class="site-footer" role="contentinfo">
185                <nav role="navigation" class="site-navigation footer-navigation">
186                    <h1 class="assistive-text">
187                        Menu
188                    </h1>
189
190                    <?php //wp_nav_menu( array( 'theme_location' => 'footer', 'depth' => 1 ) ); ?>
191                </nav><!-- .site-navigation -->
192
193            <div class="site-info">
194                <div class="doc"><?php tpl_pageinfo() /* 'Last modified' etc */ ?></div>
195                <?php tpl_license('button') /* content license, parameters: img=*badge|button|0, imgonly=*0|1, return=*0|1 */ ?>
196                <a href="http://dokuwiki.org/" title="A Semantic Personal Publishing Platform" rel="generator">Powered by Dokuwiki</a>
197                <span class="sep"> | </span>
198                Able theme by <a href="http://automattic.com/" rel="designer">Automattic</a> and converted by <a href="http://desbest.com">desbest</a>
199            </div><!-- .site-info -->
200        </footer><!-- #colophon .site-footer -->
201         <?php tpl_includeFile('footer.html') ?>
202    </div><!-- #page-liner -->
203</div><!-- #page .hfeed .site -->
204
205    <?php /* with these Conditional Comments you can better address IE issues in CSS files,
206             precede CSS rules by #IE8 for IE8 (div closes at the bottom) */ ?>
207    <!--[if lte IE 8 ]><div id="IE8"><![endif]-->
208
209    <?php /* the "dokuwiki__top" id is needed somewhere at the top, because that's where the "back to top" button/link links to */ ?>
210    <?php /* tpl_classes() provides useful CSS classes; if you choose not to use it, the 'dokuwiki' class at least
211             should always be in one of the surrounding elements (e.g. plugins and templates depend on it) */ ?>
212
213
214
215
216
217
218
219    <div class="no"><?php tpl_indexerWebBug() /* provide DokuWiki housekeeping, required in all templates */ ?></div>
220    <!--[if lte IE 8 ]></div><![endif]-->
221     <script type="text/javascript" src="<?php echo tpl_basedir();?>/small-menu.js"></script>
222    <!-- due to the way dokuwiki buffers output, this javascript has to
223            be before the </body> tag and not in the <head> -->
224</body>
225</html>
226