footer.php 8.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190
  1. <?php
  2. /**
  3. * The template for displaying the footer.
  4. *
  5. * Contains the closing of the #content div and all content after.
  6. *
  7. * @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
  8. *
  9. * @package Sakura
  10. */
  11. $mashiro_logo = iro_opt('mashiro_logo');
  12. $reception_background = iro_opt('reception_background');
  13. ?>
  14. </div><!-- #content -->
  15. <?php
  16. comments_template('', true);
  17. ?>
  18. </div><!-- #page Pjax container-->
  19. <footer id="colophon" class="site-footer" role="contentinfo">
  20. <div class="site-info" theme-info="Sakurairo v<?php echo IRO_VERSION; ?>">
  21. <div class="footertext">
  22. <div class="img-preload">
  23. <img src="<?php echo iro_opt('load_nextpage_svg'); ?>"><!-- 加载下一部分圈圈 -->
  24. </div>
  25. <?php if (iro_opt('footer_sakura_icon', 'true')): ?>
  26. <i class="iconfont icon-sakura rotating" style="color: <?php echo iro_opt('theme_skin_matching'); ?>;display:inline-block;font-size:26px"></i>
  27. <?php endif; ?>
  28. <p style="color: #666666;"><?php echo iro_opt('footer_info', ''); ?></p>
  29. </div>
  30. <div class="footer-device Ubuntu-font">
  31. <?php if(iro_opt('footer_yiyan')){ ?>
  32. <p id="footer_yiyan"></p>
  33. <?php } ?>
  34. <span style="color: #b9b9b9;">
  35. <?php /* 能保留下面两个链接吗?算是我一个小小的心愿吧~ */ ?>
  36. <?php if (iro_opt('footer_load_occupancy', 'true')): ?>
  37. <?php printf(
  38. _x( 'Load Time %.3f seconds | %d Query | RAM Usage %.2f MB ', 'footer load occupancy', 'sakurairo' ),
  39. timer_stop( 0, 3 ),get_num_queries(),memory_get_peak_usage() / 1024 / 1024);
  40. ?>
  41. <?php endif; ?>
  42. <?php if (iro_opt('footer_upyun', 'true')): ?>
  43. 本网站由 <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 加速 / 云存储 服务
  44. <?php endif; ?>
  45. <br>
  46. <a href="https://github.com/mirai-mamori/Sakurairo" rel="noopener" target="_blank" id="site-info" >Theme Sakurairo</a> by <a href="https://fuukei.org/" rel="noopener" target="_blank" id="site-info" >Fuukei</a>
  47. </span>
  48. </div>
  49. </div><!-- .site-info -->
  50. </footer><!-- #colophon -->
  51. </section><!-- #section -->
  52. <!-- m-nav-center -->
  53. <div id="mo-nav">
  54. <div class="m-avatar">
  55. <?php
  56. $personal_avatar = iro_opt('personal_avatar');
  57. $iro_logo = iro_opt('iro_logo');
  58. $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'); ?>
  59. <img src="<?php echo $ava ?>">
  60. </div>
  61. <div class="m-search">
  62. <form class="m-search-form" method="get" action="<?php echo home_url(); ?>" role="search">
  63. <input class="m-search-input" type="search" name="s" placeholder="<?php _e('Search...', 'sakurairo') /*搜索...*/?>" required>
  64. </form>
  65. </div>
  66. <?php wp_nav_menu( array( 'depth' => 2, 'theme_location' => 'primary', 'container' => false ) ); ?>
  67. </div><!-- m-nav-center end -->
  68. <button id="moblieGoTop" title="<?=__('Go to top','sakurairo');?>"><i class="fa fa-chevron-up" aria-hidden="true"></i></button>
  69. <button id="changskin"><i class="iconfont icon-gear inline-block rotating"></i></button>
  70. <!-- search start -->
  71. <form class="js-search search-form search-form--modal" method="get" action="<?php echo home_url(); ?>" role="search">
  72. <div class="search-form__inner">
  73. <?php if(iro_opt('live_search')){ ?>
  74. <div class="micro">
  75. <i class="iconfont icon-search"></i>
  76. <input id="search-input" class="text-input" type="search" name="s" placeholder="<?php _e('Want to find something?', 'sakurairo') /*想要找点什么呢*/?>" required>
  77. </div>
  78. <div class="ins-section-wrapper">
  79. <a id="Ty" href="#"></a>
  80. <div class="ins-section-container" id="PostlistBox"></div>
  81. </div>
  82. <?php }else{ ?>
  83. <div class="micro">
  84. <p class="micro mb-"><?php _e('Want to find something?', 'sakurairo') /*想要找点什么呢*/?></p>
  85. <i class="iconfont icon-search"></i>
  86. <input class="text-input" type="search" name="s" placeholder="<?php _e('Search', 'sakurairo') ?>" required>
  87. </div>
  88. <?php } ?>
  89. </div>
  90. <div class="search_close"></div>
  91. </form>
  92. <!-- search end -->
  93. <?php wp_footer(); ?>
  94. <div class="skin-menu no-select">
  95. <?php if(iro_opt('style_menu_display') == 'full'): ?>
  96. <p style="margin-bottom: 0.5em;">Style</p>
  97. <?php endif; ?>
  98. <div class="theme-controls row-container">
  99. <ul class="menu-list">
  100. <li id="white-bg">
  101. <i class="fa fa-television faa-tada animated-hover faa-fast" aria-hidden="true"></i>
  102. </li><!--Default-->
  103. <?php if($reception_background['heart_shaped'] == '1'): ?>
  104. <li id="diy1-bg">
  105. <i class="fa fa-heart-o faa-pulse animated-hover faa-fast" aria-hidden="true"></i>
  106. </li><!--Diy1-->
  107. <?php endif; ?>
  108. <?php if($reception_background['star_shaped'] == '1'): ?>
  109. <li id="diy2-bg">
  110. <i class="fa fa-star-o faa-float animated-hover faa-fast" aria-hidden="true"></i>
  111. </li><!--Diy2-->
  112. <?php endif; ?>
  113. <?php if($reception_background['square_shaped'] == '1'): ?>
  114. <li id="diy3-bg">
  115. <i class="fa fa-delicious faa-horizontal animated-hover faa-fast" aria-hidden="true"></i>
  116. </li><!--Diy3-->
  117. <?php endif; ?>
  118. <?php if($reception_background['lemon_shaped'] == '1'): ?>
  119. <li id="diy4-bg">
  120. <i class="fa fa-lemon-o faa-wrench animated-hover faa-fast" aria-hidden="true"></i>
  121. </li><!--Diy4-->
  122. <?php endif; ?>
  123. <li id="dark-bg">
  124. <i class="fa fa-moon-o faa-passing animated-hover faa-fast" aria-hidden="true"></i>
  125. </li><!--Night-->
  126. </ul>
  127. </div>
  128. <?php if(iro_opt('style_menu_display') == 'full'): ?>
  129. <p style="margin-bottom: 0.1em;">Fonts</p>
  130. <div class="font-family-controls row-container">
  131. <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>
  132. <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>
  133. </div>
  134. <?php endif; ?>
  135. </div>
  136. <?php if (iro_opt('sakura_widget')) : ?>
  137. <aside id="secondary" class="widget-area" role="complementary" style="left: -400px;">
  138. <div class="heading"><?php _e('Widgets') /*小工具*/ ?></div>
  139. <div class="sakura_widget">
  140. <?php if (function_exists('dynamic_sidebar') && dynamic_sidebar('sakura_widget')) : endif; ?>
  141. </div>
  142. <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>
  143. </aside>
  144. <?php endif; ?>
  145. <?php if (iro_opt('aplayer_server') != 'off'): ?>
  146. <div id="aplayer-float" style="z-index: 100;"
  147. class="aplayer"
  148. data-id="<?php echo iro_opt('aplayer_playlistid', ''); ?>"
  149. data-server="<?php echo iro_opt('aplayer_server'); ?>"
  150. data-preload="<?php echo iro_opt('aplayer_preload'); ?>"
  151. data-type="playlist"
  152. data-fixed="true"
  153. data-order="<?php echo iro_opt('aplayer_order'); ?>"
  154. data-volume="<?php echo iro_opt('aplayer_volume', ''); ?>"
  155. data-theme="<?php echo iro_opt('theme_skin'); ?>">
  156. </div>
  157. <?php endif; ?>
  158. <!-- 首页波浪特效 -->
  159. <?php if (iro_opt('wave_effects', 'true')): ?>
  160. <link rel="stylesheet" href="<?php global $shared_lib_basepath;echo $shared_lib_basepath?>/css/wave.css">
  161. <?php endif; ?>
  162. <!-- logo字体部分 -->
  163. <?php if (iro_opt('mashiro_logo_option') == true) { ?>
  164. <link rel="stylesheet" href="<?php echo $mashiro_logo['font_link']; ?>" media="all">
  165. <?php } ?>
  166. <?php
  167. echo iro_opt('footer_addition', '');
  168. ?>
  169. </body>
  170. <!-- Particles动效 -->
  171. <?php if (iro_opt('particles_effects', 'true')): ?>
  172. <style>
  173. #particles-js {
  174. width: 100%;
  175. height: 100%;
  176. position: fixed;
  177. left: 0;
  178. right: 0;
  179. top: 0;
  180. bottom: 0;
  181. z-index: -1;
  182. }
  183. </style>
  184. <div id="particles-js"></div>
  185. <script type="application/json" id="particles-js-cfg"><?=iro_opt('particles_json','')?></script>
  186. <?php endif; ?>
  187. </html>