/
footer.php
88 lines (83 loc) · 2.84 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
<?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 Deejay
*/
?>
</div><!-- #content -->
<footer id="colophon" class="site-footer" itemscope="itemscope" itemtype="http://schema.org/WPFooter" role="contentinfo">
<h2 class="screen-reader-text"><?php esc_html_e( 'Footer Content', 'deejay' ); ?></h2>
<?php
if ( is_active_sidebar( 'sidebar-3' ) ) {
?>
<aside class="widget-area" itemscope="itemscope" itemtype="http://schema.org/WPSideBar">
<?php dynamic_sidebar( 'sidebar-3' ); ?>
</aside>
<?php
}
if ( has_nav_menu( 'social' ) && ! get_theme_mod( 'deejay_hide_footer_social_links' ) ) {
?>
<nav class="social-menu" aria-label="<?php esc_attr_e( 'Footer Social Media Links', 'deejay' ); ?>"
itemscope="itemscope" itemtype="http://schema.org/SiteNavigationElement" role="navigation">
<?php
wp_nav_menu(
array(
'theme_location' => 'social',
'menu_class' => 'social-links-menu',
'depth' => 1,
'link_before' => '<span class="screen-reader-text">',
'link_after' => '</span>' . deejay_get_svg( array( 'icon' => 'chain' ) ),
'container' => false,
)
);
?>
</nav><!-- #social-menu -->
<?php }; ?>
<div class="site-info">
<?php
if ( is_active_sidebar( 'sidebar-4' ) ) {
?>
<aside class="widget-area" itemscope="itemscope" itemtype="http://schema.org/WPSideBar">
<?php dynamic_sidebar( 'sidebar-4' ); ?>
</aside>
<?php
}
if ( ! get_theme_mod( 'deejay_hide_credits' ) ) {
?>
<a href="<?php echo esc_url( __( 'https://wordpress.org/', 'deejay' ) ); ?>" class="credit"><?php printf( esc_html__( 'Proudly powered by %s', 'deejay' ), 'WordPress' ); ?></a>
<?php
if ( ! get_theme_mod( 'deejay_hide_gototop' ) ) {
?>
<div class="go-to-top">
<a href="#page"><?php echo deejay_get_svg( array( 'icon' => 'angle-down' ) ); ?><span class="screen-reader-text"><?php esc_html_e( 'Go to the top', 'deejay' ); ?></span></a>
</div>
<?php
} else {
echo ' | ';
}
?>
<a href="<?php echo esc_url( 'https://themesbycarolina.com/' ); ?>" rel="nofollow" class="theme-credit"><?php /* translators: 1: Theme name */ printf( esc_html__( 'Theme: %1$s by Carolina', 'deejay' ), 'Deejay' ); ?></a>
<?php
} else {
if ( ! get_theme_mod( 'deejay_hide_gototop' ) ) {
?>
<div class="go-to-top">
<a href="#page"><?php echo deejay_get_svg( array( 'icon' => 'angle-down' ) ); ?><span class="screen-reader-text"><?php esc_html_e( 'Go to the top', 'deejay' ); ?></span></a>
</div>
<?php
}
}
?>
</div><!-- .site-info -->
</footer><!-- #colophon -->
</div><!-- #page -->
<?php
wp_footer();
?>
</body>
</html>