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" role="main"> |
---|
9 | |
---|
10 | <?php if (have_posts()) : while (have_posts()) : the_post(); ?> |
---|
11 | |
---|
12 | <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>> |
---|
13 | |
---|
14 | <div class="author-box"> |
---|
15 | <?php echo get_avatar( get_the_author_meta( 'user_email' ), '50' ); ?> |
---|
16 | <p><?php printf( _x( 'by %s', 'Post written by...', 'buddypress' ), bp_core_get_userlink( $post->post_author ) ) ?></p> |
---|
17 | </div> |
---|
18 | |
---|
19 | <div class="post-content"> |
---|
20 | <h2 class="posttitle"><?php the_title(); ?></h2> |
---|
21 | |
---|
22 | <p class="date"> |
---|
23 | <?php printf( __( '%1$s <span>in %2$s by %3$s</span>', 'buddypress' ), get_the_date(), get_the_category_list( ', ' ), bp_core_get_userlink( $post->post_author ) ); ?> |
---|
24 | <span class="post-utility alignright"><?php edit_post_link( __( 'Edit this entry', 'buddypress' ) ); ?></span> |
---|
25 | </p> |
---|
26 | |
---|
27 | <div class="entry"> |
---|
28 | <?php the_content( __( 'Read the rest of this entry →', 'buddypress' ) ); ?> |
---|
29 | |
---|
30 | <?php wp_link_pages( array( 'before' => '<div class="page-link"><p>' . __( '<strong>Pages:</strong> ', 'buddypress' ), 'after' => '</p></div>', 'next_or_number' => 'number')); ?> |
---|
31 | </div> |
---|
32 | |
---|
33 | <p class="postmetadata"><?php the_tags( '<span class="tags">' . __( 'Tags: ', 'buddypress' ), ', ', '</span>' ); ?> <span class="comments"><?php comments_popup_link( __( 'No Comments »', 'buddypress' ), __( '1 Comment »', 'buddypress' ), __( '% Comments »', 'buddypress' ) ); ?></span></p> |
---|
34 | |
---|
35 | <div class="alignleft"><?php previous_post_link( '%link', '<span class="meta-nav">' . _x( '←', 'Previous post link', 'buddypress' ) . '</span> %title' ); ?></div> |
---|
36 | <div class="alignright"><?php next_post_link( '%link', '%title <span class="meta-nav">' . _x( '→', 'Next post link', 'buddypress' ) . '</span>' ); ?></div> |
---|
37 | </div> |
---|
38 | |
---|
39 | </div> |
---|
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 get_sidebar() ?> |
---|
57 | |
---|
58 | <?php get_footer() ?> |
---|