Commit d05fedfc820f3abe108a74e382551f973695e2fc

Authored by mzavalniuk
1 parent f4c99965

add/fix titles h1

common/messages/ru/app.php
... ... @@ -133,4 +133,6 @@ return [
133 133 'and now is' => 'и в данный момент',
134 134 'order_text' => 'Если у вас есть вопросы, пожалуйста,',
135 135 'Information' => 'Информация',
  136 + 'Find' => 'Поиск',
  137 + 'Find articles' => 'Поиск по статьям',
136 138 ];
137 139 \ No newline at end of file
... ...
common/messages/uk/app.php
... ... @@ -166,5 +166,6 @@ return [
166 166 'Send message' => 'Відправити повідомлення',
167 167 'Contact form' => 'Форма контактов',
168 168 'search in category' => 'Пошук по категорії {category_name}',
169   -
  169 + 'Find' => 'Пошук',
  170 + 'Find articles' => 'Пошук по статтям',
170 171 ];
171 172 \ No newline at end of file
... ...
frontend/views/blog/_article.php
... ... @@ -72,7 +72,7 @@
72 72 <p class="intro"><?= $model->lang->body_preview; ?></p>
73 73 <p class="read-more">
74 74 <?= Html::a(
75   - 'Продолжить чтение',
  75 + Yii::t('app', 'Continue reading'),
76 76 [
77 77 'blog/article',
78 78 'id' => $model->id,
... ...
frontend/views/blog/index.php
... ... @@ -62,7 +62,7 @@ _________________________________________________________ --&gt;
62 62 <div class="panel panel-default sidebar-menu">
63 63  
64 64 <div class="panel-heading">
65   - <h3 class="panel-title">Блог компанії</h3>
  65 + <h1 class="panel-title">Блог компанії</h1>
66 66 </div>
67 67  
68 68 <div class="panel-body text-widget">
... ...
frontend/views/blog/view.php
... ... @@ -31,7 +31,7 @@ _________________________________________________________ --&gt;
31 31  
32 32 <div class="col-md-9" id="blog-post">
33 33  
34   - <h2><?= $model->lang->title; ?></h2>
  34 + <h1><?= $model->lang->title; ?></h1>
35 35  
36 36 <?php if (!empty($model->tags)) { ?>
37 37 <div class="panel sidebar-menu">
... ...
frontend/views/category/view.php
... ... @@ -46,14 +46,14 @@ _________________________________________________________ --&gt;
46 46 ?>
47 47 <div class="panel panel-default sidebar-menu">
48 48 <div class="panel-heading">
49   - <h3 class="panel-title"><?php
  49 + <h1 class="panel-title"><?php
50 50 if (!empty($model->parent)) {
51   - echo $model->parent->lang->title;
  51 + echo $model->parent->lang->title . ': '. $model->lang->title;
52 52 } else {
53 53 echo $model->lang->title;
54 54 }
55 55 ?>
56   - </h3>
  56 + </h1>
57 57 </div>
58 58 <div class="panel-body">
59 59 <ul class="filters_menu">
... ...
frontend/views/page/view.php
... ... @@ -18,11 +18,23 @@
18 18 <div class="container">
19 19  
20 20 <div class="row">
21   -
  21 + <div class=" col-sm-3">
  22 + <div class="panel panel-default sidebar-menu">
  23 + <div class="panel-heading">
  24 + <h1 class="panel-title">
  25 + <?= $model->lang->title ?>
  26 + </h1>
  27 + </div>
  28 + </div>
  29 + </div>
  30 + </div>
  31 + <div class="row">
22 32 <!-- *** LEFT COLUMN ***
23 33 _________________________________________________________ -->
24   -
  34 +
  35 +
25 36 <div class="col-md-9 clearfix">
  37 +
26 38 <section>
27 39 <div id="text-page">
28 40  
... ...
frontend/views/site/contact.php
... ... @@ -36,7 +36,7 @@ JS;
36 36 <div class="col-md-12">
37 37 <section>
38 38 <div class="heading">
39   - <h2><?=Yii::t('app','contact_page_text')?></h2>
  39 + <h1><?=Yii::t('app','contact_page_text')?></h1>
40 40 </div>
41 41 </section>
42 42 </div>
... ...
frontend/views/special/category.php
... ... @@ -15,11 +15,11 @@
15 15 $this->params[ 'breadcrumbs' ][] = [
16 16 'label' => \Yii::t(
17 17 'app',
18   - 'Все {type}',
  18 + 'Всі {type}',
19 19 [
20 20 'type' => ( $type === 'new' ) ? \Yii::t('app', 'новинки') : \Yii::t(
21 21 'app',
22   - 'акционные'
  22 + 'акції'
23 23 ),
24 24 ]
25 25 ),
... ... @@ -30,14 +30,25 @@
30 30 ];
31 31 $this->params[ 'breadcrumbs' ][] = $seo->title ? : ( ( $type === 'new' ) ? \Yii::t('app', 'Новинки') : \Yii::t(
32 32 'app',
33   - 'Акционные'
  33 + 'Акції'
34 34 ) ) . ' ' . $model->lang->title;
35 35 ?>
36 36 <div id="content">
37 37 <div class="container">
38 38  
39 39 <div class="row">
40   -
  40 + <div class="col-sm-3">
  41 + <div class="panel panel-default sidebar-menu">
  42 + <div class="panel-heading">
  43 + <h1 class="panel-title">
  44 + <?= $type === 'new'
  45 + ? \Yii::t('app', 'новинки') . ' ' . $model->lang->title
  46 + : \Yii::t('app', 'акції') . ' ' . $model->lang->title;
  47 + ?>
  48 + </h1>
  49 + </div>
  50 + </div>
  51 + </div>
41 52 <div class="col-sm-12">
42 53  
43 54 <?php
... ...
frontend/views/special/index.php
... ... @@ -14,11 +14,11 @@
14 14 $view = $this;
15 15 $this->params[ 'breadcrumbs' ][] = $seo->title ? : \Yii::t(
16 16 'app',
17   - 'Все {type}',
  17 + 'Всі {type}',
18 18 [
19 19 'type' => ( $type === 'new' ) ? \Yii::t('app', 'новинки') : \Yii::t(
20 20 'app',
21   - 'акционные'
  21 + 'акції'
22 22 ),
23 23 ]
24 24 );
... ... @@ -34,6 +34,14 @@ _________________________________________________________ --&gt;
34 34  
35 35 <div class="col-sm-3">
36 36 <div class="panel panel-default sidebar-menu">
  37 + <div class="panel-heading">
  38 + <h1 class="panel-title">
  39 + <?= $type === 'new'
  40 + ? \Yii::t('app', 'новинки')
  41 + : \Yii::t('app', 'акції');
  42 + ?>
  43 + </h1>
  44 + </div>
37 45 <div class="panel-body">
38 46 <ul class="nav nav-pills nav-stacked category-menu">
39 47 <li>
... ...
frontend/widgets/views/_blog_search.php
... ... @@ -12,13 +12,13 @@
12 12 <div class="panel panel-default sidebar-menu">
13 13  
14 14 <div class="panel-heading">
15   - <h3 class="panel-title">Поиск</h3>
  15 + <h3 class="panel-title"><?=Yii::t('app','Find')?></h3>
16 16 </div>
17 17  
18 18 <div class="panel-body">
19 19 <form role="search" action="<?= Url::to([ 'blog/index' ]) ?>" method="GET">
20 20 <div class="input-group">
21   - <input type="text" class="form-control" name="q" placeholder="Поиск по статьям" value="<?= \Yii::$app->request->get(
  21 + <input type="text" class="form-control" name="q" placeholder="<?=Yii::t('app','Find articles')?>" value="<?= \Yii::$app->request->get(
22 22 'q',
23 23 ''
24 24 ) ?>">
... ...