-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy patharchive.php
executable file
·51 lines (48 loc) · 1.8 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();
get_template_part('inc/nav','nohead');
?>
<div class="wide-container noheaderimage">
<div class="row nopadrow">
<div class="col span_24 centered">
<header>
<h1>Blog</h1>
<?php if (have_posts()) : ?>
<?php $post = $posts[0]; // Hack. Set $post so that the_date() works. ?>
<?php /* If this is a category archive */ if (is_category()) { ?>
<h4>Category: <?php echo single_cat_title(); ?></h4>
<?php /* If this is a daily archive */ } elseif (is_day()) { ?>
<h4>Archive for <?php the_time('F jS, Y'); ?></h4>
<?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
<h4>Archive for <?php the_time('F, Y'); ?></h4>
<?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
<h4>Archive for <?php the_time('Y'); ?></h4>
<?php /* If this is a search */ } elseif (is_search()) { ?>
<h4>Search Results</h4>
<?php /* If this is an author archive */ } elseif (is_author()) { ?>
<h4>Author Archive</h4>
<?php /* If this is a paged archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>
<h4>Blog Archives</h4>
<?php } ?>
</header><!-- end row-->
</div>
</div>
</div>
<div class="wide-container">
<div class="container">
<div class="row page-content articles-container">
<?php while (have_posts()) : the_post(); ?>
<div class="article">
<?php get_template_part('inc/content','article'); ?>
</div>
<?php endwhile; ?>
<?php get_template_part( 'inc/feature', 'pagination' ); ?>
<?php else : ?>
<h2 class="center">Not Found</h2>
<?php include (TEMPLATEPATH . '/searchform.php'); ?>
<?php endif; ?>
</div>
</div>
</div> <!-- end container-->
</div>
<?php get_footer() ?>