-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfooter.php
52 lines (46 loc) · 1.33 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
43
44
45
46
47
48
49
50
51
52
<?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 mobin-solution
*/
?>
<?php $logo_du_site = get_field('logo_du_site', 'option');
$reseaux_sociaux = get_field('reseaux_sociaux', 'option'); ?>
<footer class="site-footer-wrapper">
<div class="site-footer internal-section-width">
<?php if (isset($logo_du_site)) : ?>
<a class="logo-footer" href="<?= esc_url(home_url('/')); ?>" rel="home">
<img src="<?= esc_url($logo_du_site['url']) ?? '' ?>" alt="<?= esc_attr($logo_du_site['alt']) ?? '' ?>">
</a>
<?php endif; ?>
<div class="site-footer-menu">
<?php
wp_nav_menu(
array(
'theme_location' => 'footer_menu',
'menu_id' => 'footer-menu',
)
);
?>
</div>
<div class="reseaux-sociaux">
<?php foreach ($reseaux_sociaux ?? [] as $reseau) : ?>
<div class="reseau-social">
<?php if (isset($reseau['image']['url'])) : ?>
<img src="<?= $reseau['image']['url'] ?? '' ?>" alt="<?= $reseau['image']['alt'] ?? '' ?>" />
<?php endif; ?>
<a href="<?= $reseau['lien_du_reseau_social']['url'] ?? '' ?>"></a>
</div>
<?php endforeach; ?>
</div>
</div>
</footer>
</div>
<?php wp_footer(); ?>
</body>
</html>