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