Skip to:
Content

BuddyPress.org

Ticket #2739: single.php

File single.php, 2.3 KB (added by travel-junkie, 15 years ago)
Line 
1<?php get_header() ?>
2
3        <div id="content">
4                <div class="padder">
5                <?php do_action( 'template_notices' ) ?>
6
7                <?php do_action( 'bp_before_blog_single_post' ) ?>
8
9                <div class="page" id="blog-single">
10
11                        <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
12
13                                <div class="item-options">
14
15                                        <div class="alignleft"><?php next_posts_link( __( '&larr; Previous Entries', 'buddypress' ) ) ?></div>
16                                        <div class="alignright"><?php previous_posts_link( __( 'Next Entries &rarr;', 'buddypress' ) ) ?></div>
17
18                                </div>
19
20                                <div class="post" id="post-<?php the_ID(); ?>">
21
22                                        <div class="author-box">
23                                                <?php echo get_avatar( get_the_author_meta( 'user_email' ), '50' ); ?>
24                                                <p><?php printf( __( 'by %s', 'buddypress' ), bp_core_get_userlink( $post->post_author ) ) ?></p>
25                                        </div>
26
27                                        <div class="post-content">
28                                                <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>
29
30                                                <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>
31
32                                                <div class="entry">
33                                                        <?php the_content( __( 'Read the rest of this entry &rarr;', 'buddypress' ) ); ?>
34
35                                                        <?php wp_link_pages(array('before' => __( '<p><strong>Pages:</strong> ', 'buddypress' ), 'after' => '</p>', 'next_or_number' => 'number')); ?>
36                                                </div>
37
38                                                <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>
39                                        </div>
40
41                                </div>
42
43                        <?php comments_template(); ?>
44
45                        <?php endwhile; else: ?>
46
47                                <p><?php _e( 'Sorry, no posts matched your criteria.', 'buddypress' ) ?></p>
48
49                        <?php endif; ?>
50
51                </div>
52
53                <?php do_action( 'bp_after_blog_single_post' ) ?>
54
55                </div><!-- .padder -->
56        </div><!-- #content -->
57
58        <?php locate_template( array( 'sidebar.php' ), true ) ?>
59
60<?php get_footer() ?>