This repository has been archived by the owner on Mar 14, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 15
/
footer.php
102 lines (86 loc) · 3.77 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
<?php
/**
* The template for displaying the footer.
*
* Contains the closing of the #content div and all content after
*
* @package llorix-one-lite
*/
?>
<footer itemscope itemtype="http://schema.org/WPFooter" id="footer" role="contentinfo" class = "footer grey-bg">
<div class="container">
<div class="footer-widget-wrap">
<?php
if ( is_active_sidebar( 'footer-area' ) ) {
?>
<div itemscope itemtype="http://schema.org/WPSideBar" role="complementary" id="sidebar-widgets-area-1" class="col-md-3 col-sm-6 col-xs-12 widget-box" aria-label="<?php esc_html_e( 'Widgets Area 1', 'llorix-one-lite' ); ?>">
<?php
dynamic_sidebar( 'footer-area' );
?>
</div>
<?php
}
if ( is_active_sidebar( 'footer-area-2' ) ) {
?>
<div itemscope itemtype="http://schema.org/WPSideBar" role="complementary" id="sidebar-widgets-area-2" class="col-md-3 col-sm-6 col-xs-12 widget-box" aria-label="<?php esc_html_e( 'Widgets Area 2', 'llorix-one-lite' ); ?>">
<?php
dynamic_sidebar( 'footer-area-2' );
?>
</div>
<?php
}
if ( is_active_sidebar( 'footer-area-3' ) ) {
?>
<div itemscope itemtype="http://schema.org/WPSideBar" role="complementary" id="sidebar-widgets-area-3" class="col-md-3 col-sm-6 col-xs-12 widget-box" aria-label="<?php esc_html_e( 'Widgets Area 3', 'llorix-one-lite' ); ?>">
<?php
dynamic_sidebar( 'footer-area-3' );
?>
</div>
<?php
}
if ( is_active_sidebar( 'footer-area-4' ) ) {
?>
<div itemscope itemtype="http://schema.org/WPSideBar" role="complementary" id="sidebar-widgets-area-4" class="col-md-3 col-sm-6 col-xs-12 widget-box" aria-label="<?php esc_html_e( 'Widgets Area 4', 'llorix-one-lite' ); ?>">
<?php
dynamic_sidebar( 'footer-area-4' );
?>
</div>
<?php
}
?>
</div><!-- .footer-widget-wrap -->
<div class="footer-bottom-wrap">
<?php
global $wp_customize;
/* COPYRIGHT */
$llorix_one_lite_copyright = get_theme_mod( 'llorix_one_lite_copyright', apply_filters( 'llorix_one_lite_copyright_default_filter', 'Themeisle' ) );
$llorix_one_lite_copyright = apply_filters( 'llorix_one_lite_translate_single_string', $llorix_one_lite_copyright, 'Copyright' );
if ( ! empty( $llorix_one_lite_copyright ) ) {
echo '<span class="llorix_one_lite_copyright_content">' . esc_attr( $llorix_one_lite_copyright ) . '</span>';
} elseif ( isset( $wp_customize ) ) {
echo '<span class="llorix_one_lite_copyright_content llorix_one_lite_only_customizer"></span>';
}
/* OPTIONAL FOOTER LINKS */
echo '<div itemscope role="navigation" itemtype="http://schema.org/SiteNavigationElement" id="menu-secondary" aria-label="' . esc_html__( 'Secondary Menu', 'llorix-one-lite' ) . '">';
echo '<h1 class="screen-reader-text">' . esc_html__( 'Secondary Menu', 'llorix-one-lite' ) . '</h1>';
wp_nav_menu(
array(
'theme_location' => 'llorix_one_lite_footer_menu',
'container' => false,
'menu_class' => 'footer-links small-text',
'depth' => 1,
'fallback_cb' => false,
)
);
echo '</div>';
/* SOCIAL ICONS */
$llorix_one_lite_social_icons = get_theme_mod( 'llorix_one_lite_social_icons' );
llorix_one_lite_social_icons( $llorix_one_lite_social_icons, true );
?>
</div><!-- .footer-bottom-wrap -->
<?php echo apply_filters( 'llorix_one_plus_footer_text_filter', '<div class="powered-by"><a href="http://themeisle.com/themes/llorix-one/" rel="nofollow">Llorix One Lite </a>' . esc_html__( 'powered by', 'llorix-one-lite' ) . ' <a href="http://wordpress.org/" rel="nofollow">' . esc_html__( 'WordPress', 'llorix-one-lite' ) . '</a></div>' ); ?>
</div><!-- container -->
</footer>
<?php wp_footer(); ?>
</body>
</html>