/bp-themes/bp-default/archive.php

  1. <?php get_header(); ?> 
  2.  
  3. <div id="content"> 
  4. <div class="padder"> 
  5.  
  6. <?php do_action( 'bp_before_archive' ); ?> 
  7.  
  8. <div class="page" id="blog-archives" role="main"> 
  9.  
  10. <h3 class="pagetitle"><?php printf( __( 'You are browsing the archive for %1$s.', 'buddypress' ), wp_title( false, false ) ); ?></h3> 
  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. </div> 
  26.  
  27. <div class="post-content"> 
  28. <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> 
  29.  
  30. <p class="date"><?php printf( __( '%1$s <span>in %2$s</span>', 'buddypress' ), get_the_date(), get_the_category_list( ', ' ) ); ?></p> 
  31.  
  32. <div class="entry"> 
  33. <?php the_content( __( 'Read the rest of this entry →', 'buddypress' ) ); ?> 
  34. <?php wp_link_pages( array( 'before' => '<div class="page-link"><p>' . __( 'Pages: ', 'buddypress' ), 'after' => '</p></div>', 'next_or_number' => 'number' ) ); ?> 
  35. </div> 
  36.  
  37. <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> 
  38. </div> 
  39.  
  40. </div> 
  41.  
  42. <?php do_action( 'bp_after_blog_post' ); ?> 
  43.  
  44. <?php endwhile; ?> 
  45.  
  46. <?php bp_dtheme_content_nav( 'nav-below' ); ?> 
  47.  
  48. <?php else : ?> 
  49.  
  50. <h2 class="center"><?php _e( 'Not Found', 'buddypress' ); ?></h2> 
  51. <?php get_search_form(); ?> 
  52.  
  53. <?php endif; ?> 
  54.  
  55. </div> 
  56.  
  57. <?php do_action( 'bp_after_archive' ); ?> 
  58.  
  59. </div><!-- .padder --> 
  60. </div><!-- #content --> 
  61.  
  62. <?php get_sidebar(); ?> 
  63.  
  64. <?php get_footer(); ?> 
.