Commit 58728e08345123ea5e2c9d662ac0c02d90d25489

Authored by Timur Kastemirov
1 parent 7093a618

объекты бэк правки и оформление на фронт

backend/views/objectkb/_form_language.php
... ... @@ -27,8 +27,6 @@
27 27 )
28 28 ->textInput([ 'maxlength' => true ]);
29 29  
30   - echo $form->field($model_lang, '[' . $language->id . ']h1')
31   - ->textInput([ 'maxlength' => true ]);
32 30  
33 31 echo $form->field($model_lang, '[' . $language->id . ']upper_text')
34 32 ->textarea([ 'rows' => 7 ]);
... ... @@ -36,10 +34,4 @@
36 34 echo $form->field($model_lang, '[' . $language->id . ']about_object_text')
37 35 ->textarea([ 'rows' => 7 ]);
38 36  
39   - echo $form->field($model_lang, '[' . $language->id . ']meta_title')
40   - ->textInput([ 'maxlength' => true ]);
41   -
42   - echo $form->field($model_lang, '[' . $language->id . ']meta_description')
43   - ->textarea([ 'rows' => 4 ]);
44   -
45 37 ?>
46 38 \ No newline at end of file
... ...
common/models/ObjectkbLang.php
... ... @@ -57,9 +57,6 @@
57 57 'upper_text',
58 58 'about_object_text',
59 59 'object_name',
60   - 'meta_title',
61   - 'meta_description',
62   - 'h1',
63 60 ],
64 61 'required',
65 62 ],
... ... @@ -76,9 +73,6 @@
76 73 'upper_text',
77 74 'about_object_text',
78 75 'object_name',
79   - 'meta_title',
80   - 'meta_description',
81   - 'h1',
82 76 ],
83 77 'string',
84 78 ],
... ... @@ -113,9 +107,6 @@
113 107 'upper_text' => Yii::t('core', 'Upper Text'),
114 108 'about_object_text' => Yii::t('core', 'About object text'),
115 109 'object_name' => Yii::t('core', 'Object name'),
116   - 'meta_title' => Yii::t('core', 'Meta Title'),
117   - 'meta_description' => Yii::t('core', 'Meta Description'),
118   - 'h1' => Yii::t('core', 'H1 tag'),
119 110 ];
120 111 }
121 112  
... ...
common/models/ObjectkbSearch.php
... ... @@ -63,13 +63,15 @@ class ObjectkbSearch extends Objectkb
63 63 }
64 64  
65 65 // grid filtering conditions
66   - $query->andFilterWhere([
67   - 'id' => $this->id,
68   - 'slider_id' => $this->slider_id,
69   - 'status' => $this->status,
70   - 'sort' => $this->sort,
71   - 'image_mini_id' => $this->image_mini_id,
72   - ]);
  66 + $query->andFilterWhere(
  67 + [
  68 + 'id' => $this->id,
  69 + 'slider_id' => $this->slider_id,
  70 + 'status' => $this->status,
  71 + 'sort' => $this->sort,
  72 + 'image_mini_id' => $this->image_mini_id,
  73 + ]
  74 + );
73 75  
74 76 return $dataProvider;
75 77 }
... ...
console/migrations/m180128_105937_drop_meta_columns_from_object_lang_table.php 0 → 100644
  1 +<?php
  2 +
  3 +use yii\db\Migration;
  4 +
  5 +/**
  6 + * Handles dropping meta from table `object_lang`.
  7 + */
  8 +class m180128_105937_drop_meta_columns_from_object_lang_table extends Migration
  9 +{
  10 + /**
  11 + * @inheritdoc
  12 + */
  13 + public function up()
  14 + {
  15 + $this->dropColumn('object_lang', "meta_title");
  16 + $this->dropColumn('object_lang', "meta_description");
  17 + $this->dropColumn('object_lang', "h1");
  18 + }
  19 +
  20 + /**
  21 + * @inheritdoc
  22 + */
  23 + public function down()
  24 + {
  25 + $this->addColumn('object_lang', "meta_title", $this->string(50));
  26 + $this->addColumn('object_lang', "meta_description", $this->string(300));
  27 + $this->addColumn('object_lang', "h1", $this->string(50));
  28 + }
  29 +}
... ...
frontend/assets/AppAsset.php
... ... @@ -12,9 +12,9 @@
12 12 public $basePath = '@webroot';
13 13 public $baseUrl = '@web';
14 14 public $css = [
15   - 'css/site.css',
  15 +// 'css/site.css',
16 16 'css/animate.css',
17   - 'css/style.css',
  17 +// 'css/style.css',
18 18 'css/style.blue.css',
19 19 'css/owl.carousel.css',
20 20 'css/owl.theme.css',
... ...
frontend/controllers/BlogController.php
... ... @@ -24,7 +24,8 @@
24 24 [
25 25 'status' => true,
26 26 ]
27   - ),
  27 + )
  28 + ->orderBy("sort"),
28 29 'pagination' => [
29 30 'pageSize' => 5,
30 31 ],
... ...
frontend/views/blog/_article_item.php
... ... @@ -27,10 +27,10 @@
27 27 </h2>
28 28 <div class="row">
29 29 <div class="col-sm-6">
30   - <p class="author-category">
31   - By <a href="blog.html#">Николас</a>
32   - in <a href="blog.html">NicolasBW</a>
33   - </p>
  30 +<!-- <p class="author-category">-->
  31 +<!-- By <a href="blog.html#">Николас</a>-->
  32 +<!-- in <a href="blog.html">NicolasBW</a>-->
  33 +<!-- </p>-->
34 34 </div>
35 35 <div class="col-sm-6">
36 36 <p class="date-comments">
... ...
frontend/views/blog/index.php
... ... @@ -11,8 +11,17 @@
11 11 use yii\web\View;
12 12 use yii\data\ActiveDataProvider;
13 13 use yii\widgets\ListView;
  14 + use common\models\Settings;
  15 + use frontend\widgets\SearchWidget;
  16 + use frontend\widgets\CategoryWidget;
  17 + use frontend\widgets\TagWidget;
14 18  
15   - ?>
  19 + $settings = Settings::getInstance();
  20 +
  21 + $this->params['h1'] = \Yii::t('app', 'menu-blog');
  22 + $this->params[ 'breadcrumbs' ][] = $this->params['h1'];
  23 +
  24 +?>
16 25  
17 26 <div id="content">
18 27 <div class="container">
... ... @@ -33,8 +42,15 @@
33 42 )?>
34 43  
35 44 </div>
36   -
37   -
  45 +
  46 + <div class="col-md-3">
  47 +
  48 + <?=SearchWidget::widget()?>
  49 + <?=CategoryWidget::widget()?>
  50 + <?=TagWidget::widget()?>
  51 +
  52 + </div>
  53 +
38 54 </div>
39 55 </div>
40 56 </div>
41 57 \ No newline at end of file
... ...
frontend/views/blog/view.php
... ... @@ -8,6 +8,14 @@
8 8 */
9 9  
10 10 use artbox\weblog\models\Article;
  11 + use frontend\widgets\SearchWidget;
  12 + use frontend\widgets\CategoryWidget;
  13 + use frontend\widgets\TagWidget;
  14 + use common\models\Settings;
  15 +
  16 + $settings = Settings::getInstance();
  17 +
  18 + $this->params[ 'breadcrumbs' ][] = $this->title;
11 19  
12 20 ?>
13 21  
... ... @@ -150,61 +158,11 @@
150 158 <!-- *** MENUS AND WIDGETS ***
151 159 _________________________________________________________ -->
152 160  
  161 + <?= SearchWidget::widget()?>
153 162  
154   - <div class="panel panel-default sidebar-menu">
155   -<!-- -->
156   -<!-- <div class="panel-heading">-->
157   -<!-- <h3 class="panel-title">Поиск</h3>-->
158   -<!-- </div>-->
159   -<!-- -->
160   -<!-- <div class="panel-body">-->
161   -<!-- <form role="search">-->
162   -<!-- <div class="input-group">-->
163   -<!-- <input type="text" class="form-control" placeholder="Поиск">-->
164   -<!-- <span class="input-group-btn">-->
165   -<!-- <button type="submit" class="btn btn-template-main"><i class="fa fa-search"></i></button>-->
166   -<!-- </span>-->
167   -<!-- </div>-->
168   -<!-- </form>-->
169   -<!-- </div>-->
170   - </div>
171   -
172   - <div class="panel panel-default sidebar-menu">
173   -
174   - <div class="panel-heading">
175   - <h3 class="panel-title">Категории (Рыба)</h3>
176   - </div>
177   -
178   - <div class="panel-body">
179   - <ul class="nav nav-pills nav-stacked">
180   - <li><a href="#">Норвегия</a>
181   - </li>
182   - <li><a href="#">Путешествие</a>
183   - </li>
184   - <li><a href="#">Маршрут</a>
185   - </li>
186   - </ul>
187   - </div>
188   - </div>
  163 + <?= CategoryWidget::widget()?>
189 164  
190   - <div class="panel sidebar-menu">
191   - <div class="panel-heading">
192   - <h3 class="panel-title">Теги (Рыба)</h3>
193   - </div>
194   -
195   - <div class="panel-body">
196   - <ul class="tag-cloud">
197   - <li><a href="#"><i class="fa fa-tags"></i> traveling</a>
198   - </li>
199   - <li><a href="#"><i class="fa fa-tags"></i> travel</a>
200   - </li>
201   - <li><a href="#"><i class="fa fa-tags"></i> travelguide</a>
202   - </li>
203   - <li><a href="#"><i class="fa fa-tags"></i> advice</a>
204   - </li>
205   - </ul>
206   - </div>
207   - </div>
  165 + <?= TagWidget::widget()?>
208 166  
209 167 <!-- *** MENUS AND FILTERS END *** -->
210 168  
... ...
frontend/views/layouts/main.php
... ... @@ -39,7 +39,7 @@
39 39 'lang',
40 40 'pages' => function (ActiveQuery $query) {
41 41 $query->with('lang.alias')
42   - ->where(['in_menu' => true])
  42 + ->where([ 'in_menu' => true ])
43 43 ->orderBy([ 'sort' => SORT_ASC ]);
44 44 },
45 45 ]
... ... @@ -64,511 +64,533 @@
64 64 ?>
65 65  
66 66 <?php $this->beginPage() ?>
67   -
68   - <!DOCTYPE html>
69   - <html lang="<?= \Yii::$app->language ?>">
70   - <head>
71   - <meta charset="<?= \Yii::$app->charset ?>">
72   - <meta name="viewport" content="width=device-width, initial-scale=1">
73   - <?= Html::csrfMetaTags() ?>
74   - <title><?= Html::encode($seo->title) ?></title>
75   - <?php $this->head() ?>
76   - </head>
77   - <body>
78   - <?php $this->beginBody() ?>
79   - <!-- Google Analytics -->
80   - <script>
81   - (function(i, s, o, g, r, a, m) {
82   - i[ 'GoogleAnalyticsObject' ] = r;
83   - i[ r ] = i[ r ] || function() {
84   - (i[ r ].q = i[ r ].q || []).push(arguments)
85   - }, i[ r ].l = 1 * new Date();
86   - a = s.createElement(o), m = s.getElementsByTagName(o)[ 0 ];
87   - a.async = 1;
88   - a.src = g;
89   - m.parentNode.insertBefore(a, m)
90   - })(window, document, 'script', 'https://www.google-analytics.com/analytics.js', 'ga');
91   -
92   - ga('create', '<?=$settings->ga_code?>', 'auto');
93   - ga('send', 'pageview');
94   -
95   - </script>
96   - <div id="all">
97   - <header>
98   - <!-- *** TOP ***
99   -_________________________________________________________ -->
100   -<!-- <div id="top">-->
101   -<!-- <div class="container">-->
102   -<!-- <div class="row">-->
103   -<!-- <div class="col-xs-5 contact">-->
104   -<!-- <p class="hidden-sm hidden-xs">-->
105   -<!-- --><?php
106   -// if (!empty($settings->phone)) {
107   -// echo \Yii::t('app', 'Contact us on ');
108   -// echo Html::a($settings->phone, \Yii::t('app', 'tel:')." {$settings->phone}");
109   -// if (!empty($settings->email)) {
110   -// echo \Yii::t('app', ' or ');
111   -// echo Html::a($settings->email, "mailto:$settings->email");
112   -// }
113   -// }
114   -// ?>
115   -<!-- </p>-->
116   -<!-- <p class="hidden-md hidden-lg">-->
117   -<!-- <a href="#" data-animate-hover="pulse"><i class="fa fa-phone"></i></a>-->
118   -<!-- <a href="#" data-animate-hover="pulse"><i class="fa fa-envelope"></i></a>-->
119   -<!-- </p>-->
120   -<!-- </div>-->
121   -<!-- <div class="col-xs-7">-->
122   -<!-- <div class="social">-->
123   -<!-- --><?php
124   -// if (!empty($settings->facebook)) {
125   -// echo Html::a(
126   -// Html::icon(
127   -// 'facebook',
128   -// [
129   -// 'prefix' => 'fa fa-',
130   -// ]
131   -// ),
132   -// $settings->facebook,
133   -// [
134   -// 'class' => 'external facebook',
135   -// 'data' => [
136   -// 'animate-hover' => 'pulse',
137   -// ],
138   -// ]
139   -// );
140   -// }
141   -// ?>
142   -<!-- --><?php
143   -// if (!empty($settings->vk)) {
144   -// echo Html::a(
145   -// Html::icon(
146   -// 'vk',
147   -// [
148   -// 'prefix' => 'fa fa-',
149   -// ]
150   -// ),
151   -// $settings->vk,
152   -// [
153   -// 'class' => 'external vk',
154   -// 'data' => [
155   -// 'animate-hover' => 'pulse',
156   -// ],
157   -// ]
158   -// );
159   -// }
160   -// ?>
161   -<!-- --><?php
162   -// if (!empty($settings->google)) {
163   -// echo Html::a(
164   -// Html::icon(
165   -// 'google-plus',
166   -// [
167   -// 'prefix' => 'fa fa-',
168   -// ]
169   -// ),
170   -// $settings->google,
171   -// [
172   -// 'class' => 'external gplus',
173   -// 'data' => [
174   -// 'animate-hover' => 'pulse',
175   -// ],
176   -// ]
177   -// );
178   -// }
179   -// ?>
180   -<!-- --><?php
181   -// if (!empty($settings->twitter)) {
182   -// echo Html::a(
183   -// Html::icon(
184   -// 'twitter',
185   -// [
186   -// 'prefix' => 'fa fa-',
187   -// ]
188   -// ),
189   -// $settings->twitter,
190   -// [
191   -// 'class' => 'external twitter',
192   -// 'data' => [
193   -// 'animate-hover' => 'pulse',
194   -// ],
195   -// ]
196   -// );
197   -// }
198   -// ?>
199   -<!-- --><?php
200   -// if (!empty($settings->ok)) {
201   -// echo Html::a(
202   -// Html::icon(
203   -// 'odnoklassniki',
204   -// [
205   -// 'prefix' => 'fa fa-',
206   -// ]
207   -// ),
208   -// $settings->ok,
209   -// [
210   -// 'class' => 'external odnoklassniki',
211   -// 'data' => [
212   -// 'animate-hover' => 'pulse',
213   -// ],
214   -// ]
215   -// );
216   -// }
217   -// ?>
218   -<!-- --><?php
219   -// if (!empty($settings->email)) {
220   -// echo Html::a(
221   -// Html::icon(
222   -// 'envelope',
223   -// [
224   -// 'prefix' => 'fa fa-',
225   -// ]
226   -// ),
227   -// "mailto:$settings->email",
228   -// [
229   -// 'class' => 'email',
230   -// 'data' => [
231   -// 'animate-hover' => 'pulse',
232   -// ],
233   -// ]
234   -// );
235   -// }
236   -// ?>
237   -<!-- </div>-->
238   -<!-- </div>-->
239   -<!-- </div>-->
240   -<!-- </div>-->
241   -<!-- </div>-->
242   - <!-- *** TOP END *** -->
  67 +
  68 + <!DOCTYPE html>
  69 + <html lang="<?= \Yii::$app->language ?>">
  70 + <head>
  71 + <meta charset="<?= \Yii::$app->charset ?>">
  72 + <meta name="viewport" content="width=device-width, initial-scale=1">
  73 + <?= Html::csrfMetaTags() ?>
  74 + <title><?= Html::encode($seo->title) ?></title>
  75 + <?php $this->head() ?>
  76 + </head>
  77 + <body>
  78 + <?php $this->beginBody() ?>
  79 + <!-- Google Analytics -->
  80 + <script>
  81 + (function(i, s, o, g, r, a, m) {
  82 + i[ 'GoogleAnalyticsObject' ] = r;
  83 + i[ r ] = i[ r ] || function() {
  84 + (i[ r ].q = i[ r ].q || []).push(arguments)
  85 + }, i[ r ].l = 1 * new Date();
  86 + a = s.createElement(o), m = s.getElementsByTagName(o)[ 0 ];
  87 + a.async = 1;
  88 + a.src = g;
  89 + m.parentNode.insertBefore(a, m)
  90 + })(window, document, 'script', 'https://www.google-analytics.com/analytics.js', 'ga');
243 91  
244   - <div class="small-logo-center text-center hidden-xs hidden-md hidden-lg">
245   - <div class="container">
246   - <div class="cont">
247   - <a class="home_mob_link" href="<?php echo Url::home(); ?>">
248   - <?php
249   - /*echo ImageHelper::set($logo)
250   - ->setHeight(42)
251   - ->renderImage(
252   - [
253   - 'alt' => $settings->name,
254   - ]
255   - )*/
256   - ?>
257   - <img src="/img/logo_kb.png" alt="<?=$settings->name;?>" class="static_logo_img">
258   - </a>
259   - <div class="static_logo_about_mob"><?=$settings->about;?></div>
260   - </div>
261   - </div>
262   - </div>
263   - <!-- *** NAVBAR ***
264   - _________________________________________________________ -->
265   - <div class="navbar-affixed-top" data-spy="affix" data-offset-top="200">
  92 + ga('create', '<?=$settings->ga_code?>', 'auto');
  93 + ga('send', 'pageview');
266 94  
267   - <div class="navbar navbar-default yamm" role="navigation" id="navbar">
268   -
269   - <div class="container">
270   - <div class="navbar-header">
271   -
272   - <a class="navbar-brand home" href="<?php echo Url::home(); ?>">
273   - <?php
274   - /*echo ImageHelper::set($logo)
275   - ->setHeight(42)
276   - ->renderImage(
277   - [
278   - 'alt' => $settings->name,
279   - ]
280   - )*/
281   - ?>
282   - <img src="/img/logo_kb.png" alt="<?=$settings->name;?>" class="static_logo_img">
283   - </a>
284   - <div class="static_logo_about"><?=$settings->about;?></div>
285   - <div class="navbar-buttons">
286   - <button type="button" class="navbar-toggle btn-template-main" data-toggle="collapse" data-target="#navigation">
287   - <span class="sr-only">Toggle navigation</span>
288   - <i class="fa fa-align-justify"></i>
289   - </button>
290   - </div>
291   - </div>
292   -
293   - <div class="navbar-collapse collapse" id="navigation">
294   - <?php
295   - $items = [];
296   - $items[] = [
297   - 'label' => \Yii::t('app', 'menu-about'),
298   - 'url' => [ Url::home() ],
299   - ];
300   - $items[] = [
301   - 'label' => \Yii::t('app', 'menu-individual'),
302   - 'url' => [ 'site/individual' ],
303   - ];
304   - $items[] = [
305   - 'label' => \Yii::t('app', 'menu-legal'),
306   - 'url' => [ 'site/legal' ],
307   - ];
308   - $items[] = [
309   - 'label' => \Yii::t('app', 'menu-objects'),
310   - 'url' => [ 'object/index' ],
311   - ];
312   - $items[] = [
313   - 'label' => \Yii::t('app', 'menu-green'),
314   - 'url' => [ 'site/green' ],
315   - ];
316   - $items[] = [
317   - 'label' => \Yii::t('app', 'menu-mediaabout'),
318   - 'url' => [ 'site/media-about' ],
319   - ];
320   - $items[] = [
321   - 'label' => \Yii::t('app', 'menu-blog'),
322   - 'url' => [ 'blog/index' ],
323   - ];
324   - $items[] = [
325   - 'label' => \Yii::t('app', 'menu-contacts'),
326   - 'url' => [ 'site/contact' ],
327   - ];
328   - echo Nav::widget(
329   - [
330   - 'items' => $items,
331   - 'options' => [
332   - 'class' => 'nav navbar-nav navbar-right',
333   - ],
334   - ]
335   - );
336   - ?>
337   - </div>
338   -
339   -
340   - <div class="collapse clearfix" id="search">
341   -
342   - <form class="navbar-form" role="search">
343   - <div class="input-group">
344   - <input type="text" class="form-control" placeholder="Search">
345   - <span class="input-group-btn">
  95 + </script>
  96 + <div id="all">
  97 + <header>
  98 + <!-- *** TOP ***
  99 + _________________________________________________________ -->
  100 + <!-- <div id="top">-->
  101 + <!-- <div class="container">-->
  102 + <!-- <div class="row">-->
  103 + <!-- <div class="col-xs-5 contact">-->
  104 + <!-- <p class="hidden-sm hidden-xs">-->
  105 + <!-- --><?php
  106 + // if (!empty($settings->phone)) {
  107 + // echo \Yii::t('app', 'Contact us on ');
  108 + // echo Html::a($settings->phone, \Yii::t('app', 'tel:')." {$settings->phone}");
  109 + // if (!empty($settings->email)) {
  110 + // echo \Yii::t('app', ' or ');
  111 + // echo Html::a($settings->email, "mailto:$settings->email");
  112 + // }
  113 + // }
  114 + // ?>
  115 + <!-- </p>-->
  116 + <!-- <p class="hidden-md hidden-lg">-->
  117 + <!-- <a href="#" data-animate-hover="pulse"><i class="fa fa-phone"></i></a>-->
  118 + <!-- <a href="#" data-animate-hover="pulse"><i class="fa fa-envelope"></i></a>-->
  119 + <!-- </p>-->
  120 + <!-- </div>-->
  121 + <!-- <div class="col-xs-7">-->
  122 + <!-- <div class="social">-->
  123 + <!-- --><?php
  124 + // if (!empty($settings->facebook)) {
  125 + // echo Html::a(
  126 + // Html::icon(
  127 + // 'facebook',
  128 + // [
  129 + // 'prefix' => 'fa fa-',
  130 + // ]
  131 + // ),
  132 + // $settings->facebook,
  133 + // [
  134 + // 'class' => 'external facebook',
  135 + // 'data' => [
  136 + // 'animate-hover' => 'pulse',
  137 + // ],
  138 + // ]
  139 + // );
  140 + // }
  141 + // ?>
  142 + <!-- --><?php
  143 + // if (!empty($settings->vk)) {
  144 + // echo Html::a(
  145 + // Html::icon(
  146 + // 'vk',
  147 + // [
  148 + // 'prefix' => 'fa fa-',
  149 + // ]
  150 + // ),
  151 + // $settings->vk,
  152 + // [
  153 + // 'class' => 'external vk',
  154 + // 'data' => [
  155 + // 'animate-hover' => 'pulse',
  156 + // ],
  157 + // ]
  158 + // );
  159 + // }
  160 + // ?>
  161 + <!-- --><?php
  162 + // if (!empty($settings->google)) {
  163 + // echo Html::a(
  164 + // Html::icon(
  165 + // 'google-plus',
  166 + // [
  167 + // 'prefix' => 'fa fa-',
  168 + // ]
  169 + // ),
  170 + // $settings->google,
  171 + // [
  172 + // 'class' => 'external gplus',
  173 + // 'data' => [
  174 + // 'animate-hover' => 'pulse',
  175 + // ],
  176 + // ]
  177 + // );
  178 + // }
  179 + // ?>
  180 + <!-- --><?php
  181 + // if (!empty($settings->twitter)) {
  182 + // echo Html::a(
  183 + // Html::icon(
  184 + // 'twitter',
  185 + // [
  186 + // 'prefix' => 'fa fa-',
  187 + // ]
  188 + // ),
  189 + // $settings->twitter,
  190 + // [
  191 + // 'class' => 'external twitter',
  192 + // 'data' => [
  193 + // 'animate-hover' => 'pulse',
  194 + // ],
  195 + // ]
  196 + // );
  197 + // }
  198 + // ?>
  199 + <!-- --><?php
  200 + // if (!empty($settings->ok)) {
  201 + // echo Html::a(
  202 + // Html::icon(
  203 + // 'odnoklassniki',
  204 + // [
  205 + // 'prefix' => 'fa fa-',
  206 + // ]
  207 + // ),
  208 + // $settings->ok,
  209 + // [
  210 + // 'class' => 'external odnoklassniki',
  211 + // 'data' => [
  212 + // 'animate-hover' => 'pulse',
  213 + // ],
  214 + // ]
  215 + // );
  216 + // }
  217 + // ?>
  218 + <!-- --><?php
  219 + // if (!empty($settings->email)) {
  220 + // echo Html::a(
  221 + // Html::icon(
  222 + // 'envelope',
  223 + // [
  224 + // 'prefix' => 'fa fa-',
  225 + // ]
  226 + // ),
  227 + // "mailto:$settings->email",
  228 + // [
  229 + // 'class' => 'email',
  230 + // 'data' => [
  231 + // 'animate-hover' => 'pulse',
  232 + // ],
  233 + // ]
  234 + // );
  235 + // }
  236 + // ?>
  237 + <!-- </div>-->
  238 + <!-- </div>-->
  239 + <!-- </div>-->
  240 + <!-- </div>-->
  241 + <!-- </div>-->
  242 + <!-- *** TOP END *** -->
  243 +
  244 + <div class="small-logo-center text-center hidden-xs hidden-md hidden-lg">
  245 + <div class="container">
  246 + <div class="cont">
  247 + <a class="home_mob_link" href="<?php echo Url::home(); ?>">
  248 + <?php
  249 + /*echo ImageHelper::set($logo)
  250 + ->setHeight(42)
  251 + ->renderImage(
  252 + [
  253 + 'alt' => $settings->name,
  254 + ]
  255 + )*/
  256 + ?>
  257 + <img src="/img/logo_kb.png" alt="<?= $settings->name; ?>" class="static_logo_img">
  258 + </a>
  259 + <div class="static_logo_about_mob"><?= $settings->about; ?></div>
  260 + </div>
  261 + </div>
  262 + </div>
  263 + <!-- *** NAVBAR ***
  264 + _________________________________________________________ -->
  265 + <div class="navbar-affixed-top" data-spy="affix" data-offset-top="200">
  266 +
  267 + <div class="navbar navbar-default yamm" role="navigation" id="navbar">
  268 +
  269 + <div class="container">
  270 + <div class="navbar-header">
  271 +
  272 + <a class="navbar-brand home" href="<?php echo Url::home(); ?>">
  273 + <?php
  274 + /*echo ImageHelper::set($logo)
  275 + ->setHeight(42)
  276 + ->renderImage(
  277 + [
  278 + 'alt' => $settings->name,
  279 + ]
  280 + )*/
  281 + ?>
  282 + <img src="/img/logo_kb.png" alt="<?= $settings->name; ?>" class="static_logo_img">
  283 + </a>
  284 + <div class="static_logo_about"><?= $settings->about; ?></div>
  285 + <div class="navbar-buttons">
  286 + <button type="button" class="navbar-toggle btn-template-main" data-toggle="collapse" data-target="#navigation">
  287 + <span class="sr-only">Toggle navigation</span>
  288 + <i class="fa fa-align-justify"></i>
  289 + </button>
  290 + </div>
  291 + </div>
  292 +
  293 + <div class="navbar-collapse collapse" id="navigation">
  294 + <?php
  295 + $items = [];
  296 + $items[] = [
  297 + 'label' => \Yii::t('app', 'menu-about'),
  298 + 'url' => [ Url::home() ],
  299 + ];
  300 + $items[] = [
  301 + 'label' => \Yii::t('app', 'menu-individual'),
  302 + 'url' => [ 'site/individual' ],
  303 + ];
  304 + $items[] = [
  305 + 'label' => \Yii::t('app', 'menu-legal'),
  306 + 'url' => [ 'site/legal' ],
  307 + ];
  308 + $items[] = [
  309 + 'label' => \Yii::t('app', 'menu-objects'),
  310 + 'url' => [ 'object/index' ],
  311 + ];
  312 + $items[] = [
  313 + 'label' => \Yii::t('app', 'menu-green'),
  314 + 'url' => [ 'site/green' ],
  315 + ];
  316 + $items[] = [
  317 + 'label' => \Yii::t('app', 'menu-mediaabout'),
  318 + 'url' => [ 'site/media-about' ],
  319 + ];
  320 + $items[] = [
  321 + 'label' => \Yii::t('app', 'menu-blog'),
  322 + 'url' => [ 'blog/index' ],
  323 + ];
  324 + $items[] = [
  325 + 'label' => \Yii::t('app', 'menu-contacts'),
  326 + 'url' => [ 'site/contact' ],
  327 + ];
  328 + echo Nav::widget(
  329 + [
  330 + 'items' => $items,
  331 + 'options' => [
  332 + 'class' => 'nav navbar-nav navbar-right',
  333 + ],
  334 + ]
  335 + );
  336 + ?>
  337 + </div>
  338 +
  339 +
  340 + <div class="collapse clearfix" id="search">
  341 +
  342 + <form class="navbar-form" role="search">
  343 + <div class="input-group">
  344 + <input type="text" class="form-control" placeholder="Search">
  345 + <span class="input-group-btn">
346 346  
347 347 <button type="submit" class="btn btn-template-main"><i class="fa fa-search"></i></button>
348 348  
349 349 </span>
  350 + </div>
  351 + </form>
  352 +
  353 + </div>
  354 + <!--/.nav-collapse -->
  355 +
  356 + </div>
  357 +
  358 +
  359 + </div>
  360 + <!-- /#navbar -->
  361 +
350 362 </div>
351   - </form>
  363 +
  364 + <!-- *** NAVBAR END *** -->
  365 +
  366 + </header>
  367 +
  368 + <!-- *** FeedBack MODAL ***
  369 + _________________________________________________________ -->
352 370  
  371 + <div class="modal fade" id="feedback-modal" tabindex="-1" role="dialog" aria-labelledby="Login" aria-hidden="true">
  372 + <div class="modal-dialog">
  373 +
  374 + <div class="modal-content">
  375 + <div class="modal-header">
  376 + <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times</button>
  377 + <h3 class="modal-title" id="Login">Обратная связь</h3>
  378 + </div>
  379 + <div class="modal-body">
  380 +
  381 + <?php $form = ActiveForm::begin(
  382 + [
  383 + 'id' => 'feedback-form',
  384 + 'method' => 'POST',
  385 + 'action' => '/site/feedback',
  386 + ]
  387 + ); ?>
  388 +
  389 + <?= $form->field($feedback, 'name')
  390 + ->textInput(); ?>
  391 +
  392 + <?= $form->field($feedback, 'email')
  393 + ->textInput(); ?>
  394 +
  395 + <?= $form->field($feedback, 'phone')
  396 + ->textInput(); ?>
  397 +
  398 + <?= $form->field($feedback, 'message')
  399 + ->textarea(
  400 + [
  401 + 'rows' => 4,
  402 + ]
  403 + ); ?>
  404 +
  405 + <p class="text-center">
  406 + <?= Html::submitButton(
  407 + 'Отправить',
  408 + [
  409 + 'class' => 'send-form btn btn-lg btn-template-primary',
  410 + ]
  411 + ) ?>
  412 + </p>
  413 +
  414 + <?php ActiveForm::end(); ?>
  415 +
  416 + </div>
  417 + </div>
  418 + </div>
353 419 </div>
354   - <!--/.nav-collapse -->
355   -
356   - </div>
357   -
358   -
359   - </div>
360   - <!-- /#navbar -->
361   -
362   - </div>
363   -
364   - <!-- *** NAVBAR END *** -->
365   -
366   - </header>
367   -
368   - <!-- *** FeedBack MODAL ***
369   -_________________________________________________________ -->
370   -
371   - <div class="modal fade" id="feedback-modal" tabindex="-1" role="dialog" aria-labelledby="Login" aria-hidden="true">
372   - <div class="modal-dialog">
373   -
374   - <div class="modal-content">
375   - <div class="modal-header">
376   - <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times</button>
377   - <h3 class="modal-title" id="Login">Обратная связь</h3>
378   - </div>
379   - <div class="modal-body">
380   -
381   - <?php $form = ActiveForm::begin(
382   - [
383   - 'id' => 'feedback-form',
384   - 'method' => 'POST',
385   - 'action' => '/site/feedback',
386   - ]
387   - ); ?>
388   -
389   - <?= $form->field($feedback, 'name')
390   - ->textInput(); ?>
391   -
392   - <?= $form->field($feedback, 'email')
393   - ->textInput(); ?>
394   -
395   - <?= $form->field($feedback, 'phone')
396   - ->textInput(); ?>
397   -
398   - <?= $form->field($feedback, 'message')
399   - ->textarea(
400   - [
401   - 'rows' => 4,
402   - ]
403   - ); ?>
404 420  
405   - <p class="text-center">
406   - <?= Html::submitButton(
407   - 'Отправить',
408   - [
409   - 'class' => 'send-form btn btn-lg btn-template-primary',
410   - ]
411   - ) ?>
412   - </p>
413   -
414   - <?php ActiveForm::end(); ?>
415   -
416   - </div>
417   - </div>
418   - </div>
419   - </div>
420   -
421   - <!-- *** FeedBack MODAL END *** -->
422   -
423   - <!-- *** FeedBack MODAL ***
424   -_________________________________________________________ -->
425   -
426   - <div class="modal fade" id="success-modal" tabindex="-1" role="dialog" aria-labelledby="Success" aria-hidden="true">
427   - <div class="modal-dialog">
428   -
429   - <div class="modal-content">
430   - <div class="modal-header">
431   - <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times</button>
432   - <h3 class="modal-title" id="Success">Success</h3>
433   - </div>
434   - <div class="modal-body">
  421 + <!-- *** FeedBack MODAL END *** -->
435 422  
436   - <p>Thank for your reply, we will call you, maybe.</p>
437   - <p class="text-center">
438   - <button type="button" class="btn btn-template-primary" data-dismiss="modal">Close</button>
439   - </p>
440   - </div>
441   - </div>
442   - </div>
443   - </div>
444   -
445   - <!-- *** FeedBack MODAL END *** -->
446   -
447   - <!-- *** Breadcrumbs *** -->
448   - <?php
449   - if (!$isHome) {
450   - ?>
451   - <div id="heading-breadcrumbs">
452   - <div class="container">
453   - <div class="row">
454   - <div class="col-md-7">
455   - <h1><?= $this->title; ?></h1>
456   - </div>
457   - <div class="col-md-5">
458   - <?= Breadcrumbs::widget(
459   - [
460   - 'links' => isset($this->params[ 'breadcrumbs' ]) ? $this->params[ 'breadcrumbs' ] : [],
461   - ]
462   - ) ?>
463   -
464   - </div>
465   - </div>
466   - </div>
467   - </div>
468   - <?php
469   - }
470   - ?>
471   - <!-- *** Breadcrumbs END *** -->
472   -
473   -
474   -
475   - <?= $content ?>
476   -
477   - <!-- *** FOOTER ***
478   -_________________________________________________________ -->
479   -
480   - <footer id="footer">
481   - <div class="container">
482   - <div class="col-md-5 col-sm-12">
  423 + <!-- *** FeedBack MODAL ***
  424 + _________________________________________________________ -->
  425 +
  426 + <div class="modal fade" id="success-modal" tabindex="-1" role="dialog" aria-labelledby="Success" aria-hidden="true">
  427 + <div class="modal-dialog">
  428 +
  429 + <div class="modal-content">
  430 + <div class="modal-header">
  431 + <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times</button>
  432 + <h3 class="modal-title" id="Success">Success</h3>
  433 + </div>
  434 + <div class="modal-body">
  435 +
  436 + <p>Thank for your reply, we will call you, maybe.</p>
  437 + <p class="text-center">
  438 + <button type="button" class="btn btn-template-primary" data-dismiss="modal">Close</button>
  439 + </p>
  440 + </div>
  441 + </div>
  442 + </div>
  443 + </div>
  444 +
  445 + <!-- *** FeedBack MODAL END *** -->
  446 +
  447 + <!-- *** Breadcrumbs *** -->
483 448 <?php
484   - if (!empty($settings->about)) {
  449 + if (!$isHome) {
485 450 ?>
486   - <h4><?php echo \Yii::t('app', 'About us'); ?></h4>
487   - <p><?php echo $settings->about; ?></p>
  451 + <div id="heading-breadcrumbs">
  452 + <div class="container">
  453 + <div class="row">
  454 + <div class="col-md-7">
  455 + <h1>
  456 + <?php
  457 + if (
  458 + Yii::$app->controller->id === $default_controller ||
  459 + Yii::$app->controller->action->id === $controller->defaultAction
  460 + ){
  461 + echo (isset($this->params['h1']) && !empty($this->params['h1'])) ?
  462 + $this->params['h1'] :
  463 + "put \$this->params['h1'] in " . Yii::$app->controller->id . "/" . Yii::$app->controller->action->id . " view file";
  464 + }
  465 + else {
  466 + echo $seo->h1 ?? "put h1 in adminka in alias";
  467 + }
  468 +
  469 + ?>
  470 + </h1>
  471 + </div>
  472 + <div class="col-md-5">
  473 + <?= Breadcrumbs::widget(
  474 + [
  475 + 'links' => isset($this->params[ 'breadcrumbs' ]) ? $this->params[ 'breadcrumbs' ] : [],
  476 + ]
  477 + ) ?>
  478 +
  479 + </div>
  480 + </div>
  481 + </div>
  482 + </div>
488 483 <?php
489 484 }
490 485 ?>
491   - <a href="#" class="btn btn-template-transparent-primary" data-toggle="modal" data-target="#feedback-modal"><?php echo \Yii::t('app', 'Contact us'); ?></a>
492   - <div class="bottom-text-in hidden-sm hidden-xs">
493   - <p class="pull-left">&copy; <?= date('Y') ?>. <?= $settings->name; ?>. Все права защищены.<br />
494   - Использование материалов сайта возможно только со ссылкой на источник.</p>
495   - </div>
496   - </div>
497   -
498   - <div class="col-md-3 col-sm-12">
499   - <h4><?php echo \Yii::t('app', 'Share'); ?></h4>
500   - <div class="social-logos">
  486 + <!-- *** Breadcrumbs END *** -->
  487 +
  488 +
  489 + <?= $content ?>
  490 +
  491 + <!-- *** FOOTER ***
  492 + _________________________________________________________ -->
  493 +
  494 + <footer id="footer">
  495 + <div class="container">
  496 + <div class="col-md-5 col-sm-12">
  497 + <?php
  498 + if (!empty($settings->about)) {
  499 + ?>
  500 + <h4><?php echo \Yii::t('app', 'About us'); ?></h4>
  501 + <p><?php echo $settings->about; ?></p>
  502 + <?php
  503 + }
  504 + ?>
  505 + <a href="#" class="btn btn-template-transparent-primary" data-toggle="modal" data-target="#feedback-modal"><?php echo \Yii::t(
  506 + 'app',
  507 + 'Contact us'
  508 + ); ?></a>
  509 + <div class="bottom-text-in hidden-sm hidden-xs">
  510 + <p class="pull-left">&copy; <?= date(
  511 + 'Y'
  512 + ) ?>. <?= $settings->name; ?>. Все права защищены.<br/>
  513 + Использование материалов сайта возможно только со ссылкой на источник.</p>
  514 + </div>
  515 + </div>
  516 +
  517 + <div class="col-md-3 col-sm-12">
  518 + <h4><?php echo \Yii::t('app', 'Share'); ?></h4>
  519 + <div class="social-logos">
501 520 <span>
502 521 <!-- <a href="http://vk.com/share.php?url=--><?php //echo 'http://'.$_SERVER['SERVER_NAME'].'/'; ?><!--" class="logoscnet"><i class="fa fa-vk" aria-hidden="true"></i></a>-->
503   - <a href="http://www.facebook.com/sharer/sharer.php?u=<?php echo 'http://'.$_SERVER['SERVER_NAME'].'/'; ?>" class="logoscnet"><i class="fa fa-facebook" aria-hidden="true"></i></a>
504   - <a href="https://plus.google.com/share?url=<?php echo 'http://'.$_SERVER['SERVER_NAME'].'/'; ?>" class="logoscnet"><i class="fa fa-google-plus" aria-hidden="true"></i></a>
  522 + <a href="http://www.facebook.com/sharer/sharer.php?u=<?php echo 'http://' . $_SERVER[ 'SERVER_NAME' ] . '/'; ?>" class="logoscnet"><i class="fa fa-facebook" aria-hidden="true"></i></a>
  523 + <a href="https://plus.google.com/share?url=<?php echo 'http://' . $_SERVER[ 'SERVER_NAME' ] . '/'; ?>" class="logoscnet"><i class="fa fa-google-plus" aria-hidden="true"></i></a>
505 524 </span>
506   - </div>
507   - </div>
508   - <div class="col-md-4 col-sm-12">
509   -
510   - <h4><?php echo \Yii::t('app', 'Contact'); ?></h4>
511   -
512   - <p>
513   - <b>Адрес:</b> 02095, Украина, г. Киев <br />пр-т. Николая Бажана, 1М, офис 25<br />
514   - <b>Тел.:</b> <a href="tel:+380676198730">+38 (067) 619-87-30</a><br /><a href="tel:+380444655420">+38 (044) 465-54-20</a><br />
515   - <b>Почта:</b> <a href="mailto:kbenergy.kiev@gmail.com">kbenergy.kiev@gmail.com</a>
516   -<!-- --><?php
517   -// if (!empty($settings->office)) {
518   -// echo \Yii::t(
519   -// 'app',
520   -// 'Office {office}',
521   -// [
522   -// 'office' => $settings->office,
523   -// ]
524   -// ) . Html::tag('br');
525   -// }
526   -// if (!empty($settings->street)) {
527   -// echo $settings->street;
528   -// if (!empty($settings->house)) {
529   -// echo " " . $settings->house;
530   -// }
531   -// echo Html::tag('br');
532   -// }
533   -// if (!empty($settings->city)) {
534   -// echo $settings->city;
535   -// echo Html::tag('br');
536   -// }
537   -// if (!empty($settings->country)) {
538   -// echo Html::tag('strong', $settings->country);
539   -// }
540   -// ?>
541   - </p>
  525 + </div>
  526 + </div>
  527 + <div class="col-md-4 col-sm-12">
  528 +
  529 + <h4><?php echo \Yii::t('app', 'Contact'); ?></h4>
  530 +
  531 + <p>
  532 + <b>Адрес:</b> 02095, Украина, г. Киев <br/>пр-т. Николая Бажана, 1М, офис 25<br/>
  533 + <b>Тел.:</b>
  534 + <a href="tel:+380676198730">+38 (067) 619-87-30</a><br/><a href="tel:+380444655420">+38 (044) 465-54-20</a><br/>
  535 + <b>Почта:</b> <a href="mailto:kbenergy.kiev@gmail.com">kbenergy.kiev@gmail.com</a>
  536 + <!-- --><?php
  537 + // if (!empty($settings->office)) {
  538 + // echo \Yii::t(
  539 + // 'app',
  540 + // 'Office {office}',
  541 + // [
  542 + // 'office' => $settings->office,
  543 + // ]
  544 + // ) . Html::tag('br');
  545 + // }
  546 + // if (!empty($settings->street)) {
  547 + // echo $settings->street;
  548 + // if (!empty($settings->house)) {
  549 + // echo " " . $settings->house;
  550 + // }
  551 + // echo Html::tag('br');
  552 + // }
  553 + // if (!empty($settings->city)) {
  554 + // echo $settings->city;
  555 + // echo Html::tag('br');
  556 + // }
  557 + // if (!empty($settings->country)) {
  558 + // echo Html::tag('strong', $settings->country);
  559 + // }
  560 + // ?>
  561 + </p>
  562 +
  563 + <?= Html::a(
  564 + \Yii::t('app', 'Go to contact page'),
  565 + [ 'site/contact' ],
  566 + [
  567 + 'class' => 'btn btn-small btn-template-transparent-primary',
  568 + ]
  569 + ) ?>
  570 +
  571 + <hr class="hidden-md hidden-lg hidden-sm">
  572 +
  573 + </div>
  574 +
  575 +
  576 + <div class="col-md-12 bottom-text hidden-md hidden-lg">
  577 + <p class="pull-left">&copy; <?= date(
  578 + 'Y'
  579 + ) ?>. <?= $settings->name; ?>. Все права защищены.<br/>
  580 + Использование материалов сайта возможно только со ссылкой на источник.</p>
  581 + </div>
  582 + </div>
  583 + <!-- /.container -->
  584 + </footer>
  585 + <!-- /#footer -->
542 586  
543   - <?= Html::a(
544   - \Yii::t('app', 'Go to contact page'),
545   - [ 'site/contact' ],
546   - [
547   - 'class' => 'btn btn-small btn-template-transparent-primary',
548   - ]
549   - ) ?>
550   -
551   - <hr class="hidden-md hidden-lg hidden-sm">
552   -
553   - </div>
554   -
  587 + <!-- *** FOOTER END *** -->
  588 +
  589 + <span id="back-to-top" title="Back to top"><i class="fa fa-arrow-up"></i></span>
555 590  
556   - <div class="col-md-12 bottom-text hidden-md hidden-lg">
557   - <p class="pull-left">&copy; <?= date('Y') ?>. <?= $settings->name; ?>. Все права защищены.<br />
558   - Использование материалов сайта возможно только со ссылкой на источник.</p>
559 591 </div>
560   - </div>
561   - <!-- /.container -->
562   - </footer>
563   - <!-- /#footer -->
564   -
565   - <!-- *** FOOTER END *** -->
566   -
567   - <span id="back-to-top" title="Back to top"><i class="fa fa-arrow-up"></i></span>
568   -
569   - </div>
570   - <!-- /#all -->
571   - <?php $this->endBody() ?>
572   - </body>
573   - </html>
  592 + <!-- /#all -->
  593 + <?php $this->endBody() ?>
  594 + </body>
  595 + </html>
574 596 <?php $this->endPage() ?>
575 597 \ No newline at end of file
... ...
frontend/views/object/index.php
... ... @@ -17,8 +17,8 @@
17 17  
18 18 $settings = Settings::getInstance();
19 19  
20   - $this->title = \Yii::t('app', 'menu-objects');
21   - $this->params[ 'breadcrumbs' ][] = $this->title;
  20 + $this->params['h1'] = \Yii::t('app', 'menu-objects');
  21 + $this->params[ 'breadcrumbs' ][] = $this->params['h1'];
22 22 ?>
23 23  
24 24 <div id="objects-wr">
... ...
frontend/widgets/CategoryWidget.php 0 → 100644
  1 +<?php
  2 + namespace frontend\widgets;
  3 + /**
  4 + * User: timur
  5 + * Date: 28.01.18
  6 + * Time: 12:42
  7 + */
  8 +
  9 + use yii\base\Widget;
  10 +
  11 + class CategoryWidget extends Widget
  12 + {
  13 + public function run()
  14 + {
  15 + return $this->render(
  16 + 'category_view'
  17 + );
  18 + }
  19 + }
  20 +
0 21 \ No newline at end of file
... ...
frontend/widgets/SearchWidget.php 0 → 100644
  1 +<?php
  2 + namespace frontend\widgets;
  3 +
  4 + /**
  5 + * User: timur
  6 + * Date: 28.01.18
  7 + * Time: 12:36
  8 + */
  9 + use yii\base\Widget;
  10 +
  11 + class SearchWidget extends Widget
  12 + {
  13 + public function run()
  14 + {
  15 + return $this->render(
  16 + 'search_view'
  17 + );
  18 + }
  19 + }
0 20 \ No newline at end of file
... ...
frontend/widgets/TagWidget.php 0 → 100644
  1 +<?php
  2 + namespace frontend\widgets;
  3 + /**
  4 + * Created by PhpStorm.
  5 + * User: timur
  6 + * Date: 28.01.18
  7 + * Time: 12:47
  8 + */
  9 +
  10 + use yii\base\Widget;
  11 +
  12 + class TagWidget extends Widget
  13 + {
  14 + public function run()
  15 + {
  16 + return $this->render(
  17 + 'tag_view'
  18 + );
  19 + }
  20 + }
0 21 \ No newline at end of file
... ...
frontend/widgets/views/category_view.php 0 → 100644
  1 +<?php
  2 + /**.
  3 + * User: timur
  4 + * Date: 28.01.18
  5 + * Time: 12:43
  6 + */
  7 +
  8 +?>
  9 +
  10 +<div class="panel panel-default sidebar-menu">
  11 +
  12 + <div class="panel-heading">
  13 + <h3 class="panel-title">Категории (Рыба)</h3>
  14 + </div>
  15 +
  16 + <div class="panel-body">
  17 + <ul class="nav nav-pills nav-stacked">
  18 + <li><a href="#">Норвегия</a>
  19 + </li>
  20 + <li><a href="#">Путешествие</a>
  21 + </li>
  22 + <li><a href="#">Маршрут</a>
  23 + </li>
  24 + </ul>
  25 + </div>
  26 +</div>
... ...
frontend/widgets/views/search_view.php 0 → 100644
  1 +<?php
  2 + /**
  3 + * User: timur
  4 + * Date: 28.01.18
  5 + * Time: 12:38
  6 + */
  7 +
  8 +?>
  9 +
  10 +<div class="panel panel-default sidebar-menu">
  11 +
  12 + <div class="panel-heading">
  13 + <h3 class="panel-title">Поиск</h3>
  14 + </div>
  15 +
  16 + <div class="panel-body">
  17 + <form role="search">
  18 + <div class="input-group">
  19 + <input type="text" class="form-control" placeholder="Поиск">
  20 + <span class="input-group-btn">
  21 + <button type="submit" class="btn btn-template-main"><i class="fa fa-search"></i></button>
  22 + </span>
  23 + </div>
  24 + </form>
  25 + </div>
  26 +</div>
... ...
frontend/widgets/views/tag_view.php 0 → 100644
  1 +<?php
  2 + /**
  3 + * User: timur
  4 + * Date: 28.01.18
  5 + * Time: 12:46
  6 + */
  7 +
  8 +?>
  9 +
  10 +<div class="panel sidebar-menu">
  11 + <div class="panel-heading">
  12 + <h3 class="panel-title">Теги (Рыба)</h3>
  13 + </div>
  14 +
  15 + <div class="panel-body">
  16 + <ul class="tag-cloud">
  17 + <li><a href="#"><i class="fa fa-tags"></i> traveling</a>
  18 + </li>
  19 + <li><a href="#"><i class="fa fa-tags"></i> travel</a>
  20 + </li>
  21 + <li><a href="#"><i class="fa fa-tags"></i> travelguide</a>
  22 + </li>
  23 + <li><a href="#"><i class="fa fa-tags"></i> advice</a>
  24 + </li>
  25 + </ul>
  26 + </div>
  27 +</div>
... ...