-
Notifications
You must be signed in to change notification settings - Fork 0
/
footer.php
208 lines (168 loc) · 5.5 KB
/
footer.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
</section>
<footer>
<!-- Need a successfull project start -->
<div class="footer_project">
<h2><?php the_field('footer_project', 'option'); ?></h2>
<a class="footer_button" href="<?php the_field('footer_button_url', 'option'); ?>"><?php the_field('footer_button_text', 'option'); ?>
<?php if( get_field('footer_button_icon', 'option') ): ?>
<img alt="calltoaction arrow" src="<?php the_field('footer_button_icon', 'option'); ?>" />
<?php endif; ?></a>
</div>
<!-- Need a successfull project slut -->
<!-- sociale medier footer start -->
<div class="container-fluid">
<div class="row SoMe_footer">
<div class="col align-self-center">
<?php if( have_rows('footer_some', 'option') ): ?>
<ul>
<?php while( have_rows('footer_some', 'option') ): the_row();
// vars
$footsomeimage = get_sub_field('footer_some_icon', 'option');
$footsomelink = get_sub_field('footer_some_url', 'option');
?>
<li class="footer_some_icon">
<?php if( $footsomelink ): ?>
<a href="<?php echo $footsomelink; ?>" target="_blank">
<?php endif; ?>
<img src="<?php echo $footsomeimage['url']; ?>" alt="<?php echo $footsomeimage['alt'] ?>" />
<?php if( $footsomelink ): ?>
</a>
<?php endif; ?>
</li>
<?php endwhile; ?>
</ul>
<?php endif; ?>
</div>
</div>
</div>
<!-- sociale medier footer slut -->
<!-- kontakt information footer start -->
<div class="container-fluid contact_footer">
<h3><a href="mailto:<?php the_field('footer_mail', 'option'); ?>" class="footer_mail"><?php the_field('footer_mail', 'option'); ?></a></h3>
<h3><a href="tel:<?php the_field('phone_number', 'option'); ?>" class="footer_mail"><?php the_field('phone_number', 'option'); ?></a></h3>
<a target="_blank" href="<?php the_field('google_maps_link', 'option'); ?>" class="footer_address"><?php the_field('footer_address', 'option'); ?></a>
</div>
<!-- kontakt information footer slut -->
<!-- aps start -->
<div class="container-fluid">
<div class="row justify-content-center cvr">
<div class="align-self-center">Change ApS │ CVR: 37197351</div>
</div>
</div>
<!-- aps slut -->
</footer>
<script>
$(document).ready(function() {
$('.whitebg .logoimg').attr('src', '<?php echo get_bloginfo('template_directory'); ?>/images/logo.svg');
});
$(document).ready(function(){
$(".owl-carousel").owlCarousel();
});
var owl = $('.autoplay');
owl.owlCarousel({
items: 4,
margin:10,
nav: true,
navText: ["<img src='<?php echo get_template_directory_uri() ?>/images/arrow_left.svg'>","<img src='<?php echo get_template_directory_uri() ?>/images/arrow_right.svg'>"],
autoplay:true,
loop: true,
dots:false,
responsive:{
992: {
items: 4,
},
420: {
items: 3,
},
320: {
items: 2,
},
}
});
var owl = $('.forside_carousel_wrapper');
owl.owlCarousel({
items: 1,
dots: true,
nav: false,
mouseDrag: false,
touchdrag: true,
autoplaySpeed: 2000,
autoplayTimeout: 10000,
margin: 1,
autoplay: true,
});
var owl = $('.process_carousel_wrapper');
owl.owlCarousel({
dots: false,
nav: false,
mouseDrag: false,
responsive:{
768: {
items: 3,
loop: false,
touchdrag:false,
},
320: {
items: 1,
autoplay: false,
loop: false,
touchdrag: true,
}
}
});
var owl = $('.carousel_om_change');
owl.owlCarousel({
nav: true,
navText: ["<img src='<?php echo get_template_directory_uri() ?>/images/arrow_left.svg'>","<img src='<?php echo get_template_directory_uri() ?>/images/arrow_right.svg'>"],
slideby: 1,
dots: false,
mouseDrag: false,
autoplay: true,
autoplayTimeout: 30000,
items: 2,
margin: 40,
responsive:{
993: {
items: 2,
autoplay: true,
},
320: {
autoplay: true,
items: 1,
}
}
})
var owl = $('.autowidth');
owl.owlCarousel({
autoWidth:true,
autoplay: true,
})
"use strict";
!function() {
var t = window.driftt = window.drift = window.driftt || [];
if (!t.init) {
if (t.invoked) return void (window.console && console.error && console.error("Drift snippet included twice."));
t.invoked = !0, t.methods = [ "identify", "config", "track", "reset", "debug", "show", "ping", "page", "hide", "off", "on" ],
t.factory = function(e) {
return function() {
var n = Array.prototype.slice.call(arguments);
return n.unshift(e), t.push(n), t;
};
}, t.methods.forEach(function(e) {
t[e] = t.factory(e);
}), t.load = function(t) {
var e = 3e5, n = Math.ceil(new Date() / e) * e, o = document.createElement("script");
o.type = "text/javascript", o.async = !0, o.crossorigin = "anonymous", o.src = "https://js.driftt.com/include/" + n + "/" + t + ".js";
var i = document.getElementsByTagName("script")[0];
i.parentNode.insertBefore(o, i);
};
}
}();
drift.SNIPPET_VERSION = '0.3.1';
drift.load('anm7w6fdv44n');
ScrollReveal().reveal('.footer_project', { distance: '250px', easing: 'ease-in-out', duration: 700 });
ScrollReveal().reveal('.SoMe_footer', { distance: '250px', easing: 'ease-in-out', duration: 700 });
ScrollReveal().reveal('.contact_footer', { distance: '250px', easing: 'ease-in-out', duration: 700 });
</script>
</body>
</html>