Commit d65644bbccf60a8299723625a1638e4fd32da095

Authored by Lex
1 parent a4d0dbe3

menu links update

Showing 1 changed file with 84 additions and 84 deletions   Show diff stats
frontend/views/layouts/main.php
1 1 <?php
2   -
  2 +
3 3 /**
4 4 * @var View $this
5 5 * @var string $content
... ... @@ -7,7 +7,7 @@
7 7 * @var User $user
8 8 * @var PageCategory[] $pageCategories
9 9 */
10   -
  10 +
11 11 use artbox\core\components\SeoComponent;
12 12 use artbox\core\helpers\ImageHelper;
13 13 use artbox\core\models\PageCategory;
... ... @@ -24,7 +24,7 @@
24 24 use yii\widgets\Breadcrumbs;
25 25 use common\models\Feedback;
26 26 use frontend\widgets\HreflangWidget;
27   -
  27 +
28 28 AppAsset::register($this);
29 29 $user = \Yii::$app->user->identity;
30 30 $seo = Yii::$app->get('seo');
... ... @@ -33,7 +33,7 @@
33 33 $controller = Yii::$app->controller;
34 34 $default_controller = Yii::$app->defaultRoute;
35 35 $isHome = ( ( $controller->id === $default_controller ) && ( $controller->action->id === $controller->defaultAction ) ) ? true : false;
36   -
  36 +
37 37 $pageCategories = PageCategory::find()
38 38 ->with(
39 39 [
... ... @@ -55,7 +55,7 @@
55 55 $logo = $logo_img->getImagePathPrivate() ?? $logo;
56 56 }
57 57 }
58   -
  58 +
59 59 $this->registerMetaTag(
60 60 [
61 61 'name' => 'description',
... ... @@ -65,36 +65,36 @@
65 65 ?>
66 66  
67 67 <?php $this->beginPage() ?>
68   -
  68 +
69 69 <!DOCTYPE html>
70 70 <html lang="<?= \Yii::$app->language ?>">
71 71 <head>
72 72 <meta charset="<?= \Yii::$app->charset ?>">
73 73 <meta name="viewport" content="width=device-width, initial-scale=1">
74 74 <?= Html::csrfMetaTags() ?>
75   -
  75 +
76 76 <?= HreflangWidget::widget()?>
77   -
  77 +
78 78 <title><?= Html::encode($seo->title) ?></title>
79 79 <link rel="icon" type="image/vnd.microsoft.icon" href="/img/favicon.ico">
80 80 <meta name="google-site-verification" content="jNf5eVCDiS81X1qJZMVpS6g0qQpaW3-e58NTUBp-JFk" />
81   - <meta name="facebook-domain-verification" content="wunmgpm88b32t96x2rxkxjc6tqdwx0" />
82   - <!-- Meta Pixel Code -->
83   -<script>
84   -!function(f,b,e,v,n,t,s)
85   -{if(f.fbq)return;n=f.fbq=function(){n.callMethod?
86   -n.callMethod.apply(n,arguments):n.queue.push(arguments)};
87   -if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0';
88   -n.queue=[];t=b.createElement(e);t.async=!0;
89   -t.src=v;s=b.getElementsByTagName(e)[0];
90   -s.parentNode.insertBefore(t,s)}(window, document,'script',
91   -'https://connect.facebook.net/en_US/fbevents.js');
92   -fbq('init', '1112360499639142');
93   -fbq('track', 'PageView');
94   -</script>
95   -<noscript><img height="1" width="1" style="display:none"
96   -src="https://www.facebook.com/tr?id=1112360499639142&ev=PageView&noscript=1"
97   -/></noscript>
  81 + <meta name="facebook-domain-verification" content="wunmgpm88b32t96x2rxkxjc6tqdwx0" />
  82 + <!-- Meta Pixel Code -->
  83 +<script>
  84 +!function(f,b,e,v,n,t,s)
  85 +{if(f.fbq)return;n=f.fbq=function(){n.callMethod?
  86 +n.callMethod.apply(n,arguments):n.queue.push(arguments)};
  87 +if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0';
  88 +n.queue=[];t=b.createElement(e);t.async=!0;
  89 +t.src=v;s=b.getElementsByTagName(e)[0];
  90 +s.parentNode.insertBefore(t,s)}(window, document,'script',
  91 +'https://connect.facebook.net/en_US/fbevents.js');
  92 +fbq('init', '1112360499639142');
  93 +fbq('track', 'PageView');
  94 +</script>
  95 +<noscript><img height="1" width="1" style="display:none"
  96 +src="https://www.facebook.com/tr?id=1112360499639142&ev=PageView&noscript=1"
  97 +/></noscript>
98 98 <!-- End Meta Pixel Code -->
99 99 <?php $this->head() ?>
100 100 </head>
... ... @@ -134,7 +134,7 @@ src=&quot;https://www.facebook.com/tr?id=1112360499639142&amp;ev=PageView&amp;noscript=1&quot;
134 134 $langs_head = str_replace($this_lang." / ","",$langs_head);
135 135 // ัƒะดะฐะปัะตั‚ ะฟะพัะปะตะดะฝะธะน "/" ะฒ ััั‹ะปะบะต ั‚ัะณะฐ, ะฟะพัะปะต ััั‹ะปะบะธ ั‚ัะณ ะทะฐะบั€ั‹ะฒะฐะตั‚ัั
136 136 $langs_head = str_replace("/\">", "\">", $langs_head);
137   -
  137 +
138 138 echo "<span class='active_lang'>$this_lang</span>".$langs_head;
139 139 ?>
140 140 </div>
... ... @@ -150,12 +150,12 @@ src=&quot;https://www.facebook.com/tr?id=1112360499639142&amp;ev=PageView&amp;noscript=1&quot;
150 150 <!-- *** NAVBAR ***
151 151 _________________________________________________________ -->
152 152 <div class="navbar-affixed-top" data-spy="affix" data-offset-top="200">
153   -
  153 +
154 154 <div class="navbar navbar-default yamm" role="navigation" id="navbar">
155   -
  155 +
156 156 <div class="container">
157 157 <div class="navbar-header">
158   -
  158 +
159 159 <!-- <a class="navbar-brand home" href="--><?//= rtrim(Url::to(['site/index']), "/") ?><!--">-->
160 160 <a class="navbar-brand home" href="/<?=$this_lang?>">
161 161 <img
... ... @@ -173,7 +173,7 @@ src=&quot;https://www.facebook.com/tr?id=1112360499639142&amp;ev=PageView&amp;noscript=1&quot;
173 173 </button>
174 174 </div>
175 175 </div>
176   -
  176 +
177 177 <div class="navbar-collapse collapse" id="navigation">
178 178 <?php
179 179 $items = [];
... ... @@ -187,7 +187,7 @@ src=&quot;https://www.facebook.com/tr?id=1112360499639142&amp;ev=PageView&amp;noscript=1&quot;
187 187 ];
188 188 $items[] = [
189 189 'label' => \Yii::t('app', 'menu-legal'),
190   - 'url' => [ 'site/legal' ],
  190 + 'url' => 'https://business-solarstations.' . parse_url(Yii::$app->request->getHostInfo(), PHP_URL_HOST),
191 191 ];
192 192 $items[] = [
193 193 'label' => \Yii::t('app', 'menu-objects'),
... ... @@ -223,7 +223,7 @@ src=&quot;https://www.facebook.com/tr?id=1112360499639142&amp;ev=PageView&amp;noscript=1&quot;
223 223 array_splice( $items, $position, 0, $toInsert );
224 224 }
225 225 }
226   -
  226 +
227 227 echo Nav::widget(
228 228 [
229 229 'items' => $items,
... ... @@ -234,10 +234,10 @@ src=&quot;https://www.facebook.com/tr?id=1112360499639142&amp;ev=PageView&amp;noscript=1&quot;
234 234 );
235 235 ?>
236 236 </div>
237   -
238   -
  237 +
  238 +
239 239 <div class="collapse clearfix" id="search">
240   -
  240 +
241 241 <form class="navbar-form" role="search">
242 242 <div class="input-group">
243 243 <input type="text" class="form-control" placeholder="<?=\Yii::t('app', 'Search')?>">
... ... @@ -248,35 +248,35 @@ src=&quot;https://www.facebook.com/tr?id=1112360499639142&amp;ev=PageView&amp;noscript=1&quot;
248 248 </span>
249 249 </div>
250 250 </form>
251   -
  251 +
252 252 </div>
253 253 <!--/.nav-collapse -->
254   -
  254 +
255 255 </div>
256   -
257   -
  256 +
  257 +
258 258 </div>
259 259 <!-- /#navbar -->
260   -
  260 +
261 261 </div>
262   -
  262 +
263 263 <!-- *** NAVBAR END *** -->
264   -
  264 +
265 265 </header>
266   -
  266 +
267 267 <!-- *** FeedBack MODAL ***
268 268 _________________________________________________________ -->
269   -
  269 +
270 270 <div class="modal fade" id="feedback-modal" tabindex="-1" role="dialog" aria-labelledby="Login" aria-hidden="true">
271 271 <div class="modal-dialog">
272   -
  272 +
273 273 <div class="modal-content">
274 274 <div class="modal-header">
275 275 <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times</button>
276 276 <h3 class="modal-title" id="Login"><?=\Yii::t('app', 'feedback1')?></h3>
277 277 </div>
278 278 <div class="modal-body">
279   -
  279 +
280 280 <?php $form = ActiveForm::begin(
281 281 [
282 282 'id' => 'feedback-form',
... ... @@ -284,26 +284,26 @@ src=&quot;https://www.facebook.com/tr?id=1112360499639142&amp;ev=PageView&amp;noscript=1&quot;
284 284 'action' => '/site/feedback',
285 285 ]
286 286 ); ?>
287   -
  287 +
288 288 <?= $form->field($feedback, 'topic')
289 289 ->hiddenInput(['value' => Feedback::SCENARIO_FEEDBACK])
290 290 ->label(false)?>
291   -
  291 +
292 292 <?= $form->field($feedback, 'name')
293 293 ->textInput()
294 294 ->label(\Yii::t('app', 'name'));
295 295 ?>
296   -
  296 +
297 297 <?= $form->field($feedback, 'email')
298 298 ->textInput()
299 299 ->label(\Yii::t('app', 'email'));
300 300 ?>
301   -
  301 +
302 302 <?= $form->field($feedback, 'phone')
303 303 ->textInput()
304 304 ->label(\Yii::t('app', 'phone'));
305 305 ?>
306   -
  306 +
307 307 <?= $form->field($feedback, 'message')
308 308 ->textarea(
309 309 [
... ... @@ -312,7 +312,7 @@ src=&quot;https://www.facebook.com/tr?id=1112360499639142&amp;ev=PageView&amp;noscript=1&quot;
312 312 )
313 313 ->label(\Yii::t('app', 'message'));
314 314 ?>
315   -
  315 +
316 316 <p class="text-center">
317 317 <?= Html::submitButton(
318 318 \Yii::t('app', 'send1'),
... ... @@ -321,14 +321,14 @@ src=&quot;https://www.facebook.com/tr?id=1112360499639142&amp;ev=PageView&amp;noscript=1&quot;
321 321 ]
322 322 ) ?>
323 323 </p>
324   -
  324 +
325 325 <?php ActiveForm::end(); ?>
326   -
  326 +
327 327 </div>
328 328 </div>
329 329 </div>
330 330 </div>
331   -
  331 +
332 332 <!-- *** FeedBack MODAL END *** -->
333 333  
334 334 <!-- ** Calculate Modal ** -->
... ... @@ -341,10 +341,10 @@ src=&quot;https://www.facebook.com/tr?id=1112360499639142&amp;ev=PageView&amp;noscript=1&quot;
341 341 <h3 class="modal-title text-center" id="Login"></h3>
342 342 </div>
343 343 <div class="modal-body">
344   -
  344 +
345 345 <?php
346 346 $feedback = new Feedback(['scenario' => Feedback::SCENARIO_CALCULATOR]);
347   -
  347 +
348 348 $form = ActiveForm::begin(
349 349 [
350 350 'id' => 'calculate-form',
... ... @@ -353,7 +353,7 @@ src=&quot;https://www.facebook.com/tr?id=1112360499639142&amp;ev=PageView&amp;noscript=1&quot;
353 353 ]
354 354 );
355 355 ?>
356   -
  356 +
357 357 <div class="row calculate-main-wr" style="padding-top: 25px;">
358 358 <div class="col-md-10 col-md-offset-1" style="margin-top: -10px;margin-bottom: -5px;">
359 359 <div style="width:100%;max-width: 920px;margin:0 auto;">
... ... @@ -571,36 +571,36 @@ src=&quot;https://www.facebook.com/tr?id=1112360499639142&amp;ev=PageView&amp;noscript=1&quot;
571 571 </div>
572 572 </div>
573 573 </div>
574   -
  574 +
575 575 <p class="text-center submit-wr">
576 576 <button type="submit" class="send-form btn btn-lg btn-template-primary"><?= \Yii::t(
577 577 'app',
578 578 'info_calculate'
579 579 ) ?></button>
580 580 </p>
581   -
  581 +
582 582 <?php $form::end()?>
583   -
  583 +
584 584 </div>
585 585 </div>
586 586 </div>
587 587 </div>
588 588  
589 589 <!-- ** Calculate Modal End ** -->
590   -
  590 +
591 591 <!-- *** FeedBack MODAL ***
592 592 _________________________________________________________ -->
593   -
  593 +
594 594 <div class="modal fade" id="success-modal" tabindex="-1" role="dialog" aria-labelledby="Success" aria-hidden="true">
595 595 <div class="modal-dialog">
596   -
  596 +
597 597 <div class="modal-content">
598 598 <div class="modal-header">
599 599 <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times</button>
600 600 <h3 class="modal-title" id="Success"><?=\Yii::t('app', 'Success')?></h3>
601 601 </div>
602 602 <div class="modal-body">
603   -
  603 +
604 604 <p><?=\Yii::t('app', 'reply_thanks')?></p>
605 605 <p class="text-center">
606 606 <button type="button" class="btn btn-template-primary" data-dismiss="modal"><?=\Yii::t('app', 'modal_close')?></button>
... ... @@ -609,9 +609,9 @@ src=&quot;https://www.facebook.com/tr?id=1112360499639142&amp;ev=PageView&amp;noscript=1&quot;
609 609 </div>
610 610 </div>
611 611 </div>
612   -
  612 +
613 613 <!-- *** FeedBack MODAL END *** -->
614   -
  614 +
615 615 <!-- *** Breadcrumbs *** -->
616 616 <?php
617 617 if (
... ... @@ -638,7 +638,7 @@ src=&quot;https://www.facebook.com/tr?id=1112360499639142&amp;ev=PageView&amp;noscript=1&quot;
638 638 else {
639 639 echo $seo->h1 ?? "put h1 in adminka in alias";
640 640 }
641   -
  641 +
642 642 ?>
643 643 </h1>
644 644 </div>
... ... @@ -652,7 +652,7 @@ src=&quot;https://www.facebook.com/tr?id=1112360499639142&amp;ev=PageView&amp;noscript=1&quot;
652 652 ]
653 653 ]
654 654 ) ?>
655   -
  655 +
656 656 </div>
657 657 </div>
658 658 </div>
... ... @@ -661,10 +661,10 @@ src=&quot;https://www.facebook.com/tr?id=1112360499639142&amp;ev=PageView&amp;noscript=1&quot;
661 661 }
662 662 ?>
663 663 <!-- *** Breadcrumbs END *** -->
664   -
665   -
  664 +
  665 +
666 666 <?= $content ?>
667   -
  667 +
668 668 <!-- *** FOOTER ***
669 669 _________________________________________________________ -->
670 670  
... ... @@ -693,7 +693,7 @@ src=&quot;https://www.facebook.com/tr?id=1112360499639142&amp;ev=PageView&amp;noscript=1&quot;
693 693 <?=\Yii::t('app', 'footer_using_mats')?>.</p>
694 694 </div>
695 695 </div>
696   -
  696 +
697 697 <div class="col-md-3 col-sm-12">
698 698 <div class="h4"><?php echo \Yii::t('app', 'NewsFollow'); ?></div>
699 699 <div class="social-logos">
... ... @@ -708,7 +708,7 @@ src=&quot;https://www.facebook.com/tr?id=1112360499639142&amp;ev=PageView&amp;noscript=1&quot;
708 708 </div>
709 709 </div>
710 710 <div class="col-md-4 col-sm-12">
711   -
  711 +
712 712 <div class="h4"><?php echo \Yii::t('app', 'Contact'); ?></div>
713 713  
714 714 <p>
... ... @@ -755,7 +755,7 @@ src=&quot;https://www.facebook.com/tr?id=1112360499639142&amp;ev=PageView&amp;noscript=1&quot;
755 755 // echo Html::tag('strong', $settings->country);
756 756 // }
757 757 // ?>
758   -
  758 +
759 759 <?= Html::a(
760 760 \Yii::t('app', 'Go to contact page'),
761 761 [ 'site/contact' ],
... ... @@ -763,12 +763,12 @@ src=&quot;https://www.facebook.com/tr?id=1112360499639142&amp;ev=PageView&amp;noscript=1&quot;
763 763 'class' => 'btn btn-small btn-template-transparent-primary',
764 764 ]
765 765 ) ?>
766   -
  766 +
767 767 <hr class="hidden-md hidden-lg hidden-sm">
768   -
  768 +
769 769 </div>
770   -
771   -
  770 +
  771 +
772 772 <div class="col-md-12 bottom-text hidden-md hidden-lg">
773 773 <a href="//artweb.ua" class="copylink mobile-cp"><?=\Yii::t('app', 'copylink')?></a>
774 774 <p class="pull-left">&copy; <?= date(
... ... @@ -781,14 +781,14 @@ src=&quot;https://www.facebook.com/tr?id=1112360499639142&amp;ev=PageView&amp;noscript=1&quot;
781 781 <!-- /.container -->
782 782 </footer>
783 783 <!-- /#footer -->
784   -
  784 +
785 785 <!-- *** FOOTER END *** -->
786   -
  786 +
787 787 <span id="back-to-top" title="<?=\Yii::t('app', 'Back to top')?>"><i class="fa fa-arrow-up"></i></span>
788 788  
789 789 <script id="dsq-count-scr" src="//http-t13-artweb-com-ua.disqus.com/count.js" async></script>
790 790 <!-- <script id="dsq-count-scr" src="//new-kbenergy-test.disqus.com/count.js" async></script>-->
791   -
  791 +
792 792 <!-- Start SiteHeart code -->
793 793 <script>
794 794 (function() {
... ... @@ -807,7 +807,7 @@ src=&quot;https://www.facebook.com/tr?id=1112360499639142&amp;ev=PageView&amp;noscript=1&quot;
807 807 })();
808 808 </script>
809 809 <!-- End SiteHeart code -->
810   -
  810 +
811 811 <!-- BEGIN JIVOSITE CODE {literal} -->
812 812 <script type='text/javascript'>
813 813 (function() {
... ... @@ -835,7 +835,7 @@ src=&quot;https://www.facebook.com/tr?id=1112360499639142&amp;ev=PageView&amp;noscript=1&quot;
835 835 }
836 836 })();</script>
837 837 <!-- {/literal} END JIVOSITE CODE -->
838   -
  838 +
839 839 <!-- /#all -->
840 840  
841 841 <?php
... ...