-
Notifications
You must be signed in to change notification settings - Fork 0
/
archive.php
executable file
·40 lines (39 loc) · 1.11 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
<?php
/**
* Archive
*
* @package Status
* @since 1.0
*/
?>
<?php get_header(); ?>
<div id="content" class="primary" role="main">
<?php do_action( 'bp_before_archive' ) ?>
<?php if ( have_posts() ) the_post(); ?>
<header class="post-header">
<h1 class="post-title">
<?php if ( is_day() ) : ?>
<?php printf( __( 'Daily Archives: <span>%s</span>', 'status'), get_the_date() ); ?>
<?php elseif ( is_month() ) : ?>
<?php printf( __( 'Monthly Archives: <span>%s</span>', 'status'), get_the_date( 'F Y' ) ); ?>
<?php elseif ( is_year() ) : ?>
<?php printf( __( 'Yearly Archives: <span>%s</span>', 'status'), get_the_date( 'Y' ) ); ?>
<?php else : ?>
<?php _e( 'Blog Archives', 'status'); ?>
<?php endif; ?>
</h1>
</header>
<?php bp_dtheme_content_nav( 'nav-above' ); ?>
<?php
rewind_posts();
while ( have_posts() ) : the_post();
do_action( 'bp_before_blog_post' );
get_template_part( 'content', get_post_format() );
do_action( 'bp_after_blog_post' );
endwhile;
bp_dtheme_content_nav( 'nav-below' );
?>
<?php do_action( 'bp_after_archive' ) ?>
</div>
<?php get_sidebar(); ?>
<?php get_footer(); ?>