egroupware/pixelegg/hook_settings.inc.php

129 lines
3.6 KiB
PHP
Raw Normal View History

2013-11-11 19:45:33 +01:00
<?php
/**
* EGroupware: Stylite Pixelegg template
*
* @link http://www.egroupware.org
* @license http://opensource.org/licenses/gpl-license.php GPL - GNU General Public License
* @author Stefan Reinhard <stefan.reinhard@pixelegg.de>
* @package pixelegg
* @version $Id$
*/
/**
* @todo extend Stylite template preferences instead of this copy (simple include fails)
*/
$apps = $no_navbar_apps = array();
if (!$hook_data['setup']) // does not work on setup time
{
foreach(ExecMethod('pixelegg.pixelegg_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(
'#408dd2' => lang('LightBlue'),
'#679fd2' => lang('DarkBlue'),
'#B0C4DE' => lang('LightSteelBlue'),
'#20B2AA' => lang('LightSeaGreen'),
'#84CA8C' => lang('DarkGreen'),
'#b4b4b4' => lang('Gray'),
2013-11-11 19:45:33 +01:00
);
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, header, and logo');
2013-11-11 19:45:33 +01:00
}
/**
* Stylite Pixelegg template
*/
$GLOBALS['settings'] = array(
'prefssection' => array(
'type' => 'section',
'title' => lang('Preferences for the %1 template set','Pixelegg'),
'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,
),
'sidebox_custom_color' => array(
'type' => 'color',
'label' => 'Custom sidebar menu active color, defaults to above color darkened',
'no_lang' => true,
'name' => 'sidebox_custom_color',
'help' => lang('Use eg. %1 or %2','#FF0000','orange'),
'xmlrpc' => True,
'admin' => False,
),
'loginbox_custom_color' => array(
'type' => 'color',
'label' => 'Custom login box color, defaults to above color darkened',
'no_lang' => true,
'name' => 'loginbox_custom_color',
'help' => lang('Use eg. %1 or %2','#FF0000','orange'),
'xmlrpc' => True,
'admin' => False,
),
2013-11-11 19:45:33 +01:00
'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);