-
Notifications
You must be signed in to change notification settings - Fork 0
/
features-category-shape_BACKUP.php
211 lines (163 loc) · 7.14 KB
/
features-category-shape_BACKUP.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
<?php
get_header();
?>
<main class="dark-theme">
<section class="features-hero">
<div class="area flex gap-50 align-center">
<div class="resp-logo">
<img src="<?php echo get_template_directory_uri(); ?>/img/logos/logo-white.svg" />
</div>
<div class="col-half">
<div class="sub-section flex align-center">
<div class="icon small">
<img src="<?php echo get_template_directory_uri(); ?>/img/icons/features.svg" />
</div>
<div class="breadcrumbs">
<a href="<?php echo home_url(); ?>/features/">Features</a> >
<?php the_title(); ?>
</div>
</div>
<h1 class="title-big"><?php the_title(); ?></h1>
<img class="resp-image shape" src="<?php the_field('header_image') ?>" />
<div class="text-20"><?php the_content(); ?></div>
<a href="#features-overview" class="button secondary">Discover</a>
</div>
<div class="col-half">
<img class="feat-top shape" src="<?php the_field('header_image') ?>" />
</div>
</div>
</section>
<section id="features-overview">
<div class="area flex gap-20 align-bottom">
<div class="col-half">
<div class="sub-section flex align-center">
<div class="icon small">
<img src="<?php echo get_template_directory_uri(); ?>/img/icons/eye.svg" loading="lazy">
</div>
<p class="subtitle">Features Overview</p>
</div>
<p class="text-28 white"><?php the_field('overview_text_big') ?></p>
</div>
<div class="col-half">
<p class="text-20"><?php the_field('overview_text_small') ?>
</p>
</div>
</div>
<div class="area with-feature-carousel">
<div id="features-carousel" class="owl-carousel owl-theme">
<?php if( get_field('video_url') ): ?>
<div class="feature-carusel-item">
<div class="embedwrapper">
<?php the_field('video_url') ?>
</div>
<div class="carousel-text">
<p class="white text-18 bold"><?php the_field('video_title') ?></p>
<p class="text-16"><?php the_field('video_description') ?></p>
</div>
</div>
<?php endif; ?>
<?php if( get_field('gallery_image_1') ): ?>
<div class="feature-carusel-item">
<div class="carousel-image">
<img src="<?php the_field('gallery_image_1') ?>" />
</div>
<div class="carousel-text">
<p class="white text-18 bold"><?php the_field('gallery_content_title_1') ?></p>
<p class="text-16"><?php the_field('gallery_content_1') ?></p>
</div>
</div>
<?php endif; ?>
<?php if( get_field('gallery_image_2') ): ?>
<div class="feature-carusel-item">
<div class="carousel-image">
<img src="<?php the_field('gallery_image_2') ?>" />
</div>
<div class="carousel-text">
<p class="white text-18 bold"><?php the_field('gallery_title_2') ?></p>
<p class="text-16"><?php the_field('gallery_content_2') ?></p>
</div>
</div>
<?php endif; ?>
<?php if( get_field('gallery_image_3') ): ?>
<div class="feature-carusel-item">
<div class="carousel-image">
<img src="<?php the_field('gallery_image_3') ?>" />
</div>
<div class="carousel-text">
<p class="white text-18 bold"><?php the_field('gallery_title_3') ?></p>
<p class="text-16"><?php the_field('gallery_content_3') ?></p>
</div>
</div>
<?php endif; ?>
</div>
</section>
<section class="feature-cpt-list">
<div class="area with-titles flex gap-20 align-bottom">
<div class="col-full">
<div class="sub-section flex align-center">
<div class="icon small">
<img src="<?php echo get_template_directory_uri(); ?>/img/icons/features.svg" loading="lazy">
</div>
<h2 class="subtitle">Explore "<i><?php the_title(); ?></i>" Features</h2>
</div>
<p class="text-28 white">Want to dive deep? Check out all the features in this
"<i><?php the_title(); ?></i>"
category</p>
</div>
</div>
<div class="area flex gap-20 wrap">
<?php $recent_posts = array(
'post_type' => 'feature',
'tax_query' => array(
array(
'taxonomy' => 'group',
'field' => 'slug',
'terms' => 'shape-your-organisation'
),
),
'post_status' => 'publish',
'posts_per_page' => '20',
'orderby' => array(
'date' =>'DESC'
),
);
$arr_feat_post = new WP_Query( $recent_posts );
if ( $arr_feat_post->have_posts() ) :
while ( $arr_feat_post->have_posts() ) :
$arr_feat_post->the_post();
?>
<div class="col-4">
<a class="nostyle" href="<?php the_permalink(); ?>">
<div class="generic-card feat glow-back has-link">
<div class="wrappo">
<div class="icon in-card">
<img
src="<?php echo get_template_directory_uri(); ?><?php the_field('feature_icon_path')?>" />
</div>
<h3 class="title-medium"><?php the_title(); ?></h3>
<p><?php the_field('feature_short_description') ?></p>
<div class="fake-button space">
<p>Discover</p>
</div>
</div>
</div>
</a>
</div>
<?php
endwhile;
endif;
?>
</div>
</section>
<?php
include ('incl/explore-features-web3.html') ;
?>
<section class="cta">
<div class="area">
<?php
include ('incl/maincta.php') ;
?>
</div>
</section>
</main>
<?php get_footer(); ?>