Make WordPress Core


Ignore:
Timestamp:
03/27/2008 12:13:14 AM (18 years ago)
Author:
matt
Message:

Make calls in image.php template more explicit to allow for easier hacking and adaptation.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-content/themes/default/image.php

    r7520 r7541  
    88            <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>
    99            <div class="entry">
    10                 <p class="attachment"><?php echo wp_get_attachment_link(0, 'medium', false); ?></p>
     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>
    1112
    1213                <?php the_content('<p class="serif">Read the rest of this entry &raquo;</p>'); ?>
    13 
    14                 <?php wp_link_pages(array('before' => '<p><strong>Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>
    1514
    1615                <div class="navigation">
Note: See TracChangeset for help on using the changeset viewer.