1
0
mirror of https://github.com/EGroupware/egroupware.git synced 2024-12-25 08:09:02 +01:00
egroupware_official/jdots/hook_settings.inc.php
2015-01-21 19:49:09 +00:00

118 lines
3.2 KiB
PHP

<?php
/**
* Stylite: jdots template
*
* @link http://www.stylite.de
* @package jdots
* @author Andreas Stöckel <as@stylite.de>
* @author Ralf Becker <rb@stylite.de>
* @author Nathan Gray <ng@stylite.de>
* @license http://opensource.org/licenses/gpl-license.php GPL - GNU General Public License
* @version $Id$
*/
$apps = $no_navbar_apps = array();
if (!$hook_data['setup']) // does not work on setup time
{
foreach(ExecMethod('jdots.jdots_framework.navbar_apps') as $app => $data)
{
if (!$data['noNavbar'])
{
$apps[$app] = $data['title'];
}
else
{
$no_navbar_apps[$app] = $data['title'];
}
}
$apps += $no_navbar_apps;
unset($app); unset($data);
}
$colors = array(
'#4b89d8' => lang('dark blue'),
'#010101' => lang('black'),
'#a3620a' => lang('brown'),
'#469609' => lang('dark green'),
'#bbde62' => lang('light green'),
'#9541d6' => lang('lila'),
'#f7b21e' => lang('orange'),
'#fe6a07' => lang('dark orange'),
'#fedf9e' => lang('light orange'),
'#f06eaa' => lang('pink'),
'#ed1c24' => lang('red'),
'#fef322' => lang('yellow'),
);
asort($colors);
$colors['custom'] = lang('Custom color'); // custom allways last
$template_colors = array();
foreach($colors as $color => $label)
{
$template_colors[$color] = $label.' ('.$color.') '.lang('Sidebox and header');
$template_colors['@'.$color] = $label.' ('.$color.') '.lang('Sidebox and active tab');
}
/**
* Stylite jdots template
*/
$GLOBALS['settings'] = array(
'prefssection' => array(
'type' => 'section',
'title' => lang('Preferences for the %1 template set','Stylite'),
'no_lang'=> true,
'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,
'forced' => false,
),
'open_tabs' => array(
'type' => 'multiselect',
'label' => 'Open application tabs',
'name' => 'open_tabs',
'values' => $apps,
'help' => 'Allows to set a default or force the open application tabs.',
'xmlrpc' => True,
'admin' => False,
'default' => 'addressbook,calendar',
),
'active_tab' => array(
'type' => 'select',
'label' => 'Active application tab',
'name' => 'active_tab',
'values' => $apps,
'help' => 'Allows to set a default or force the active application tab for new logins.',
'xmlrpc' => True,
'admin' => False,
),
'template_color' => array(
'type' => 'select',
'label' => 'Template color',
'no_lang' => true,
'name' => 'template_color',
'values' => $template_colors,
'help' => 'Color used in template for active user interface elements. You need to reload (F5) after storing the preferences.',
'xmlrpc' => True,
'admin' => False,
'style' => 'width: 50%;'
),
'template_custom_color' => array(
'type' => 'color',
'label' => 'Custom color',
'no_lang' => true,
'name' => 'template_custom_color',
'help' => lang('Use eg. %1 or %2','#FF0000','orange'),
'xmlrpc' => True,
'admin' => False,
),
'navbar_format' => false, // not used in JDots (defined in common prefs)
'default_app' => false, // not used in JDots, as we can have multiple tabs open ...
);
unset($apps);