]> scripts.mit.edu Git - autoinstalls/wordpress.git/blob - wp-content/themes/default/image.php
Wordpress 3.2-scripts
[autoinstalls/wordpress.git] / wp-content / themes / default / image.php
1 <?php
2 /**
3  * @package WordPress
4  * @subpackage Default_Theme
5  */
6
7 get_header();
8 ?>
9
10         <div id="content" class="widecolumn">
11
12   <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
13
14                 <div class="post" id="post-<?php the_ID(); ?>">
15                         <h2><a href="<?php echo get_permalink($post->post_parent); ?>" rev="attachment"><?php echo get_the_title($post->post_parent); ?></a> &raquo; <?php the_title(); ?></h2>
16                         <div class="entry">
17                                 <p class="attachment"><a href="<?php echo wp_get_attachment_url($post->ID); ?>"><?php echo wp_get_attachment_image( $post->ID, 'medium' ); ?></a></p>
18                                 <div class="caption"><?php if ( !empty($post->post_excerpt) ) the_excerpt(); // this is the "caption" ?></div>
19
20                                 <?php the_content('<p class="serif">Read the rest of this entry &raquo;</p>'); ?>
21
22                                 <div class="navigation">
23                                         <div class="alignleft"><?php previous_image_link() ?></div>
24                                         <div class="alignright"><?php next_image_link() ?></div>
25                                 </div>
26                                 <br class="clear" />
27
28                                 <p class="postmetadata alt">
29                                         <small>
30                                                 This entry was posted on <?php the_time('l, F jS, Y') ?> at <?php the_time() ?>
31                                                 and is filed under <?php the_category(', ') ?>.
32                                                 <?php the_taxonomies(); ?>
33                                                 You can follow any responses to this entry through the <?php post_comments_feed_link('RSS 2.0'); ?> feed.
34
35                                                 <?php if ( comments_open() && pings_open() ) {
36                                                         // Both Comments and Pings are open ?>
37                                                         You can <a href="#respond">leave a response</a>, or <a href="<?php trackback_url(); ?>" rel="trackback">trackback</a> from your own site.
38
39                                                 <?php } elseif ( !comments_open() && pings_open() ) {
40                                                         // Only Pings are Open ?>
41                                                         Responses are currently closed, but you can <a href="<?php trackback_url(); ?> " rel="trackback">trackback</a> from your own site.
42
43                                                 <?php } elseif ( comments_open() && !pings_open() ) {
44                                                         // Comments are open, Pings are not ?>
45                                                         You can skip to the end and leave a response. Pinging is currently not allowed.
46
47                                                 <?php } elseif ( !comments_open() && !pings_open() ) {
48                                                         // Neither Comments, nor Pings are open ?>
49                                                         Both comments and pings are currently closed.
50
51                                                 <?php } edit_post_link('Edit this entry.','',''); ?>
52
53                                         </small>
54                                 </p>
55
56                         </div>
57
58                 </div>
59
60         <?php comments_template(); ?>
61
62         <?php endwhile; else: ?>
63
64                 <p>Sorry, no attachments matched your criteria.</p>
65
66 <?php endif; ?>
67
68         </div>
69
70 <?php get_footer(); ?>