Changeset 4496
- Timestamp:
- 06/12/2011 02:15:33 PM (15 years ago)
- Location:
- trunk/bp-themes/bp-default
- Files:
-
- 4 edited
-
archive.php (modified) (2 diffs)
-
functions.php (modified) (1 diff)
-
index.php (modified) (2 diffs)
-
search.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-themes/bp-default/archive.php
r4412 r4496 12 12 <?php if ( have_posts() ) : ?> 13 13 14 <div id="nav-above" class="navigation"> 15 16 <div class="alignleft"><?php next_posts_link( __( '← Previous Entries', 'buddypress' ) ) ?></div> 17 <div class="alignright"><?php previous_posts_link( __( 'Next Entries →', 'buddypress' ) ) ?></div> 18 19 </div> 14 <?php bp_dtheme_content_nav( 'nav-above' ); ?> 20 15 21 16 <?php while (have_posts()) : the_post(); ?> … … 49 44 <?php endwhile; ?> 50 45 51 <div id="nav-below" class="navigation"> 52 53 <div class="alignleft"><?php next_posts_link( __( '← Previous Entries', 'buddypress' ) ) ?></div> 54 <div class="alignright"><?php previous_posts_link( __( 'Next Entries →', 'buddypress' ) ) ?></div> 55 56 </div> 46 <?php bp_dtheme_content_nav( 'nav-below' ); ?> 57 47 58 48 <?php else : ?> -
trunk/bp-themes/bp-default/functions.php
r4479 r4496 673 673 add_action( 'bp_sidebar_login_form', 'bp_dtheme_sidebar_login_redirect_to' ); 674 674 endif; 675 676 /** 677 * Display navigation to next/previous pages when applicable 678 * 679 * @global unknown $wp_query 680 * @param string $nav_id DOM ID for this navigation 681 * @since 1.3 682 */ 683 function bp_dtheme_content_nav( $nav_id ) { 684 global $wp_query; 685 686 if ( $wp_query->max_num_pages > 1 ) : ?> 687 <div id="<?php echo $nav_id; ?>" class="navigation"> 688 <div class="alignleft"><?php next_posts_link( __( '← Previous Entries', 'buddypress' ) ); ?></div> 689 <div class="alignright"><?php previous_posts_link( __( 'Next Entries →', 'buddypress' ) ); ?></div> 690 </div><!-- #<?php echo $nav_id; ?> --> 691 <?php endif; 692 } 675 693 ?> -
trunk/bp-themes/bp-default/index.php
r4465 r4496 11 11 12 12 <?php if ( have_posts() ) : ?> 13 14 <?php bp_dtheme_content_nav( 'nav-above' ); ?> 13 15 14 16 <?php while (have_posts()) : the_post(); ?> … … 42 44 <?php endwhile; ?> 43 45 44 <div id="nav-below" class="navigation"> 45 46 <div class="alignleft"><?php next_posts_link( __( '← Previous Entries', 'buddypress' ) ) ?></div> 47 <div class="alignright"><?php previous_posts_link( __( 'Next Entries →', 'buddypress' ) ) ?></div> 48 49 </div> 46 <?php bp_dtheme_content_nav( 'nav-below' ); ?> 50 47 51 48 <?php else : ?> -
trunk/bp-themes/bp-default/search.php
r4466 r4496 14 14 <h3 class="pagetitle"><?php _e( 'Search Results', 'buddypress' ) ?></h3> 15 15 16 <div id="nav-above" class="navigation"> 17 <div class="alignleft"><?php next_posts_link( __( '← Previous Entries', 'buddypress' ) ) ?></div> 18 <div class="alignright"><?php previous_posts_link( __( 'Next Entries →', 'buddypress' ) ) ?></div> 19 </div> 16 <?php bp_dtheme_content_nav( 'nav-above' ); ?> 20 17 21 18 <?php while (have_posts()) : the_post(); ?> … … 48 45 <?php endwhile; ?> 49 46 50 <div id="nav-below" class="navigation"> 51 <div class="alignleft"><?php next_posts_link( __( '← Previous Entries', 'buddypress' ) ) ?></div> 52 <div class="alignright"><?php previous_posts_link( __( 'Next Entries →', 'buddypress' ) ) ?></div> 53 </div> 47 <?php bp_dtheme_content_nav( 'nav-below' ); ?> 54 48 55 49 <?php else : ?>
Note: See TracChangeset
for help on using the changeset viewer.