Make WordPress Core


Ignore:
Timestamp:
10/29/2013 04:28:11 PM (11 years ago)
Author:
lancewillett
Message:

Twenty Fourteen: implement an alternate "slider" view for home page featured content. Props iamtakashi for the design and implementation. Slider JavaScript code adapted from FlexSlider v2.2.0 props WooThemes and mbmufffin. See #25550.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentyfourteen/inc/widgets.php

    r25970 r25979  
    158158
    159159                                    if ( has_post_thumbnail() ) :
    160                                         $featured_image = get_the_post_thumbnail( get_the_ID(), 'featured-thumbnail-formatted' );
     160                                        $post_thumbnail = get_the_post_thumbnail( get_the_ID(), 'post-thumbnail' );
    161161                                    elseif ( $total_images > 0 ) :
    162162                                        $image          = array_shift( $images );
    163                                         $featured_image = wp_get_attachment_image( $image, 'featured-thumbnail-formatted' );
     163                                        $post_thumbnail = wp_get_attachment_image( $image, 'post-thumbnail' );
    164164                                    endif;
    165165
    166                                     if ( ! empty ( $featured_image ) ) :
     166                                    if ( ! empty ( $post_thumbnail ) ) :
    167167                        ?>
    168                                     <a href="<?php the_permalink(); ?>"><?php echo $featured_image; ?></a>
     168                                    <a href="<?php the_permalink(); ?>"><?php echo $post_thumbnail; ?></a>
    169169                                <?php
    170170                                    endif;
Note: See TracChangeset for help on using the changeset viewer.