1<?php 2/** 3 * DokuWiki Default 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 * @link http://wiki.splitbrain.org/wiki:tpl:templates 12 * @author Andreas Gohr <andi@splitbrain.org> 13 */ 14 15// must be run from within DokuWiki 16if (!defined('DOKU_INC')) die(); 17 18?> 19<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 20 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 21<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $conf['lang']?>" 22 lang="<?php echo $conf['lang']?>" dir="<?php echo $lang['direction']?>"> 23<head> 24 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 25 <title> 26 <?php tpl_pagetitle()?> 27 [<?php echo strip_tags($conf['title'])?>] 28 </title> 29 30 <?php tpl_metaheaders()?> 31 32 <link rel="shortcut icon" href="<?php echo DOKU_TPL?>images/favicon.ico" /> 33 34 <?php /*old includehook*/ @include(dirname(__FILE__).'/meta.html')?> 35 36<?php if (file_exists(DOKU_PLUGIN.'displaywikipage/code.php')) include_once(DOKU_PLUGIN.'displaywikipage/code.php'); ?> 37</head> 38 39<body> 40<?php /*old includehook*/ @include(dirname(__FILE__).'/topheader.html')?> 41<div class="dokuwiki"> 42 <?php html_msgarea()?> 43 44 <div class="stylehead"> 45 46 <div class="header"> 47 48 <div class="logo"> 49 <?php tpl_link(wl(),$conf['title'],'name="dokuwiki__top" id="dokuwiki__top" accesskey="h" title="[ALT+H]"')?> 50 </div> 51 52 <div class="pagename"> 53 54 [[<?php tpl_link(wl($ID,'do=backlink'),tpl_pagetitle($ID,true),'title="'.$lang['btn_backlink'].'"')?>]] 55 56 57 </div> 58<?php if (function_exists('dwp_display_wiki_page')) dwp_display_wiki_page("head");?> 59 <div class="clearer"></div> 60 </div> 61 62 <?php /*old includehook*/ @include(dirname(__FILE__).'/header.html')?> 63 64 65<?php if($conf['breadcrumbs']){?> 66 <div class="breadcrumbs"> 67 <?php tpl_breadcrumbs()?> 68 <?php //tpl_youarehere() //(some people prefer this)?> 69 </div> 70 <?php }?> 71 72 <?php if($conf['youarehere']){?> 73 <div class="breadcrumbs"> 74 <?php tpl_youarehere() ?> 75 </div> 76 <?php }?> 77 78 <div class="bar" id="bar__top"> 79 <?php tpl_searchform()?> 80 <?php tpl_button('index')?> 81<div class="clearer"></div> 82 <?php tpl_button('edit')?> 83 <?php tpl_button('history')?> 84 85 <?php tpl_button('recent')?> 86 <?php tpl_button('subscription')?> 87 88 89 90<?php 91$pmenu = ":menuL"; 92if (getNS($ID)) $pmenu = ":".getNS($ID).":menuL"; 93if (!page_exists($pmenu)) $pmenu = ":menuL"; 94if (page_exists($pmenu)){ 95 echo "<div class=\"menuL\" > "; 96 if (function_exists('dwp_display_wiki_page')) dwp_display_wiki_page($pmenu); 97 echo "</div> "; 98 } 99?> 100 101 102 <?php tpl_button('admin')?> 103 <?php tpl_button('profile')?> 104 <?php tpl_button('login')?> 105 106 107 <div class="clearer"></div> 108 </div> 109 110 111 112 </div> 113 114 <?php /*old includehook*/ @include(dirname(__FILE__).'/pageheader.html')?> 115 116 117 <div class="page"> 118 <!-- wikipage start --> 119 <?php tpl_content()?> 120 <!-- wikipage stop --> 121 </div> 122 123 124 125 126 <?php 127$pmenu = ":menuR"; 128if (getNS($ID)) $pmenu = ":".getNS($ID).":menuR"; 129if (page_exists($pmenu)){ 130 echo "<div class=\"menuR\" > "; 131 if (function_exists('dwp_display_wiki_page')) dwp_display_wiki_page($pmenu); 132 echo "</div> "; 133 } 134?> 135 136 137 138 139 <div class="stylefoot"> 140 141 <div class="meta"> 142 <div class="user"> 143<?php tpl_button('top')?> 144 <?php tpl_userinfo()?> 145 </div> 146 <div class="doc"> 147 <?php tpl_pageinfo()?> 148 </div> 149 </div> 150 151 <?php /*old includehook*/ @include(dirname(__FILE__).'/pagefooter.html')?> 152 153 154 <div class="clearer"></div> 155 156 157 </div> 158 159</div> 160<?php /*old includehook*/ @include(dirname(__FILE__).'/footer.html')?> 161 162<div class="no"><?php /* provide DokuWiki housekeeping, required in all templates */ tpl_indexerWebBug()?></div> 163</body> 164</html> 165