From b957766481df153dfbc9b63506b94c2425c857d5 Mon Sep 17 00:00:00 2001 From: Anika Henke Date: Sun, 29 Jan 2012 19:32:35 +0000 Subject: changed tpl conf options (for sidebar and tagline) to new core conf and removed hideTools option --- detail.php | 5 ++--- main.php | 35 ++++++++++++++++------------------- tpl_header.php | 6 +++--- 3 files changed, 21 insertions(+), 25 deletions(-) diff --git a/detail.php b/detail.php index 784174891..cdda77ac6 100755 --- a/detail.php +++ b/detail.php @@ -11,8 +11,7 @@ if (!defined('DOKU_INC')) die(); @require_once(dirname(__FILE__).'/tpl_functions.php'); /* include hook for template functions */ -$showTools = !tpl_getConf('hideTools') || ( tpl_getConf('hideTools') && $_SERVER['REMOTE_USER'] ); -$showSidebar = tpl_getConf('sidebarID') && page_exists(tpl_getConf('sidebarID')) && ($ACT=='show'); +$showSidebar = $conf['sidebar'] && page_exists($conf['sidebar']) && ($ACT=='show'); ?> - +

diff --git a/main.php b/main.php index 1a67c6432..b7985d560 100755 --- a/main.php +++ b/main.php @@ -11,8 +11,7 @@ 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') && $_SERVER['REMOTE_USER'] ); -$showSidebar = tpl_getConf('sidebarID') && page_exists(tpl_getConf('sidebarID')) && ($ACT=='show'); +$showSidebar = $conf['sidebar'] && page_exists($conf['sidebar']) && ($ACT=='show'); ?>
- +
@@ -72,23 +71,21 @@ $showSidebar = tpl_getConf('sidebarID') && page_exists(tpl_getConf('sidebarID'))
- -
-

-
-
    - ', ''); - tpl_action('revert', 1, 'li', 0, '', ''); - tpl_action('revisions', 1, 'li', 0, '', ''); - tpl_action('backlink', 1, 'li', 0, '', ''); - tpl_action('subscribe', 1, 'li', 0, '', ''); - tpl_action('top', 1, 'li', 0, '', ''); - ?> -
-
+
+

+
+
    + ', ''); + tpl_action('revert', 1, 'li', 0, '', ''); + tpl_action('revisions', 1, 'li', 0, '', ''); + tpl_action('backlink', 1, 'li', 0, '', ''); + tpl_action('subscribe', 1, 'li', 0, '', ''); + tpl_action('top', 1, 'li', 0, '', ''); + ?> +
- +
diff --git a/tpl_header.php b/tpl_header.php index 85164a9ef..e536cdf26 100644 --- a/tpl_header.php +++ b/tpl_header.php @@ -14,14 +14,14 @@ ' '.$conf['title'].'', 'accesskey="h" title="[H]"' ) /* @todo: obviously don't use tpl_getFavicon, but make a new function (or use a config option?) */ ?> - -

+ +

- +

    -- cgit v1.2.3