Ticket #25946: 25946.1.diff
File 25946.1.diff, 2.7 KB (added by , 12 years ago) |
---|
-
content-featured-post.php
13 13 <?php 14 14 if ( has_post_thumbnail() ) : 15 15 if ( 'grid' == get_theme_mod( 'featured_content_layout' ) ) 16 the_post_thumbnail( 'post-thumbnail');16 the_post_thumbnail(); 17 17 else 18 the_post_thumbnail( ' post-thumbnail-full-width' );18 the_post_thumbnail( 'twentyfourteen-full-width' ); 19 19 endif; 20 20 ?> 21 21 </a> -
functions.php
66 66 67 67 // Enable support for Post Thumbnails, and declare two sizes. 68 68 add_theme_support( 'post-thumbnails' ); 69 add_image_size( 'post-thumbnail-full-width', 1038, 576, true );70 add_image_size( ' post-thumbnail', 672, 372, true );69 set_post_thumbnail_size( 672, 372, true ); 70 add_image_size( 'twentyfourteen-full-width', 1038, 576, true ); 71 71 72 72 // This theme uses wp_nav_menu() in two locations. 73 73 register_nav_menus( array( -
inc/template-tags.php
174 174 <div class="post-thumbnail"> 175 175 <?php 176 176 if ( ( ! is_active_sidebar( 'sidebar-2' ) || is_page_template( 'page-templates/full-width.php' ) ) && ! wp_is_mobile() ) 177 the_post_thumbnail( ' post-thumbnail-full-width' );177 the_post_thumbnail( 'twentyfourteen-full-width' ); 178 178 else 179 the_post_thumbnail( 'post-thumbnail');179 the_post_thumbnail(); 180 180 ?> 181 181 </div> 182 182 … … 185 185 <a class="post-thumbnail" href="<?php the_permalink(); ?>" rel="<?php the_ID(); ?>"> 186 186 <?php 187 187 if ( ( ! is_active_sidebar( 'sidebar-2' ) || is_page_template( 'page-templates/full-width.php' ) ) && ! wp_is_mobile() ) 188 the_post_thumbnail( ' post-thumbnail-full-width' );188 the_post_thumbnail( 'twentyfourteen-full-width' ); 189 189 else 190 the_post_thumbnail( 'post-thumbnail');190 the_post_thumbnail(); 191 191 ?> 192 192 </a> 193 193 -
inc/widgets.php
158 158 $total_images = count( $images ); 159 159 160 160 if ( has_post_thumbnail() ) : 161 $post_thumbnail = get_the_post_thumbnail( get_the_ID(), 'post-thumbnail');161 $post_thumbnail = get_the_post_thumbnail(); 162 162 elseif ( $total_images > 0 ) : 163 163 $image = array_shift( $images ); 164 164 $post_thumbnail = wp_get_attachment_image( $image, 'post-thumbnail' );