1 <?php 2 /** 3 * DokuWiki DokuCMS Template 4 * 5 * @link http://wiki.splitbrain.org/wiki:tpl:templates 6 * @author Andreas Gohr <andi@splitbrain.org> 7 * @author Klaus Vormweg <klaus.vormweg@gmx.de> 8 */ 9 10 // must be run from within DokuWiki 11 if (!defined('DOKU_INC')) die(); 12 13 // include custom template functions stolen from arctic template 14 require_once(dirname(__FILE__).'/tpl_functions.php'); 15 16 echo ' 17 <!DOCTYPE html> 18 <html lang="', $conf['lang'], '" dir="', $lang['direction'], '"> 19 <head> 20 <meta charset="utf-8" /> 21 <title>',"\n"; 22 tpl_pagetitle(); 23 echo '[', strip_tags($conf['title']), '] 24 </title> 25 <meta name="viewport" content="width=device-width, initial-scale=1.0" />',"\n"; 26 tpl_metaheaders(); 27 echo tpl_favicon(array('favicon', 'mobile')); 28 echo ' 29 <!--[if lt IE 7]> 30 <style type="text/css"> 31 div.page { width: 55em !important; } 32 </style> 33 <![endif]--> 34 </head> 35 36 <body> 37 <div class="dokuwiki">',"\n"; 38 html_msgarea(); 39 echo ' <header class="stylehead"> 40 <div class="header"> 41 <div class="pagename">',"\n"; 42 tpl_link(wl(),$conf['title'],'name="dokuwiki__top" id="dokuwiki__top" accesskey="h" title="[ALT+H]"'); 43 echo ' </div> 44 <div class="clearer"></div> 45 </div>',"\n"; 46 if($conf['breadcrumbs']){ 47 echo ' <div class="breadcrumbs">',"\n"; 48 tpl_breadcrumbs(); 49 echo ' </div>',"\n"; 50 } 51 52 if($conf['youarehere']){ 53 echo ' <div class="breadcrumbs">',"\n"; 54 tpl_youarehere(); 55 echo ' </div>',"\n"; 56 } 57 echo ' </header>',"\n"; 58 tpl_flush(); 59 60 if($ACT != 'diff' and $ACT != 'edit' and $ACT != 'preview' and $ACT != 'admin' and 61 $ACT != 'login' and $ACT != 'logout' and $ACT != 'profile' and $ACT != 'revisions') { 62 echo ' <div class="wrap"> 63 <nav class="sidebar"> 64 <input type="checkbox" id="hamburger" class="hamburger" /> 65 <label for="hamburger" class="hamburger" title="Menu">☰ <span class="vishelp">Menu</span></label>',"\n"; 66 _tpl_sidebar(); 67 echo ' </nav> 68 <div class="page">',"\n"; 69 tpl_content(); 70 echo ' </div> 71 </div>',"\n"; 72 } else { 73 echo '<div class="wrap" style="background-color: #fff;"> 74 <div class="page" style="margin-left: 0; max-width: 78em;">',"\n"; 75 tpl_content(); 76 echo ' </div> 77 </div>',"\n"; 78 } 79 tpl_flush(); 80 echo ' <footer class="stylefoot">',"\n"; 81 if($ACT != 'diff' and $ACT != 'edit' and $ACT != 'preview' and $ACT != 'admin' 82 and $ACT != 'login' and $ACT != 'logout' and $ACT != 'profile' and $ACT != 'revisions') { 83 echo ' <div class="homelink"> 84 <a href="http://wiki.splitbrain.org/wiki:dokuwiki" title="Driven by DokuWiki">', 85 '<img src="', DOKU_TPL, 'images/button-dw.png" width="80" height="15" alt="Driven by DokuWiki" /></a> 86 <a href="', DOKU_BASE, 'feed.php" title="Recent changes RSS feed">', 87 '<img src="', DOKU_TPL, 'images/button-rss.png" width="80" height="15" alt="Recent changes RSS feed" /></a> 88 </div> 89 90 <div class="meta">',"\n"; 91 _tpl_pageinfo(); 92 echo ' </div>',"\n"; 93 } else { 94 echo ' 95 <div class="meta"> 96 </div>',"\n"; 97 } 98 echo ' <div class="bar" id="bar__bottom"> 99 <div class="bar-left" id="bar__bottomleft">',"\n"; 100 tpl_button('admin'); 101 if($ACT != 'login' and $ACT != 'logout') { 102 tpl_button('login'); 103 echo ' '; 104 } 105 if($_SERVER['REMOTE_USER']){ 106 tpl_button('subscribe'); 107 tpl_button('profile'); 108 tpl_button('history'); 109 tpl_button('revert'); 110 } 111 if($conf['tpl']['dokucms']['showbacklinks']) { 112 tpl_button('backlink'); 113 echo ' '; 114 } 115 echo ' 116 </div> 117 <div class="bar-right" id="bar__bottomright">',"\n"; 118 if(!$_SERVER['REMOTE_USER']){ 119 tpl_searchform(); 120 echo ' '; 121 if($conf['tpl']['dokucms']['showmedia'] and $ACT != 'login' and $ACT != 'logout') { 122 tpl_button('media'); 123 } 124 } else { 125 if($ACT != 'login' and $ACT != 'logout'){ 126 if($conf['tpl']['dokucms']['showsearch']) { 127 tpl_searchform(); 128 echo ' '; 129 } 130 tpl_button('media'); 131 } 132 } 133 tpl_button('edit'); 134 echo ' 135 </div> 136 <div class="clearer"></div> 137 </div> 138 </footer>',"\n"; 139 tpl_license(false); 140 echo ' 141 </div> 142 <div class="no">'; 143 /* provide DokuWiki housekeeping, required in all templates */ 144 tpl_indexerWebBug(); 145 echo '</div> 146 </body> 147 </html>',"\n"; 148 ?> 149