forked from mirai-mamori/Sakurairo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
footer.php
178 lines (172 loc) · 7.61 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
<?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
*/
$mashiro_logo = iro_opt('mashiro_logo');
$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 SAKURA_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>
<p style="color: #666666;"><?php echo iro_opt('footer_info', ''); ?></p>
</div>
<div class="footer-device">
<p style="font-family: 'Ubuntu', sans-serif;">
<p id="footer_yiyan"></p>
<span style="color: #b9b9b9;">
<?php /* 能保留下面两个链接吗?算是我一个小小的心愿吧~ */ ?>
<?php if (iro_opt('footer_load_occupancy', 'true')): ?>
<?php printf(' 耗时 %.3f 秒 | 查询 %d 次 | 内存 %.2f MB',timer_stop( 0, 3 ),get_num_queries(),memory_get_peak_usage() / 1024 / 1024);?>
<?php endif; ?></p>
Theme <a href="https://github.com/mirai-mamori/Sakurairo" target="_blank" id="site-info" >Sakurairo</a> by <a href="https://iro.tw" target="_blank" id="site-info" >Fuukei</a>
</span>
</p>
</div>
</div><!-- .site-info -->
</footer><!-- #colophon -->
<div class="openNav no-select">
<div class="iconflat no-select">
<div class="icon"></div>
</div>
</div><!-- m-nav-bar -->
</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 ?: 'https://cdn.jsdelivr.net/gh/Fuukei/Public_Repository@latest/vision/encore/avatar.jpg'); ?>
<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 -->
<a class="cd-top faa-float animated "></a>
<button id="moblieGoTop" title="Go to top"><i class="fa fa-chevron-up" aria-hidden="true"></i></button>
<button id="changskin" style="bottom: 15px;"><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
<?php endif; ?>
<div class="theme-controls row-container">
<ul class="menu-list">
<li id="white-bg">
<i class="fa fa-television" aria-hidden="true"></i>
</li><!--Default-->
<?php if($reception_background['heart_shaped'] == '1'): ?>
<li id="diy1-bg">
<i class="fa fa-heart-o" 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" aria-hidden="true"></i>
</li><!--Diy2-->
<?php endif; ?>
<?php if($reception_background['square_shaped'] == '1'): ?>
<li id="diy3-bg">
<i class="fa fa-delicious" 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" aria-hidden="true"></i>
</li><!--Diy4-->
<?php endif; ?>
<li id="dark-bg">
<i class="fa fa-moon-o" aria-hidden="true"></i>
</li><!--Night-->
</ul>
</div>
<?php if(iro_opt('style_menu_display') == 'full'): ?></p>
Font
<div class="font-family-controls row-container">
<button type="button" class="control-btn-serif selected" data-name="serif" ><i class="fa fa-font" aria-hidden="true"></i></button>
<button type="button" class="control-btn-sans-serif" data-name="sans-serif"><i class="fa fa-bold" 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('falling_effects') != 'off'): ?>
<script type="text/javascript" src="https://cdn.jsdelivr.net/gh/Fuukei/Public_Repository@latest/static/js/<?php echo iro_opt('falling_effects'); ?>.js"></script>
<?php endif; ?>
<!-- 首页波浪特效 -->
<?php if (iro_opt('wave_effects', 'true')): ?>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/Fuukei/Public_Repository@latest/static/css/bolang.css">
<?php endif; ?>
<!-- Live2D看板娘 -->
<?php if (iro_opt('live2d_options', 'true')): ?>
<script type="text/javascript" src="https://cdn.jsdelivr.net/gh/<?php echo iro_opt('live2d_custom_user'); ?>/live2d-widget@<?php echo iro_opt('live2d_custom_user_ver'); ?>/autoload.js"></script>
<?php endif; ?>
<!-- logo字体部分 -->
<link rel="stylesheet" href="<?php echo $mashiro_logo['font_link']; ?>" media="all">
</body>
</html>