1<?php 2/** 3 * DokuWiki Starter Template 4 * 5 * @link http://dokuwiki.org/template:starter 6 * @author Anika Henke <anika@selfthinker.org> 7 * @license GPL 2 (http://www.gnu.org/licenses/gpl.html) 8 */ 9 10if (!defined('DOKU_INC')) die(); /* must be run from within DokuWiki */ 11@require_once(dirname(__FILE__).'/tpl_functions.php'); /* include hook for template functions */ 12header('X-UA-Compatible: IE=edge,chrome=1'); 13 14$showTools = !tpl_getConf('hideTools') || ( tpl_getConf('hideTools') && $_SERVER['REMOTE_USER'] ); 15$showSidebar = page_findnearest($conf['sidebar']) && ($ACT=='show'); 16?><!DOCTYPE html> 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'] ?>" 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 <?php /* with these Conditional Comments you can better address IE issues in CSS files, 31 precede CSS rules by #IE6 for IE6, #IE7 for IE7 and #IE8 for IE8 (div closes at the bottom) */ ?> 32 <!--[if IE 6 ]><div id="IE6"><![endif]--><!--[if 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 <?php html_msgarea() /* occasional error and info messages on top of the page */ ?> 41 <?php tpl_includeFile('header.html') ?> 42 43 <!-- ********** HEADER ********** --> 44 <div id="dokuwiki__header"><div class="pad"> 45 46 <div class="headings"> 47 <h1><?php tpl_link(wl(),$conf['title'],'accesskey="h" title="[H]"') ?></h1> 48 <?php /* how to insert logo instead (if no CSS image replacement technique is used): 49 upload your logo into the data/media folder (root of the media manager) and replace 'logo.png' accordingly: 50 tpl_link(wl(),'<img src="'.ml('logo.png').'" alt="'.$conf['title'].'" />','id="dokuwiki__top" accesskey="h" title="[H]"') */ ?> 51 <?php if ($conf['tagline']): ?> 52 <p class="claim"><?php echo $conf['tagline'] ?></p> 53 <?php endif ?> 54 55 <ul class="a11y skip"> 56 <li><a href="#dokuwiki__content"><?php echo $lang['skip_to_content'] ?></a></li> 57 </ul> 58 <div class="clearer"></div> 59 </div> 60 61 <div class="tools"> 62 <!-- USER TOOLS --> 63 <?php if ($conf['useacl'] && $showTools): ?> 64 <div id="dokuwiki__usertools"> 65 <h3 class="a11y"><?php echo $lang['user_tools'] ?></h3> 66 <ul> 67 <?php /* the optional second parameter of tpl_action() switches between a link and a button, 68 e.g. a button inside a <li> would be: tpl_action('edit', 0, 'li') */ 69 if ($_SERVER['REMOTE_USER']) { 70 echo '<li class="user">'; 71 tpl_userinfo(); /* 'Logged in as ...' */ 72 echo '</li>'; 73 } 74 tpl_action('admin', 1, 'li'); 75 _tpl_action('userpage', 1, 'li'); 76 tpl_action('profile', 1, 'li'); 77 tpl_action('register', 1, 'li'); /* DW versions < 2011-02-20 need to use _tpl_action('register', 1, 'li') */ 78 tpl_action('login', 1, 'li'); 79 ?> 80 </ul> 81 </div> 82 <?php endif ?> 83 84 <!-- SITE TOOLS --> 85 <div id="dokuwiki__sitetools"> 86 <h3 class="a11y"><?php echo $lang['site_tools'] ?></h3> 87 <?php tpl_searchform() ?> 88 <ul> 89 <?php 90 tpl_action('recent', 1, 'li'); 91 tpl_action('media', 1, 'li'); 92 tpl_action('index', 1, 'li'); 93 ?> 94 </ul> 95 </div> 96 97 </div> 98 <div class="clearer"></div> 99 100 <!-- BREADCRUMBS --> 101 <?php if($conf['breadcrumbs']){ ?> 102 <div class="breadcrumbs"><?php tpl_breadcrumbs() ?></div> 103 <?php } ?> 104 <?php if($conf['youarehere']){ ?> 105 <div class="breadcrumbs"><?php tpl_youarehere() ?></div> 106 <?php } ?> 107 108 <div class="clearer"></div> 109 <hr class="a11y" /> 110 </div></div><!-- /header --> 111 112 113 <div class="wrapper"> 114 115 <!-- ********** ASIDE ********** --> 116 <?php if ($showSidebar): ?> 117 <div id="dokuwiki__aside"><div class="pad include"> 118 <?php tpl_includeFile('sidebarheader.html') ?> 119 <?php tpl_include_page($conf['sidebar'], 1, 1) /* includes the nearest sidebar page */ ?> 120 <?php tpl_includeFile('sidebarfooter.html') ?> 121 <div class="clearer"></div> 122 </div></div><!-- /aside --> 123 <?php endif; ?> 124 125 <!-- ********** CONTENT ********** --> 126 <div id="dokuwiki__content"><div class="pad"> 127 <?php tpl_flush() /* flush the output buffer */ ?> 128 <?php tpl_includeFile('pageheader.html') ?> 129 130 <div class="page"> 131 <!-- wikipage start --> 132 <?php tpl_content() /* the main content */ ?> 133 <!-- wikipage stop --> 134 <div class="clearer"></div> 135 </div> 136 137 <?php tpl_flush() ?> 138 <?php tpl_includeFile('pagefooter.html') ?> 139 </div></div><!-- /content --> 140 141 <div class="clearer"></div> 142 <hr class="a11y" /> 143 144 <!-- PAGE ACTIONS --> 145 <?php if ($showTools): ?> 146 <div id="dokuwiki__pagetools"> 147 <h3 class="a11y"><?php echo $lang['page_tools'] ?></h3> 148 <ul> 149 <?php 150 tpl_action('edit', 1, 'li'); 151 _tpl_action('discussion', 1, 'li'); 152 tpl_action('revisions', 1, 'li'); 153 tpl_action('backlink', 1, 'li'); 154 tpl_action('subscribe', 1, 'li'); 155 tpl_action('revert', 1, 'li'); 156 tpl_action('top', 1, 'li'); 157 ?> 158 </ul> 159 </div> 160 <?php endif; ?> 161 </div><!-- /wrapper --> 162 163 <!-- ********** FOOTER ********** --> 164 <div id="dokuwiki__footer"><div class="pad"> 165 <div class="doc"><?php tpl_pageinfo() /* 'Last modified' etc */ ?></div> 166 <?php tpl_license('button') /* content license, parameters: img=*badge|button|0, imgonly=*0|1, return=*0|1 */ ?> 167 </div></div><!-- /footer --> 168 169 <?php tpl_includeFile('footer.html') ?> 170 </div></div><!-- /site --> 171 172 <div class="no"><?php tpl_indexerWebBug() /* provide DokuWiki housekeeping, required in all templates */ ?></div> 173 <!--[if ( IE 6 | IE 7 | IE 8 ) ]></div><![endif]--> 174</body> 175</html> 176