-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patharchive.php
49 lines (43 loc) · 1.58 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
<?php get_header(); ?>
<div class="section site-body">
<div class="section-inner">
<h1>
<?php if ( is_day() ) : ?>
<?php printf( __( 'Daily Archives: <span>%s</span>' ), get_the_date() ); ?>
<?php elseif ( is_month() ) : ?>
<?php printf( __( 'Monthly Archives: <span>%s</span>' ), get_the_date('F Y') ); ?>
<?php elseif ( is_year() ) : ?>
<?php printf( __( 'Yearly Archives: <span>%s</span>' ), get_the_date('Y') ); ?>
<?php else : ?>
Blog Archives
<?php endif; ?>
</h1>
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<h2><a href="<?php the_permalink() ?>" title="<?php the_title(); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
<?php echo '<div class="featured-thumbnail">'; the_post_thumbnail(); echo '</div>'; ?>
<p>
Written on <?php the_time('F j, Y'); ?> at <?php the_time() ?>, by <?php the_author_posts_link() ?>
</p>
<div class="post-excerpt">
<?php the_excerpt(); ?>
</div>
<?php get_template_part('partials/post-meta'); ?>
<?php endwhile; else: ?>
<div class="no-results">
<p>
We're sorry, the page you are looking for cannot be found.
</p>
</div><!--noResults-->
<?php endif; ?>
<div class="newer-older">
<div class="older">
<?php previous_posts_link('<span></span> Previous Posts'); ?>
</div><!--.older-->
<div class="newer">
<?php next_posts_link('Newer posts <span></span>'); ?>
</div><!--.older-->
</div><!--.newer-older-->
<?php get_sidebar(); ?>
</div>
</div><!--#content-->
<?php get_footer(); ?>