Ejemplo n.º 1
0
 /**
  * Get meta description
  *
  * @return string
  */
 public function getMetaDescription()
 {
     $model = $this->getModelObject();
     if ($model) {
         $result = $model->getMetaDesc() ?: $this->getDescription();
     } else {
         $result = parent::getMetaDescription();
     }
     return $result;
 }
Ejemplo n.º 2
0
 /**
  * Get meta description
  *
  * @return string
  */
 public function getMetaDescription()
 {
     $page = $this->getPage();
     // todo: rename getTeaser() to getMetaDesc()
     return $page ? $page->getTeaser() : parent::getMetaDescription();
 }
Ejemplo n.º 3
0
 /**
  * Get meta description
  *
  * @return string
  */
 public function getMetaDescription()
 {
     $model = $this->getModelObject();
     return strip_tags($model ? $model->getMetaDesc() ? $model->getMetaDesc() : $this->getDescription() : parent::getMetaDescription());
 }
Ejemplo n.º 4
0
 /**
  * Get meta description
  *
  * @return string
  */
 public function getMetaDescription()
 {
     $model = $this->getNewsMessage();
     return $model && $model->getMetaDesc() ? $model->getMetaDesc() : parent::getMetaDescription();
 }
Ejemplo n.º 5
0
Archivo: Page.php Proyecto: kingsj/core
 /**
  * Get meta description
  *
  * @return string
  * @see    ____func_see____
  * @since  1.0.0
  */
 public function getMetaDescription()
 {
     $page = $this->getPage();
     return $page ? $page->getTeaser() : parent::getMetaDescription();
 }