1<?php
2/**
3 * DokuWiki Fictive Template
4 * Based on the starter template and a wordpress theme of the same name
5 *
6 * @link     http://dokuwiki.org/template:fictive
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    <script type="text/javascript" src="<?php echo tpl_basedir();?>/fictive.js"></script>
29    <link rel='stylesheet' id='fictive-open-sans-css'  href='http://fonts.googleapis.com/css?family=Open+Sans%3A300italic%2C400italic%2C700italic%2C400%2C300%2C700&#038;ver=5.4.4' type='text/css' media='all' />
30    <link rel='stylesheet' id='fictive-bitter-css'  href='http://fonts.googleapis.com/css?family=Bitter%3A400%2C700%2C400italic&#038;subset=latin%2Clatin-ext&#038;ver=5.4.4' type='text/css' media='all' />
31</head>
32
33<body id="dokuwiki__top" class="<?php echo tpl_classes(); ?> <?php
34        echo ($showSidebar) ? 'hasSidebar' : ''; ?>">
35
36<div id="page" class="hfeed site">
37
38    <header id="masthead" class="site-header" role="banner">
39        <a href="/" rel="home">
40            <!-- header image -->
41            <img src="<?php echo tpl_basedir();?>/images/header.jpg" alt="" class="header-image" width="1112" height="1000">
42        </a>
43        <div class="site-branding">
44                <div class="header-avatar">
45                    <a href="" rel="home">
46                        <!-- <img src="" width="70" height="70" alt=""> -->
47                    </a>
48                </div>
49            <h1 class="site-title"><?php tpl_link(wl(),$conf['title'],'accesskey="h" title="[H]"') ?></h1>
50            <?php if ($conf['tagline']): ?><h2 class="site-description"><?php echo $conf['tagline'] ?></h2><?php endif; ?>
51
52            <ul class="a11y skip">
53                    <li><a href="#dokuwiki__content"><?php echo $lang['skip_to_content'] ?></a></li>
54                </ul>
55
56                <?php /* how to insert logo instead (if no CSS image replacement technique is used):
57                        upload your logo into the data/media folder (root of the media manager) and replace 'logo.png' accordingly:
58                        tpl_link(wl(),'<img src="'.ml('logo.png').'" alt="'.$conf['title'].'" />','id="dokuwiki__top" accesskey="h" title="[H]"') */ ?>
59
60            <!-- social menu -->
61                <div class="social-links">
62                    <!-- menu goes here -->
63                </div>
64        </div>
65
66        <div class="menu-toggles clear">
67                <!-- primary menu -->
68                <h1 id="menu-toggle" class="menu-toggle"><span class="screen-reader-text">menu</span></h1>
69                <!-- sidebar 1 -->
70                <h1 id="document-toggle" class="menu-toggle"><span class="screen-reader-text">widgets</span></h1>
71            <h1 id="search-toggle" class="menu-toggle"><span class="screen-reader-text">search</span></h1>
72        </div>
73
74        <nav  class="header-search" role="navigation">
75            <?php tpl_searchform() ?>
76        </nav>
77
78        <nav  class="document-tools mobile" role="navigation">
79            <ul id="" class="menu">
80                <?php tpl_toolsevent('pagetools', array(
81                    'edit'      => tpl_action('edit', 1, 'li', 1),
82                    'discussion'=> _tpl_action('discussion', 1, 'li', 1),
83                    'revisions' => tpl_action('revisions', 1, 'li', 1),
84                    'backlink'  => tpl_action('backlink', 1, 'li', 1),
85                    'subscribe' => tpl_action('subscribe', 1, 'li', 1),
86                    'revert'    => tpl_action('revert', 1, 'li', 1),
87                    //'top'       => tpl_action('top', 1, 'li', 1),
88                )); ?>
89            </ul>
90        </nav>
91
92        <nav  class="main-navigation" role="navigation">
93
94            <!-- ********** ASIDE ********** -->
95            <?php if ($showSidebar): ?>
96                <div id="writtensidebar">
97                    <?php tpl_includeFile('sidebarheader.html') ?>
98                    <?php tpl_include_page($conf['sidebar'], 1, 1) /* includes the nearest sidebar page */ ?>
99                    <?php tpl_includeFile('sidebarfooter.html') ?>
100                    <div class="clearer"></div>
101                </div><!-- /aside -->
102            <?php endif; ?>
103
104            <a class="skip-link screen-reader-text" href="#content"><!-- skip to content --></a>
105            <div class="">
106            <div class="desktop"><?php tpl_searchform() ?></div>
107             <?php
108            if (!empty($_SERVER['REMOTE_USER'])) {
109                echo '<li class="user">';
110                tpl_userinfo(); /* 'Logged in as ...' */
111                echo '</li>';
112            }
113            ?><ul id="" class="menu">
114                <?php tpl_toolsevent('sitetools', array(
115                            'recent'    => tpl_action('recent', 1, 'li', 1),
116                            'media'     => tpl_action('media', 1, 'li', 1),
117                            'index'     => tpl_action('index', 1, 'li', 1),
118                )); ?>
119                <!-- USER TOOLS -->
120                <?php if ($conf['useacl'] && $showTools): ?>
121                    <!-- <div id="dokuwiki__usertools"> -->
122
123                        <!-- <ul> -->
124
125                            <?php /* the optional second parameter of tpl_action() switches between a link and a button,
126                                     e.g. a button inside a <li> would be: tpl_action('edit', 0, 'li') */
127                            ?>
128                            <?php tpl_toolsevent('usertools', array(
129                                'admin'     => tpl_action('admin', 1, 'li', 1),
130                                'userpage'  => _tpl_action('userpage', 1, 'li', 1),
131                                'profile'   => tpl_action('profile', 1, 'li', 1),
132                                'register'  => tpl_action('register', 1, 'li', 1),
133                                'login'     => tpl_action('login', 1, 'li', 1),
134                            )); ?>
135                        <!-- </ul> -->
136                    <!-- </div> -->
137                <?php endif ?>
138            </ul></div>
139            <!-- primary menu -->
140
141        </nav><!-- #site-navigation -->
142
143        <!-- sidebar here -->
144
145        <div id="site-search" class="header-search">
146            <!-- search form -->
147        </div>
148    </header><!-- #masthead -->
149
150
151
152    <div id="content" class="site-content">
153
154         <?php tpl_includeFile('header.html') ?>
155         <!-- BREADCRUMBS -->
156                 <div style="padding-bottom: 2em;">
157                <?php if($conf['breadcrumbs']){ ?>
158                    <div class="breadcrumbs"><?php tpl_breadcrumbs() ?></div>
159                <?php } ?>
160                <?php if($conf['youarehere']){ ?>
161                    <div class="breadcrumbs"><?php tpl_youarehere() ?></div>
162                <?php } ?>
163                </div>
164
165
166        <div id="primary" class="content-area">
167            <main id="main" class="site-main" role="main">
168
169            <div class="hentry-wrapper">
170                <figure class="entry-thumbnail">
171                <a href="" rel="bookmark"></a>
172                </figure>
173
174
175                <article id="post-9" class="post-9 post type-post status-publish format-standard has-post-thumbnail hentry category-uncategorized">
176                <!-- <header class="entry-header">
177                            <h1 class="entry-title"><a href="http://localhost/wordpress/test-post/" rel="bookmark">Test post</a></h1>                       <div class="entry-meta">
178                                    <span class="post-date"><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">February 4, 2020</time></a></span><span class="byline"><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>
179                                <span class="comments-link"><a href="http://localhost/wordpress/test-post/#comments">2 Comments</a></span>
180
181                            </div>
182        </header> --><!-- .entry-header -->
183
184                <div class="entry-content">
185
186                    <!-- PAGE ACTIONS -->
187                    <?php if ($showTools): ?>
188                        <!-- <div id="dokuwiki__pagetools"> -->
189                            <h3 class="a11y"><?php echo $lang['page_tools'] ?></h3>
190
191                            <nav  class="main-navigation inlinemenu" role="navigation"><div class=""><ul id="" class="menu">
192                                <?php tpl_toolsevent('pagetools', array(
193                                    'edit'      => tpl_action('edit', 1, 'li', 1),
194                                    'discussion'=> _tpl_action('discussion', 1, 'li', 1),
195                                    'revisions' => tpl_action('revisions', 1, 'li', 1),
196                                    'backlink'  => tpl_action('backlink', 1, 'li', 1),
197                                    'subscribe' => tpl_action('subscribe', 1, 'li', 1),
198                                    'revert'    => tpl_action('revert', 1, 'li', 1),
199                                    //'top'       => tpl_action('top', 1, 'li', 1),
200                                )); ?>
201                            </ul><!-- </div> --></nav>
202                        <!-- </div> -->
203                    <?php endif; ?>
204
205                     <?php tpl_flush() /* flush the output buffer */ ?>
206                    <?php tpl_includeFile('pageheader.html') ?>
207
208                    <div class="page">
209                        <!-- wikipage start -->
210                        <?php tpl_content() /* the main content */ ?>
211                        <!-- wikipage stop -->
212                        <div class="clearer"></div>
213                    </div>
214
215                    <?php tpl_flush() ?>
216                    <?php tpl_includeFile('pagefooter.html') ?>
217                </div><!-- .entry-content -->
218
219        <footer class="entry-footer entry-meta">
220
221                                                </footer><!-- .entry-footer -->
222    </article>
223
224            <?php //fictive_post_nav(); ?>
225
226            <?php
227                // If comments are open or we have at least one comment, load up the comment template
228                // if ( comments_open() || '0' != get_comments_number() ) :
229                //     comments_template();
230                // endif;
231            ?>
232
233            </main><!-- #main -->
234        </div><!-- #primary -->
235
236    </div><!-- #content -->
237
238    <footer id="colophon" class="site-footer" role="contentinfo">
239        <div class="site-info">
240            <div class="doc"><?php tpl_pageinfo() /* 'Last modified' etc */ ?></div>
241            <?php tpl_license('button') /* content license, parameters: img=*badge|button|0, imgonly=*0|1, return=*0|1 */ ?>
242
243            <a href="http://dokuwiki.org">Powered by dokuwiki</a>
244            <span class="sep"> | </span>
245            Fictive theme by Automattic
246            <?php tpl_includeFile('footer.html') ?>
247        </div><!-- .site-info -->
248    </footer><!-- #colophon -->
249    <?php html_msgarea() /* occasional error and info messages on top of the page */ ?>
250</div><!-- #page -->
251
252
253    <!-- end of fictive -->
254
255    <?php /* with these Conditional Comments you can better address IE issues in CSS files,
256             precede CSS rules by #IE8 for IE8 (div closes at the bottom) */ ?>
257    <!--[if lte IE 8 ]><div id="IE8"><![endif]-->
258
259    <?php /* the "dokuwiki__top" id is needed somewhere at the top, because that's where the "back to top" button/link links to */ ?>
260    <?php /* tpl_classes() provides useful CSS classes; if you choose not to use it, the 'dokuwiki' class at least
261             should always be in one of the surrounding elements (e.g. plugins and templates depend on it) */ ?>
262
263
264
265    <div class="no"><?php tpl_indexerWebBug() /* provide DokuWiki housekeeping, required in all templates */ ?></div>
266</body>
267</html>
268