public
Description: A inverted modification of the mildly popular two-column WordPress theme.
Homepage: http://labs.revyver.com
Clone URL: git://github.com/revyver/angelicsoul.git
angelicsoul / archive.php
100644 55 lines (38 sloc) 2.612 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
<?php get_header(); ?>
<div id="content" class="widecolumn">
<?php if (have_posts()) : ?>
<?php $post = $posts[0]; // Hack. Set $post so that the_date() works. ?>
<?php /* If this is a category archive */ if (is_category()) { ?>
<h2 class="title"><?php printf(__("Archive for the '%s' Category", 'angelicsoul'), single_cat_title('', false)); ?></h2>
<?php /* If this is a daily archive */ } elseif (is_day()) { ?>
<h2 class="title"><?php printf(__('Archive for %s', 'angelicsoul'), get_the_time('F jS, Y')); ?></h2>
<?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
<h2 class="title"><?php printf(__('Archive for %s', 'angelicsoul'), get_the_time('F, Y')); ?></h2>
<?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
<h2 class="title"><?php printf(__('Archive for %s', 'angelicsoul'), get_the_time('Y')); ?></h2>
<?php /* If this is a search */ } elseif (is_search()) { ?>
<h2 class="title"><?php _e('Search Results', 'angelicsoul'); ?></h2>
<?php /* If this is an author archive */ } elseif (is_author()) { ?>
<h2 class="title"><?php _e('Author Archive', 'angelicsoul'); ?></h2>
<?php /* If this is a paged archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>
<h2 class="title"><?php _e('Blog Archives', 'angelicsoul'); ?></h2>
<?php } ?>
 
<?php while (have_posts()) : the_post(); ?>
<div <?php post_class(); ?>>
<h2 id="post-<?php the_ID(); ?>"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php printf(__('Permanent Link to %s', 'angelicsoul'), get_the_title()); ?>"><?php the_title(); ?></a></h2> &bull; <?php the_time('l, F jS, Y') ?>
&bull; <?php the_time(get_option('date_format')) ?> &bull; <?php comments_popup_link(__('No Comments', 'angelicsoul'), __('1 Comment', 'angelicsoul'), __('% Comments', 'angelicsoul')); ?><?php edit_post_link(__('Edit', 'angelicsoul'), ' (', ')'); ?>
<p class="postmetadata"><?php printf(__('Posted in %s', 'angelicsoul'), get_the_category_list(', ')); ?><?php the_tags('<br />' . __( 'Tags' ) . ': ', ', ', ''); ?></p>
</div>
<br />
<?php endwhile; ?>
<div class="navigation">
<div class="alignleft"><?php next_posts_link(__('&laquo; Previous Entries', 'angelicsoul')) ?></div>
<div class="alignright"><?php previous_posts_link(__('Next Entries &raquo;', 'angelicsoul')) ?></div>
</div>
<?php else : ?>
<h2 class="center"><?php _e('Not Found', 'angelicsoul'); ?></h2>
<?php include (TEMPLATEPATH . '/searchform.php'); ?>
<?php endif; ?>
</div>
<?php get_sidebar(); ?>
 
<?php get_footer(); ?>