Commit fceda630a4ec80d7ad519c07f54bd410c95dd059
1 parent
9392f75f
big commti
Showing
4 changed files
with
7 additions
and
7 deletions
Show diff stats
frontend/config/main.php
@@ -75,8 +75,8 @@ return [ | @@ -75,8 +75,8 @@ return [ | ||
75 | 'news/<translit:\w+>-<id:\d+>' => 'news/show', | 75 | 'news/<translit:\w+>-<id:\d+>' => 'news/show', |
76 | 'brands' => 'catalog/brands', | 76 | 'brands' => 'catalog/brands', |
77 | 'brands/<brand:[\w\-]+>' => 'catalog/brand', | 77 | 'brands/<brand:[\w\-]+>' => 'catalog/brand', |
78 | - 'blog' => 'articles/index', | ||
79 | - 'blog/<translit:[\w\-]+>-<id:\d+>' => 'articles/show', | 78 | + 'articles' => 'articles/index', |
79 | + 'articles/<translit:[\w\-]+>-<id:\d+>' => 'articles/show', | ||
80 | 'event' => 'event/index', | 80 | 'event' => 'event/index', |
81 | 'event/sale/<percent:[\d\-]+>' => 'event/sale', | 81 | 'event/sale/<percent:[\d\-]+>' => 'event/sale', |
82 | 'event/<alias:[\w\-]+>' => 'event/show', | 82 | 'event/<alias:[\w\-]+>' => 'event/show', |
frontend/views/articles/index.php
@@ -10,7 +10,7 @@ | @@ -10,7 +10,7 @@ | ||
10 | CommentAsset::register($this); | 10 | CommentAsset::register($this); |
11 | ?> | 11 | ?> |
12 | <?php | 12 | <?php |
13 | - $this->title = 'Блог'; | 13 | + $this->title = 'Статьи'; |
14 | 14 | ||
15 | 15 | ||
16 | 16 | ||
@@ -18,11 +18,11 @@ | @@ -18,11 +18,11 @@ | ||
18 | 18 | ||
19 | $this->registerMetaTag([ | 19 | $this->registerMetaTag([ |
20 | 'name' => 'description', | 20 | 'name' => 'description', |
21 | - 'content' => 'Блог', | 21 | + 'content' => 'Статьи', |
22 | ]); | 22 | ]); |
23 | $this->registerMetaTag([ | 23 | $this->registerMetaTag([ |
24 | 'name' => 'keywords', | 24 | 'name' => 'keywords', |
25 | - 'content' => 'Блог', | 25 | + 'content' => 'Статьи', |
26 | ]); | 26 | ]); |
27 | ?> | 27 | ?> |
28 | 28 |
frontend/views/articles/show.php
@@ -8,7 +8,7 @@ use yii\widgets\Breadcrumbs; | @@ -8,7 +8,7 @@ use yii\widgets\Breadcrumbs; | ||
8 | $this->title = $news->meta_title; | 8 | $this->title = $news->meta_title; |
9 | $this->params['seo']['title'] = !empty($this->title) ?$this->title :$news->title; | 9 | $this->params['seo']['title'] = !empty($this->title) ?$this->title :$news->title; |
10 | $this->registerMetaTag(['name' => 'description', 'content' => $news->meta_description]); | 10 | $this->registerMetaTag(['name' => 'description', 'content' => $news->meta_description]); |
11 | -$this->params[ 'breadcrumbs' ][] = ['label'=>'Блог','url'=>['/blog']]; | 11 | +$this->params[ 'breadcrumbs' ][] = ['label'=>'Статьи','url'=>['/articles']]; |
12 | $this->params[ 'breadcrumbs' ][] = $news->title; | 12 | $this->params[ 'breadcrumbs' ][] = $news->title; |
13 | ?> | 13 | ?> |
14 | 14 |
frontend/widgets/Seo.php
@@ -109,7 +109,7 @@ class Seo extends Widget | @@ -109,7 +109,7 @@ class Seo extends Widget | ||
109 | return $default; | 109 | return $default; |
110 | 110 | ||
111 | 111 | ||
112 | - } else if($this->checkFilter($filter)){ | 112 | + } else if($this->checkFilter($filter) || isset($filter['brands']) && count($filter['brands']) >= 1){ |
113 | $array = $this->arrayBuilder($filter); | 113 | $array = $this->arrayBuilder($filter); |
114 | return $this->getNameString($array); | 114 | return $this->getNameString($array); |
115 | } | 115 | } |