public function prepareMetaTags() { parent::prepareMetaTags(); if ($this->description) { $this->setMeta('description', $this->description); } elseif (isset($this->settings['subtitle'])) { $this->setMeta('description', $this->settings['subtitle']); } if ($this->title) { $this->setMeta('og:title', $this->title); } elseif (isset($this->settings['title'])) { $this->setMeta('og:title', $this->settings['title']); } }
public function prepareMetaTags() { parent::prepareMetaTags(); if ($desc = $this->object->getDescription()) { $this->setMeta('description', $desc); } $this->setMeta(array('og:title' => $this->object->getTitle(), 'og:image' => FULL_BASE_URL . '/dane/img/social/dane.jpg')); }