- Timestamp:
- 10/07/2025 11:32:04 PM (10 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-content/themes/twentyfifteen/inc/customizer.php
r60521 r60913 773 773 * Outputs an Underscore template for generating CSS for the color scheme. 774 774 * 775 * The template generates the cssdynamically for instant display in the Customizer775 * The template generates the CSS dynamically for instant display in the Customizer 776 776 * preview. 777 777 * 778 778 * @since Twenty Fifteen 1.0 779 * @since Twenty Fifteen 4.1 Added `wp_print_inline_script_tag()` support. 779 780 */ 780 781 function twentyfifteen_color_scheme_css_template() { … … 793 794 'meta_box_background_color' => '{{ data.meta_box_background_color }}', 794 795 ); 795 ?> 796 <script type="text/html" id="tmpl-twentyfifteen-color-scheme"> 797 <?php echo twentyfifteen_get_color_scheme_css( $colors ); ?> 798 </script> 799 <?php 796 797 $css_template = twentyfifteen_get_color_scheme_css( $colors ); 798 799 if ( function_exists( 'wp_print_inline_script_tag' ) ) { 800 wp_print_inline_script_tag( 801 $css_template, 802 array( 803 'type' => 'text/html', 804 'id' => 'tmpl-twentyfifteen-color-scheme', 805 ) 806 ); 807 } else { 808 echo '<script type="text/html" id="tmpl-twentyfifteen-color-scheme">' . $css_template . '</script>'; 809 } 800 810 } 801 811 add_action( 'customize_controls_print_footer_scripts', 'twentyfifteen_color_scheme_css_template' );
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)