Changeset 44139
- Timestamp:
- 12/14/2018 01:50:30 AM (6 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
- 2 copied
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/5.0 merged: 43794
- Property svn:mergeinfo changed
-
trunk/src/wp-content/themes/twentyeleven/functions.php
r43571 r44139 83 83 // This theme styles the visual editor with editor-style.css to match the theme style. 84 84 add_editor_style(); 85 86 // Load regular editor styles into the new block-based editor. 87 add_theme_support( 'editor-styles' ); 88 89 // Load default block styles. 90 add_theme_support( 'wp-block-styles' ); 91 92 // Add support for custom color scheme. 93 add_theme_support( 94 'editor-color-palette', 95 array( 96 array( 97 'name' => __( 'Blue', 'twentyeleven' ), 98 'slug' => 'blue', 99 'color' => '#1982d1', 100 ), 101 array( 102 'name' => __( 'Black', 'twentyeleven' ), 103 'slug' => 'black', 104 'color' => '#000', 105 ), 106 array( 107 'name' => __( 'Dark Gray', 'twentyeleven' ), 108 'slug' => 'dark-gray', 109 'color' => '#373737', 110 ), 111 array( 112 'name' => __( 'Medium Gray', 'twentyeleven' ), 113 'slug' => 'medium-gray', 114 'color' => '#666', 115 ), 116 array( 117 'name' => __( 'Light Gray', 'twentyeleven' ), 118 'slug' => 'light-gray', 119 'color' => '#e2e2e2', 120 ), 121 array( 122 'name' => __( 'White', 'twentyeleven' ), 123 'slug' => 'white', 124 'color' => '#fff', 125 ), 126 ) 127 ); 85 128 86 129 // Load up our theme options page and related code. … … 240 283 endif; // twentyeleven_setup 241 284 285 /** 286 * Enqueue scripts and styles for front end. 287 * 288 * @since Twenty Eleven 2.9 289 */ 290 function twentyeleven_scripts_styles() { 291 // Theme block stylesheet. 292 wp_enqueue_style( 'twentyeleven-block-style', get_template_directory_uri() . '/blocks.css', array(), '20181018' ); 293 } 294 add_action( 'wp_enqueue_scripts', 'twentyeleven_scripts_styles' ); 295 296 /** 297 * Enqueue editor styles for Gutenberg 298 * 299 * @since Twenty Eleven 2.9 300 */ 301 function twentyeleven_block_editor_styles() { 302 // Block styles. 303 wp_enqueue_style( 'twentyeleven-block-editor-style', get_template_directory_uri() . '/editor-blocks.css' ); 304 } 305 add_action( 'enqueue_block_editor_assets', 'twentyeleven_block_editor_styles' ); 306 242 307 if ( ! function_exists( 'twentyeleven_header_style' ) ) : 243 308 /**
Note: See TracChangeset
for help on using the changeset viewer.