Merge pull request #604 from Foxaii/master
Move Posts/Comments Pager to Unordered List
This commit is contained in:
@@ -44,8 +44,18 @@
|
||||
|
||||
<?php if (get_comment_pages_count() > 1 && get_option('page_comments')) : // are there comments to navigate through ?>
|
||||
<nav id="comments-nav" class="pager">
|
||||
<div class="previous"><?php previous_comments_link(__('← Older comments', 'roots')); ?></div>
|
||||
<div class="next"><?php next_comments_link(__('Newer comments →', 'roots')); ?></div>
|
||||
<ul class="pager">
|
||||
<?php if (get_previous_comments_link()) : ?>
|
||||
<li class="previous"><?php previous_comments_link(__('← Older comments', 'roots')); ?></li>
|
||||
<?php else: ?>
|
||||
<li class="previous disabled"><a><?php _e('← Older comments', 'roots'); ?></a></li>
|
||||
<?php endif; ?>
|
||||
<?php if (get_next_comments_link()) : ?>
|
||||
<li class="next"><?php next_comments_link(__('Newer comments →', 'roots')); ?></li>
|
||||
<?php else: ?>
|
||||
<li class="next disabled"><a><?php _e('Newer comments →', 'roots'); ?></a></li>
|
||||
<?php endif; ?>
|
||||
</ul>
|
||||
</nav>
|
||||
|
||||
<?php endif; // check for comment navigation ?>
|
||||
|
||||
@@ -22,8 +22,18 @@
|
||||
<?php endwhile; ?>
|
||||
|
||||
<?php if ($wp_query->max_num_pages > 1) : ?>
|
||||
<nav id="post-nav" class="pager">
|
||||
<div class="previous"><?php next_posts_link(__('← Older posts', 'roots')); ?></div>
|
||||
<div class="next"><?php previous_posts_link(__('Newer posts →', 'roots')); ?></div>
|
||||
<nav id="post-nav">
|
||||
<ul class="pager">
|
||||
<?php if (get_next_posts_link()) : ?>
|
||||
<li class="previous"><?php next_posts_link(__('← Older posts', 'roots')); ?></li>
|
||||
<?php else: ?>
|
||||
<li class="previous disabled"><a><?php _e('← Older posts', 'roots'); ?></a></li>
|
||||
<?php endif; ?>
|
||||
<?php if (get_previous_posts_link()) : ?>
|
||||
<li class="next"><?php previous_posts_link(__('Newer posts →', 'roots')); ?></li>
|
||||
<?php else: ?>
|
||||
<li class="next disabled"><a><?php _e('Newer posts →', 'roots'); ?></a></li>
|
||||
<?php endif; ?>
|
||||
</ul>
|
||||
</nav>
|
||||
<?php endif; ?>
|
||||
|
||||
Reference in New Issue
Block a user