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

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