a0e8d4e0
Alexey Boroda
first commit
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
<?php
/**
* @var View $this
* @var Feedback $contact
*/
use artbox\core\models\Feedback;
use common\models\Settings;
use frontend\assets\MapAsset;
use yii\helpers\Html;
use yii\bootstrap\ActiveForm;
use yii\web\View;
MapAsset::register($this);
$settings = Settings::getInstance();
|
99b10610
Eugeny Galkovskiy
Блог
|
18
|
$this->title = \Yii::t('app', 'Контакты');
|
a0e8d4e0
Alexey Boroda
first commit
|
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
$this->params[ 'breadcrumbs' ][] = $this->title;
$js = <<< JS
window.lat = {$settings->lat};
window.lon = {$settings->lon};
JS;
$this->registerJs($js, View::POS_END);
?>
<div id="content">
<div class="container" id="contact">
<section>
<div class="row">
<div class="col-md-12">
<section>
|
03d0b59c
Eugeny Galkovskiy
контакты
|
37
38
39
40
41
42
43
|
<?php
// echo '<p class="lead">Are you curious about something? Do you have some kind of problem with our products? As am hastily invited settled at limited civilly fortune me. Really spring in extent an by. Judge but built gay party world. Of so am
// he remember although required. Bachelor unpacked be advanced at. Confined in declared marianne is vicinity.</p>
// <p>Please feel free to contact us, our customer service center is working for you 24/7.</p>';
?>
|
a0e8d4e0
Alexey Boroda
first commit
|
44
45
46
47
48
49
50
|
</section>
</div>
</div>
</section>
<section>
|
f3ffc9ef
Timur Kastemirov
microdata in cont...
|
51
52
53
54
55
|
<div
class="row"
itemscope
itemtype="http://schema.org/Organization"
>
|
a0e8d4e0
Alexey Boroda
first commit
|
56
|
<div class="col-md-4">
|
f3ffc9ef
Timur Kastemirov
microdata in cont...
|
57
58
59
60
61
62
|
<div
class="box-simple"
itemprop="address"
itemscope
itemtype="http://schema.org/PostalAddress"
>
|
a0e8d4e0
Alexey Boroda
first commit
|
63
64
65
|
<div class="icon">
<i class="fa fa-map-marker"></i>
</div>
|
9b571190
Eugeny Galkovskiy
translates 1.5
|
66
|
<h3><?=\Yii::t('app', 'Адрес')?></h3>
|
a0e8d4e0
Alexey Boroda
first commit
|
67
68
69
|
<p>
<?php
if (!empty( $settings->street )) {
|
86123e25
alex
add eng translates
|
70
71
72
73
74
75
|
$notEn = (\artbox\core\models\Language::getCurrent()->url !== 'en')?true:false;
echo "<span itemprop=\"streetAddress\">".
$notEn?
$settings->street
:'m. Poznyaki, st. Sribnokilskaya'
;
|
a0e8d4e0
Alexey Boroda
first commit
|
76
77
78
|
if (!empty( $settings->house )) {
echo " " . $settings->house;
}
|
f3ffc9ef
Timur Kastemirov
microdata in cont...
|
79
|
echo "</span>";
|
a0e8d4e0
Alexey Boroda
first commit
|
80
81
82
|
echo Html::tag('br');
}
if (!empty( $settings->city )) {
|
86123e25
alex
add eng translates
|
83
84
85
86
87
|
echo "<span itemprop=\"addressLocality\">".
$notEn?$settings->city
:'Kyiv'
."</span>";
|
a0e8d4e0
Alexey Boroda
first commit
|
88
|
if (!empty( $settings->country )) {
|
86123e25
alex
add eng translates
|
89
90
91
92
93
|
echo Html::tag('strong', ", <span itemprop=\"addressCountry\">" .
$notEn?
$settings->country
:'Ukraine'
."</span>");
|
a0e8d4e0
Alexey Boroda
first commit
|
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
|
}
}
?>
</p>
</div>
<!-- /.box - simple-->
</div>
<div class="col-md-4">
<?php
if (!empty( $settings->phone )) {
?>
<div class="box-simple">
<div class="icon">
<i class="fa fa-phone"></i>
</div>
|
75f08501
alex
add eng translates
|
111
|
<h3> <?=\Yii::t('app','Телефон')?> </h3>
|
03d0b59c
Eugeny Galkovskiy
контакты
|
112
113
114
|
<?php
// echo '<p class="text-muted"> This number is toll free if calling from Great Britain otherwise we advise you to use the electronic form of communication .</p>';
?>
|
a0e8d4e0
Alexey Boroda
first commit
|
115
116
|
<p>
<?php
|
f3ffc9ef
Timur Kastemirov
microdata in cont...
|
117
118
|
echo Html::a(Html::tag('strong', "<span itemprop=\"telephone\">".$settings->phone."</span>"), 'tel:' . $settings->phone);
echo Html::tag('div', "<span itemprop=\"telephone\">".$settings->phone2."</span>");
|
a0e8d4e0
Alexey Boroda
first commit
|
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
|
?>
</p>
</div>
<!-- /.box - simple-->
<?php
}
?>
</div>
<?php
if (!empty( $settings->email )) {
?>
<div class="col-md-4">
<div class="box-simple">
<div class="icon">
<i class="fa fa-envelope"></i>
</div>
|
f37a4fe1
Eugeny Galkovskiy
14/09/17 1
|
137
|
<h3> E-mail </h3>
|
03d0b59c
Eugeny Galkovskiy
контакты
|
138
139
140
|
<?php
// echo '<p class="text-muted"> Please feel free to write an email to us or to use our electronic ticketing system .</p>';
?>
|
a0e8d4e0
Alexey Boroda
first commit
|
141
142
143
144
|
<ul class="list-style-none">
<li>
<?php
echo Html::a(
|
f3ffc9ef
Timur Kastemirov
microdata in cont...
|
145
|
Html::tag('strong', "<span itemprop=\"email\">".$settings->email."</span>"),
|
a0e8d4e0
Alexey Boroda
first commit
|
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
|
'mailto:' . $settings->email
);
?>
</li>
</ul>
</div>
<!-- /.box - simple-->
</div>
<?php
}
?>
</div>
</section>
<section>
<div class="row text-center">
<div class="col-md-12">
<div class="heading">
|
75f08501
alex
add eng translates
|
167
|
<h2> <?=\Yii::t('app', 'Связаться с нами1')?> </h2>
|
a0e8d4e0
Alexey Boroda
first commit
|
168
169
170
171
172
173
174
175
176
177
178
179
|
</div>
</div>
<div class="col-md-8 col-md-offset-2">
<?php $form = ActiveForm::begin(
[
'id' => 'contact-form',
'method' => 'POST',
'action' => '/site/feedback',
]
); ?>
<div class="row">
|
e5a10d89
Timur Kastemirov
contacts
|
180
181
182
|
<?= Html::hiddenInput('type', 'write_us');?>
|
a0e8d4e0
Alexey Boroda
first commit
|
183
184
|
<div class="col-sm-12">
<?= $form->field($contact, 'name')
|
2c3a4278
Eugeny Galkovskiy
Контакты
|
185
|
->textInput()
|
9b571190
Eugeny Galkovskiy
translates 1.5
|
186
|
->label(\Yii::t('app', 'Имя')); ?>
|
a0e8d4e0
Alexey Boroda
first commit
|
187
188
189
190
|
</div>
<div class="col-sm-6">
<?= $form->field($contact, 'email')
|
2c3a4278
Eugeny Galkovskiy
Контакты
|
191
|
->textInput()
|
75f08501
alex
add eng translates
|
192
|
->label(\Yii::t('app','Email')); ?>
|
a0e8d4e0
Alexey Boroda
first commit
|
193
194
195
|
</div>
<div class="col-sm-6">
<?= $form->field($contact, 'phone')
|
2c3a4278
Eugeny Galkovskiy
Контакты
|
196
|
->textInput()
|
75f08501
alex
add eng translates
|
197
|
->label(\Yii::t('app','Телефон')); ?>
|
a0e8d4e0
Alexey Boroda
first commit
|
198
199
200
201
202
203
204
|
</div>
<div class="col-sm-12">
<?= $form->field($contact, 'message')
->textarea(
[
'rows' => 3,
]
|
2c3a4278
Eugeny Galkovskiy
Контакты
|
205
|
)
|
9b571190
Eugeny Galkovskiy
translates 1.5
|
206
|
->label(\Yii::t('app', 'Сообщение')); ?>
|
a0e8d4e0
Alexey Boroda
first commit
|
207
208
209
210
|
</div>
<div class="col-sm-12 text-center">
<?= Html::submitButton(
|
9b571190
Eugeny Galkovskiy
translates 1.5
|
211
|
'<i class="fa fa-envelope-o"></i> '.\Yii::t('app', 'Сообщение'),
|
a0e8d4e0
Alexey Boroda
first commit
|
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
|
[
'class' => 'btn btn-template-main',
]
) ?>
</div>
</div>
<!-- /.row -->
<?php ActiveForm::end(); ?>
</div>
</div>
<!-- /.row -->
</section>
</div>
<!-- /#contact.container -->
</div>
<!-- /#content -->
<div id="map">
</div>
|