-
Notifications
You must be signed in to change notification settings - Fork 0
/
footer.php
111 lines (97 loc) · 3.06 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
<?php
/**
* The template for displaying the footer.
*
* Contains the closing of the #content div and all content after
*
* @package kerwaapp
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly.
}
$container = get_theme_mod( 'kerwaapp_container_type' );
?>
<?php get_template_part( 'sidebar-templates/sidebar', 'footerfull' ); ?>
</div><!-- #page we need this extra closing tag here -->
<?php wp_footer(); ?>
<!-- load barba (UMD version) -->
<script src="https://unpkg.com/@barba/core"></script>
<!-- load gsap animation library (minified version) -->
<script src="https://unpkg.com/gsap@latest/dist/gsap.min.js"></script>
<!-- init barba with a simple opacity transition -->
<script type="text/javascript">
barba.init({
transitions: [{
name: 'opacity-transition',
leave(data) {
return gsap.to(data.current.container, {
opacity: 0
});
},
enter(data) {
return gsap.from(data.next.container, {
opacity: 0
});
}
}],
views: [{
namespace: 'home',
before() {
// update the menu based on user navigation
//menu.update();
},
enter() {
// refresh the parallax based on new page content
//parallax.refresh();
//tlClose.play();
},
beforeEnter({ next }) {
/*
// prevent Google Map API script from being loaded multiple times
if (typeof window.createMap === 'function') {
window.createMap();
} else {
window.createMap = () => {
// create your map here using the Map API
// Map, LatLng, InfoWindow, etc.
};
*/
// load the Google Map API script
/*let script = document.createElement('script');
script.src = 'https://app.kerwacrew.de/wp-content/cache/autoptimize/js/autoptimize_3ab2fc8ea1fc9c347ac37f7a84166d64.js';
next.container.appendChild(script);*/
//}
}
}]
});
barba.hooks.enter(() => {
// Neu initialisieren bei betreten der Seite
window.scrollTo(0, 0);
//$('.accordion').accordionLiveFilter();
//$('.listSwipe').listSwipe();
initListSwipe();
initMenu();
initLiveSearch();
accordionLiveFilter();
backToTop();
checklistNumbering();
saveToLocalStorage();
shareButton();
initSpeakerBot();
});
$('.menu-item a').on('click', function(){
barba.hooks.after(() => {
if(tlClose.progress() < 1){
menuContainer.css('background','none'); // new
tlClose.play();
$('body').css('overflow', 'auto');
} else {
menuContainer.css('background','none'); // new
tlClose.restart();
$('body').css('overflow', 'auto');
}
});
});
</script>
</body>
</html>