mirror of
https://gh.wpcy.net/https://github.com/buddypress/buddypress.git
synced 2026-06-01 05:49:21 +08:00
git-svn-id: https://buddypress.svn.wordpress.org/trunk@1843 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
54 lines
1.5 KiB
PHP
54 lines
1.5 KiB
PHP
<?php get_header(); ?>
|
|
|
|
<div id="content">
|
|
|
|
<?php do_action( 'bp_before_blog_single_post' ) ?>
|
|
|
|
<div class="page" id="blog-single">
|
|
|
|
<h2 class="pagetitle"><?php _e( 'Blog', 'buddypress' ) ?></h2>
|
|
|
|
<?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>
|
|
|
|
<div class="post" id="post-<?php the_ID(); ?>">
|
|
|
|
<?php do_action( 'bp_before_blog_post' ) ?>
|
|
|
|
<h3><a href="<?php echo get_permalink() ?>" rel="bookmark" title="<?php _e( 'Permanent link to', 'buddypress' ) ?> <?php the_title(); ?>"><?php the_title(); ?></a></h3>
|
|
|
|
<div class="entry">
|
|
|
|
<?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>
|
|
|
|
<?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>
|
|
|
|
<?php do_action( 'bp_after_blog_single_post' ) ?>
|
|
|
|
</div>
|
|
|
|
<?php get_sidebar(); ?>
|
|
|
|
<?php get_footer(); ?>
|