Permalink
Browse files

Move posts pager to unordered list.

  • Loading branch information...
1 parent a9d4cf3 commit dee4ddd2de92358f6592e3681f73be046d77294c @Foxaii Foxaii committed Nov 18, 2012
Showing with 13 additions and 3 deletions.
  1. +13 −3 templates/content.php
View
@@ -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(__('&larr; Older posts', 'roots')); ?></div>
- <div class="next"><?php previous_posts_link(__('Newer posts &rarr;', 'roots')); ?></div>
+ <nav id="post-nav">
+ <ul class="pager">
+<?php if (get_next_posts_link()) : ?>
+ <li class="previous"><?php next_posts_link(__('&larr; Older posts', 'roots')); ?></li>
+<?php else: ?>
+ <li class="previous disabled"><a><?php _e('&larr; Older posts', 'roots'); ?></a></li>
+<?php endif; ?>
+<?php if (get_previous_posts_link()) : ?>
+ <li class="next"><?php previous_posts_link(__('Newer posts &rarr;', 'roots')); ?></li>
+<?php else: ?>
+ <li class="next disabled"><a><?php _e('Newer posts &rarr;', 'roots'); ?></a></li>
+<?php endif; ?>
+ </ul>
</nav>
<?php endif; ?>

0 comments on commit dee4ddd

Please sign in to comment.