-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpage.php
317 lines (288 loc) · 11.6 KB
/
page.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
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
<?php
/**
* The template for displaying all pages
*
* 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 dex
*/
get_header();
?>
<header class="header">
<div class="container">
<div class="top_line">
<?php the_custom_logo(); ?>
<!-- <img src="<?php bloginfo("template_directory"); ?>/img/logo.svg" alt="logo"> -->
<ul>
<li><a href="#">About Us</a></li>
<li><a href="#">Key indicators</a></li>
<li><a href="#">Process</a></li>
<li><a href="#">Reviews</a></li>
<li><a href="#">Contacts</a></li>
</ul>
<button class="hamburger hamburger--collapse d-xl-none d-lg-none" type="button">
<span class="hamburger-box">
<span class="hamburger-inner"></span>
</span>
</button>
<div class="top_line__right_side">
<div class="top_line__right_side__phone">
<img src="<?php bloginfo("template_directory"); ?>/img/phohe.svg" alt="phone-icon">
<a href="tel: +38 (044) 000-00-00">+38 (044) 000-00-00</a>
</div>
<div class="btn btn-mini btn-transparent">
<button>Leave a request</button>
</div>
</div>
</div>
<div class="header__content">
<div class="left_sign">CONSULTING AGENCY</div>
<div class="left_sign left_sign__img" style="top: 75%">
<img src="<?php bloginfo("template_directory"); ?>/img/mouse.svg" alt="mouse-icon">
</div>
<div class="left_sign" style="top: 90%">TWIST DOWN</div>
<div class="main__grid header__content__grid">
<div class="header__content__left_side">
<div class="header__content__left_side__overtitle">
<?php the_field('overtitle'); ?>
</div>
<div class="header__content__left_side__title">
<?php the_title(); ?>
</div>
<div class="header__content__left_side__description">
<?php the_field('undertitle'); ?>
</div>
<div class="btn btn_header">
<button>Create</button>
</div>
</div>
<div class="header__content__right__side">
<?php the_field("calculator"); ?>
</div>
</div>
</div>
</div>
</header>
<section class="about">
<div class="container">
<div class="circle_number">1</div>
<div class="main__grid">
<div class="about__left">
<div class="about__title">
<?php the_field('left_title'); ?>
</div>
<div class="about__description">
<?php the_field('left_description'); ?>
</div>
<div class="about__img">
<img src="<?php the_field('about_image'); ?>" alt="img">
</div>
</div>
<div class="about__right">
<div>
<div class="about__right__title">
<div>
<?php the_field('right_title'); ?>
<span>Help you</span>
</div>
<div class="about__description about__description__sm d-xl-none d-lg-none">
<?php the_field('right_undertitle'); ?>
</div>
<img src="<?php bloginfo("template_directory"); ?>/img/about-img-2.jpg" alt="image" />
</div>
<div class="about__description about__description__lg d-none d-xl-block d-lg-block">
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Enim sed porttitor in et
scelerisque
blandit tincidunt in.
</div>
</div>
<div class="about__bottom_block">
<div class="about__bottom_block__content">
<ul class="about__bottom_block__content__left">
<?php $letters = explode(",", get_field('letters')); ?>
<li><?php echo $letters[0]; ?></li>
<li><?php echo $letters[1]; ?></li>
<li><?php echo $letters[2]; ?></li>
</ul>
<ul class="about__bottom_block__content__right">
<li>
Consultation
<span>Customer satisfaction guarantee</span>
</li>
<li>
Consultation
<span>Customer satisfaction guarantee</span>
</li>
<li>
Consultation
<span>Customer satisfaction guarantee</span>
</li>
</ul>
</div>
</div>
</div>
</div>
</div>
</section>
<section class="keys">
<div class="container">
<div class="col-12">
<div class="keys__title">
<?php the_field('key_title'); ?>
</div>
<div class="key__description">
<?php the_field('key_undertitle'); ?>
</div>
</div>
<div class="main__grid">
<?php
$args = array( 'post_type' => 'key_indicators', 'posts_per_page' => 6 );
$the_query = new WP_Query( $args );
?>
<?php if ( $the_query->have_posts() ) : ?>
<?php while ( $the_query->have_posts() ) : $the_query->the_post(); ?>
<div class="circle__item">
<div class="circle__wrap">
<div class="circle">
<?php the_field('key_indicator_number'); ?>
</div>
</div>
<div class="circle__title">
<?php the_title(); ?>
</div>
<div class="circle__description">
<?php the_field('key_indicator_description'); ?>
</div>
</div>
<?php endwhile; ?>
<?php wp_reset_postdata(); ?>
<?php endif; ?>
</div>
</div>
</section>
<section class="steps">
<div class="container">
<div class="circle_number circle_number__dark">03</div>
<div class="step__titles">
<div class="steps__title">
<?php the_field('steps_left_title'); ?>
</div>
<div class="steps__right_title">
<?php the_field('steps_right_title'); ?>
</div>
</div>
<div class="main__grid">
<?php
$args = array( 'post_type' => 'steps', 'posts_per_page' => 6 );
$the_query = new WP_Query( $args );
$i = 1;
?>
<?php if ( $the_query->have_posts() ) : ?>
<?php while ( $the_query->have_posts() ) : $the_query->the_post(); ?>
<div class="step_item_wrap">
<div class="step__item">
<div class="step__item__number">
0<?php echo $i; ?>
<div>step</div>
</div>
<div class="step_title">
<?php the_title(); ?>
</div>
<div class="step_description">
<?php the_content(); ?>
</div>
</div>
</div>
<?php $i++; endwhile; ?>
<?php wp_reset_postdata(); ?>
<?php endif; ?>
</div>
</div>
</section>
<section class="testimonials">
<div class="container">
<div class="circle_number">4</div>
<div class="main__grid">
<div class="testi__title__wrap">
<div class="testi__title">
What we are <br />
proud of:
<span>
Feedback from those who have <br />
already collaborated with us
</span>
</div>
</div>
<div class="testi__right_side">
<div class="testi__slick">
<?php
$content = file_get_contents("https://jsonplaceholder.typicode.com/posts/1/comments");
$result = json_decode($content);
for ($i = 0; $i < count($result); $i ++) { ?>
<div class="testi_item">
<div class="testi_item__top">
<div class="testi_item__avatar"></div>
<div class="testi_item__name">
<?php echo $result[$i] -> email; ?>
</div>
</div>
<div class="testi_item__right__side">
<div class="testi_item__quote">
<img src="<?php bloginfo("template_directory"); ?>/img/quote.svg" alt="#" />
</div>
<div class="testi_item__text">
<?php echo $result[$i] -> body; ?>
</div>
</div>
</div>
<?php }; ?>
</div>
<div class="testi__controls">
<div class="testi__arrows" data-uri="<?php bloginfo("template_directory"); ?>"></div>
<div class="testi__arrows__dots"></div>
</div>
</div>
</div>
</div>
</section>
<section class="contact">
<div class="main__grid">
<div class="step__titles">
<div class="steps__title">
RESOLUTE IS <br />
<span>
ALWAYS GET <br />
MORE
</span>
</div>
<div class="steps__right_title">
Leave the application and get <br />
<span>10% discount</span> when ordering <br />
business plan
</div>
</div>
<div>
<form action="#">
<input type="text" placeholder="Your name*" data-plc="Your name*" required>
<input type="email" placeholder="Your email*" data-plc="Your email*" required>
<input type="phone" class="phone_input" placeholder="+380 000 000 000" data-plc="+380 000 000 000"
required>
<div class="btn">
<button>Order Quickly</button>
</div>
<div class="form__notif">
<img src="<?php bloginfo("template_directory"); ?>/img/lock.svg" alt="#">
Your data is safe, and will not <br />
be transferred to third parties
</div>
</form>
</div>
</div>
</section>
<?php
get_footer();