evolve_comment_navigation

Evolve_comment_navigation() paged comments.

Description

evolve_comment_navigation(); 

Usage

  1. if ( !function_exists( 'evolve_comment_navigation' ) ) { 
  2. require_once '/library/functions/comments.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = evolve_comment_navigation(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/library/functions/comments.php  
  1. function evolve_comment_navigation() { 
  2. $num = get_comments_number() + 1; 
  3.  
  4. $tag = apply_filters('evolve_comment_navigation_tag', (string) 'div'); // Available filter: evolve_comment_navigation_tag 
  5. $open = "<!--BEGIN .navigation-links-->\n"; 
  6. $open .= "<" . $tag . " class=\"navigation-links comment-navigation\">\n"; 
  7. $close = "<!--END .navigation-links-->\n"; 
  8. $close .= "</" . $tag . ">\n"; 
  9.  
  10. if ($num > get_option('comments_per_page')) { 
  11. $paged_links = paginate_comments_links(array( 
  12. 'type' => 'array',  
  13. 'echo' => false,  
  14. 'prev_text' => '« Previous Page',  
  15. 'next_text' => 'Next Page »')); 
  16.  
  17. if ($paged_links) 
  18. $comment_navigation = $open . join(' ', $paged_links) . $close; 
  19. else { 
  20. $comment_navigation = NULL; 
  21. echo apply_filters('evolve_comment_navigation', (string) $comment_navigation); // Available filter: evolve_comment_navigation