Changeset 22999
- Timestamp:
- 12/03/2012 08:12:22 PM (13 years ago)
- File:
-
- 1 edited
-
trunk/wp-content/themes/twentytwelve/functions.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-content/themes/twentytwelve/functions.php
r22614 r22999 241 241 * @since Twenty Twelve 1.0 242 242 */ 243 function twentytwelve_content_nav( $ nav_id ) {243 function twentytwelve_content_nav( $html_id ) { 244 244 global $wp_query; 245 245 246 $html_id = esc_attr( $html_id ); 247 246 248 if ( $wp_query->max_num_pages > 1 ) : ?> 247 <nav id="<?php echo $ nav_id; ?>" class="navigation" role="navigation">249 <nav id="<?php echo $html_id; ?>" class="navigation" role="navigation"> 248 250 <h3 class="assistive-text"><?php _e( 'Post navigation', 'twentytwelve' ); ?></h3> 249 251 <div class="nav-previous alignleft"><?php next_posts_link( __( '<span class="meta-nav">←</span> Older posts', 'twentytwelve' ) ); ?></div> 250 252 <div class="nav-next alignright"><?php previous_posts_link( __( 'Newer posts <span class="meta-nav">→</span>', 'twentytwelve' ) ); ?></div> 251 </nav><!-- #<?php echo $ nav_id; ?> .navigation -->253 </nav><!-- #<?php echo $html_id; ?> .navigation --> 252 254 <?php endif; 253 255 }
Note: See TracChangeset
for help on using the changeset viewer.