forked from COPIM/copim_pub_wordpress_theme
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfooter.php
More file actions
executable file
·129 lines (85 loc) · 4.5 KB
/
footer.php
File metadata and controls
executable file
·129 lines (85 loc) · 4.5 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
<?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 copim
*/
?>
<div class="container-wrapper bg-color-black container-padding-top container-padding-bottom" >
<div class="container">
<div class="row justify-center">
<footer class="site-footer col col-12" role="contentinfo" id="colophon">
<div class="footer-top">
<nav class="footer-menu-1 footer-menu-vert" aria-label="Footer Menu 1">
<?php // FOOTER MENUS 1 & 2
wp_nav_menu([
'theme_location' => 'footer-menu-1',
'menu_class' => 'footer-menu',
'container' => false,
'container_class' => 'footer-menu-1 footer-menu-vert',
'aria_label' => 'Footer Menu 1',
]); ?>
</nav>
<nav class="footer-menu-2 footer-menu-vert" aria-label="Footer Menu 2">
<?php wp_nav_menu([
'theme_location' => 'footer-menu-2',
'menu_class' => 'footer-menu',
'container' => false,
'container_class' => 'footer-menu-2 footer-menu-vert',
'aria_label' => 'Footer Menu 2',
]); ?>
</nav>
<?php // SOCIAL MENU
if (function_exists('have_rows') && have_rows('footer_social_menu_options', 'option')) :
?> <nav class="social-menu-icons" aria-label="Social media menu"><ul class="social-menu" > <?php
while (have_rows('footer_social_menu_options', 'option')) : the_row(); ?>
<?php if (function_exists('get_sub_field') && get_sub_field('footer_social_menu_url')) {
$linkurl = get_sub_field('footer_social_menu_url', 'option');
} ?>
<?php if (function_exists('get_sub_field') && get_sub_field('footer_social_menu_icon')) {
$iconurl = get_sub_field('footer_social_menu_icon', 'option'); ?>
<li><a href="<?php echo esc_url($linkurl); ?>" title="<?php echo esc_url($linkurl); ?>" class="icon-wrapper" aria-label="Follow us on <?php echo esc_attr(ucfirst($iconurl)); ?>">
<svg class="icon footer-social-icon" aria-hidden="true"><use href="<?php echo esc_url('#' . $iconurl); ?>"></use></svg>
</a></li>
<?php } ?>
<?php endwhile;
?> </ul></nav> <?php else :
endif;?>
</div>
<div class="footer-base">
<?php // LOGO?>
<div class="footer-logo">
<a href="<?php echo home_url(); ?>" aria-label="Homepage" >
<img src="<?php bloginfo('template_directory'); ?>/resources/img/obc_logo_neg.png" width="250" alt="Homepage" title="Homepage" >
</a>
</div>
<div class="footer-credits">
<nav class="footer-menu-credits footer-menu-horz" aria-label="Website Credits Menu">
<?php // CREDITS MENU
wp_nav_menu([
'theme_location' => 'footer-menu-credits',
'menu_class' => 'footer-menu-credits',
'container' => false,
'container_class' => 'footer-menu-credits footer-menu-horz',
'aria_label' => 'Website Credits Menu',
]); ?>
</nav>
<div class="footer-menu-copyright">
Copim is licensed under a <a href="https://creativecommons.org/licenses/by/4.0/">CC Attribution 4.0 International License</a> (CC BY 4.0) |
<?php // Add copyright at the end
echo '©2023-' . date('Y') . ' ' . get_bloginfo('name');
?>
</div>
</div>
</div>
</footer><!-- #colophon -->
</div><!-- / row -->
</div><!-- / container -->
</div><!-- / container-wrapper -->
<?php wp_footer(); ?>
</body>
</html>