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

Last change on this file since 44 was 44, checked in by luciano, 14 years ago
File size: 2.5 KB
Line 
1<?php get_header(); ?>
2<!--#content:start-->
3 <div id="content">
4
5
6 <?php if (have_posts()) : ?>
7
8 <?php $post = $posts[0]; // Hack. Set $post so that the_date() works. ?>
9 <?php /* If this is a category archive */ if (is_category()) { ?>
10 <h2 class="pagetitle">Archive for the &#8216;<?php single_cat_title(); ?>&#8217; Category</h2>
11 <?php /* If this is a tag archive */ } elseif( is_tag() ) { ?>
12 <h2 class="pagetitle">Posts Tagged &#8216;<?php single_tag_title(); ?>&#8217;</h2>
13 <?php /* If this is a daily archive */ } elseif (is_day()) { ?>
14 <h2 class="pagetitle">Archive for <?php the_time('F jS, Y'); ?></h2>
15 <?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
16 <h2 class="pagetitle">Archive for <?php the_time('F, Y'); ?></h2>
17 <?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
18 <h2 class="pagetitle">Archive for <?php the_time('Y'); ?></h2>
19 <?php /* If this is an author archive */ } elseif (is_author()) { ?>
20 <h2 class="pagetitle">Author Archive</h2>
21 <?php /* If this is a paged archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>
22 <h2 class="pagetitle">Blog Archives</h2>
23 <?php } ?>
24
25 <?php while (have_posts()) : the_post(); ?>
26 <div class="entry" id="post-<?php the_ID(); ?>">
27
28
29 <h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
30 <p class="meta-header"><?php _e("Posted on the"); ?> <?php the_time('F jS, Y') ?> under <?php the_category(',') ?> by <?php the_author_posts_link(); ?> <?php edit_post_link(__('<span class="edit">Edit</a>')); ?></p>
31
32 <?php the_content(__('')); ?>
33
34 <div class="meta-footer">
35 <ul>
36 <li><a href="<?php the_permalink() ?>">Read More</a></li>
37 <li><a href="<?php the_permalink() ?>#comment"><?php comments_number(); ?></a></li>
38 <?php edit_post_link(__('Edit'), '<li>', '</li>'); ?>
39 </ul>
40 <div class="clear-left"></div>
41 </div>
42
43 </div>
44 <?php endwhile; ?>
45 <?php endif; ?>
46 <div class="pagination">
47 <div class="prev-page"><?php next_posts_link('Older Entries') ?></div>
48 <div class="next-page"><?php previous_posts_link('Newer Entries') ?></div>
49 </div>
50 </div>
51
52<!--#content:end-->
53<?php get_sidebar(); ?>
54<?php get_footer(); ?>
Note: See TracBrowser for help on using the repository browser.