Commit 23a1f99568bbfaceaf03a95979a8aab9a897003a

Authored by Alexey Boroda
1 parent 6c6f2e19

-Blog class added to body

frontend/views/blog/index.php
... ... @@ -16,6 +16,8 @@
16 16 $seo = \Yii::$app->get('seo');
17 17  
18 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 60 <title><?=Html::encode($seo->title)?></title>
61 61 <?php $this->head() ?>
62 62 </head>
63   - <body>
  63 + <body<?=isset($this->params['isBlog']) ? ' class="blog-view"' : ''?>>
64 64 <?php $this->beginBody() ?>
65 65 <header id="header_" class="section-box-header <?=!$isHome ? 'header-border' : ''?>">
66 66 <div class="container">
... ...