diff --git a/lhc_web/design/defaulttheme/tpl/lhchat/offline_form.tpl.php b/lhc_web/design/defaulttheme/tpl/lhchat/offline_form.tpl.php index 0141313984..84ffcc358f 100644 --- a/lhc_web/design/defaulttheme/tpl/lhchat/offline_form.tpl.php +++ b/lhc_web/design/defaulttheme/tpl/lhchat/offline_form.tpl.php @@ -1,3 +1,6 @@ + + +

noonline_operators_offline) : ?> noonline_operators_offline)?> @@ -93,3 +96,7 @@ + + + + diff --git a/lhc_web/design/defaulttheme/tpl/lhchat/offline_form_startchat.tpl.php b/lhc_web/design/defaulttheme/tpl/lhchat/offline_form_startchat.tpl.php index 913424e3f5..861ab2cb42 100644 --- a/lhc_web/design/defaulttheme/tpl/lhchat/offline_form_startchat.tpl.php +++ b/lhc_web/design/defaulttheme/tpl/lhchat/offline_form_startchat.tpl.php @@ -1,3 +1,7 @@ + + + + getTranslation('chat/startchat','Your request was sent!');?> @@ -76,4 +80,8 @@ + + + + \ No newline at end of file diff --git a/lhc_web/design/defaulttheme/tpl/lhchat/part/offline_form_disabled.tpl.php b/lhc_web/design/defaulttheme/tpl/lhchat/part/offline_form_disabled.tpl.php new file mode 100644 index 0000000000..900c7a55eb --- /dev/null +++ b/lhc_web/design/defaulttheme/tpl/lhchat/part/offline_form_disabled.tpl.php @@ -0,0 +1,7 @@ + + \ No newline at end of file diff --git a/lhc_web/design/defaulttheme/tpl/lhchat/part/offline_form_pre.tpl.php b/lhc_web/design/defaulttheme/tpl/lhchat/part/offline_form_pre.tpl.php new file mode 100644 index 0000000000..4fde079c09 --- /dev/null +++ b/lhc_web/design/defaulttheme/tpl/lhchat/part/offline_form_pre.tpl.php @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/lhc_web/design/defaulttheme/tpl/lhchat/part/offline_form_startchat_disabled.tpl.php b/lhc_web/design/defaulttheme/tpl/lhchat/part/offline_form_startchat_disabled.tpl.php new file mode 100644 index 0000000000..900c7a55eb --- /dev/null +++ b/lhc_web/design/defaulttheme/tpl/lhchat/part/offline_form_startchat_disabled.tpl.php @@ -0,0 +1,7 @@ + + \ No newline at end of file diff --git a/lhc_web/design/defaulttheme/tpl/lhchat/part/offline_from_startchat_pre.tpl.php b/lhc_web/design/defaulttheme/tpl/lhchat/part/offline_from_startchat_pre.tpl.php new file mode 100644 index 0000000000..0300e49a1b --- /dev/null +++ b/lhc_web/design/defaulttheme/tpl/lhchat/part/offline_from_startchat_pre.tpl.php @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/lhc_web/design/defaulttheme/tpl/lhdepartament/form.tpl.php b/lhc_web/design/defaulttheme/tpl/lhdepartament/form.tpl.php index e43d2bc910..c530537169 100644 --- a/lhc_web/design/defaulttheme/tpl/lhdepartament/form.tpl.php +++ b/lhc_web/design/defaulttheme/tpl/lhdepartament/form.tpl.php @@ -81,6 +81,10 @@

+ + + +
@@ -90,10 +94,14 @@
+

getTranslation('department/edit','Inform about new chats using');?>

+
+ +
@@ -108,7 +116,7 @@

getTranslation('department/edit','Inform then chat is accepted by one of the staff members using');?>

- +
diff --git a/lhc_web/design/defaulttheme/tpl/lhdepartament/xmpp_enabled.tpl.php b/lhc_web/design/defaulttheme/tpl/lhdepartament/xmpp_enabled.tpl.php new file mode 100644 index 0000000000..26be10a00e --- /dev/null +++ b/lhc_web/design/defaulttheme/tpl/lhdepartament/xmpp_enabled.tpl.php @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/lhc_web/design/defaulttheme/tpl/lhsystem/configuration.tpl.php b/lhc_web/design/defaulttheme/tpl/lhsystem/configuration.tpl.php index b3517ed547..44383f28d4 100644 --- a/lhc_web/design/defaulttheme/tpl/lhsystem/configuration.tpl.php +++ b/lhc_web/design/defaulttheme/tpl/lhsystem/configuration.tpl.php @@ -135,9 +135,7 @@ - hasAccessTo('lhxmp','configurexmp')) : ?> -
  • getTranslation('system/configuration','XMPP settings');?>
  • - + diff --git a/lhc_web/design/defaulttheme/tpl/lhsystem/configuration_links/xmpp.tpl.php b/lhc_web/design/defaulttheme/tpl/lhsystem/configuration_links/xmpp.tpl.php new file mode 100644 index 0000000000..78611032a7 --- /dev/null +++ b/lhc_web/design/defaulttheme/tpl/lhsystem/configuration_links/xmpp.tpl.php @@ -0,0 +1,4 @@ + +hasAccessTo('lhxmp','configurexmp')) : ?> +
  • getTranslation('system/configuration','XMPP settings');?>
  • + \ No newline at end of file diff --git a/lhc_web/design/defaulttheme/tpl/lhsystem/configuration_links/xmpp_pre.tpl.php b/lhc_web/design/defaulttheme/tpl/lhsystem/configuration_links/xmpp_pre.tpl.php new file mode 100644 index 0000000000..5252ca3ca4 --- /dev/null +++ b/lhc_web/design/defaulttheme/tpl/lhsystem/configuration_links/xmpp_pre.tpl.php @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/lhc_web/lib/core/lhxmp/lhxmp.php b/lhc_web/lib/core/lhxmp/lhxmp.php index 6e8edc6575..2a4e81670d 100644 --- a/lhc_web/lib/core/lhxmp/lhxmp.php +++ b/lhc_web/lib/core/lhxmp/lhxmp.php @@ -174,6 +174,9 @@ public static function sendXMPMessage($chat, $params = array()) { $data = (array) erLhcoreClassModelChatConfig::fetch('xmp_data')->data; + // Allows extension to override xmpp settings, let say disable it :) + erLhcoreClassChatEventDispatcher::getInstance()->dispatch('xml.send_xmp_message',array('params' => & $data)); + $templateMessage = 'xmp_message'; if (isset($params['template'])) { $templateMessage = $params['template']; diff --git a/lhc_web/modules/lhxmp/configuration.php b/lhc_web/modules/lhxmp/configuration.php index c2c04508f9..e353d2fc11 100644 --- a/lhc_web/modules/lhxmp/configuration.php +++ b/lhc_web/modules/lhxmp/configuration.php @@ -1,5 +1,7 @@ dispatch('xmp.configuration', array()); + $tpl = erLhcoreClassTemplate::getInstance( 'lhxmp/xmp.tpl.php'); $xmpData = erLhcoreClassModelChatConfig::fetch('xmp_data');