diff options
author | Anika Henke <anika@selfthinker.org> | 2012-01-29 19:32:35 +0000 |
---|---|---|
committer | Anika Henke <anika@selfthinker.org> | 2012-01-29 19:32:35 +0000 |
commit | b957766481df153dfbc9b63506b94c2425c857d5 (patch) | |
tree | 49e400c3f65a94216f6db92f7744a21a134880e6 | |
parent | f97b05c8443027d9d2cc46d95b733f8d520088b1 (diff) | |
download | rpg-b957766481df153dfbc9b63506b94c2425c857d5.tar.gz rpg-b957766481df153dfbc9b63506b94c2425c857d5.tar.bz2 |
changed tpl conf options (for sidebar and tagline) to new core conf and removed hideTools option
-rwxr-xr-x | detail.php | 5 | ||||
-rwxr-xr-x | main.php | 35 | ||||
-rw-r--r-- | 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'); ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $conf['lang']?>" @@ -115,7 +114,7 @@ $showSidebar = tpl_getConf('sidebarID') && page_exists(tpl_getConf('sidebarID')) <hr class="a11y" /> <!-- PAGE ACTIONS --> - <?php if ($showTools && !$ERROR): ?> + <?php if (!$ERROR): ?> <div id="dokuwiki__pagetools"> <h3 class="a11y"><?php echo $lang['page_tools']; ?></h3> <div class="tools"> @@ -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'); ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $conf['lang'] ?>" @@ -46,7 +45,7 @@ $showSidebar = tpl_getConf('sidebarID') && page_exists(tpl_getConf('sidebarID')) <?php if($showSidebar): ?> <!-- ********** ASIDE ********** --> <div id="dokuwiki__aside"><div class="pad include group"> - <?php tpl_include_page(tpl_getConf('sidebarID')) /* includes the given wiki page */ ?> + <?php tpl_include_page($conf['sidebar']) /* includes the given wiki page */ ?> </div></div><!-- /aside --> <?php endif; ?> @@ -72,23 +71,21 @@ $showSidebar = tpl_getConf('sidebarID') && page_exists(tpl_getConf('sidebarID')) <hr class="a11y" /> <!-- PAGE ACTIONS --> - <?php if ($showTools): ?> - <div id="dokuwiki__pagetools"> - <h3 class="a11y"><?php echo $lang['page_tools']; ?></h3> - <div class="tools"> - <ul> - <?php - tpl_action('edit', 1, 'li', 0, '<span>', '</span>'); - tpl_action('revert', 1, 'li', 0, '<span>', '</span>'); - tpl_action('revisions', 1, 'li', 0, '<span>', '</span>'); - tpl_action('backlink', 1, 'li', 0, '<span>', '</span>'); - tpl_action('subscribe', 1, 'li', 0, '<span>', '</span>'); - tpl_action('top', 1, 'li', 0, '<span>', '</span>'); - ?> - </ul> - </div> + <div id="dokuwiki__pagetools"> + <h3 class="a11y"><?php echo $lang['page_tools']; ?></h3> + <div class="tools"> + <ul> + <?php + tpl_action('edit', 1, 'li', 0, '<span>', '</span>'); + tpl_action('revert', 1, 'li', 0, '<span>', '</span>'); + tpl_action('revisions', 1, 'li', 0, '<span>', '</span>'); + tpl_action('backlink', 1, 'li', 0, '<span>', '</span>'); + tpl_action('subscribe', 1, 'li', 0, '<span>', '</span>'); + tpl_action('top', 1, 'li', 0, '<span>', '</span>'); + ?> + </ul> </div> - <?php endif; ?> + </div> </div><!-- /wrapper --> <?php include('tpl_footer.php') ?> 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 @@ '<img src="'.tpl_getFavicon(false, 'logo.png').'" width="64" height="64" alt="" /> <span>'.$conf['title'].'</span>', 'accesskey="h" title="[H]"' ) /* @todo: obviously don't use tpl_getFavicon, but make a new function (or use a config option?) */ ?></h1> - <?php if (tpl_getConf('tagline')): ?> - <p class="claim"><?php echo tpl_getConf('tagline') ?></p> + <?php if ($conf['tagline']): ?> + <p class="claim"><?php echo $conf['tagline']; ?></p> <?php endif ?> </div> <div class="tools group"> <!-- USER TOOLS --> - <?php if ($conf['useacl'] && $showTools): ?> + <?php if ($conf['useacl']): ?> <div id="dokuwiki__usertools"> <h3 class="a11y"><?php echo $lang['user_tools']; ?></h3> <ul> |