Commit 23a1f99568bbfaceaf03a95979a8aab9a897003a

Authored by Alexey Boroda
1 parent 6c6f2e19

-Blog class added to body

frontend/views/blog/index.php
@@ -16,6 +16,8 @@ @@ -16,6 +16,8 @@
16 $seo = \Yii::$app->get('seo'); 16 $seo = \Yii::$app->get('seo');
17 17
18 $this->params[ 'breadcrumbs' ][] = \Yii::t('app', 'Блог'); 18 $this->params[ 'breadcrumbs' ][] = \Yii::t('app', 'Блог');
  19 +
  20 + $this->params['isBlog'] = true;
19 21
20 ?> 22 ?>
21 23
frontend/views/layouts/main.php
@@ -60,7 +60,7 @@ JS; @@ -60,7 +60,7 @@ JS;
60 <title><?=Html::encode($seo->title)?></title> 60 <title><?=Html::encode($seo->title)?></title>
61 <?php $this->head() ?> 61 <?php $this->head() ?>
62 </head> 62 </head>
63 - <body> 63 + <body<?=isset($this->params['isBlog']) ? ' class="blog-view"' : ''?>>
64 <?php $this->beginBody() ?> 64 <?php $this->beginBody() ?>
65 <header id="header_" class="section-box-header <?=!$isHome ? 'header-border' : ''?>"> 65 <header id="header_" class="section-box-header <?=!$isHome ? 'header-border' : ''?>">
66 <div class="container"> 66 <div class="container">