forked from bootscore/bootscore
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfooter.php
More file actions
104 lines (72 loc) · 3.78 KB
/
footer.php
File metadata and controls
104 lines (72 loc) · 3.78 KB
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
103
104
<?php
/**
* The template for displaying the footer
* Template Version: 6.3.1
*
* Contains the closing of the #content div and all content after.
*
* @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
*
* @package Bootscore
*/
// Exit if accessed directly
defined('ABSPATH') || exit;
?>
<?php do_action( 'bootscore_before_footer' ); ?>
<footer id="footer" class="bootscore-footer">
<?php if (is_active_sidebar('footer-top')) : ?>
<div class="<?= esc_attr(apply_filters('bootscore/class/footer/top', 'bg-body-tertiary border-bottom py-5')); ?> bootscore-footer-top">
<div class="<?= esc_attr(apply_filters('bootscore/class/container', 'container', 'footer-top')); ?>">
<?php dynamic_sidebar('footer-top'); ?>
</div>
</div>
<?php endif; ?>
<div class="<?= esc_attr(apply_filters('bootscore/class/footer/columns', 'bg-body-tertiary pt-5 pb-4')); ?> bootscore-footer-columns">
<?php do_action( 'bootscore_footer_columns_before_container' ); ?>
<div class="<?= esc_attr(apply_filters('bootscore/class/container', 'container', 'footer-columns')); ?>">
<?php do_action( 'bootscore_footer_columns_after_container_open' ); ?>
<div class="row">
<div class="<?= esc_attr(apply_filters('bootscore/class/footer/col', 'col-6 col-lg-3', 'footer-1')); ?>">
<?php if (is_active_sidebar('footer-1')) : ?>
<?php dynamic_sidebar('footer-1'); ?>
<?php endif; ?>
</div>
<div class="<?= esc_attr(apply_filters('bootscore/class/footer/col', 'col-6 col-lg-3', 'footer-2')); ?>">
<?php if (is_active_sidebar('footer-2')) : ?>
<?php dynamic_sidebar('footer-2'); ?>
<?php endif; ?>
</div>
<div class="<?= esc_attr(apply_filters('bootscore/class/footer/col', 'col-6 col-lg-3', 'footer-3')); ?>">
<?php if (is_active_sidebar('footer-3')) : ?>
<?php dynamic_sidebar('footer-3'); ?>
<?php endif; ?>
</div>
<div class="<?= esc_attr(apply_filters('bootscore/class/footer/col', 'col-6 col-lg-3', 'footer-4')); ?>">
<?php if (is_active_sidebar('footer-4')) : ?>
<?php dynamic_sidebar('footer-4'); ?>
<?php endif; ?>
</div>
</div>
<?php do_action( 'bootscore_footer_columns_before_footer_menu' ); ?>
<!-- Bootstrap 5 Nav Walker Footer Menu -->
<?php get_template_part('template-parts/footer/footer-menu'); ?>
<?php do_action( 'bootscore_footer_columns_before_container_close' ); ?>
</div>
<?php do_action( 'bootscore_footer_columns_after_container' ); ?>
</div>
<div class="<?= esc_attr(apply_filters('bootscore/class/footer/info', 'bg-body-tertiary text-body-secondary border-top py-2 text-center')); ?> bootscore-footer-info">
<div class="<?= esc_attr(apply_filters('bootscore/class/container', 'container', 'footer-info')); ?>">
<?php do_action( 'bootscore_footer_info_after_container_open' ); ?>
<?php if (is_active_sidebar('footer-info')) : ?>
<?php dynamic_sidebar('footer-info'); ?>
<?php endif; ?>
<div class="small bootscore-copyright"><span class="cr-symbol">©</span> <?= esc_html(date_i18n('Y')); ?> <?= esc_html(get_bloginfo('name')); ?></div>
</div>
</div>
</footer>
<!-- To top button -->
<a href="#" class="<?= esc_attr(apply_filters('bootscore/class/footer/to_top_button', 'btn btn-primary shadow')); ?> position-fixed zi-1000 top-button" role="button" aria-label="<?php esc_attr_e('Return to top', 'bootscore' ); ?>"><?= wp_kses_post(apply_filters('bootscore/icon/chevron-up', '<i class="fa-solid fa-chevron-up" aria-hidden="true"></i>')); ?></a>
</div><!-- #page -->
<?php wp_footer(); ?>
</body>
</html>