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