Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions footer.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@

<?php wp_footer(); ?>
<script data-no-instant>
(function ($) {
(function () {
<?php if ( is_user_logged_in() ) { ?>
$('#wpadminbar').attr('data-no-instant', '')
<?php } ?>
Expand Down Expand Up @@ -84,13 +84,13 @@
<?php }?>
}
});
})(jQuery);
})();
<?php if (get_theme_mod('biji_setting_footInfo')) {
echo get_theme_mod('biji_setting_footInfo') . "\n";
}
if(!get_theme_mod('biji_setting_pjax')){ ?>
InstantClick.on('change', function (isInitialLoad) {
jQuery.adamsOverload();
$.adamsOverload();
if (isInitialLoad === false) {
// support MathJax
if (typeof MathJax !== 'undefined') MathJax.Hub.Queue(["Typeset", MathJax.Hub]);
Expand Down
5 changes: 5 additions & 0 deletions functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,11 @@ function dangopress_esc_html($content)
function dangopress_esc_callback($matches)
{
$tag_open = $matches[1];
# 前面函数的正则表达式有点粗暴,可能会导致存在多个class,
# 所以,如果存在多个就把前面加的class删掉。
if ( substr_count($tag_open, "class=") > 1 ){
$tag_open = str_replace(' class="prettyprint" ', " ", $tag_open);
}
$content = $matches[2];
$tag_close = $matches[3];
//$content = htmlspecialchars($content, ENT_NOQUOTES, bloginfo('charset'));
Expand Down
2 changes: 1 addition & 1 deletion inc/content.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<!-- Content -->
<section class="container">
<article class="post_article" itemscope itemtype="https://schema.org/Article">
<article class="post_article post" itemscope itemtype="https://schema.org/Article">
<?php if (have_posts()) while (have_posts()) {
the_post();
the_content();
Expand Down