-
Notifications
You must be signed in to change notification settings - Fork 1
/
footer.php
75 lines (67 loc) · 2.65 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
<?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
*/
$url = 'https://colorlib.com/';
$copyText = sprintf( __( 'Theme by %s colorlib %s Copyright © %s | All rights reserved.', 'edumark' ), '<a target="_blank" href="' . esc_url( $url ) . '">', '</a>', date( 'Y' ) );
$copyRight = !empty( edumark_opt( 'edumark_footer_copyright_text' ) ) ? edumark_opt( 'edumark_footer_copyright_text' ) : $copyText;
$footer_class = edumark_opt( 'edumark_footer_widget_toggle' ) == 1 ? 'footer-area' : 'no_widget';
?>
<!-- footer -->
<footer class="footer footer_bg_1">
<?php
if( edumark_opt( 'edumark_footer_widget_toggle' ) == 1 ) {
?>
<div class="footer_top">
<div class="container">
<div class="row">
<?php
// Footer Widget 1
echo '<div class="col-xl-4 col-md-6 col-lg-4">';
echo edumark_theme_logo('footer-logo');
if ( is_active_sidebar( 'footer-1' ) ) {
dynamic_sidebar( 'footer-1' );
}
echo '</div>';
// Footer Widget 2
if ( is_active_sidebar( 'footer-2' ) ) {
dynamic_sidebar( 'footer-2' );
}
// Footer Widget 3
if ( is_active_sidebar( 'footer-3' ) ) {
dynamic_sidebar( 'footer-3' );
}
// Footer Widget 4
if ( is_active_sidebar( 'footer-4' ) ) {
dynamic_sidebar( 'footer-4' );
}
?>
</div>
</div>
</div>
<?php
}
?>
<div class="copy-right_text">
<div class="container">
<div class="footer_border"></div>
<div class="row">
<div class="col-xl-12">
<p class="copy_right text-center">
<?php echo wp_kses_post( $copyRight ); ?>
</p>
</div>
</div>
</div>
</div>
</footer>
<!-- footer -->
<?php wp_footer(); ?>
</body>
</html>