-
Notifications
You must be signed in to change notification settings - Fork 0
/
footer.php
64 lines (49 loc) · 1.78 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
<?php
$siteName = get_bloginfo('name');
$icpNumber = '<a href="http://www.miitbeian.gov.cn" rel="external nofollow noopener noreferrer" target="_blank">'.get_theme_settings('site_icp_number').'</a>';
$customFooterText = (string) get_theme_settings('custom_footer_text_style', 'Copyright © %1$s %2$s ', false);
?>
<footer id="footer">
<div class="footer-left">
<?php echo sprintf($customFooterText, $siteName, $icpNumber) ?>
</div>
<div class="footer-right">
<?php if (get_theme_settings('display_footer_menu')) : wp_nav_menu(); endif ?>
</div>
</footer>
</div>
<?php wp_footer() ?>
<?php if (is_home()) : ?>
<script src="https://cdn.jsdelivr.net/npm/[email protected]"></script>
<script>
<?php
$remoteQuotes = file_get_contents("compress.zlib://".'https://rest.shanbay.com/api/v2/quote/quotes/today/');
?>
var typed_quote = <?php echo $remoteQuotes; ?>;
var data = typed_quote.data;
// var str = data.content+'\n'
// + data.translation+"\n---- "
// +data.author +'\n'
var str = data.content+'\n'
+ data.translation+"\n---- "
var options = {
strings: [
str + "Who??^1000",
str + "It's me ^3000",
str +'Haha, make a joke',
str +data.author,
// str+"Welcome to my blog. ^1000",
// str+"Here you can learn the JavaScript",
// str+"Here you can learn the Css",
],
typeSpeed: 20,
startDelay:300,
// loop: true,
}
var typed = new Typed(".description .typed", options);
</script>
<?php endif ?>
<script async src="//busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js"></script>
<script src="<?php echo get_template_directory_uri() . '/assets/js/main.js' ?>"></script>
</body>
</html>