-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpage-about.php
298 lines (279 loc) · 7.83 KB
/
page-about.php
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
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
<?php
/**
* The template for displaying about page
*
* This is the template that displays all pages by default.
* Please note that this is the WordPress construct of pages
* and that other 'pages' on your WordPress site may use a
* different template.
*
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/
*
* @package poligon22
*/
get_header();
?>
<main id="main" class="is-main about">
<section class="is-breadcrumbs">
<div class="container">
<div class="row">
<div class="col-lg-12">
<nav aria-label="breadcrumb">
<?php
if ( function_exists('yoast_breadcrumb') ) {
yoast_breadcrumb( '<ol style="margin-left:0px;" class="breadcrumb bc-yoast">','</ol>' );
}
?>
</nav>
</div>
</div>
</div>
</section>
<section class="is-info">
<div class="container">
<div class="row">
<div class="col-md-6">
<h2>
О нас
</h2>
<? the_content(); ?>
</div>
</div>
</div>
</section>
<section class="is-weapons">
<div class="container">
<div class="row">
<div class="col-lg-9">
<h2>
Большой арсенал оружия
</h2>
</div>
<div class="col-lg-3">
<a href="<? echo get_category_link(5); ?>" class="btn view btn-block text-right">
<span style="border-bottom:none">
Смотреть все оружие
</span>
</a>
</div>
</div>
<div class="row mt-5">
<?
$args = array(
'posts_per_page' => 3,
'category__in' => 5
);
$query = new WP_Query( $args );
if ( $query->have_posts() ) {
while ( $query->have_posts() ) {
$query->the_post();
?>
<div class="col-md-6 col-lg-4 mb-3">
<a href="<? the_permalink(); ?>">
<div class="card">
<div class="img-block">
<img src="<? the_field('weapon_img'); ?>" alt="<? the_title(); ?>" class="img-fluid">
</div>
<a href="<? the_permalink(); ?>" class="title">
<? the_title(); ?>
</a>
<span class="btn plus">
<svg width="11" height="11" viewBox="0 0 11 11" fill="none" xmlns="http://www.w3.org/2000/svg">
<line x1="5.5" y1="11" x2="5.5" y2="2.18557e-08" stroke="#84AF5A"/>
<line x1="11" y1="5.5" x2="-4.37113e-08" y2="5.5" stroke="#84AF5A"/>
</svg>
</span>
</div>
</a>
</div>
<?;
}
} else {
}
wp_reset_postdata();
?>
</div>
<div class="row">
<div class="col-md-12 d-flex justify-content-center">
<a
class="btn order mt-4 mx-auto"
type="button"
data-toggle="modal"
data-target="#order-game"
>
Заказать игру
</a>
</div>
</div>
</div>
</section>
<section class="is-selection">
<div class="container">
<div class="row">
<div class="col-md-12">
<h2>
Тематические площадки
</h2>
</div>
</div>
<div class="row mt-5">
<?
$args = array(
'posts_per_page' => 9,
'category__in' => 6
);
$query = new WP_Query( $args );
if ( $query->have_posts() ) {
while ( $query->have_posts() ) {
$query->the_post();
?>
<div class="col-md-6 col-lg-4 mb-3">
<div class="card bg-image hover-overlay">
<div class="img">
<img src="<? the_field('platform_img'); ?>" alt="" class="">
<div class="mask"
></div>
</div>
<a href="#" class="btn plus">
+
</a>
<div class="bordered-frame-top"></div>
<div class="bordered-frame-bottom"></div>
<div class="bordered-frame-left"></div>
<div class="bordered-frame-right"></div>
<a href="<? the_permalink(); ?>" class="title">
<? the_title(); ?>
</a>
</div>
</div>
<?;
}
} else {
}
wp_reset_postdata();
?>
</div>
<div class="row mt-4">
<div class="col-md-6 col-lg-4 view-block">
<a href="<? the_permalink(1279); ?>" class="btn variants btn-block">
<img src="<? echo get_template_directory_uri() . '/assets/img/selection_variants.svg' ?>" alt="">
<p class="first">
Смотреть
</p>
<p class="second">
Варианты сценариев
</p>
</a>
</div>
<div class="col-md-6 offset-lg-4 col-lg-4">
<a href="<? echo get_category_link(6); ?>" class="btn view">
Смотреть все площадки
</a>
</div>
</div>
</div>
</section>
<section class="is-certificates">
<div class="container">
<div class="row title-block" style="margin-bottom: -4.5rem;">
<div class="col-lg-6">
<h2>
Почетные грамоты
</h2>
<h3>
и благодарственные письма
</h3>
</div>
<div class="offset-lg-3 col-lg-3"></div>
</div>
<div class="row">
<div class="col-lg-12">
<div class="uk-position-relative uk-light" style="padding-top: 9rem;" tabindex="-1" uk-slider>
<ul class="uk-slider-items uk-child-width-1 uk-child-width-1-4@m uk-grid">
<?php while ( have_rows('about_certificates') ) : the_row(); ?>
<li data-fancybox="certificatesGalery" href="<? the_sub_field('image'); ?>">
<div class="uk-panel">
<img src="<? the_sub_field('image'); ?>" alt="" class="mb-2">
<div class="text">
<div class="content">
<p>
<? the_sub_field('description'); ?>
</p>
</div>
</div>
</div>
</li>
<?php endwhile; ?>
</ul>
<a class="uk-position-small" href="#" uk-slidenav-previous uk-slider-item="previous"></a>
<a class="uk-position-small" href="#" uk-slidenav-next uk-slider-item="next"></a>
<ul class="uk-slider-nav uk-dotnav"></ul>
</div>
</div>
</div>
<div class="row mt-4">
<div class="col-md-12 content">
<? the_field('about_certificates_info'); ?>
</div>
</div>
<div class="row mt-4">
<div class="col-md-12 d-flex justify-content-center">
<a
class="btn request mx-auto"
type="button"
data-toggle="modal"
data-target="#order-game"
>
Оставить заявку на игру
</a>
</div>
</div>
</div>
</section>
<section class="is-partners container-xxl container-xl container">
<div class="row title-block" style="margin-bottom: -4.5rem;">
<div class="col-lg-6">
<h2>
С нами играют
</h2>
</div>
<div class="offset-lg-3 col-lg-3"></div>
</div>
<div class="row">
<div class="col-lg-12">
<div class="uk-position-relative uk-light" style="padding-top: 9rem;" tabindex="-1" uk-slider>
<ul class="uk-slider-items uk-child-width-1-2 uk-child-width-1-6@m uk-grid">
<?php while ( have_rows('about_partners') ) : the_row(); ?>
<li>
<div class="uk-panel">
<img src="<? the_sub_field('logo'); ?>" alt="">
</div>
</li>
<?php endwhile; ?>
</ul>
<a class="uk-position-small" href="#" uk-slidenav-previous uk-slider-item="previous"></a>
<a class="uk-position-small" href="#" uk-slidenav-next uk-slider-item="next"></a>
<ul class="uk-slider-nav uk-dotnav"></ul>
</div>
</div>
</div>
<div class="row mt-4">
<div class="col-md-12 content">
<? the_field('about_partners_info'); ?>
</div>
</div>
<div class="row mt-4">
<div class="col-md-12 d-flex justify-content-center">
<a
class="btn request mx-auto"
type="button"
data-toggle="modal"
data-target="#order-game"
>
Оставить заявку на игру
</a>
</div>
</div>
</section>
<?php
get_footer();