-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patharchive.php
65 lines (59 loc) · 2.07 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
<?php
/**
* @package WordPress
* @subpackage Default_Theme
*/
get_header();?>
<?php if (have_posts()) : ?>
<section id="blog-header" class="margin">
<div class="container">
<div class="row">
<div class="col-12">
<h1>
<?php $post = $posts[0]; // Hack. Set $post so that the_date() works. ?>
<?php /* If this is a category archive */ if (is_category()) { ?>
Archive for the ‘<?php single_cat_title(); ?>’ is_category>
<?php /* If this is a tag archive */ } elseif( is_tag() ) { ?>
Posts Tagged ‘<?php single_tag_title(); ?>’
<?php /* If this is a daily archive */ } elseif (is_day()) { ?>
Archive for <?php the_time('F jS, Y'); ?>
<?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
Archive for <?php the_time('F, Y'); ?>
<?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
Archive for <?php the_time('Y'); ?>
<?php /* If this is an author archive */ } elseif (is_author()) { ?>
Author Archive
<?php /* If this is a paged archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>
Blog Archives
<?php } ?>
</h1>
</div>
</div>
</div>
</section>
<section id="blog-archive" class="margin">
<div class="container">
<div class="row">
<?php while (have_posts()) : the_post(); ?>
<div class="col-12">
<a href="<?php the_permalink() ?>" class="blog-item">
<h3><?php the_title(); ?></h3>
<small><?php the_time('l, F jS, Y') ?></small>
<div class="entry">
<?php the_content(); ?>
</div>
<p class="meta"><?php the_tags('Tags: ', ', ', '<br />'); ?> Posted in <?php the_category(', ') ?></p>
</a>
</div>
<?php endwhile; ?>
<div class="col-12">
<div class="navigation">
<div class="alignleft"><?php next_posts_link('« Older Entries') ?></div>
<div class="alignright"><?php previous_posts_link('Newer Entries »') ?></div>
</div>
</div>
</div>
</div>
</section>
<?php endif?>
<?php get_footer(); ?>