Guest User

Untitled

a guest
Feb 20th, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.00 KB | None | 0 0
  1. if ( ! function_exists( 'appmax_comment_nav' ) ) :
  2. function appmax_comment_nav() {
  3. // Are there comments to navigate through?
  4. if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) :
  5. ?>
  6. <nav class="navigation comment-navigation" role="navigation">
  7. <h2 class="screen-reader-text"><?php _e( 'Comment navigation', 'appmax' ); ?></h2>
  8. <div class="nav-links">
  9. <?php
  10. if ( $prev_link = get_previous_comments_link( __( '<i class="fa fa-angle-double-left"></i> Older Comments', 'appmax' ) ) ) :
  11. printf( '<div class="nav-previous">%s</div>', $prev_link );
  12. endif;
  13.  
  14. if ( $next_link = get_next_comments_link( __( 'Newer Comments <i class="fa fa-angle-double-right"></i>', 'appmax' ) ) ) :
  15. printf( '<div class="nav-next">%s</div>', $next_link );
  16. endif;
  17. ?>
  18. </div><!-- .nav-links -->
  19. </nav><!-- .comment-navigation -->
  20. <?php
  21. endif;
  22. }
  23. endif;
Add Comment
Please, Sign In to add comment