forked from JeremyEnglert/JointsWP
/
footer.php
77 lines (76 loc) · 2.27 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
<footer class="page__footer" id="footer" role="contentinfo">
<section class="page__footer__nav">
<nav role="navigation">
<?php exchange_footer_links(); ?>
</nav>
</section>
<section class="page__footer__widgets section--coloured">
<?php echo BasePattern::build_edge_svg('top', exchange_slug_to_hex( 'yellow-tandem' ) ); ?>
<?php get_template_part( 'parts/content', 'footer' ); ?>
<?php echo BasePattern::build_edge_svg('bottom', exchange_slug_to_hex( 'yellow-tandem' ) ); ?>
</section>
<section class="page__footer__copyright">
<p class="source-org copyright">
<?php echo bloginfo('name') . __(' is an initiative of European Cultural Foundation and MitOst e.V.','exchange'); ?>
<!-- <a href="https://creativecommons.org/licenses/by-nc/3.0/"
title="<?php _e('Find out more about this license','exchange'); ?>"
target="_blank">
<?php echo __( 'CC BY-NC 3.0','exchange'); ?></a> -->
<?php $page = get_option('options_imprint_page_link' );
if ( ! empty( $page ) ) {
echo ' | ' . exchange_create_link( $page );
} ?>
</p>
</section>
</footer> <!-- end .footer -->
<?php wp_footer(); ?>
<script>
(function( w ){
if( w.document.documentElement.className.indexOf( "fonts-loaded" ) > -1 ){
return;
}
var font1 = new w.FontFaceObserver( "Open Sans", {
weight: 300
});
var font2 = new w.FontFaceObserver( "Open Sans", {
weight: 300,
style: "italic"
});
var font3 = new w.FontFaceObserver( "Open Sans", {
weight: 400
});
var font4 = new w.FontFaceObserver( "Open Sans", {
weight: 400,
style: "italic"
});
var font5 = new w.FontFaceObserver( "Open Sans", {
weight: 600
});
var font6 = new w.FontFaceObserver( "Open Sans", {
weight: 600,
style: "italic"
});
var font7 = new w.FontFaceObserver( "Open Sans", {
weight: 700
});
var font8 = new w.FontFaceObserver( "Open Sans", {
weight: 700,
style: "italic"
});
w.Promise
.all([
font1.check(),
font2.check(),
font3.check(),
font4.check(),
font5.check(),
font6.check(),
font7.check(),
font8.check()
]).then(function(){
w.document.documentElement.className += " fonts-loaded";
});
}( this ));
</script>
</body>
</html> <!-- end page -->