File manager - Edit - /home/c14075/dragmet-ural.ru/www/bitrix/templates/aspro_next/components/bitrix/menu/top/result_modifier.php
Back
<?$arResult = CNext::getChilds($arResult); global $arRegion, $arTheme; if($arResult){ foreach($arResult as $key=>$arItem) { if(isset($arItem["PARAMS"]["ONLY_MOBILE"]) && $arItem["PARAMS"]["ONLY_MOBILE"]=="Y") { unset($arResult[$key]); continue; } if(isset($arItem['CHILD'])) { foreach($arItem['CHILD'] as $key2=>$arItemChild) { if(isset($arItemChild['PARAMS']) && $arRegion && $arTheme['USE_REGIONALITY']['VALUE'] === 'Y' && $arTheme['USE_REGIONALITY']['DEPENDENT_PARAMS']['REGIONALITY_FILTER_ITEM']['VALUE'] === 'Y') { // filter items by region if(isset($arItemChild['PARAMS']['LINK_REGION'])) { if($arItemChild['PARAMS']['LINK_REGION']) { if(!in_array($arRegion['ID'], $arItemChild['PARAMS']['LINK_REGION'])) unset($arResult[$key]['CHILD'][$key2]); } else unset($arResult[$key]['CHILD'][$key2]); } } } } } } ?>
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Generation time: 0.25 |
proxy
|
phpinfo
|
Settings