/bp-themes/bp-default/search.php

  1. <?php get_header(); ?> 
  2.  
  3. <div id="content"> 
  4. <div class="padder"> 
  5.  
  6. <?php do_action( 'bp_before_blog_search' ); ?> 
  7.  
  8. <div class="page" id="blog-search" role="main"> 
  9.  
  10. <h2 class="pagetitle"><?php _e( 'Site', 'buddypress' ); ?></h2> 
  11.  
  12. <?php if (have_posts()) : ?> 
  13.  
  14. <h3 class="pagetitle"><?php _e( 'Search Results', 'buddypress' ); ?></h3> 
  15.  
  16. <?php bp_dtheme_content_nav( 'nav-above' ); ?> 
  17.  
  18. <?php while (have_posts()) : the_post(); ?> 
  19.  
  20. <?php do_action( 'bp_before_blog_post' ); ?> 
  21.  
  22. <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>> 
  23.  
  24. <div class="author-box"> 
  25. <?php echo get_avatar( get_the_author_meta( 'email' ), '50' ); ?> 
  26. <p><?php printf( _x( 'by %s', 'Post written by...', 'buddypress' ), bp_core_get_userlink( $post->post_author ) ); ?></p> 
  27. </div> 
  28.  
  29. <div class="post-content"> 
  30. <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> 
  31.  
  32. <p class="date"><?php printf( __( '%1$s <span>in %2$s</span>', 'buddypress' ), get_the_date(), get_the_category_list( ', ' ) ); ?></p> 
  33.  
  34. <div class="entry"> 
  35. <?php the_content( __( 'Read the rest of this entry →', 'buddypress' ) ); ?> 
  36. </div> 
  37.  
  38. <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> 
  39. </div> 
  40.  
  41. </div> 
  42.  
  43. <?php do_action( 'bp_after_blog_post' ); ?> 
  44.  
  45. <?php endwhile; ?> 
  46.  
  47. <?php bp_dtheme_content_nav( 'nav-below' ); ?> 
  48.  
  49. <?php else : ?> 
  50.  
  51. <h2 class="center"><?php _e( 'No posts found. Try a different search?', 'buddypress' ); ?></h2> 
  52. <?php get_search_form(); ?> 
  53.  
  54. <?php endif; ?> 
  55.  
  56. </div> 
  57.  
  58. <?php do_action( 'bp_after_blog_search' ); ?> 
  59.  
  60. </div><!-- .padder --> 
  61. </div><!-- #content --> 
  62.  
  63. <?php get_sidebar(); ?> 
  64.  
  65. <?php get_footer(); ?> 
.