Download raw (6.7 KB)
<?php /** * DokuWiki Arctic Template * * This is the template you need to change for the overall look * of DokuWiki. * * You should leave the doctype at the very top - It should * always be the very first line of a document. * * @link http://wiki.splitbrain.org/wiki:tpl:templates * @author Andreas Gohr <andi@splitbrain.org> * * additional editing by * @author Michael Klier <chi@chimeric.de> * @link http://chimeric.de/wiki/dokuwiki/templates/arctic/ * */ // must be run from within DokuWiki if (!defined('DOKU_INC')) die(); // include custom arctic template functions require_once(dirname(__FILE__).'/tpl_functions.php'); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $conf['lang']?>" lang="<?php echo $conf['lang']?>" dir="<?php echo $lang['direction']?>"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title> <?php tpl_pagetitle()?> [<?php echo strip_tags($conf['title'])?>] </title> <?php tpl_metaheaders()?> <link rel="shortcut icon" href="<?php echo DOKU_TPL?>images/favicon.ico" /> <?php /*old includehook*/ @include(dirname(__FILE__).'/meta.html')?> <?php if($notoc) { ?> <style type="text/css" media="screen"> div.dokuwiki div.left_page div.toc, div.dokuwiki div.right_page div.toc, div.dokuwiki div.center_page div.toc { display: none; } </style> <?php } ?> </head> <body> <?php /*old includehook*/ @include(dirname(__FILE__).'/topheader.html')?> <div id="wrapper"> <div class="dokuwiki"> <?php html_msgarea()?> <div class="stylehead"> <div class="header"> <div class="pagename"> [[<?php tpl_link(wl($ID,'do=backlink'),tpl_pagetitle($ID,true))?>]] </div> <div class="logo"> <?php tpl_link(wl(),$conf['title'],'name="dokuwiki__top" accesskey="h" title="[ALT+H]"')?> </div> </div> <?php if(tpl_getConf('trace') == 'top' or tpl_getConf('trace') == 'both') {?> <div class="breadcrumbs"> <?php ($conf['youarehere'] != 1) ? tpl_breadcrumbs() : tpl_youarehere();?> </div> <?php } ?> <?php /*old includehook*/ @include(dirname(__FILE__).'/header.html')?> </div> <?php if(!$toolb) {?> <div class="bar" id="bar__top"> <div class="bar-left"> <?php switch(tpl_getConf('wiki_actionlinks')) { case('buttons'): tpl_button('edit'); tpl_button('history'); break; case('links'): tpl_actionlink('edit'); tpl_actionlink('history'); break; } ?> </div> <div class="bar-right"> <?php switch(tpl_getConf('wiki_actionlinks')) { case('buttons'): tpl_button('admin'); tpl_button('profile'); tpl_button('recent'); tpl_button('index'); tpl_button('login'); if(tpl_getConf('sidebar') == 'none') tpl_searchform(); break; case('links'): tpl_actionlink('admin'); tpl_actionlink('profile'); tpl_actionlink('recent'); tpl_actionlink('index'); tpl_actionlink('login'); if(tpl_getConf('sidebar') == 'none') tpl_searchform(); break; } ?> </div> </div> <?php } ?> <?php /*old includehook*/ @include(dirname(__FILE__).'/pageheader.html')?> <?php flush()?> <?php if(tpl_getConf('sidebar') == 'left') { ?> <?php if($ACT != 'diff' && $ACT != 'edit' && $ACT != 'preview' && $ACT != 'admin') { ?> <div class="left_sidebar"> <?php tpl_searchform() ?> <?php tpl_sidebar('left') ?> </div> <div class="right_page"> <?php tpl_content()?> </div> <?php } else { ?> <div class="page"> <?php tpl_content()?> </div> <?php } ?> <?php } elseif(tpl_getConf('sidebar') == 'right') { ?> <?php if($ACT != 'diff' && $ACT != 'edit' && $ACT != 'preview' && $ACT != 'admin') { ?> <div class="left_page"> <?php tpl_content()?> </div> <div class="right_sidebar"> <?php tpl_searchform() ?> <?php tpl_sidebar('right') ?> </div> <?php } else { ?> <div class="page"> <?php tpl_content()?> </div> <?php }?> <?php } elseif(tpl_getConf('sidebar') == 'both') { ?> <?php if($ACT != 'diff' && $ACT != 'edit' && $ACT != 'preview' && $ACT != 'admin') { ?> <div class="left_sidebar"> <?php if(tpl_getConf('search') == 'left') tpl_searchform() ?> <?php tpl_sidebar('left') ?> </div> <div class="center_page"> <?php tpl_content()?> </div> <div class="right_sidebar"> <?php if(tpl_getConf('search') == 'right') tpl_searchform() ?> <?php tpl_sidebar('right') ?> </div> <?php } else { ?> <div class="page"> <?php tpl_content()?> </div> <?php }?> <?php } elseif(tpl_getConf('sidebar') == 'none') { ?> <div class="page"> <?php tpl_content() ?> </div> <?php } ?> <div class="stylefoot"> <div class="meta"> <div class="user"> <?php tpl_userinfo()?> </div> <div class="doc"> <?php tpl_pageinfo()?> </div> </div> </div> <div class="clearer"></div> <?php flush()?> <?php if(!$toolb) {?> <div class="bar" id="bar__bottom"> <div class="bar-left"> <?php switch(tpl_getConf('wiki_actionlinks')) { case('buttons'): tpl_button('edit'); tpl_button('history'); break; case('links'): tpl_actionlink('edit'); tpl_actionlink('history'); break; } ?> </div> <div class="bar-right"> <?php switch(tpl_getConf('wiki_actionlinks')) { case('buttons'): tpl_button('subscription'); tpl_button('top'); break; case('links'): tpl_actionlink('subscription'); tpl_actionlink('top'); break; } ?> </div> </div> <?php } ?> <?php /*old includehook*/ @include(dirname(__FILE__).'/footer.html')?> </div> </div> <div class="no"><?php /* provide DokuWiki housekeeping, required in all templates */ tpl_indexerWebBug()?></div> </body> </html>