%PDF- %PDF-
Server IP : 37.220.80.31 / Your IP : 18.226.163.167 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/modules/bitrix.eshop/install/wizards/bitrix/eshop/site/templates/eshop_bootstrap/components/bitrix/main.map/.default/ |
Upload File : |
<? if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true)die(); if (!is_array($arResult["arMap"]) || count($arResult["arMap"]) < 1) return; $arRootNode = Array(); foreach($arResult["arMap"] as $index => $arItem) { if ($arItem["LEVEL"] == 0) $arRootNode[] = $index; } $allNum = count($arRootNode); $colNum = ceil($allNum / $arParams["COL_NUM"]); ?> <div class="map-columns row"> <ul class="map-level-0"> <? $previousLevel = -1; $counter = 0; $column = 1; foreach($arResult["arMap"] as $index => $arItem):?> <?if ($arItem["LEVEL"] < $previousLevel):?> <?=str_repeat("</ul></li>", ($previousLevel - $arItem["LEVEL"]));?> <?endif?> <?if ($counter >= $colNum && $arItem["LEVEL"] == 0): $allNum = $allNum-$counter; $colNum = ceil(($allNum) / ($arParams["COL_NUM"] > 1 ? ($arParams["COL_NUM"]-$column) : 1)); $counter = 0; $column++; ?> </ul> <ul class="map-level-0"> <?endif?> <?if (array_key_exists($index+1, $arResult["arMap"]) && $arItem["LEVEL"] < $arResult["arMap"][$index+1]["LEVEL"]):?> <li><a href="<?=$arItem["FULL_PATH"]?>"><?=$arItem["NAME"]?></a><?if ($arParams["SHOW_DESCRIPTION"] == "Y" && $arItem["DESCRIPTION"] <> '') {?><div><?=$arItem["DESCRIPTION"]?></div><?}?> <ul class="map-level-<?=$arItem["LEVEL"]+1?>"> <?else:?> <li><a href="<?=$arItem["FULL_PATH"]?>"><?=$arItem["NAME"]?></a><?if ($arParams["SHOW_DESCRIPTION"] == "Y" && $arItem["DESCRIPTION"] <> '') {?><div><?=$arItem["DESCRIPTION"]?></div><?}?></li> <?endif?> <? $previousLevel = $arItem["LEVEL"]; if($arItem["LEVEL"] == 0) $counter++; ?> <?endforeach?> <?if ($previousLevel > 1)://close last item tags?> <?=str_repeat("</ul></li>", ($previousLevel-1) );?> <?endif?> </ul> </div>