%PDF- %PDF-
Server IP : 37.220.80.31 / Your IP : 18.116.24.97 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/imag/24/bitrix/templates/artantiq/components/bitrix/menu/top_menu/ |
Upload File : |
<?if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true)die();?> <?php if (!empty($arResult)): ?> <div class="navigation"> <ul class="main_nav sm_text"> <?php $previousLevel = 0; ?> <?php foreach ($arResult as $arItem): ?> <?php if ($previousLevel && $arItem["DEPTH_LEVEL"] < $previousLevel): ?> <?= str_repeat("</ul></li>", ($previousLevel - $arItem["DEPTH_LEVEL"])); ?> <?php endif; ?> <?php if ($arItem["IS_PARENT"]): /* если есть дочерние элементы */ ?> <?php if ($arItem["DEPTH_LEVEL"] == 1): /* корневой элемент */ ?> <li class="main_nav__item parent"> <a href="<?= $arItem["LINK"]; ?>" class="main_nav__link<?php if ($arItem["SELECTED"]): ?> active<?php endif; ?>"><?= $arItem["TEXT"]; ?></a> <div class="dropdown_menu"><div class="container"><ul class="dropdown_menu_list"> <?php else: /* элемент второго, третьего уровня */ ?> <li class="parent"> <a href="<?= $arItem["LINK"]; ?>"><?= $arItem["TEXT"]; ?></a> <div><div><ul> <?php endif; ?> <?php else: /* если нет дочерних элементов */ ?> <?php if ($arItem["DEPTH_LEVEL"] == 1): /* корневой элемент */ ?> <li class="main_nav__item root"> <a href="<?= $arItem["LINK"]; ?>" class="main_nav__link <?php if ($arItem["SELECTED"]): ?> active<?php endif; ?>"><?= $arItem["TEXT"]; ?></a> </li> <?php else: /* элемент второго, третьего уровня */ ?> <li<?php if ($arItem["SELECTED"]): ?> class="active"<?php endif; ?>> <a href="<?= $arItem["LINK"]; ?>"><?= $arItem["TEXT"]; ?></a> </li> <?php endif; ?> <?php endif; ?> <?php $previousLevel = $arItem["DEPTH_LEVEL"]; ?> <?php endforeach; ?> <?php if ($previousLevel > 1): ?> <?= str_repeat("</div></div></ul></li>", ($previousLevel-1)); ?> <?php endif; ?> </ul> </div> <?php endif; ?> <?/* <?if (!empty($arResult)):?> <pre> <? var_dump($arResult); ?> </pre> <div class="navigation"> <ul class="main_nav"> <? foreach($arResult as $arItem): if($arParams["MAX_LEVEL"] == 1 && $arItem["DEPTH_LEVEL"] > 1) continue; ?> <?if($arItem["SELECTED"]):?> <li class="main_nav__item"><a href="<?=$arItem["LINK"]?>" class="main_nav__link active"><?=$arItem["TEXT"]?></a></li> <?else:?> <li class="main_nav__item"> <a href="<?=$arItem["LINK"]?>" class="main_nav__link"><?=$arItem["TEXT"]?></a> </li> <?endif;?> <?endforeach?> </ul> </div> <?endif?> */?>