ionfish / tarski

An elegant, flexible WordPress theme

This URL has Read+Write access

tarski / archive.php
100644 90 lines (63 sloc) 2.934 kb
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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
<?php get_header(); ?>
 
 
 
<div class="primary posts">
<?php if(have_posts()) { // Gets it all going ?>
 
<div class="archive">
<?php if(is_category()) { // Category header ?>
<div class="meta">
<h1><?php echo single_cat_title(); ?></h1>
</div>
<div class="content">
<?php if(trim(strip_tags(category_description()))) { ?>
<?php echo category_description(); ?>
<?php } else { ?>
<p><?php printf( __('You are currently browsing the archive for the %s category.','tarski'), '<strong>' . single_cat_title('', false) . '</strong>' ); ?></p>
<?php } ?>
</div>
<?php } elseif(is_tag()) { // Tag archive header ?>
 
<div class="meta">
<h1 class="title"><?php echo multiple_tag_titles(); ?></h1>
</div>
<div class="content">
<p><?php printf( __('You are currently browsing articles tagged %s.','tarski'), multiple_tag_titles('<strong>%s</strong>') ); ?></p>
</div>
<?php } elseif(is_author()) { // Author header ?>
 
<div class="meta">
<h1 class="title"><?php printf( __('Articles by %s','tarski'), the_archive_author_displayname() ); ?></h1>
</div>
<div class="content">
<?php if(the_archive_author_description()) { ?>
<?php echo wpautop(wptexturize(stripslashes(the_archive_author_description()))); ?>
<?php } else { ?>
<p><?php printf( __('You are currently browsing %s&#8217;s articles.','tarski'), '<strong>'. the_archive_author_displayname(). '</strong>' ); ?></p>
<?php } ?>
</div>
 
<?php } elseif(is_day()) { // Daily archive header ?>
 
<div class="meta">
<h1 class="title"><?php the_time(get_option('date_format')); ?></h1>
</div>
<div class="content">
<p><?php printf( __('You are currently browsing the daily archive for %s.','tarski'), '<strong>' . get_the_time(get_option('date_format')) . '</strong>' ); ?></p>
</div>
 
<?php } elseif(is_month()) { // Monthly archive header ?>
 
<div class="meta">
<h1 class="title"><?php the_time('F Y'); ?></h1>
</div>
<div class="content">
<p><?php printf( __('You are currently browsing the monthly archive for %s.','tarski'), '<strong>' . get_the_time('F Y') . '</strong>' ); ?></p>
</div>
 
<?php } elseif(is_year()) { // Yearly archive header ?>
 
<div class="meta">
<h1 class="title"><?php the_time('Y'); ?></h1>
</div>
<div class="content">
<p><?php printf( __('You are currently browsing the yearly archive for %s.','tarski'), '<strong>' . get_the_time('Y') . '</strong>' ); ?></p>
</div>
 
<?php } ?>
</div> <!-- /archive -->
<?php include(TEMPLATEPATH.'/loop.php'); ?>
<?php } else { ?>
<?php include(TARSKIDISPLAY . "/no_posts.php"); ?>
<?php } // End if posts ?>
</div> <!-- /primary -->
 
 
 
<?php get_sidebar(); ?>
 
 
 
<?php get_footer(); ?>