10e336ca8SAndreas Gohr<?php 20e336ca8SAndreas Gohr/** 30e336ca8SAndreas Gohr * DokuWiki Default Template 2012 40e336ca8SAndreas Gohr * 50e336ca8SAndreas Gohr * @link http://dokuwiki.org/template 60e336ca8SAndreas Gohr * @author Anika Henke <anika@selfthinker.org> 70e336ca8SAndreas Gohr * @author Clarence Lee <clarencedglee@gmail.com> 80e336ca8SAndreas Gohr * @license GPL 2 (http://www.gnu.org/licenses/gpl.html) 90e336ca8SAndreas Gohr */ 100e336ca8SAndreas Gohr 110e336ca8SAndreas Gohrif (!defined('DOKU_INC')) die(); /* must be run from within DokuWiki */ 12b9cf8ad4SAnika Henkeheader('X-UA-Compatible: IE=edge,chrome=1'); 130e336ca8SAndreas Gohr 14fc8dc822SAnika Henke$hasSidebar = page_findnearest($conf['sidebar']); 15fc8dc822SAnika Henke$showSidebar = $hasSidebar && ($ACT=='show'); 16c0670a18SAnika Henke?><!DOCTYPE html> 17c0670a18SAnika Henke<html lang="<?php echo $conf['lang'] ?>" dir="<?php echo $lang['direction'] ?>" class="no-js"> 180e336ca8SAndreas Gohr<head> 19d22cdf50SAnika Henke <meta charset="utf-8" /> 200e336ca8SAndreas Gohr <title><?php tpl_pagetitle() ?> [<?php echo strip_tags($conf['title']) ?>]</title> 21c0670a18SAnika Henke <script>(function(H){H.className=H.className.replace(/\bno-js\b/,'js')})(document.documentElement)</script> 220e336ca8SAndreas Gohr <?php tpl_metaheaders() ?> 230e336ca8SAndreas Gohr <meta name="viewport" content="width=device-width,initial-scale=1" /> 240e336ca8SAndreas Gohr <?php echo tpl_favicon(array('favicon', 'mobile')) ?> 25e5d4768dSAndreas Gohr <?php tpl_includeFile('meta.html') ?> 260e336ca8SAndreas Gohr</head> 270e336ca8SAndreas Gohr 280e336ca8SAndreas Gohr<body> 290e336ca8SAndreas Gohr <!--[if lte IE 7 ]><div id="IE7"><![endif]--><!--[if IE 8 ]><div id="IE8"><![endif]--> 300e336ca8SAndreas Gohr <div id="dokuwiki__site"><div id="dokuwiki__top" 31fc8dc822SAnika Henke class="dokuwiki site mode_<?php echo $ACT ?> <?php echo ($showSidebar) ? 'showSidebar' : ''; 32fc8dc822SAnika Henke ?> <?php echo ($hasSidebar) ? 'hasSidebar' : ''; ?>"> 330e336ca8SAndreas Gohr 340e336ca8SAndreas Gohr <?php include('tpl_header.php') ?> 350e336ca8SAndreas Gohr 360e336ca8SAndreas Gohr <div class="wrapper group"> 370e336ca8SAndreas Gohr 380e336ca8SAndreas Gohr <?php if($showSidebar): ?> 390e336ca8SAndreas Gohr <!-- ********** ASIDE ********** --> 400e336ca8SAndreas Gohr <div id="dokuwiki__aside"><div class="pad include group"> 41a655c878SAnika Henke <h3 class="toggle"><?php echo $lang['sidebar'] ?></h3> 4248722ac8SAnika Henke <div class="content"> 4357fc5eddSAnika Henke <?php tpl_flush() ?> 44e5d4768dSAndreas Gohr <?php tpl_includeFile('sidebarheader.html') ?> 45835dfcaeSAnika Henke <?php tpl_include_page($conf['sidebar'], 1, 1) ?> 46e5d4768dSAndreas Gohr <?php tpl_includeFile('sidebarfooter.html') ?> 47c8388e44SAndreas Gohr </div> 480e336ca8SAndreas Gohr </div></div><!-- /aside --> 490e336ca8SAndreas Gohr <?php endif; ?> 500e336ca8SAndreas Gohr 510e336ca8SAndreas Gohr <!-- ********** CONTENT ********** --> 520e336ca8SAndreas Gohr <div id="dokuwiki__content"><div class="pad group"> 530e336ca8SAndreas Gohr 540e336ca8SAndreas Gohr <div class="pageId"><span><?php echo hsc($ID) ?></span></div> 550e336ca8SAndreas Gohr 560e336ca8SAndreas Gohr <div class="page group"> 570e336ca8SAndreas Gohr <?php tpl_flush() ?> 58e5d4768dSAndreas Gohr <?php tpl_includeFile('pageheader.html') ?> 590e336ca8SAndreas Gohr <!-- wikipage start --> 6057fc5eddSAnika Henke <?php tpl_content() ?> 610e336ca8SAndreas Gohr <!-- wikipage stop --> 62e5d4768dSAndreas Gohr <?php tpl_includeFile('pagefooter.html') ?> 630e336ca8SAndreas Gohr </div> 640e336ca8SAndreas Gohr 6557fc5eddSAnika Henke <div class="docInfo"><?php tpl_pageinfo() ?></div> 660e336ca8SAndreas Gohr 670e336ca8SAndreas Gohr <?php tpl_flush() ?> 680e336ca8SAndreas Gohr </div></div><!-- /content --> 690e336ca8SAndreas Gohr 700e336ca8SAndreas Gohr <hr class="a11y" /> 710e336ca8SAndreas Gohr 720e336ca8SAndreas Gohr <!-- PAGE ACTIONS --> 730e336ca8SAndreas Gohr <div id="dokuwiki__pagetools"> 740e336ca8SAndreas Gohr <h3 class="a11y"><?php echo $lang['page_tools']; ?></h3> 750e336ca8SAndreas Gohr <div class="tools"> 760e336ca8SAndreas Gohr <ul> 770e336ca8SAndreas Gohr <?php 78*0a8f03d8SAndreas Gohr $data = array( 79*0a8f03d8SAndreas Gohr 'edit' => tpl_action('edit', 1, 'li', 1, '<span>', '</span>'), 80*0a8f03d8SAndreas Gohr 'revert' => tpl_action('revert', 1, 'li', 1, '<span>', '</span>'), 81*0a8f03d8SAndreas Gohr 'revisions' => tpl_action('revisions', 1, 'li', 1, '<span>', '</span>'), 82*0a8f03d8SAndreas Gohr 'backlink' => tpl_action('backlink', 1, 'li', 1, '<span>', '</span>'), 83*0a8f03d8SAndreas Gohr 'subscribe' => tpl_action('subscribe', 1, 'li', 1, '<span>', '</span>'), 84*0a8f03d8SAndreas Gohr 'top' => tpl_action('top', 1, 'li', 1, '<span>', '</span>') 85*0a8f03d8SAndreas Gohr ); 86*0a8f03d8SAndreas Gohr 87*0a8f03d8SAndreas Gohr // the page tools can be ammended through a custom plugin hook 88*0a8f03d8SAndreas Gohr $evt = new Doku_Event('TEMPLATE_DOKUWIKI_PAGETOOLFLOAT_DISPLAY', $data); 89*0a8f03d8SAndreas Gohr if($evt->advise_before()){ 90*0a8f03d8SAndreas Gohr foreach($evt->data as $k => $html) echo $html; 91*0a8f03d8SAndreas Gohr } 92*0a8f03d8SAndreas Gohr $evt->advise_after(); 93*0a8f03d8SAndreas Gohr unset($data); 94*0a8f03d8SAndreas Gohr unset($evt); 950e336ca8SAndreas Gohr ?> 960e336ca8SAndreas Gohr </ul> 970e336ca8SAndreas Gohr </div> 980e336ca8SAndreas Gohr </div> 990e336ca8SAndreas Gohr </div><!-- /wrapper --> 1000e336ca8SAndreas Gohr 1010e336ca8SAndreas Gohr <?php include('tpl_footer.php') ?> 1020e336ca8SAndreas Gohr </div></div><!-- /site --> 1030e336ca8SAndreas Gohr 1040e336ca8SAndreas Gohr <div class="no"><?php tpl_indexerWebBug() /* provide DokuWiki housekeeping, required in all templates */ ?></div> 10585159e75SAnika Henke <div id="screen__mode" class="no"></div><?php /* helper to detect CSS media query in script.js */ ?> 1060e336ca8SAndreas Gohr <!--[if ( lte IE 7 | IE 8 ) ]></div><![endif]--> 1070e336ca8SAndreas Gohr</body> 1080e336ca8SAndreas Gohr</html> 109