本文整理汇总了PHP中Bitrix\Main\Localization\Loc::getDefaultLang方法的典型用法代码示例。如果您正苦于以下问题:PHP Loc::getDefaultLang方法的具体用法?PHP Loc::getDefaultLang怎么用?PHP Loc::getDefaultLang使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Bitrix\Main\Localization\Loc
的用法示例。
在下文中一共展示了Loc::getDefaultLang方法的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: eventHandler
public static function eventHandler()
{
if(
Option::get('main', 'vendor', '') == '1c_bitrix'
&& Loc::getDefaultLang(LANGUAGE_ID) == 'ru'
)
{
return array(
"TABSET" => "seo_adv",
"Check" => array(__CLASS__, 'checkFields'),
"Action" => array(__CLASS__, 'saveData'),
"GetTabs" => array(__CLASS__, 'getTabs'),
"ShowTab" => array(__CLASS__, 'showTab'),
);
}
}
示例2: getMessage
echo getMessage('SEC_OTP_DESCRIPTION_INTRO_TITLE');
?>
</h3>
<div style="float: left; margin-right: 20px">
<div style="-webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; border: 2px solid #e0e3e5; border-radius: 2px; height: 156px; width: 156px; background: white url(/bitrix/images/security/etoken_pass.png?v2) no-repeat center center;"></div>
</div>
<div>
<?php
echo IsModuleInstalled('intranet') ? getMessage('SEC_OTP_DESCRIPTION_INTRO_INTRANET') : getMessage('SEC_OTP_DESCRIPTION_INTRO_SITE');
?>
</div>
<?php
if (in_array(LANGUAGE_ID, array('en', 'ru', 'de'), true)) {
$imageLanguage = LANGUAGE_ID;
} else {
$imageLanguage = \Bitrix\Main\Localization\Loc::getDefaultLang(LANGUAGE_ID);
}
?>
<h3 style="clear:both"><br><?php
echo getMessage('SEC_OTP_DESCRIPTION_USING_TITLE');
?>
</h3>
<div style="float: left; margin-right: 20px">
<div style="-webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; border: 2px solid #e0e3e5; border-radius: 2px; padding: 5px 10px; background: white; height: 150px;">
<div style="float: left; background: url(/bitrix/images/security/<?php
echo $imageLanguage;
?>
_login_step0.png) no-repeat top right; width: 220px; height: 120px; padding-top: 20px;" ><?php
echo getMessage('SEC_OTP_DESCRIPTION_USING_STEP_0');
?>
</div>
示例3: array
* @global CAdminMenu $this
*/
use \Bitrix\Seo\Adv;
use \Bitrix\Seo\Engine;
use \Bitrix\Main\Localization\Loc;
if($APPLICATION->GetGroupRight("seo") > "D")
{
if(\Bitrix\Main\ModuleManager::isModuleInstalled('seo'))
{
IncludeModuleLangFile(__FILE__);
$bShowYandexServices =
COption::GetOptionString('main', 'vendor', '') == '1c_bitrix'
&& Loc::getDefaultLang(LANGUAGE_ID) == 'ru';
$aMenu = array(
array(
"parent_menu" => "global_menu_services",
"section" => "seo",
"sort" => 80,
"text" => Loc::getMessage("SEO_MENU_MAIN"),
"title" => Loc::getMessage("SEO_MENU_MAIN_TITLE"),
"icon" => "seo_menu_icon",
"page_icon" => "seo_page_icon",
"module_id" => "seo",
"items_id" => "menu_seo",
"items" => array(),
)
);
示例4: array
/** @var string $componentPath */
/** @var CBitrixComponent $component */
$folder = \Bitrix\Disk\Folder::loadById($arResult['VARIABLES']['FOLDER_ID']);
switch (LANGUAGE_ID) {
case 'en':
case 'ru':
case 'ua':
case 'de':
case 'br':
case 'la':
case 'sc':
case 'tc':
$bannerName = 'disk_banner2_' . LANGUAGE_ID . '.png';
break;
default:
$bannerName = 'disk_banner2_' . Loc::getDefaultLang(LANGUAGE_ID) . '.png';
break;
}
$pageId = "user_files";
include "util_menu.php";
include "util_profile.php";
?>
<div class="bx-disk-container posr" id="bx-disk-container">
<table style="width: 100%;" cellpadding="0" cellspacing="0">
<tr>
<td>
<div class="bx-disk-interface-toolbar-container">
<?php
$APPLICATION->IncludeComponent('bitrix:disk.folder.toolbar', '', array('STORAGE' => $arResult['VARIABLES']['STORAGE'], 'FOLDER' => $folder, 'URL_TO_TRASHCAN_LIST' => CComponentEngine::makePathFromTemplate($arResult['PATH_TO_USER_TRASHCAN_LIST'], array('TRASH_PATH' => '', 'user_id' => $arResult['VARIABLES']['user_id'])), 'URL_TO_FOLDER_LIST' => CComponentEngine::makePathFromTemplate($arResult['PATH_TO_USER_DISK'], array('PATH' => '', 'user_id' => $arResult['VARIABLES']['user_id'])), 'PATH_TO_EXTERNAL_LINK_LIST' => CComponentEngine::makePathFromTemplate($arResult['PATH_TO_USER_EXTERNAL_LINK_LIST'], array('user_id' => $arResult['VARIABLES']['user_id'])), 'PATH_TO_FOLDER_LIST' => CComponentEngine::MakePathFromTemplate($arResult['PATH_TO_USER_DISK'], array('user_id' => $arResult['VARIABLES']['user_id'])), 'PATH_TO_FOLDER_VIEW' => CComponentEngine::MakePathFromTemplate($arResult['PATH_TO_USER_DISK_FILE'], array('user_id' => $arResult['VARIABLES']['user_id'])), 'PATH_TO_FILE_VIEW' => CComponentEngine::MakePathFromTemplate($arResult['PATH_TO_USER_DISK_FILE'], array('user_id' => $arResult['VARIABLES']['user_id'])), 'PATH_TO_TRASHCAN_LIST' => CComponentEngine::makePathFromTemplate($arResult['PATH_TO_USER_TRASHCAN_LIST'], array('user_id' => $arResult['VARIABLES']['user_id'])), 'RELATIVE_PATH' => $arResult['VARIABLES']['RELATIVE_PATH'], 'RELATIVE_ITEMS' => $arResult['VARIABLES']['RELATIVE_ITEMS'], 'TYPE' => 'list'), $component);
?>
</div>
示例5:
/** @global CDatabase $DB */
/** @var CBitrixComponentTemplate $this */
/** @var string $templateName */
/** @var string $templateFile */
/** @var string $templateFolder */
/** @var string $componentPath */
/** @var \Bitrix\Disk\Internals\BaseComponent $component */
switch (LANGUAGE_ID) {
case 'en':
case 'ru':
case 'ua':
case 'de':
$langId = LANGUAGE_ID;
break;
default:
$langId = Loc::getDefaultLang(LANGUAGE_ID);
break;
}
?>
<div class="bx-text-block bx-disk-text-block">
<h3 class="bx-text-title"><?php
echo Loc::getMessage('DISK_HELP_0');
?>
</h3>
<p class="bx-text-paragraph"><?php
echo Loc::getMessage('DISK_HELP_1');
?>
</p>
</div>
<div class="bx-text-block bx-disk-text-block">
示例6: GetMessage
echo $b24Languages["la"];
?>
", "tc": "<?php
echo $b24Languages["tc"];
?>
", "sc": "<?php
echo $b24Languages["sc"];
?>
", "br": "<?php
echo $b24Languages["br"];
?>
"}'>
<span class="bx-lang-btn-icon"></span>
</span>
<a id="bitrix24-logo" class="bitrix24-logo-<?php
echo LANGUAGE_ID == "ua" ? LANGUAGE_ID : \Bitrix\Main\Localization\Loc::getDefaultLang(LANGUAGE_ID);
?>
" href="<?php
echo GetMessage("BITRIX24_URL");
?>
"></a>
<?php
}
?>
<span class="bitrix24-copyright"><?php
echo GetMessage("BITRIX24_COPYRIGHT2", array("#CURRENT_YEAR#" => date("Y")));
?>
</span>
</span>
<?php
if (IsModuleInstalled("bitrix24")) {
示例7: GetMessage
</div>
<?php
}
if ($not_show_links != "Y") {
?>
<a class="login-popup-link login-popup-forget-pas" href="javascript:void(0)" onclick="BX.adminLogin.toggleAuthForm('forgot_password')"><?php
echo GetMessage("AUTH_FORGOT_PASSWORD_2");
?>
</a>
<?php
}
?>
<?php
if ($authLink) {
$lang = LANGUAGE_ID == 'ua' ? LANGUAGE_ID : \Bitrix\Main\Localization\Loc::getDefaultLang(LANGUAGE_ID);
?>
<div class="login-popup-field login-auth-serv-icons">
<a href="" class="login-ss-button bitrix24net-button bitrix24net-button-ru"></a>
</div>
<div class="login-popup-network-block">
<span class="login-popup-network-label"><?php
echo GetMessage("AUTH_NW_SECTION");
?>
</span>
<span class="login-popup-network-btn login-popup-network-btn-<?php
echo $lang;
?>
" onclick="BX.util.popup('<?php
echo CUtil::JSEscape($authLink);
?>
示例8: strtolower
/** @var CBitrixComponentTemplate $this */
/** @var string $templateName */
/** @var string $templateFile */
/** @var string $templateFolder */
/** @var string $componentPath */
/** @var \Bitrix\Disk\Internals\BaseComponent $component */
use Bitrix\Main\Localization\Loc;
switch (strtolower(LANGUAGE_ID)) {
case 'en':
case 'de':
case 'ru':
case 'ua':
$langForBanner = strtolower(LANGUAGE_ID);
break;
default:
$langForBanner = Loc::getDefaultLang(LANGUAGE_ID);
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="windows-1251">
<title><?php
echo Loc::getMessage('DISK_EXT_LINK_TITLE');
?>
</title>
<link rel="stylesheet" href="<?php
echo $this->getFolder();
?>
/style.css">
</head>
示例9: IncludeModuleLangFile
<?php
/**
* Bitrix vars
* @global CMain $APPLICATION
* @global CAdminMenu $this
*/
use Bitrix\Seo\Adv;
use Bitrix\Seo\Engine;
use Bitrix\Main\Localization\Loc;
if ($APPLICATION->GetGroupRight("seo") > "D") {
if (\Bitrix\Main\ModuleManager::isModuleInstalled('seo')) {
IncludeModuleLangFile(__FILE__);
$bShowYandexServices = COption::GetOptionString('main', 'vendor', '') == '1c_bitrix' && Loc::getDefaultLang(LANGUAGE_ID) == 'ru';
$aMenu = array(array("parent_menu" => "global_menu_marketing", "section" => "seo", "sort" => 900, "text" => Loc::getMessage("SEO_MENU_MAIN"), "title" => Loc::getMessage("SEO_MENU_MAIN_TITLE"), "icon" => "seo_menu_icon", "page_icon" => "seo_page_icon", "module_id" => "seo", "items_id" => "menu_seo", "items" => array()));
$arEngineList = array();
$arAdvList = array();
if ($bShowYandexServices) {
$arEngineList[] = array('url' => 'seo_search_yandex.php?lang=' . LANGUAGE_ID, 'more_url' => array('seo_search_yandex_detail.php?lang=' . LANGUAGE_ID), 'text' => Loc::getMessage("SEO_MENU_YANDEX"));
$yandexAdvItem = array('url' => 'seo_search_yandex_direct.php?lang=' . LANGUAGE_ID, 'more_url' => array('seo_search_yandex_direct_edit.php?lang=' . LANGUAGE_ID, 'seo_search_yandex_direct_banner.php?lang=' . LANGUAGE_ID, 'seo_search_yandex_direct_banner_edit.php?lang=' . LANGUAGE_ID), 'text' => Loc::getMessage("SEO_MENU_YANDEX_DIRECT"), "module_id" => "seo", 'items_id' => "seo_search_adv_items", "dynamic" => true, 'items' => array());
if (method_exists($this, "IsSectionActive") && $this->IsSectionActive("seo_search_adv_items") || defined('BX_ADMIN_SEO_ADV_MENU_OPEN') && BX_ADMIN_SEO_ADV_MENU_OPEN == 1) {
if (\Bitrix\Main\Loader::includeModule('seo')) {
$yandexAdvCampaigns = array();
$engine = new Engine\YandexDirect();
$dbRes = Adv\YandexCampaignTable::getList(array('order' => array('NAME' => 'ASC'), 'filter' => array('=ENGINE_ID' => $engine->getId(), '=ACTIVE' => Adv\YandexCampaignTable::ACTIVE), 'select' => array('ID', 'NAME')));
while ($campaign = $dbRes->fetch()) {
if (method_exists($this, "IsSectionActive") && $this->IsSectionActive("seo_search_adv_items/" . $campaign['ID']) || $GLOBALS["APPLICATION"]->GetCurPage() == '/bitrix/admin/seo_search_yandex_direct_banner_edit.php' && $_REQUEST['campaign'] == $campaign['ID']) {
$yandexAdvCampaigns[$campaign['ID']] = count($yandexAdvItem['items']);
}
$yandexAdvItem['items'][] = array('url' => 'seo_search_yandex_direct_edit.php?lang=' . LANGUAGE_ID . '&ID=' . $campaign['ID'], 'more_url' => array('seo_search_yandex_direct_banner.php?lang=' . LANGUAGE_ID . '&campaign=' . $campaign['ID'], 'seo_search_yandex_direct_banner_edit.php?lang=' . LANGUAGE_ID . '&campaign=' . $campaign['ID']), 'text' => $campaign['NAME'], 'module_id' => 'seo', 'dynamic' => true, 'items_id' => "seo_search_adv_items/" . $campaign['ID'], 'items' => array());
}
示例10: array
die;
}
$pageId = "user";
include "util_menu.php";
$APPLICATION->IncludeComponent("bitrix:main.app.passwords", "", array());
if (IsModuleInstalled("intranet")) {
$request = Bitrix\Main\Context::getCurrent()->getRequest();
$downloadUrl = "http://dl.bitrix24.com/b24/bitrix24_desktop.exe";
if (stripos($request->getUserAgent(), "Macintosh") !== false) {
$downloadUrl = "http://dl.bitrix24.com/b24/bitrix24_desktop.dmg";
}
?>
<div class="bx-apps-attached-block">
<span class="bx-apps-icon download"></span> <a href="<?php
echo $downloadUrl;
?>
" style="margin-right: 20px;text-transform: uppercase;"><?php
echo GetMessage("main_app_pass_desktop");
?>
</a>
<?php
echo GetMessage("main_app_pass_mobile");
?>
<span class="bx-apps-icon iOS"></span> <a href="https://itunes.apple.com/<?php
echo \Bitrix\Main\Localization\Loc::getDefaultLang(LANGUAGE_ID);
?>
/app/bitrix24/id561683423?l=ru&ls=1&mt=8">iOS</a>
<span class="bx-apps-icon android"></span> <a href="https://play.google.com/store/apps/details?id=com.bitrix24.android">android</a>
</div>
<?php
}
示例11: array
}
}
if ($contractId == false) {
$arFields = array('ACTIVE' => 'Y', 'NAME' => 'Eshop', 'SORT' => 1000, 'DESCRIPTION' => GetMessage("CONTRACT_DESC") . " [" . WIZARD_SITE_ID . "]", 'EMAIL_COUNT' => 1, 'arrTYPE' => array('ALL'), 'arrWEEKDAY' => $arWeekday, 'arrSITE' => array(WIZARD_SITE_ID));
$contractId = CAdvContract::Set($arFields, 0, 'N');
//Types
$arTypes = array(array("SID" => "MAIN", "ACTIVE" => "Y", "SORT" => 1, "NAME" => GetMessage("DEMO_ADV_MAIN_TYPE"), "DESCRIPTION" => ""), array("SID" => "PARALLAX", "ACTIVE" => "Y", "SORT" => 2, "NAME" => GetMessage("DEMO_ADV_PARALLAX_TYPE"), "DESCRIPTION" => ""));
foreach ($arTypes as $arFields) {
$dbResult = CAdvType::GetByID($arTypes["SID"], $CHECK_RIGHTS = "N");
if ($dbResult && $dbResult->Fetch()) {
continue;
}
CAdvType::Set($arFields, "", $CHECK_RIGHTS = "N");
}
$pathToBanner = str_replace("\\", "/", dirname(__FILE__));
$lang = in_array(LANGUAGE_ID, array("ru", "en", "de")) ? LANGUAGE_ID : \Bitrix\Main\Localization\Loc::getDefaultLang(LANGUAGE_ID);
$pathToBanner = $pathToBanner . "/lang/" . $lang;
if (CModule::IncludeModule("iblock")) {
$IBLOCK_CATALOG_ID = $_SESSION["WIZARD_CATALOG_IBLOCK_ID"];
$arSectionLinks = array();
$urlTemplate = CIBlock::GetArrayById($IBLOCK_CATALOG_ID, "SECTION_PAGE_URL");
$urlTemplate = str_replace("#SITE_DIR#", WIZARD_SITE_DIR, $urlTemplate);
$dbSect = CIBlockSection::GetList(array(), array("IBLOCK_TYPE" => "catalog", "IBLOCK_ID" => $IBLOCK_CATALOG_ID, "CODE" => array("underwear", "shoes"), "IBLOCK_SITE_ID" => WIZARD_SITE_ID), false, array("SECTION_PAGE_URL"));
$dbSect->SetUrlTemplates("", $urlTemplate);
while ($arSect = $dbSect->GetNext()) {
$arSectionLinks[$arSect["CODE"]] = $arSect["SECTION_PAGE_URL"];
}
}
$arBanners = array(array("CONTRACT_ID" => $contractId, "TYPE_SID" => "MAIN", "STATUS_SID" => "PUBLISHED", "NAME" => GetMessage("DEMO_ADV_NAME"), "ACTIVE" => "Y", "arrSITE" => array(WIZARD_SITE_ID), "WEIGHT" => 200, "FIX_SHOW" => "N", "FIX_CLICK" => "Y", "AD_TYPE" => "template", "STAT_EVENT_1" => "banner", "STAT_EVENT_2" => "click", "arrWEEKDAY" => $arWeekday, "COMMENTS" => "banner for " . WIZARD_SITE_ID, "TEMPLATE" => serialize(array("NAME" => "bootstrap", "MODE" => "N", "PROPS" => array(0 => array("BANNER_NAME" => GetMessage("DEMO_ADV_1_NAME"), "BACKGROUND" => "stream", "IMG_FIXED" => "N", "LINK_URL" => $arSectionLinks["underwear"], "LINK_TITLE" => "", "LINK_TARGET" => "_self", "PRESET" => "3", "HEADING_SHOW" => "Y", "HEADING" => GetMessage("DEMO_ADV_1_NAME"), "HEADING_FONT_SIZE" => 35, "HEADING_FONT_COLOR" => "000000", "HEADING_BG_COLOR" => "FFFFFF", "HEADING_BG_OPACITY" => 20, "ANNOUNCEMENT_SHOW" => "Y", "ANNOUNCEMENT" => GetMessage("DEMO_ADV_1_ANNOUNCEMENT"), "ANNOUNCEMENT_FONT_SIZE" => "14", "ANNOUNCEMENT_FONT_COLOR" => "000000", "ANNOUNCEMENT_BG_COLOR" => "FFFFFF", "ANNOUNCEMENT_BG_OPACITY" => "100", "ANNOUNCEMENT_MOBILE_HIDE" => "N", "BUTTON" => "Y", "BUTTON_TEXT" => GetMessage("DEMO_ADV_1_BUTTON"), "BUTTON_FONT_COLOR" => "FFFFFF", "BUTTON_BG_COLOR" => "E6A323", "BUTTON_LINK_URL" => $arSectionLinks["underwear"], "BUTTON_LINK_TARGET" => "_self", "ANIMATION" => "N", "OVERLAY" => "N", "STREAM" => "https://youtu.be/h-Sw7RZc4mQ", "STREAM_MUTE" => "Y"), 1 => array("BANNER_NAME" => GetMessage("DEMO_ADV_2_NAME"), "BACKGROUND" => "image", "IMG_FIXED" => "N", "LINK_URL" => $arSectionLinks["shoes"], "LINK_TITLE" => "", "LINK_TARGET" => "_self", "PRESET" => "3", "HEADING_SHOW" => "Y", "HEADING" => GetMessage("DEMO_ADV_2_HEADING"), "HEADING_FONT_SIZE" => 30, "HEADING_FONT_COLOR" => "000000", "HEADING_BG_COLOR" => "FFFFFF", "HEADING_BG_OPACITY" => 20, "ANNOUNCEMENT_SHOW" => "Y", "ANNOUNCEMENT" => GetMessage("DEMO_ADV_2_ANNOUNCEMENT"), "ANNOUNCEMENT_FONT_SIZE" => "14", "ANNOUNCEMENT_FONT_COLOR" => "000000", "ANNOUNCEMENT_BG_COLOR" => "FFFFFF", "ANNOUNCEMENT_BG_OPACITY" => "100", "ANNOUNCEMENT_MOBILE_HIDE" => "N", "BUTTON" => "Y", "BUTTON_TEXT" => GetMessage("DEMO_ADV_2_BUTTON"), "BUTTON_FONT_COLOR" => "FFFFFF", "BUTTON_BG_COLOR" => "E6A323", "BUTTON_LINK_URL" => $arSectionLinks["shoes"], "BUTTON_LINK_TARGET" => "_self", "ANIMATION" => "N", "OVERLAY" => "N"), 2 => array("BANNER_NAME" => GetMessage("DEMO_ADV_3_NAME"), "BACKGROUND" => "image", "IMG_FIXED" => "N", "LINK_TITLE" => "", "LINK_TARGET" => "_self", "PRESET" => "3", "HEADING_SHOW" => "Y", "HEADING" => GetMessage("DEMO_ADV_3_HEADING"), "HEADING_FONT_SIZE" => 30, "HEADING_FONT_COLOR" => "000000", "HEADING_BG_COLOR" => "FFFFFF", "HEADING_BG_OPACITY" => 20, "ANNOUNCEMENT_SHOW" => "Y", "ANNOUNCEMENT" => GetMessage("DEMO_ADV_3_ANNOUNCEMENT"), "ANNOUNCEMENT_FONT_SIZE" => "14", "ANNOUNCEMENT_FONT_COLOR" => "000000", "ANNOUNCEMENT_BG_COLOR" => "FFFFFF", "ANNOUNCEMENT_BG_OPACITY" => "100", "ANNOUNCEMENT_MOBILE_HIDE" => "N", "BUTTON" => "N", "ANIMATION" => "N", "OVERLAY" => "N")))), "TEMPLATE_FILES" => array(0 => array(), 1 => array("IMG" => array("name" => "banner_shoes.jpeg", "type" => "image/jpg", "tmp_name" => $pathToBanner . "/banner_shoes.jpg", "error" => "0", "size" => @filesize($pathToBanner . "/banner_shoes.jpg"), "MODULE_ID" => "advertising")), 2 => array("IMG" => array("name" => "banner.jpeg", "type" => "image/jpg", "tmp_name" => $pathToBanner . "/banner.jpg", "error" => "0", "size" => @filesize($pathToBanner . "/banner.jpg"), "MODULE_ID" => "advertising")))), array("CONTRACT_ID" => $contractId, "TYPE_SID" => "PARALLAX", "STATUS_SID" => "PUBLISHED", "NAME" => GetMessage("DEMO_ADV_SLIDER_NAME"), "ACTIVE" => "Y", "arrSITE" => array(WIZARD_SITE_ID), "WEIGHT" => 200, "FIX_SHOW" => "N", "FIX_CLICK" => "Y", "AD_TYPE" => "template", "STAT_EVENT_1" => "banner", "STAT_EVENT_2" => "click", "arrWEEKDAY" => $arWeekday, "COMMENTS" => "banner2 for " . WIZARD_SITE_ID, "TEMPLATE" => serialize(array("NAME" => "parallax", "MODE" => "N", "PROPS" => array(0 => array("BANNER_NAME" => GetMessage("DEMO_ADV_4_NAME"), "BACKGROUND" => "image", "IMG_FIXED" => "N", "LINK_URL" => WIZARD_SITE_DIR . "about/delivery/", "LINK_TITLE" => "", "LINK_TARGET" => "_self", "PRESET" => "3", "HEADING_SHOW" => "Y", "HEADING" => GetMessage("DEMO_ADV_4_HEADING"), "HEADING_FONT_SIZE" => 30, "HEADING_FONT_COLOR" => "000000", "HEADING_BG_COLOR" => "FFFFFF", "HEADING_BG_OPACITY" => 20, "ANNOUNCEMENT_SHOW" => "Y", "ANNOUNCEMENT" => GetMessage("DEMO_ADV_4_ANNOUNCEMENT"), "ANNOUNCEMENT_FONT_SIZE" => "14", "ANNOUNCEMENT_FONT_COLOR" => "000000", "ANNOUNCEMENT_BG_COLOR" => "FFFFFF", "ANNOUNCEMENT_BG_OPACITY" => "100", "ANNOUNCEMENT_MOBILE_HIDE" => "N", "BUTTON" => "Y", "BUTTON_TEXT" => GetMessage("DEMO_ADV_4_BUTTON"), "BUTTON_FONT_COLOR" => "FFFFFF", "BUTTON_BG_COLOR" => "E6A323", "BUTTON_LINK_URL" => WIZARD_SITE_DIR . "about/delivery/", "BUTTON_LINK_TARGET" => "_self", "OVERLAY" => "N")))), "TEMPLATE_FILES" => array(array("IMG" => array("name" => "banner_parallax.jpeg", "type" => "image/jpg", "tmp_name" => $pathToBanner . "/banner_parallax.jpg", "error" => "0", "size" => @filesize($pathToBanner . "/banner_parallax.jpg"), "MODULE_ID" => "advertising")))));
foreach ($arBanners as $arFields) {
$dbResult = CAdvBanner::GetList($by, $order, array("COMMENTS" => $arFields["COMMENTS"], "COMMENTS_EXACT_MATCH" => "Y"), $is_filtered, "N");