-
Notifications
You must be signed in to change notification settings - Fork 0
/
archive.php
51 lines (47 loc) · 2.05 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
<?php get_header(); ?>
<div class="grid-container spacer-top">
<div class="grid-100">
<div class="breadcrumbs">
<a href="/">Home</a> » <a href="/blog/">Blog</a> »
<?php
if ( is_day() ) {
printf( __('<a href="/blog/%s/">%s</a> » %s'), get_the_time('Y'), get_the_time('Y'), get_the_time('F'));
}
elseif ( is_month() ) {
printf( __('<a href="/blog/%s/">%s</a> » %s'), get_the_time('Y'), get_the_time('Y'), get_the_time('F'));
}
elseif ( is_year() ) {
printf( __('%s'), get_the_time('Y'));
}
else { _e( 'Archives', 'catholicsingles' ); }
?>
</div>
<h1 class="entry-title"><?php
if ( is_day() ) { printf( __( 'Daily Archives: %s', 'catholicsingles' ), get_the_time( get_option( 'date_format' ) ) ); }
elseif ( is_month() ) { printf( __( 'Monthly Archives: %s', 'catholicsingles' ), get_the_time( 'F Y' ) ); }
elseif ( is_year() ) { printf( __( 'Yearly Archives: %s', 'catholicsingles' ), get_the_time( 'Y' ) ); }
else { _e( 'Archives', 'catholicsingles' ); }
?></h1>
</div>
<div class="grid-100 alternate-row-colors">
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<div class="post-preview grid-container row">
<div class="grid-100">
<?php if (has_post_thumbnail()){ ?>
<div class="featured-image-block" style="background-image: url(<?php the_post_thumbnail_url('large') ?>);">
<h1><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h1>
</div>
<?php } else { ?>
<h1 class="entry-title"><?php the_title(); ?></h1>
<?php } ?>
</div>
<?php the_excerpt(); ?>
<p class="read-more"><a href="<?php the_permalink(); ?>">Read More</a></p>
</div>
<?php endwhile; endif; ?>
<div class="nav-previous alignleft"><?php previous_posts_link( '« Newer posts' ); ?></div>
<div class="nav-next alignright"><?php next_posts_link( 'Older posts »' ); ?></div>
</div>
</div>
<?php get_sidebar(); ?>
<?php get_footer(); ?>