Answer the question
In order to leave comments, you need to log in
Bitrix. Why does layout break after logging out?
Hello! Searched the web, but did not find the answer.
Everything is as always: everything was fine, when suddenly the layout began to break after logging out. That is, if you log in, everything is fine, but if you log out of the site's office, the layout flies, or rather, even the markup.
Problems on it - ohotaktiv.ru The
slider on the main page just disappeared, now there is a "stub" from one slide. However, if you log in, the slider works fine.
Slider template:
<? if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED !== true) die();
/** @var array $arParams */
/** @var array $arResult */
if ($arResult["ITEMS"]) { ?>
<div class="main-slider-wrap">
<div class="main-slider js-main-slider">
<? foreach($arResult["ITEMS"] as $arItem):?>
<a class="slide" href="<?= $arItem['PROPERTIES']['LINK']['VALUE'] ?>" style="background-image: url('<?=$arItem['PREVIEW_PICTURE']['SRC']?>')">
<span class="s-info">
<span class="s-title"><?= $arItem['NAME'] ?></span>
</span>
</a>
<?endforeach;?>
</div>
</div>
<? } ?>
<div class="main-slider-wrap">
<div class="bx-wrapper" style="max-width: 100%; margin: 0px auto;"><div class="bx-viewport" style="width: 100%; overflow: hidden; position: relative; height: 500px;"><div class="main-slider js-main-slider" style="width: 415%; position: relative; transition-duration: 0s; transform: translate3d(-2356px, 0px, 0px);"><a class="slide bx-clone" href="https://goo.gl/uSjEUX" style="background-image: url("//opt-1074461.ssl.1c-bitrix-cdn.ru/upload/resize_cache/iblock/ca8/1178_500_2/ca83736690d24e74fa1797f59f160325.jpg?1518188209440096"); float: left; list-style: none; position: relative; width: 1178px;">
<span class="s-info">
<span class="s-title"> </span>
</span>
</a>
<a class="slide" href="https://www.instagram.com/p/BgjA7j3BVXu/?taken-by=ohotaktiv" style="background-image: url("//opt-1074461.ssl.1c-bitrix-cdn.ru/upload/resize_cache/iblock/21f/1178_500_2/21fd0b569ad8d5f28350304736f46cb0.jpg?1521629544378921"); float: left; list-style: none; position: relative; width: 1178px;">
<span class="s-info">
<span class="s-title"> </span>
</span>
</a>
<a class="slide" href="https://goo.gl/uSjEUX" style="background-image: url("//opt-1074461.ssl.1c-bitrix-cdn.ru/upload/resize_cache/iblock/ca8/1178_500_2/ca83736690d24e74fa1797f59f160325.jpg?1518188209440096"); float: left; list-style: none; position: relative; width: 1178px;">
<span class="s-info">
<span class="s-title"> </span>
</span>
</a>
<a class="slide bx-clone" href="https://www.instagram.com/p/BgjA7j3BVXu/?taken-by=ohotaktiv" style="background-image: url("//opt-1074461.ssl.1c-bitrix-cdn.ru/upload/resize_cache/iblock/21f/1178_500_2/21fd0b569ad8d5f28350304736f46cb0.jpg?1521629544378921"); float: left; list-style: none; position: relative; width: 1178px;">
<span class="s-info">
<span class="s-title"> </span>
</span>
</a></div></div><div class="bx-controls bx-has-controls-direction"><div class="bx-controls-direction"><a class="bx-prev" href=""></a><a class="bx-next" href=""></a></div></div></div>
</div>
<div class="main-slider-wrap">
<div class="main-slider js-main-slider">
<a class="slide" href="https://www.instagram.com/p/BgjA7j3BVXu/?taken-by=ohotaktiv" style="background-image: url('//opt-1074461.ssl.1c-bitrix-cdn.ru/upload/resize_cache/iblock/21f/1178_500_2/21fd0b569ad8d5f28350304736f46cb0.jpg?1521629544378921')">
<span class="s-info">
<span class="s-title"> </span>
</span>
</a>
<a class="slide" href="https://goo.gl/uSjEUX" style="background-image: url('//opt-1074461.ssl.1c-bitrix-cdn.ru/upload/resize_cache/iblock/ca8/1178_500_2/ca83736690d24e74fa1797f59f160325.jpg?1518188209440096')">
<span class="s-info">
<span class="s-title"> </span>
</span>
</a>
</div>
</div>
Answer the question
In order to leave comments, you need to log in
Everything is as always: everything was fine, when suddenly the layout began to break after logging out.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question