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