-
Notifications
You must be signed in to change notification settings - Fork 0
/
footer.php
58 lines (54 loc) · 1.72 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
<?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 CongGiao
*/
$wgNumber = cg_gen_get_footer_widget();
$numberWd = ( $wgNumber['chon'] == 'y' ) ? $wgNumber['number'] : 0;
$footerInfo = cg_gen_get_footer_info();
?>
</div><!-- #content -->
<div id="gototop"><i class="fas fa-angle-up"></i></div>
<footer id="colophon" class="footer" style="padding: 3rem 1.5rem 1.5rem">
<div class="container">
<?php
if ( $wgNumber['chon'] == 'y' ){
echo '<div class="columns footer-widget">';
for ($i=1; $i <= $numberWd; $i++) { ?>
<div class="column widget-area ">
<?php if ( is_active_sidebar( 'footer-'.$i ) ) : ?>
<?php dynamic_sidebar( 'footer-'.$i ); ?>
<?php endif; ?>
</div>
<?php
}
echo '</div> <hr>';
}
?>
<div class="columns footer-info">
<div class="column">
<?php echo $footerInfo['left']; ?>
</div>
<div class="column has-text-right">
<?php echo $footerInfo['right']; ?>
</div>
</div>
<?php
if ( $footerInfo['credit'] == 1 ){
echo '<hr>';
echo '<div class="site-info has-text-centered" style="opacity: 0.3;">';
echo 'Giao diện được phát triển và chia sẻ miễn phí, nhấn vào <a href="https://github.com/WeAreUnique/CongGiaoWordpressTheme" target="_blank">Đây</a> để theo dõi. <span class="sep"> | </span> Thiết kế: <a href="https://bbland.net" target="_blank">BBLand Blog</a>';
echo '</div><!-- .site-info -->';
}
?>
</div><!-- .container -->
</footer><!-- #colophon -->
</div><!-- #page -->
<?php wp_footer(); ?>
</body>
</html>