footer.php 7.5 KB

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