-
Notifications
You must be signed in to change notification settings - Fork 0
/
footer.php
executable file
·54 lines (51 loc) · 2.16 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
<footer class="footer">
<section class="container">
<span>© <?= get_copyrights_years() ?> <a href="<?= get_bloginfo('url') ?>"><?= get_bloginfo('name') ?></a></span>
<?php if (get_option('zh_cn_l10n_icp_num')) { ?>
<span> . <a href="https://beian.miit.gov.cn/" target="_blank"><?= get_option('zh_cn_l10n_icp_num') ?></a></span>
<?php } ?>
</section>
</footer>
<?php wp_footer(); ?>
<script>
(function($) {
$.extend({
adamsOverload: function() {
$(".post_article a").attr("rel", "external");
$("a[rel='external']:not([href^='#']),a[rel='external nofollow']:not([href^='#'])").attr("target", "_blank");
$("a.vi,.gallery a,.attachment a").attr("rel", "");
<?php if (!get_theme_mod('biji_setting_viewimage')) { ?>
$.viewImage({
'target': '.gallery a,.gallery img,.attachment a,.post_article img,.post_article a,a.vi',
'exclude': '.readerswall img,.gallery a img,.attachment a img'
});
<?php }
if (!get_theme_mod('biji_setting_lately')) { ?>
Lately({
'target': '.commentmetadata a:first-child,.infos time,.post-list time'
});
<?php }
?>
// * Safari
if (navigator.vendor.indexOf("Apple") > -1) {
$("[srcset]").each((index, img) => {
img.outerHTML = img.outerHTML;
});
}
<?php if (!get_theme_mod('biji_setting_placard')) { ?>
if ($('.placard').length) {
$.get("https://v1.hitokoto.cn", (data) => {
$('.placard').text(data.hitokoto);
});
}
<?php } ?>
}
});
})(jQuery);
jQuery.adamsOverload();
<?php if (get_theme_mod('biji_setting_footInfo')) {
echo get_theme_mod('biji_setting_footInfo') . "\n";
} ?>
</script>
</body>
</html>