1<?php 2/** 3 * DokuWiki Apricot Template 4 * 5 * @link http://dokuwiki.org/template:apricot 6 * @author Arun Chaganty <arunchaganty@gmail.com> 7 * @author Anika Henke <anika@selfthinker.org> 8 * @license GPL 2 (http://www.gnu.org/licenses/gpl.html) 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// Get variables 15$showTools = !tpl_getConf('hideTools') || ( tpl_getConf('hideTools') && $_SERVER['REMOTE_USER'] ); 16?> 17<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 18 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 19<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?= $conf['lang'] ?>" 20 lang="<?= $conf['lang'] ?>" dir="<?= $lang['direction'] ?>"> 21 22<head profile="http://gmpg.org/xfn/11"> 23 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 24 <meta name="generator" content="DokuWiki" /> <!-- leave this for stats --> 25 <title><?php tpl_pagetitle() ?> [<?= strip_tags($conf['title']) ?>]</title> 26 <?php tpl_metaheaders() ?> 27 <link rel="shortcut icon" href="<?= _tpl_getFavicon() /* DW versions > 2010-11-12 can use the core function tpl_getFavicon() */ ?>" /> 28 <?php _tpl_include('meta.html') ?> 29</head> 30 31<body> 32 <?php /* with these Conditional Comments you can better address IE issues in CSS files, 33 precede CSS rules by #IE6 for IE6, #IE7 for IE7 and #IE8 for IE8 (div closes at the bottom) */ ?> 34 <!--[if IE 6 ]><div id="IE6"><![endif]--><!--[if IE 7 ]><div id="IE7"><![endif]--><!--[if IE 8 ]><div id="IE8"><![endif]--> 35 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 class="dokuwiki site mode_<?= $ACT ?>"> 40 <?php html_msgarea() /* occasional error and info messages on top of the page */ ?> 41 <?php _tpl_include('header.html') ?> 42 43 <div id="dokuwiki__header"> 44 <?php include( 'header.php' ); ?> 45 </div><!-- /header --> 46 47 <!-- ********** CONTENT ********** --> 48 <div id="dokuwiki__content"> 49 <?php tpl_flush() /* flush the output buffer */ ?> 50 <?php _tpl_include('pageheader.html') ?> 51 52 <!-- BREADCRUMBS --> 53 <?php if($conf['breadcrumbs']){ ?> 54 <div class="breadcrumbs"><?php tpl_breadcrumbs() ?></div> 55 <?php } ?> 56 <?php if($conf['youarehere']){ ?> 57 <div class="breadcrumbs"><?php tpl_youarehere() ?></div> 58 <?php } ?> 59 60 <div class="clearer"></div> 61 <hr class="a11y" /> 62 63 <div class="page"> 64 <!-- wikipage start --> 65 <?php tpl_content() /* the main content */ ?> 66 <!-- wikipage stop --> 67 <div class="clearer"></div> 68 </div> 69 70 <?php tpl_flush() ?> 71 <?php _tpl_include('pagefooter.html') ?> 72 73 <!-- PAGE ACTIONS --> 74 <?php if ($showTools): ?> 75 <div id="dokuwiki__pagetools"> 76 <h3 class="a11y"><?= tpl_getLang('page_tools') ?></h3> 77 <ul> 78 <?php 79 tpl_action('edit', 1, 'li'); 80 _tpl_action('discussion', 1, 'li'); 81 tpl_action('history', 1, 'li'); 82 tpl_action('backlink', 1, 'li'); 83 tpl_action('subscribe', 1, 'li'); 84 tpl_action('revert', 1, 'li'); 85 tpl_action('top', 1, 'li'); 86 ?> 87 </ul> 88 </div> 89 <?php endif; ?> 90 91 </div><!-- /content --> 92 93 94 <div id="dokuwiki__aside"> 95 <?php include( 'sidebar.php' ); ?> 96 </div> 97 98 <div id="dokuwiki__footer"> 99 <?php include( 'footer.php' ); ?> 100 </div> 101 102 103 </div></div><!-- /site --> 104 105 <div class="no"><?php tpl_indexerWebBug() /* provide DokuWiki housekeeping, required in all templates */ ?></div> 106 <!--[if ( IE 6 | IE 7 | IE 8 ) ]></div><![endif]--> 107</body> 108</html> 109