forked from trivialmass/tm21-tailwind
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfooter.php
33 lines (26 loc) · 773 Bytes
/
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
</main>
</div>
<?php
$footer_block_id = get_field("footer_block", "option");
$footer_block = get_post($footer_block_id)->post_content;
?>
<footer class="footer" role="contentinfo">
<div class="container">
<?php if (get_field("footer_block", "option")) :
$post_id = get_field("footer_block", "option");
$header = get_post($post_id);
setup_postdata($header);
echo the_content();
wp_reset_postdata();
endif; ?>
</div>
</footer>
<footer class="copyright" role="contentinfo">
<div class="container text-xs">
© Copyright <?php echo date_i18n('Y'); ?> - <?php echo get_bloginfo('name'); ?> – <?php _e('Réalisé par', 'tm21') ?> <a href="https://trivialmass.ch">trivialmass</a>
</div>
</footer>
</div>
<?php wp_footer(); ?>
</body>
</html>