/
footer.php
45 lines (35 loc) · 1.06 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
<?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 V4
*/
?>
<style media="screen">
.footer-widget-area {
grid-template-columns: <?php echo get_field('footer_column_count', 'option') ?>
}
</style>
<?php
if (is_active_sidebar('footer-widget')) : ?>
<div class="v4-footer bg-color__<?php echo get_field('footer_background_color', 'option')['color_names'] ?> py-5 text-<?php echo get_field('footer_text_color', 'option')['color_names'] ?>">
<div class="container">
<div id="footer-widget-area" class="footer-widget-area" role="complementary">
<?php dynamic_sidebar('footer-widget'); ?>
</div>
</div>
</div>
<?php endif; ?>
<footer id="colophon" class="site-footer">
<div class="site-info container py-2">
<?php echo get_field('copyright_content', 'option') ?>
</div><!-- .site-info -->
</footer><!-- #colophon -->
</div><!-- #page -->
<?php wp_footer(); ?>
</body>
</html>