Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function getSocialTitle()
- {
- $location = array();
- if (issetModule('location')) {
- // if (isset($ad->locCountry) && $ad->locCountry) {
- // $location[] = $ad->locCountry->getStrByLang('name');
- //}
- // if(isset($ad->locRegion) && $ad->locRegion) {
- // $location[] = $ad->locRegion->getStrByLang('name');
- // }
- if (isset($this->locCity) && $this->locCity) {
- $location[] = $this->locCity->getStrByLang('name');
- }
- } else {
- if (isset($this->city) && $this->city) {
- $location[] = $this->city->getStrByLang('name');
- }
- }
- $title = HApartment::getNameByType($this->type);
- if (isset($this->objType) && $this->objType)
- $title .= ', ' . $this->objType->getStrByLang('name');
- $title .= ', ' . trim(strip_tags($this->getPrettyPrice(false)));
- $title .= ', ' . implode(', ', $location);
- $title .= ', ' . $this->getTitle();
- return $title;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement