1<?php 2/** 3 * Zen DokuWiki Template 2017 4 * 5 * @link http://dokuwiki.org/template 6 * @author Zatalyz <zatalyz@liev.re> 7 * @author Anika Henke <anika@selfthinker.org> 8 * @author Clarence Lee <clarencedglee@gmail.com> 9 * @license GPL 2 (http://www.gnu.org/licenses/gpl.html) 10 */ 11 12if (!defined('DOKU_INC')) die(); /* must be run from within DokuWiki */ 13header('X-UA-Compatible: IE=edge,chrome=1'); 14 15$hasSidebar = page_findnearest($conf['sidebar']); 16$showSidebar = $hasSidebar && ($ACT=='show'); 17?><!DOCTYPE html> 18<html lang="<?php echo $conf['lang'] ?>" dir="<?php echo $lang['direction'] ?>" class="no-js"> 19<head> 20 <meta charset="utf-8" /> 21 <title><?php tpl_pagetitle() ?> [<?php echo strip_tags($conf['title']) ?>]</title> 22 <script>(function(H){H.className=H.className.replace(/\bno-js\b/,'js')})(document.documentElement)</script> 23 <?php tpl_metaheaders() ?> 24 <meta name="viewport" content="width=device-width,initial-scale=1" /> 25 <?php echo tpl_favicon(array('favicon', 'mobile')) ?> 26 <?php tpl_includeFile('meta.html') ?> 27</head> 28 29<body> 30 <div id="dokuwiki__site"><div id="dokuwiki__top" class="site <?php echo tpl_classes(); ?> <?php 31 echo ($showSidebar) ? 'showSidebar' : ''; ?> <?php echo ($hasSidebar) ? 'hasSidebar' : ''; ?>"> 32 33 <?php include('tpl_header.php') ?> 34 35 <div class="wrapper group"> 36 37 <?php if($showSidebar): ?> 38 <!-- ********** ASIDE ********** --> 39 <div id="dokuwiki__aside"><div class="pad aside include group"> 40 <h3 class="toggle"><?php echo $lang['sidebar'] ?></h3> 41 <div class="content"><div class="group"> 42 <?php tpl_flush() ?> 43 <?php tpl_includeFile('sidebarheader.html') ?> 44 <?php tpl_include_page($conf['sidebar'], true, true) ?> 45 <?php tpl_includeFile('sidebarfooter.html') ?> 46 </div></div> 47 </div></div><!-- /aside --> 48 <?php endif; ?> 49 50 <!-- ********** CONTENT ********** --> 51 <div id="dokuwiki__content"><div class="pad group"> 52 <?php html_msgarea() ?> 53 54 <div class="page group"> 55 <?php tpl_flush() ?> 56 <?php tpl_includeFile('pageheader.html') ?> 57 <!-- wikipage start --> 58 <?php tpl_content() ?> 59 <!-- wikipage stop --> 60 <?php tpl_includeFile('pagefooter.html') ?> 61 </div> 62 63 <div class="docInfo"><?php tpl_pageinfo() ?></div> 64 65 <?php tpl_flush() ?> 66 </div></div><!-- /content --> 67 68 <hr class="a11y" /> 69 70 <!-- PAGE ACTIONS --> 71 <div id="dokuwiki__pagetools"> 72 <h3 class="a11y"><?php echo $lang['page_tools']; ?></h3> 73 <div class="tools"> 74 <ul> 75 <?php 76 $data = array( 77 'view' => 'main', 78 'items' => array( 79 'edit' => tpl_action('edit', true, 'li', true, '<span>', '</span>'), 80 'revert' => tpl_action('revert', true, 'li', true, '<span>', '</span>'), 81 'revisions' => tpl_action('revisions', true, 'li', true, '<span>', '</span>'), 82 'backlink' => tpl_action('backlink', true, 'li', true, '<span>', '</span>'), 83 'subscribe' => tpl_action('subscribe', true, 'li', true, '<span>', '</span>'), 84 'top' => tpl_action('top', true, 'li', true, '<span>', '</span>') 85 ) 86 ); 87 88 // the page tools can be amended through a custom plugin hook 89 $evt = new Doku_Event('TEMPLATE_PAGETOOLS_DISPLAY', $data); 90 if($evt->advise_before()){ 91 foreach($evt->data['items'] as $k => $html) echo $html; 92 } 93 $evt->advise_after(); 94 unset($data); 95 unset($evt); 96 ?> 97 </ul> 98 </div> 99 </div> 100 </div><!-- /wrapper --> 101 <?php include('pagetools.php') ?> 102 <?php include('tpl_footer.php') ?> 103 </div></div><!-- /site --> 104 105 <div class="no"><?php tpl_indexerWebBug() /* provide DokuWiki housekeeping, required in all templates */ ?></div> 106 <div id="screen__mode" class="no"></div><?php /* helper to detect CSS media query in script.js */ ?> 107</body> 108</html> 109