Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
06/12/2011 02:15:33 PM (15 years ago)
Author:
djpaul
Message:

Move next/previous page navigation links into a convenience function. Props twentyeleven theme team for idea.
Also adds these navigation links to the top of the index template, to match archive and search templates.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-themes/bp-default/archive.php

    r4412 r4496  
    1212                        <?php if ( have_posts() ) : ?>
    1313
    14                                 <div id="nav-above" class="navigation">
    15 
    16                                         <div class="alignleft"><?php next_posts_link( __( '&larr; Previous Entries', 'buddypress' ) ) ?></div>
    17                                         <div class="alignright"><?php previous_posts_link( __( 'Next Entries &rarr;', 'buddypress' ) ) ?></div>
    18 
    19                                 </div>
     14                                <?php bp_dtheme_content_nav( 'nav-above' ); ?>
    2015
    2116                                <?php while (have_posts()) : the_post(); ?>
     
    4944                                <?php endwhile; ?>
    5045
    51                                 <div id="nav-below" class="navigation">
    52 
    53                                         <div class="alignleft"><?php next_posts_link( __( '&larr; Previous Entries', 'buddypress' ) ) ?></div>
    54                                         <div class="alignright"><?php previous_posts_link( __( 'Next Entries &rarr;', 'buddypress' ) ) ?></div>
    55 
    56                                 </div>
     46                                <?php bp_dtheme_content_nav( 'nav-below' ); ?>
    5747
    5848                        <?php else : ?>
Note: See TracChangeset for help on using the changeset viewer.