-
Notifications
You must be signed in to change notification settings - Fork 23
Expand file tree
/
Copy pathfooter.php
More file actions
159 lines (135 loc) · 4.48 KB
/
Copy pathfooter.php
File metadata and controls
159 lines (135 loc) · 4.48 KB
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
<?php
/**
* The template for displaying the footer
*
* Contains the closing of the #content div and all content after.
*
* @package sunflower
*/
?>
<?php
$sunflower_social_media_profiles = sunflower_get_social_media_profiles();
?>
<footer id="colophon" class="site-footer">
<div class="container site-info">
<div class="site-footer__content">
<div class="d-flex justify-content-between w-100 site-footer__content--top">
<div class="vendorflex row">
<p class="small">
<?php bloginfo( 'name' ); ?> benutzt das freie
grüne Theme <a href="https://sunflower-theme.de" target="_blank">sunflower</a> ‐ ein
Angebot der <span class="nobr"><a href="https://verdigado.com/" target="_blank">verdigado eG</a></span>
</p>
</div>
<div class="footermenu-1">
<?php if ( is_active_sidebar( 'footer-center' ) ) : ?>
<div class="footer-widget-area footer-widget-area--center">
<?php dynamic_sidebar( 'footer-center' ); ?>
</div>
<?php endif; ?>
<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 class="footermenu-2">
<?php if ( is_active_sidebar( 'footer-right' ) ) : ?>
<div class="footer-widget-area footer-widget-area--right">
<?php dynamic_sidebar( 'footer-right' ); ?>
</div>
<?php endif; ?>
<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>
<div class="d-flex w-100 justify-content-between site-footer__content--bottom">
<div class="d-flex">
<?php
if ( $sunflower_social_media_profiles ) {
echo wp_kses_post( $sunflower_social_media_profiles );
} else {
// Leerer Block, damit das Layout immer den gleichen Platz hat.
echo '<div class="sunflower__socials"></div>';
}
?>
</div>
<div class="footerlogo">
<?php
sunflower_inline_svg( 'assets/img/concave.svg' );
// 1. Custom Logo hat immer Priorität.
if ( has_custom_logo() ) {
$sunflower_custom_logo = wp_get_attachment_image_src(
get_theme_mod( 'custom_logo' ),
'full'
);
if ( ! empty( $sunflower_custom_logo[0] ) ) {
printf(
'<img src="%s" class="img-fluid custom-logo" alt="%s">',
esc_url( $sunflower_custom_logo[0] ),
esc_attr( 'Logo ' . get_bloginfo( 'name' ) )
);
}
} else {
$sunflower_options = get_option( 'sunflower_options' );
$sunflower_color_scheme = $sunflower_options['sunflower_color_scheme'] ?? 'green';
if ( 'auto' === $sunflower_color_scheme ) {
printf(
'<picture><source srcset="%s" media="(prefers-color-scheme: dark)"><img src="%s" class="img-fluid default-logo" alt="%s"></picture>',
esc_url( sunflower_parent_or_child( 'assets/img/logo-diegruenen-auf-tanne.svg' ) ),
esc_url( sunflower_parent_or_child( 'assets/img/logo-diegruenen.svg' ) ),
esc_attr( 'Logo BÜNDNIS 90/DIE GRÜNEN' )
);
} else {
if ( 'light' === $sunflower_color_scheme ) {
$sunflower_logo_path = 'assets/img/logo-diegruenen.svg';
} else {
$sunflower_logo_path = 'assets/img/logo-diegruenen-auf-tanne.svg';
}
printf(
'<img src="%s" class="img-fluid default-logo" alt="%s">',
esc_url( sunflower_parent_or_child( $sunflower_logo_path ) ),
esc_attr( 'Logo BÜNDNIS 90/DIE GRÜNEN' )
);
}
}
sunflower_inline_svg( 'assets/img/concave.svg' );
?>
</div>
</div>
</div>
</div><!-- .site-info -->
</footer><!-- #colophon -->
</div><!-- #page -->
<?php wp_footer(); ?>
</body>
</html>