Разработка доски объявлений под ключ › Boxcode › Стили, Дизайн, Шаблоны (front-end) › Нужно выводить Гео выбор в title страницы Boxcode 8.4 помогите если можете › Ответ в теме: Нужно выводить Гео выбор в title страницы Boxcode 8.4 помогите если можете
04.12.2016 в 20:17
#1315

Хранитель
аа..У вас 8 версия ..
ТОгда так пробуйте
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 |
$name_ch_country = ""; $name_ch_region = ""; $name_ch_city = ""; global $obj_geoData; if ( NUM_COUNTRY == 0 ) { $mas_country = $obj_geoData->selectAllCountry(); if ( $this->user_view_country > 0 ) $name_ch_country=$mas_country[$this->user_view_country]["name"]; } if ( $masConfig["NUM_REGION"] == 0 && ( $masConfig["NUM_COUNTRY"] != 0 || $this->user_view_country > 0 ) ) { $mas_region = $obj_geoData->selectRegion( $masConfig["NUM_COUNTRY"] != 0 ? $masConfig["NUM_COUNTRY"] : $this->user_view_country); if ( $this->user_view_region > 0 ) { $name_ch_region=', '.$mas_region[$this->user_view_region]["name"]; } } if ( $masConfig["NUM_REGION"] != 0 || $this->user_view_region > 0 ) { $mas_city = $obj_geoData->selectCity($masConfig["NUM_REGION"] != 0 ? $masConfig["NUM_REGION"] : $this->user_view_region); if ( $this->user_view_city > 0 ) { $name_ch_city=', '.$mas_city[$this->user_view_city]["name"]; } } $t_geo=$name_ch_country.$name_ch_region.$name_ch_city; $title="Все объявления ".($t_geo?" - ".$t_geo:""); $title_text="Все объявления ".($t_geo?" - ".$t_geo:""); |