-
Notifications
You must be signed in to change notification settings - Fork 1
/
single.php
57 lines (42 loc) · 1.72 KB
/
single.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
<?php get_header(); ?>
<div id="container">
<div id="contents">
<div id="content">
<?php do_action( 'bp_before_blog_single_post' ) ?>
<div class="widget page" id="blog-single">
<div class="widgettitle"><?php _e( 'Blog', 'buddypress' ) ?></div>
<div class="widget-content">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div class="item-options">
<div class="alignleft"><?php next_posts_link( __( '« Previous Entries', 'buddypress' ) ) ?></div>
<div class="alignright"><?php previous_posts_link( __( 'Next Entries »', 'buddypress' ) ) ?></div>
<div class="clear" > </div>
</div>
<div class="post" id="post-<?php the_ID(); ?>">
<?php do_action( 'bp_before_blog_post' ) ?>
<h1 class="post-title"><?php the_title(); ?></h1>
<div class="entry">
<?php if(has_post_thumbnail()):?>
<div class="post-thumb post-thumb-single">
<?php the_post_thumbnail('single-post-thumbnail');?>
</div>
<?php endif;?>
<?php the_content( __( '<p class="serif">Read the rest of this entry »</p>', 'buddypress' ) ); ?>
<?php wp_link_pages(array('before' => __( '<p><strong>Pages:</strong> ', 'buddypress' ), 'after' => '</p>', 'next_or_number' => 'number')); ?>
<div class="clear"></div>
</div>
<?php do_action( 'bp_after_blog_post' ) ?>
</div>
<?php comments_template(); ?>
<?php endwhile; else: ?>
<p><?php _e( 'Sorry, no posts matched your criteria.', 'buddypress' ) ?></p>
<?php endif; ?>
</div>
</div>
<?php do_action( 'bp_after_blog_single_post' ) ?>
</div>
<?php cb_get_sidebar("blog");?>
<br class="clear" />
</div>
</div><!--end of container-->
<?php get_footer(); ?>