-
Notifications
You must be signed in to change notification settings - Fork 0
/
request-a-quote.php
75 lines (65 loc) · 2.9 KB
/
request-a-quote.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
<?php /* Template Name: request-a-quote */
get_header(); ?>
<div class="request-a-quote-main">
<div class="container mx-auto">
<div class="request-a-quote-header">
<h2>Request a Quote</h2>
<p><?php echo get_field('banner_description') ?></p>
</div>
<div class="request-a-quote-form">
<?php echo do_shortcode('[contact-form-7 id="19360" title="Request a Quote"]'); ?>
</div>
<div class="raq-accordion-section">
<h2><?php the_field('accordion_heading') ?></h2>
<div class="sidebar-accordion">
<div class="sidebar-accordion-block">
<button class="accordion"><?php the_field('accordion_button_title_1') ?></button>
<div class="panel">
<p><?php the_field('accordion_button_description_1') ?></p>
</div>
</div>
<div class="sidebar-accordion-block">
<button class="accordion"><?php the_field('accordion_button_title_2') ?></button>
<div class="panel">
<p><?php the_field('accordion_button_description_2') ?></p>
</div>
</div>
<div class="sidebar-accordion-block">
<button class="accordion"><?php the_field('accordion_button_title_3') ?></button>
<div class="panel">
<p><?php the_field('accordion_button_description_3') ?></p>
</div>
</div>
<div class="sidebar-accordion-block">
<button class="accordion"><?php the_field('accordion_button_title_4') ?></button>
<div class="panel">
<p><?php the_field('accordion_button_description_4') ?></p>
</div>
</div>
<div class="sidebar-accordion-block">
<button class="accordion"><?php the_field('accordion_button_title_5') ?></button>
<div class="panel">
<p><?php the_field('accordion_button_description_5') ?></p>
</div>
</div>
</div>
</div>
</div>
</div>
<script>
var acc = document.getElementsByClassName("accordion");
var i;
for (i = 0; i < acc.length; i++) {
acc[i].addEventListener("click", function() {
this.classList.toggle("active");
var panel = this.nextElementSibling;
if (panel.style.display === "block") {
panel.style.display = "none";
} else {
panel.style.display = "block";
}
});
}
</script>
<?php
get_footer(); ?>