Changeset 44144
- Timestamp:
- 12/14/2018 02:03:09 AM (6 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
- 2 copied
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/5.0 merged: 43797
- Property svn:mergeinfo changed
-
trunk/src/wp-content/themes/twentyfourteen/functions.php
r43571 r44144 70 70 // This theme styles the visual editor to resemble the theme style. 71 71 add_editor_style( array( 'css/editor-style.css', twentyfourteen_font_url(), 'genericons/genericons.css' ) ); 72 73 // Load regular editor styles into the new block-based editor. 74 add_theme_support( 'editor-styles' ); 75 76 // Load default block styles. 77 add_theme_support( 'wp-block-styles' ); 78 79 // Add support for custom color scheme. 80 add_theme_support( 81 'editor-color-palette', 82 array( 83 array( 84 'name' => __( 'Green', 'twentyfourteen' ), 85 'slug' => 'green', 86 'color' => '#24890d', 87 ), 88 array( 89 'name' => __( 'Black', 'twentyfourteen' ), 90 'slug' => 'black', 91 'color' => '#000', 92 ), 93 array( 94 'name' => __( 'Dark Gray', 'twentyfourteen' ), 95 'slug' => 'dark-gray', 96 'color' => '#2b2b2b', 97 ), 98 array( 99 'name' => __( 'Medium Gray', 'twentyfourteen' ), 100 'slug' => 'medium-gray', 101 'color' => '#767676', 102 ), 103 array( 104 'name' => __( 'Light Gray', 'twentyfourteen' ), 105 'slug' => 'light-gray', 106 'color' => '#f5f5f5', 107 ), 108 array( 109 'name' => __( 'White', 'twentyfourteen' ), 110 'slug' => 'white', 111 'color' => '#fff', 112 ), 113 ) 114 ); 72 115 73 116 // Add RSS feed links to <head> for posts and comments. … … 273 316 wp_enqueue_style( 'twentyfourteen-style', get_stylesheet_uri() ); 274 317 318 // Theme block stylesheet. 319 wp_enqueue_style( 'twentyfourteen-block-style', get_template_directory_uri() . '/css/blocks.css', array( 'twentyfourteen-style' ), '20181018' ); 320 275 321 // Load the Internet Explorer specific stylesheet. 276 322 wp_enqueue_style( 'twentyfourteen-ie', get_template_directory_uri() . '/css/ie.css', array( 'twentyfourteen-style' ), '20131205' ); … … 339 385 } 340 386 add_filter( 'wp_resource_hints', 'twentyfourteen_resource_hints', 10, 2 ); 387 388 /** 389 * Enqueue editor styles for Gutenberg 390 * 391 * @since Twenty Fourteen 2.3 392 */ 393 function twentyfourteen_block_editor_styles() { 394 // Block styles. 395 wp_enqueue_style( 'twentyfourteen-block-editor-style', get_template_directory_uri() . '/css/editor-blocks.css' ); 396 // Add custom fonts. 397 wp_enqueue_style( 'twentyfourteen-fonts', twentyfourteen_font_url(), array(), null ); 398 } 399 add_action( 'enqueue_block_editor_assets', 'twentyfourteen_block_editor_styles' ); 341 400 342 401 if ( ! function_exists( 'twentyfourteen_the_attached_image' ) ) :
Note: See TracChangeset
for help on using the changeset viewer.