- Timestamp:
- 12/14/2018 01:58:53 AM (7 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/5.0 merged: 43796
- Property svn:mergeinfo changed
-
trunk/src/wp-content/themes/twentythirteen/functions.php
r43571 r44142 76 76 */ 77 77 add_editor_style( array( 'css/editor-style.css', 'genericons/genericons.css', twentythirteen_fonts_url() ) ); 78 79 // Load regular editor styles into the new block-based editor. 80 add_theme_support( 'editor-styles' ); 81 82 // Load default block styles. 83 add_theme_support( 'wp-block-styles' ); 84 85 // Add support for full and wide align images. 86 add_theme_support( 'align-wide' ); 87 88 // Add support for custom color scheme. 89 add_theme_support( 90 'editor-color-palette', 91 array( 92 array( 93 'name' => __( 'Dark Gray', 'twentythirteen' ), 94 'slug' => 'dark-gray', 95 'color' => '#141412', 96 ), 97 array( 98 'name' => __( 'Red', 'twentythirteen' ), 99 'slug' => 'red', 100 'color' => '#bc360a', 101 ), 102 array( 103 'name' => __( 'Medium Orange', 'twentythirteen' ), 104 'slug' => 'medium-orange', 105 'color' => '#db572f', 106 ), 107 array( 108 'name' => __( 'Light Orange', 'twentythirteen' ), 109 'slug' => 'light-orange', 110 'color' => '#ea9629', 111 ), 112 array( 113 'name' => __( 'Yellow', 'twentythirteen' ), 114 'slug' => 'yellow', 115 'color' => '#fbca3c', 116 ), 117 array( 118 'name' => __( 'White', 'twentythirteen' ), 119 'slug' => 'white', 120 'color' => '#fff', 121 ), 122 array( 123 'name' => __( 'Dark Brown', 'twentythirteen' ), 124 'slug' => 'dark-brown', 125 'color' => '#220e10', 126 ), 127 array( 128 'name' => __( 'Medium Brown', 'twentythirteen' ), 129 'slug' => 'medium-brown', 130 'color' => '#722d19', 131 ), 132 array( 133 'name' => __( 'Light Brown', 'twentythirteen' ), 134 'slug' => 'light-brown', 135 'color' => '#eadaa6', 136 ), 137 array( 138 'name' => __( 'Beige', 'twentythirteen' ), 139 'slug' => 'beige', 140 'color' => '#e8e5ce', 141 ), 142 array( 143 'name' => __( 'Off-white', 'twentythirteen' ), 144 'slug' => 'off-white', 145 'color' => '#f7f5e7', 146 ), 147 ) 148 ); 78 149 79 150 // Adds RSS feed links to <head> for posts and comments. … … 209 280 wp_enqueue_style( 'twentythirteen-style', get_stylesheet_uri(), array(), '2013-07-18' ); 210 281 282 // Theme block stylesheet. 283 wp_enqueue_style( 'twentythirteen-block-style', get_template_directory_uri() . '/css/blocks.css', array( 'twentythirteen-style' ), '2018-10-18' ); 284 211 285 // Loads the Internet Explorer specific stylesheet. 212 286 wp_enqueue_style( 'twentythirteen-ie', get_template_directory_uri() . '/css/ie.css', array( 'twentythirteen-style' ), '2013-07-18' ); … … 239 313 } 240 314 add_filter( 'wp_resource_hints', 'twentythirteen_resource_hints', 10, 2 ); 315 316 /** 317 * Enqueue editor styles for Gutenberg 318 * 319 * @since Twenty Thirteen 2.5 320 */ 321 function twentythirteen_block_editor_styles() { 322 // Block styles. 323 wp_enqueue_style( 'twentythirteen-block-editor-style', get_template_directory_uri() . '/css/editor-blocks.css' ); 324 // Add custom fonts. 325 wp_enqueue_style( 'twentythirteen-fonts', twentythirteen_fonts_url(), array(), null ); 326 } 327 add_action( 'enqueue_block_editor_assets', 'twentythirteen_block_editor_styles' ); 241 328 242 329 /**
Note: See TracChangeset
for help on using the changeset viewer.