forked from mirai-mamori/Sakurairo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
footer.php
186 lines (183 loc) · 8.18 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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
<?php
/**
* The template for displaying the footer.
*
* Contains the closing of the #content div and all content after.
*
* @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
*
* @package Sakura
*/
$reception_background = iro_opt('reception_background');
?>
</div><!-- #content -->
<?php
comments_template('', true);
?>
</div><!-- #page Pjax container-->
<footer id="colophon" class="site-footer" role="contentinfo">
<div class="site-info" theme-info="Sakurairo v<?php echo IRO_VERSION; ?>">
<div class="footertext">
<div class="img-preload">
<img src="<?php echo iro_opt('load_nextpage_svg'); ?>"><!-- 加载下一部分圈圈 -->
</div>
<?php if (iro_opt('footer_sakura_icon', 'true')): ?>
<i class="iconfont icon-sakura rotating" style="color: <?php echo iro_opt('theme_skin_matching'); ?>;display:inline-block;font-size:26px"></i>
<?php endif; ?></p>
<?php echo iro_opt('footer_info', ''); ?>
</div>
<div class="footer-device function_area">
<?php if(iro_opt('footer_yiyan')){ ?>
<p id="footer_yiyan"></p>
<?php } ?>
<span style="color: #b9b9b9;">
<?php /* 能保留下面两个链接吗?算是我一个小小的心愿吧~ */ ?>
<?php if (iro_opt('footer_load_occupancy', 'true')): ?>
<?php printf(
_x( 'Load Time %.3f seconds | %d Query | RAM Usage %.2f MB ', 'footer load occupancy', 'sakurairo' ),
timer_stop( 0, 3 ),get_num_queries(),memory_get_peak_usage() / 1024 / 1024);
?>
<?php endif; ?>
<?php if (iro_opt('footer_upyun', 'true')): ?>
本网站由 <a href="https://www.upyun.com/?utm_source=lianmeng&utm_medium=referral" target="_blank"> <img alt="upyun-logo" src="https://s.nmxc.ltd/sakurairo_vision/@2.5/options/upyun_logo.webp" style="display:inline-block;vertical-align:middle;width:60px;height:30px;"/> 提供 CDN 加速 / 云存储 服务
<?php endif; ?>
<br>
<a href="https://github.com/mirai-mamori/Sakurairo" rel="noopener" target="_blank" id="site-info" >Theme Sakurairo</a><a href="https://fuukei.org/" rel="noopener" target="_blank" id="site-info" > by Fuukei</a>
</span>
</p>
</div>
</div><!-- .site-info -->
</footer><!-- #colophon -->
</section><!-- #section -->
<!-- m-nav-center -->
<div id="mo-nav">
<div class="m-avatar">
<?php
$personal_avatar = iro_opt('personal_avatar');
$iro_logo = iro_opt('iro_logo');
$ava = iro_opt('personal_avatar') ? $personal_avatar: ($iro_logo ?: iro_opt('vision_resource_basepath','https://s.nmxc.ltd/sakurairo_vision/@2.5/').'series/avatar.webp'); ?>
<img src="<?php echo $ava ?>">
</div>
<div class="m-search">
<form class="m-search-form" method="get" action="<?php echo home_url(); ?>" role="search">
<input class="m-search-input" type="search" name="s" placeholder="<?php _e('Search...', 'sakurairo') /*搜索...*/?>" required>
</form>
</div>
<?php wp_nav_menu( array( 'depth' => 2, 'theme_location' => 'primary', 'container' => false ) ); ?>
</div><!-- m-nav-center end -->
<button id="moblieGoTop" title="<?=__('Go to top','sakurairo');?>"><i class="fa fa-chevron-up" aria-hidden="true"></i></button>
<button id="changskin"><i class="iconfont icon-gear inline-block rotating"></i></button>
<!-- search start -->
<form class="js-search search-form search-form--modal" method="get" action="<?php echo home_url(); ?>" role="search">
<div class="search-form__inner">
<?php if(iro_opt('live_search')){ ?>
<div class="micro">
<i class="iconfont icon-search"></i>
<input id="search-input" class="text-input" type="search" name="s" placeholder="<?php _e('Want to find something?', 'sakurairo') /*想要找点什么呢*/?>" required>
</div>
<div class="ins-section-wrapper">
<a id="Ty" href="#"></a>
<div class="ins-section-container" id="PostlistBox"></div>
</div>
<?php }else{ ?>
<div class="micro">
<p class="micro mb-"><?php _e('Want to find something?', 'sakurairo') /*想要找点什么呢*/?></p>
<i class="iconfont icon-search"></i>
<input class="text-input" type="search" name="s" placeholder="<?php _e('Search', 'sakurairo') ?>" required>
</div>
<?php } ?>
</div>
<div class="search_close"></div>
</form>
<!-- search end -->
<?php wp_footer(); ?>
<div class="skin-menu no-select">
<?php if(iro_opt('style_menu_display') == 'full'): ?>
<p style="margin-bottom: 0.5em;"><?php echo iro_opt('style_menu_reception_text', ''); ?></p>
<?php endif; ?>
<div class="theme-controls row-container">
<ul class="menu-list">
<li id="white-bg">
<i class="fa fa-television faa-tada animated-hover faa-fast" aria-hidden="true"></i>
</li><!--Default-->
<?php if($reception_background['heart_shaped'] == '1'): ?>
<li id="diy1-bg">
<i class="fa fa-heart-o faa-pulse animated-hover faa-fast" aria-hidden="true"></i>
</li><!--Diy1-->
<?php endif; ?>
<?php if($reception_background['star_shaped'] == '1'): ?>
<li id="diy2-bg">
<i class="fa fa-star-o faa-float animated-hover faa-fast" aria-hidden="true"></i>
</li><!--Diy2-->
<?php endif; ?>
<?php if($reception_background['square_shaped'] == '1'): ?>
<li id="diy3-bg">
<i class="fa fa-delicious faa-horizontal animated-hover faa-fast" aria-hidden="true"></i>
</li><!--Diy3-->
<?php endif; ?>
<?php if($reception_background['lemon_shaped'] == '1'): ?>
<li id="diy4-bg">
<i class="fa fa-lemon-o faa-wrench animated-hover faa-fast" aria-hidden="true"></i>
</li><!--Diy4-->
<?php endif; ?>
<li id="dark-bg">
<i class="fa fa-moon-o faa-passing animated-hover faa-fast" aria-hidden="true"></i>
</li><!--Night-->
</ul>
</div>
<?php if(iro_opt('style_menu_display') == 'full'): ?>
<p style="margin-bottom: 0.1em;"><?php echo iro_opt('style_menu_font_area_text', ''); ?></p>
<div class="font-family-controls row-container">
<button type="button" class="control-btn-serif selected" data-name="serif" ><i class="fa fa-font faa-vertical animated-hover" aria-hidden="true"></i></button>
<button type="button" class="control-btn-sans-serif" data-name="sans-serif"><i class="fa fa-bold faa-vertical animated-hover" aria-hidden="true"></i></button>
</div>
<?php endif; ?>
</div>
<?php if (iro_opt('sakura_widget')) : ?>
<aside id="secondary" class="widget-area" role="complementary" style="left: -400px;">
<div class="heading"><?php _e('Widgets') /*小工具*/ ?></div>
<div class="sakura_widget">
<?php if (function_exists('dynamic_sidebar') && dynamic_sidebar('sakura_widget')) : endif; ?>
</div>
<div class="show-hide-wrap"><button class="show-hide"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><path d="M22 16l-10.105-10.6-1.895 1.987 8.211 8.613-8.211 8.612 1.895 1.988 8.211-8.613z"></path></svg></button></div>
</aside>
<?php endif; ?>
<?php if (iro_opt('aplayer_server') != 'off'): ?>
<div id="aplayer-float" style="z-index: 100;"
class="aplayer"
data-id="<?php echo iro_opt('aplayer_playlistid', ''); ?>"
data-server="<?php echo iro_opt('aplayer_server'); ?>"
data-preload="<?php echo iro_opt('aplayer_preload'); ?>"
data-type="playlist"
data-fixed="true"
data-order="<?php echo iro_opt('aplayer_order'); ?>"
data-volume="<?php echo iro_opt('aplayer_volume', ''); ?>"
data-theme="<?php echo iro_opt('theme_skin'); ?>">
</div>
<?php endif; ?>
<!-- 首页波浪特效 -->
<?php if (iro_opt('wave_effects', 'true')): ?>
<link rel="stylesheet" href="<?php global $shared_lib_basepath;echo $shared_lib_basepath?>/css/wave.css">
<?php endif; ?>
<?php
echo iro_opt('footer_addition', '');
?>
</body>
<!-- Particles动效 -->
<?php if (iro_opt('particles_effects', 'true')): ?>
<style>
#particles-js {
width: 100%;
height: 100%;
position: fixed;
left: 0;
right: 0;
top: 0;
bottom: 0;
z-index: -1;
}
</style>
<div id="particles-js"></div>
<script type="application/json" id="particles-js-cfg"><?=iro_opt('particles_json','')?></script>
<?php endif; ?>
</html>