1
0
mirror of synced 2024-11-25 14:56:09 +03:00
bitrix-module/intaro.retailcrm/classes/general/consultant/RetailCrmOnlineConsultant.php
2020-11-24 12:14:26 +03:00

27 lines
571 B
PHP

<?php
/**
* class RetailCrmOnlineConsultant
*/
class RetailCrmOnlineConsultant
{
/**
* Add a script of online consultant
*
* @return bool
*/
public static function add()
{
if (RetailcrmConfigProvider::isOnlineConsultantEnabled() && ADMIN_SECTION !== true) {
\Bitrix\Main\Page\Asset::getInstance()->addString(
RetailcrmConfigProvider::getOnlineConsultantScript(),
true
);
return true;
} else {
return false;
}
}
}