Changes from trunk/wp-content/themes/twentyten/header.php at r17300 to branches/3.0/wp-content/themes/twentyten/header.php at r16628
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.0/wp-content/themes/twentyten/header.php
r17300 r16628 68 68 <?php 69 69 // Check if this is a post or page, if it has a thumbnail, and if it's a big one 70 if ( is_singular() && current_theme_supports( 'post-thumbnails' ) &&70 if ( is_singular() && 71 71 has_post_thumbnail( $post->ID ) && 72 72 ( /* $src, $width, $height */ $image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'post-thumbnail' ) ) && 73 73 $image[1] >= HEADER_IMAGE_WIDTH ) : 74 74 // Houston, we have a new header image! 75 echo get_the_post_thumbnail( $post->ID );76 else if ( get_header_image() ): ?>75 echo get_the_post_thumbnail( $post->ID, 'post-thumbnail' ); 76 else : ?> 77 77 <img src="<?php header_image(); ?>" width="<?php echo HEADER_IMAGE_WIDTH; ?>" height="<?php echo HEADER_IMAGE_HEIGHT; ?>" alt="" /> 78 78 <?php endif; ?>
Note: See TracChangeset
for help on using the changeset viewer.