-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfooter.php
More file actions
68 lines (57 loc) · 1.94 KB
/
footer.php
File metadata and controls
68 lines (57 loc) · 1.94 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
<?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 soodacode
*/
?>
<footer class="site-footer">
<div class="footer-container container">
<!-- <div class="footer-menu">
<?php
wp_nav_menu(array(
'theme_location' => 'footer',
'menu_id' => 'footer-menu',
'menu_class' => 'footer-nav',
'container' => 'nav',
'container_class' => 'footer-nav-container',
'depth' => 1,
));
?>
</div> -->
<div class="footer-info">
<div class="footer-branding site-branding">
<a href="<?php echo esc_url(home_url('/')); ?>"><span>Sooda</span>code</a>
<p><?php bloginfo('description'); ?></p>
</div>
<?php
$linkedin_url = get_theme_mod('linkedin_url', '');
$youtube_url = get_theme_mod('youtube_url', '');
$github_url = get_theme_mod('github_url', '');
$show_footer_social = !empty($linkedin_url) || !empty($youtube_url) || !empty($github_url);
if ($show_footer_social) : ?>
<div class="footer-social">
<?php if (!empty($linkedin_url)) : ?>
<a href="<?php echo esc_url($linkedin_url); ?>" target="_blank"><i class="ri-linkedin-line"></i></a>
<?php endif; ?>
<?php if (!empty($youtube_url)) : ?>
<a href="<?php echo esc_url($youtube_url); ?>" target="_blank"><i class="ri-youtube-line"></i></a>
<?php endif; ?>
<?php if (!empty($github_url)) : ?>
<a href="<?php echo esc_url($github_url); ?>" target="_blank"><i class="ri-github-line"></i></a>
<?php endif; ?>
</div>
<?php endif; ?>
<div class="footer-credits">
<p>© <?php echo date('Y'); ?> <?php bloginfo('name'); ?> - <a href="<?php echo esc_url(home_url('/privacy')); ?>">Legal</a></p>
</div>
</div>
</footer>
</div><!-- #page -->
<?php wp_footer(); ?>
</body>
</html>