-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfooter.php
50 lines (39 loc) · 1.31 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
<?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 Checathlon
*/
?>
</div><!-- #content -->
<?php
get_template_part( 'widget-areas/sidebar', 'before-footer' ); // Loads the sidebar-before-footer.php template.
get_template_part( 'widget-areas/sidebar', 'footer' ); // Loads the sidebar-footer.php template.
?>
<?php if ( ! get_theme_mod( 'hide_footer_text' ) ) : ?>
<footer id="colophon" class="site-footer main-padding text-center smaller-font-size" role="contentinfo">
<div class="site-info main-width">
<span class="mobile-block">
© <?php echo date("Y"); ?>
</span>
<?php
$page = get_page_by_name('impressum');
if (!empty($page)) {
echo '<span class="mobile-block"> <a href="' . esc_url( home_url( '/impressum' ) ) . '">Impressum</a></span> ';
}
$page = get_page_by_name('datenschutz');
if (!empty($page)) {
echo '<span class="mobile-block"> <a href="' . esc_url( home_url( '/datenschutz' ) ) . '">Datenschutz</a></span> ';
}
?>
</div><!-- .site-info -->
</footer><!-- #colophon -->
<?php endif; ?>
</div><!-- #page -->
<?php wp_footer(); ?>
</body>
</html>