SAAS-57: Add LiveChat to Airtime Pro
Create a javascript variable to hold the client_id
This commit is contained in:
parent
2d04d7eb83
commit
764d6c3347
1 changed files with 3 additions and 1 deletions
|
@ -80,6 +80,8 @@ class Bootstrap extends Zend_Application_Bootstrap_Bootstrap
|
||||||
|
|
||||||
if (Application_Model_Preference::GetPlanLevel() != "disabled"
|
if (Application_Model_Preference::GetPlanLevel() != "disabled"
|
||||||
&& $_SERVER['REQUEST_URI'] != '/Dashboard/stream-player') {
|
&& $_SERVER['REQUEST_URI'] != '/Dashboard/stream-player') {
|
||||||
|
$client_id = Application_Model_Preference::GetClientId();
|
||||||
|
$view->headScript()->appendScript("var livechat_client_id = $client_id;");
|
||||||
$view->headScript()->appendFile($baseUrl . '/js/airtime/common/livechat.js', 'text/javascript');
|
$view->headScript()->appendFile($baseUrl . '/js/airtime/common/livechat.js', 'text/javascript');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue