1<?php
2/**
3 * DokuWiki Hexa Template
4 * Based on the starter template and a wordpress theme of the same name
5 *
6 * @link     http://dokuwiki.org/template:hexa
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    <link rel='dns-prefetch' href='//fonts.googleapis.com' />
23    <title><?php tpl_pagetitle() ?> [<?php echo strip_tags($conf['title']) ?>]</title>
24    <script>(function(H){H.className=H.className.replace(/\bno-js\b/,'js')})(document.documentElement)</script>
25    <?php tpl_metaheaders() ?>
26    <meta name="viewport" content="width=device-width,initial-scale=1" />
27    <?php echo tpl_favicon(array('favicon', 'mobile')) ?>
28    <?php tpl_includeFile('meta.html') ?>
29    <link rel='stylesheet' id='hexa-source-sans-pro-css'  href='https://fonts.googleapis.com/css?family=Source+Sans+Pro%3A300%2C400%2C700%2C300italic%2C400italic%2C700italic&#038;ver=5.4.4' type='text/css' media='all' />
30</head>
31
32<body id="dokuwiki__top" class="site <?php echo tpl_classes(); ?> <?php  echo ($showSidebar) ? 'hasSidebar' : ''; ?>">
33
34 <ul class="a11y skip">
35<li><a href="#dokuwiki__content"><?php echo $lang['skip_to_content'] ?></a></li>
36</ul>
37
38
39<div id="page" class="hfeed site">
40    <?php //do_action( 'before' ); ?>
41    <?php /* how to insert logo instead (if no CSS image replacement technique is used):
42        upload your logo into the data/media folder (root of the media manager) and replace 'logo.png' accordingly:
43        tpl_link(wl(),'<img src="'.ml('logo.png').'" alt="'.$conf['title'].'" />','id="dokuwiki__top" accesskey="h" title="[H]"') */ ?>
44    <div id="menu-toggle-nav" class="panel">
45        <nav id="site-navigation" class="main-navigation" role="navigation">
46            <a class="skip-link screen-reader-text" href="#content">Skip to content</a>
47
48            <?php //wp_nav_menu( array( 'theme_location' => 'primary' ) ); ?>
49            <div class="menu-my-first-menu-container"><ul id="menu-my-first-menu" class="menu">
50             <!-- SITE TOOLS -->
51            <h3 class="a11y"><?php echo $lang['site_tools'] ?></h3>
52
53            <?php tpl_toolsevent('sitetools', array(
54                'recent'    => tpl_action('recent', 1, 'li', 1),
55                'media'     => tpl_action('media', 1, 'li', 1),
56                'index'     => tpl_action('index', 1, 'li', 1),
57            )); ?>
58
59            </ul></div>
60        </nav><!-- #site-navigation -->
61    </div>
62
63    <div id="sidebar-toggle-nav" class="panel">
64    <div class="widget-areas">
65    <div class="widget-area">
66
67    <aside id="pagetools" class="widget"><h1 class="widget-title">Page Tools</h1>     <ul>
68      <!-- PAGE ACTIONS -->
69        <?php if ($showTools): ?>
70        <h3 class="a11y"><?php echo $lang['page_tools'] ?></h3>
71            <?php tpl_toolsevent('pagetools', array(
72                'edit'      => tpl_action('edit', 1, 'li', 1),
73                'discussion'=> _tpl_action('discussion', 1, 'li', 1),
74                'revisions' => tpl_action('revisions', 1, 'li', 1),
75                'backlink'  => tpl_action('backlink', 1, 'li', 1),
76                'subscribe' => tpl_action('subscribe', 1, 'li', 1),
77                'revert'    => tpl_action('revert', 1, 'li', 1),
78                'top'       => tpl_action('top', 1, 'li', 1),
79            )); ?>
80    </li>
81    </ul>
82    </aside>
83
84    <aside id="usertools" class="widget"><h1 class="widget-title">User Tools</h1>      <ul>
85
86        <?php endif; ?>
87         <!-- USER TOOLS -->
88        <?php if ($conf['useacl'] && $showTools): ?>
89        <h3 class="a11y"><?php echo $lang['user_tools'] ?></h3>
90            <?php
91                if (!empty($_SERVER['REMOTE_USER'])) {
92                    echo '<li class="user">';
93                    tpl_userinfo(); /* 'Logged in as ...' */
94                    echo '</li>';
95                }
96            ?>
97            <?php /* the optional second parameter of tpl_action() switches between a link and a button,
98                     e.g. a button inside a <li> would be: tpl_action('edit', 0, 'li') */
99            ?>
100            <?php tpl_toolsevent('usertools', array(
101                'admin'     => tpl_action('admin', 1, 'li', 1),
102                'userpage'  => _tpl_action('userpage', 1, 'li', 1),
103                'profile'   => tpl_action('profile', 1, 'li', 1),
104                'register'  => tpl_action('register', 1, 'li', 1),
105                'login'     => tpl_action('login', 1, 'li', 1),
106            )); ?>
107        <?php endif ?>
108
109    </ul>
110    </aside>
111
112    <aside id="writtensidebar">
113        <!-- ********** ASIDE ********** -->
114        <?php if ($showSidebar): ?>
115        <?php tpl_includeFile('sidebarheader.html') ?>
116        <?php tpl_include_page($conf['sidebar'], 1, 1) /* includes the nearest sidebar page */ ?>
117        <?php tpl_includeFile('sidebarfooter.html') ?>
118        <div class="clearer"></div>
119        <?php endif; ?>
120    </aside>
121
122    </div>
123    </div>
124    </div>
125    <?php //if ( is_active_sidebar( 'sidebar-1' ) || is_active_sidebar( 'sidebar-2' ) || is_active_sidebar( 'sidebar-3' ) ) : ?>
126        <?php //get_sidebar(); ?>
127    <?php //endif; ?>
128        <div id="social-links-toggle-nav" class="panel">
129            <?php //wp_nav_menu( array( 'theme_location' => 'social', 'depth' => 1, 'link_before' => '<span class="screen-reader-text">', 'link_after' => '</span>', 'container_class' => 'social-links', ) ); ?>
130        </div>
131    <div id="search-toggle-nav" class="panel">
132        <div class="search-wrapper">
133            <?php //get_search_form(); ?>
134            <?php tpl_searchform() ?>
135            <!-- <form role="search" method="get" class="search-form" action="http://localhost/wordpress/">
136            <label>
137            <span class="screen-reader-text">Search for:</span>
138            <input type="search" class="search-field" placeholder="Search …" value="" name="s">
139            </label>
140            <input type="submit" class="search-submit" value="Search">
141            </form> -->
142        </div>
143    </div>
144    <?php tpl_includeFile('header.html') ?>
145    <header id="masthead" class="site-header" role="banner">
146        <div class="site-header-wrapper">
147            <div class="site-branding">
148                <h1 class="site-title"><?php tpl_link(wl(),$conf['title'],'accesskey="h" title="[H]"') ?></h1>
149                <?php if ($conf['tagline']): ?>
150                    <h2 class="site-description"><?php echo $conf['tagline'] ?></h2>
151                <?php endif ?>
152            </div>
153            <div class="toggles">
154            <div id="menu-toggle" class="toggle" title="Menu">
155                <span class="screen-reader-text">Menu</span>
156            </div><!-- #menu-toggle -->
157            <?php //if ( is_active_sidebar( 'sidebar-1' ) || is_active_sidebar( 'sidebar-2' ) || is_active_sidebar( 'sidebar-3' ) ) : ?>
158                <div id="sidebar-toggle" class="toggle" title="Widgets">
159                    <span class="screen-reader-text">Widgets</span>
160                </div><!-- #sidebar-toggle -->
161            <?php //endif; ?>
162            <?php //if ( has_nav_menu( 'social' ) ) : ?>
163               <!--  <div id="social-links-toggle" class="toggle" title="Social Links">
164                    <span class="screen-reader-text">Social Links</span>
165                </div> --><!-- #social-links-toggle -->
166            <?php //endif; ?>
167            <div id="search-toggle" class="toggle" title="Search">
168                <span class="screen-reader-text">Search</span>
169            </div><!-- #search-toggle -->
170        </div><!-- .toggles -->
171        </div>
172    </header><!-- #masthead -->
173
174    <div id="content" class="site-content">
175    <div id="primary" class="content-area">
176    <main id="main" class="site-main" role="main">
177
178        <?php //get_template_part( 'content', 'single' ); ?>
179        <article class="hentry" <?php //post_class(); ?>>
180
181            <header class="entry-header">
182            <!-- <a class="entry-format" href="" title=""><span class="screen-reader-text">stuff here</span></a> -->
183            <span class="entry-format"></span>
184            <!-- <h1 class="entry-title">&nbsp;</h1> -->
185            </header>
186            <!-- .entry-header -->
187
188            <div class="entry-content">
189
190            <!-- BREADCRUMBS -->
191            <?php if($conf['breadcrumbs']){ ?>
192                <div class="breadcrumbs"><?php tpl_breadcrumbs() ?></div>
193            <?php } ?>
194            <?php if($conf['youarehere']){ ?>
195                <div class="breadcrumbs"><?php tpl_youarehere() ?></div>
196            <?php } ?>
197
198            <?php //the_content(); ?>
199            <!-- ********** CONTENT ********** -->
200            <div id="dokuwiki__content">
201                <?php tpl_flush() /* flush the output buffer */ ?>
202                <?php tpl_includeFile('pageheader.html') ?>
203
204                <div class="page">
205                    <!-- wikipage start -->
206                    <?php tpl_content() /* the main content */ ?>
207                    <!-- wikipage stop -->
208                    <div class="clearer"></div>
209                </div>
210
211                <?php tpl_flush() ?>
212                <?php tpl_includeFile('pagefooter.html') ?>
213            </div><!-- /content -->
214            <?php html_msgarea() /* occasional error and info messages on top of the page */ ?>
215            <?php //wp_link_pages( array( 'before' => '<div class="page-links">', 'after' => '</div>', 'link_before' => '<span class="active-link">', 'link_after' => '</span>' ) ); ?>
216            </div><!-- .entry-content -->
217
218            <footer class="entry-meta">
219            <?php //hexa_posted_on(); ?>
220            <?php
221            /* translators: used between list items, there is a space after the comma */
222            //the_tags( '<span class="tags-links">', esc_html__( ', ', 'hexa' ), '</span>' );
223            ?>
224            <?php //edit_post_link( __( 'Edit', 'hexa' ), '<span class="edit-link">', '</span>' ); ?>
225            </footer><!-- .entry-meta -->
226        </article><!-- #post-## -->
227
228        <?php //hexa_post_nav(); ?>
229
230        <?php
231        // If comments are open or we have at least one comment, load up the comment template
232        // if ( comments_open() || '0' != get_comments_number() ) :
233        // comments_template();
234        // endif;
235        ?>
236
237    </main><!-- #main -->
238    </div><!-- #primary -->
239    </div><!-- #content -->
240
241    <footer id="colophon" class="site-footer" role="contentinfo">
242        <div class="site-info">
243            <div class="doc"><?php tpl_pageinfo() /* 'Last modified' etc */ ?></div>
244            <?php tpl_license('button') /* content license, parameters: img=*badge|button|0, imgonly=*0|1, return=*0|1 */ ?>
245            <a href="http://dokuwiki.org/" rel="generator">Powered by Dokuwiki</a>
246            <span class="sep"> | </span>
247            Hexa theme by <a href="http://wordpress.com/themes/hexa/" rel="designer">Automattic</a> and <a href="http://desbest.com">desbest</a></a>
248            <div class="no"><?php tpl_indexerWebBug() /* provide DokuWiki housekeeping, required in all templates */ ?></div>
249        </div><!-- .site-info -->
250    </footer><!-- #colophon -->
251    <?php tpl_includeFile('footer.html') ?>
252</div><!-- #page -->
253
254
255    <?php /* the "dokuwiki__top" id is needed somewhere at the top, because that's where the "back to top" button/link links to */ ?>
256    <?php /* tpl_classes() provides useful CSS classes; if you choose not to use it, the 'dokuwiki' class at least
257             should always be in one of the surrounding elements (e.g. plugins and templates depend on it) */ ?>
258
259
260    <script type="text/javascript" src="<?php echo tpl_basedir();?>/menus.js"></script>
261    <script type="text/javascript" src="<?php echo tpl_basedir();?>/navigation.js"></script>
262    <!-- due to the way dokuwiki buffers output, this javascript has to
263            be before the </body> tag and not in the <head> -->
264</body>
265</html>
266