This repository has been archived by the owner on May 23, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
footer.php
56 lines (49 loc) · 2.1 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
<footer>
<?php if (get_theme_mod('display_backtotop', true) === true) : ?>
<svg class="backtotop" viewBox="0 0 24 24" onclick="scrollToTop()">
<path d="M16.59 9.42L12 4.83L7.41 9.42L6 8l6-6l6 6l-1.41 1.42m0 6L12 10.83l-4.59 4.59L6 14l6-6l6 6l-1.41 1.42m0 6L12 16.83l-4.59 4.59L6 20l6-6l6 6l-1.41 1.42z" />
</svg>
<?php endif; ?>
<main>
<section>
<?php dynamic_sidebar('footer_left'); ?>
</section>
<section>
<?php dynamic_sidebar('footer_center'); ?>
</section>
<section>
<?php dynamic_sidebar('footer_right'); ?>
</section>
</main>
<div class="container" style="font-size: 0.9rem">
<?php dynamic_sidebar('footer_bottom'); ?>
<?php echo get_option('footer_bottom_text'); ?>
</div>
</footer>
<?php
$fontfamily = get_option('font_family', 'Roboto');
$fontfamily_location = get_template_directory_uri() . '/assets/font-families/' . $fontfamily . '/' . $fontfamily;
?>
<style>
@font-face {
font-family: 'SelectedFontFamily';
font-weight: normal;
src: url("<?php echo $fontfamily_location; ?>.eot") format('embedded-opefilenametype'), url("<?php echo $fontfamily_location; ?>.woff2") format('woff2'), url("<?php echo $fontfamily_location; ?>.woff") format('woff'), url("<?php echo $fontfamily_location; ?>.ttf") format('truetype');
font-display: swap;
}
@font-face {
font-family: 'SelectedFontFamily';
font-weight: bold;
src: url("<?php echo $fontfamily_location; ?>-Bold.eot") format('embedded-opefilenametype'), url("<?php echo $fontfamily_location; ?>-Bold.woff2") format('woff2'), url("<?php echo $fontfamily_location; ?>-Bold.woff") format('woff'), url("<?php echo $fontfamily_location; ?>-Bold.ttf") format('truetype');
font-display: swap;
}
</style>
<?php wp_footer(); ?>
<script>
const adminBar = document.getElementById('wpadminbar');
if (typeof(adminBar) != 'undefined' && adminBar != null) {
document.getElementsByTagName('nav')[0].style.paddingTop = '20px';
}
</script>
</body>
</html>