responsive_mobile_paging_nav

Display navigation to next/previous set of posts when applicable.

Description

responsive_mobile_paging_nav(); 

Usage

  1. if ( !function_exists( 'responsive_mobile_paging_nav' ) ) { 
  2. require_once '/includes/functions-template-tags.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = responsive_mobile_paging_nav(); 
  7.  

Defined (1)

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

/includes/functions-template-tags.php  
  1. function responsive_mobile_paging_nav() { 
  2. // Don't print empty markup if there's only one page. 
  3. if ( $GLOBALS[wp_query]->max_num_pages < 2 ) { 
  4. return; 
  5. ?> 
  6. <nav class="navigation paging-navigation" role="navigation"> 
  7. <h1 class="screen-reader-text"><?php _e( 'Posts navigation', 'responsive-mobile' ); ?></h1> 
  8.  
  9. <div class="nav-links"> 
  10.  
  11. <?php if ( get_next_posts_link() ) : ?> 
  12. <div class="nav-previous"><?php next_posts_link( __( '<span class="meta-nav">←</span> Older posts', 'responsive-mobile' ) ); ?></div> 
  13. <?php endif; ?> 
  14.  
  15. <?php if ( get_previous_posts_link() ) : ?> 
  16. <div class="nav-next"><?php previous_posts_link( __( 'Newer posts <span class="meta-nav">→</span>', 'responsive-mobile' ) ); ?></div> 
  17. <?php endif; ?> 
  18.  
  19. </div> 
  20. <!-- .nav-links --> 
  21. </nav><!-- .navigation --> 
  22. <?php