forked from creativeslice/goldenegg-public
-
Notifications
You must be signed in to change notification settings - Fork 0
/
archive.php
executable file
·70 lines (52 loc) · 1.74 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
66
67
68
69
70
<?php get_header(); ?>
<div id="content">
<div class="wrap">
<div id="main" role="main">
<?php if ( is_category() ) : ?>
<h1 class="archive-title">
<span>Posts Categorized:</span> <?php single_cat_title(); ?>
</h1>
<?php elseif ( is_tag() ) : ?>
<h1 class="archive-title">
<span>Posts Tagged:</span> <?php single_tag_title(); ?>
</h1>
<?php elseif ( is_author() ) :
global $post;
$author_id = $post->post_author;
?>
<h1 class="archive-title">
<span>Posts By:</span> <?php the_author_meta('display_name', $author_id); ?>
</h1>
<?php elseif ( is_day() ) : ?>
<h1 class="archive-title">
<span>Daily Archives:</span> <?php the_time('l, F j, Y'); ?>
</h1>
<?php elseif ( is_month() ) : ?>
<h1 class="archive-title">
<span>Monthly Archives:</span> <?php the_time('F Y'); ?>
</h1>
<?php elseif ( is_year() ) : ?>
<h1 class="archive-title">
<span>Yearly Archives:</span> <?php the_time('Y'); ?>
</h1>
<?php endif; ?>
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<article <?php post_class( 'cf' ); ?> role="article">
<header class="article-header">
<h3 class="entry-title"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></h3>
<?php get_template_part( 'partials/content', 'byline' ); ?>
</header>
<section class="entry-content">
<?php the_post_thumbnail( 'thumbnail' ); ?>
<?php the_excerpt(); ?>
</section>
</article>
<?php endwhile; ?>
<?php do_action('egg/page_navi'); ?>
<?php else : ?>
<?php get_template_part( 'partials/content', 'missing' ); ?>
<?php endif; ?>
</div>
</div>
</div>
<?php get_footer(); ?>