wp-content/themes/twentyeleven/functions.php:645Displays navigation to next/previous pages when applicable.
$html_idstring function twentyeleven_content_nav( $html_id ) { global $wp_query; if ( $wp_query->max_num_pages > 1 ) : $order = get_query_var( 'order', 'DESC' ); $is_desc = ( 'DESC' === $order ); $new_posts_text = __( 'Newer posts <span class="meta-nav">→</span>', 'twentyeleven' ); $old_posts_text = __( '<span class="meta-nav">←</span> Older posts', 'twentyeleven' ); $prev_link = $is_desc ? get_next_posts_link( $old_posts_text ) : get_previous_posts_link( $old_posts_text ); $next_link = $is_desc ? get_previous_posts_link( $new_posts_text ) : get_next_posts_link( $new_posts_text ); ?> <nav id="<?php echo esc_attr( $html_id ); ?>"> <h3 class="assistive-text"><?php _e( 'Post navigation', 'twentyeleven' ); ?></h3> <?php if ( $prev_link ) : ?> <div class="nav-previous"><?php echo $prev_link; ?></div> <?php endif; ?> <?php if ( $next_link ) : ?> <div class="nav-next"><?php echo $next_link; ?></div> <?php endif; ?> </nav><!-- #<?php echo esc_attr( $html_id ); ?> --> <?php endif; }Introduced in Twenty Eleven 1.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
src/wp-content/themes/twentyeleven/functions.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.