-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfooter.php
65 lines (54 loc) · 1.63 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
<?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 AKAdvent
* @since AKAdvent 1.0
*/
?>
</main><!-- #main -->
</div><!-- #primary -->
</div><!-- #content -->
<footer id="colophon" class="site-footer" role="contentinfo">
<div class="inner">
<div class="site-info">
<div class="powered-by">
<?php
$theme_data = wp_get_theme();
printf(
esc_html__( 'Angetrieben durch %s & %s.', 'akadvent' ),
'<a href="' . esc_url( __( 'https://wordpress.org/', 'akadvent' ) ) . '" target="_blank" rel="noopener" rel="noreferrer">WordPress</a>',
'<a href="' . $theme_data->get( 'ThemeURI' ) . '" target="_blank" rel="noopener" rel="noreferrer">' . $theme_data->get( 'Name' ) . '</a>'
);
?>
</div><!-- .powered-by -->
</div><!-- .site-info -->
<?php if ( has_nav_menu( 'footer' ) ) : ?>
<nav aria-label="<?php esc_attr_e( 'Footermenü', 'akadvent' ); ?>" class="footer-navigation">
<ul class="footer-navigation-wrapper">
<?php
wp_nav_menu(
array(
'theme_location' => 'footer',
'items_wrap' => '%3$s',
'container' => false,
'depth' => 1,
'link_before' => '<span>',
'link_after' => '</span>',
'fallback_cb' => false,
)
);
?>
</ul><!-- .footer-navigation-wrapper -->
</nav><!-- .footer-navigation -->
<?php endif; ?>
</div>
</footer><!-- #colophon -->
</div><!-- #page -->
<?php wp_footer(); ?>
</body>
</html>