-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtemplate-project.php
367 lines (329 loc) · 13.9 KB
/
template-project.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
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
<?php
/**
* Template Name: Project Template
**/
get_header();
// if(have_posts())
// {
// the_post();
// }
?>
<div class="main_content">
<section class="content_top">
<div class="content_top_inner">
<div class="main prject_main">
<div class="legacy_stamp">
<?php
$image = get_field('legacy_stamp');
if( !empty( $image ) ): ?>
<img src="<?php echo esc_url($image['url']); ?>" alt="<?php echo esc_attr($image['alt']); ?>" />
<?php endif; ?>
</div>
<div class="big_slider owl-carousel owl-theme" id="main_slider">
<?php
// Check rows exists.
if( have_rows('slider') ):
// Loop through rows.
while( have_rows('slider') ) : the_row();
?>
<div class="item">
<a href="#">
<?php
$deskimage = get_sub_field('image');
if( !empty( $deskimage ) ): ?>
<img src="<?php echo esc_url($deskimage['url']); ?>" alt="<?php echo esc_attr($deskimage['alt']); ?>" />
<?php endif; ?>
<span class="main_banner_caprion"><?php echo get_sub_field('title'); ?></span>
<?php if(get_sub_field('price_on_request_text')!="") { ?>
<span class="priceon">
<?php echo get_sub_field('price_on_request_text'); ?>
</span>
<?php } ?>
</a>
</div>
<?php
// End loop.
endwhile;
endif;
?>
</div>
</div>
</div>
</section>
<section class="breadcrumb_sec">
<div class="breadcrumb">
<?php the_field('bredcrumb'); ?>
</div>
</section>
<div class="details_outer">
<?php if(get_field('overview_description')!='') { ?>
<section class="details_section">
<div class="ds_inner">
<div class="ab_info ds_block">
<h2><strong><?php the_field('overview_heading'); ?></strong></h2>
<?php the_field('overview_description'); ?>
</div>
</div>
</section>
<?php } ?>
<?php if(get_field('specification_description')!='') { ?>
<section class="details_section">
<div class="ds_inner">
<div class="ab_info ds_block">
<h2><strong><?php the_field('specification_heading'); ?></strong></h2>
<?php the_field('specification_description'); ?>
</div>
</div>
</section>
<?php } ?>
<?php if(get_field('amenities_description')!="" or get_field('proximity_description')!="") { ?>
<section class="details_section <?php if(get_field('specification_description')=='') { ?> <?php } ?> <?php if(get_field('home_finance_description')!=""){?>hfa<?php } ?>">
<div class="ds_inner">
<div class="ab_info ds_block ds_block_50">
<h2><?php the_field('amenities_heading'); ?></h2>
<?php the_field('amenities_description'); ?>
</div>
<div class="ab_info ds_block ds_block_50">
<h2><strong><?php the_field('proximity_heading'); ?></strong></h2>
<?php the_field('proximity_description'); ?>
</div>
<?php if(get_field('home_finance_description')!=""){?>
<div class="ab_info ds_block ds_block_50">
<h2><?php the_field('home_finance_heading'); ?></h2>
<?php the_field('home_finance_description'); ?>
</div>
<?php } ?>
</div>
</section>
<?php } ?>
<?php if( have_rows('project_progress_image') ): ?>
<section class="details_section">
<div class="ds_inner">
<div class="ab_info ds_block">
<h2><strong> <?php the_field('project_progress_heading'); ?></strong></h2>
<div class="progress_gallery">
<?php /*<?php the_field('project_progress_gallery'); ?> */ ?>
<?php
// Check rows exists.
// Loop through rows.
while( have_rows('project_progress_image') ) : the_row();
?>
<?php
$image = get_sub_field('image');
if( !empty( $image ) ): ?>
<a data-fancybox="gallery" href="<?php echo esc_url($image['url']); ?>">
<img src="<?php echo esc_url($image['url']); ?>" alt="<?php echo esc_attr($image['alt']); ?>" />
<span><img src="<?php bloginfo('template_directory'); ?>/images/zoom.png" alt=""></span>
</a>
<?php endif; ?>
<?php
// End loop.
endwhile;
// No value.
// else :
// Do something...
?>
</div>
</div>
</div>
</section>
<?php endif; ?>
</div>
<section class="tab_section">
<div class="tab-teaser">
<div class="tab-menu">
<?php
if(get_field('active_tab')=='download_tab') {
$download_class = 'active';
$download_display = 'block';
}
if(get_field('active_tab')=='location_map_tab') {
$location_class = 'active';
$location_display = 'block';
}
if(get_field('active_tab')=='site_plans_tab'){
$site_plan_class = 'active';
$site_plan_display = 'block';
}
if(get_field('active_tab')=='floor_plans_tab'){
$floor_plan_class = 'active';
$floor_plan_display = 'block';
}
if(get_field('active_tab')=='project_walkthrough_tab'){
$project_class = 'active';
$project_display = 'block';
}
if(get_field('active_tab')=='video_testimonials'){
$video_testimonials_class = 'active';
$video_testimonials_display = 'block';
}
if(get_field('active_tab')=='environmental_clearance_certificate'){
$certificate_class = 'active';
$certificate_display = 'block';
}
if(get_field('active_tab')=='payment_schedule'){
$payment_schedule_class = 'active';
$payment_schedule_display = 'block';
}
?>
<ul>
<?php if(get_field('download_tab')){ ?>
<li><a href="#" class="<?php echo $download_class; ?>" data-rel="tab-1"><span><img src="<?php bloginfo('template_directory'); ?>/images/side_icon7.png" alt=""></span>Download</a></li>
<?php } ?>
<?php if(get_field('location_map_tab')){ ?>
<li><a href="#" data-rel="tab-2" class="<?php echo $location_class; ?>"><span><img src="<?php bloginfo('template_directory'); ?>/images/side_icon2.png" alt=""></span>Location Map</a></li>
<?php } ?>
<?php if(get_field('site_plans_tab')){ ?>
<li><a href="#" data-rel="tab-3" class="<?php echo $site_plan_class; ?>"><span><img src="<?php bloginfo('template_directory'); ?>/images/side_icon6.png" alt=""></span>Site Plan</a></li>
<?php } ?>
<?php if(get_field('floor_plans_tab')){ ?>
<li><a href="#" data-rel="tab-4" class="<?php echo $floor_plan_class; ?>"><span><img src="<?php bloginfo('template_directory'); ?>/images/side_icon4.png" alt=""></span>Floor Plans</a></li>
<?php } ?>
<?php if(get_field('project_walkthrough_tab')){ ?>
<li><a href="#" data-rel="tab-5" class="<?php echo $project_class; ?>"><span><img src="<?php bloginfo('template_directory'); ?>/images/side_icon6.png" alt=""></span>Project Walkthrough</a></li>
<?php } ?>
<?php if(get_field('video_testimonials')){ ?>
<li><a href="#" data-rel="tab-6" class="<?php echo $video_testimonials_class; ?>"><span><img src="<?php bloginfo('template_directory'); ?>/images/side_icon6.png" alt=""></span>Video testimonials</a></li>
<?php } ?>
<?php if(get_field('environmental_clearance_certificate')){ ?>
<li><a href="#" data-rel="tab-7" class="<?php echo $certificate_class; ?>"><span><img src="<?php bloginfo('template_directory'); ?>/images/ec-certificates-icon.png" alt=""></span>Environmental Clearance Certificate</a></li>
<?php } ?>
<?php if(get_field('payment_schedule')){ ?>
<li><a href="#" data-rel="tab-8" class="<?php echo $payment_schedule_class; ?>"><span><img src="<?php bloginfo('template_directory'); ?>/images/ec-certificates-icon.png" alt=""></span>Payment Schedule</a></li>
<?php } ?>
</ul>
</div>
<?php if(get_field('download_tab') || get_field('location_map_tab') || get_field('site_plans_tab') || get_field('floor_plans_tab') || get_field('project_walkthrough_tab') || get_field('video_testimonials') || get_field('environmental_clearance_certificate') || get_field('payment_schedule')) { ?>
<div class="tab-main-box">
<div class="tab-box" id="tab-1" style="display:<?php echo $download_display;?>">
<div class="ab_info tab_info">
<?php the_field('download_tab'); ?>
</div>
</div>
<div class="tab-box" id="tab-2" style="display:<?php echo $location_display;?>">
<div class="ab_info tab_info">
<?php echo str_replace(['<p>', '</p>'], '', get_field('location_map_tab')); ?>
</div>
</div>
<div class="tab-box" id="tab-3" style="display:<?php echo $site_plan_display;?>">
<div class="ab_info tab_info">
<?php the_field('site_plans_tab'); ?>
</div>
</div>
<div class="tab-box" id="tab-4" style="display:<?php echo $floor_plan_display;?>">
<div class="ab_info tab_info">
<?php the_field('floor_plans_tab'); ?>
</div>
</div>
<div class="tab-box" id="tab-5" style="display:<?php echo $project_display;?>">
<div class="ab_info tab_info">
<?php the_field('project_walkthrough_tab'); ?>
</div>
</div>
<div class="tab-box" id="tab-6" style="display:<?php echo $video_testimonials_display;?>">
<div class="ab_info tab_info">
<?php the_field('video_testimonials'); ?>
</div>
</div>
<div class="tab-box" id="tab-7" style="display:<?php echo $certificate_display;?>">
<div class="ab_info tab_info">
<?php
$file = get_field('environmental_clearance_certificate');
if( $file ): ?>
<ul class="download">
<li><a href="<?php echo $file['url']; ?>">Download Environmental Clearance Certificate</a></li>
</ul>
<?php endif; ?>
</div>
</div>
<div class="tab-box" id="tab-8" style="display:<?php echo $payment_schedule_display;?>">
<div class="ab_info tab_info">
<?php
$file = get_field('payment_schedule');
if( $file ): ?>
<a href="<?php echo $file['url']; ?>"><?php echo $file['filename']; ?></a>
<?php endif; ?>
</div>
</div>
<?php } ?>
</div>
</div>
<!-- form-start -->
<section class="bnr_form_section">
<div class="container">
<div class="bnr_frm_inn">
<h3> Contact Us Now </h3>
<!--<form name="ban_frm" id="ban_frm">-->
<!-- <div class="two_fld2">
<div class="form-group">
<input type="text" name="nme" id="nme" class="form-control" placeholder="Name*" onKeyUp="txtValidate();">
</div>
<div class="form-group">
<input type="text" name="eml" id="eml" class="form-control" placeholder="Eamil*">
</div>
</div>
<div class="two_fld2">
<div class="form-group">
<input type="tel" name="phn" id="phn" class="form-control" placeholder="Phone*" onKeyUp="numValidate();">
</div>
<div class="form-group">
<textarea class="form-control textarea_box" name="msg" id="msg" placeholder=" Your Query*"></textarea>
</div>
</div>
<div class="two_fld3">
<div class="form-group">
<input type="button" id="ban_btn" value="SUBMIT" class="frm_sbmt sbmt_btn">
</div>
</div>-->
<?php echo do_shortcode('[contact-form-7 id="2619" title="Contact Form"]'); ?>
<!--</form>-->
</div>
</div>
</section>
<!-- form-end -->
</section>
<div class="bottom_sec">
<div class="b_bottom">
<ul>
<li>
<strong class="m_detail">FOR MORE DETAILS</strong>
<span class="m_number"><em><img src="<?php bloginfo('template_directory'); ?>/images/call.png" alt="Make A Call"></em><a href="tel:+913371646400">+91 33 71646400</a></span>
</li>
<li><img src="<?php the_field('logo'); ?>" alt=""></li>
<li><a class="enquery" href="<?php the_field('enquire_now_url'); ?>"><em><img src="<?php bloginfo('template_directory'); ?>/images/enquire-now-icon.png" alt=""></em>ENQUIRE NOW</a></li>
</ul>
</div>
</div>
</div>
<div id="myModal" class="modal custom_modal">
<!-- Modal content -->
<div class="modal-content">
<span class="close" id="cross">×</span>
<div id="popup_form" style="display:none;"><?php echo do_shortcode('[contact-form-7 id="2007" title="Download Form"]'); ?></div>
</div>
</div>
<div id="myModal1" class="modal custom_modal">
<!-- Modal content -->
<div class="modal-content">
<span class="close" id="cross1">×</span>
<div id="popup_form1" style="display:none;"><?php echo do_shortcode('[contact-form-7 id="2007" title="Download Form"]'); ?></div>
</div>
</div>
<div id="myModal2" class="modal custom_modal">
<!-- Modal content -->
<div class="modal-content">
<span class="close" id="cross2">×</span>
<div id="popup_form2" style="display:none;"><?php echo do_shortcode('[contact-form-7 id="2007" title="Download Form"]'); ?></div>
</div>
</div>
<script type="text/javascript">
function form()
{
document.getElementById('popup_form').style.display = 'block';
document.getElementById('popup_form1').style.display = 'block';
document.getElementById('popup_form2').style.display = 'block';
}
</script>
<?php
get_footer();
?>