WordPress.org

Make WordPress Core


Ignore:
Timestamp:
02/14/2010 09:39:20 PM (10 years ago)
Author:
dd32
Message:

Twentyten whitespace cleanup, Wrap functions in function_exists() call to allow child themes to override them. Props sivel. See #9015

File:
1 edited

Legend:

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

    r13147 r13157  
    2222                    <div class="entry-content">
    2323                        <div class="entry-attachment">
    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>
     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                             <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; ?>
     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; ?>
    3636                        </div>
    3737                        <div class="entry-caption"><?php if ( !empty($post->post_excerpt) ) the_excerpt(); ?></div>
    3838
    39                         <?php the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'twentyten' )  ); ?>
    40                         <?php wp_link_pages( 'before=<div class="page-link">' . __( 'Pages:', 'twentyten' ) . '&after=</div>' ); ?>
     39<?php the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'twentyten' )  ); ?>
     40<?php wp_link_pages( 'before=<div class="page-link">' . __( 'Pages:', 'twentyten' ) . '&after=</div>' ); ?>
    4141
    4242                    </div><!-- .entry-content -->
Note: See TracChangeset for help on using the changeset viewer.