/
www
/
wwwroot
/
fxdst.com
/
wp-content
/
themes
/
fxdst
/
Upload File
HOME
<?php /* * @Theme Name:WebStack * @Theme URI:https://github.com/owen0o0/WebStack * @Author: iowen * @Author URI: https://www.iowen.cn/ * @Date: 2019-02-22 21:26:02 * @LastEditors: iowen * @LastEditTime: 2023-04-24 00:42:32 * @FilePath: \WebStack\footer.php * @Description: */ if ( ! defined( 'ABSPATH' ) ) { exit; } $_icp = ''; if(io_get_option('icp')){ $_icp .= '<a href="https://beian.miit.gov.cn/" target="_blank" rel="nofollow noopener">' . io_get_option('icp') . '</a> '; } if ($police_icp = io_get_option('police_icp')) { if (preg_match('/\d+/', $police_icp, $arr)) { $_icp .= ' <a href="http://www.beian.gov.cn/portal/registerSystemInfo?recordcode=' . $arr[0] . '" target="_blank" class="'.$class.'" rel="noopener">' . $police_icp . '</a> '; } } ?> <footer class="main-footer sticky footer-type-1"> <div class="go-up fxdst-floating-actions" aria-label="Quick actions"> <a href="mailto:xxf0036@hotmail.com" class="fxdst-float-action fxdst-float-mail" data-tip="联系邮箱" aria-label="联系邮箱"> <i class="fa fa-envelope-o"></i> </a> <a href="#" rel="go-top" class="fxdst-float-action fxdst-float-top" data-tip="返回顶部" aria-label="返回顶部"> <i class="fa fa-angle-up"></i> </a> </div> <div class="footer-inner"> <!---请保留版权说明,谢谢----> <div class="footer-text"> Copyright © <?php echo date('Y') ?> <?php bloginfo('name'); ?> <?php echo $_icp ?> <span class="fxdst-footer-links"> <a href="<?php echo esc_url(home_url('/privacy-policy')); ?>">隐私政策</a> <span>/</span> <a href="<?php echo esc_url(home_url('/terms-of-service')); ?>">服务条款</a> </span> </div> <!---请保留版权说明,谢谢----> </div> </footer> </div> </div> <?php wp_footer(); ?> <?php if (is_home() || is_front_page()): ?> <script type="text/javascript"> function fxdstScrollToAnchor(anchor, offset) { var $target = $(anchor); if (!$target.length) { return false; } $("html,body").stop(true).animate({ scrollTop: $target.offset().top - offset }, 500); return true; } $(document).ready(function() { setTimeout(function () { if($('a.smooth[href="'+window.location.hash+'"]')[0]){ $('a.smooth[href="'+window.location.hash+'"]').click(); } else if(window.location.hash != ''){ fxdstScrollToAnchor(window.location.hash, 80); } }, 300); $(document).on('click', '.has-sub', function(){ var _this = $(this) if(!$(this).hasClass('expanded')) { setTimeout(function(){ _this.find('ul').attr("style","") }, 300); } else { $('.has-sub ul').each(function(id,ele){ var _that = $(this) if(_this.find('ul')[0] != ele) { setTimeout(function(){ _that.attr("style","") }, 300); } }) } }) $('.user-info-menu .hidden-xs').click(function(){ if($('.sidebar-menu').hasClass('collapsed')) { $('.has-sub.expanded > ul').attr("style","") } else { $('.has-sub.expanded > ul').show() } }) $("#main-menu li ul li").click(function() { $(this).siblings('li').removeClass('active'); // 删除其他兄弟元素的样式 $(this).addClass('active'); // 添加当前元素的样式 }); $("a.smooth").click(function(ev) { ev.preventDefault(); if($("#main-menu").hasClass('mobile-is-visible') != true) return; public_vars.$mainMenu.add(public_vars.$sidebarProfile).toggleClass('mobile-is-visible'); ps_destroy(); fxdstScrollToAnchor($(this).attr("href"), 80); }); return false; }); var href = ""; var pos = 0; $("a.smooth").click(function(e) { e.preventDefault(); if($("#main-menu").hasClass('mobile-is-visible') === true) return; $("#main-menu li").each(function() { $(this).removeClass("active"); }); $(this).parent("li").addClass("active"); href = $(this).attr("href"); fxdstScrollToAnchor(href, 100); }); </script> <?php endif; ?> <!-- 自定义代码 --> <?php echo io_get_option('code_2_footer');?> <!-- end 自定义代码 --> </body> </html>