-
Notifications
You must be signed in to change notification settings - Fork 0
/
footer.php
executable file
·48 lines (39 loc) · 1.06 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
<?php
/**
* The template for displaying the footer.
*
*
* @package WordPress
* @subpackage Siren
* @version 3.8
*/
?>
<?php get_sidebar(); ?>
</div>
<footer id="colophon" class="footer" role="contentinfo">
<div class="footer_content">
<?php do_action( 'siren_credits' ); ?>
<a href="<?php echo esc_url( __( 'http://wordpress.org/', 'siren' ) ); ?>" title="<?php esc_attr_e( 'Semantic Personal Publishing Platform', 'siren' ); ?>"><?php printf( __( 'Proudly powered by %s', 'siren' ), 'WordPress' ); ?></a>
</div>
</footer>
<!-- FONT LOADING -->
<?php if(!isset($_COOKIE['fontloaded-project'])) { ?>
<script>
<?php
if(isset($_COOKIE['fullCSS-project'])) {
require_once('js/loading/cookie.js');
}
require_once('js/loading/fonts.js');
?>
var observer = new FontFaceObserver("Avenir Next LT W01 Bold", {
weight: 300
});
observer.check().then(function () {
document.getElementsByTagName('body')[0].className += " font-loaded";
cookie( 'fontloaded-project', "true", 7 );
});
</script>
<?php } ?>
<?php wp_footer(); ?>
</body>
</html>