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