59 lines
1.1 KiB
PHP
59 lines
1.1 KiB
PHP
<?php
|
|
if (!defined('B_PROLOG_INCLUDED') || B_PROLOG_INCLUDED !== true)
|
|
{
|
|
die();
|
|
}
|
|
|
|
use Bitrix\Landing\Assets;
|
|
use Bitrix\Main\Loader;
|
|
use Bitrix\Main\UI\Extension;
|
|
|
|
/** @var \CMain $APPLICATION */
|
|
|
|
if (!Loader::includeModule('landing'))
|
|
{
|
|
return;
|
|
}
|
|
|
|
$assets = Assets\Manager::getInstance();
|
|
$assets->addAsset('landing_auto_font_scale');
|
|
|
|
$APPLICATION->ShowProperty('FooterJS');
|
|
?>
|
|
|
|
</main>
|
|
<?php $APPLICATION->ShowProperty('BeforeBodyClose');?>
|
|
|
|
<?php if (\Bitrix\Landing\Connector\Mobile::isMobileHit()):
|
|
Extension::load(['mobile_tools']);
|
|
?>
|
|
<script>
|
|
|
|
if (typeof BXMPage !== 'undefined')
|
|
{
|
|
BXMPage.TopBar.title.setText('<?= htmlspecialcharsback($APPLICATION->getTitle());?>');
|
|
BXMPage.TopBar.title.show();
|
|
}
|
|
|
|
document.addEventListener('DOMContentLoaded', function ()
|
|
{
|
|
BX.bindDelegate(document.body, 'click', {tagName: 'A'}, function (event)
|
|
{
|
|
if (this.hostname === document.location.hostname)
|
|
{
|
|
let func = BX.MobileTools.resolveOpenFunction(this.href);
|
|
|
|
if (func)
|
|
{
|
|
func();
|
|
return BX.PreventDefault(event);
|
|
}
|
|
}
|
|
});
|
|
}, false);
|
|
</script>
|
|
<?php endif?>
|
|
|
|
</body>
|
|
</html>
|