Commit 0e484f539c032b45548508403f11322bec46efc6

Authored by Alexey Boroda
1 parent c3f029c0

-Some menu manipulation

Showing 1 changed file with 660 additions and 693 deletions   Show diff stats
frontend/views/layouts/main.php
... ... @@ -64,738 +64,705 @@
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   - <div id="top" class="hidden-xs">
98   - <div class="container">
99   - <div class="row">
100   - <div class="col-md-10 col-sm-10 col-xs-8 phones_head" style="height:100%;">
101   - <div class="top_phones"><i class="fa fa-phone" aria-hidden="true"></i>
102   - <span><a href="tel:<?= $settings->phone ?>"><?= $settings->phone ?></a></span>
103   - <span><a href="tel:<?= $settings->phone2 ?>"><?= $settings->phone2 ?></a></span></div>
104   - <div class="top_mail"><i class="fa fa-envelope-o" aria-hidden="true"></i>
105   - <span><a href="tel:<?= $settings->email ?>"><?= $settings->email ?></a></span></div>
106   - </div>
107   - <div class="col-md-2 col-sm-2 col-xs-4 text-right" style="height:100%;">
108   - <div class="header-lang">
109   - <?php
110   - $langs = \Yii::$app->language;
111   - $langs_a = explode("-", $langs);
112   - $this_lang = $langs_a[ '0' ];
113   -
114   - $langs_head = artbox\core\widgets\LangLink::widget();
115   - $langs_head = str_replace(" / " . $this_lang, "", $langs_head);
116   - $langs_head = str_replace($this_lang . " / ", "", $langs_head);
117   - echo "<span class='active_lang'>$this_lang</span>" . $langs_head;
118   - ?>
119   - </div>
120   - </div>
121   - </div>
122   - </div>
123   - </div>
124   - <header>
125   -
126   - <!-- *** TOP *** -->
127   -
128   - <!-- *** TOP END *** -->
129   - <!-- *** NAVBAR ***
130   - _________________________________________________________ -->
131   - <div class="navbar-affixed-top" data-spy="affix" data-offset-top="200">
  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');
132 94  
133   - <div class="navbar navbar-default yamm" role="navigation" id="navbar">
134   -
135   - <div class="container">
136   - <div class="navbar-header">
137   -
138   - <a class="navbar-brand home" href="<?php echo Url::home(); ?>">
139   - <img
140   - src="/img/logo_kb.png"
141   - alt="<?= $settings->name; ?>"
142   - class="static_logo_img"
143   - >
144   - </a>
145   - <a href="/" class="static-about-link">
146   - <div class="static_logo_about"><?= \Yii::t('app', $settings->about); ?></div>
147   - </a>
148   - <div class="navbar-buttons">
149   - <button type="button" class="navbar-toggle btn-template-main" data-toggle="collapse" data-target="#navigation">
150   - <span class="sr-only">Toggle navigation</span>
151   - <i class="fa fa-align-justify"></i>
152   - </button>
153   - </div>
  95 + </script>
  96 + <div id="all">
  97 + <div id="top" class="hidden-xs">
  98 + <div class="container">
  99 + <div class="row">
  100 + <div class="col-md-10 col-sm-10 col-xs-8 phones_head" style="height:100%;">
  101 + <div class="top_phones"><i class="fa fa-phone" aria-hidden="true"></i> <span><a href="tel:<?=$settings->phone?>"><?=$settings->phone?></a></span>
  102 + <span><a href="tel:<?=$settings->phone2?>"><?=$settings->phone2?></a></span></div>
  103 + <div class="top_mail"><i class="fa fa-envelope-o" aria-hidden="true"></i> <span><a href="tel:<?=$settings->email?>"><?=$settings->email?></a></span></div>
  104 + </div>
  105 + <div class="col-md-2 col-sm-2 col-xs-4 text-right" style="height:100%;">
  106 + <div class="header-lang">
  107 + <?php
  108 + $langs = \Yii::$app->language;
  109 + $langs_a = explode("-",$langs);
  110 + $this_lang = $langs_a['0'];
  111 +
  112 + $langs_head = artbox\core\widgets\LangLink::widget();
  113 + $langs_head = str_replace(" / ".$this_lang,"",$langs_head);
  114 + $langs_head = str_replace($this_lang." / ","",$langs_head);
  115 + echo "<span class='active_lang'>$this_lang</span>".$langs_head;
  116 + ?>
  117 + </div>
  118 + </div>
  119 + </div>
  120 + </div>
154 121 </div>
155   -
156   - <div class="navbar-collapse collapse" id="navigation">
157   - <?php
158   - $items = [];
159   - $items[] = [
160   - 'label' => \Yii::t('app', 'menu-about'),
161   - 'url' => [ 'site/about' ],
162   - ];
163   - $items[] = [
164   - 'label' => \Yii::t('app', 'menu-individual'),
165   - 'url' => [ 'site/individual' ],
166   - ];
167   - $items[] = [
168   - 'label' => \Yii::t('app', 'menu-legal'),
169   - 'url' => [ 'site/legal' ],
170   - ];
171   - $items[] = [
172   - 'label' => \Yii::t('app', 'menu-objects'),
173   - 'url' => [ 'object/index' ],
174   - ];
175   - // $items[] = [
176   - // 'label' => \Yii::t('app', 'menu-green'),
177   - // 'url' => [ 'site/green' ],
178   - // ];
179   - $items[] = [
180   - 'label' => \Yii::t('app', 'menu-mediaabout'),
181   - 'url' => [ "site/media-about" ],
182   - ];
183   - $items[] = [
184   - 'label' => \Yii::t('app', 'menu-blog'),
185   - 'url' => [ 'blog/index' ],
186   - ];
187   - $items[] = [
188   - 'label' => \Yii::t('app', 'menu-contacts'),
189   - 'url' => [ 'site/contact' ],
190   - ];
  122 + <header>
  123 +
  124 +<!-- *** TOP *** -->
  125 +
  126 +<!-- *** TOP END *** -->
  127 + <!-- *** NAVBAR ***
  128 + _________________________________________________________ -->
  129 + <div class="navbar-affixed-top" data-spy="affix" data-offset-top="200">
191 130  
192   - foreach ($pageCategories as $pageCategory) {
193   - foreach ($pageCategory->pages as $page) {
194   - $newItems = [];
195   - $i = 0;
196   - foreach ($items as $key => $item) {
197   - $i++;
198   - if ($i == $key) {
199   - $newItems[] = [
200   - 'label' => $page->lang->title,
201   - 'url' => [
202   - 'page/view',
203   - 'alias' => $page->lang->alias,
204   - ],
  131 + <div class="navbar navbar-default yamm" role="navigation" id="navbar">
  132 +
  133 + <div class="container">
  134 + <div class="navbar-header">
  135 +
  136 + <a class="navbar-brand home" href="<?php echo Url::home(); ?>">
  137 + <img
  138 + src="/img/logo_kb.png"
  139 + alt="<?= $settings->name; ?>"
  140 + class="static_logo_img"
  141 + >
  142 + </a>
  143 + <a href="/" class="static-about-link"><div class="static_logo_about"><?= \Yii::t('app', $settings->about); ?></div></a>
  144 + <div class="navbar-buttons">
  145 + <button type="button" class="navbar-toggle btn-template-main" data-toggle="collapse" data-target="#navigation">
  146 + <span class="sr-only">Toggle navigation</span>
  147 + <i class="fa fa-align-justify"></i>
  148 + </button>
  149 + </div>
  150 + </div>
  151 +
  152 + <div class="navbar-collapse collapse" id="navigation">
  153 + <?php
  154 + $items = [];
  155 + $items[] = [
  156 + 'label' => \Yii::t('app', 'menu-about'),
  157 + 'url' => [ 'site/about' ],
205 158 ];
206   - }
207   - $newItems[] = $item;
208   - }
209   - $items = $newItems;
210   - }
211   - }
212   -
213   - echo Nav::widget(
214   - [
215   - 'items' => $items,
216   - 'options' => [
217   - 'class' => 'nav navbar-nav navbar-right',
218   - ],
219   - ]
220   - );
221   - ?>
222   - </div>
223   -
224   -
225   - <div class="collapse clearfix" id="search">
226   -
227   - <form class="navbar-form" role="search">
228   - <div class="input-group">
229   - <input type="text" class="form-control" placeholder="<?= \Yii::t('app', 'Search') ?>">
230   - <span class="input-group-btn">
  159 + $items[] = [
  160 + 'label' => \Yii::t('app', 'menu-individual'),
  161 + 'url' => [ 'site/individual' ],
  162 + ];
  163 + $items[] = [
  164 + 'label' => \Yii::t('app', 'menu-legal'),
  165 + 'url' => [ 'site/legal' ],
  166 + ];
  167 + $items[] = [
  168 + 'label' => \Yii::t('app', 'menu-objects'),
  169 + 'url' => [ 'object/index' ],
  170 + ];
  171 +// $items[] = [
  172 +// 'label' => \Yii::t('app', 'menu-green'),
  173 +// 'url' => [ 'site/green' ],
  174 +// ];
  175 + $items[] = [
  176 + 'label' => \Yii::t('app', 'menu-mediaabout'),
  177 + 'url' => [ "site/media-about" ],
  178 + ];
  179 + $items[] = [
  180 + 'label' => \Yii::t('app', 'menu-blog'),
  181 + 'url' => [ 'blog/index' ],
  182 + ];
  183 + $items[] = [
  184 + 'label' => \Yii::t('app', 'menu-contacts'),
  185 + 'url' => [ 'site/contact' ],
  186 + ];
  187 +
  188 + foreach ($pageCategories as $pageCategory){
  189 + foreach ($pageCategory->pages as $page){
  190 + $position = $page->sort;
  191 + $toInsert = [[
  192 + 'label' => $page->lang->title,
  193 + 'url' => [
  194 + 'page/view',
  195 + 'alias' => $page->lang->alias
  196 + ]
  197 + ]];
  198 + array_splice( $items, $position, 0, $toInsert );
  199 + }
  200 + }
  201 +
  202 + echo Nav::widget(
  203 + [
  204 + 'items' => $items,
  205 + 'options' => [
  206 + 'class' => 'nav navbar-nav navbar-right',
  207 + ],
  208 + ]
  209 + );
  210 + ?>
  211 + </div>
  212 +
  213 +
  214 + <div class="collapse clearfix" id="search">
  215 +
  216 + <form class="navbar-form" role="search">
  217 + <div class="input-group">
  218 + <input type="text" class="form-control" placeholder="<?=\Yii::t('app', 'Search')?>">
  219 + <span class="input-group-btn">
231 220  
232 221 <button type="submit" class="btn btn-template-main"><i class="fa fa-search"></i></button>
233 222  
234 223 </span>
235   - </div>
236   - </form>
237   -
238   - </div>
239   - <!--/.nav-collapse -->
240   -
241   - </div>
242   -
243   -
244   - </div>
245   - <!-- /#navbar -->
246   -
247   - </div>
248   -
249   - <!-- *** NAVBAR END *** -->
250   -
251   - </header>
252   -
253   - <!-- *** FeedBack MODAL ***
254   -_________________________________________________________ -->
255   -
256   - <div class="modal fade" id="feedback-modal" tabindex="-1" role="dialog" aria-labelledby="Login" aria-hidden="true">
257   - <div class="modal-dialog">
258   -
259   - <div class="modal-content">
260   - <div class="modal-header">
261   - <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times</button>
262   - <h3 class="modal-title" id="Login"><?= \Yii::t('app', 'feedback1') ?></h3>
263   - </div>
264   - <div class="modal-body">
265   -
266   - <?php $form = ActiveForm::begin(
267   - [
268   - 'id' => 'feedback-form',
269   - 'method' => 'POST',
270   - 'action' => '/site/feedback',
271   - ]
272   - ); ?>
273   -
274   - <?= $form->field($feedback, 'topic')
275   - ->hiddenInput([ 'value' => Feedback::SCENARIO_FEEDBACK ])
276   - ->label(false) ?>
277   -
278   - <?= $form->field($feedback, 'name')
279   - ->textInput()
280   - ->label(\Yii::t('app', 'name')); ?>
281   -
282   - <?= $form->field($feedback, 'email')
283   - ->textInput()
284   - ->label(\Yii::t('app', 'email')); ?>
285   -
286   - <?= $form->field($feedback, 'phone')
287   - ->textInput()
288   - ->label(\Yii::t('app', 'phone')); ?>
289   -
290   - <?= $form->field($feedback, 'message')
291   - ->textarea(
292   - [
293   - 'rows' => 4,
294   - ]
295   - )
296   - ->label(\Yii::t('app', 'message')); ?>
297   -
298   - <p class="text-center">
299   - <?= Html::submitButton(
300   - \Yii::t('app', 'send1'),
301   - [
302   - 'class' => 'send-form btn btn-lg btn-template-primary',
303   - ]
304   - ) ?>
305   - </p>
306   -
307   - <?php ActiveForm::end(); ?>
308   -
309   - </div>
310   - </div>
311   - </div>
312   - </div>
313   -
314   - <!-- *** FeedBack MODAL END *** -->
315   -
316   - <!-- ** Calculate Modal ** -->
317   -
318   - <div class="modal fade" id="calculate-modal" tabindex="-1" role="dialog" aria-labelledby="Login" aria-hidden="true">
319   - <div class="modal-dialog">
320   - <div class="modal-content">
321   - <div class="modal-header">
322   - <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times</button>
323   - <h3 class="modal-title text-center" id="Login"></h3>
324   - </div>
325   - <div class="modal-body">
326   -
327   - <?php
328   - $feedback = new Feedback([ 'scenario' => Feedback::SCENARIO_CALCULATOR ]);
329   -
330   - $form = ActiveForm::begin(
331   - [
332   - 'id' => 'calculate-form',
333   - 'method' => 'POST',
334   - 'action' => '/site/feedback',
335   - ]
336   - );
337   - ?>
338   -
339   - <div class="row calculate-main-wr">
340   - <div class="col-md-8 col-md-offset-2">
341   - <div style="width:100%;max-width:500px;margin:0 auto;">
342   - <p style="font-weight:bold;"><?= \Yii::t('app', 'contact_datas') ?></p>
  224 + </div>
  225 + </form>
  226 +
  227 + </div>
  228 + <!--/.nav-collapse -->
  229 +
  230 + </div>
343 231  
344   - <?= $form->field($feedback, 'topic')
345   - ->hiddenInput([ 'value' => Feedback::SCENARIO_CALCULATOR ])
346   - ->label(false) ?>
347 232  
348   - <?= $form->field($feedback, "name")
349   - ->textInput() ?>
350   - <?= $form->field($feedback, "phone")
351   - ->textInput() ?>
352   - <?= $form->field($feedback, "email")
353   - ->textInput() ?>
  233 + </div>
  234 + <!-- /#navbar -->
  235 +
354 236 </div>
355   - </div>
356   - </div>
  237 +
  238 + <!-- *** NAVBAR END *** -->
357 239  
358   - <div class="row">
359   - <div class="col-lg-6 col-md-12">
360   - <div class="row">
361   - <div class="col-md-12">
362   - <p style="font-weight:bold;"><?= \Yii::t('app', 'ses_info_install') ?></p>
363   - <div class="row">
364   - <div class="col-md-6">
365   -
366   - <?= $form->field($feedback, "adress")
367   - ->textInput()
368   - ->label(
369   - \Yii::t(
370   - 'app',
371   - 'address1'
372   - )
373   - ) ?>
374   -
375   - <?= $form->field($feedback, "module_install_angle")
376   - ->textInput()
377   - ->label(
378   - \Yii::t(
379   - 'app',
380   - 'install_modules'
381   - )
382   - ) ?>
383   -
384   - </div>
385   -
386   - <div class="col-md-6">
387   - <p class="coord1"><?= \Yii::t('app', 'coord1_title') ?>:</p>
388   -
389   - <?= $form->field($feedback, "latitude")
390   - ->textInput()
391   - ->label(
392   - \Yii::t(
393   - 'app',
394   - 'Latitude'
395   - )
396   - ) ?>
397   -
398   - <?= $form->field($feedback, "longitude")
399   - ->textInput()
400   - ->label(
401   - \Yii::t(
402   - 'app',
403   - 'Longitude'
404   - )
405   - ) ?>
406   -
407   - <?= $form->field($feedback, "south_deviation")
408   - ->textInput()
409   - ->label(
410   - \Yii::t(
411   - 'app',
412   - 'south_deviation'
413   - )
414   - ) ?>
415   -
416   - </div>
417   - </div>
  240 + </header>
  241 +
  242 + <!-- *** FeedBack MODAL ***
  243 + _________________________________________________________ -->
  244 +
  245 + <div class="modal fade" id="feedback-modal" tabindex="-1" role="dialog" aria-labelledby="Login" aria-hidden="true">
  246 + <div class="modal-dialog">
418 247  
419   - <div class="row">
420   - <div class="col-md-6 text-center">
421   - <img src="/img/form_img_1.jpg" class="img-responsive">
422   - </div>
423   - <div class="col-md-6 text-center">
424   - <img src="/img/form_img_2.jpg" class="img-responsive">
425   - </div>
426   - </div>
427   -
428   - </div>
429   - </div>
430   - </div>
431   - <div class="col-lg-6 col-md-12 calc-form-right-wr">
432   - <div class="row">
433   - <div class="col-md-12">
434   - <p style="font-weight:bold;"><?= \Yii::t('app', 'info_power_ses') ?></p>
435   - <div class="row">
436   - <div class="col-md-12">
437   - <div class="row" style="margin-bottom: 15px;">
  248 + <div class="modal-content">
  249 + <div class="modal-header">
  250 + <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times</button>
  251 + <h3 class="modal-title" id="Login"><?=\Yii::t('app', 'feedback1')?></h3>
  252 + </div>
  253 + <div class="modal-body">
438 254  
439   - <?= $form->field($feedback, "power_station_type")
440   - ->radioList(
441   - [
442   - "ะะฒั‚ะพะฝะพะผะฝะฐั" => "<span style=\"margin-left:5px;\">" . \Yii::t(
443   - 'app',
444   - 'authonomous'
445   - ) . "</span>",
446   - "ะกะตั‚ะตะฒะฐั" => '<span style="margin-left:5px;">' . \Yii::t(
447   - 'app',
448   - 'ses_network'
449   - ) . "</span>",
450   - ],
  255 + <?php $form = ActiveForm::begin(
  256 + [
  257 + 'id' => 'feedback-form',
  258 + 'method' => 'POST',
  259 + 'action' => '/site/feedback',
  260 + ]
  261 + ); ?>
  262 +
  263 + <?= $form->field($feedback, 'topic')
  264 + ->hiddenInput(['value' => Feedback::SCENARIO_FEEDBACK])
  265 + ->label(false)?>
  266 +
  267 + <?= $form->field($feedback, 'name')
  268 + ->textInput()
  269 + ->label(\Yii::t('app', 'name'));
  270 + ?>
  271 +
  272 + <?= $form->field($feedback, 'email')
  273 + ->textInput()
  274 + ->label(\Yii::t('app', 'email'));
  275 + ?>
  276 +
  277 + <?= $form->field($feedback, 'phone')
  278 + ->textInput()
  279 + ->label(\Yii::t('app', 'phone'));
  280 + ?>
  281 +
  282 + <?= $form->field($feedback, 'message')
  283 + ->textarea(
451 284 [
452   - 'tag' => false,
453   - 'unselect' => null,
454   - 'encode' => false,
455   - 'item' => function ($index, $label, $name, $checked, $value) {
456   - $content = '<div class="col-md-4 col-sm-12 col-xs-12">';
457   -
458   - $content .= Html::radio(
459   - $name,
460   - ( $index === 0 ) ? true : false,
461   - [
462   - 'label' => $label,
463   - 'value' => $value,
464   - ]
465   - );
466   -
467   - $content .= '</div>';
468   -
469   - return $content;
470   - },
  285 + 'rows' => 4,
471 286 ]
472 287 )
473   - ->label(false) ?>
  288 + ->label(\Yii::t('app', 'message'));
  289 + ?>
  290 +
  291 + <p class="text-center">
  292 + <?= Html::submitButton(
  293 + \Yii::t('app', 'send1'),
  294 + [
  295 + 'class' => 'send-form btn btn-lg btn-template-primary',
  296 + ]
  297 + ) ?>
  298 + </p>
  299 +
  300 + <?php ActiveForm::end(); ?>
474 301  
475 302 </div>
476   - </div>
477   -
478   - <div class="col-md-12">
479   - <div class="row">
480   - <div class="col-md-4">
481   - <?= $form->field($feedback, "area")
482   - ->textInput()
483   - ->label(
484   - \Yii::t(
485   - 'app',
486   - 'info_area'
487   - )
488   - ) ?>
489   - </div>
490   - <div class="col-md-4">
491   - <?= $form->field($feedback, "power")
492   - ->textInput()
493   - ->label(
494   - \Yii::t(
495   - 'app',
496   - 'info_power'
497   - )
498   - ) ?>
499   - </div>
500   - <div class="col-md-4">
501   - <?= $form->field($feedback, "budget")
502   - ->textInput()
503   - ->label(
504   - \Yii::t(
505   - 'app',
506   - 'info_budget'
507   - )
508   - ) ?>
509   - </div>
510   - </div>
511   - </div>
512 303 </div>
513   - </div>
514 304 </div>
515   -
516   - <div class="row">
517   - <div class="col-md-12">
518   - <p style="font-weight:bold;"><?= \Yii::t(
519   - 'app',
520   - 'info_power_ses_auth'
521   - ) ?></p>
522   - <div class="row">
523   - <div class="col-md-6">
524   - <?= $form->field($feedback, "auth_day")
525   - ->textInput()
526   - ->label(
527   - \Yii::t(
528   - 'app',
529   - 'info_auth_day'
530   - )
531   - ) ?>
532   -
533   - <?= $form->field($feedback, "auth_month")
534   - ->textInput()
535   - ->label(
536   - \Yii::t(
537   - 'app',
538   - 'info_auth_month'
539   - )
540   - ) ?>
541   - </div>
542   -
543   - <div class="col-md-6">
544   - <?= $form->field($feedback, "auth_pwr_all")
545   - ->textInput()
546   - ->label(
547   - \Yii::t(
548   - 'app',
549   - 'info_auth_pwr_all'
550   - )
551   - ) ?>
552   - <?= $form->field($feedback, "auth_pwr_days")
553   - ->textInput()
554   - ->label(
555   - \Yii::t(
556   - 'app',
557   - 'info_auth_pwr_days'
558   - )
559   - ) ?>
560   - </div>
  305 + </div>
  306 +
  307 + <!-- *** FeedBack MODAL END *** -->
  308 +
  309 + <!-- ** Calculate Modal ** -->
  310 +
  311 + <div class="modal fade" id="calculate-modal" tabindex="-1" role="dialog" aria-labelledby="Login" aria-hidden="true">
  312 + <div class="modal-dialog">
  313 + <div class="modal-content">
  314 + <div class="modal-header">
  315 + <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times</button>
  316 + <h3 class="modal-title text-center" id="Login"></h3>
  317 + </div>
  318 + <div class="modal-body">
  319 +
  320 + <?php
  321 + $feedback = new Feedback(['scenario' => Feedback::SCENARIO_CALCULATOR]);
  322 +
  323 + $form = ActiveForm::begin(
  324 + [
  325 + 'id' => 'calculate-form',
  326 + 'method' => 'POST',
  327 + 'action' => '/site/feedback',
  328 + ]
  329 + );
  330 + ?>
  331 +
  332 + <div class="row calculate-main-wr">
  333 + <div class="col-md-8 col-md-offset-2">
  334 + <div style="width:100%;max-width:500px;margin:0 auto;">
  335 + <p style="font-weight:bold;"><?= \Yii::t('app', 'contact_datas') ?></p>
  336 +
  337 + <?= $form->field($feedback, 'topic')
  338 + ->hiddenInput(['value' => Feedback::SCENARIO_CALCULATOR])
  339 + ->label(false)?>
  340 +
  341 + <?=$form->field($feedback, "name")->textInput()?>
  342 + <?=$form->field($feedback, "phone")->textInput()?>
  343 + <?=$form->field($feedback, "email")->textInput()?>
  344 + </div>
  345 + </div>
  346 + </div>
  347 +
  348 + <div class="row">
  349 + <div class="col-lg-6 col-md-12">
  350 + <div class="row">
  351 + <div class="col-md-12">
  352 + <p style="font-weight:bold;"><?= \Yii::t('app', 'ses_info_install') ?></p>
  353 + <div class="row">
  354 + <div class="col-md-6">
  355 +
  356 + <?=$form->field($feedback, "adress")
  357 + ->textInput()
  358 + ->label(
  359 + \Yii::t(
  360 + 'app',
  361 + 'address1'
  362 + )
  363 + )?>
  364 +
  365 + <?=$form->field($feedback, "module_install_angle")
  366 + ->textInput()
  367 + ->label(
  368 + \Yii::t(
  369 + 'app',
  370 + 'install_modules'
  371 + )
  372 + )?>
  373 +
  374 + </div>
  375 +
  376 + <div class="col-md-6">
  377 + <p class="coord1"><?= \Yii::t('app', 'coord1_title') ?>:</p>
  378 +
  379 + <?=$form->field($feedback, "latitude")
  380 + ->textInput()
  381 + ->label(
  382 + \Yii::t(
  383 + 'app',
  384 + 'Latitude'
  385 + )
  386 + )?>
  387 +
  388 + <?=$form->field($feedback, "longitude")
  389 + ->textInput()
  390 + ->label(
  391 + \Yii::t(
  392 + 'app',
  393 + 'Longitude'
  394 + )
  395 + )?>
  396 +
  397 + <?=$form->field($feedback, "south_deviation")
  398 + ->textInput()
  399 + ->label(
  400 + \Yii::t(
  401 + 'app',
  402 + 'south_deviation'
  403 + )
  404 + )?>
  405 +
  406 + </div>
  407 + </div>
  408 +
  409 + <div class="row">
  410 + <div class="col-md-6 text-center">
  411 + <img src="/img/form_img_1.jpg" class="img-responsive">
  412 + </div>
  413 + <div class="col-md-6 text-center">
  414 + <img src="/img/form_img_2.jpg" class="img-responsive">
  415 + </div>
  416 + </div>
  417 +
  418 + </div>
  419 + </div>
  420 + </div>
  421 + <div class="col-lg-6 col-md-12 calc-form-right-wr">
  422 + <div class="row">
  423 + <div class="col-md-12">
  424 + <p style="font-weight:bold;"><?= \Yii::t('app', 'info_power_ses') ?></p>
  425 + <div class="row">
  426 + <div class="col-md-12">
  427 + <div class="row" style="margin-bottom: 15px;">
  428 +
  429 + <?=$form->field($feedback, "power_station_type")
  430 + ->radioList(
  431 + [
  432 + "ะะฒั‚ะพะฝะพะผะฝะฐั" => "<span style=\"margin-left:5px;\">".\Yii::t('app', 'authonomous')."</span>",
  433 + "ะกะตั‚ะตะฒะฐั" => '<span style="margin-left:5px;">'.\Yii::t('app', 'ses_network')."</span>",
  434 + ],
  435 + [
  436 + 'tag' => false,
  437 + 'unselect' => null,
  438 + 'encode' => false,
  439 + 'item' => function ($index, $label, $name, $checked, $value){
  440 + $content = '<div class="col-md-4 col-sm-12 col-xs-12">';
  441 +
  442 + $content .= Html::radio(
  443 + $name,
  444 + ($index===0)?true:false,
  445 + [
  446 + 'label' => $label,
  447 + 'value' => $value,
  448 + ]
  449 + );
  450 +
  451 + $content .= '</div>';
  452 +
  453 + return $content;
  454 + },
  455 + ]
  456 + )->label(false)?>
  457 +
  458 + </div>
  459 + </div>
  460 +
  461 + <div class="col-md-12">
  462 + <div class="row">
  463 + <div class="col-md-4">
  464 + <?= $form->field($feedback, "area")
  465 + ->textInput()
  466 + ->label(
  467 + \Yii::t(
  468 + 'app',
  469 + 'info_area'
  470 + )
  471 + )?>
  472 + </div>
  473 + <div class="col-md-4">
  474 + <?= $form->field($feedback, "power")
  475 + ->textInput()
  476 + ->label(
  477 + \Yii::t(
  478 + 'app',
  479 + 'info_power'
  480 + )
  481 + )?>
  482 + </div>
  483 + <div class="col-md-4">
  484 + <?= $form->field($feedback, "budget")
  485 + ->textInput()
  486 + ->label(
  487 + \Yii::t(
  488 + 'app',
  489 + 'info_budget'
  490 + )
  491 + )?>
  492 + </div>
  493 + </div>
  494 + </div>
  495 + </div>
  496 + </div>
  497 + </div>
  498 +
  499 + <div class="row">
  500 + <div class="col-md-12">
  501 + <p style="font-weight:bold;"><?= \Yii::t(
  502 + 'app',
  503 + 'info_power_ses_auth'
  504 + ) ?></p>
  505 + <div class="row">
  506 + <div class="col-md-6">
  507 + <?=$form->field($feedback, "auth_day")
  508 + ->textInput()
  509 + ->label(
  510 + \Yii::t(
  511 + 'app',
  512 + 'info_auth_day'
  513 + )
  514 + )?>
  515 +
  516 + <?=$form->field($feedback, "auth_month")
  517 + ->textInput()
  518 + ->label(
  519 + \Yii::t(
  520 + 'app',
  521 + 'info_auth_month'
  522 + )
  523 + )?>
  524 + </div>
  525 +
  526 + <div class="col-md-6">
  527 + <?=$form->field($feedback, "auth_pwr_all")
  528 + ->textInput()
  529 + ->label(
  530 + \Yii::t(
  531 + 'app',
  532 + 'info_auth_pwr_all'
  533 + )
  534 + )?>
  535 + <?=$form->field($feedback, "auth_pwr_days")
  536 + ->textInput()
  537 + ->label(
  538 + \Yii::t(
  539 + 'app',
  540 + 'info_auth_pwr_days'
  541 + )
  542 + )?>
  543 + </div>
  544 + </div>
  545 + </div>
  546 + </div>
  547 + </div>
  548 + </div>
  549 +
  550 + <p class="text-center submit-wr">
  551 + <button type="submit" class="send-form btn btn-lg btn-template-primary"><?= \Yii::t(
  552 + 'app',
  553 + 'info_calculate'
  554 + ) ?></button>
  555 + </p>
  556 +
  557 + <?php $form::end()?>
  558 +
  559 + </div>
561 560 </div>
562   - </div>
563 561 </div>
564   - </div>
565 562 </div>
  563 +
  564 + <!-- ** Calculate Modal End ** -->
566 565  
567   - <p class="text-center submit-wr">
568   - <button type="submit" class="send-form btn btn-lg btn-template-primary"><?= \Yii::t(
569   - 'app',
570   - 'info_calculate'
571   - ) ?></button>
572   - </p>
573   -
574   - <?php $form::end() ?>
575   -
576   - </div>
577   - </div>
578   - </div>
579   - </div>
580   -
581   - <!-- ** Calculate Modal End ** -->
582   -
583   - <!-- *** FeedBack MODAL ***
584   -_________________________________________________________ -->
585   -
586   - <div class="modal fade" id="success-modal" tabindex="-1" role="dialog" aria-labelledby="Success" aria-hidden="true">
587   - <div class="modal-dialog">
588   -
589   - <div class="modal-content">
590   - <div class="modal-header">
591   - <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times</button>
592   - <h3 class="modal-title" id="Success"><?= \Yii::t('app', 'Success') ?></h3>
593   - </div>
594   - <div class="modal-body">
  566 + <!-- *** FeedBack MODAL ***
  567 + _________________________________________________________ -->
595 568  
596   - <p><?= \Yii::t('app', 'reply_thanks') ?></p>
597   - <p class="text-center">
598   - <button type="button" class="btn btn-template-primary" data-dismiss="modal"><?= \Yii::t(
599   - 'app',
600   - 'modal_close'
601   - ) ?></button>
602   - </p>
603   - </div>
604   - </div>
605   - </div>
606   - </div>
607   -
608   - <!-- *** FeedBack MODAL END *** -->
609   -
610   - <!-- *** Breadcrumbs *** -->
611   - <?php
612   - if (!$isHome and \Yii::$app->request->getUrl() !== Url::toRoute(
613   - [ 'site/legal' ]
614   - ) and \Yii::$app->request->getUrl() !== Url::toRoute([ 'site/individual' ])) {
615   - ?>
616   - <div id="heading-breadcrumbs">
617   - <div class="container">
618   - <div class="row">
619   - <div class="col-md-7">
620   - <h1>
621   - <?php
622   - if (Yii::$app->controller->id === $default_controller || Yii::$app->controller->action->id === $controller->defaultAction || Yii::$app->controller->action->id === 'search') {
623   - echo ( isset($this->params[ 'h1' ]) ) ? $this->params[ 'h1' ] : "put \$this->params['h1'] in " . Yii::$app->controller->id . "/" . Yii::$app->controller->action->id . " view file";
624   - } else {
625   - echo $seo->h1 ?? "put h1 in adminka in alias";
626   - }
627   -
628   - ?>
629   - </h1>
630   - </div>
631   - <div class="col-md-5">
632   - <?= Breadcrumbs::widget(
633   - [
634   - 'links' => isset($this->params[ 'breadcrumbs' ]) ? $this->params[ 'breadcrumbs' ] : [],
635   - 'homeLink' => [
636   - 'label' => \Yii::t('app', "Home"),
637   - 'url' => \Yii::$app->homeUrl . \artbox\core\models\Language::getCurrent()->url,
638   - ],
639   - ]
640   - ) ?>
641   -
642   - </div>
  569 + <div class="modal fade" id="success-modal" tabindex="-1" role="dialog" aria-labelledby="Success" aria-hidden="true">
  570 + <div class="modal-dialog">
  571 +
  572 + <div class="modal-content">
  573 + <div class="modal-header">
  574 + <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times</button>
  575 + <h3 class="modal-title" id="Success"><?=\Yii::t('app', 'Success')?></h3>
  576 + </div>
  577 + <div class="modal-body">
  578 +
  579 + <p><?=\Yii::t('app', 'reply_thanks')?></p>
  580 + <p class="text-center">
  581 + <button type="button" class="btn btn-template-primary" data-dismiss="modal"><?=\Yii::t('app', 'modal_close')?></button>
  582 + </p>
  583 + </div>
  584 + </div>
643 585 </div>
644   - </div>
645 586 </div>
646   - <?php
647   - }
648   - ?>
649   - <!-- *** Breadcrumbs END *** -->
650   -
651   -
652   - <?= $content ?>
653   -
654   - <!-- *** FOOTER ***
655   -_________________________________________________________ -->
656   -
657   - <footer id="footer">
658   - <div class="container">
659   - <div class="col-md-5 col-sm-12">
  587 +
  588 + <!-- *** FeedBack MODAL END *** -->
  589 +
  590 + <!-- *** Breadcrumbs *** -->
660 591 <?php
661   - if (!empty($settings->about)) {
  592 + if (
  593 + !$isHome and
  594 + \Yii::$app->request->getUrl() !== Url::toRoute(['site/legal']) and
  595 + \Yii::$app->request->getUrl() !== Url::toRoute(['site/individual'])
  596 + ) {
662 597 ?>
663   - <h4><?php echo \Yii::t('app', 'About us'); ?></h4>
664   - <p style="max-width: 300px;"><?php echo \Yii::t('app', $settings->about); ?></p>
  598 + <div id="heading-breadcrumbs">
  599 + <div class="container">
  600 + <div class="row">
  601 + <div class="col-md-7">
  602 + <h1>
  603 + <?php
  604 + if (
  605 + Yii::$app->controller->id === $default_controller ||
  606 + Yii::$app->controller->action->id === $controller->defaultAction ||
  607 + Yii::$app->controller->action->id === 'search'
  608 + ){
  609 + echo (isset($this->params['h1'])) ?
  610 + $this->params['h1'] :
  611 + "put \$this->params['h1'] in " . Yii::$app->controller->id . "/" . Yii::$app->controller->action->id . " view file";
  612 + }
  613 + else {
  614 + echo $seo->h1 ?? "put h1 in adminka in alias";
  615 + }
  616 +
  617 + ?>
  618 + </h1>
  619 + </div>
  620 + <div class="col-md-5">
  621 + <?= Breadcrumbs::widget(
  622 + [
  623 + 'links' => isset($this->params[ 'breadcrumbs' ]) ? $this->params[ 'breadcrumbs' ] : [],
  624 + 'homeLink' => [
  625 + 'label' => \Yii::t('app', "Home"),
  626 + 'url' => \Yii::$app->homeUrl . \artbox\core\models\Language::getCurrent()->url
  627 + ]
  628 + ]
  629 + ) ?>
  630 +
  631 + </div>
  632 + </div>
  633 + </div>
  634 + </div>
665 635 <?php
666 636 }
667 637 ?>
668   - <a href="#" class="btn btn-template-transparent-primary" data-toggle="modal" data-target="#feedback-modal"><?php echo \Yii::t(
669   - 'app',
670   - 'Contact us'
671   - ); ?></a>
672   - <div class="bottom-text-in hidden-sm hidden-xs">
673   - <p class="pull-left">
674   - <a href="//artweb.ua" class="copylink"><?= \Yii::t('app', 'copylink') ?></a>
675   - &copy; <?= date(
676   - 'Y'
677   - ) ?>. <?= $settings->name; ?>. <?= \Yii::t('app', 'footer_all_rights') ?>.<br/>
678   - <?= \Yii::t('app', 'footer_using_mats') ?>.</p>
679   - </div>
680   - </div>
681   -
682   - <div class="col-md-3 col-sm-12">
683   - <h4><?php echo \Yii::t('app', 'NewsFollow'); ?></h4>
684   - <div class="social-logos">
  638 + <!-- *** Breadcrumbs END *** -->
  639 +
  640 +
  641 + <?= $content ?>
  642 +
  643 + <!-- *** FOOTER ***
  644 + _________________________________________________________ -->
  645 +
  646 + <footer id="footer">
  647 + <div class="container">
  648 + <div class="col-md-5 col-sm-12">
  649 + <?php
  650 + if (!empty($settings->about)) {
  651 + ?>
  652 + <h4><?php echo \Yii::t('app', 'About us'); ?></h4>
  653 + <p style="max-width: 300px;"><?php echo \Yii::t('app', $settings->about); ?></p>
  654 + <?php
  655 + }
  656 + ?>
  657 + <a href="#" class="btn btn-template-transparent-primary" data-toggle="modal" data-target="#feedback-modal"><?php echo \Yii::t(
  658 + 'app',
  659 + 'Contact us'
  660 + ); ?></a>
  661 + <div class="bottom-text-in hidden-sm hidden-xs">
  662 + <p class="pull-left">
  663 + <a href="//artweb.ua" class="copylink"><?=\Yii::t('app', 'copylink')?></a>
  664 + &copy; <?= date(
  665 + 'Y'
  666 + ) ?>. <?= $settings->name; ?>. <?=\Yii::t('app', 'footer_all_rights')?>.<br/>
  667 + <?=\Yii::t('app', 'footer_using_mats')?>.</p>
  668 + </div>
  669 + </div>
  670 +
  671 + <div class="col-md-3 col-sm-12">
  672 + <h4><?php echo \Yii::t('app', 'NewsFollow'); ?></h4>
  673 + <div class="social-logos">
685 674 <span>
686 675 <?php
687   - if ($settings->vk != '') {
688   - echo '<a href="' . $settings->vk . '" class="logoscnet"><i class="fa fa-vk" aria-hidden="true"></i></a>';
689   - }
690   - if ($settings->facebook != '') {
691   - echo '<a href="' . $settings->facebook . '" class="logoscnet"><i class="fa fa-facebook" aria-hidden="true"></i></a>';
692   - }
693   - if ($settings->google != '') {
694   - echo '<a href="' . $settings->google . '" class="logoscnet"><i class="fa fa-google-plus" aria-hidden="true"></i></a>';
695   - }
696   - if ($settings->twitter != '') {
697   - echo '<a href="' . $settings->twitter . '" class="logoscnet"><i class="fa fa-twitter" aria-hidden="true"></i></a>';
698   - }
  676 + if($settings->vk != '') echo '<a href="'.$settings->vk.'" class="logoscnet"><i class="fa fa-vk" aria-hidden="true"></i></a>';
  677 + if($settings->facebook != '') echo '<a href="'.$settings->facebook.'" class="logoscnet"><i class="fa fa-facebook" aria-hidden="true"></i></a>';
  678 + if($settings->google != '') echo '<a href="'.$settings->google.'" class="logoscnet"><i class="fa fa-google-plus" aria-hidden="true"></i></a>';
  679 + if($settings->twitter != '') echo '<a href="'.$settings->twitter.'" class="logoscnet"><i class="fa fa-twitter" aria-hidden="true"></i></a>';
699 680 ?>
700 681 </span>
701   - </div>
702   - </div>
703   - <div class="col-md-4 col-sm-12">
704   -
705   - <h4><?php echo \Yii::t('app', 'Contact'); ?></h4>
706   -
707   - <p>
708   - <table border="0" class="address_footer_table">
709   - <tr>
710   - <td><b><i class="fa fa-map-marker" aria-hidden="true"></i></b></td>
711   - <td>02095, <?= \Yii::t('app', $settings->country) ?>, <?= \Yii::t(
712   - 'app',
713   - 'city_short'
714   - ) ?>. <?= \Yii::t('app', $settings->city) ?> <br/><?= \Yii::t(
715   - 'app',
716   - $settings->street
717   - ) ?>, <?= \Yii::t('app', $settings->house) ?>, <?= \Yii::t('app', 'office') ?> <?= \Yii::t(
718   - 'app',
719   - $settings->office
720   - ) ?></td>
721   - </tr>
722   - <?php
723   - if (!empty($settings->phone)) {
724   - echo '<tr><td><b><i class="fa fa-phone" aria-hidden="true"></i></b></td><td><a href="tel:' . $settings->phone . '">' . $settings->phone . '</a>';
725   - if (!empty($settings->phone2)) {
726   - echo '<br/><a href="tel:' . $settings->phone2 . '">' . $settings->phone2 . '</a></td></tr>';
727   - } else {
728   - echo '</td></tr>';
729   - }
730   - }
731   - ?>
732   - <tr>
733   - <td><b><i class="fa fa-envelope" aria-hidden="true"></i></b></td>
734   - <td><a href="mailto:<?= $settings->email ?>"><?= $settings->email ?></td>
735   - </tr>
736   - </table>
737   - </p>
738   - <!-- --><?php
739   - // if (!empty($settings->office)) {
740   - // echo \Yii::t(
741   - // 'app',
742   - // 'Office {office}',
743   - // [
744   - // 'office' => $settings->office,
745   - // ]
746   - // ) . Html::tag('br');
747   - // }
748   - // if (!empty($settings->street)) {
749   - // echo $settings->street;
750   - // if (!empty($settings->house)) {
751   - // echo " " . $settings->house;
752   - // }
753   - // echo Html::tag('br');
754   - // }
755   - // if (!empty($settings->city)) {
756   - // echo $settings->city;
757   - // echo Html::tag('br');
758   - // }
759   - // if (!empty($settings->country)) {
760   - // echo Html::tag('strong', $settings->country);
761   - // }
762   - // ?>
  682 + </div>
  683 + </div>
  684 + <div class="col-md-4 col-sm-12">
  685 +
  686 + <h4><?php echo \Yii::t('app', 'Contact'); ?></h4>
  687 +
  688 + <p>
  689 + <table border="0" class="address_footer_table">
  690 + <tr><td><b><i class="fa fa-map-marker" aria-hidden="true"></i></b></td><td>02095, <?=\Yii::t('app', $settings->country)?>, <?=\Yii::t('app', 'city_short')?>. <?=\Yii::t('app', $settings->city)?> <br/><?=\Yii::t('app', $settings->street)?>, <?=\Yii::t('app', $settings->house)?>, <?=\Yii::t('app', 'office')?> <?=\Yii::t('app', $settings->office)?></td></tr>
  691 + <?php
  692 + if(!empty($settings->phone)){
  693 + echo '<tr><td><b><i class="fa fa-phone" aria-hidden="true"></i></b></td><td><a href="tel:'.$settings->phone.'">'.$settings->phone.'</a>';
  694 + if(!empty($settings->phone2)){
  695 + echo '<br/><a href="tel:'.$settings->phone2.'">'.$settings->phone2.'</a></td></tr>';
  696 + }
  697 + else{
  698 + echo '</td></tr>';
  699 + }
  700 + }
  701 + ?>
  702 + <tr><td><b><i class="fa fa-envelope" aria-hidden="true"></i></b></td><td><a href="mailto:<?=$settings->email?>"><?=$settings->email?></td></tr>
  703 + </table>
  704 + </p>
  705 + <!-- --><?php
  706 + // if (!empty($settings->office)) {
  707 + // echo \Yii::t(
  708 + // 'app',
  709 + // 'Office {office}',
  710 + // [
  711 + // 'office' => $settings->office,
  712 + // ]
  713 + // ) . Html::tag('br');
  714 + // }
  715 + // if (!empty($settings->street)) {
  716 + // echo $settings->street;
  717 + // if (!empty($settings->house)) {
  718 + // echo " " . $settings->house;
  719 + // }
  720 + // echo Html::tag('br');
  721 + // }
  722 + // if (!empty($settings->city)) {
  723 + // echo $settings->city;
  724 + // echo Html::tag('br');
  725 + // }
  726 + // if (!empty($settings->country)) {
  727 + // echo Html::tag('strong', $settings->country);
  728 + // }
  729 + // ?>
  730 +
  731 + <?= Html::a(
  732 + \Yii::t('app', 'Go to contact page'),
  733 + [ 'site/contact' ],
  734 + [
  735 + 'class' => 'btn btn-small btn-template-transparent-primary',
  736 + ]
  737 + ) ?>
  738 +
  739 + <hr class="hidden-md hidden-lg hidden-sm">
  740 +
  741 + </div>
  742 +
  743 +
  744 + <div class="col-md-12 bottom-text hidden-md hidden-lg">
  745 + <a href="//artweb.ua" class="copylink mobile-cp"><?=\Yii::t('app', 'copylink')?></a>
  746 + <p class="pull-left">&copy; <?= date(
  747 + 'Y'
  748 + ) ?>. <?= $settings->name; ?>. <?=\Yii::t('app', 'footer_all_rights')?>.<br/>
  749 + <?=\Yii::t('app', 'footer_using_mats')?>.</p>
  750 + </div>
  751 + </div>
  752 + <!-- /.container -->
  753 + </footer>
  754 + <!-- /#footer -->
  755 +
  756 + <!-- *** FOOTER END *** -->
763 757  
764   - <?= Html::a(
765   - \Yii::t('app', 'Go to contact page'),
766   - [ 'site/contact' ],
767   - [
768   - 'class' => 'btn btn-small btn-template-transparent-primary',
769   - ]
770   - ) ?>
771   -
772   - <hr class="hidden-md hidden-lg hidden-sm">
  758 + <span id="back-to-top" title="<?=\Yii::t('app', 'Back to top')?>"><i class="fa fa-arrow-up"></i></span>
773 759  
774 760 </div>
  761 + <script id="dsq-count-scr" src="//http-t13-artweb-com-ua.disqus.com/count.js" async></script>
  762 +<!-- <script id="dsq-count-scr" src="//new-kbenergy-test.disqus.com/count.js" async></script>-->
775 763  
776   -
777   - <div class="col-md-12 bottom-text hidden-md hidden-lg">
778   - <a href="//artweb.ua" class="copylink mobile-cp"><?= \Yii::t('app', 'copylink') ?></a>
779   - <p class="pull-left">&copy; <?= date(
780   - 'Y'
781   - ) ?>. <?= $settings->name; ?>. <?= \Yii::t('app', 'footer_all_rights') ?>.<br/>
782   - <?= \Yii::t('app', 'footer_using_mats') ?>.</p>
783   - </div>
784   - </div>
785   - <!-- /.container -->
786   - </footer>
787   - <!-- /#footer -->
788   -
789   - <!-- *** FOOTER END *** -->
790   -
791   - <span id="back-to-top" title="<?= \Yii::t('app', 'Back to top') ?>"><i class="fa fa-arrow-up"></i></span>
792   -
793   - </div>
794   - <script id="dsq-count-scr" src="//http-t13-artweb-com-ua.disqus.com/count.js" async></script>
795   - <!-- <script id="dsq-count-scr" src="//new-kbenergy-test.disqus.com/count.js" async></script>-->
796   -
797   - <!-- /#all -->
798   - <?php $this->endBody() ?>
799   - </body>
800   - </html>
  764 + <!-- /#all -->
  765 + <?php $this->endBody() ?>
  766 + </body>
  767 + </html>
801 768 <?php $this->endPage() ?>
802 769 \ No newline at end of file
... ...