-
Notifications
You must be signed in to change notification settings - Fork 0
/
single-knowledge-base.php
263 lines (253 loc) · 10.3 KB
/
single-knowledge-base.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
<?php get_header(); ?>
<div class="blog-page-main w-full inline-block pt-16">
<div class="container mx-auto">
<div class="flex gap-12">
<div class="w-2/3">
<!-- Blog Section 1 Start -->
<?php if( get_field('blog_post_title') != "" ): ?>
<div class="blog-section-1 bg-orange rounded-3xl shadow shadow-gray-200 pl-12 pt-7">
<div class="flex gap-8">
<div class="w-3/4">
<div class="bs1-detail w-full inline-block py-8">
<h2 class="text-white font-proxima font-bold text-4xl mb-4">
<?php echo the_field('blog_post_title')?>
</h2>
<h4 class="text-white font-proxima font-bold text-xl mb-4">
<?php echo get_field('blog_post_sub_title')?>
</h4>
<p class="text-white font-proxima font-normal text-lg">
<?php echo get_field('content_1')?>
</p>
</div>
</div>
<?php if(get_field('image_1')): ?>
<div class="w-1/4">
<div class="bs1-image">
<img src="<?php echo get_field('image_1'); ?>" alt="" width="394" height="666">
</div>
</div>
<?php endif; ?>
</div>
</div>
<?php endif; ?>
<!-- Blog Section 1 End -->
<!-- Blog Section 2 Start -->
<?php if( get_field('blog_post_sub_heading') != "" ): ?>
<div class="blog-section-2 w-full inline-block pt-16" id="first">
<div class="flex gap-8">
<div class="w-3/5">
<div class="bs2-detail w-full inline-block pr-5">
<h3 class="text-black uppercase text-3xl font-bold font-proxima mb-16">
<?php echo get_field('blog_post_sub_heading') ?>
</h3>
<p class="black-24 text-lg font-normal font-proxima">
<?php echo get_field('blog_post_sub_heading_content') ?>
</p>
</div>
</div>
<?php if(get_field('image_right')): ?>
<div class="w-2/5">
<div class="bs2-image w-full inline-block relative pr-4 pb-4">
<img src="<?php echo get_field('image_right') ?>" alt="" width="381" height="425" class="rounded-3xl">
</div>
</div>
<?php endif; ?>
</div>
</div>
<?php endif; ?>
<!-- Blog Section 2 End -->
<!-- Blog Section 3 Start -->
<?php if( get_field('image_left') != "" ): ?>
<div class="blog-section-3 w-full inline-block py-16" id="second">
<div class="flex gap-8">
<?php if(get_field('image_left')): ?>
<div class="w-2/5">
<div class="bs2-image w-full inline-block relative pr-4 pb-4">
<img src="<?php echo get_field('image_left') ?>" alt="" width="381" height="425" class="rounded-3xl">
</div>
</div>
<?php endif; ?>
<div class="w-3/5">
<div class="bs2-detail w-full inline-block pl-5">
<h3 class="text-black uppercase text-3xl font-bold font-proxima mb-16">
<?php echo get_field('blog_post_sub_heading_2') ?>
</h3>
<p class="black-24 text-lg font-normal font-proxima">
<?php echo get_field('blog_post_sub_heading_content_2') ?>
</p>
</div>
</div>
</div>
</div>
<?php endif; ?>
<!-- Blog Section 3 End -->
<!-- Blog Section 4 Start -->
<?php if( get_field('section_4_upper_heading') ): ?>
<div class="blog-section-4 w-full inline-block bg-orange rounded-3xl shadow shadow-gray-200 my-16">
<div class="flex gap-8">
<div class="w-3/5">
<div class="bs-4-detail w-full inline-block pl-10 py-7">
<h4 class="text-white text-base font-bold font-proxima">
<?php echo get_field('section_4_upper_heading') ?>
</h4>
<h3 class="text-white text-2xl font-bold font-proxima">
<?php echo get_field('section_4_lower_heading') ?>
</h3>
<p class="text-white text-base font-normal font-proxima">
<span>★</span> <?php echo get_field('list_1') ?></p>
<p class="text-white text-base font-normal font-proxima">
<span>★</span> <?php echo get_field('list_2') ?></p>
<p class="text-white text-base font-normal font-proxima">
<span>★</span> <?php echo get_field('list_3') ?></p>
<p class="text-white text-base font-normal font-proxima">
<span>★</span> <?php echo get_field('list_4') ?></p>
<p class="text-white text-base font-normal font-proxima">
<span>★</span> <?php echo get_field('list_5') ?></p>
<p class="text-white text-base font-normal font-proxima">
<?php echo get_field('list_6') ?>
</p>
<a href="<?php echo get_field('button_link') ?>" class="text-orange bg-white inline-block my-4 px-6 py-2 font-bold text-base font-proxima rounded-3xl shadow shadow-gray-200 hover:bg-black">
Boek een afspraak in onze showroom
</a>
<div class="bs-4-bottom flex gap-14 items-center">
<a href="tel:0578760509" class="text-white text-base font-normal flex items-center gap-1">
<img src="<?php echo get_site_url(); ?>/wp-content/themes/tailpress/images/phone-call.png" alt="" width="20" height="20" >
<?php echo get_field('phone_number') ?>
</a>
<a href="<?php echo get_field('website_url') ?>" class="text-white text-base font-normal flex items-center gap-1">
<img src="<?php echo get_site_url(); ?>/wp-content/themes/tailpress/images/link.png" alt="" width="20" height="20" >
www.deurbeslaggigant.nl
</a>
</div>
</div>
</div>
<?php if( get_field('image') ): ?>
<div class="w-2/5">
<div class="bd-4-image w-full inline-block">
<img src="<?php echo get_field('image') ?>" alt="" width="277" height="295">
</div>
</div>
<?php endif; ?>
</div>
</div>
<?php endif; ?>
<!-- Blog Section 4 End -->
<!-- Blog Video Section Start -->
<?php if( get_field('video_url') != "" ): ?>
<div class="product-video-section w-full inline-block py-16">
<div class="container mx-auto">
<div class="blog-video-header w-full inline-block text-center mb-5">
<h3 class="uppercase font-bold text-3xl font-proxima text-black mb-10">
Wat is het verschil <span class="text-orange">tussen een</span> inleg en opdek
</h3>
<h3 class="uppercase font-bold text-3xl font-proxima text-black mb-4">
Psssst 🤫, wil je korting?
</h3>
<p class="font-normal text-xl font-proxima text-black">
Je hebt nu zoveel, geleerd over Zonde als je
</p>
</div>
<div class="product-video-inner w-full inline-block relative">
<div class="product-video-block w-full inline-block rounded-3xl overflow-hidden relative">
<iframe width="560" height="315" src="<?php echo get_field('video_url') ?>" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
</div>
</div>
</div>
</div>
<?php endif; ?>
<!-- Blog Video Section End -->
<!-- Blog Post Comment Start -->
<?php
$comments = get_comments(array(
'post_id' => $post->ID,
'number' => '2'
));
// print_r($comments);
$listComments = '';
foreach($comments as $comment){
$listComments .= '<div class="w-2/5">
<div class="author__avatar">
<a href="'.$comment->comment_author_url.'" class="flex">
<span class="authot__image_avtar">
<img src="'.$comment->get_avtar.'" class=".rounded">
</span>
<span class="author__name">'.$comment->comment_author.'</span
</a>
<p class="user-nicename">('.$comment->comment_author_email.')</p>
</div>';
if(get_field('blog_post_title') != ""):
$listComments .= '<div class="comment__content">
<p>'.$comment->comment_content.'</p>
</div>
</div>';
endif;
}
?>
<?php
if(get_field('blog_post_title') != ""):
echo $listComments;
endif;
?>
<?php get_template_part( 'comments' ); ?>
<!-- Blog Post Comment End -->
<!-- Blog Section 5 Start -->
<?php if( get_field('blog_post_sub_heading') != "" ): ?>
<div class="blog-section-5 w-full inline-block pt-10" style="background: url(<?php echo get_site_url(); ?>/wp-content/themes/tailpress/images/bs5.png);">
<div class="bs5-inner w-full inline-block py-12" >
<div class="w-1/2">
<div class="bs5-detail w-full inline-block pl-9">
<h2 class="uppercase text-black font-proxima font-bold text-4xl inline-block mb-8">
Dat was <span class="text-orange">het dan</span>
</h2>
<p class=" text-black font-proxima font-normal text-2xl inline-block">
Wij hebben je nu alles verteld over raambomen, maar het kan natuurlijk
</p>
<h6 class="text-black font-proxima font-bold text-base inline-block">
bellen (0578-760509)
</h6>
<h6 class="text-black font-proxima font-bold text-base inline-block">
of mailen met
<a href="mailto:[email protected]" class="text-orange">
</a>
</h6>
</div>
</div>
</div>
</div>
<?php endif; ?>
<!-- Blog Section 5 End -->
</div>
<!-- Blog Section Sidebar Start -->
<?php if( get_field('blog_post_sub_heading') != "" ): ?>
<div class="w-2/6">
<div class="blog-sidebar w-full inline-block shadow shadow-gray-200 px-7 py-4 bg-white rounded-2xl">
<h2 class="font-proxima uppercase black-24 text-2xl text-center font-bold mb-9">
Tijd besparen? Ga direct naar het betreffende onderdeel
</h2>
<div class="sidebar-accordion">
<a href="#first">
<div class="sidebar-accordion-block">
<button class="accordion"><?php echo get_field('blog_post_sub_heading') ?></button>
</div>
</a>
<?php if( get_field('blog_post_sub_heading_2') != "" ): ?>
<a href="#second">
<div class="sidebar-accordion-block">
<button class="accordion"><?php echo get_field('blog_post_sub_heading_2') ?></button>
</div>
</a>
<?php endif; ?>
</div>
<div class="blog-sidebar-btn w-full inline-block text-center mt-5">
<a href="#" class="inline-block font-proxima bg-orange text-lg font-bold text-white px-6 py-3 rounded-3xl shadow shadow-gray-200 hover:bg-black">Beldrukker</a>
</div>
</div>
</div>
<?php endif; ?>
<!-- Blog Section Sidebar End -->
</div>
</div>
</div>
<?php
get_footer(); ?>