$whe_city = $enum_fields['~VALUE']; $_GET['whe_city'] = $city; if($ar_sect_sport['IPROPERTY_VALUES']['SECTION_PAGE_TITLE'] != '') $APPLICATION->SetTitle($ar_sect_sport['IPROPERTY_VALUES']['SECTION_PAGE_TITLE']); else $APPLICATION->SetTitle($ar_sect_sport['NAME']); if($ar_sect_sport['IPROPERTY_VALUES']['SECTION_META_DESCRIPTION']!='') $APPLICATION->SetPageProperty('Description', ''.$ar_sect_sport['IPROPERTY_VALUES']['SECTION_META_DESCRIPTION']); ?> <? $category_section = cat_section($whe_city,$iblok_id); uasort($category_section, "sort_c"); ?> <? $type_c = array(); $type_a = array(); foreach($category_section as $item) { $type = type($item,$whe_city,$iblok_id); uasort($type, "sort_p"); foreach($type as $i) { if (in_array($i['type'], $type_c, true) != true) { array_push($type_c ,$i); } }
if($enum_fields = $property_enums->GetNext()) $whe_city = $enum_fields['~VALUE']; if($val!='') { $property_enums = CIBlockPropertyEnum::GetList(Array("DEF"=>"DESC", "SORT"=>"ASC"), Array("IBLOCK_ID"=>2, "XML_ID"=>$val)); if($enum_fields = $property_enums->GetNext()) $val = $enum_fields['~VALUE']; } global $arrFilter; $arrFilter = Array( "IBLOCK_ID"=>'2', "PROPERTY_params_VALUE" => $whe_city, ); $category_section = cat_section($whe_city,2); uasort($category_section, "sort_c"); if($val!='') { $arrFilter["PROPERTY_".$name_fil."_VALUE"] = $val; } if($val == 'Событие') { $arrFilter['>=DATE_ACTIVE_TO'] = $date; } //Получаем список банеров для данной категории $baner_cat = baner_cat($whe_city,$category); $count_b = count($baner_cat); if($count_b>3)