Author: hnategh
New Revision: 55303
URL: http://svn.stylite.de/viewvc/egroupware?rev=55303&view=rev
Log:
Mobile theme W.I.P.:
- Add list of enabled apps for mobile template as a site configuration option in admin
Modified:
trunk/admin/lang/egw_en.lang
trunk/admin/templates/default/config.tpl
trunk/jdots/inc/class.jdots_framework.inc.php
— trunk/admin/lang/egw_en.lang (original)
+++ trunk/admin/lang/egw_en.lang Tue Mar 8 10:59:18 2016
@@ -416,6 +416,7 @@
list config settings admin en List config settings
list current sessions admin en List current sessions
list of current users admin en List of current users
+list of enabled applications on mobile template (apps must be comma separated) admin en List of enabled applications on mobile template (apps must be comma separated)
log user-agent and action of changes in history-log of entries admin en Log user-agent and action of changes in history-log of entries
logged out admin en Logged out
login history admin en Login history
— trunk/admin/templates/default/config.tpl (original)
+++ trunk/admin/templates/default/config.tpl Tue Mar 8 10:59:18 2016
@@ -113,6 +113,13 @@
-
-
| {lang_List_of_enabled_applications_on_mobile_template_(apps_must_be_comma_separated)}: |
-
-
{call_jdots_framework::mobile_app_list}
-
|
-
-
| {lang_security}
|
— trunk/jdots/inc/class.jdots_framework.inc.php (original)
+++ trunk/jdots/inc/class.jdots_framework.inc.php Tue Mar 8 10:59:18 2016
@@ -873,6 +873,20 @@
{
unset($apps[‘sitemgr-link’]);
}
+
-
// enable only listed apps on site configuration for mobile
-
if (html::$ua_mobile)
-
{
-
$enabled_apps = explode(',', $GLOBALS['egw_info']['server']['fw_mobile_app_list']);
-
foreach($apps as &$app)
-
{
-
if (!in_array($app['name'], $enabled_apps) && $app['name'] != 'logout')
-
{
-
unset($apps[$app['name']]);
-
}
-
}
-
}
-
return $apps;
}
@@ -1085,4 +1099,19 @@
$GLOBALS[‘egw’]->framework->response->data($output);
}
}
+
- /**
-
- Enabled applications on mobile
-
-
- Generates input field and set values on site configuration for list of enabled
-
- applications on mobile theme.
-
-
-
@return string return DOM string for input field
- */
- static function mobile_app_list()
- {
-
$value = $GLOBALS['egw_info']['server']['fw_mobile_app_list']? $GLOBALS['egw_info']['server']['fw_mobile_app_list']:
-
'calendar,infolog,timesheet,resources,addressbook,projectmanager,tracker,mail';
-
return '<input size="60" value="'.$value.'" name="newsettings[fw_mobile_app_list]" />';
- }
}
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://makebettercode.com/inteldaal-eval
eGroupWare-cvs mailing list
eGroupWare-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/egroupware-cvs