1<?php 2/** 3 * DokuWiki ramtop Template 4 * 5 * @link https://www.dokuwiki.org/template:r0the 6 * @author Anika Henke <anika@selfthinker.org> 7 * @author Clarence Lee <clarencedglee@gmail.com> 8 * @author Stefan Rothe <info@stefan-rothe.ch> 9 * @license GPL 2 (http://www.gnu.org/licenses/gpl2.html) 10 */ 11 12if (!defined('DOKU_INC')) die(); /* must be run from within DokuWiki */ 13header('X-UA-Compatible: IE=edge,chrome=1'); 14 15$hasMenubar = page_findnearest(tpl_getConf('menubar')); 16$showMenubar = $hasMenubar && ($ACT=='show'); 17$customLicence = tpl_getConf('custom_licence'); 18$siteClasses = 'site ' . tpl_classes(); 19if ($hasMenubar) { 20 $siteClasses = $siteClasses . 'hasMenubar '; 21} 22 23if ($showMenubar) { 24 $siteClasses = $siteClasses . 'showMenubar '; 25} 26 27?><!DOCTYPE html> 28<html lang="<?php echo $conf['lang'] ?>" dir="<?php echo $lang['direction'] ?>" class="no-js"> 29<head> 30 <meta charset="utf-8" /> 31 <title><?php tpl_pagetitle() ?> [<?php echo strip_tags($conf['title']) ?>]</title> 32 <script>(function(H){H.className=H.className.replace(/\bno-js\b/,'js')})(document.documentElement)</script> 33 <?php tpl_metaheaders() ?> 34 <meta name="viewport" content="width=device-width,initial-scale=1" /> 35 <?php echo tpl_favicon(array('favicon', 'mobile')) ?> 36 <?php tpl_includeFile('meta.html') ?> 37</head> 38 39<body> 40 <!--[if lte IE 7 ]><div id="IE7"><![endif]--><!--[if IE 8 ]><div id="IE8"><![endif]--> 41 <div id="dokuwiki__site"><div id="dokuwiki__top" class="<?php echo ${siteClasses}; ?>"> 42<?php include('tpl_header.php') ?> 43 44 <div class="wrapper group"> 45 <div id="dokuwiki__content"><div class="pad group"> 46 <div class="page group"><?php tpl_flush() ?> 47 48 <!-- wikipage start --> 49<?php tpl_content() ?> 50 51 <!-- wikipage stop --> 52 </div><?php tpl_flush() ?> 53 54 </div></div> 55 56 <hr class="a11y" /> 57 58 <!-- page actions --> 59 <div id="dokuwiki__pagetools"> 60 <h3 class="a11y"><?php echo $lang['page_tools']; ?></h3> 61 <div class="tools"> 62 <ul> 63 <?php 64 $data = array( 65 'view' => 'main', 66 'items' => array( 67 'edit' => tpl_action('edit', 1, 'li', 1, '<span>', '</span>'), 68 'revert' => tpl_action('revert', 1, 'li', 1, '<span>', '</span>'), 69 'revisions' => tpl_action('revisions', 1, 'li', 1, '<span>', '</span>'), 70 'backlink' => tpl_action('backlink', 1, 'li', 1, '<span>', '</span>'), 71 'subscribe' => tpl_action('subscribe', 1, 'li', 1, '<span>', '</span>'), 72 'top' => tpl_action('top', 1, 'li', 1, '<span>', '</span>') 73 ) 74 ); 75 76 // the page tools can be amended through a custom plugin hook 77 $evt = new Doku_Event('TEMPLATE_PAGETOOLS_DISPLAY', $data); 78 if($evt->advise_before()){ 79 foreach($evt->data['items'] as $k => $html) echo $html; 80 } 81 $evt->advise_after(); 82 unset($data); 83 unset($evt); 84 ?> 85 </ul> 86 </div> 87 </div> 88 </div> 89 90<?php include('tpl_footer.php') ?> 91 </div></div> 92 93 <div class="no"><?php tpl_indexerWebBug() /* provide DokuWiki housekeeping, required in all templates */ ?></div> 94 <div id="screen__mode" class="no"></div><?php /* helper to detect CSS media query in script.js */ ?> 95 <!--[if ( lte IE 7 | IE 8 ) ]></div><![endif]--> 96</body> 97</html> 98