libraries/MVC/BView.php
public function breadcrumbs_add_city($id) {
		bimport('regions.general');
		$bregions = BRegions::getInstance();
		$city = $bregions->city_get($id);
		if (empty($city)) {
			return false;
		}
		$region = $city->getregion();
		if (empty($region)) {
			return false;
		}
		$subcities = $region->cities_get_all();
		//
		$brouter = BRouter::getInstance();
		$url = '//' . $brouter->generateURL('regions', BLang::$langcode, array('view' => 'city', 'id' => $id));
		$name = $city->getname();
		if (!empty($subcities)) {
			$children = array();
			foreach ($subcities as $c) {
				$children[$c->id] = (object)array('active' => true, 'url' => '//' . $brouter->generateURL('regions', BLang::$langcode, array('view' => 'city', 'id' => $c->id)), 'name' => $c->getname());
			}
			return $this->breadcrumbs_add($url, $name, true, 'city', $children);
		}
		return $this->breadcrumbs_add($url, $name, true, 'city');
	}
public function breadcrumbs_add_city($id) {
		bimport('regions.general');
		$bregions = BRegions::getInstance();
		$city = $bregions->city_get($id);
		if (empty($city)) {
			return false;
		}
		$region = $city->getregion();
		if (empty($region)) {
			return false;
		}
		$subcities = $region->cities_get_all();
		//
		$brouter = BRouter::getInstance();
		$url = '//' . $brouter->generateURL('regions', BLang::$langcode, array('view' => 'city', 'id' => $id));
		$name = $city->getname();
		if (!empty($subcities)) {
			$children = array();
			foreach ($subcities as $c) {
				$children[$c->id] = (object)array('active' => true, 'url' => '//' . $brouter->generateURL('regions', BLang::$langcode, array('view' => 'city', 'id' => $c->id)), 'name' => $c->getname());
			}
			return $this->breadcrumbs_add($url, $name, true, 'city', $children);
		}
		return $this->breadcrumbs_add($url, $name, true, 'city');
	}
public function breadcrumbs_add_city ( $ id ) { bimport ( 'regions.general' ) ; $ bregions = BRegions :: getInstance ( ) ; $ city = $ bregions -> city_get ( $ id ) ; if ( empty ( $ city ) ) { return false ; } $ region = $ city -> getregion ( ) ; if ( empty ( $ region ) ) { return false ; } $ subcities = $ region -> cities_get_all ( ) ; // $ brouter = BRouter :: getInstance ( ) ; $ url = '//' . $ brouter -> generateURL ( 'regions' , BLang :: $ langcode , array ( 'view' => 'city' , 'id' => $ id ) ) ; $ name = $ city -> getname ( ) ; if ( ! empty ( $ subcities ) ) { $ children = array ( ) ; foreach ( $ subcities as $ c ) { $ children [ $ c -> id ] = ( object ) array ( 'active' => true , 'url' => '//' . $ brouter -> generateURL ( 'regions' , BLang :: $ langcode , array ( 'view' => 'city' , 'id' => $ c -> id ) ) , 'name' => $ c -> getname ( ) ) ; } return $ this -> breadcrumbs_add ( $ url , $ name , true , 'city' , $ children ) ; } return $ this -> breadcrumbs_add ( $ url , $ name , true , 'city' ) ; }
Add city breadcrumbs element

@param $id
@return bool
Add city breadcrumbs element