Make WordPress Core


Ignore:
Timestamp:
02/14/2010 01:12:51 AM (15 years ago)
Author:
dd32
Message:

Fix comment listing, Correct Indentations. See #9015

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-content/themes/twentyten/attachment.php

    r13128 r13129  
    2222                    <div class="entry-content">
    2323                        <div class="entry-attachment">
    24 <?php if ( wp_attachment_is_image( $post->ID ) ) : ?>
    25                         <p class="attachment"><a href="<?php echo wp_get_attachment_url($post->ID); ?>" title="<?php echo esc_attr( get_the_title() ); ?>" rel="attachment"><?php
    26                             echo wp_get_attachment_image( $post->ID, array($content_width, $content_width) ); // max $content_width wide or high.
    27                         ?></a></p>
     24                        <?php if ( wp_attachment_is_image() ) : ?>
     25                            <p class="attachment"><a href="<?php echo wp_get_attachment_url(); ?>" title="<?php echo esc_attr( get_the_title() ); ?>" rel="attachment"><?php
     26                                echo wp_get_attachment_image( $post->ID, array($content_width, $content_width) ); // max $content_width wide or high.
     27                            ?></a></p>
    2828
    29 
    30                 <div id="nav-below" class="navigation">
    31                     <div class="nav-previous"><?php previous_image_link( false ); ?></div>
    32                     <div class="nav-next"><?php next_image_link( false ); ?></div>
    33                 </div><!-- #nav-below -->
    34 <?php else : ?>
    35                         <a href="<?php echo wp_get_attachment_url($post->ID); ?>" title="<?php echo esc_attr( get_the_title($post->ID) ); ?>" rel="attachment"><?php echo basename(get_permalink()); ?></a>
    36 <?php endif; ?>
     29                            <div id="nav-below" class="navigation">
     30                                <div class="nav-previous"><?php previous_image_link( false ); ?></div>
     31                                <div class="nav-next"><?php next_image_link( false ); ?></div>
     32                            </div><!-- #nav-below -->
     33                        <?php else : ?>
     34                            <a href="<?php echo wp_get_attachment_url(); ?>" title="<?php echo esc_attr( get_the_title() ); ?>" rel="attachment"><?php echo basename(get_permalink()); ?></a>
     35                        <?php endif; ?>
    3736                        </div>
    3837                        <div class="entry-caption"><?php if ( !empty($post->post_excerpt) ) the_excerpt(); ?></div>
Note: See TracChangeset for help on using the changeset viewer.