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@require_once(dirname(__FILE__).'/tpl_functions.php'); /* include hook for template functions */ 13 14$showSidebar = $conf['sidebar'] && page_exists($conf['sidebar']) && ($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 <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> 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_include('meta.html') ?> 27</head> 28 29<body> 30 <?php /* with these Conditional Comments you can better address IE issues in CSS files, 31 precede CSS rules by #IE7 for IE7 and #IE8 for IE8 (div closes at the bottom) */ ?> 32 <!--[if lte IE 7 ]><div id="IE7"><![endif]--><!--[if IE 8 ]><div id="IE8"><![endif]--> 33 34 <?php /* the "dokuwiki__top" id is needed somewhere at the top, because that's where the "back to top" button/link links to */ ?> 35 <?php /* classes mode_<action> are added to make it possible to e.g. style a page differently if it's in edit mode, 36 see http://www.dokuwiki.org/devel:action_modes for a list of action modes */ ?> 37 <?php /* .dokuwiki should always be in one of the surrounding elements (e.g. plugins and templates depend on it) */ ?> 38 <div id="dokuwiki__site"><div id="dokuwiki__top" 39 class="dokuwiki site mode_<?php echo $ACT ?> <?php echo ($showSidebar) ? 'hasSidebar' : ''; ?>"> 40 41 <?php include('tpl_header.php') ?> 42 43 <div class="wrapper group"> 44 45 <?php if($showSidebar): ?> 46 <!-- ********** ASIDE ********** --> 47 <div id="dokuwiki__aside"><div class="pad include group"> 48 <?php tpl_flush() /* flush the output buffer */ ?> 49 <?php _tpl_include('sidebarheader.html') ?> 50 <?php tpl_include_page($conf['sidebar']) /* includes the given wiki page */ ?> 51 <?php _tpl_include('sidebarfooter.html') ?> 52 </div></div><!-- /aside --> 53 <?php endif; ?> 54 55 <!-- ********** CONTENT ********** --> 56 <div id="dokuwiki__content"><div class="pad group"> 57 58 <div class="pageId"><span><?php echo hsc($ID) ?></span></div> 59 60 <div class="page group"> 61 <?php tpl_flush() ?> 62 <?php _tpl_include('pageheader.html') ?> 63 <!-- wikipage start --> 64 <?php tpl_content() /* the main content */ ?> 65 <!-- wikipage stop --> 66 <?php _tpl_include('pagefooter.html') ?> 67 </div> 68 69 <div class="docInfo"><?php tpl_pageinfo() /* 'Last modified' etc */ ?></div> 70 71 <?php tpl_flush() ?> 72 </div></div><!-- /content --> 73 74 <hr class="a11y" /> 75 76 <!-- PAGE ACTIONS --> 77 <div id="dokuwiki__pagetools"> 78 <h3 class="a11y"><?php echo $lang['page_tools']; ?></h3> 79 <div class="tools"> 80 <ul> 81 <?php 82 tpl_action('edit', 1, 'li', 0, '<span>', '</span>'); 83 tpl_action('revert', 1, 'li', 0, '<span>', '</span>'); 84 tpl_action('revisions', 1, 'li', 0, '<span>', '</span>'); 85 tpl_action('backlink', 1, 'li', 0, '<span>', '</span>'); 86 tpl_action('subscribe', 1, 'li', 0, '<span>', '</span>'); 87 tpl_action('top', 1, 'li', 0, '<span>', '</span>'); 88 ?> 89 </ul> 90 </div> 91 </div> 92 </div><!-- /wrapper --> 93 94 <?php include('tpl_footer.php') ?> 95 </div></div><!-- /site --> 96 97 <div class="no"><?php tpl_indexerWebBug() /* provide DokuWiki housekeeping, required in all templates */ ?></div> 98 <!--[if ( lte IE 7 | IE 8 ) ]></div><![endif]--> 99</body> 100</html> 101