From c31e0518915f3f9b057e1df0bb0aebd7e15ed53b Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Mon, 15 Dec 2014 10:00:57 +0000 Subject: [PATCH] Add audio effect into the common preferences in order to be able to disable/enable audio effects used in theme -Add the audio effect into common preferences -> feel and look -Add audio effect on mobile theme's menu toggle -Make mobile theme's menu swipe toggle more sensible --- pixelegg/templates/pixelegg/head_mobile.tpl | 6 +++++- preferences/inc/class.preferences_hooks.inc.php | 10 ++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/pixelegg/templates/pixelegg/head_mobile.tpl b/pixelegg/templates/pixelegg/head_mobile.tpl index f83824a878..39161be2a6 100644 --- a/pixelegg/templates/pixelegg/head_mobile.tpl +++ b/pixelegg/templates/pixelegg/head_mobile.tpl @@ -31,7 +31,11 @@
{topmenu_items}
-
+
+ +
diff --git a/preferences/inc/class.preferences_hooks.inc.php b/preferences/inc/class.preferences_hooks.inc.php index ff7d61c0fd..e3275a5c25 100644 --- a/preferences/inc/class.preferences_hooks.inc.php +++ b/preferences/inc/class.preferences_hooks.inc.php @@ -148,6 +148,16 @@ class preferences_hooks 'admin' => False, 'forced' => file_exists(EGW_SERVER_ROOT.'/pixelegg') ? 'pixelegg' : 'idots', ), + 'audio_effect'=> array( + 'type' => 'select', + 'label' => 'Audio effect', + 'name' => 'audio_effect', + 'values' => array('0'=>lang('Disable'),'1'=>lang('Enable')), + 'help' => 'Audio effect enables|disables sound effects used in the theme', + 'xmlrpc' => True, + 'admin' => False, + 'default' => '1', + ), 'navbar_format' => array( 'type' => 'select', 'label' => 'Show navigation bar as',