WordPress.org

Make WordPress Core

Changeset 13129


Ignore:
Timestamp:
02/14/10 01:12:51 (6 years ago)
Author:
dd32
Message:

Fix comment listing, Correct Indentations. See #9015

Location:
trunk/wp-content/themes/twentyten
Files:
3 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> 
  • trunk/wp-content/themes/twentyten/comments.php

    r13128 r13129  
    2929 
    3030            <ol class="commentlist"> 
    31                 <?php wp_list_comments( array('callback' => 'twentyten_comment') ); ?> 
     31                <?php wp_list_comments( array('callback' => 'twentyten_list_comment') ); ?> 
    3232            </ol> 
    3333 
  • trunk/wp-content/themes/twentyten/functions.php

    r13128 r13129  
    9999// Make the Visual Editor styles match the theme's styles 
    100100function twentyten_my_editor_style( $url ) { 
    101         if ( !empty($url) ) 
    102             $url .= ','; 
     101    if ( !empty($url) ) 
     102        $url .= ','; 
     103 
    103104    // Change the path here if using sub-directory 
    104105    $url .= trailingslashit( get_stylesheet_directory_uri() ) . 'editor-style.css'; 
Note: See TracChangeset for help on using the changeset viewer.