1<?php 2/** 3 * DokuWiki Arctic Template 4 * 5 * This is the template you need to change for the overall look 6 * of DokuWiki. 7 * 8 * You should leave the doctype at the very top - It should 9 * always be the very first line of a document. 10 * 11 * @author Andreas Gohr <andi@splitbrain.org> 12 * @author Michael Klier <chi@chimeric.de> 13 * @link http://wiki.splitbrain.org/template:arctic 14 * @link http://chimeric.de/projects/dokuwiki/template/arctic 15 * Modified by Matthieu Bouthors 16 */ 17 18// must be run from within DokuWiki 19if (!defined('DOKU_INC')) die(); 20 21// include custom arctic template functions 22require_once(dirname(__FILE__).'/tpl_functions.php'); 23?> 24<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 25 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 26<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $conf['lang']?>" 27 lang="<?php echo $conf['lang']?>" dir="<?php echo $lang['direction']?>"> 28<head> 29 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 30 <title> 31 <?php tpl_pagetitle()?> 32 [<?php echo strip_tags($conf['title'])?>] 33 </title> 34 35 <?php tpl_metaheaders()?> 36 37 <link rel="shortcut icon" href="<?php echo DOKU_TPL?>images/favicon.ico" /> 38 39 <?php /*old includehook*/ @include(dirname(__FILE__).'/meta.html')?> 40 41</head> 42<body> 43<?php /*old includehook*/ @include(dirname(__FILE__).'/topheader.html')?> 44<div id="wrapper"> 45 <div class="dokuwiki"> 46 47 <?php html_msgarea()?> 48 49 <div class="stylehead"> 50 <div class="header"> 51 <div class="pagename"> 52 <?php tpl_arctic_mbo_pagename()?> 53 </div> 54 <div class="breadcrumbs"> 55 <?php tpl_breadcrumbs()?> 56 </div> 57 </div> 58 59 <?php /*old includehook*/ @include(dirname(__FILE__).'/header.html')?> 60 </div> 61 62 <?php if(!$toolb) { ?> 63 <?php if(!tpl_getConf('hideactions') || tpl_getConf('hideactions') && isset($_SERVER['REMOTE_USER'])) { ?> 64 <div class="bar" id="bar__top"> 65 <div class="bar-left"> 66 <?php 67 if(!tpl_getConf('closedwiki') || (tpl_getConf('closedwiki') && isset($_SERVER['REMOTE_USER']))) { 68 switch(tpl_getConf('wiki_actionlinks')) { 69 case('buttons'): 70 // check if new page button plugin is available 71 if(!plugin_isdisabled('npd') && ($npd =& plugin_load('helper', 'npd'))) { 72 $npd->html_new_page_button(); 73 } 74 tpl_button('edit'); 75 tpl_button('history'); 76 tpl_button('media'); 77 break; 78 case('links'): 79 // check if new page button plugin is available 80 if(!plugin_isdisabled('npd') && ($npd =& plugin_load('helper', 'npd'))) { 81 $npd->html_new_page_button(); 82 } 83 tpl_actionlink('edit'); 84 tpl_actionlink('history'); 85 tpl_actionlink('media'); 86 break; 87 } 88 } 89 ?> 90 </div> 91 <div class="bar-right"> 92 <?php 93 switch(tpl_getConf('wiki_actionlinks')) { 94 case('buttons'): 95 if(!tpl_getConf('closedwiki') || (tpl_getConf('closedwiki') && isset($_SERVER['REMOTE_USER']))) { 96 tpl_button('admin'); 97 tpl_button('revert'); 98 tpl_button('profile'); 99 tpl_button('recent'); 100 tpl_button('index'); 101 tpl_button('login'); 102 if(tpl_getConf('sidebar') == 'none') tpl_searchform(); 103 } else { 104 tpl_button('login'); 105 } 106 break; 107 case('links'): 108 if(!tpl_getConf('closedwiki') || (tpl_getConf('closedwiki') && isset($_SERVER['REMOTE_USER']))) { 109 tpl_actionlink('admin'); 110 tpl_actionlink('revert'); 111 tpl_actionlink('profile'); 112 tpl_actionlink('recent'); 113 tpl_actionlink('index'); 114 tpl_actionlink('login'); 115 if(tpl_getConf('sidebar') == 'none') tpl_searchform(); 116 } else { 117 tpl_actionlink('login'); 118 } 119 break; 120 } 121 ?> 122 </div> 123 </div> 124 <?php } ?> 125 <?php } ?> 126 127 <?php /*old includehook*/ @include(dirname(__FILE__).'/pageheader.html')?> 128 129 <?php flush()?> 130 131 <?php if(tpl_getConf('sidebar') == 'left') { ?> 132 133 <?php if(!tpl_sidebar_hide()) { ?> 134 <div class="left_sidebar"> 135 <?php if(!tpl_getConf('closedwiki') || (tpl_getConf('closedwiki') && isset($_SERVER['REMOTE_USER']))) tpl_searchform() ?> 136 <?php tpl_sidebar('left') ?> 137 </div> 138 <div class="right_page"> 139 <?php ($notoc) ? tpl_content(false) : tpl_content() ?> 140 </div> 141 <?php } else { ?> 142 <div class="page"> 143 <?php tpl_content()?> 144 </div> 145 <?php } ?> 146 147 <?php } elseif(tpl_getConf('sidebar') == 'right') { ?> 148 149 <?php if(!tpl_sidebar_hide()) { ?> 150 <div class="left_page"> 151 <?php ($notoc) ? tpl_content(false) : tpl_content() ?> 152 </div> 153 <div class="right_sidebar"> 154 <?php if(!tpl_getConf('closedwiki') || (tpl_getConf('closedwiki') && isset($_SERVER['REMOTE_USER']))) tpl_searchform() ?> 155 <?php tpl_sidebar('right') ?> 156 </div> 157 <?php } else { ?> 158 <div class="page"> 159 <?php tpl_content() ?> 160 </div> 161 <?php }?> 162 163 <?php } elseif(tpl_getConf('sidebar') == 'both') { ?> 164 165 <?php if(!tpl_sidebar_hide()) { ?> 166 <div class="left_sidebar"> 167 <?php if((tpl_getConf('search') == 'left') && (!tpl_getConf('closedwiki') || (tpl_getConf('closedwiki') && isset($_SERVER['REMOTE_USER'])))) tpl_searchform() ?> 168 <?php tpl_sidebar('left') ?> 169 </div> 170 <div class="center_page"> 171 <?php ($notoc) ? tpl_content(false) : tpl_content() ?> 172 </div> 173 <div class="right_sidebar"> 174 <?php if((tpl_getConf('search') == 'right') && ( !tpl_getConf('closedwiki') || (tpl_getConf('closedwiki') && isset($_SERVER['REMOTE_USER'])))) tpl_searchform() ?> 175 <?php tpl_sidebar('right') ?> 176 </div> 177 <?php } else { ?> 178 <div class="page"> 179 <?php tpl_content()?> 180 </div> 181 <?php }?> 182 183 <?php } elseif(tpl_getConf('sidebar') == 'none') { ?> 184 <div class="page"> 185 <?php tpl_content() ?> 186 </div> 187 <?php } ?> 188 189 <div class="stylefoot"> 190 <div class="meta"> 191 <div class="user"> 192 <?php tpl_userinfo()?> 193 </div> 194 <div class="doc"> 195 <?php if(!tpl_getConf('hidepageinfo')) tpl_pageinfo() ?> 196 </div> 197 </div> 198 </div> 199 200 <div class="clearer"></div> 201 202 <?php flush()?> 203 204 <?php if(!$toolb) { ?> 205 <?php if(!tpl_getConf('hideactions') || tpl_getConf('hideactions') && isset($_SERVER['REMOTE_USER'])) { ?> 206 <?php if(!tpl_getConf('closedwiki') || (tpl_getConf('closedwiki') && isset($_SERVER['REMOTE_USER']))) { ?> 207 <div class="bar" id="bar__bottom"> 208 <div class="bar-left"> 209 <?php 210 switch(tpl_getConf('wiki_actionlinks')) { 211 case('buttons'): 212 tpl_button('edit'); 213 tpl_button('history'); 214 break; 215 case('links'): 216 tpl_actionlink('edit'); 217 tpl_actionlink('history'); 218 break; 219 } 220 ?> 221 </div> 222 <div class="bar-right"> 223 <?php 224 switch(tpl_getConf('wiki_actionlinks')) { 225 case('buttons'): 226 tpl_button('backlink'); 227 tpl_button('subscription'); 228 tpl_button('top'); 229 break; 230 case('links'): 231 tpl_actionlink('backlink'); 232 tpl_actionlink('subscription'); 233 tpl_actionlink('top'); 234 break; 235 } 236 ?> 237 </div> 238 </div> 239 <div class="clearer"></div> 240 <?php } ?> 241 <?php } ?> 242 <?php } ?> 243 244 <?php /*old includehook*/ @include(dirname(__FILE__).'/footer.html')?> 245 246 </div> 247</div> 248 249<div class="no"><?php /* provide DokuWiki housekeeping, required in all templates */ tpl_indexerWebBug()?></div> 250</body> 251</html> 252