* @author Nicolas Prigent * @license GPL 2 (http://www.gnu.org/licenses/gpl.html) */ if (!defined('DOKU_INC')) die(); /* must be run from within DokuWiki */ @require_once(dirname(__FILE__).'/tpl_functions.php'); /* include hook for template functions */ $showTools = !tpl_getConf('hideTools') || ( tpl_getConf('hideTools') && !empty($_SERVER['REMOTE_USER']) ); $showSidebar = page_findnearest($conf['sidebar']) && ($ACT=='show'); $sidebarElement = tpl_getConf('sidebarIsNav') ? 'nav' : 'aside'; $menuMaxHeight = tpl_getConf('MenuMaxHeight'); $tocMaxHeight = tpl_getConf('TocMaxHeight'); $contentMaxWidth = tpl_getConf('ContentMaxWidth'); $themeMode = tpl_getConf('DefaultTheme'); $forceTheme = tpl_getConf('ForceTheme'); if (!empty($_COOKIE['theme'])){ if(!$forceTheme){ $themeMode = $_COOKIE['theme']; }else{ setcookie("theme",$themeMode); } } if (!isset($_COOKIE['theme']) || empty($_COOKIE['theme'])){ setcookie("theme",$themeMode); } $logoSize = array(); $logodark = tpl_getMediaFile(array(':wiki:logo-dark.png', ':logo-dark.png', 'images/logo-dark.png'), true, $logoSize, false); $logolight = tpl_getMediaFile(array(':wiki:logo-light.png', ':logo-light.png', 'images/logo-light.png'), true, $logoSize, false); $logo = tpl_getMediaFile(array(':wiki:logo.png', ':logo.png', 'images/logo.png'), true, $logoSize); ?>