-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy patharchive.php
74 lines (51 loc) · 2.38 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
71
72
73
74
<?php get_header(); ?>
<div class="content clearfix">
<div id="main" class="clearfix" role="main">
<?php if (is_category()) { ?>
<h1 class="archive_title h2">
<span><?php _e("Posts Categorized:", "320semanticgs"); ?></span> <?php single_cat_title(); ?>
</h1>
<?php } elseif (is_tag()) { ?>
<h1 class="archive_title h2">
<span><?php _e("Posts Tagged:", "320semanticgs"); ?></span> <?php single_tag_title(); ?>
</h1>
<?php } elseif (is_author()) { ?>
<h1 class="archive_title h2">
<span><?php _e("Posts By:", "320semanticgs"); ?></span> <?php get_the_author_meta('display_name'); ?>
</h1>
<?php } elseif (is_day()) { ?>
<h1 class="archive_title h2">
<span><?php _e("Daily Archives:", "320semanticgs"); ?></span> <?php the_time('l, F j, Y'); ?>
</h1>
<?php } elseif (is_month()) { ?>
<h1 class="archive_title h2">
<span><?php _e("Monthly Archives:", "320semanticgs"); ?>:</span> <?php the_time('F Y'); ?>
</h1>
<?php } elseif (is_year()) { ?>
<h1 class="archive_title h2">
<span><?php _e("Yearly Archives:", "320semanticgs"); ?>:</span> <?php the_time('Y'); ?>
</h1>
<?php } ?>
<?php if(have_posts()) : ?><?php while(have_posts()) : the_post(); ?>
<article id="post-<?php the_ID(); ?>" <?php post_class('clearfix'); ?> role="article">
<header>
<h2 class="h3" itemprop="headline"><a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
<p class="meta"><?php _e('Filed under:' , "320semanticgs"); ?> <?php the_category(', ') ?> <?php _e('by', "320semanticgs"); ?> <?php the_author(); ?><br />
<?php comments_popup_link('No Comments »', '1 Comment »', '% Comments »'); ?> <?php edit_post_link('Edit', ' | ', ''); ?></p>
</header><!-- / header -->
<section class="post_content clearfix" itemprop="articleBody">
<?php the_post_thumbnail(); ?>
<?php the_excerpt(); ?>
</section><!-- / section -->
<footer></footer><!-- / footer -->
</article><!-- / article -->
<?php comments_template(); ?>
<?php endwhile; ?>
<div class="navigation">
<?php previous_post_link('< %link') ?> <?php next_post_link(' %link >') ?>
</div>
<?php endif; ?>
</div><!-- / main -->
<?php get_sidebar(); ?>
</div><!-- / content -->
<?php get_footer(); ?>