-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathfooter.php
78 lines (66 loc) · 2.01 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
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
<?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 Hale
* Theme Hale with GDS styles
* ©Crown Copyright
* Adapted from version from NHS Leadership Academy, Tony Blacker
* @version 2.0 February 2021
*/
$crown_copyright = get_theme_mod('crown_copyright', 'yes');
flush();
?>
</div>
</main>
</div>
<footer class="govuk-footer " role="contentinfo" id="footer">
<div class="govuk-width-container">
<?php if ( is_active_sidebar( 'footer-area-one' ) || is_active_sidebar( 'footer-area-two' ) ) : ?>
<div class="govuk-grid-row hale-screen-only">
<div class="govuk-grid-column-one-half">
<div id="hale-footer-area-1" class="hale-footer__widgets">
<?php dynamic_sidebar( 'footer-area-one' ); ?>
</div>
</div>
<div class="govuk-grid-column-one-half">
<div id="hale-footer-area-2" class="hale-footer__widgets">
<?php dynamic_sidebar( 'footer-area-two' ); ?>
</div>
</div>
</div>
<?php endif; ?>
<div class="govuk-footer__meta">
<div class="govuk-footer__meta-item govuk-footer__meta-item--grow">
<div class="hale-screen-only">
<?php
get_template_part( 'partials/footernav-secondary' );
get_template_part( 'partials/footernav' );
?>
</div>
<?php
get_template_part( 'partials/footer-licence' );
if ('yes' != $crown_copyright) {
get_template_part( 'partials/footer-copyright' );
}
?>
</div>
<?php
if ('yes' == $crown_copyright) {
get_template_part( 'partials/footer-crown-copyright' );
}
?>
</div>
</div>
</footer>
<?php wp_footer(); ?>
<script type="module">
import { initAll } from '<?php echo get_stylesheet_directory_uri() ?>/dist/js/govuk-frontend.js'
initAll()
</script>
</body>
</html>