Server IP : 80.87.202.40 / Your IP : 216.73.216.169 Web Server : Apache System : Linux rospirotorg.ru 5.14.0-539.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Dec 5 22:26:13 UTC 2024 x86_64 User : bitrix ( 600) PHP Version : 8.2.27 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /home/bitrix/ext_www/rospirotorg.ru/bitrix/components/bitrix/advertising.banner/ |
Upload File : |
<? if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true)die(); if (!CModule::IncludeModule("advertising")) return; $arTypeFields = Array("-" =>GetMessage("ADV_SELECT_DEFAULT")); $res = CAdvType::GetList('', '', Array("ACTIVE" => "Y")); while (is_object($res) && $ar = $res->GetNext()) { $arTypeFields[$ar["SID"]] = "[".$ar["SID"]."] ".$ar["NAME"]; } $arComponentParameters = array( "GROUPS" => array( "SLIDE_SETTINGS" => array("NAME" => GetMessage("ADV_SLIDE_SETTINGS"), "SORT" => "150"), "NAV_SETTINGS" => array("NAME" => GetMessage("ADV_NAV_SETTINGS"), "SORT" => "250") ), "PARAMETERS" => array( "TYPE" => Array( "NAME" => GetMessage("ADV_TYPE"), "PARENT" => "BASE", "TYPE" => "LIST", "DEFAULT" => "", "VALUES" => $arTypeFields, "ADDITIONAL_VALUES" => "N" ), "NOINDEX" => array( "NAME" => GetMessage("adv_banner_params_noindex"), "PARENT" => "BASE", "TYPE" => "CHECKBOX", "DEFAULT" => "N", ), "QUANTITY" => array( "NAME" => GetMessage("ADV_QUANTITY"), "PARENT" => "BASE", "TYPE" => "STRING", "DEFAULT" => "1" ), "CACHE_TIME" => Array("DEFAULT"=>"0"), ) ); if ($templateProperties['NEED_TEMPLATE'] == 'Y') { $templates = array('-' => GetMessage("ADV_NOT_SELECTED")); $arTemplates = CComponentUtil::GetTemplatesList('bitrix:advertising.banner.view'); if (is_array($arTemplates) && !empty($arTemplates)) { foreach ($arTemplates as $template) $templates[$template['NAME']] = $template['NAME']; } $arComponentParameters['PARAMETERS']['DEFAULT_TEMPLATE'] = array( "NAME" => GetMessage("ADV_DEFAULT_TEMPLATE"), "PARENT" => "BASE", "TYPE" => "LIST", "VALUES" => $templates, "DEFAULT" => '', "ADDITIONAL_VALUES" => "N" ); unset($templateProperties['NEED_TEMPLATE']); }