a0e8d4e0
Alexey Boroda
first commit
|
1
|
<?php
|
b949de71
alex
add eng translates
|
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
/**
* @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();
$this->title = \Yii::t('app', 'Контакты');
$this->params[ 'breadcrumbs' ][] = $this->title;
$js = <<< JS
|
a0e8d4e0
Alexey Boroda
first commit
|
22
23
24
|
window.lat = {$settings->lat};
window.lon = {$settings->lon};
JS;
|
b949de71
alex
add eng translates
|
25
26
|
$this->registerJs($js, View::POS_END);
|
a0e8d4e0
Alexey Boroda
first commit
|
27
28
29
30
|
?>
<div id="content">
<div class="container" id="contact">
|
b949de71
alex
add eng translates
|
31
|
|
a0e8d4e0
Alexey Boroda
first commit
|
32
|
<section>
|
b949de71
alex
add eng translates
|
33
|
|
a0e8d4e0
Alexey Boroda
first commit
|
34
35
36
|
<div class="row">
<div class="col-md-12">
<section>
|
03d0b59c
Eugeny Galkovskiy
контакты
|
37
|
|
b949de71
alex
add eng translates
|
38
39
40
41
42
|
<?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>';
?>
|
03d0b59c
Eugeny Galkovskiy
контакты
|
43
|
|
a0e8d4e0
Alexey Boroda
first commit
|
44
45
46
|
</section>
</div>
</div>
|
b949de71
alex
add eng translates
|
47
|
|
a0e8d4e0
Alexey Boroda
first commit
|
48
49
|
</section>
<section>
|
b949de71
alex
add eng translates
|
50
|
|
f3ffc9ef
Timur Kastemirov
microdata in cont...
|
51
|
<div
|
b949de71
alex
add eng translates
|
52
53
54
|
class="row"
itemscope
itemtype="http://schema.org/Organization"
|
f3ffc9ef
Timur Kastemirov
microdata in cont...
|
55
|
>
|
a0e8d4e0
Alexey Boroda
first commit
|
56
|
<div class="col-md-4">
|
f3ffc9ef
Timur Kastemirov
microdata in cont...
|
57
|
<div
|
b949de71
alex
add eng translates
|
58
59
60
61
|
class="box-simple"
itemprop="address"
itemscope
itemtype="http://schema.org/PostalAddress"
|
f3ffc9ef
Timur Kastemirov
microdata in cont...
|
62
|
>
|
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
|
<p>
|
b949de71
alex
add eng translates
|
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
|
<?php
$notEn = (\artbox\core\models\Language::getCurrent()->url !== 'en')?true:false;
if (!empty( $settings->street )) {
echo "<span itemprop=\"streetAddress\">";
echo ($notEn)?
$settings->street
:'m. Poznyaki, st. Sribnokilskaya'
;
if (!empty( $settings->house )) {
echo " " . $settings->house;
}
echo "</span>";
echo Html::tag('br');
}
if (!empty( $settings->city )) {
echo "<span itemprop=\"addressLocality\">";
echo
($notEn)?$settings->city
:'Kyiv'
."</span>";
if (!empty( $settings->country )) {
echo Html::tag('strong', ", <span itemprop=\"addressCountry\">" .
(($notEn)?
|
86123e25
alex
add eng translates
|
93
|
$settings->country
|
b949de71
alex
add eng translates
|
94
95
96
97
98
|
:'Ukraine')
."</span>");
}
}
?>
|
a0e8d4e0
Alexey Boroda
first commit
|
99
100
101
102
|
</p>
</div>
<!-- /.box - simple-->
</div>
|
b949de71
alex
add eng translates
|
103
104
|
|
a0e8d4e0
Alexey Boroda
first commit
|
105
|
<div class="col-md-4">
|
b949de71
alex
add eng translates
|
106
107
108
109
110
111
|
<?php
if (!empty( $settings->phone )) {
?>
<div class="box-simple">
<div class="icon">
<i class="fa fa-phone"></i>
|
a0e8d4e0
Alexey Boroda
first commit
|
112
|
</div>
|
b949de71
alex
add eng translates
|
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
|
<h3> <?=\Yii::t('app','Телефон')?> </h3>
<?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>';
?>
<p>
<?php
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>");
?>
</p>
</div>
<!-- /.box - simple-->
<?php
}
?>
|
a0e8d4e0
Alexey Boroda
first commit
|
128
|
</div>
|
b949de71
alex
add eng translates
|
129
130
131
132
133
134
135
136
137
|
<?php
if (!empty( $settings->email )) {
?>
<div class="col-md-4">
<div class="box-simple">
<div class="icon">
<i class="fa fa-envelope"></i>
|
a0e8d4e0
Alexey Boroda
first commit
|
138
|
</div>
|
b949de71
alex
add eng translates
|
139
140
141
142
143
144
145
146
147
148
149
150
151
152
|
<h3> E-mail </h3>
<?php
// echo '<p class="text-muted"> Please feel free to write an email to us or to use our electronic ticketing system .</p>';
?>
<ul class="list-style-none">
<li>
<?php
echo Html::a(
Html::tag('strong', "<span itemprop=\"email\">".$settings->email."</span>"),
'mailto:' . $settings->email
);
?>
</li>
</ul>
|
a0e8d4e0
Alexey Boroda
first commit
|
153
|
</div>
|
b949de71
alex
add eng translates
|
154
155
156
157
158
|
<!-- /.box - simple-->
</div>
<?php
}
?>
|
a0e8d4e0
Alexey Boroda
first commit
|
159
|
</div>
|
b949de71
alex
add eng translates
|
160
|
|
a0e8d4e0
Alexey Boroda
first commit
|
161
|
</section>
|
b949de71
alex
add eng translates
|
162
|
|
a0e8d4e0
Alexey Boroda
first commit
|
163
|
<section>
|
b949de71
alex
add eng translates
|
164
|
|
a0e8d4e0
Alexey Boroda
first commit
|
165
|
<div class="row text-center">
|
b949de71
alex
add eng translates
|
166
|
|
a0e8d4e0
Alexey Boroda
first commit
|
167
168
|
<div class="col-md-12">
<div class="heading">
|
75f08501
alex
add eng translates
|
169
|
<h2> <?=\Yii::t('app', 'Связаться с нами1')?> </h2>
|
a0e8d4e0
Alexey Boroda
first commit
|
170
171
|
</div>
</div>
|
b949de71
alex
add eng translates
|
172
|
|
a0e8d4e0
Alexey Boroda
first commit
|
173
|
<div class="col-md-8 col-md-offset-2">
|
b949de71
alex
add eng translates
|
174
175
176
177
178
179
180
|
<?php $form = ActiveForm::begin(
[
'id' => 'contact-form',
'method' => 'POST',
'action' => '/site/feedback',
]
); ?>
|
a0e8d4e0
Alexey Boroda
first commit
|
181
|
<div class="row">
|
b949de71
alex
add eng translates
|
182
183
184
|
<?= Html::hiddenInput('type', 'write_us');?>
|
a0e8d4e0
Alexey Boroda
first commit
|
185
|
<div class="col-sm-12">
|
b949de71
alex
add eng translates
|
186
187
188
|
<?= $form->field($contact, 'name')
->textInput()
->label(\Yii::t('app', 'Имя')); ?>
|
a0e8d4e0
Alexey Boroda
first commit
|
189
|
</div>
|
b949de71
alex
add eng translates
|
190
|
|
a0e8d4e0
Alexey Boroda
first commit
|
191
|
<div class="col-sm-6">
|
b949de71
alex
add eng translates
|
192
193
194
|
<?= $form->field($contact, 'email')
->textInput()
->label(\Yii::t('app','Email')); ?>
|
a0e8d4e0
Alexey Boroda
first commit
|
195
196
|
</div>
<div class="col-sm-6">
|
b949de71
alex
add eng translates
|
197
198
199
|
<?= $form->field($contact, 'phone')
->textInput()
->label(\Yii::t('app','Телефон')); ?>
|
a0e8d4e0
Alexey Boroda
first commit
|
200
201
|
</div>
<div class="col-sm-12">
|
b949de71
alex
add eng translates
|
202
203
204
205
206
207
208
|
<?= $form->field($contact, 'message')
->textarea(
[
'rows' => 3,
]
)
->label(\Yii::t('app', 'Сообщение')); ?>
|
a0e8d4e0
Alexey Boroda
first commit
|
209
|
</div>
|
b949de71
alex
add eng translates
|
210
|
|
a0e8d4e0
Alexey Boroda
first commit
|
211
|
<div class="col-sm-12 text-center">
|
b949de71
alex
add eng translates
|
212
213
214
215
216
217
218
|
<?= Html::submitButton(
'<i class="fa fa-envelope-o"></i> '.\Yii::t('app', 'Сообщение'),
[
'class' => 'btn btn-template-main',
]
) ?>
|
a0e8d4e0
Alexey Boroda
first commit
|
219
220
221
|
</div>
</div>
<!-- /.row -->
|
b949de71
alex
add eng translates
|
222
|
<?php ActiveForm::end(); ?>
|
a0e8d4e0
Alexey Boroda
first commit
|
223
224
225
|
</div>
</div>
<!-- /.row -->
|
b949de71
alex
add eng translates
|
226
|
|
a0e8d4e0
Alexey Boroda
first commit
|
227
|
</section>
|
b949de71
alex
add eng translates
|
228
229
|
|
a0e8d4e0
Alexey Boroda
first commit
|
230
231
232
233
234
235
236
237
|
</div>
<!-- /#contact.container -->
</div>
<!-- /#content -->
<div id="map">
</div>
|