- File:
-
- 1 edited
-
trunk/wp-content/themes/twentyeleven/showcase.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-content/themes/twentyeleven/showcase.php
r19379 r20983 67 67 $counter_slider = 0; 68 68 69 ?> 69 // Compatibility with versions of WordPress prior to 3.4. 70 if ( function_exists( 'get_custom_header' ) ) 71 $header_image_width = get_theme_support( 'custom-header', 'width' ); 72 else 73 $header_image_width = HEADER_IMAGE_WIDTH; 74 ?> 70 75 71 76 <div class="featured-posts"> … … 90 95 91 96 // 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) );97 $image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), array( $header_image_width, $header_image_width ) ); 93 98 94 99 // Is it bigger than or equal to our header? 95 if ( $image[1] >= HEADER_IMAGE_WIDTH) {100 if ( $image[1] >= $header_image_width ) { 96 101 // If bigger, let's add a BIGGER class. It's EXTRA classy now. 97 102 $feature_class = 'feature-image large'; … … 108 113 */ 109 114 if ( has_post_thumbnail() ) { 110 if ( $image[1] >= HEADER_IMAGE_WIDTH)115 if ( $image[1] >= $header_image_width ) 111 116 $thumbnail_size = 'large-feature'; 112 117 else
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)