home *** CD-ROM | disk | FTP | other *** search
/ Cricao de Sites - 650 Layouts Prontos / WebMasters.iso / Blogs / wordpress2.6.exe / wordpress2.6 / wp-content / themes / default / image.php < prev    next >
Encoding:
PHP Script  |  2008-03-27  |  2.5 KB  |  64 lines

  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="post" id="post-<?php the_ID(); ?>">
  8.             <h2><a href="<?php echo get_permalink($post->post_parent); ?>" rev="attachment"><?php echo get_the_title($post->post_parent); ?></a> » <?php the_title(); ?></h2>
  9.             <div class="entry">
  10.                 <p class="attachment"><a href="<?php echo wp_get_attachment_url($post->ID); ?>"><?php echo wp_get_attachment_image( $post->ID, 'medium' ); ?></a></p>
  11.                 <div class="caption"><?php if ( !empty($post->post_excerpt) ) the_excerpt(); // this is the "caption" ?></div>
  12.  
  13.                 <?php the_content('<p class="serif">Read the rest of this entry »</p>'); ?>
  14.  
  15.                 <div class="navigation">
  16.                     <div class="alignleft"><?php previous_image_link() ?></div>
  17.                     <div class="alignright"><?php next_image_link() ?></div>
  18.                 </div>
  19.                 <br class="clear" />
  20.  
  21.                 <p class="postmetadata alt">
  22.                     <small>
  23.                         This entry was posted on <?php the_time('l, F jS, Y') ?> at <?php the_time() ?>
  24.                         and is filed under <?php the_category(', ') ?>.
  25.                         <?php the_taxonomies(); ?>
  26.                         You can follow any responses to this entry through the <?php post_comments_feed_link('RSS 2.0'); ?> feed.
  27.  
  28.                         <?php if (('open' == $post-> comment_status) && ('open' == $post->ping_status)) {
  29.                             // Both Comments and Pings are open ?>
  30.                             You can <a href="#respond">leave a response</a>, or <a href="<?php trackback_url(); ?>" rel="trackback">trackback</a> from your own site.
  31.  
  32.                         <?php } elseif (!('open' == $post-> comment_status) && ('open' == $post->ping_status)) {
  33.                             // Only Pings are Open ?>
  34.                             Responses are currently closed, but you can <a href="<?php trackback_url(); ?> " rel="trackback">trackback</a> from your own site.
  35.  
  36.                         <?php } elseif (('open' == $post-> comment_status) && !('open' == $post->ping_status)) {
  37.                             // Comments are open, Pings are not ?>
  38.                             You can skip to the end and leave a response. Pinging is currently not allowed.
  39.  
  40.                         <?php } elseif (!('open' == $post-> comment_status) && !('open' == $post->ping_status)) {
  41.                             // Neither Comments, nor Pings are open ?>
  42.                             Both comments and pings are currently closed.
  43.  
  44.                         <?php } edit_post_link('Edit this entry.','',''); ?>
  45.  
  46.                     </small>
  47.                 </p>
  48.  
  49.             </div>
  50.  
  51.         </div>
  52.  
  53.     <?php comments_template(); ?>
  54.  
  55.     <?php endwhile; else: ?>
  56.  
  57.         <p>Sorry, no attachments matched your criteria.</p>
  58.  
  59. <?php endif; ?>
  60.  
  61.     </div>
  62.  
  63. <?php get_footer(); ?>
  64.