]> git.openstreetmap.org Git - stateofthemap.git/blob - archive.php
Update http -> https img links
[stateofthemap.git] / archive.php
1 <?php get_header(); ?>
2 <?php get_sidebar(); ?>
3         <div id="main">
4
5                 <?php if (have_posts()) : ?>
6
7                  <?php $post = $posts[0]; // Hack. Set $post so that the_date() works. ?>
8 <?php /* If this is a category archive */ if (is_category()) { ?>                               
9                 <h1>Archive for the '<?php echo single_cat_title(); ?>' Category</h1>
10                 
11           <?php /* If this is a daily archive */ } elseif (is_day()) { ?>
12                 <h1>Archive for <?php the_time('F jS, Y'); ?></h1>
13                 
14          <?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
15                 <h1>Archive for <?php the_time('F, Y'); ?></h1>
16
17                 <?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
18                 <h1>Archive for <?php the_time('Y'); ?></h1>
19                 
20           <?php /* If this is a search */ } elseif (is_search()) { ?>
21                 <h1>Search Results</h1>
22                 
23           <?php /* If this is an author archive */ } elseif (is_author()) { ?>
24                 <h1>Author Archive</h1>
25
26                 <?php /* If this is a paged archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>
27                 <h1>Blog Archives</h1>
28
29                 <?php } ?>
30
31
32                 <div class="navigation">
33                         <div class="alignleft"><?php next_posts_link('&laquo; Previous Entries') ?></div>
34                         <div class="alignright"><?php previous_posts_link('Next Entries &raquo;') ?></div>
35                 </div>
36
37                 <?php while (have_posts()) : the_post(); ?>
38                         
39                                 <h1><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h1>
40                                 <?php if (function_exists("the_bunny_tags")) {
41                                                 the_bunny_tags();
42                                                 }
43                                         ?>
44                                 <p class="post-footer align-right">
45                                          Posted in <?php the_category(', ') ?> on <span class="date"><?php the_time('F jS, Y') ?></span> <!-- by <?php the_author() ?> --> <strong>|</strong>
46                                 <?php edit_post_link('Edit','','<strong> |</strong>'); ?>  <?php comments_popup_link('No Comments &#187;', '1 Comment &#187;', '% Comments &#187;'); ?></p>
47                                         <?php the_excerpt(); ?>
48                                         <!--
49                                                 <?php trackback_rdf(); ?>
50                                         -->
51                                 </p>
52                                 
53                                 <p>[ <a href="#top">Back to top</a> ]</p>
54                                 
55                         
56         
57                 <?php endwhile; ?>
58
59                 <div class="navigation">
60                         <div class="alignleft"><?php next_posts_link('&laquo; Previous Entries') ?></div>
61                         <div class="alignright"><?php previous_posts_link('Next Entries &raquo;') ?></div>
62                 </div>
63         
64         <?php else : ?>
65
66                 <h1 class="center">Not Found</h1>
67                 <?php include (TEMPLATEPATH . '/searchform.php'); ?>
68
69         <?php endif; ?>
70                 
71         </div>
72                 
73                 <!-- content-wrap ends here --> 
74                 </div>
75 <?php get_footer(); ?>