From c0c4099e29e90aba20b0f5ee1fa08dfa16b8b9ad Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Thu, 21 Jan 2016 10:19:10 +0000 Subject: [PATCH] Mobile theme W.I.P.: - Add mail display dialog - Style details widget for mobile theme - Implement fixed actions for mail display --- mail/inc/class.mail_ui.inc.php | 7 ++ mail/templates/mobile/display.xet | 84 +++++++++++++++++++++++ mail/templates/pixelegg/app.css | 102 +++++++++++++++++++++++++++- mail/templates/pixelegg/app.less | 107 +++++++++++++++++++++++++++++- pixelegg/css/mobile.css | 30 ++++++++- pixelegg/css/mobile.less | 41 ++++++++++-- 6 files changed, 362 insertions(+), 9 deletions(-) create mode 100644 mail/templates/mobile/display.xet diff --git a/mail/inc/class.mail_ui.inc.php b/mail/inc/class.mail_ui.inc.php index 8b88a89161..60b836e21e 100644 --- a/mail/inc/class.mail_ui.inc.php +++ b/mail/inc/class.mail_ui.inc.php @@ -1946,6 +1946,13 @@ class mail_ui ); $actions['tracker']['toolbarDefault'] = true; $actions['forward']['toolbarDefault'] = true; + if (html::$ua_mobile) { + foreach($actions as $key => $action) + { + if (in_array($key,array('calendar', 'infolog' ,'tracker' ))) $actions[$key]['toolbarDefault'] = false; + $actions['save']['children']['save2disk']['toolbarDefault'] = $actions['print']['toolbarDefault'] = false; + } + } $compose = $actions['composeasnew']; unset($actions['composeasnew']); $actions = array_reverse($actions,true); diff --git a/mail/templates/mobile/display.xet b/mail/templates/mobile/display.xet new file mode 100644 index 0000000000..b681b63293 --- /dev/null +++ b/mail/templates/mobile/display.xet @@ -0,0 +1,84 @@ + + + + +