1<?php 2/** 3 * DokuWiki Congrid Template 4 * 5 * @author LarsDW223 6 * @license GPL 2 (http://www.gnu.org/licenses/gpl.html) 7 */ 8 9global $TPL_DEBUG; 10$TPL_DEBUG = 'Main: '; 11 12if (!defined('DOKU_INC')) die(); /* must be run from within DokuWiki */ 13 14// Include template functions 15require_once(dirname(__FILE__).'/tpl_functions.php'); 16 17// Include template init code 18include_once(dirname(__FILE__).'/tpl_init.php'); 19 20header('X-UA-Compatible: IE=edge,chrome=1'); 21 22// Get the layout to be used 23$layout = tpl_get_layout(); 24if ($layout === NULL) { 25 $TPL_DEBUG .= 'kein layout'; 26} 27tpl_create_grid($layout); 28?> 29<!DOCTYPE html> 30<html lang="<?php echo $conf['lang'] ?>" dir="<?php echo $lang['direction'] ?>" class="no-js"> 31<head> 32 <meta charset="utf-8" /> 33 <title><?php tpl_pagetitle() ?> [<?php echo strip_tags($conf['title']) ?>]</title> 34 <script>(function(H){H.className=H.className.replace(/\bno-js\b/,'js')})(document.documentElement)</script> 35 <?php tpl_metaheaders() ?> 36 <meta name="viewport" content="width=device-width,initial-scale=1" /> 37 <?php echo tpl_favicon(array('favicon', 'mobile')) ?> 38 <?php tpl_includeFile('meta.html') ?> 39 <?php tpl_print_grid($layout) ?> 40</head> 41 42<?php tpl_print_body($layout) ?> 43 <div id="dokuwiki__site" <?php tpl_print_site_class($layout) ?>> 44 <?php tpl_generate_grid_cells($layout) ?> 45 </div> 46 47 <div class="no"><?php tpl_indexerWebBug() /* provide DokuWiki housekeeping, required in all templates */ ?></div> 48 <div id="screen__mode" class="no"></div><?php /* helper to detect CSS media query in script.js */ ?> 49</body> 50</html> 51