-
Notifications
You must be signed in to change notification settings - Fork 18
/
footer.php
executable file
·142 lines (127 loc) · 4.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
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
<?php
/**
* The template for displaying the footer
*
* Contains the closing of the #content div and all content after.
* php version 7.4.11
*
* @category Sunflower
* @package Sunflower
* @author Tom Rose <[email protected]>
* @license GNU General Public License 3 https://www.gnu.org/licenses/gpl-3.0.html
* @link https://github.com/codeispoetry/sunflower
*/
?>
<?php
$sunflower_social_media_profiles = sunflower_get_social_media_profiles();
?>
<footer id="colophon" class="site-footer">
<div class="container site-info">
<?php
if ( has_nav_menu( 'footer1' ) || has_nav_menu( 'footer2' ) || $sunflower_social_media_profiles ) {
?>
<div class="row">
<div class="col-12 col-md-4 d-flex justify-content-center justify-content-md-start">
<nav class="navbar navbar-top navbar-expand-md ">
<div class="text-center ">
<?php
wp_nav_menu(
array(
'theme_location' => 'footer1',
'menu_id' => 'footer1',
'depth' => 1,
// 1 = no dropdowns, 2 = with dropdowns.
'container' => false,
'menu_class' => 'navbar-nav small',
'fallback_cb' => 'WP_Bootstrap_Navwalker::fallback',
'walker' => new WP_Bootstrap_Navwalker(),
)
);
?>
</div>
</nav>
</div>
<div class="col-12 col-md-4 p-2 justify-content-center d-flex">
<?php
echo wp_kses_post( $sunflower_social_media_profiles );
?>
</div>
<div class="col-12 col-md-4 d-flex justify-content-center justify-content-md-end">
<nav class="navbar navbar-top navbar-expand-md">
<div class="text-center">
<?php
wp_nav_menu(
array(
'theme_location' => 'footer2',
'menu_id' => 'footer2',
'depth' => 1,
// 1 = no dropdowns, 2 = with dropdowns.
'container' => false,
'menu_class' => 'navbar-nav small',
'fallback_cb' => 'WP_Bootstrap_Navwalker::fallback',
'walker' => new WP_Bootstrap_Navwalker(),
)
);
?>
</div>
</nav>
</div>
</div>
<div class="row">
<div class="col-12 mt-4 mb-4">
<hr>
</div>
</div>
<?php
}
?>
<div class="row d-block d-lg-none mb-5">
<div class="col-12">
<nav class=" navbar navbar-top navbar-expand-md d-flex justify-content-center">
<div class="text-center">
<?php
wp_nav_menu(
array(
'theme_location' => 'topmenu',
'menu_id' => 'topmenu-footer',
'depth' => 1,
// 1 = no dropdowns, 2 = with dropdowns.
'container' => false,
'menu_class' => 'navbar-nav small',
'fallback_cb' => 'WP_Bootstrap_Navwalker::fallback',
'walker' => new WP_Bootstrap_Navwalker(),
)
);
?>
</div>
</nav>
</div>
</div>
<div class="row">
<div class="col-8 col-md-10">
<p class="small">
<?php bloginfo( 'name' ); ?> benutzt das<br>freie
grüne Theme <a href="https://sunflower-theme.de" target="_blank">sunflower</a> ‐ ein
Angebot der <a href="https://verdigado.com/" target="_blank">verdigado eG</a>.
</p>
</div>
<div class="col-4 col-md-2">
<?php
$sunflower_logo = wp_get_attachment_image_src( get_theme_mod( 'custom_logo' ), 'full' );
if ( has_custom_logo() ) {
printf( '<img src="%s" class="img-fluid" alt="Logo %s">', esc_url( $sunflower_logo[0] ), esc_attr( get_bloginfo( 'name' ) ) );
} else {
$sunflower_options = get_option( 'sunflower_first_steps_options' );
if ( ( $sunflower_options['sunflower_terms_of_use'] ?? false ) === 'checked' ) {
printf( '<img src="%s" class="img-fluid" alt="Logo BÜNDNIS 90/DIE GRÜNEN">', esc_attr( sunflower_parent_or_child( 'assets/img/logo-diegruenen.png' ) ) );
}
}
?>
</div>
</div>
</div><!-- .site-info -->
</footer><!-- #colophon -->
</div><!-- #page -->
<?php wp_footer(); ?>
</body>
</html>