Created
June 19, 2014 10:41
-
-
Save hitsujixgit/8b4ac9895827ccc5e0fb to your computer and use it in GitHub Desktop.
コメントフォームをカスタマイズする - index.phpをカスタマイズする#7 変更後のコード
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php if (get_comment_pages_count() > 1) { | |
echo '<ul id="comments-pagination">'; | |
$previous_comments_link = get_previous_comments_link('<< 前のコメント'); | |
$next_comments_link = get_next_comments_link('次のコメント >>'); | |
if ( isset($previous_comments_link) ) { | |
echo '<li id="prev-comments">' . $previous_comments_link . '</li>'; | |
} | |
if ( isset($next_comments_link) ) { | |
echo '<li id="next-comments">' . $next_comments_link . '</li>'; | |
} | |
echo '</ul>'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment