1<?php 2/** 3 * STM - Something That Matters 2016 4 * 5 * @link https://github.com/Fraina/STM-Dokuwiki-Template 6 * @author Fraina <jscaem@gmail.com> 7 * @license GPL 2 (http://www.gnu.org/licenses/gpl.html) 8 * 9 * ------------------------------------------------------------------------------------ 10 * 11 * Edit From: 12 * DokuWiki Default Template 2012 13 * 14 * @link http://dokuwiki.org/template 15 * @author Anika Henke <anika@selfthinker.org> 16 * @author Clarence Lee <clarencedglee@gmail.com> 17 * @license GPL 2 (http://www.gnu.org/licenses/gpl.html) 18 */ 19 20if (!defined('DOKU_INC')) die(); /* must be run from within DokuWiki */ 21header('X-UA-Compatible: IE=edge,chrome=1'); 22 23$showSidebar = page_findnearest($conf['sidebar']) && ($ACT=='show'); 24$showTitle = ($ACT=='show') || ($ACT=='edit') || ($ACT=='backlink') 25?><!DOCTYPE html> 26<html lang="<?php echo $conf['lang'] ?>" dir="<?php echo $lang['direction'] ?>" class="no-js"> 27<head> 28 <meta charset="utf-8" /> 29 <title><?php tpl_pagetitle() ?> [<?php echo strip_tags($conf['title']) ?>]</title> 30 <script>(function(H){H.className=H.className.replace(/\bno-js\b/,'js')})(document.documentElement)</script> 31 <?php tpl_metaheaders() ?> 32 <meta name="viewport" content="width=device-width, initial-scale=1.0"> 33 <?php echo tpl_favicon(array('favicon', 'mobile')) ?> 34 <?php tpl_includeFile('meta.html') ?> 35</head> 36 37<body class="dokuwiki"> 38 <!--[if lte IE 7 ]><div id="IE7"><![endif]--><!--[if IE 8 ]><div id="IE8"><![endif]--> 39 40 <div class="wrapper"> 41 <?php 42 // render the content into buffer for later use 43 ob_start(); 44 tpl_content(false); 45 $buffer = ob_get_clean(); 46 ?> 47 <?php include('tpl_header.php') ?> 48 49 <div class="wrapper-content"> 50 <div class="sidebar"> 51 <aside class="sidebar-aside"> 52 <h3 class="sidebar-title ttc <?php echo $showTitle ? '' : 'hidden';?>"> 53 <?php echo $ID ?><?php if($conf['maxtoclevel'] > 0): ?><i class="icon-control plxs"></i><?php endif ?> 54 </h3> 55 <?php if($conf['maxtoclevel'] > 0): ?> 56 <nav class="sidebar-articleNav"> 57 <?php 58 $toc = tpl_toc(true); 59 if ($toc){ 60 echo $toc; 61 } 62 ?> 63 </nav> 64 <?php endif ?> 65 <?php if($conf['breadcrumbs'] || $conf['youarehere']): ?> 66 <div class="sidebar-breadcrumbs"> 67 <div class="breadcrumbs"> 68 <?php if($conf['youarehere']): ?> 69 <div class="youarehere"><?php tpl_youarehere() ?></div> 70 <?php endif ?> 71 <?php if($conf['breadcrumbs']): ?> 72 <div class="trace"><?php tpl_breadcrumbs() ?></div> 73 <?php endif ?> 74 </div> 75 </div> 76 <?php endif ?> 77 <div class="sidebar-page"> 78 <?php if ($showSidebar): ?> 79 <?php tpl_includeFile('sidebarheader.html') ?> 80 <?php tpl_include_page($conf['sidebar'], 1, 1) /* includes the nearest sidebar page */ ?> 81 <?php tpl_includeFile('sidebarfooter.html') ?> 82 <?php endif; ?> 83 </div> 84 </aside> 85 </div> 86 <div class="main"> 87 <?php echo $buffer?> 88 </div> 89 </div> 90 </div> 91 92 <?php include('tpl_footer.php') ?> 93 <!--[if ( lte IE 7 | IE 8 ) ]></div><![endif]--> 94</body> 95</html> 96