1<?php 2/** 3 * DokuWiki Starter Template 4 * 5 * @link http://dokuwiki.org/template:starter 6 * @author Anika Henke <anika@selfthinker.org> 7 */ 8 9if (!defined('DOKU_INC')) die(); /* must be run from within DokuWiki */ 10@require_once(dirname(__FILE__).'/tpl_functions.php'); /* include hook for template functions */ 11 12$showTools = !tpl_getConf('hideTools') || ( tpl_getConf('hideTools') && $_SERVER['REMOTE_USER'] ); 13?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 14 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 15<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $conf['lang'] ?>" 16 lang="<?php echo $conf['lang'] ?>" dir="<?php echo $lang['direction'] ?>"> 17<head> 18 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 19 <title><?php tpl_pagetitle() ?> [<?php echo strip_tags($conf['title']) ?>]</title> 20 <?php tpl_metaheaders() ?> 21 <link rel="shortcut icon" href="<?php echo ml('favicon.ico') ?>" /> 22 <?php @include(dirname(__FILE__).'/meta.html') /* include hook */ ?> 23</head> 24 25<body> 26 <?php /* with these Conditional Comments you can better address IE issues in CSS files, 27 precede CSS rules by #IE6 for IE6, #IE7 for IE7 and #IE8 for IE8 (div closes at the bottom) */ ?> 28 <!--[if IE 6 ]><div id="IE6"><![endif]--><!--[if IE 7 ]><div id="IE7"><![endif]--><!--[if IE 8 ]><div id="IE8"><![endif]--> 29 <?php @include(dirname(__FILE__).'/topheader.html') /* include hook */ ?> 30 31 <?php /* classes mode_<action> are added to make it possible to e.g. style a page differently if it's in edit mode, 32 see http://www.dokuwiki.org/devel:action_modes for a list of action modes */ ?> 33 <?php /* .dokuwiki should always be in one of the surrounding elements (e.g. plugins and templates depend on it) */ ?> 34 <div id="dokuwiki__site"><div class="dokuwiki site mode_<?php echo $ACT ?>"> 35 <?php html_msgarea() /* occasional error and info messages on top of the page */ ?> 36 37 <!-- ********** HEADER ********** --> 38 <div id="dokuwiki__header"><div class="pad"> 39 40 <div class="headings"> 41 <h1><?php tpl_link(wl(),$conf['title'],'id="dokuwiki__top" accesskey="h" title="[H]"') ?></h1> 42 <?php /* how to insert logo instead (if no CSS image replacement technique is used): 43 upload your logo into the data/media folder (root of the media manager) and replace 'logo.png' accordingly: 44 tpl_link(wl(),'<img src="'.ml('logo.png').'" alt="'.$conf['title'].'" />','id="dokuwiki__top" accesskey="h" title="[H]"') */ ?> 45 <?php if (tpl_getConf('tagline')): ?> 46 <p class="claim"><?php echo tpl_getConf('tagline') ?></p> 47 <?php endif ?> 48 49 <ul class="a11y"> 50 <li><a href="#dokuwiki__content"><?php echo tpl_getLang('skip_to_content') ?></a></li> 51 </ul> 52 <div class="clearer"></div> 53 </div> 54 55 <div class="tools"> 56 <!-- USER TOOLS --> 57 <?php if ($conf['useacl'] && $showTools): ?> 58 <div id="dokuwiki__usertools"> 59 <h3 class="a11y"><?php echo tpl_getLang('user_tools') ?></h3> 60 <ul> 61 <?php /* the optional second parameter of tpl_action() switches between a link and a button, 62 e.g. a button inside a <li> would be: tpl_action('edit',0,'li') */ 63 if ($_SERVER['REMOTE_USER']) { 64 echo '<li class="user">'; 65 tpl_userinfo(); /* 'Logged in as ...' */ 66 echo '</li>'; 67 } 68 tpl_action('admin', 1, 'li'); 69 if (tpl_getConf('userNS')) { 70 _tpl_userpage(tpl_getConf('userNS'),1,'li'); 71 } 72 tpl_action('profile', 1, 'li'); 73 tpl_action('login', 1, 'li'); 74 ?> 75 </ul> 76 </div> 77 <?php endif ?> 78 79 <!-- SITE TOOLS --> 80 <div id="dokuwiki__sitetools"> 81 <h3 class="a11y"><?php echo tpl_getLang('site_tools') ?></h3> 82 <?php tpl_searchform() ?> 83 <ul> 84 <?php 85 tpl_action('recent', 1, 'li'); 86 tpl_action('index', 1, 'li'); 87 ?> 88 </ul> 89 </div> 90 91 </div> 92 <div class="clearer"></div> 93 94 <!-- BREADCRUMBS --> 95 <?php if($conf['breadcrumbs']){ ?> 96 <div class="breadcrumbs"><?php tpl_breadcrumbs() ?></div> 97 <?php } ?> 98 <?php if($conf['youarehere']){ ?> 99 <div class="breadcrumbs"><?php tpl_youarehere() ?></div> 100 <?php } ?> 101 102 <?php @include(dirname(__FILE__).'/header.html') /* include hook */ ?> 103 <div class="clearer"></div> 104 <hr class="a11y" /> 105 </div></div><!-- /header --> 106 107 108 <div class="wrapper"> 109 110 <!-- ********** ASIDE ********** --> 111 <div id="dokuwiki__aside"><div class="pad include"> 112 <?php tpl_include_page(tpl_getConf('sidebarID')) /* includes the given wiki page */ ?> 113 <div class="clearer"></div> 114 </div></div><!-- /aside --> 115 116 <!-- ********** CONTENT ********** --> 117 <div id="dokuwiki__content"><div class="pad"> 118 <?php tpl_flush() /* flush the output buffer */ ?> 119 <?php @include(dirname(__FILE__).'/pageheader.html') /* include hook */ ?> 120 121 <div class="page"> 122 <!-- wikipage start --> 123 <?php tpl_content() /* the main content */ ?> 124 <!-- wikipage stop --> 125 <div class="clearer"></div> 126 </div> 127 128 <?php tpl_flush() ?> 129 <?php @include(dirname(__FILE__).'/pagefooter.html') /* include hook */ ?> 130 </div></div><!-- /content --> 131 132 <div class="clearer"></div> 133 <hr class="a11y" /> 134 135 <!-- PAGE ACTIONS --> 136 <?php if ($showTools): ?> 137 <div id="dokuwiki__pagetools"> 138 <h3 class="a11y"><?php echo tpl_getLang('page_tools') ?></h3> 139 <ul> 140 <?php 141 tpl_action('edit', 1, 'li'); 142 if (tpl_getConf('discussionNS')) { 143 _tpl_discussion(tpl_getConf('discussionNS'),1,'li',tpl_getConf('discussNSreverse')); 144 } 145 tpl_action('history', 1, 'li'); 146 tpl_action('backlink', 1, 'li'); 147 tpl_action('subscribe', 1, 'li'); 148 tpl_action('revert', 1, 'li'); 149 tpl_action('top', 1, 'li'); 150 ?> 151 </ul> 152 </div> 153 <?php endif; ?> 154 </div><!-- /wrapper --> 155 156 <!-- ********** FOOTER ********** --> 157 <div id="dokuwiki__footer"><div class="pad"> 158 <div class="doc"><?php tpl_pageinfo() /* 'Last modified' etc */ ?></div> 159 <?php tpl_license('button') /* content license, parameters: img=*badge|button|0, imgonly=*0|1, return=*0|1 */ ?> 160 </div></div><!-- /footer --> 161 162 163 </div></div><!-- /site --> 164 165 <?php @include(dirname(__FILE__).'/footer.html') /* include hook */ ?> 166 <div class="no"><?php tpl_indexerWebBug() /* provide DokuWiki housekeeping, required in all templates */ ?></div> 167 <!--[if ( IE 6 | IE 7 | IE 8 ) ]></div><![endif]--> 168</body> 169</html> 170