Advertisement
Guest User

Untitled

a guest
Jul 24th, 2012
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.10 KB | None | 0 0
  1. <?php get_header() ?>
  2.  
  3.     <div id="content">
  4.         <div class="padder">
  5.  
  6.             <?php do_action( 'bp_before_blog_single_post' ) ?>
  7.  
  8.             <div class="page" id="blog-single" role="main">
  9.  
  10.             <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
  11.  
  12.                 <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
  13.  
  14.                     <div class="author-box">
  15.                         <?php echo get_avatar( get_the_author_meta( 'user_email' ), '50' ); ?>
  16.                         <p><?php printf( _x( 'by %s', 'Post written by...', 'buddypress' ), str_replace( '<a href=', '<a rel="author" href=', bp_core_get_userlink( $post->post_author ) ) ); ?></p>
  17.                     </div>
  18.  
  19.                     <div class="post-content">
  20.                         <h2 class="posttitle"><?php the_title(); ?></h2>
  21.  
  22.                         <p class="date">
  23.                             <?php printf( __( '%1$s <span>in %2$s</span>', 'buddypress' ), get_the_date(), get_the_category_list( ', ' ) ); ?>
  24.                             <span class="post-utility alignright"><?php edit_post_link( __( 'Edit this entry', 'buddypress' ) ); ?></span>
  25.                         </p>
  26.  
  27.                         <div class="entry">
  28.                             <?php the_content( __( 'Read the rest of this entry &rarr;', 'buddypress' ) ); ?>
  29.  
  30.                             <?php wp_link_pages( array( 'before' => '<div class="page-link"><p>' . __( 'Pages: ', 'buddypress' ), 'after' => '</p></div>', 'next_or_number' => 'number' ) ); ?>
  31.                         </div>
  32.  
  33.                         <p class="postmetadata"><?php the_tags( '<span class="tags">' . __( 'Tags: ', 'buddypress' ), ', ', '</span>' ); ?>&nbsp;</p>
  34.  
  35.                         <div class="alignleft"><?php previous_post_link( '%link', '<span class="meta-nav">' . _x( '&larr;', 'Previous post link', 'buddypress' ) . '</span> %title' ); ?></div>
  36.                         <div class="alignright"><?php next_post_link( '%link', '%title <span class="meta-nav">' . _x( '&rarr;', 'Next post link', 'buddypress' ) . '</span>' ); ?></div>
  37.                     </div>
  38.  
  39.                 </div>
  40.  
  41.             <?php comments_template(); ?>
  42.  
  43.             <?php endwhile; else: ?>
  44.  
  45.                 <p><?php _e( 'Sorry, no posts matched your criteria.', 'buddypress' ) ?></p>
  46.  
  47.             <?php endif; ?>
  48.  
  49.         </div>
  50.  
  51.         <?php do_action( 'bp_after_blog_single_post' ) ?>
  52.  
  53.         </div><!-- .padder -->
  54.     </div><!-- #content -->
  55.  
  56.     <?php get_sidebar() ?>
  57.  
  58. <?php get_footer() ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement