| 本帖最后由 qwer 于 2018-1-30 12:01 编辑 
 This footer.php
 
 复制代码<?php
/**
 * The template for displaying footer
 *
 * @since 1.0.0
 * @package Coolbox
 */
if ( cd_is_amp() ) :
        cd_addon_amp_footer();
else :
?>
<footer id="footer" class="footer">
        <?php cd_footer_menu(); ?>
        <div class="footer-bottom">
                <div class="container">
                        <div class="copyright">
                                <p>
                                        <?php
                                        $allowed_html = array(
                                                'a'      => array(
                                                        'href'    => array(),
                                                        'onclick' => array(),
                                                        'target'  => array(),
                                                ),
                                                'p'      => array(
                                                        'style'  => array(),
                                                        'align'  => array(),
                                                        'target' => array(),
                                                ),
                                                'br'     => array(),
                                                'strong' => array(),
                                                'b'      => array(),
                                                'small'  => array(),
                                        );
                                        ?>
                                        <?php echo wp_kses( cd_credit(), $allowed_html ); ?>
                                </p>
                                <?php if ( cd_is_theme_credit() ) : ?>
                                        <p>
                                                <?php echo wp_kses( cd_theme_credit_text(), $allowed_html ); ?>
                                        </p>
                                <?php endif; ?>
                        </div>
                        <?php cd_social_links(); ?>
                </div>
        </div><!--/.footer-bottom-->
        <a id="back-to-top" class="noscroll" href="#"><span class="chevron-up"></span></a>
</footer>
<div class="modal-search-form"><?php get_search_form(); ?><div class="close-toggle"><span class="top"></span><span class="bottom"></span><span class="label">Close</span></div></div>
<?php wp_footer(); ?>
</body></html>
<?php endif; ?>
 这是统计代码
 
 
 <script>var _hmt = _hmt || [];
 (function() {
 var hm = document.createElement("script");
 hm.src = "https://hm.baidu.com/hm.js?xxxxx";
 var s = document.getElementsByTagName("script")[0];
 s.parentNode.insertBefore(hm, s);
 })();
 </script>
 |