/**
  * Preparing global layout
  *
  * @return $this
  */
 protected function _prepareLayout()
 {
     $title = $this->_getTitle();
     $this->_addBreadcrumbs($title);
     $this->pageConfig->getTitle()->set($title);
     return parent::_prepareLayout();
 }
예제 #2
0
 /**
  * Preparing global layout
  *
  * @return $this
  */
 protected function _prepareLayout()
 {
     $title = $this->_getTitle();
     $this->_addBreadcrumbs($title);
     $this->pageConfig->getTitle()->set($title);
     $this->pageConfig->addRemotePageAsset($this->_url->getUrl($this->getYear() . '-' . str_pad($this->getMonth(), 2, '0', STR_PAD_LEFT), \Magefan\Blog\Model\Url::CONTROLLER_ARCHIVE), 'canonical', ['attributes' => ['rel' => 'canonical']]);
     return parent::_prepareLayout();
 }
 /**
  * Preparing global layout
  *
  * @return $this
  */
 protected function _prepareLayout()
 {
     $this->_addBreadcrumbs();
     $this->pageConfig->getTitle()->set($this->_getConfigValue('title'));
     $this->pageConfig->setKeywords($this->_getConfigValue('meta_keywords'));
     $this->pageConfig->setDescription($this->_getConfigValue('meta_description'));
     return parent::_prepareLayout();
 }
예제 #4
0
 /**
  * Preparing global layout
  *
  * @return $this
  */
 protected function _prepareLayout()
 {
     $this->_addBreadcrumbs();
     $this->pageConfig->getTitle()->set($this->_getConfigValue('title'));
     $this->pageConfig->setKeywords($this->_getConfigValue('meta_keywords'));
     $this->pageConfig->setDescription($this->_getConfigValue('meta_description'));
     $this->pageConfig->addRemotePageAsset($this->_url->getBaseUrl(), 'canonical', ['attributes' => ['rel' => 'canonical']]);
     return parent::_prepareLayout();
 }
예제 #5
0
 /**
  * Preparing global layout
  *
  * @return $this
  */
 protected function _prepareLayout()
 {
     if ($tag = $this->getTag()) {
         $this->_addBreadcrumbs($tag);
         $this->pageConfig->addBodyClass('blog-tag-' . $tag->getIdentifier());
         $this->pageConfig->getTitle()->set($tag->getTitle());
         $this->pageConfig->addRemotePageAsset($tag->getTagUrl(), 'canonical', ['attributes' => ['rel' => 'canonical']]);
     }
     return parent::_prepareLayout();
 }
 /**
  * Preparing global layout
  *
  * @return $this
  */
 protected function _prepareLayout()
 {
     $category = $this->getCategory();
     $this->_addBreadcrumbs($category);
     $this->pageConfig->addBodyClass('blog-category-' . $category->getIdentifier());
     $this->pageConfig->getTitle()->set($category->getTitle());
     $this->pageConfig->setKeywords($category->getMetaKeywords());
     $this->pageConfig->setDescription($category->getMetaDescription());
     return parent::_prepareLayout();
 }
예제 #7
0
 /**
  * Preparing global layout
  *
  * @return $this
  */
 protected function _prepareLayout()
 {
     $category = $this->getCategory();
     if ($category) {
         $this->_addBreadcrumbs($category);
         $this->pageConfig->addBodyClass('blog-category-' . $category->getIdentifier());
         $this->pageConfig->getTitle()->set($category->getMetaTitle());
         $this->pageConfig->setKeywords($category->getMetaKeywords());
         $this->pageConfig->setDescription($category->getMetaDescription());
         $this->pageConfig->addRemotePageAsset($category->getCategoryUrl(), 'canonical', ['attributes' => ['rel' => 'canonical']]);
     }
     return parent::_prepareLayout();
 }