-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfooter.php
More file actions
executable file
·112 lines (103 loc) · 4.01 KB
/
footer.php
File metadata and controls
executable file
·112 lines (103 loc) · 4.01 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
<?php
/**
* The template for displaying the footer.
*
* @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
*
* @package CCW_Countries
*/
?>
</main>
<footer class="o-footer">
<div class="c-grid c-grid--v-top">
<?php if ( has_nav_menu( 'footer_navigation_1' ) ) : ?>
<div class="c-col--3">
<p class="o-footer__heading"><?php nav_menu_name_by_location( 'footer_navigation_1' ); ?></p>
<?php
wp_nav_menu([
'theme_location' => 'footer_navigation_1',
'menu_class' => 'o-footer__list',
'container' => false
]);
?>
</div>
<?php endif; ?>
<?php if ( has_nav_menu( 'footer_navigation_2' ) ) : ?>
<div class="c-col--3">
<p class="o-footer__heading"><?php nav_menu_name_by_location( 'footer_navigation_2' ); ?></p>
<?php
wp_nav_menu([
'theme_location' => 'footer_navigation_2',
'menu_class' => 'o-footer__list',
'container' => false
]);
?>
</div>
<?php endif; ?>
<?php if ( has_nav_menu( 'footer_navigation_3' ) ) : ?>
<div class="c-col--3">
<p class="o-footer__heading"><?php nav_menu_name_by_location( 'footer_navigation_3' ); ?></p>
<?php
wp_nav_menu([
'theme_location' => 'footer_navigation_3',
'menu_class' => 'o-footer__list',
'container' => false
]);
?>
</div>
<?php endif; ?>
<?php if ( has_nav_menu( 'footer_navigation_4' ) ) : ?>
<div class="c-col--3">
<p class="o-footer__heading"><?php nav_menu_name_by_location( 'footer_navigation_4' ); ?></p>
<?php
wp_nav_menu([
'theme_location' => 'footer_navigation_4',
'menu_class' => 'o-footer__list',
'container' => false
]);
?>
</div>
<?php endif; ?>
</div>
<div class="c-grid">
<div class="c-col--9">
© <?php echo date('Y'); ?>
</div>
<div class="c-col--2">
<ul class="o-footer__social-list">
<?php if( defined( 'SOCIAL_FACEBOOK_URL' ) ): ?>
<li class="o-footer__social-list-item">
<a class="o-footer__social-list-link" href="<?php echo SOCIAL_FACEBOOK_URL ?>" target="_blank">
<span class="c-icon c-icon--social-facebook c-icon--white"></span>
</a>
</li>
<?php endif; ?>
<?php if( defined( 'SOCIAL_TWITTER_URL' ) ): ?>
<li class="o-footer__social-list-item">
<a class="o-footer__social-list-link" href="<?php echo SOCIAL_TWITTER_URL ?>" target="_blank">
<span class="c-icon c-icon--social-twitter c-icon--white"></span>
</a>
</li>
<?php endif; ?>
<?php if( defined( 'SOCIAL_GOOGLE_URL' ) ): ?>
<li class="o-footer__social-list-item">
<a class="o-footer__social-list-link" href="<?php echo SOCIAL_GOOGLE_URL ?>" target="_blank">
<span class="c-icon c-icon--social-google c-icon--white"></span>
</a>
</li>
<?php endif; ?>
<?php if( defined( 'SOCIAL_YOUTUBE_URL' ) ): ?>
<li class="o-footer__social-list-item">
<a class="o-footer__social-list-link" href="<?php echo SOCIAL_YOUTUBE_URL ?>" target="_blank">
<span class="c-icon c-icon--social-youtube c-icon--white"></span>
</a>
</li>
<?php endif; ?>
</ul>
</div>
</div>
<?php dynamic_sidebar( 'sidebar-footer' ); ?>
</footer>
<?php wp_footer(); ?>
</body>
</html>