| @@ -39,7 +39,7 @@ |
| @@ -39,7 +39,7 @@ |
39
| 'lang', |
39
| 'lang', |
40
| 'pages' => function (ActiveQuery $query) { |
40
| 'pages' => function (ActiveQuery $query) { |
41
| $query->with('lang.alias') |
41
| $query->with('lang.alias') |
42
| - ->where(['in_menu' => true]) |
42
| + ->where([ 'in_menu' => true ]) |
43
| ->orderBy([ 'sort' => SORT_ASC ]); |
43
| ->orderBy([ 'sort' => SORT_ASC ]); |
44
| }, |
44
| }, |
45
| ] |
45
| ] |
| @@ -64,511 +64,533 @@ |
| @@ -64,511 +64,533 @@ |
64
| ?> |
64
| ?> |
65
| |
65
| |
66
| <?php $this->beginPage() ?> |
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
| <button type="submit" class="btn btn-template-main"><i class="fa fa-search"></i></button> |
347
| <button type="submit" class="btn btn-template-main"><i class="fa fa-search"></i></button> |
348
| |
348
| |
349
| </span> |
349
| </span> |
| |
350
| + </div> |
| |
351
| + </form> |
| |
352
| + |
| |
353
| + </div> |
| |
354
| + <!--/.nav-collapse --> |
| |
355
| + |
| |
356
| + </div> |
| |
357
| + |
| |
358
| + |
| |
359
| + </div> |
| |
360
| + <!-- /#navbar --> |
| |
361
| + |
350
| </div> |
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">×</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
| </div> |
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">×</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">×</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">×</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
| <?php |
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
| <?php |
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">© <?= 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">© <?= 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
| <span> |
520
| <span> |
502
| <!-- <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>--> |
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
| </span> |
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">© <?= 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">© <?= date('Y') ?>. <?= $settings->name; ?>. Все права защищены.<br /> |
| |
558
| - Использование материалов сайта возможно только со ссылкой на источник.</p> |
| |
559
| </div> |
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
| <?php $this->endPage() ?> |
596
| <?php $this->endPage() ?> |
575
| \ No newline at end of file |
597
| \ No newline at end of file |