(root)/archive.php - Rev 1
Blame |
Last modification |
View Log
| RSS feed
<?php get_header
(); ?>
<div id="page">
<?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>
<?php echo langtext003
; ?> '
<?php echo single_cat_title
(); ?>'
<?php echo langtext004
; ?></h2>
<?php /* If this is a daily archive */ } elseif (is_day
()) { ?>
<h2>
<?php echo langtext005
; ?> <?php the_time
(langtext006
); ?></h2>
<?php /* If this is a monthly archive */ } elseif (is_month
()) { ?>
<h2>
<?php echo langtext007
; ?> <?php the_time
(langtext008
); ?> </h2>
<?php /* If this is a yearly archive */ } elseif (is_year
()) { ?>
<h2>
<?php echo langtext009
; ?> <?php the_time
(langtext010
); ?></h2>
<?php /* If this is a search */ } elseif (is_search
()) { ?>
<h2>
<?php echo langtext011
; ?></h2>
<?php /* If this is an author archive */ } elseif (is_author
()) { ?>
<h2>
<?php echo langtext012
; ?></h2>
<?php /* If this is a paged archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>
<h2>
<?php echo langtext013
; ?></h2>
<?php } ?>
<?php while (have_posts
()) : the_post
(); ?>
<div class="post">
<h2 id="post-
<?php the_ID
(); ?>"><a href="
<?php the_permalink
() ?>" rel="bookmark" title="
<?php echo langtext014
; ?> <?php the_title
(); ?>">
<?php the_title
(); ?></a></h2>
<?php the_time
(langtext015
) ?> ore
<?php the_time
() ?>
<p class="postmetadata">
<?php echo langtext016
; ?> <?php the_category
(', ') ?> |
<?php edit_post_link
(langtext017
, '', ' | '); ?> <?php comments_popup_link
(langtext018
, langtext019
, langtext020
); ?></p>
</div>
<br />
<?php endwhile; ?>
<div class="navigation">
<div class="left">
<?php next_posts_link
(langtext021
) ?></div>
<div class="right">
<?php previous_posts_link
(langtext022
) ?></div>
</div>
<?php else : ?>
<h2>
<?php echo langtext023
; ?></h2>
<?php include (TEMPLATEPATH
. '/searchform.php'); ?>
<?php endif; ?>
</div>
<?php get_sidebar
(); ?>
<?php get_footer
(); ?>