-
Notifications
You must be signed in to change notification settings - Fork 0
/
footer.php
160 lines (105 loc) · 3.25 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
<?php
/**
* The template for displaying the footer
*
* Contains the closing of the #content div and all content after.
*
* @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
*
* @package WordPress
* @since 0.0.1
* @author Shameem Reza
*/
?>
<?php
$disable_footer = roach_disable_footer();
if (!$disable_footer) { ?>
<?php if (!function_exists("is_woocommerce")): ?>
<?php if (
is_single() &&
!get_theme_mod("roach_hide_breadcrumb") &&
!get_post_meta(get_the_ID(), "hide_breadcrumbs", true)
): ?>
<div class="footer-breadcrumb">
<?php roach_breadcrumbs(false); ?>
</div>
<?php endif; ?>
<?php if (
is_page() &&
!get_theme_mod("roach_hide_breadcrumb_page") &&
!get_post_meta(get_the_ID(), "hide_breadcrumbs", true)
): ?>
<div class="footer-breadcrumb">
<?php echo roach_breadcrumbs_pages($post, false); ?>
</div>
<?php endif; ?>
<?php if (
(is_single() || is_page()) &&
!get_theme_mod("roach_hide_rise_button")
): ?>
<span class="go-top"><span><?php _e(
"Go up",
"roach"
); ?></span><i class="arrow arrow-up"></i></span>
<?php endif; ?>
<?php endif; ?>
<?php if (is_active_sidebar("social")): ?>
<div class="content-footer-social">
<?php dynamic_sidebar("social"); ?>
</div>
<?php endif; ?>
<?php if (
is_active_sidebar("widget-footer-1") ||
is_active_sidebar("widget-footer-2") ||
is_active_sidebar("widget-footer-3") ||
is_active_sidebar("widget-footer-4")
): ?>
<footer>
<div class="content-footer">
<div class="widget-content-footer">
<?php if (
has_custom_logo() &&
!get_theme_mod("roach_hide_logo_footer")
): ?>
<div class="logo-footer"><?php the_custom_logo(); ?></div>
<?php endif; ?>
<?php if (is_active_sidebar("widget-footer-1")): ?>
<?php dynamic_sidebar("widget-footer-1"); ?>
<?php endif; ?>
<?php if (is_active_sidebar("widget-footer-2")): ?>
<?php dynamic_sidebar("widget-footer-2"); ?>
<?php endif; ?>
<?php if (is_active_sidebar("widget-footer-3")): ?>
<?php dynamic_sidebar("widget-footer-3"); ?>
<?php endif; ?>
<?php if (is_active_sidebar("widget-footer-4")): ?>
<?php dynamic_sidebar("widget-footer-4"); ?>
<?php endif; ?>
</div>
</div>
</footer>
<?php endif; ?>
<?php }
?>
<?php if (get_theme_mod("roach_show_cookies")):
$cookies_text = get_theme_mod("roach_cookies_text");
$cookies_text_btn = get_theme_mod("roach_cookies_text_btn");
$cookies_link = get_theme_mod("roach_cookies_link");
$cookies_text_link = get_theme_mod("roach_cookies_text_link");
?>
<div id="cookiesbox" class="cookiesn">
<p>
<?php echo $cookies_text; ?>
<a href="<?php echo get_the_permalink(
$cookies_link
); ?>"><?php echo $cookies_text_link; ?></a>
</p>
<p>
<button onclick="allowCookies()"><?php echo $cookies_text_btn; ?></button>
</p>
</div>
<?php
endif; ?>
<?php wp_footer(); ?>
</body>
</html>