Skip to:
Content

BuddyPress.org


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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.