Your IP : 216.73.216.86


Current Path : /var/www/homesaver/www/bitrix/components/bitrix/sender.start/templates/.default/
Upload File :
Current File : /var/www/homesaver/www/bitrix/components/bitrix/sender.start/templates/.default/template.php

<?
if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED !== true) die();

use Bitrix\Main\Localization\Loc;
use Bitrix\Main\UI\Extension;

/** @var CMain $APPLICATION */
/** @var array $arParams */
/** @var array $arResult */

$bodyClass = $APPLICATION->GetPageProperty("BodyClass");
$APPLICATION->SetPageProperty("BodyClass", ($bodyClass ? $bodyClass . " " : "") . "no-all-paddings no-background sender-start--modifier");
Extension::load(
	[
		"ui.icons",
		"ui.info-helper",
		'ui.feedback.form',
		'crm.ads.conversion',
		'ui.tour'
	]
);

$APPLICATION->IncludeComponent("bitrix:ui.tile.list", "", [
	'ID' => 'sender-start-helper',
	'LIST' => [],
]);

$containerId = 'sender-start-container';
?>
<div id="<?= htmlspecialcharsbx($containerId) ?>" class="sender-start-wrap">

	<? if (!empty($arResult['MESSAGES']['MAILING']['TILES'])): ?>
		<div class="sender-start-block">
			<div class="sender-start-title">
				<?= Loc::getMessage('SENDER_START_CREATE_LETTER') ?>
			</div>
			<? $APPLICATION->IncludeComponent("bitrix:ui.tile.list", "", [
				'ID' => 'sender-start-mailings',
				'LIST' => $arResult['MESSAGES']['MAILING']['TILES'],
			]); ?>
		</div>
	<? endif; ?>

	<? if (!empty($arResult['MESSAGES']['ADS']['TILES'])): ?>
		<div class="sender-start-block">
			<div class="sender-start-title">
				<?= Loc::getMessage('SENDER_START_CREATE_AUDIENCE') ?>
			</div>
			<? $APPLICATION->IncludeComponent("bitrix:ui.tile.list", "", [
				'ID' => 'sender-start-ads',
				'LIST' => $arResult['MESSAGES']['ADS']['TILES'],
			]); ?>
		</div>
	<? endif; ?>

	<? if (!empty($arResult['MESSAGES']['MARKETING']['TILES'])): ?>
		<div class="sender-start-block">
			<div class="sender-start-title">
				<?= Loc::getMessage('SENDER_START_CREATE_NEW_AD') ?>
			</div>
			<? $APPLICATION->IncludeComponent("bitrix:ui.tile.list", "", [
				'ID' => 'sender-start-marketing',
				'LIST' => $arResult['MESSAGES']['MARKETING']['TILES'],
			]); ?>
		</div>
	<? endif; ?>

	<? if (!empty($arResult['MESSAGES']['RC']['TILES'])): ?>
		<div class="sender-start-block">
			<div class="sender-start-title">
				<?= Loc::getMessage('SENDER_START_CREATE_RC') ?>
			</div>
			<? $APPLICATION->IncludeComponent("bitrix:ui.tile.list", "", [
				'ID' => 'sender-start-rc',
				'LIST' => $arResult['MESSAGES']['RC']['TILES'],
			]); ?>
		</div>
	<? endif; ?>


	<? if (!empty($arResult['MESSAGES']['TOLOKA']['TILES'])): ?>
	<?endif;?>

	<?if (!empty($arResult['MESSAGES']['CONVERSION']['TILES'])):?>
		<div class="sender-start-block">
			<div class="sender-start-title">
				<?=Loc::getMessage('SENDER_START_CREATE_FACEBOOK_CONVERSION')?>
			</div>
			<?$APPLICATION->IncludeComponent("bitrix:ui.tile.list", "", [
				'ID' => 'sender-start-conversion',
				'LIST' => $arResult['MESSAGES']['CONVERSION']['TILES'],
			]);?>
		</div>
	<?endif;?>

	<?if (!empty($arResult['MESSAGES']['YANDEX']['TILES'])):?>
		<div class="sender-start-block">
			<div class="sender-start-title">
				<?= Loc::getMessage('SENDER_START_CREATE_YANDEX') ?>
			</div>
			<? $APPLICATION->IncludeComponent("bitrix:ui.tile.list", "", [
				'ID' => 'sender-start-yandex',
				'LIST' => $arResult['MESSAGES']['YANDEX']['TILES'],
			]); ?>
		</div>
	<? endif; ?>

	<div class="sender-start-block">
		<div class="sender-start-title">
			<?= Loc::getMessage('SENDER_START_CONFIGURATION_HELP') ?>
		</div>
		<div class="ui-tile-list-wrap">
			<div data-role="tile/items" class="ui-tile-list-list">
				<div
					class="ui-tile-list-item sender-ui-tile-custom-list-item"
					style=""
					onclick="BX.UI.Feedback.Form.open(
						{
						title:'<?= CUtil::addslashes(Loc::getMessage('SENDER_START_CONFIGURATION_NEED_HELP')) ?>',
						forms: [
						{zones: ['en', 'eu', 'in', 'uk'], id: 986, lang: 'en', sec: 'bb83fq'},
						{zones: ['de'], id: 988, lang: 'de', sec: 'c59qtl'},
						{zones: ['la', 'co', 'mx'], id: 990, lang: 'es', sec: 'kqcqnn'},
						{zones: ['com.br'], id: 992, lang: 'br', sec: '74yrxg'},
						{zones: ['pl'], id: 994, lang: 'pl', sec: 'qtxmku'},
						{zones: ['ua'], id: 977, lang: 'ua', sec: '23hkre'},
						{zones: ['by'], id: 980, lang: 'by', sec: 'yfkacy'},
						{zones: ['kz'], id: 975, lang: 'kz', sec: 'z1ocbi'},
						{zones: ['ru'], id: 974, lang: 'ru', sec: 'flmbhs'},
						],
						id:'sender-configuration-help',
						portalUri: 'https://bitrix24.team'
						}
						);"
				>
			<span class="sender-ui-tile-custom-list-item-subtitle">
				<?= Loc::getMessage('SENDER_START_CONFIGURATION_HELP_ORDER') ?>
			</span>
					<button
						class="ui-btn ui-btn-primary"><?= Loc::getMessage('SENDER_START_CONFIGURATION_ORDER') ?></button>
				</div>
			</div>
		</div>
	</div>
	<script>
		BX.ready(() => {
			BX.message(<?= CUtil::phpToJsObject(Loc::loadLanguageFile(__FILE__)) ?>);
			BX.Sender.Start.init(<?= CUtil::PhpToJSObject([
				'containerId' => $containerId,
				'needShowMasterYandexInitialTour' => $arResult['SHOW_MASTER_YANDEX_INITIAL_TOUR'] ?? false,
				'masterYandexInitialTourId' => $arResult['MASTER_YANDEX_INITIAL_TOUR_ID'],
				'masterYandexInitialTourHelpdeskCode' => $arResult['MASTER_YANDEX_INITIAL_TOUR_HELPDESK_CODE'],
			]) ?>);
		});
	</script>
</div>