17 if (!\
Bitrix\Main\Loader::includeModule(
'bitrix24'))
22 $optPrefix =
'landing_page_';
23 $optSuffix = ($params[
'action_type'] ==
'publication') ?
'_publication' :
'';
24 $variableCode = $optPrefix . strtolower($params[
'type']) . $optSuffix;
25 $limit = (int) Feature::getVariable($variableCode);
30 'CHECK_PERMISSIONS' =>
'N',
31 '=SITE.TYPE' => $params[
'type'],
32 '!=SITE.SPECIAL' =>
'Y'
34 if ($params[
'action_type'] ==
'publication')
36 $filter[
'=ACTIVE'] =
'Y';
39 isset($params[
'filter']) &&
40 is_array($params[
'filter'])
43 $filter = array_merge(
48 $check = \Bitrix\Landing\Landing::getList([
55 if ($check && $check[
'CNT'] >= $limit)