1<?php 2/** 3 * DokuWiki Parallax Template 4 * Based on the starter template and a wordpress theme of the same name 5 * 6 * @link http://dokuwiki.org/template:parallax 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="stylesheet" href="//fonts.googleapis.com/css?family=Arimo:400,700|Spinnaker"> 29 <link rel="stylesheet" href="//fonts.googleapis.com/css?family=Bitter"> 30</head> 31 32<body id="dokuwiki__top" class="site <?php echo tpl_classes(); ?> <?php echo ($showSidebar) ? 'hasSidebar' : ''; ?>"> 33 34 35<!-- ---------------- Menu --------------------- --> 36<div class="container-full-width" id="navigation_menu"> 37 <div class="container"> 38 <div class="container-fluid"> 39 <?php tpl_includeFile('header.html') ?> 40 <div class="row-fluid"> 41 <div id="logo_container" class="span3"> 42 <?php //cyberchimps_header_logo(); ?> 43 <div id="logo"> 44 <?php /* how to insert logo instead (if no CSS image replacement technique is used): 45 upload your logo into the data/media folder (root of the media manager) and replace 'logo.png' accordingly: 46 tpl_link(wl(),'<img src="'.ml('logo.png').'" alt="'.$conf['title'].'" />','id="dokuwiki__top" accesskey="h" title="[H]"') */ ?> 47 </div> 48 <div class="hgroup"> 49 <h2 class="site-title"><?php tpl_link(wl(),$conf['title'],'accesskey="h" title="[H]"') ?></h2> 50 <?php if ($conf['tagline']): ?> 51 <p class="claim"><?php echo $conf['tagline'] ?></p> 52 <?php endif ?> 53 54 </div> 55 <ul class="a11y skip"> 56 <li><a href="#dokuwiki__content"><?php echo $lang['skip_to_content'] ?></a></li> 57 </ul> 58 </div> 59 <!-- span3 --> 60 <div id="social_container" class="span2"> 61 <?php //cyberchimps_header_social_icons(); ?> 62 </div> 63 <!-- span 2 --> 64 <nav id="navigation" class="span7" role="navigation"> 65 <div class="main-navigation navbar"> 66 <div class="navbar-inner"> 67 <div class="container"> 68 69 <div class="nav-collapse collapse"> 70 71 <div class="menu-my-first-menu-container"><ul id="menu-my-first-menu" class="nav"> 72 <!-- SITE TOOLS --> 73 <h3 class="a11y"><?php echo $lang['site_tools'] ?></h3> 74 <?php tpl_toolsevent('sitetools', array( 75 'recent' => tpl_action('recent', 1, 'li', 1), 76 'media' => tpl_action('media', 1, 'li', 1), 77 'index' => tpl_action('index', 1, 'li', 1), 78 )); ?> 79 </ul></div> 80 81 </div> 82 <!-- collapse --> 83 84 <!-- .btn-navbar is used as the toggle for collapsed navbar content --> 85 <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse"> 86 <span class="icon-bar"></span> 87 <span class="icon-bar"></span> 88 <span class="icon-bar"></span> 89 </a> 90 </div> 91 <!-- container --> 92 </div> 93 <!-- .navbar-inner .row-fluid --> 94 </div> 95 <!-- main-navigation navbar --> 96 </nav> 97 <!-- #navigation --> 98 </div> 99 </div> 100 <!-- .container-fluid--> 101 </div> 102 <!-- .container --> 103</div> 104<!-- #navigation_menu --> 105 106<?php //do_action( 'cyberchimps_after_navigation' ); ?> 107 108<div id="cc_spacer"></div><!-- used to clear fixed navigation by the themes js --> 109<!-- begin content area single.php --> 110 <div id="single_page" class="container-full-width"> 111 112 <div class="container"> 113 114 <div class="container-fluid"> 115 116 <?php //do_action( 'cyberchimps_before_container' ); ?> 117 118 <div id="container" class="row-fluid" <?php //cyberchimps_filter_container_class(); ?>> 119 120 <?php //do_action( 'cyberchimps_before_content_container' ); ?> 121 122 <div id="content" class=" span9 content-sidebar-right"<?php //cyberchimps_filter_content_class(); ?>> 123 124 <?php //do_action( 'cyberchimps_before_content' ); ?> 125 126 <?php //get_template_part( 'content', 'single' ); ?> 127 128 129 <article class="post"> 130 131 <header class="entry-header"> 132 133 <?php //cyberchimps_post_format_icon(); ?> 134 135 <!-- <h1 class="entry-title">Test post</h1> --> 136 137 <?php 138 139 // get the page title toggle option 140 // $page_title = get_post_meta( get_the_ID(), 'cyberchimps_page_title_toggle', true ); 141 142 143 ?> 144 145 <!-- BREADCRUMBS --> 146 <?php if($conf['breadcrumbs']){ ?> 147 <div class="breadcrumbs"><?php tpl_breadcrumbs() ?></div> 148 <?php } ?> 149 <?php if($conf['youarehere']){ ?> 150 <div class="breadcrumbs"><?php tpl_youarehere() ?></div> 151 <?php } ?> 152 153 <!-- <a href="" title="Permalink to %s" rel="bookmark">stuff here</a> --> 154 <?php 155 //( get_the_title() ) ? the_title() : the_permalink(); 156 157 // get the post title toggle option 158 // $post_title = cyberchimps_get_option( 'single_post_title' ); 159 // ( get_the_title() ) ? the_title() : the_permalink(); 160 ?> 161 162 <div class="entry-meta"> 163 <?php //cyberchimps_posted_on(); ?> 164 <?php //cyberchimps_posted_by(); ?> 165 </div><!-- .entry-meta --> 166 </header> 167 <!-- .entry-header --> 168 169 <?php //if( is_single() ) : // Only display Excerpts for Search ?> 170 171 <div class="entry-content"> 172 <?php html_msgarea() /* occasional error and info messages on top of the page */ ?> 173 <?php //the_content(); ?> 174 <!-- ********** CONTENT ********** --> 175 <div id="dokuwiki__content"> 176 <?php tpl_flush() /* flush the output buffer */ ?> 177 <?php tpl_includeFile('pageheader.html') ?> 178 179 <div class="page"> 180 <!-- wikipage start --> 181 <?php tpl_content() /* the main content */ ?> 182 <!-- wikipage stop --> 183 <div class="clearer"></div> 184 </div> 185 186 <?php tpl_flush() ?> 187 <?php tpl_includeFile('pagefooter.html') ?> 188 <?php //cyberchimps_featured_image(); ?> 189 <?php //the_content( __( 'Continue reading', 'parallax' ) . '<span class="meta-nav">→</span>' ); ?> 190 <?php //wp_link_pages( array( 'before' => '<div class="page-links">' . __( 'Pages:', 'parallax' ), 'after' => '</div>' ) ); ?> 191 </div><!-- .entry-content --> 192 193 <?php //elseif( is_search() ): ?> 194 195 <div class="entry-summary"> 196 <?php //cyberchimps_featured_image(); ?> 197 198 </div><!-- /content --> 199 </div><!-- .entry-summary --> 200 201 202 203 <footer class="entry-meta"> 204 <?php //if( 'post' == get_post_type() ) : // Hide category and tag text for pages on Search ?> 205 206 <?php //cyberchimps_posted_in() ?> 207 208 <?php //cyberchimps_post_tags(); ?> 209 210 <?php //endif; // End if 'post' == get_post_type() ?> 211 212 <?php //cyberchimps_post_comments() ?> 213 214 <?php //edit_post_link( __( 'Edit', 'parallax' ), '<span class="edit-link">', '</span>' ); ?> 215 216 </footer> 217 <!-- #entry-meta --> 218 219 </article><!-- #post ?> --> 220 221 222 <!-- <div class="more-content"> 223 <div class="row-fluid"> 224 <div class="span6 previous-post"> 225 <?php //previous_post_link(); ?> 226 </div> 227 <div class="span6 next-post"> 228 <?php // next_post_link(); ?> 229 </div> 230 </div> 231 </div> --> 232 233 <?php 234 // If comments are open or we have at least one comment, load up the comment template 235 ?> 236 237 <?php //do_action( 'cyberchimps_after_content' ); ?> 238 239 </div> 240 <!-- #content --> 241 242 <div id="secondary" class="widget-area span3"> 243 244 245 <div id="sidebar"> 246 <aside id="searchhere" class="widget-container"> 247 <!-- <h3 class="widget-title">Search</h3> --> 248 <?php tpl_searchform() ?> 249 </aside> 250 251 <aside id="writtensidebar" class="widget-container"> 252 <!-- ********** ASIDE ********** --> 253 <?php if ($showSidebar): ?> 254 <?php tpl_includeFile('sidebarheader.html') ?> 255 <?php tpl_include_page($conf['sidebar'], 1, 1) /* includes the nearest sidebar page */ ?> 256 <?php tpl_includeFile('sidebarfooter.html') ?> 257 <div class="clearer"></div> 258 <?php endif; ?> 259 </aside> 260 261 <aside id="pagetools" class="widget-container"><h3 class="widget-title">Page Tools</h3> <ul> 262 <!-- PAGE ACTIONS --> 263 <?php if ($showTools): ?> 264 <h3 class="a11y"><?php echo $lang['page_tools'] ?></h3> 265 <?php tpl_toolsevent('pagetools', array( 266 'edit' => tpl_action('edit', 1, 'li', 1), 267 'discussion'=> _tpl_action('discussion', 1, 'li', 1), 268 'revisions' => tpl_action('revisions', 1, 'li', 1), 269 'backlink' => tpl_action('backlink', 1, 'li', 1), 270 'subscribe' => tpl_action('subscribe', 1, 'li', 1), 271 'revert' => tpl_action('revert', 1, 'li', 1), 272 'top' => tpl_action('top', 1, 'li', 1), 273 )); ?> 274 <?php endif; ?> 275 </ul> 276 </aside> 277 278 <aside id="usertools" class="widget-container"> <h3 class="widget-title">User Tools</h3> <ul> 279 <!-- USER TOOLS --> 280 <?php if ($conf['useacl'] && $showTools): ?> 281 <h3 class="a11y"><?php echo $lang['user_tools'] ?></h3> 282 <?php 283 if (!empty($_SERVER['REMOTE_USER'])) { 284 echo '<li class="user">'; 285 tpl_userinfo(); /* 'Logged in as ...' */ 286 echo '</li>'; 287 } 288 ?> 289 <?php /* the optional second parameter of tpl_action() switches between a link and a button, 290 e.g. a button inside a <li> would be: tpl_action('edit', 0, 'li') */ 291 ?> 292 <?php tpl_toolsevent('usertools', array( 293 'admin' => tpl_action('admin', 1, 'li', 1), 294 'userpage' => _tpl_action('userpage', 1, 'li', 1), 295 'profile' => tpl_action('profile', 1, 'li', 1), 296 'register' => tpl_action('register', 1, 'li', 1), 297 'login' => tpl_action('login', 1, 'li', 1), 298 )); ?> 299 <?php endif ?> 300 301 </ul> 302 </aside> 303 </div> 304 <!-- #sidebar --> 305 306 307 </div> 308 309 <?php //do_action( 'cyberchimps_after_content_container' ); ?> 310 311 </div> 312 <!-- #container .row-fluid--> 313 314 <?php //do_action( 'cyberchimps_after_container' ); ?> 315 316 </div> 317 <!--container fluid --> 318 319 </div> 320 <!-- container --> 321 322 </div><!-- container full width --> 323 324 <!-- footer.php --> 325 326 <div class="container-full-width" id="after_footer"> 327 <div class="container"> 328 <div class="container-fluid"> 329 330 <footer class="site-footer row-fluid"> 331 <div class="span6"> 332 <div id="credit"> 333 <div class="doc"><?php tpl_pageinfo() /* 'Last modified' etc */ ?></div> 334 <?php tpl_license('button') /* content license, parameters: img=*badge|button|0, imgonly=*0|1, return=*0|1 */ ?> 335 336 <h4 class="cc-credit-text">Parallax theme by <a href="http://cyberchimps.com/" target="_blank" title="CyberChimps Themes">Cyberchimps</a> and <a href="http://desbest.com" target="_blank">desbest</a></h4> 337 338 <div class="no"><?php tpl_indexerWebBug() /* provide DokuWiki housekeeping, required in all templates */ ?></div> 339 340 </div> 341 </div> 342 <!-- Adds the afterfooter copyright area --> 343 <div class="span6"> 344 <div id="copyright"> 345 <!-- © --> <?php echo $conf['title']; ?> </div> 346 </div> 347 </footer> 348 <?php tpl_includeFile('footer.html') ?> 349 <!-- row-fluid --> 350 </div> 351 <!-- .container-fluid--> 352 </div> 353 <!-- .container --> 354 </div> 355 356 <?php //do_action( 'cyberchimps_after_footer_widgets' ); ?> 357 358<?php //} ?> 359<?php //do_action( 'cyberchimps_before_footer_container' ); ?> 360<?php //do_action( 'cyberchimps_footer' ); ?> 361<?php //do_action( 'cyberchimps_after_footer_container' ); ?> 362 363</div><!-- #wrapper .container-fluid --> 364 365<?php //do_action( 'cyberchimps_after_wrapper' ); ?> 366 367</div><!-- container --> 368 369 370 371 <?php /* the "dokuwiki__top" id is needed somewhere at the top, because that's where the "back to top" button/link links to */ ?> 372 <?php /* tpl_classes() provides useful CSS classes; if you choose not to use it, the 'dokuwiki' class at least 373 should always be in one of the surrounding elements (e.g. plugins and templates depend on it) */ ?> 374 375 <script type="text/javascript" src="<?php echo tpl_basedir();?>/core.js"></script> 376 <script type="text/javascript" src="<?php echo tpl_basedir();?>/lib/bootstrap/js/bootstrap.js"></script> 377 <!-- due to the way dokuwiki buffers output, this javascript has to 378 be before the </body> tag and not in the <head> --> 379</body> 380</html> 381