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 <!--<h2><?php if (!$conf['useheading']) echo '[[' ?><?php tpl_pagetitle($ID) ?><?php if (!$conf['useheading']) echo ']]' ?></h2>--> 49 50 <?php /* TODO: skip links */ ?> 51 <ul class="a11y"> 52 <li><a href="#">skip to nav</a></li> 53 <li><a href="#">skip to controls</a></li> 54 <li><a href="#">skip to content</a></li> 55 </ul> 56 <div class="clearer"></div> 57 </div> 58 59 <div class="tools"> 60 <!-- AUTH ACTIONS --> 61 <?php if ($conf['useacl'] && $showTools): ?> 62 <div id="dokuwiki__usertools"> 63 <h3 class="a11y">User Tools</h3> <?php /*TODO: localize*/ ?> 64 <ul> 65 <?php /* the optional second parameter of tpl_action() switches between a link and a button, 66 e.g. a button inside a <li> would be: tpl_action('edit',0,'li') */ 67 tpl_action('admin', 1, 'li'); 68 tpl_action('profile', 1, 'li', 0, '', '', $INFO['userinfo']['name'].' ('.$_SERVER['REMOTE_USER'].')'); 69 // this partly replaces tpl_userinfo() 70 if (tpl_getConf('userNS') && $_SERVER['REMOTE_USER']) { 71 echo '<li>'; 72 _tpl_userpage(tpl_getConf('userNS').':',1); 73 echo '</li>'; 74 } 75 tpl_action('login', 1, 'li'); 76 ?> 77 </ul> 78 <!-- <div class="user"><?php tpl_userinfo() /* 'Logged in as ...' */ ?></div> --> 79 </div> 80 <?php endif ?> 81 82 <!-- SITE ACTIONS --> 83 <div id="dokuwiki__sitetools"> 84 <h3 class="a11y">Site Tools</h3> <?php /*TODO: localize*/ ?> 85 <?php tpl_searchform(); ?> 86 <ul> 87 <?php 88 tpl_action('recent', 1, 'li'); 89 tpl_action('index', 1, 'li'); 90 ?> 91 </ul> 92 </div> 93 94 </div> 95 <div class="clearer"></div> 96 97 <!-- BREADCRUMBS --> 98 <?php if($conf['breadcrumbs']){ ?> 99 <div class="breadcrumbs"><?php tpl_breadcrumbs() ?></div> 100 <?php } ?> 101 <?php if($conf['youarehere']){ ?> 102 <div class="breadcrumbs"><?php tpl_youarehere() ?></div> 103 <?php } ?> 104 105 <?php @include(dirname(__FILE__).'/header.html') /* include hook */ ?> 106 <div class="clearer"></div> 107 <hr class="a11y" /> 108 </div></div><!-- /header --> 109 110 111 <div class="wrapper"> 112 113 <!-- ********** ASIDE ********** --> 114 <div id="dokuwiki__aside"><div class="pad include"> 115 <?php tpl_include_page(tpl_getConf('sidebarID')) /* includes the given wiki page */ ?> 116 <div class="clearer"></div> 117 </div></div><!-- /aside --> 118 119 <!-- ********** CONTENT ********** --> 120 <div id="dokuwiki__content"><div class="pad"> 121 <!-- PAGE ACTIONS --> 122 <?php if ($showTools): ?> 123 <div id="dokuwiki__pagetools"> 124 <h3 class="a11y">Page Tools</h3> <?php /*TODO: localize*/ ?> 125 <ul> 126 <?php 127 tpl_action('edit', 1, 'li'); 128 if (tpl_getConf('discussionNS')) { 129 echo '<li>'; 130 _tpl_discussion(tpl_getConf('discussionNS').':',1); 131 echo '</li>'; 132 } 133 tpl_action('history', 1, 'li'); 134 tpl_action('backlink', 1, 'li'); 135 tpl_action('subscribe', 1, 'li'); 136 ?> 137 </ul> 138 </div> 139 <?php endif; ?> 140 141 <?php tpl_flush() /* flush the output buffer */ ?> 142 <?php @include(dirname(__FILE__).'/pageheader.html') /* include hook */ ?> 143 144 <div class="page"> 145 <!-- wikipage start --> 146 <?php tpl_content() /* the main content */ ?> 147 <!-- wikipage stop --> 148 <div class="clearer"></div> 149 </div> 150 151 <?php tpl_flush() ?> 152 <?php @include(dirname(__FILE__).'/pagefooter.html') /* include hook */ ?> 153 </div></div><!-- /content --> 154 155 <div class="clearer"></div> 156 <hr class="a11y" /> 157 </div><!-- /wrapper --> 158 159 160 <!-- ********** FOOTER ********** --> 161 <div id="dokuwiki__footer"><div class="pad"> 162 <div class="doc"><?php tpl_pageinfo() /* 'Last modified' etc */ ?></div> 163 <?php tpl_action('top',1) /* the second parameter switches between a link and a button */ ?> 164 <?php tpl_license('button') /* content license, parameters: img=*badge|button|0, imgonly=*0|1, return=*0|1 */ ?> 165 </div></div><!-- /footer --> 166 167 168 </div></div><!-- /site --> 169 170 <?php //@include(dirname(__FILE__).'/footer.html') /* include hook */ ?> 171 <div class="no"><?php tpl_indexerWebBug() /* provide DokuWiki housekeeping, required in all templates */ ?></div> 172 <!--[if ( IE 6 | IE 7 | IE 8 ) ]></div><![endif]--> 173</body> 174</html> 175