1
0
Fork 0

Adding minimal version 20250330 (53db2f4).

Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
Daniel Baumann 2025-04-13 13:24:55 +02:00
parent 9002d030ca
commit abaf5b98ff
Signed by: daniel
GPG key ID: FBB4F0E80A80222F
40 changed files with 2999 additions and 0 deletions

View file

@ -0,0 +1,31 @@
<?php
/**
* Minimal Template Helper Plugin (for common tasks)
*
* @link http://dokuwiki.org/template:minimal
* @author Reactive Matter <reactivematter@protonmail.com>
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
*/
// must be run from within DokuWiki
if (!defined('DOKU_INC')) die();
// must be run from within DokuWiki
if (!defined('DOKU_INC')) die();
function tpl_minimal_classes()
{
global $conf, $ACT;
$theme = '';
if(tpl_getConf('theme')!='Default')
{
$theme = ' theme-'.strtolower(tpl_getConf('theme'));
}
$toc = tpl_getConf('stickyToc')?' stoc':'';
$width = tpl_getConf('fullWidthSite')?' full-width':'';
$sidebar = (page_findnearest($conf['sidebar']) && ($ACT=='show')) ? ' sidebar' : '';
return tpl_classes().$toc.$width.$sidebar.$theme;
}