/bp-themes/bp-default/index.php

  1. <?php get_header(); ?> 
  2.  
  3. <div id="content"> 
  4. <div class="padder"> 
  5.  
  6. <?php do_action( 'bp_before_blog_home' ); ?> 
  7.  
  8. <?php do_action( 'template_notices' ); ?> 
  9.  
  10. <div class="page" id="blog-latest" role="main"> 
  11.  
  12. <?php if ( have_posts() ) : ?> 
  13.  
  14. <?php bp_dtheme_content_nav( 'nav-above' ); ?> 
  15.  
  16. <?php while (have_posts()) : the_post(); ?> 
  17.  
  18. <?php do_action( 'bp_before_blog_post' ); ?> 
  19.  
  20. <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>> 
  21.  
  22. <div class="author-box"> 
  23. <?php echo get_avatar( get_the_author_meta( 'user_email' ), '50' ); ?> 
  24. <p><?php printf( _x( 'by %s', 'Post written by...', 'buddypress' ), bp_core_get_userlink( $post->post_author ) ); ?></p> 
  25.  
  26. <?php if ( is_sticky() ) : ?> 
  27. <span class="activity sticky-post"><?php _ex( 'Featured', 'Sticky post', 'buddypress' ); ?></span> 
  28. <?php endif; ?> 
  29. </div> 
  30.  
  31. <div class="post-content"> 
  32. <h2 class="posttitle"><a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php esc_attr_e( 'Permanent Link to', 'buddypress' ); ?> <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2> 
  33.  
  34. <p class="date"><?php printf( __( '%1$s <span>in %2$s</span>', 'buddypress' ), get_the_date(), get_the_category_list( ', ' ) ); ?></p> 
  35.  
  36. <div class="entry"> 
  37. <?php the_content( __( 'Read the rest of this entry →', 'buddypress' ) ); ?> 
  38. <?php wp_link_pages( array( 'before' => '<div class="page-link"><p>' . __( 'Pages: ', 'buddypress' ), 'after' => '</p></div>', 'next_or_number' => 'number' ) ); ?> 
  39. </div> 
  40.  
  41. <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> 
  42. </div> 
  43.  
  44. </div> 
  45.  
  46. <?php do_action( 'bp_after_blog_post' ); ?> 
  47.  
  48. <?php endwhile; ?> 
  49.  
  50. <?php bp_dtheme_content_nav( 'nav-below' ); ?> 
  51.  
  52. <?php else : ?> 
  53.  
  54. <h2 class="center"><?php _e( 'Not Found', 'buddypress' ); ?></h2> 
  55. <p class="center"><?php _e( 'Sorry, but you are looking for something that isn\'t here.', 'buddypress' ); ?></p> 
  56.  
  57. <?php get_search_form(); ?> 
  58.  
  59. <?php endif; ?> 
  60. </div> 
  61.  
  62. <?php do_action( 'bp_after_blog_home' ); ?> 
  63.  
  64. </div><!-- .padder --> 
  65. </div><!-- #content --> 
  66.  
  67. <?php get_sidebar(); ?> 
  68.  
  69. <?php get_footer(); ?> 
.