Skip to:
Content

BuddyPress.org

Ticket #2982: single.php

File single.php, 2.4 KB (added by modemlooper, 15 years ago)

switch placement of next and previous to below post

Line 
1<?php get_header() ?>
2
3 <div id="content">
4 <div class="padder">
5
6 <?php do_action( 'bp_before_blog_single_post' ) ?>
7
8 <div class="page" id="blog-single">
9
10 <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
11
12 <div class="post" id="post-<?php the_ID(); ?>">
13
14 <div class="author-box">
15 <?php echo get_avatar( get_the_author_meta( 'user_email' ), '50' ); ?>
16 <p><?php printf( __( 'by %s', 'buddypress' ), bp_core_get_userlink( $post->post_author ) ) ?></p>
17 </div>
18
19 <div class="post-content">
20 <h2 class="posttitle"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php _e( 'Permanent Link to', 'buddypress' ) ?> <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
21
22 <p class="date"><?php the_time() ?> <em><?php _e( 'in', 'buddypress' ) ?> <?php the_category(', ') ?> <?php printf( __( 'by %s', 'buddypress' ), bp_core_get_userlink( $post->post_author ) ) ?></em> <?php edit_post_link( __( 'Edit this entry', 'buddypress' ), '<em class="edit-link">', '</em>' ); ?></p>
23
24 <div class="entry">
25 <?php the_content( __( 'Read the rest of this entry &rarr;', 'buddypress' ) ); ?>
26
27 <?php wp_link_pages(array('before' => __( '<p><strong>Pages:</strong> ', 'buddypress' ), 'after' => '</p>', 'next_or_number' => 'number')); ?>
28 </div>
29
30 <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 </div>
32
33 </div>
34
35 <div class="meta-nav-item-options">
36 <div class="alignleft"><?php previous_post_link( '%link', '<span class="meta-nav">' . _e( '&larr;', 'Previous post link', 'buddypress' ) . '</span> %title' ); ?></div>
37 <div class="alignright"><?php next_post_link( '%link', '%title <span class="meta-nav">' . _e( '&rarr;', 'Next post link', 'buddypress' ) . '</span>' ); ?></div>
38 </div>
39
40
41 <?php comments_template(); ?>
42
43 <?php endwhile; else: ?>
44
45 <p><?php _e( 'Sorry, no posts matched your criteria.', 'buddypress' ) ?></p>
46
47 <?php endif; ?>
48
49 </div>
50
51 <?php do_action( 'bp_after_blog_single_post' ) ?>
52
53 </div><!-- .padder -->
54 </div><!-- #content -->
55
56 <?php locate_template( array( 'sidebar.php' ), true ) ?>
57
58<?php get_footer() ?>