1<?php 2/** 3 * DokuWiki Default Template 2012 4 * 5 * @link http://dokuwiki.org/template 6 * @author Anika Henke <anika@selfthinker.org> 7 * @author Clarence Lee <clarencedglee@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 13$hasSidebar = page_findnearest($conf['sidebar']); 14$showSidebar = $hasSidebar && ($ACT=='show'); 15?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 16 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 17<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $conf['lang'] ?>" 18 lang="<?php echo $conf['lang'] ?>" dir="<?php echo $lang['direction'] ?>"> 19<head> 20 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 21 <!--[if IE]><meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /><![endif]--> 22 <title><?php tpl_pagetitle() ?> [<?php echo strip_tags($conf['title']) ?>]</title> 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 <!--[if lte IE 7 ]><div id="IE7"><![endif]--><!--[if IE 8 ]><div id="IE8"><![endif]--> 31 <div id="dokuwiki__site"><div id="dokuwiki__top" 32 class="dokuwiki site mode_<?php echo $ACT ?> <?php echo ($showSidebar) ? 'showSidebar' : ''; 33 ?> <?php echo ($hasSidebar) ? 'hasSidebar' : ''; ?>"> 34 35 <?php include('tpl_header.php') ?> 36 37 <div class="wrapper group"> 38 39 <?php if($showSidebar): ?> 40 <!-- ********** ASIDE ********** --> 41 <div id="dokuwiki__aside"><div class="pad include group"> 42 <h3 class="toggle"><?php echo hsc(ucfirst($conf['sidebar'])) ?></h3> 43 <div class="content"> 44 <?php tpl_flush() ?> 45 <?php tpl_includeFile('sidebarheader.html') ?> 46 <?php tpl_sidebar() ?> 47 <?php tpl_includeFile('sidebarfooter.html') ?> 48 </div> 49 </div></div><!-- /aside --> 50 <?php endif; ?> 51 52 <!-- ********** CONTENT ********** --> 53 <div id="dokuwiki__content"><div class="pad group"> 54 55 <div class="pageId"><span><?php echo hsc($ID) ?></span></div> 56 57 <div class="page group"> 58 <?php tpl_flush() ?> 59 <?php tpl_includeFile('pageheader.html') ?> 60 <!-- wikipage start --> 61 <?php tpl_content() ?> 62 <!-- wikipage stop --> 63 <?php tpl_includeFile('pagefooter.html') ?> 64 </div> 65 66 <div class="docInfo"><?php tpl_pageinfo() ?></div> 67 68 <?php tpl_flush() ?> 69 </div></div><!-- /content --> 70 71 <hr class="a11y" /> 72 73 <!-- PAGE ACTIONS --> 74 <div id="dokuwiki__pagetools"> 75 <h3 class="a11y"><?php echo $lang['page_tools']; ?></h3> 76 <div class="tools"> 77 <ul> 78 <?php 79 tpl_action('edit', 1, 'li', 0, '<span>', '</span>'); 80 tpl_action('revert', 1, 'li', 0, '<span>', '</span>'); 81 tpl_action('revisions', 1, 'li', 0, '<span>', '</span>'); 82 tpl_action('backlink', 1, 'li', 0, '<span>', '</span>'); 83 tpl_action('subscribe', 1, 'li', 0, '<span>', '</span>'); 84 tpl_action('top', 1, 'li', 0, '<span>', '</span>'); 85 ?> 86 </ul> 87 </div> 88 </div> 89 </div><!-- /wrapper --> 90 91 <?php include('tpl_footer.php') ?> 92 </div></div><!-- /site --> 93 94 <div class="no"><?php tpl_indexerWebBug() /* provide DokuWiki housekeeping, required in all templates */ ?></div> 95 <!--[if ( lte IE 7 | IE 8 ) ]></div><![endif]--> 96</body> 97</html> 98