Changeset 20225 for trunk/wp-content/themes/twentyeleven/showcase.php
- Timestamp:
- 03/20/2012 09:32:42 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-content/themes/twentyeleven/showcase.php
r19379 r20225 67 67 $counter_slider = 0; 68 68 69 $header_image_width = get_theme_support( 'custom-header', 'width' ); 70 $header_image_height = get_theme_support( 'custom-header', 'height' ); 69 71 ?> 70 72 … … 90 92 91 93 // Hang on. Let's check this here image out. 92 $image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), array( HEADER_IMAGE_WIDTH, HEADER_IMAGE_WIDTH) );94 $image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), array( $header_image_width, $header_image_width ) ); 93 95 94 96 // Is it bigger than or equal to our header? 95 if ( $image[1] >= HEADER_IMAGE_WIDTH) {97 if ( $image[1] >= $header_image_width ) { 96 98 // If bigger, let's add a BIGGER class. It's EXTRA classy now. 97 99 $feature_class = 'feature-image large'; … … 108 110 */ 109 111 if ( has_post_thumbnail() ) { 110 if ( $image[1] >= HEADER_IMAGE_WIDTH)112 if ( $image[1] >= $header_image_width ) 111 113 $thumbnail_size = 'large-feature'; 112 114 else
Note: See TracChangeset
for help on using the changeset viewer.