Skip to:
Content

BuddyPress.org

Changeset 4126


Ignore:
Timestamp:
03/12/2011 12:57:28 PM (14 years ago)
Author:
djpaul
Message:

Use next/prev post links in single.php. Also tweaks next/prev page links on archive/index/search templates. Props chestnut_jp and modemlooper, fixes #2982

Location:
trunk/bp-themes/bp-default
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-themes/bp-default/_inc/css/default.css

    r3955 r4126  
    23802380}
    23812381
     2382#nav-below {
     2383    margin: 0 0;
     2384    padding: 0 0;
     2385}
    23822386
    23832387/* > Footer
  • trunk/bp-themes/bp-default/archive.php

    r3771 r4126  
    1212            <?php if ( have_posts() ) : ?>
    1313
    14                 <div class="navigation">
     14                <div id="nav-above" class="navigation">
    1515
    1616                    <div class="alignleft"><?php next_posts_link( __( '&larr; Previous Entries', 'buddypress' ) ) ?></div>
     
    4848                <?php endwhile; ?>
    4949
    50                 <div class="navigation">
     50                <div id="nav-below" class="navigation">
    5151
    5252                    <div class="alignleft"><?php next_posts_link( __( '&larr; Previous Entries', 'buddypress' ) ) ?></div>
  • trunk/bp-themes/bp-default/index.php

    r3771 r4126  
    3939                <?php endwhile; ?>
    4040
    41                 <div class="navigation">
     41                <div id="nav-below" class="navigation">
    4242
    4343                    <div class="alignleft"><?php next_posts_link( __( '&larr; Previous Entries', 'buddypress' ) ) ?></div>
  • trunk/bp-themes/bp-default/search.php

    r3771 r4126  
    1414                <h3 class="pagetitle"><?php _e( 'Search Results', 'buddypress' ) ?></h3>
    1515
    16                 <div class="navigation">
     16                <div id="nav-above" class="navigation">
    1717                    <div class="alignleft"><?php next_posts_link( __( '&larr; Previous Entries', 'buddypress' ) ) ?></div>
    1818                    <div class="alignright"><?php previous_posts_link( __( 'Next Entries &rarr;', 'buddypress' ) ) ?></div>
     
    4848                <?php endwhile; ?>
    4949
    50                 <div class="navigation">
     50                <div id="nav-below" class="navigation">
    5151                    <div class="alignleft"><?php next_posts_link( __( '&larr; Previous Entries', 'buddypress' ) ) ?></div>
    5252                    <div class="alignright"><?php previous_posts_link( __( 'Next Entries &rarr;', 'buddypress' ) ) ?></div>
  • trunk/bp-themes/bp-default/single.php

    r3771 r4126  
    44        <div class="padder">
    55
    6         <?php do_action( 'bp_before_blog_single_post' ) ?>
     6            <?php do_action( 'bp_before_blog_single_post' ) ?>
    77
    8         <div class="page" id="blog-single" role="main">
     8            <div class="page" id="blog-single" role="main">
    99
    1010            <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    11 
    12                 <div class="item-options">
    13 
    14                     <div class="alignleft"><?php next_posts_link( __( '&larr; Previous Entries', 'buddypress' ) ) ?></div>
    15                     <div class="alignright"><?php previous_posts_link( __( 'Next Entries &rarr;', 'buddypress' ) ) ?></div>
    16 
    17                 </div>
    1811
    1912                <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
     
    3629
    3730                        <p class="postmetadata"><span class="tags"><?php the_tags( __( 'Tags: ', 'buddypress' ), ', ', '<br />'); ?></span> <span class="comments"><?php comments_popup_link( __( 'No Comments &#187;', 'buddypress' ), __( '1 Comment &#187;', 'buddypress' ), __( '% Comments &#187;', 'buddypress' ) ); ?></span></p>
     31
     32                        <div class="alignleft"><?php previous_post_link( '%link', '<span class="meta-nav">' . _x( '&larr;', 'Previous post link', 'buddypress' ) . '</span> %title' ); ?></div>
     33                        <div class="alignright"><?php next_post_link( '%link', '%title <span class="meta-nav">' . _x( '&rarr;', 'Next post link', 'buddypress' ) . '</span>' ); ?></div>
    3834                    </div>
    3935
Note: See TracChangeset for help on using the changeset viewer.