main.php
6.77 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
<?php
/**
* @var View $this
* @var string $content
* @var SeoComponent $seo
* @var User $user
* @var PageCategory[] $pageCategories
* @var \artbox\core\forms\Module $module;
*/
use artbox\core\components\SeoComponent;
use artbox\core\models\PageCategory;
use artbox\core\models\User;
use yii\bootstrap\Html;
use yii\web\View;
use frontend\widgets\LanguageWidget;
use common\models\Settings;
$seo=\Yii::$app->get('seo');
\frontend\assets\AppAsset::register($this);
$settings = Settings::getInstance();
?>
<?php $this->beginPage() ?>
<!DOCTYPE html>
<html lang="<?= \Yii::$app->language ?>">
<head>
<meta charset="<?= \Yii::$app->charset ?>">
<link href="https://fonts.googleapis.com/css?family=Ubuntu:400,500,700&subset=cyrillic,cyrillic-ext,latin-ext" rel="stylesheet">
<link type="image/x-icon" href="/images/favicon.ico" rel="icon">
<meta name="viewport" content="width=device-width, initial-scale=1">
<?= Html::csrfMetaTags() ?>
<title><?= Html::encode($seo->title) ?></title>
<?php $this->head() ?>
<!-- Google Tag Manager -->
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-MZGFQ2B');</script>
<!-- End Google Tag Manager -->
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-124411316-1"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-124411316-1');
</script>
</head>
<body>
<!-- Google Tag Manager (noscript) -->
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-MZGFQ2B"
height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
<!-- End Google Tag Manager (noscript) -->
<?php $this->beginBody() ?>
<header id="header_" class="section-box-header">
<div class="section-header">
<div class="container">
<div class="row">
<div class="col-xs-6 col-sm-1 col-md-2 logo-wr">
<a href="/">
<img src="/images/logo.png" alt="">
</a>
</div>
<div class="menu-header">
<ul>
<li><a href="#about" data-anchor="section-about-product"><?=\Yii::t('app','About Product');?></a></li>
<li><a href="#advantages" data-anchor="section-advantages"><?=\Yii::t('app','Advantages');?></a></li>
<li><a href="#trust" data-anchor="section-trusted"><?=\Yii::t('app','Believe Us');?></a></li>
<li><a href="#contacts" data-anchor="section-map"><?=\Yii::t('app','Contacts');?></a></li>
</ul>
</div>
<div class="mail-header">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td>
<div class="sep-lang">
<?=
LanguageWidget::widget([
'layoutCondition' => LanguageWidget::LAYOUT_UL,
'layoutAttributes' =>[
'a' =>[
'activeClass' => 'sep-lang-a'
],
],
]);
?>
</div>
<a class="mail-link_"
<?=(isset($settings->email))
?' href="mailto:'.$settings->email.'"'
:'';
?>
>
<?=($settings->email??'')?>
</a>
</td>
</tr>
</table>
</div>
<div class="phone-header">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td>
<?=(isset($settings->phone))?Html::a($settings->phone,
'tel:'.$settings->phone):'';?>
<?=(isset($settings->phone2))?Html::a($settings->phone2,
'tel:'.$settings->phone2):'';?>
</td>
</tr>
</table>
<span class="modal-link" data-event="call" data-form="callback" ><?=\Yii::t('app','Call me!');?></span>
</div>
</div>
</div>
</div>
<div class="mobile-menu-hidden" style="display: none;">
<div class="close-lang-mob">
<div class="close-mobile-menu"></div>
</div>
<div class="mobi-menu-primary">
<ul class="mobi-menu-primary-cab">
<li>
<a href="#">
<i class="icon-menu-mob icon-menu-mob-1"></i>
<p><?=\Yii::t('app','Personal office');?></p>
</a>
</li>
<li>
<a href="#">
<i class="icon-menu-mob icon-menu-mob-2"></i>
<p><?=\Yii::t('app','Preferred');?></p>
</a>
</li>
<li class="hidden-tablet-850">
<a href="#">
<i class="icon-menu-mob icon-menu-mob-3"></i>
<p><?=\Yii::t('app','Compare');?></p>
</a>
</li>
</ul>
<ul class="mobi-menu-primary-ul">
<li><a href="/ru/site/page/kontakty"><?=\Yii::t('app','Contacts');?></a></li>
<li><a href="/ru/site/page/oplata-i-dostavka"><?=\Yii::t('app','Delivery and payment');?></a></li>
<li><a href="/ru/site/page/pomosch"><?=\Yii::t('app','Support');?></a></li>
<li><a href="/ru/brand/index" class=""><?=\Yii::t('app','Brands');?></a></li>
</ul>
</div>
</div>
</header>
<?= $content ?>
<?php $this->endBody() ?>
<style>
.required label::before
{
content: "";
}
</style>
</body>
</html>
<?php $this->endPage() ?>