diff --git a/archive.php b/archive.php index 644f43d..1c05888 100644 --- a/archive.php +++ b/archive.php @@ -11,16 +11,18 @@ get_header(); ?>
- +
- - - +

+ + -
+
+ -

+
+
+

+

-

+

+
- -
    - 'ol', - 'short_ping' => true, - ) - ); - ?> -
+ 1 && get_option( 'page_comments' ) ) : // Are there comments to navigate through? ?> + + - -

- + 'ul', + 'short_ping' => true, + 'avatar_size' => 50 + ) ); + ?> + + 1 && get_option( 'page_comments' ) ) : // Are there comments to navigate through? ?> + + +
- endif; // Check for have_comments(). - - comment_form(); - ?> + + +
+

+
+ + '

有什么要说的吗?

', + 'comment_field' => '
' . '

' . '' . '

', + 'fields' => apply_filters( 'comment_form_default_fields', array( + 'author' => '
' . '

' . '

', + 'email' => ' ' . '

' . ''.'

', + 'url' => '
' ) ), + 'comment_notes_after' => '', + 'submit_button' => '
' + ); + comment_form($comment_args); ?> + diff --git a/footer.php b/footer.php index 0c54477..80e0080 100644 --- a/footer.php +++ b/footer.php @@ -60,6 +60,23 @@ }); } }); + + // 当网页向下滑动 20px 出现"返回顶部" 按钮 + window.onscroll = function() {scrollFunction()}; + + function scrollFunction() {console.log(121); + if (document.body.scrollTop > 20 || document.documentElement.scrollTop > 20) { + document.getElementById("myBtn").style.display = "block"; + } else { + document.getElementById("myBtn").style.display = "none"; + } + } + + // 点击按钮,返回顶部 + function topFunction() { + document.body.scrollTop = 0; + document.documentElement.scrollTop = 0; + } diff --git a/functions.php b/functions.php index 34506e9..cddf3e2 100644 --- a/functions.php +++ b/functions.php @@ -192,3 +192,7 @@ if ( defined( 'JETPACK__VERSION' ) ) { } require get_template_directory() . '/inc/bulmapress_navwalker.php'; +require get_template_directory() . '/inc/search.php'; +require get_template_directory() . '/inc/pagination.php'; + + diff --git a/header.php b/header.php index e3f35f4..74a0708 100644 --- a/header.php +++ b/header.php @@ -26,6 +26,7 @@
+