1<?php
2/**
3 * DokuWiki Graphy Template
4 * Based on the starter template and a wordpress theme of the same name
5 *
6 * @link     http://dokuwiki.org/template:graphy
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    <script type="text/javascript" src="https://ajax.aspnetcdn.com/ajax/jQuery/jquery-3.4.1.min.js"></script>
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='dns-prefetch' href='//fonts.googleapis.com' />
30    <link rel="stylesheet" id="graphy-font-css" href="https://fonts.googleapis.com/css?family=Source+Serif+Pro%3A400%7CLora%3A400%2C400italic%2C700&amp;subset=latin%2Clatin-ext" type="text/css" media="all">
31
32</head>
33
34<body id="dokuwiki__top">
35
36<div id="page" class="hfeed site <?php echo tpl_classes(); ?> <?php echo ($showSidebar) ? 'hasSidebar' : ''; ?>">
37    <a class="skip-link screen-reader-text" href="#content">Skip to content</a>
38
39    <header id="masthead" class="site-header">
40        <?php tpl_includeFile('header.html') ?>
41
42        <div class="site-branding">
43        <?php /* how to insert logo instead (if no CSS image replacement technique is used):
44                        upload your logo into the data/media folder (root of the media manager) and replace 'logo.png' accordingly:
45                        tpl_link(wl(),'<img src="'.ml('logo.png').'" alt="'.$conf['title'].'" />','id="dokuwiki__top" accesskey="h" title="[H]"') */ ?>
46        <div class="site-title"><?php tpl_link(wl(),$conf['title'],'accesskey="h" title="[H]"') ?></div>
47        <?php if ($conf['tagline']): ?>
48            <div class="site-description"><?php echo $conf['tagline'] ?></div>
49        <?php endif ?>
50        <!-- header_social menu -->
51            <nav id="header-social-link" class="header-social-link social-link">
52                <?php //wp_nav_menu( array( 'theme_location' => 'header-social', 'depth' => 1, 'link_before'  => '<span class="screen-reader-text">', 'link_after'  => '</span>' ) ); ?>
53            </nav><!-- #header-social-link -->
54        </div><!-- .site-branding -->
55
56        <!-- graphy_hide_navigation -->
57        <nav id="site-navigation" class="main-navigation">
58
59            <button class="menu-toggle"  aria-controls="primary-menu" aria-expanded="false"><span class="menu-text">Menu</span></button>
60            <div class="menu-my-first-menu-container"><ul id="menu-my-first-menu" class="menu nav-menu" aria-expanded="false">
61                <!-- SITE TOOLS -->
62                <?php tpl_toolsevent('sitetools', array(
63                    'recent'    => tpl_action('recent', 1, 'li', 1),
64                    'media'     => tpl_action('media', 1, 'li', 1),
65                    'index'     => tpl_action('index', 1, 'li', 1),
66                )); ?>
67                <div class="search-form"><?php tpl_searchform() ?></div>
68        </ul></div>
69            <!-- primary menu -->
70
71        </nav><!-- #site-navigation -->
72
73        <div id="header-image" class="header-image">
74            <img src="" width="" height="" alt=""> <!-- img graphy-page-thumbnail -->
75        </div><!-- #header-image -->
76
77    </header><!-- #masthead -->
78
79    <div id="primary" class="content-area"><main id="main" class="site-main">
80    <div id="content" class="site-content">
81
82        <?php
83        /**
84        * The template used for displaying single post.
85        *
86        * @package Graphy
87        */
88        ?>
89
90        <ul class="a11y skip">
91        <li><a href="#dokuwiki__content"><?php echo $lang['skip_to_content'] ?></a></li>
92        </ul>
93
94        <div class="post-full post-full-summary">
95        <article <?php //post_class(); ?>>
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
105                <?php tpl_flush() /* flush the output buffer */ ?>
106                <?php tpl_includeFile('pageheader.html') ?>
107
108                <div class="padhere2"><?php html_msgarea() /* occasional error and info messages on top of the page */ ?></div>
109
110                <div class="page" id="dokuwiki__content">
111
112                    <!-- wikipage start -->
113                    <?php tpl_content() /* the main content */ ?>
114                    <!-- wikipage stop -->
115                    <div class="clearer"></div>
116                </div>
117
118                <?php tpl_flush() ?>
119                <?php tpl_includeFile('pagefooter.html') ?>
120                <?php //wp_link_pages( array( 'before' => '<div class="page-links">' . esc_html__( 'Pages:', 'graphy' ), 'after'  => '</div>', 'pagelink' => '<span class="page-numbers">%</span>',  ) ); ?>
121            </div><!-- .entry-content -->
122        </article><!-- #post-## -->
123        </div><!-- .post-full -->
124
125
126</div> <!-- #content -->
127</main></div> <!-- main and primary -->
128
129<!-- begin sidebar -->
130<div id="secondary" class="sidebar-area" role="complementary">
131    <div class="normal-sidebar widget-area">
132        <div class="normal-sidebar widget-area">
133
134            <aside id="writtensidebar" class="widget">
135            <!-- ********** ASIDE ********** -->
136            <?php if ($showSidebar): ?>
137                <?php tpl_includeFile('sidebarheader.html') ?>
138                <?php tpl_include_page($conf['sidebar'], 1, 1) /* includes the nearest sidebar page */ ?>
139                <?php tpl_includeFile('sidebarfooter.html') ?>
140                <div class="clearer"></div>
141            <?php endif; ?>
142            </aside>
143
144            <aside class="widget">
145            <h2 class="widget-title">Page Tools</h2><ul>
146
147            <!-- PAGE ACTIONS -->
148            <?php if ($showTools): ?>
149            <h3 class="a11y"><?php echo $lang['page_tools'] ?></h3>
150                <?php tpl_toolsevent('pagetools', array(
151                    'edit'      => tpl_action('edit', 1, 'li', 1),
152                    'discussion'=> _tpl_action('discussion', 1, 'li', 1),
153                    'revisions' => tpl_action('revisions', 1, 'li', 1),
154                    'backlink'  => tpl_action('backlink', 1, 'li', 1),
155                    'subscribe' => tpl_action('subscribe', 1, 'li', 1),
156                    'revert'    => tpl_action('revert', 1, 'li', 1),
157                    //'top'       => tpl_action('top', 1, 'li', 1),
158                )); ?>
159            <?php endif; ?>
160            </ul></aside>
161
162            <?php if ($conf['useacl'] && $showTools): ?><aside class="widget"><!-- USER TOOLS -->
163            <h2 class="widget-title">User Tools</h2><ul>
164
165
166
167                <h3 class="a11y"><?php echo $lang['user_tools'] ?></h3>
168                    <?php
169                        if (!empty($_SERVER['REMOTE_USER'])) {
170                            echo '<li class="user">';
171                            tpl_userinfo(); /* 'Logged in as ...' */
172                            echo '</li>';
173                        }
174                    ?>
175                    <?php /* the optional second parameter of tpl_action() switches between a link and a button,
176                             e.g. a button inside a <li> would be: tpl_action('edit', 0, 'li') */
177                    ?>
178                    <?php tpl_toolsevent('usertools', array(
179                        'admin'     => tpl_action('admin', 1, 'li', 1),
180                        'userpage'  => _tpl_action('userpage', 1, 'li', 1),
181                        'profile'   => tpl_action('profile', 1, 'li', 1),
182                        'register'  => tpl_action('register', 1, 'li', 1),
183                        'login'     => tpl_action('login', 1, 'li', 1),
184                    )); ?>
185
186
187            </ul></aside><?php endif ?>
188        </div>
189    </div><!-- .normal-sidebar -->
190</div><!-- #secondary -->
191<!-- end sidebar -->
192
193
194    <footer id="colophon" class="site-footer">
195
196        <!-- footer sidebar -->
197
198        <div class="site-bottom">
199
200            <div class="site-info">
201                <div class="site-copyright">
202                    &copy; <?php echo date( 'Y' ); ?> <a href="addhere" rel="home"><?php tpl_link(wl(),$conf['title'],'accesskey="h" title="[H]"') ?></a>
203                </div><!-- .site-copyright -->
204                <div class="site-credit">
205                    <a href="">Powered by Dokuwiki</a>
206                    <span class="site-credit-sep"> | </span>
207                    <a href="http://dokuwiki.org/theme:graphy">Graphy theme by desbest and Themegraphy</a>
208                     <div class="doc"><?php tpl_pageinfo() /* 'Last modified' etc */ ?></div>
209                     <?php tpl_license('button') /* content license, parameters: img=*badge|button|0, imgonly=*0|1, return=*0|1 */ ?>
210                     <?php tpl_includeFile('footer.html') ?>
211                </div><!-- .site-credit -->
212            </div><!-- .site-info -->
213
214        </div><!-- .site-bottom -->
215
216    </footer><!-- #colophon -->
217
218</div><!-- #page -->
219
220
221<!-- end of graphy -->
222
223
224    <?php /* with these Conditional Comments you can better address IE issues in CSS files,
225             precede CSS rules by #IE8 for IE8 (div closes at the bottom) */ ?>
226    <!--[if lte IE 8 ]><div id="IE8"><![endif]-->
227
228    <?php /* the "dokuwiki__top" id is needed somewhere at the top, because that's where the "back to top" button/link links to */ ?>
229    <?php /* tpl_classes() provides useful CSS classes; if you choose not to use it, the 'dokuwiki' class at least
230             should always be in one of the surrounding elements (e.g. plugins and templates depend on it) */ ?>
231
232
233
234
235    <div class="no"><?php tpl_indexerWebBug() /* provide DokuWiki housekeeping, required in all templates */ ?></div>
236    <!--[if lte IE 8 ]></div><![endif]-->
237
238    <script type="text/javascript" src="<?php echo tpl_basedir();?>/navigation.js"></script>
239    <!-- due to the way dokuwiki buffers output, this javascript has to
240            be before the </body> tag and not in the <head> -->
241</body>
242</html>
243