-
Notifications
You must be signed in to change notification settings - Fork 28
/
single-cars.php
155 lines (55 loc) · 1.68 KB
/
single-cars.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
<?php get_header();?>
<section class="page-wrap">
<div class="container">
<h1><?php the_title();?></h1>
<?php if(has_post_thumbnail()):?>
<div class="gallery">
<a href="<?php the_post_thumbnail_url('blog-large');?>">
<img src="<?php the_post_thumbnail_url('blog-large');?>" alt="<?php the_title();?>" class="img-fluid mb-3 img-thumbnail">
</a>
</div>
<?php endif;?>
<?php
$gallery = get_field('gallery');
if($gallery):?>
<div class="gallery mb-5">
<?php foreach($gallery as $image):?>
<a href="<?php echo $image['sizes']['blog-large'];?>">
<img src="<?php echo $image['sizes']['blog-small'];?>" class="img-fluid img-thumbnail">
</a>
<?php endforeach;?>
</div>
<?php endif;?>
<div class="row">
<div class="col-lg-6">
<?php get_template_part('includes/section','cars');?>
<?php wp_link_pages();?>
</div>
<div class="col-lg-6">
<?php get_template_part('includes/form','enquiry');?>
<ul>
<li>
Colour: <?php the_field('colour');?>
</li>
<li>
Registration: <?php the_field('registration');?>
</li>
</ul>
<h3>Features</h3>
<ul>
<?php if(have_rows('features')):?>
<?php
while( have_rows('features')): the_row();
$feature = get_sub_field('feature');
?>
<li>
<?php echo $feature;?>
</li>
<?php endwhile;?>
<?php endif;?>
</ul>
</div>
</div>
</div>
</section>
<?php get_footer();?>