Make WordPress Core


Ignore:
Timestamp:
11/07/2013 08:24:24 PM (11 years ago)
Author:
lancewillett
Message:

Twenty Fourteen: move all controls for managing Featured Content to the Customizer. Also implement smart fallbacks to not using a custom tag with the "featured" tag and sticky posts. Props obenland and celloexpressions, see #25549.

File:
1 edited

Legend:

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

    r26026 r26037  
    240240        wp_enqueue_script( 'jquery-masonry' );
    241241
    242     if ( 'slider' == get_theme_mod( 'featured_content_layout' ) )
     242    if ( is_front_page() && 'slider' == get_theme_mod( 'featured_content_layout' ) )
    243243        wp_enqueue_script( 'twentyfourteen-slider', get_template_directory_uri() . '/js/slider.js', array( 'jquery' ), '20131028', true );
    244244
Note: See TracChangeset for help on using the changeset viewer.