diff --git a/detail.php b/detail.php index 48a8fe6..1b73057 100644 --- a/detail.php +++ b/detail.php @@ -30,7 +30,7 @@ header('X-UA-Compatible: IE=edge,chrome=1'); -
+
diff --git a/main.php b/main.php index 807057d..909f701 100644 --- a/main.php +++ b/main.php @@ -32,11 +32,10 @@ $showSidebar = page_findnearest($conf['sidebar']) && ($ACT=='show'); - are added to make it possible to e.g. style a page differently if it's in edit mode, - see http://www.dokuwiki.org/devel:action_modes for a list of action modes */ ?> - -
+ +
diff --git a/mediamanager.php b/mediamanager.php index c4e68f1..5af6205 100644 --- a/mediamanager.php +++ b/mediamanager.php @@ -28,7 +28,7 @@ header('X-UA-Compatible: IE=edge,chrome=1'); -
+

diff --git a/tpl_functions.php b/tpl_functions.php index dcbcfaf..2869e47 100644 --- a/tpl_functions.php +++ b/tpl_functions.php @@ -247,9 +247,28 @@ if (!function_exists('tpl_incdir')) { /** * does *not* emulate the core function, but returns only * if sidebar is set to make it roughly backwards compatible + * (available since Adora Belle) */ if (!function_exists('page_findnearest')) { function page_findnearest($sidebar){ return $sidebar; } } + +/** + * copied from core (will be available in autumn 2013 release) + */ +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); + } +}