-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfooter.php
42 lines (39 loc) · 1.9 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
</main> <!-- main#content -->
<?php if ( is_active_sidebar( 'above_footer' ) ) : ?>
<aside id="above_footer-sidebar" class="container" role="complementary">
<div class="row">
<?php dynamic_sidebar( 'above_footer' ); ?>
</div>
</aside>
<?php endif; ?>
<footer>
<div class="container">
<div class="row align-items-center">
<div class="col-12 col-md-4 text-center text-md-left mb-3 mb-md-0">
<a class="footer-brand" href="<?php echo esc_url(get_home_url()); ?>"><?php echo get_bloginfo('name'); ?></a>
</div>
<div class="col-12 col-md-4 text-center mb-4 mb-md-0">
<ul class="list-unstyled list-inline m-0">
<?php foreach( marmota_get_social_networks() as $marmota_slug => $marmota_label ): ?>
<?php $marmota_url = esc_url(get_theme_mod($marmota_slug)); if(empty($marmota_url)) continue; ?>
<li class="list-inline-item"><a href="<?php echo $marmota_url; ?>" target="_blank"><img src="<?php echo esc_url(get_template_directory_uri()); ?>/assets/img/social/<?php echo str_replace('marmota_social_', '', $marmota_slug); ?>.svg" /></a></li>
<?php endforeach; ?>
</ul>
</div>
<?php if(has_nav_menu('footer')): ?>
<div class="col-12 col-md-4 text-center text-md-right">
<?php
wp_nav_menu(array(
'theme_location' => 'footer',
'depth' => 0, // 1 = with dropdowns, 0 = no dropdowns.
'container_id' => 'menu-footer',
));
?>
</div>
<?php endif; ?>
</div>
</div>
</footer>
<?php wp_footer(); ?>
</body>
</html>