4use Bitrix\Conversion\DayContext;
5use Bitrix\Main\Localization\Loc;
6use Bitrix\Seo\Adv\YandexBannerTable;
8Loc::loadMessages(__FILE__);
16 $context->setAttribute(
'seo_yandex_direct_source', static::getSeoId());
24 return $session[
'BANNER_ID'] ??
null;
30 'seo_yandex_direct_source' =>
array(
34 'NAME' => Loc::getMessage(
'SEO_CONVERSION_ATTRIBUTE_YANDEX_DIRECT_NAME'),
35 'BG_COLOR' =>
'#4bbedb',
36 'GET_VALUES' =>
function (
array $ids)
39 'filter' =>
array(
"=XML_ID" => $ids),
40 'select' =>
array(
"XML_ID",
"NAME"),
41 'order' =>
array(
'NAME' =>
'ASC'),
44 $bannerList =
array();
45 while($banner =
$dbRes->fetch())
47 $bannerList[$banner[
'XML_ID']] =
array(
"NAME" => $banner[
"NAME"]);
52 'SPLIT_BY' =>
'seo_yandex_direct_source',
static onSetDayContextAttributes(DayContext $context)
static onGetAttributeTypes()
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)