diff --git a/frontend/views/text/index.php b/frontend/views/text/index.php index 2774070..42e396a 100755 --- a/frontend/views/text/index.php +++ b/frontend/views/text/index.php @@ -1,8 +1,19 @@ title = $text->meta_title; +$this->params[ 'seo' ][ Seo::H1] = !empty($category->h1) ?$text->h1: $text->title ; +$this->params[ 'seo' ][ Seo::TITLE] = !empty($text->meta_title)? $text->meta_title : $text->title; +$this->params[ 'seo' ][ Seo::DESCRIPTION] = !empty($text->meta_description)? $text->meta_description : ''; +$this->params[ 'seo' ][ Seo::SEO_TEXT] =!empty($text->seo_text)? $text->seo_text : ''; + $this->registerMetaTag(['name' => 'description', 'content' => $text->meta_description]); $this->registerMetaTag(['name' => 'keywords', 'content' => $text->meta_keywords]); ?> @@ -10,7 +21,7 @@ $this->registerMetaTag(['name' => 'keywords', 'content' => $text->meta_keywords]