19 parent::_actionAdministration(
'ch_chat_plus_url',
'_ch_chat_plus_setting',
'_ch_chat_plus_information',
'_ch_chat_plus_information_block');
24 $this->_oTemplate->pageStart();
30 $this->_oTemplate->pageCode(
_t(
'_ch_chat_plus_chat'),
false,
false);
36 $this->_oTemplate->displayMsg(
_t(
'_ch_chat_plus_not_configured'));
45 if (!($sLogoUrl =
$GLOBALS[
'oFunctions']->getLogoUrl())) {
46 header(
"HTTP/1.0 404 Not Found");
51 header(
"Location:" . $sLogoUrl);
57 return array(
MsgBox(
_t(
'_ch_chat_plus_not_configured')));
59 $this->_oTemplate->addCss(
'main.css');
60 $s = $this->_oTemplate->parseHtmlByName(
'chat_block.html', array(
'chat_url' =>
getParam(
'ch_chat_plus_url')));
62 return array(
$s, array (
63 _t(
'_ch_chat_plus_open_in_separate_window') => array (
64 'href' =>
getParam(
'ch_chat_plus_url'),
68 ),
false,
false,
'getChatBlockMenu');
73 $sChatUrl =
getParam(
'ch_chat_plus_url');
74 if (!
getParam(
'ch_chat_plus_helpdesk') || !$sChatUrl)
80 $aUrl = parse_url($sChatUrl);
81 $sChatUrl = $aUrl[
'scheme'] .
'://' . $aUrl[
'host'] . ($aUrl[
'port'] ?
':' . $aUrl[
'port'] :
'');
85 <!-- Start
of Rocket.Chat Livechat Script -->
86 <script
type=
"text/javascript">
87 (
function(w, d, s, u) {
88 w.RocketChat =
function(c) { w.RocketChat._.push(c) }; w.RocketChat._ = []; w.RocketChat.url = u;
89 var h = d.getElementsByTagName(s)[0], j = d.createElement(s);
90 j.async =
true; j.src =
'{$sChatUrl}/packages/rocketchat_livechat/assets/rocketchat-livechat.min.js?_=201702160944';
91 h.parentNode.insertBefore(j, h);
92 })(window,
document,
'script',
'{$sChatUrl}/livechat');
94 <!-- End
of Rocket.Chat Livechat Script -->