Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true)die();
- /** @var array $arParams */
- /** @var array $arResult */
- /** @global CMain $APPLICATION */
- /** @global CUser $USER */
- /** @global CDatabase $DB */
- /** @var CBitrixComponentTemplate $this */
- /** @var string $templateName */
- /** @var string $templateFile */
- /** @var string $templateFolder */
- /** @var string $componentPath */
- /** @var CBitrixComponent $component */
- $this->setFrameMode(true);?><?if (!empty($arResult)) { ?>
- <ul>
- <?
- $previousLevel = 0;
- foreach($arResult as $arItem) { ?>
- <? if ($previousLevel && $arItem["DEPTH_LEVEL"] < $previousLevel) { ?>
- </ul></div></div></div></div></li>
- <? } ?>
- <? if ($arItem["IS_PARENT"]) { ?>
- <? if ($arItem["DEPTH_LEVEL"] == 1) { ?>
- <li class="parent">
- <a tabindex="1" href="<?=($arItem["PARAMS"]['NO']=="Y" ? "javascript:void(0);":$arItem["LINK"])?>" <?=($arItem["PARAMS"]['NO']=="Y" ? "class='btn-no'":"")?>><?=$arItem["TEXT"]?><?=$arItem["DEPTH_LEVEL"]?> <?=($arItem["IS_PARENT"])?></a>
- <div class="second-level container">
- <div class="content">
- <div class="col col-mb-12">
- <div class="content">
- <ul class="clearfix">
- <? } ?>
- <? } else { ?>
- <li class="is_parent_else <?=$arItem["PARAMS"]["CSS"]?>"><a href="<?=($arItem["PARAMS"]['NO']=="Y" ? "javascript:void(0);":$arItem["LINK"])?>" <?=($arItem["PARAMS"]['NO']=="Y" ? "class='btn-no h4'":"")?>><?=$arItem["TEXT"]?><?=$arItem["DEPTH_LEVEL"]?> <?=($arItem["IS_PARENT"])?></a></li>
- <? } ?>
- <?$previousLevel = $arItem["DEPTH_LEVEL"];?>
- <? } ?>
- <? if ($previousLevel > 1) { ?>
- </ul></div></div></div></div></li>
- <? } ?>
- </ul>
- <? } ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement