1
0
mirror of synced 2025-03-04 14:53:13 +03:00

27 lines
571 B
PHP
Raw Normal View History

2020-11-24 12:14:26 +03:00
<?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;
}
}
}