xref: /template/parabola/main.php (revision 3a03c4b66b42ebcafa9acf72221b555cd0717f3d)
1<?php
2/**
3 * DokuWiki Parabola Template
4 * Based on the starter template and a wordpress theme of the same name
5 *
6 * @link     http://dokuwiki.org/template:parabola
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</head>
29
30<body id="dokuwiki__top" wpclass="post-template-default single single-post postid-9 single-format-standard logged-in admin-bar parabola-image-four caption-light meta-light parabola_triagles parabola-menu-left customize-support" class=" <?php echo tpl_classes(); ?> <?php echo ($showSidebar) ? 'hasSidebar' : ''; ?>">
31
32
33
34<?php //cryout_body_hook(); ?>
35
36<div id="wrapper" class="hfeed">
37
38<?php ////cryout_wrapper_hook(); ?>
39<!-- parabola_slefts_socials // parabola_srights_socials -->
40
41
42<div id="header-full">
43
44<?php tpl_includeFile('header.html') ?>
45<header id="header">
46
47<?php //cryout_masthead_hook(); ?>
48<!-- parabola_top_menu -->
49
50        <div id="masthead">
51
52            <div id="branding" role="banner">
53
54                <ul class="a11y skip">
55                    <li><a href="#dokuwiki__content"><?php echo $lang['skip_to_content'] ?></a></li>
56                </ul>
57
58                <?php //cryout_branding_hook();?>
59                <!-- parabola_title_and_description #header-container -->
60                <div id="header-container"><div>
61                    <div id="site-title"><span><?php tpl_link(wl(),$conf['title'],'accesskey="h" title="[H]"') ?></span></div>
62                    <?php /* how to insert logo instead (if no CSS image replacement technique is used):
63                        upload your logo into the data/media folder (root of the media manager) and replace 'logo.png' accordingly:
64                        tpl_link(wl(),'<img src="'.ml('logo.png').'" alt="'.$conf['title'].'" />','id="dokuwiki__top" accesskey="h" title="[H]"') */ ?>
65                    <?php if ($conf['tagline']): ?>
66                    <div id="site-description"><?php echo $conf['tagline'] ?></div>
67                    <?php endif ?>
68                </div>
69
70                    <!-- <div class="socials" id="sheader">
71                        <a target="_blank" rel="nofollow" href="#" class="socialicons social-YouTube" title="YouTube"><img alt="YouTube" src="http://localhost/wordpress/wp-content/themes/parabola/images/socials/YouTube.png"><div class="socials-hover"></div></a>
72                        <a target="_blank" rel="nofollow" href="#" class="socialicons social-Twitter" title="Twitter"><img alt="Twitter" src="http://localhost/wordpress/wp-content/themes/parabola/images/socials/Twitter.png"><div class="socials-hover"></div></a>
73                        <a target="_blank" rel="nofollow" href="#" class="socialicons social-RSS" title="RSS"><img alt="RSS" src="http://localhost/wordpress/wp-content/themes/parabola/images/socials/RSS.png"><div class="socials-hover"></div></a>
74                    </div> -->
75                </div>
76
77                <?php //cryout_header_widgets_hook(); ?>
78                <!-- parabola_header_widget -->
79                <!-- <div id="header-widget-area">
80                    <ul class="yoyo">
81                    <li id="meta-4" class="widget-container widget_meta"><h3 class="widget-title">Meta</h3>
82                        <ul>
83                        <li><a href="http://localhost/wordpress/wp-admin/">Site Admin</a></li>
84                        <li><a href="http://localhost/wordpress/wp-login.php?action=logout&amp;_wpnonce=31916fb65c">Log out</a></li>
85                        <li><a href="#">Entries feed</a></li>
86                        <li><a href="#">Comments feed</a></li>
87                        <li><a href="#">WordPress.org</a></li>
88                        </ul>
89                    </li>
90                    </ul>
91                </div> -->
92                <div style="clear:both;"></div>
93
94            </div><!-- #branding -->
95            <a id="nav-toggle"><span>&nbsp;</span></a>
96            <nav id="access" role="navigation">
97
98                <?php //cryout_access_hook();?>
99                <!-- parabola_main_menu -->
100                <div class="skip-link screen-reader-text"><a href="#content" title="Skip to content">Skip to content</a></div>
101                <div class="menu"><ul id="prime_nav" class="menu">
102                     <!-- SITE TOOLS -->
103                        <h3 class="a11y"><?php echo $lang['site_tools'] ?></h3>
104                            <?php tpl_toolsevent('sitetools', array(
105                                'recent'    => tpl_action('recent', 1, 'li', 1),
106                                'media'     => tpl_action('media', 1, 'li', 1),
107                                'index'     => tpl_action('index', 1, 'li', 1),
108                            )); ?>
109                </ul></div>
110
111            </nav><!-- #access -->
112
113        </div><!-- #masthead -->
114
115    <div style="clear:both;height:1px;width:1px;"> </div>
116
117</header><!-- #header -->
118</div><!-- #header-full -->
119<div id="main">
120    <div  id="forbottom" >
121        <?php //cryout_forbottom_hook(); ?>
122        <!-- parabola_top_menu -->
123
124        <div style="clear:both;"> </div>
125
126        <?php //cryout_breadcrumbs_hook();?>
127        <!-- parabola_breadcrumbs -->
128
129<div style="clear:both;"></div>
130
131
132
133<section id="container" class="two-columns-right" wpclass="<?php //echo parabola_get_layout_class(); ?>">
134<div id="content" role="main">
135    <?php //cryout_before_content_hook(); ?>
136
137   <!--  <div  <?php //post_class(); ?>>
138    <h1 class="entry-title"><?php //the_title(); ?></h1>
139    <?php //cryout_post_title_hook(); ?>
140    <div class="entry-meta">
141    <?php //parabola_meta_before(); cryout_post_meta_hook(); ?>
142    </div> --><!-- .entry-meta -->
143
144    <?php html_msgarea() /* occasional error and info messages on top of the page */ ?>
145
146    <!-- BREADCRUMBS -->
147    <?php if($conf['breadcrumbs']){ ?>
148        <div class="breadcrumbs"><?php tpl_breadcrumbs() ?></div>
149    <?php } ?>
150    <?php if($conf['youarehere']){ ?>
151        <div class="breadcrumbs"><?php tpl_youarehere() ?></div>
152    <?php } ?>
153
154    <div class="entry-content">
155        <!-- ********** CONTENT ********** -->
156        <div id="dokuwiki__content">
157            <?php tpl_flush() /* flush the output buffer */ ?>
158            <?php tpl_includeFile('pageheader.html') ?>
159
160            <div class="page">
161                <!-- wikipage start -->
162                <?php tpl_content() /* the main content */ ?>
163                <!-- wikipage stop -->
164                <div class="clearer"></div>
165            </div>
166
167            <?php tpl_flush() ?>
168            <?php tpl_includeFile('pagefooter.html') ?>
169        </div><!-- /content -->
170    <?php //the_content(); ?>
171    <?php //wp_link_pages( array( 'before' => '<div class="page-link"><span>' . __( 'Pages:', 'parabola' ), 'after' => '</span></div>' ) ); ?>
172    </div><!-- .entry-content -->
173
174    <!-- <div id="entry-author-info">
175        <div id="author-avatar">
176        <?php //echo get_avatar( get_the_author_meta( 'user_email' ), apply_filters( 'parabola_author_bio_avatar_size', 60 ) ); ?>
177        </div><!-- #author-avatar -->
178        <!--
179        <div id="author-description">
180            <h4>About this author</h4>
181            <?php //the_author_meta( 'description' ); ?>
182            <div id="author-link">
183                <a href="<?php //echo get_author_posts_url( get_the_author_meta( 'ID' ) ); ?>">
184                <?php //printf( 'View all posts by this author'.'<span class="meta-nav">&rarr;</span>' ); ?>
185                </a>
186            </div><!-- #author-link -->
187        <!--
188        </div><!-- #author-description -->
189    <!-- </div --><!-- #entry-author-info -->
190
191    <!-- <div class="entry-utility">
192    <?php //parabola_posted_in(); ?>
193    <?php //edit_post_link( __( 'Edit', 'parabola' ), '<span class="edit-link">', '</span>' ); cryout_post_footer_hook(); ?>
194    </div><!-- .entry-utility -->
195    <!-- </div><!-- #post-## -->
196
197    <!-- <div id="nav-below" class="navigation">
198    <div class="nav-previous"><?php //previous_post_link( '%link', '<span class="meta-nav">&laquo;</span> %title' ); ?></div>
199    <div class="nav-next"><?php //next_post_link( '%link', '%title <span class="meta-nav">&raquo;</span>' ); ?></div>
200    </div> --><!-- #nav-below -->
201
202    <?php //comments_template( '', true ); ?>
203
204
205    <?php //cryout_after_content_hook(); ?>
206</div><!-- #content -->
207
208<?php //parabola_get_sidebar(); ?>
209
210<div id="secondary" class="widget-area sidey" role="complementary">
211
212    <div id="search-10" class="widget-container widget_search">
213    <!-- <form role="search" method="get" class="searchform" action="http://localhost/wordpress/">
214    <label>
215    <span class="screen-reader-text">Search for:</span>
216    <input type="search" class="s" placeholder="SEARCH" value="" name="s">
217    </label>
218    <button type="submit" class="searchsubmit"><span class="screen-reader-text">Search</span></button>
219    </form> -->
220    <h3 class="widget-title">Search</h3>
221    <?php tpl_searchform() ?>
222    </div>
223
224     <div id="anotherone" class="widget-container">
225        <!-- <h3 class="widget-title">xxx</h3>      -->
226       <!-- ********** ASIDE ********** -->
227        <?php if ($showSidebar): ?>
228            <div id="writtensidebar">
229            <?php tpl_includeFile('sidebarheader.html') ?>
230            <?php tpl_include_page($conf['sidebar'], 1, 1) /* includes the nearest sidebar page */ ?>
231            <?php tpl_includeFile('sidebarfooter.html') ?>
232            <div class="clearer"></div>
233            </div><!-- /aside -->
234        <?php endif; ?>
235    </div>
236
237    <ul class="xoxo">
238
239    <?php if ($showTools): ?>
240    <li class="widget-container"><h3 class="widget-title">Page Tools</h3>
241         <!-- PAGE ACTIONS -->
242        <h3 class="a11y"><?php echo $lang['page_tools'] ?></h3>
243        <ul>
244            <?php tpl_toolsevent('pagetools', array(
245                'edit'      => tpl_action('edit', 1, 'li', 1),
246                'discussion'=> _tpl_action('discussion', 1, 'li', 1),
247                'revisions' => tpl_action('revisions', 1, 'li', 1),
248                'backlink'  => tpl_action('backlink', 1, 'li', 1),
249                'subscribe' => tpl_action('subscribe', 1, 'li', 1),
250                'revert'    => tpl_action('revert', 1, 'li', 1),
251                'top'       => tpl_action('top', 1, 'li', 1),
252            )); ?>
253        </ul>
254    </li>
255    <?php endif; ?>
256    <?php if ($conf['useacl'] && $showTools): ?>
257    <li class="widget-container">     <h3 class="widget-title">User Tools</h3>
258        <ul>
259        <!-- USER TOOLS -->
260        <h3 class="a11y"><?php echo $lang['user_tools'] ?></h3>
261            <?php
262                if (!empty($_SERVER['REMOTE_USER'])) {
263                    echo '<li class="user">';
264                    tpl_userinfo(); /* 'Logged in as ...' */
265                    echo '</li>';
266                }
267            ?>
268            <?php /* the optional second parameter of tpl_action() switches between a link and a button,
269                     e.g. a button inside a <li> would be: tpl_action('edit', 0, 'li') */
270            ?>
271            <?php tpl_toolsevent('usertools', array(
272                'admin'     => tpl_action('admin', 1, 'li', 1),
273                'userpage'  => _tpl_action('userpage', 1, 'li', 1),
274                'profile'   => tpl_action('profile', 1, 'li', 1),
275                'register'  => tpl_action('register', 1, 'li', 1),
276                'login'     => tpl_action('login', 1, 'li', 1),
277            )); ?>
278        </ul>
279    </li>
280    <?php endif ?>
281</ul>
282
283</div>
284
285</section><!-- #container -->
286
287    <!-- <footer id="footer" role="contentinfo">
288        <div id="colophon">
289
290            <?php //get_sidebar( 'footer' );?>
291
292        </div><!-- #colophon -->
293        <!--
294        <div id="footer2">
295            <div id="footer2-inner">
296                <?php //cryout_footer_hook(); ?>
297                <!-- parabola_footer_socials // parabola_site_info // parabola_copyright -->
298            <!--
299            </div>
300        </div><!-- #footer2 -->
301
302    <!-- </footer> --><!-- #footer -->
303
304    </div> <!-- #forbottom -->
305    </div><!-- #main -->
306
307    <footer id="footer" role="contentinfo">
308    <div id="colophon"></div><!-- #colophon -->
309
310    <div id="footer2">
311        <div id="footer2-inner">
312            <nav class="footermenu"><ul id="menu-social-media-links" class="menu">
313            <li class="menu-item"><a href="#">Link 1</a></li>
314            <li class="menu-item"><a href="#">Link 2</a></li>
315            <li class="menu-item"><a href="#">Link 3</a></li>
316            <li class="menu-item"><a href="#">Link 4</a></li>
317            </ul></nav>
318
319        <div id="site-copyright">
320            <div class="doc"><?php tpl_pageinfo() /* 'Last modified' etc */ ?></div>
321            <?php tpl_license('button') /* content license, parameters: img=*badge|button|0, imgonly=*0|1, return=*0|1 */ ?>
322            <!-- This text can be changed from the Miscellaneous section of the settings page. <br>
323            <b>Lorem ipsum</b> dolor sit amet, <a href="#">consectetur adipiscing</a> elit, cras ut imperdiet augue.  -->
324        </div>
325        <div style="text-align:center;padding:5px 0 2px;text-transform:uppercase;font-size:12px;margin:1em auto 0;">
326            Powered by <a target="_blank" href="#" title="Parabola Theme by Cryout Creations">Parabola</a>
327            &amp;
328            <a target="_blank" href="#" title="Converted to Dokuwiki by desbest">desbest</a>
329            &amp;
330            <a target="_blank" href="#" title="Flat file wiki script">  Dokuwiki</a>
331            .
332        </div><!-- #site-info -->
333
334        <!-- <div class="socials" id="sfooter">
335            <a target="_blank" rel="nofollow" href="#" class="socialicons social-YouTube" title="YouTube"><img alt="YouTube" src="http://localhost/wordpress/wp-content/themes/parabola/images/socials/YouTube.png"><div class="socials-hover"></div></a>
336            <a target="_blank" rel="nofollow" href="#" class="socialicons social-Twitter" title="Twitter"><img alt="Twitter" src="http://localhost/wordpress/wp-content/themes/parabola/images/socials/Twitter.png"><div class="socials-hover"></div></a>
337            <a target="_blank" rel="nofollow" href="#" class="socialicons social-RSS" title="RSS"><img alt="RSS" src="http://localhost/wordpress/wp-content/themes/parabola/images/socials/RSS.png"><div class="socials-hover"></div></a>
338        </div>     -->
339        <div class="no"><?php tpl_indexerWebBug() /* provide DokuWiki housekeeping, required in all templates */ ?></div>
340    </div><!-- #footer2 -->
341
342    </footer>
343    <?php tpl_includeFile('footer.html') ?>
344
345</div><!-- #wrapper -->
346
347
348<!-- end of parabola -->
349
350
351    <?php /* with these Conditional Comments you can better address IE issues in CSS files,
352             precede CSS rules by #IE8 for IE8 (div closes at the bottom) */ ?>
353    <!--[if lte IE 8 ]><div id="IE8"><![endif]-->
354
355    <?php /* the "dokuwiki__top" id is needed somewhere at the top, because that's where the "back to top" button/link links to */ ?>
356    <?php /* tpl_classes() provides useful CSS classes; if you choose not to use it, the 'dokuwiki' class at least
357             should always be in one of the surrounding elements (e.g. plugins and templates depend on it) */ ?>
358
359
360<script type="text/javascript">
361/* Mobile Menu v2 modified from the wordpress theme */
362    var state = false;
363    jQuery("#nav-toggle").click(function(){
364        // alert("12");
365        jQuery("#access").slideToggle(function(){ if (state) {jQuery(this).removeAttr( 'style' )}; state = ! state; } );
366    });
367    //parabola_mobilemenu_init();
368</script>
369
370</body>
371</html>
372