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 | 75 | 'news/<translit:\w+>-<id:\d+>' => 'news/show', |
| 76 | 76 | 'brands' => 'catalog/brands', |
| 77 | 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 | 80 | 'event' => 'event/index', |
| 81 | 81 | 'event/sale/<percent:[\d\-]+>' => 'event/sale', |
| 82 | 82 | 'event/<alias:[\w\-]+>' => 'event/show', | ... | ... |
frontend/views/articles/index.php
| ... | ... | @@ -10,7 +10,7 @@ |
| 10 | 10 | CommentAsset::register($this); |
| 11 | 11 | ?> |
| 12 | 12 | <?php |
| 13 | - $this->title = 'Блог'; | |
| 13 | + $this->title = 'Статьи'; | |
| 14 | 14 | |
| 15 | 15 | |
| 16 | 16 | |
| ... | ... | @@ -18,11 +18,11 @@ |
| 18 | 18 | |
| 19 | 19 | $this->registerMetaTag([ |
| 20 | 20 | 'name' => 'description', |
| 21 | - 'content' => 'Блог', | |
| 21 | + 'content' => 'Статьи', | |
| 22 | 22 | ]); |
| 23 | 23 | $this->registerMetaTag([ |
| 24 | 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 | 8 | $this->title = $news->meta_title; |
| 9 | 9 | $this->params['seo']['title'] = !empty($this->title) ?$this->title :$news->title; |
| 10 | 10 | $this->registerMetaTag(['name' => 'description', 'content' => $news->meta_description]); |
| 11 | -$this->params[ 'breadcrumbs' ][] = ['label'=>'Блог','url'=>['/blog']]; | |
| 11 | +$this->params[ 'breadcrumbs' ][] = ['label'=>'Статьи','url'=>['/articles']]; | |
| 12 | 12 | $this->params[ 'breadcrumbs' ][] = $news->title; |
| 13 | 13 | ?> |
| 14 | 14 | ... | ... |
frontend/widgets/Seo.php
| ... | ... | @@ -109,7 +109,7 @@ class Seo extends Widget |
| 109 | 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 | 113 | $array = $this->arrayBuilder($filter); |
| 114 | 114 | return $this->getNameString($array); |
| 115 | 115 | } | ... | ... |