1<?php 2/** 3 * Minimal Template Helper Plugin (for common tasks) 4 * 5 * @link http://dokuwiki.org/template:minimal 6 * @author Reactive Matter <reactivematter@protonmail.com> 7 * @license GPL 2 (http://www.gnu.org/licenses/gpl.html) 8 */ 9 10// must be run from within DokuWiki 11if (!defined('DOKU_INC')) die(); 12 13function tpl_minimal_classes() 14{ 15 $theme = ''; 16 if(tpl_getConf('theme')!='Default') 17 { 18 $theme = ' theme-'.strtolower(tpl_getConf('theme')); 19 } 20 21 $width = tpl_getConf('fullWidthSite')?' full-width':''; 22 23 $sidebar = (page_findnearest($conf['sidebar']) && ($ACT=='show')) ? ' sidebar' : ''; 24 25 return tpl_classes().$width.$sidebar.$theme; 26} 27 28