-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patharchive.php
60 lines (52 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
50
51
52
53
54
55
56
57
58
59
60
<?php
global $soup;
get_header();
?>
<div id="content">
<div id="contentHeadA"><section>
<div id="contentHead"><header>
<<?php echo $soup->pageNameTag; ?> id="pageName">
<?php if ( is_day() ) : ?>
Daily Archives: <span><?php the_time(get_option('date_format')); ?></span>
<?php elseif ( is_month() ) : ?>
Monthly Archives: <span><?php the_time('F Y'); ?></span>
<?php elseif ( is_year() ) : ?>
Annual Archives: <span><?php the_time('Y'); ?></span>
<?php elseif ( is_category() ) : ?>
Category Archives: <span><?php single_cat_title(); ?></span>
<?php elseif ( is_tag() ) : ?>
Tag Archives: <span><?php echo $soup->tagQuery(); ?></span>
<?php elseif ( is_author() ) : ?>
Author Archives: <span><?php
the_post();
echo $authordata->display_name;
rewind_posts();
?></span>
<?php elseif ( isset($_GET['paged']) && !empty($_GET['paged']) ) : ?>
Blog Archives
<?php endif; ?>
</<?php echo $soup->pageNameTag; ?>>
</header></div>
<div id="contentA" class="hfeed">
<?php
while ( have_posts() ) :
the_post();
$soup->writeArchivePost($post);
endwhile;
?>
<div id="page-nav" class="page-nav nav">
<div class="page-nav-older"><?php next_posts_link('Older posts') ?></div>
<div class="page-nav-newer"><?php previous_posts_link('Newer posts') ?></div>
</div>
<!-- //#page-nav -->
</div>
<!-- //#contentA -->
</section></div>
<!-- //#contentHeadA -->
<?php
get_sidebar();
//#content [get_sidebar() closes div #content]
?>
<?
get_footer();
?>