-
-
Notifications
You must be signed in to change notification settings - Fork 699
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Separate XMPP and offline messages leaving as features for autoamted …
…hosting
- Loading branch information
Showing
13 changed files
with
52 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
lhc_web/design/defaulttheme/tpl/lhchat/part/offline_form_disabled.tpl.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<?php | ||
/** | ||
* There can be some error message if offline form is disabled | ||
* */ | ||
$errors = array('Offline form is disabled'); | ||
?> | ||
<?php include(erLhcoreClassDesign::designtpl('lhkernel/validation_error.tpl.php'));?> |
1 change: 1 addition & 0 deletions
1
lhc_web/design/defaulttheme/tpl/lhchat/part/offline_form_pre.tpl.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<?php $chat_part_offline_form_enabled = true;?> |
7 changes: 7 additions & 0 deletions
7
lhc_web/design/defaulttheme/tpl/lhchat/part/offline_form_startchat_disabled.tpl.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<?php | ||
/** | ||
* There can be some error message if offline form is disabled | ||
* */ | ||
$errors = array('Offline form is disabled'); | ||
?> | ||
<?php include(erLhcoreClassDesign::designtpl('lhkernel/validation_error.tpl.php'));?> |
1 change: 1 addition & 0 deletions
1
lhc_web/design/defaulttheme/tpl/lhchat/part/offline_from_startchat_pre.tpl.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<?php $chat_part_offline_form_start_chat_enabled = true;?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -81,6 +81,10 @@ | |
</div> | ||
|
||
<div role="tabpanel" class="tab-pane" id="notifications"> | ||
|
||
<?php include(erLhcoreClassDesign::designtpl('lhdepartment/xmpp_enabled.tpl.php'));?> | ||
|
||
<?php if ($department_xmpp_enabled == true) : ?> | ||
<div class="row form-group"> | ||
<div class="col-xs-6"> | ||
<label><?php echo erTranslationClassLhTranslation::getInstance()->getTranslation('department/edit','XMPP recipients');?></label> | ||
|
@@ -90,10 +94,14 @@ | |
<input type="text" class="form-control" placeholder="<?php echo erTranslationClassLhTranslation::getInstance()->getTranslation('department/edit','E.g [email protected]/LiveChat');?>" title="<?php echo erTranslationClassLhTranslation::getInstance()->getTranslation('department/edit','These messages will be send as group messages');?>" name="XMPPRecipientsGroup" value="<?php echo htmlspecialchars($departament->xmpp_group_recipients);?>" /> | ||
</div> | ||
</div> | ||
<?php endif;?> | ||
|
||
<h4><?php echo erTranslationClassLhTranslation::getInstance()->getTranslation('department/edit','Inform about new chats using');?></h4> | ||
|
||
<?php if ($department_xmpp_enabled == true) : ?> | ||
<label><input type="checkbox" name="inform_options[]" value="xmp" <?php if (in_array('xmp', $departament->inform_options_array)) : ?>checked="checked"<?php endif;?> /> <?php echo erTranslationClassLhTranslation::getInstance()->getTranslation('department/edit','XMPP messages');?></label><br> | ||
<?php endif;?> | ||
|
||
<label><input type="checkbox" name="inform_options[]" value="mail" <?php if (in_array('mail', $departament->inform_options_array)) : ?>checked="checked"<?php endif;?> /> <?php echo erTranslationClassLhTranslation::getInstance()->getTranslation('department/edit','Mail messages');?></label> | ||
|
||
<div class="form-group"> | ||
|
@@ -108,7 +116,7 @@ | |
|
||
<div class="form-group"> | ||
<h4><?php echo erTranslationClassLhTranslation::getInstance()->getTranslation('department/edit','Inform then chat is accepted by one of the staff members using');?></h4> | ||
<label><input type="checkbox" name="inform_options[]" value="xmp_accepted" <?php if (in_array('xmp_accepted', $departament->inform_options_array)) : ?>checked="checked"<?php endif;?> /> <?php echo erTranslationClassLhTranslation::getInstance()->getTranslation('department/edit','XMPP messages');?></label> | ||
<?php if ($department_xmpp_enabled == true) : ?><label><input type="checkbox" name="inform_options[]" value="xmp_accepted" <?php if (in_array('xmp_accepted', $departament->inform_options_array)) : ?>checked="checked"<?php endif;?> /> <?php echo erTranslationClassLhTranslation::getInstance()->getTranslation('department/edit','XMPP messages');?></label><?php endif;?> | ||
<label><input type="checkbox" name="inform_options[]" value="mail_accepted" <?php if (in_array('mail_accepted', $departament->inform_options_array)) : ?>checked="checked"<?php endif;?> /> <?php echo erTranslationClassLhTranslation::getInstance()->getTranslation('department/edit','Mail messages');?></label> | ||
</div> | ||
|
||
|
1 change: 1 addition & 0 deletions
1
lhc_web/design/defaulttheme/tpl/lhdepartament/xmpp_enabled.tpl.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<?php $department_xmpp_enabled = true; ?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 4 additions & 0 deletions
4
lhc_web/design/defaulttheme/tpl/lhsystem/configuration_links/xmpp.tpl.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
<?php include(erLhcoreClassDesign::designtpl('lhsystem/configuration_links/xmpp_pre.tpl.php'));?> | ||
<?php if ($system_configuration_links_xmpp_enabled == true && $currentUser->hasAccessTo('lhxmp','configurexmp')) : ?> | ||
<li><a href="<?php echo erLhcoreClassDesign::baseurl('xmp/configuration')?>"><?php echo erTranslationClassLhTranslation::getInstance()->getTranslation('system/configuration','XMPP settings');?></a></li> | ||
<?php endif; ?> |
1 change: 1 addition & 0 deletions
1
lhc_web/design/defaulttheme/tpl/lhsystem/configuration_links/xmpp_pre.tpl.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<?php $system_configuration_links_xmpp_enabled = true;?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters