Skip to:
Content

BuddyPress.org

Ticket #2739: archive.php

File archive.php, 2.6 KB (added by travel-junkie, 16 years ago)
Line 
1<?php get_header(); ?>
2
3 <div id="content">
4 <div class="padder">
5 <?php do_action( 'template_notices' ) ?>
6
7 <?php do_action( 'bp_before_archive' ) ?>
8
9 <div class="page" id="blog-archives">
10
11 <h3 class="pagetitle"><?php printf( __( 'You are browsing the archive for %1$s.', 'buddypress' ), wp_title( false, false ) ); ?></h3>
12
13 <?php if ( have_posts() ) : ?>
14
15 <div class="navigation">
16
17 <div class="alignleft"><?php next_posts_link( __( '&larr; Previous Entries', 'buddypress' ) ) ?></div>
18 <div class="alignright"><?php previous_posts_link( __( 'Next Entries &rarr;', 'buddypress' ) ) ?></div>
19
20 </div>
21
22 <?php while (have_posts()) : the_post(); ?>
23
24 <?php do_action( 'bp_before_blog_post' ) ?>
25
26 <div class="post" id="post-<?php the_ID(); ?>">
27
28 <div class="author-box">
29 <?php echo get_avatar( get_the_author_meta( 'user_email' ), '50' ); ?>
30 <p><?php printf( __( 'by %s', 'buddypress' ), bp_core_get_userlink( $post->post_author ) ) ?></p>
31 </div>
32
33 <div class="post-content">
34 <h2 class="posttitle"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php _e( 'Permanent Link to', 'buddypress' ) ?> <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
35
36 <p class="date"><?php the_time() ?> <em><?php _e( 'in', 'buddypress' ) ?> <?php the_category(', ') ?> <?php printf( __( 'by %s', 'buddypress' ), bp_core_get_userlink( $post->post_author ) ) ?></em></p>
37
38 <div class="entry">
39 <?php the_content( __( 'Read the rest of this entry &rarr;', 'buddypress' ) ); ?>
40 </div>
41
42 <p class="postmetadata"><span class="tags"><?php the_tags( __( 'Tags: ', 'buddypress' ), ', ', '<br />'); ?></span> <span class="comments"><?php comments_popup_link( __( 'No Comments &#187;', 'buddypress' ), __( '1 Comment &#187;', 'buddypress' ), __( '% Comments &#187;', 'buddypress' ) ); ?></span></p>
43 </div>
44
45 </div>
46
47 <?php do_action( 'bp_after_blog_post' ) ?>
48
49 <?php endwhile; ?>
50
51 <div class="navigation">
52
53 <div class="alignleft"><?php next_posts_link( __( '&larr; Previous Entries', 'buddypress' ) ) ?></div>
54 <div class="alignright"><?php previous_posts_link( __( 'Next Entries &rarr;', 'buddypress' ) ) ?></div>
55
56 </div>
57
58 <?php else : ?>
59
60 <h2 class="center"><?php _e( 'Not Found', 'buddypress' ) ?></h2>
61 <?php locate_template( array( 'searchform.php' ), true ) ?>
62
63 <?php endif; ?>
64
65 </div>
66
67 <?php do_action( 'bp_after_archive' ) ?>
68
69 </div><!-- .padder -->
70 </div><!-- #content -->
71
72 <?php locate_template( array( 'sidebar.php' ), true ) ?>
73
74<?php get_footer(); ?>