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 /* the "dokuwiki__top" id is needed somewhere at the top, because that's where the "back to top" button/link links to */ ?> 33 <?php /* classes mode_<action> are added to make it possible to e.g. style a page differently if it's in edit mode, 34 see http://www.dokuwiki.org/devel:action_modes for a list of action modes */ ?> 35 <?php /* .dokuwiki should always be in one of the surrounding elements (e.g. plugins and templates depend on it) */ ?> 36 <div id="dokuwiki__site"><div id="dokuwiki__top" 37 class="dokuwiki site mode_<?php echo $ACT ?>"> 38 <?php html_msgarea() /* occasional error and info messages on top of the page */ ?> 39 <?php _tpl_include('header.html') ?> 40 41 <!-- ********** HEADER ********** --> 42 <div id="dokuwiki__header"><div class="pad"> 43 44 <div class="headings"> 45 <h1><?php tpl_link(wl(),$conf['title'],'accesskey="h" title="[H]"') ?></h1> 46 <?php /* how to insert logo instead (if no CSS image replacement technique is used): 47 upload your logo into the data/media folder (root of the media manager) and replace 'logo.png' accordingly: 48 tpl_link(wl(),'<img src="'.ml('logo.png').'" alt="'.$conf['title'].'" />','id="dokuwiki__top" accesskey="h" title="[H]"') */ ?> 49 <?php if (tpl_getConf('tagline')): ?> 50 <p class="claim"><?php echo tpl_getConf('tagline') ?></p> 51 <?php endif ?> 52 53 <ul class="a11y"> 54 <li><a href="#dokuwiki__content"><?php echo tpl_getLang('skip_to_content') ?></a></li> 55 </ul> 56 <div class="clearer"></div> 57 </div> 58 59 <div class="tools"> 60 <!-- USER TOOLS --> 61 <?php if ($conf['useacl'] && $showTools): ?> 62 <div id="dokuwiki__usertools"> 63 <h3 class="a11y"><?php echo tpl_getLang('user_tools') ?></h3> 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 if ($_SERVER['REMOTE_USER']) { 68 echo '<li class="user">'; 69 tpl_userinfo(); /* 'Logged in as ...' */ 70 echo '</li>'; 71 } 72 tpl_action('admin', 1, 'li'); 73 _tpl_action('userpage', 1, 'li'); 74 tpl_action('profile', 1, 'li'); 75 _tpl_action('register', 1, 'li'); /* DW versions > 2011-02-20 can use the core function tpl_action('register', 1, 'li') */ 76 tpl_action('login', 1, 'li'); 77 ?> 78 </ul> 79 </div> 80 <?php endif ?> 81 82 <!-- SITE TOOLS --> 83 <div id="dokuwiki__sitetools"> 84 <h3 class="a11y"><?php echo tpl_getLang('site_tools') ?></h3> 85 <?php tpl_searchform() ?> 86 <ul> 87 <?php 88 tpl_action('recent', 1, 'li'); 89 tpl_action('media', 1, 'li'); 90 tpl_action('index', 1, 'li'); 91 ?> 92 </ul> 93 </div> 94 95 </div> 96 <div class="clearer"></div> 97 98 <!-- BREADCRUMBS --> 99 <?php if($conf['breadcrumbs']){ ?> 100 <div class="breadcrumbs"><?php tpl_breadcrumbs() ?></div> 101 <?php } ?> 102 <?php if($conf['youarehere']){ ?> 103 <div class="breadcrumbs"><?php tpl_youarehere() ?></div> 104 <?php } ?> 105 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 <?php tpl_flush() /* flush the output buffer */ ?> 122 <?php _tpl_include('pageheader.html') ?> 123 124 <div class="page"> 125 <!-- wikipage start --> 126 <?php tpl_content() /* the main content */ ?> 127 <!-- wikipage stop --> 128 <div class="clearer"></div> 129 </div> 130 131 <?php tpl_flush() ?> 132 <?php _tpl_include('pagefooter.html') ?> 133 </div></div><!-- /content --> 134 135 <div class="clearer"></div> 136 <hr class="a11y" /> 137 138 <!-- PAGE ACTIONS --> 139 <?php if ($showTools): ?> 140 <div id="dokuwiki__pagetools"> 141 <h3 class="a11y"><?php echo tpl_getLang('page_tools') ?></h3> 142 <ul> 143 <?php 144 tpl_action('edit', 1, 'li'); 145 _tpl_action('discussion', 1, 'li'); 146 tpl_action('revisions', 1, 'li'); 147 tpl_action('backlink', 1, 'li'); 148 tpl_action('subscribe', 1, 'li'); 149 tpl_action('revert', 1, 'li'); 150 tpl_action('top', 1, 'li'); 151 ?> 152 </ul> 153 </div> 154 <?php endif; ?> 155 </div><!-- /wrapper --> 156 157 <!-- ********** FOOTER ********** --> 158 <div id="dokuwiki__footer"><div class="pad"> 159 <div class="doc"><?php tpl_pageinfo() /* 'Last modified' etc */ ?></div> 160 <?php tpl_license('button') /* content license, parameters: img=*badge|button|0, imgonly=*0|1, return=*0|1 */ ?> 161 </div></div><!-- /footer --> 162 163 <?php _tpl_include('footer.html') ?> 164 </div></div><!-- /site --> 165 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