| 1 |
<?php get_header(); ?> |
|---|
| 2 |
|
|---|
| 3 |
<?php if (have_posts()) : while (have_posts()) : the_post(); ?> |
|---|
| 4 |
|
|---|
| 5 |
<div class="navigation"> |
|---|
| 6 |
<div> </div> |
|---|
| 7 |
<div> </div> |
|---|
| 8 |
</div> |
|---|
| 9 |
<?php $attachment_link = get_the_attachment_link($post->ID, true, array(450, 800)); ?> |
|---|
| 10 |
<?php $_post = &get_post($post->ID); $classname = ($_post->iconsize[0] <= 128 ? 'small' : '') . 'attachment'; ?> |
|---|
| 11 |
<div class="post" id="post-<?php the_ID(); ?>"> |
|---|
| 12 |
<h2><a href="<?php echo get_permalink($post->post_parent); ?>" rev="attachment"><?php echo get_the_title($post->post_parent); ?></a> » <a href="<?php echo get_permalink() ?>" rel="bookmark" title="Permanent Link: <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2> |
|---|
| 13 |
<p class="<?php echo $classname; ?>"><?php echo $attachment_link; ?><br /><?php echo basename($post->guid); ?></p> |
|---|
| 14 |
|
|---|
| 15 |
<?php the_content('<p class="serif">Read the rest of this entry »</p>'); ?> |
|---|
| 16 |
|
|---|
| 17 |
<?php wp_link_pages(array('before' => '<p><strong>Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?> |
|---|
| 18 |
|
|---|
| 19 |
<p class="postmetadata alt"> |
|---|
| 20 |
This entry was posted |
|---|
| 21 |
<?php |
|---|
| 22 |
You'll need to download this plugin, and follow the instructions: |
|---|
| 23 |
http://binarybonsai.com/archives/2004/08/17/time-since-plugin/ */ |
|---|
| 24 |
/* $entry_datetime = abs(strtotime($post->post_date) - (60*120)); echo time_since($entry_datetime); echo ' ago'; */ ?> |
|---|
| 25 |
on <?php the_time('l, F jS, Y') ?> at <?php the_time() ?> |
|---|
| 26 |
and is filed under <?php the_category(', ') ?>. |
|---|
| 27 |
You can follow any responses to this entry through the <?php comments_rss_link('RSS 2.0'); ?> feed. |
|---|
| 28 |
|
|---|
| 29 |
<?php if (('open' == $post-> comment_status) && ('open' == $post->ping_status)) { |
|---|
| 30 |
?> |
|---|
| 31 |
You can <a href="#respond">leave a response</a>, or <a href="<?php trackback_url(); ?>" rel="trackback">trackback</a> from your own site. |
|---|
| 32 |
|
|---|
| 33 |
<?php } elseif (!('open' == $post-> comment_status) && ('open' == $post->ping_status)) { |
|---|
| 34 |
?> |
|---|
| 35 |
Responses are currently closed, but you can <a href="<?php trackback_url(); ?> " rel="trackback">trackback</a> from your own site. |
|---|
| 36 |
|
|---|
| 37 |
<?php } elseif (('open' == $post-> comment_status) && !('open' == $post->ping_status)) { |
|---|
| 38 |
?> |
|---|
| 39 |
You can skip to the end and leave a response. Pinging is currently not allowed. |
|---|
| 40 |
|
|---|
| 41 |
<?php } elseif (!('open' == $post-> comment_status) && !('open' == $post->ping_status)) { |
|---|
| 42 |
?> |
|---|
| 43 |
Both comments and pings are currently closed. |
|---|
| 44 |
|
|---|
| 45 |
<?php } edit_post_link('Edit this entry.','',''); ?> |
|---|
| 46 |
</p> |
|---|
| 47 |
|
|---|
| 48 |
</div> |
|---|
| 49 |
|
|---|
| 50 |
<?php comments_template(); ?> |
|---|
| 51 |
|
|---|
| 52 |
<?php endwhile; else: ?> |
|---|
| 53 |
|
|---|
| 54 |
<p>Sorry, no attachments matched your criteria.</p> |
|---|
| 55 |
|
|---|
| 56 |
<?php endif; ?> |
|---|
| 57 |
|
|---|
| 58 |
<?php get_footer(); ?> |
|---|
| 59 |
|
|---|