Repository navigation
Expand file tree
/
Copy pathfooter.php
More file actions
42 lines (40 loc) · 1.66 KB
/
Copy pathfooter.php
File metadata and controls
42 lines (40 loc) · 1.66 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
<footer class="site-footer">
<div class="container">
<div class="site-footer__top">
<div class="site-footer__column">
<a class="site-footer__logo" href="<?php echo esc_url(home_url('/')); ?>" aria-label="<?php bloginfo('name'); ?>">
<?php echo base_get_inline_svg_asset('base-logo.svg'); ?>
</a>
</div>
<?php
foreach (range(1, 3) as $base_footer_menu_index) :
$base_footer_menu = 'footer-' . $base_footer_menu_index;
if (has_nav_menu($base_footer_menu)) : ?>
<div class="site-footer__column">
<h3 class="site-footer__title">
<?php echo wp_get_nav_menu_name($base_footer_menu); ?>
</h3>
<?php
wp_nav_menu([
'theme_location' => $base_footer_menu,
'container' => '',
'items_wrap' => '<ul class="site-footer__navigation">%3$s</ul>',
]);
?>
</div>
<?php endif;
endforeach;
?>
</div>
<div class="site-footer__bottom">
<?php get_template_part('template-parts/theme-switcher'); ?>
<p class="site-footer__copyright">
<?php printf('%s %s', esc_html(date('Y')), get_field('base_footer_copyright', 'option')); ?>
</p>
<?php get_template_part('template-parts/footer/socials'); ?>
</div>
</div>
</footer>
<?php wp_footer(); ?>
</body>
</html>