-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtemplate-services.php
99 lines (69 loc) · 2.47 KB
/
template-services.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
<?php
/**
Template Name: Services
*/
get_header(); ?>
<!-- BEGIN: banner wrapper -->
<section id="bannerWrapper">
<!-- BEGIN: banner area -->
<article class="bannerArea inner">
<div class="item" style="background-image: url(<?php if(get_field('banner_image')): ?><?php the_field('banner_image'); ?><?php else: ?><?php the_field('banner_image',7); ?><?php endif; ?>);">
<div class="mycontainer">
<aside class="overlay">
<span class="bgrot"></span>
<div class="text">
<div class="sub">
<div class="under">
<h2><?php the_title(); ?></h2>
<p><?php the_field('banner_short_description'); ?></p>
</div>
</div>
</div>
</aside>
</div>
</div>
</article>
<!-- END: banner area -->
</section>
<!-- END: banner wrapper -->
<!-- BEGIN: middle wrapper -->
<section id="middleWrapper">
<!-- BEGIN: servicesub area -->
<article class="servicesubArea">
<?php $args = array(
'post_type' => 'services',
'posts_per_page' => -1,
'order' => 'ASC'
);
$loop = new WP_Query( $args );
while ( $loop->have_posts() ) : $loop->the_post();
?>
<div class="item">
<div class="mycontainer">
<aside class="image col-xs-12 col-sm-12 col-md-12 col-lg-6" style="background-image: url( <?php echo wp_get_attachment_url( get_post_thumbnail_id(get_the_id())) ?>);"></aside>
<aside class="text col-xs-12 col-sm-12 col-md-12 col-lg-6">
<h3><?php the_title(); ?> <span class="title"><?php the_title(); ?></span></h3>
<h4><?php the_field('sub_title'); ?></h4>
<?php the_content(); ?>
<a class="mybtn" data-toggle="modal" data-target="#myModal"><i class="fa fa-car"></i> <?php _e('Get a Quote for'); ?> <?php the_title(); ?></a>
</aside>
</div>
</div>
<?php endwhile; wp_reset_query(); ?>
</article>
<!-- END: servicesub area -->
<!-- BEGIN: quoteform -->
<div id="myModal" class="quoteform modal fade" role="dialog">
<div class="modal-dialog">
<div class="quote">
<a class="closelog" data-dismiss="modal">×</a>
<span class="title">Quote Request</span>
<h2>Quote Request</h2>
<?php echo do_shortcode('[contact-form-7 id="98" title="Quote Request"]'); ?>
</div>
</div>
</div>
<!-- END: quoteform -->
</section>
<!-- END: middle wrapper -->
<?php get_footer(); ?>