From c7683e5dbcbb1f7f4cc87d56855b918a1fae92bf Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Sun, 9 Oct 2005 11:59:39 +0000 Subject: [PATCH] update to new prefs-style, the old one is not working for templates --- .../templates/jerryr/hook_settings.inc.php | 108 ++++++++++++------ 1 file changed, 71 insertions(+), 37 deletions(-) diff --git a/phpgwapi/templates/jerryr/hook_settings.inc.php b/phpgwapi/templates/jerryr/hook_settings.inc.php index bbd552be43..b92b325c27 100644 --- a/phpgwapi/templates/jerryr/hook_settings.inc.php +++ b/phpgwapi/templates/jerryr/hook_settings.inc.php @@ -11,46 +11,80 @@ /* $Id$ */ + $start_and_logout_icons = array( + 'yes' => lang('yes'), + 'no' => lang('no') + ); $click_or_onmouseover = array( 'click' => lang('Click'), 'onmouseover' => lang('On Mouse Over') ); - create_section('Preferences for the jerryr template set'); - - create_input_box( - 'Max number of icons in navbar', - 'max_icons', - 'How many icons should be shown in the navbar (top of the page). Additional icons go into a kind of pulldown menu, callable by the icon on the far right side of the navbar.','10',3 - ); - - create_check_box( - 'Autohide Sidebox menu\'s', - 'auto_hide_sidebox', - 'Automatically hide the Sidebox menu\'s?' - ); - - create_select_box( - 'Click or Mouse Over to show menus', - 'click_or_onmouseover', - $click_or_onmouseover, - 'Click or Mouse Over to show menus?' - ); - - create_check_box( - 'Disable slider effects', - 'disable_slider_effects', - 'Disable the animated slider effects when showing or hiding menus in the page? Opera and Konqueror users will probably must want this.' - ); - - create_check_box( - 'Disable Internet Explorer png-image-bugfix', - 'disable_pngfix', - 'Disable the execution a bugfixscript for Internet Explorer 5.5 and higher to show transparency in PNG-images?' - ); - - create_check_box( - 'Show page generation time', - 'show_generation_time', - 'Show page generation time on the bottom of the page?' + $GLOBALS['settings'] = array( + 'prefssection' => array( + 'type' => 'section', + 'title' => 'Preferences for the jerry template set', + 'xmlrpc' => False, + 'admin' => False + ), + 'start_and_logout_icons' => array( + 'type' => 'select', + 'label' => 'Show home and logout button in main application bar?', + 'name' => 'start_and_logout_icons', + 'values' => $start_and_logout_icons, + 'help' => 'When you say yes the home and logout buttons are presented as applications in the main top applcation bar.', + 'xmlrpc' => False, + 'admin' => False + ), + 'max_icons' => array( + 'type' => 'input', + 'label' => 'Max number of icons in navbar', + 'name' => 'max_icons', + 'help' => 'How many icons should be shown in the navbar (top of the page). Additional icons go into a kind of pulldown menu, callable by the icon on the far right side of the navbar.', + 'default' => '', + 'size' => 3, + 'xmlrpc' => False, + 'admin' => False + ), + 'auto_hide_sidebox' => array( + 'type' => 'check', + 'label' => 'Autohide Sidebox menu\'s', + 'name' => 'auto_hide_sidebox', + 'help' => 'Automatically hide the Sidebox menu\'s?', + 'xmlrpc' => False, + 'admin' => False + ), + 'click_or_onmouseover' => array( + 'type' => 'select', + 'label' => 'Click or Mouse Over to show menus', + 'name' => 'click_or_onmouseover', + 'values' => $click_or_onmouseover, + 'help' => 'Click or Mouse Over to show menus?', + 'xmlrpc' => False, + 'admin' => False + ), + 'disable_slider_effects' => array( + 'type' => 'check', + 'label' => 'Disable slider effects', + 'name' => 'disable_slider_effects', + 'help' => 'Disable the animated slider effects when showing or hiding menus in the page? Opera and Konqueror users will probably must want this.', + 'xmlrpc' => False, + 'admin' => False + ), + 'disable_pngfix' => array( + 'type' => 'check', + 'label' => 'Disable Internet Explorer png-image-bugfix', + 'name' => 'disable_pngfix', + 'help' => 'Disable the execution a bugfixscript for Internet Explorer 5.5 and higher to show transparency in PNG-images?', + 'xmlrpc' => False, + 'admin' => False + ), + 'show_generation_time' => array( + 'type' => 'check', + 'label' => 'Show page generation time', + 'name' => 'show_generation_time', + 'help' => 'Show page generation time on the bottom of the page?', + 'xmlrpc' => False, + 'admin' => False + ) );