<?php/* If this is a daily archive */}elseif(is_day()){?>
<h2class="pagetitle">Archive for <?phpthe_time('F jS, Y');?></h2>
<?php/* If this is a monthly archive */}elseif(is_month()){?>
<h2class="pagetitle">Archive for <?phpthe_time('F, Y');?></h2>
<?php/* If this is a yearly archive */}elseif(is_year()){?>
<h2class="pagetitle">Archive for <?phpthe_time('Y');?></h2>
<?php/* If this is an author archive */}elseif(is_author()){?>
<h2class="pagetitle">Author Archive</h2>
<?php/* If this is a paged archive */}elseif(isset($_GET['paged'])&&!empty($_GET['paged'])){?>
<h2class="pagetitle">Archives</h2>
<?php}?>
<?phpwhile(have_posts()):the_post();?>
<divclass="post">
<h3id="post-<?phpthe_ID();?>"><ahref="<?phpthe_permalink()?>"rel="bookmark"title="Permanent Link to <?phpthe_title_attribute();?>"><?phpthe_title();?></a></h3>
<small>Posted in <?phpthe_category(', ')?> on <?phpthe_time('F jS, Y')?> by <?phpthe_author()?>–<?phpcomments_popup_link('Be the first to comment','1 Comment','% Comments');?><?phpedit_post_link('Edit',' | ','');?></small>
<divclass="entry">
<?phpthe_content('<span class="more">read more »</span>')?>
<p><ahref="<?phpechoget_post_comments_feed_link($post->ID);?>"><abbrtitle="Really Simple Syndication">RSS</abbr> feed for comments on this post.</a></p>
<?phpif('open'==$post->ping_status){?>
<p>The <abbrtitle="Universal Resource Locator">URL</abbr> to TrackBack this entry is: <em><?phptrackback_url()?></em></p>
<?php}?>
<?php
// this line is WordPress' motor, do not delete it.
$commenter=wp_get_current_commenter();
extract($commenter);
$comments=get_approved_comments($id);
$post=get_post($id);
if(!empty($post->post_password)&&$_COOKIE['wp-postpass_'.COOKIEHASH]!=$post->post_password){// and it doesn't match the cookie
echo(get_the_password_form());
}else{?>
<?phpif($comments){?>
<olid="commentlist">
<?phpforeach($commentsas$comment){?>
<liid="comment-<?phpcomment_ID()?>">
<?phpcomment_text()?>
<p><cite><?phpcomment_type('Comment','Trackback','Pingback');?> by <?phpcomment_author_link()?>—<?phpcomment_date()?> @ <ahref="#comment-<?phpcomment_ID()?>"><?phpcomment_time()?></a></cite></p>
</li>
<?php}// end for each comment ?>
</ol>
<?php}else{// this is displayed if there are no comments so far ?>
<p>Nocommentsyet.</p>
<?php}?>
<?phpif('open'==$post->comment_status){?>
<h2>Leave a comment</h2>
<p>Line and paragraph breaks automatic, e-mail address never displayed, <acronymtitle="Hypertext Markup Language">HTML</acronym> allowed: <code><?phpechoallowed_tags();?></code></p>
<p>Logged in as <ahref="<?phpechoget_option('siteurl');?>/wp-admin/profile.php"><?phpecho$user_identity;?></a>. <ahref="<?phpechoget_option('siteurl');?>/wp-login.php?action=logout"title="Log out of this account">Log out »</a></p>
<div><strong><ahref="javascript:window.close()">Close this window.</a></strong></div>
<?php// if you delete this the sky will fall on your head
endwhile;
?>
<!-- // this is just the end of the motor - don't touch that line either :) -->
<?php//} ?>
<pclass="credit"><?phptimer_stop(1);?><cite>Powered by <ahref="http://wordpress.org/"title="Powered by WordPress, state-of-the-art semantic personal publishing platform"><strong>WordPress</strong></a></cite></p>
<?php// Seen at http://www.mijnkopthee.nl/log2/archive/2003/05/28/esc(18) ?>