| 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_home' ) ?> |
|---|
| 8 | |
|---|
| 9 | <div class="page" id="blog-latest"> |
|---|
| 10 | |
|---|
| 11 | <?php if ( have_posts() ) : ?> |
|---|
| 12 | |
|---|
| 13 | <?php while (have_posts()) : the_post(); ?> |
|---|
| 14 | |
|---|
| 15 | <?php do_action( 'bp_before_blog_post' ) ?> |
|---|
| 16 | |
|---|
| 17 | <div class="post" id="post-<?php the_ID(); ?>"> |
|---|
| 18 | |
|---|
| 19 | <div class="author-box"> |
|---|
| 20 | <?php echo get_avatar( get_the_author_meta( 'user_email' ), '50' ); ?> |
|---|
| 21 | <p><?php printf( __( 'by %s', 'buddypress' ), bp_core_get_userlink( $post->post_author ) ) ?></p> |
|---|
| 22 | </div> |
|---|
| 23 | |
|---|
| 24 | <div class="post-content"> |
|---|
| 25 | <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> |
|---|
| 26 | |
|---|
| 27 | <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></p> |
|---|
| 28 | |
|---|
| 29 | <div class="entry"> |
|---|
| 30 | <?php the_content( __( 'Read the rest of this entry →', 'buddypress' ) ); ?> |
|---|
| 31 | </div> |
|---|
| 32 | |
|---|
| 33 | <p class="postmetadata"><span class="tags"><?php the_tags( __( 'Tags: ', 'buddypress' ), ', ', '<br />'); ?></span> <span class="comments"><?php comments_popup_link( __( 'No Comments »', 'buddypress' ), __( '1 Comment »', 'buddypress' ), __( '% Comments »', 'buddypress' ) ); ?></span></p> |
|---|
| 34 | </div> |
|---|
| 35 | |
|---|
| 36 | </div> |
|---|
| 37 | |
|---|
| 38 | <?php do_action( 'bp_after_blog_post' ) ?> |
|---|
| 39 | |
|---|
| 40 | <?php endwhile; ?> |
|---|
| 41 | |
|---|
| 42 | <div class="navigation"> |
|---|
| 43 | |
|---|
| 44 | <div class="alignleft"><?php next_posts_link( __( '← Previous Entries', 'buddypress' ) ) ?></div> |
|---|
| 45 | <div class="alignright"><?php previous_posts_link( __( 'Next Entries →', 'buddypress' ) ) ?></div> |
|---|
| 46 | |
|---|
| 47 | </div> |
|---|
| 48 | |
|---|
| 49 | <?php else : ?> |
|---|
| 50 | |
|---|
| 51 | <h2 class="center"><?php _e( 'Not Found', 'buddypress' ) ?></h2> |
|---|
| 52 | <p class="center"><?php _e( 'Sorry, but you are looking for something that isn\'t here.', 'buddypress' ) ?></p> |
|---|
| 53 | |
|---|
| 54 | <?php locate_template( array( 'searchform.php' ), true ) ?> |
|---|
| 55 | |
|---|
| 56 | <?php endif; ?> |
|---|
| 57 | </div> |
|---|
| 58 | |
|---|
| 59 | <?php do_action( 'bp_after_blog_home' ) ?> |
|---|
| 60 | |
|---|
| 61 | </div><!-- .padder --> |
|---|
| 62 | </div><!-- #content --> |
|---|
| 63 | |
|---|
| 64 | <?php locate_template( array( 'sidebar.php' ), true ) ?> |
|---|
| 65 | |
|---|
| 66 | <?php get_footer() ?> |
|---|