/** * Get meta description * * @return string */ public function getMetaDescription() { $model = $this->getModelObject(); if ($model) { $result = $model->getMetaDesc() ?: $this->getDescription(); } else { $result = parent::getMetaDescription(); } return $result; }
/** * Get meta description * * @return string */ public function getMetaDescription() { $page = $this->getPage(); // todo: rename getTeaser() to getMetaDesc() return $page ? $page->getTeaser() : parent::getMetaDescription(); }
/** * Get meta description * * @return string */ public function getMetaDescription() { $model = $this->getModelObject(); return strip_tags($model ? $model->getMetaDesc() ? $model->getMetaDesc() : $this->getDescription() : parent::getMetaDescription()); }
/** * Get meta description * * @return string */ public function getMetaDescription() { $model = $this->getNewsMessage(); return $model && $model->getMetaDesc() ? $model->getMetaDesc() : parent::getMetaDescription(); }
/** * Get meta description * * @return string * @see ____func_see____ * @since 1.0.0 */ public function getMetaDescription() { $page = $this->getPage(); return $page ? $page->getTeaser() : parent::getMetaDescription(); }