-
Notifications
You must be signed in to change notification settings - Fork 1
/
archive.php
68 lines (49 loc) · 2.38 KB
/
archive.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
58
59
60
61
62
63
64
65
66
67
68
<?php get_header(); ?>
<div id="container">
<div id="contents">
<div id="content">
<?php do_action( 'bp_before_archive' ) ?>
<div class="page widget" id="blog-archives">
<h2 class="pagetitle widgettitle"><?php _e( 'Blog', 'buddypress' ) ?></h2>
<div class="widget-content">
<?php if ( have_posts() ) : ?>
<p class="info"><?php printf( __( 'You are browsing the archive for <em> %1$s </em>.', 'buddypress' ), wp_title( false, false ) ); ?></p>
<div class="navigation">
<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>
<?php while (have_posts()) : the_post(); ?>
<?php do_action( 'bp_before_blog_post' ) ?>
<div class="post">
<?php if(has_post_thumbnail()):?>
<div class="post-thumb cb-thumb-wrap">
<?php the_post_thumbnail();?>
</div>
<?php endif;?>
<h2 id="post-<?php the_ID(); ?>" class="post-title"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php _e( 'Permanent Link to', 'buddypress' ) ?> <?php the_title(); ?>"><?php the_title(); ?></a></h2>
<small><?php the_time('F j, Y') ?></small>
<div class="entry">
<?php the_content() ?>
</div>
<p class="postmetadata"><?php _e( 'Posted in', 'buddypress' ) ?> <?php the_category(', ') ?> | <?php edit_post_link( __( 'Edit', 'buddypress' ), '', ' | '); ?> <?php comments_popup_link( __( 'No Comments »', 'buddypress' ), __( '1 Comment »', 'buddypress' ), __( '% Comments »', 'buddypress' ) ); ?></p>
</div>
<?php do_action( 'bp_after_blog_post' ) ?>
<?php endwhile; ?>
<div class="navigation">
<div class="alignleft"><?php next_posts_link( __( '« Previous Entries', 'buddypress' ) ) ?></div>
<div class="alignright"><?php previous_posts_link( __( 'Next Entries »', 'buddypress' ) ) ?></div>
</div>
<?php else : ?>
<h2 class="center"><?php _e( 'Not Found', 'buddypress' ) ?></h2>
<?php locate_template( array( 'searchform.php' ), true ) ?>
<?php endif; ?>
</div>
</div>
<?php do_action( 'bp_after_archive' ) ?>
</div>
<?php cb_get_sidebar("blog");?>
<br class="clear" />
</div>
</div><!--end of container-->
<?php get_footer(); ?>