- Timestamp:
- 10/29/2013 04:28:11 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-content/themes/twentyfourteen/functions.php
r25971 r25979 69 69 70 70 // Add several sizes for Post Thumbnails. 71 add_image_size( 'post-thumbnail-slider', 1038, 576, true ); 71 72 add_image_size( 'post-thumbnail-grid', 672, 372, true ); 72 73 add_image_size( 'post-thumbnail', 672, 0 ); … … 220 221 */ 221 222 function twentyfourteen_scripts() { 222 223 223 // Add Lato font, used in the main stylesheet. 224 wp_enqueue_style( 'twentyfourteen-lato' );224 wp_enqueue_style( 'twentyfourteen-lato', twentyfourteen_font_url(), array(), null ); 225 225 226 226 // Add Genericons font, used in the main stylesheet. … … 239 239 wp_enqueue_script( 'jquery-masonry' ); 240 240 241 if ( 'slider' == get_theme_mod( 'featured_content_layout' ) ) 242 wp_enqueue_script( 'twentyfourteen-slider', get_template_directory_uri() . '/js/slider.js', array( 'jquery' ), '20131028', true ); 243 241 244 wp_enqueue_script( 'twentyfourteen-script', get_template_directory_uri() . '/js/functions.js', array( 'jquery' ), '20131011', true ); 242 243 // Add Lato font used in the main stylesheet.244 wp_enqueue_style( 'twentyfourteen-lato', twentyfourteen_font_url(), array(), null );245 245 } 246 246 add_action( 'wp_enqueue_scripts', 'twentyfourteen_scripts' ); … … 366 366 * 5. Presence of footer widgets. 367 367 * 6. Single views. 368 * 7. Featured content layout. 368 369 * 369 370 * @since Twenty Fourteen 1.0 … … 396 397 $classes[] = 'singular'; 397 398 399 if ( is_front_page() && 'slider' == get_theme_mod( 'featured_content_layout' ) ) 400 $classes[] = 'slider'; 401 elseif ( is_front_page() ) 402 $classes[] = 'grid'; 403 398 404 return $classes; 399 405 }
Note: See TracChangeset
for help on using the changeset viewer.