added tpl_classes() function to keep latest stable working
This commit is contained in:
parent
cac0893bbb
commit
e54aa15420
1 changed files with 19 additions and 0 deletions
|
|
@ -81,3 +81,22 @@ function _tpl_action($type, $link=0, $wrapper=0) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* copied from core
|
||||||
|
* @todo: remove when it's available in stable (autumn 2013)
|
||||||
|
*/
|
||||||
|
if (!function_exists('tpl_classes')) {
|
||||||
|
function tpl_classes() {
|
||||||
|
global $ACT, $conf, $ID, $INFO;
|
||||||
|
$classes = array(
|
||||||
|
'dokuwiki',
|
||||||
|
'mode_'.$ACT,
|
||||||
|
'tpl_'.$conf['template'],
|
||||||
|
$_SERVER['REMOTE_USER'] ? 'loggedIn' : '',
|
||||||
|
$INFO['exists'] ? '' : 'notFound',
|
||||||
|
($ID == $conf['start']) ? 'home' : '',
|
||||||
|
);
|
||||||
|
return join(' ', $classes);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue