Skip to content

Commit

Permalink
修复统计代码无法引入外部JS的问题 #10
Browse files Browse the repository at this point in the history
  • Loading branch information
Licoy committed Sep 10, 2020
1 parent 6c8d9da commit 5c3b3ad
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion footer.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
<script data-instant src="<?php echo get_template_directory_uri(); ?>/assets/js/qrcode.min.js"></script>
<?php endif; ?>
<?php if(!empty(pk_get_option('tj_code_footer',''))): ?>
<script data-instant><?php echo pk_get_option('tj_code_footer',''); ?></script>
<?php echo pk_get_option('tj_code_footer',''); ?>
<?php endif; ?>
<script data-instant src="<?php echo get_template_directory_uri(); ?>/assets/js/pages.js"></script>
<script data-no-instant src="<?php echo get_template_directory_uri(); ?>/assets/js/pages-once.js"></script>
Expand Down
2 changes: 1 addition & 1 deletion header.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<link rel="stylesheet" data-no-instant href="<?php echo get_template_directory_uri(); ?>/assets/css/style.css?v=<?php echo PUOCK_CUR_VER ?>">
<script data-no-instant type="text/javascript" src="<?php echo get_template_directory_uri(); ?>/assets/js/jquery.min.js"></script>
<?php if(!empty(pk_get_option('tj_code_header',''))): ?>
<script data-instant><?php echo pk_get_option('tj_code_header',''); ?></script>
<?php echo pk_get_option('tj_code_header',''); ?>
<?php endif; ?>
<?php if(is_single() || is_page()):?>
<?php endif; ?>
Expand Down

0 comments on commit 5c3b3ad

Please sign in to comment.