Changeset 43793
- Timestamp:
- 10/22/2018 10:37:18 PM (6 years ago)
- Location:
- branches/5.0/src/wp-content/themes/twentyten
- Files:
-
- 2 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/5.0/src/wp-content/themes/twentyten/functions.php
r41756 r43793 75 75 // This theme styles the visual editor with editor-style.css to match the theme style. 76 76 add_editor_style(); 77 78 // Load regular editor styles into the new block-based editor. 79 add_theme_support( 'editor-styles' ); 80 81 // Load default block styles. 82 add_theme_support( 'wp-block-styles' ); 83 84 // Add support for custom color scheme. 85 add_theme_support( 'editor-color-palette', array( 86 array( 87 'name' => __( 'Blue', 'twentyten' ), 88 'slug' => 'blue', 89 'color' => '#0066cc', 90 ), 91 array( 92 'name' => __( 'Black', 'twentyten' ), 93 'slug' => 'black', 94 'color' => '#000', 95 ), 96 array( 97 'name' => __( 'Medium Gray', 'twentyten' ), 98 'slug' => 'medium-gray', 99 'color' => '#666', 100 ), 101 array( 102 'name' => __( 'Light Gray', 'twentyten' ), 103 'slug' => 'light-gray', 104 'color' => '#f1f1f1', 105 ), 106 array( 107 'name' => __( 'White', 'twentyten' ), 108 'slug' => 'white', 109 'color' => '#fff', 110 ), 111 ) ); 77 112 78 113 // Post Format support. You can also use the legacy "gallery" or "asides" (note the plural) categories. … … 613 648 } 614 649 add_filter( 'widget_tag_cloud_args', 'twentyten_widget_tag_cloud_args' ); 650 651 /** 652 * Enqueue scripts and styles for front end. 653 * 654 * @since Twenty Ten 2.6 655 */ 656 function twentyten_scripts_styles() { 657 // Theme block stylesheet. 658 wp_enqueue_style( 'twentyten-block-style', get_template_directory_uri() . '/blocks.css', array(), '20181018' ); 659 } 660 add_action( 'wp_enqueue_scripts', 'twentyten_scripts_styles' ); 661 662 /** 663 * Enqueue editor styles for Gutenberg 664 * 665 * @since Twenty Ten 2.6 666 */ 667 function twentyten_block_editor_styles() { 668 // Block styles. 669 wp_enqueue_style( 'twentyten-block-editor-style', get_template_directory_uri() . '/editor-blocks.css' ); 670 } 671 add_action( 'enqueue_block_editor_assets', 'twentyten_block_editor_styles' ); 672 673
Note: See TracChangeset
for help on using the changeset viewer.