-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy patharchive.php
executable file
·49 lines (29 loc) · 1.47 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
<?php get_header(); ?>
<div id="content">
<?php if (have_posts()) : ?>
<?php $post = $posts[0]; ?>
<?php if (is_category()) { ?>
<h2 class="pagetitle"><?php _e('Category archive for','Mimbo'); ?> ‘<?php single_cat_title(); ?>’ <a href="<?php echo get_category_feed_link(); ?>feed/"><img src="<?php bloginfo('template_url'); ?>/images/rss.gif" alt="rss" /></a> </h2>
<?php } elseif( is_tag() ) { ?>
<h2 class="pagetitle"><?php _e('Tag archive for','Mimbo'); ?> ‘<?php single_tag_title(); ?>’</h2>
<?php } elseif (is_day()) { ?>
<h2 class="pagetitle"><?php _e('Date archive for','Mimbo'); ?> <?php the_time('F jS, Y'); ?></h2>
<?php } elseif (is_month()) { ?>
<h2 class="pagetitle"><?php _e('Date archive for','Mimbo'); ?> <?php the_time('F, Y'); ?></h2>
<?php } elseif (is_year()) { ?>
<h2 class="pagetitle"><?php _e('Date archive for','Mimbo'); ?> <?php the_time('Y'); ?></h2>
<?php } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>
<h2 class="pagetitle"><?php _e('Blog Archives','Mimbo'); ?></h2>
<?php } ?>
<ul class="archive-list clearfloat">
<?php while (have_posts()) : the_post(); ?>
<?php include (TEMPLATEPATH . '/archivelist.php'); ?>
<?php endwhile; ?>
</ul>
<?php include (TEMPLATEPATH . '/pagination.php'); ?>
<?php else : ?>
<h2><?php _e('Not Found','Mimbo'); ?></h2>
<?php endif; ?>
</div>
<?php get_sidebar(); ?>
<?php get_footer(); ?>