source: trunk/www.guidonia.net/wp/wp-content/themes/slickpress/archive.php@ 44

Last change on this file since 44 was 44, checked in by luciano, 15 years ago
File size: 2.0 KB
RevLine 
[44]1<?php get_header(); ?>
2 <!-- BEGIN content -->
3 <div id="content">
4
5 <?php $post = $posts[0]; // Hack. Set $post so that the_date() works. ?>
6 <?php /* If this is a category archive */ if (is_category()) { ?>
7 <h2 class="title">Archive for the <strong><?php single_cat_title(); ?></strong> Category</h2>
8 <?php /* If this is a tag archive */ } elseif( is_tag() ) { ?>
9 <h2 class="title">Posts Tagged <strong><?php single_tag_title(); ?></strong></h2>
10 <?php /* If this is a daily archive */ } elseif (is_day()) { ?>
11 <h2 class="title">Archive for <?php the_time('F jS, Y'); ?></h2>
12 <?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
13 <h2 class="title">Archive for <?php the_time('F, Y'); ?></h2>
14 <?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
15 <h2 class="title">Archive for <?php the_time('Y'); ?></h2>
16 <?php /* If this is an author archive */ } elseif (is_author()) { ?>
17 <h2 class="title">Author Archive</h2>
18 <?php /* If this is a paged archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>
19 <h2 class="title">Blog Archives</h2>
20 <?php } ?>
21
22 <?php
23 if (have_posts()) : $side = 'r';
24 while (have_posts()) : the_post();
25 $arc_year = get_the_time('Y');
26 $arc_month = get_the_time('m');
27 $arc_day = get_the_time('d');
28 $side = ($side=='r') ? 'l' : 'r';
29 ?>
30 <div class="archive">
31 <h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
32 <?php dp_attachment_image(0, 'thumbnail', 'alt="' . $post->post_title . '"'); ?>
33 <?php the_excerpt(); ?>
34 <p><?php comments_popup_link('No Comments', '1 Comment', '% Comments'); ?></p>
35 </div>
36 <?php endwhile; ?>
37 <div class="break"></div>
38 <!-- begin post navigation -->
39 <div class="postnav">
40 <?php if(function_exists('wp_page_numbers')) { wp_page_numbers(); } ?>
41 </div>
42 <!-- end post navigation -->
43 <?php else : ?>
44 <div class="notfound">
45 <h2>Not Found</h2>
46 <p>Sorry, but you are looking for something that is not here.</p>
47 </div>
48 <?php endif; ?>
49
50 </div>
51 <!-- END content -->
52<?php get_sidebar(); get_footer(); ?>
Note: See TracBrowser for help on using the repository browser.