- Timestamp:
- 08/17/2018 01:50:26 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-content/themes/twentyfifteen/inc/customizer.php
r42343 r43571 23 23 if ( isset( $wp_customize->selective_refresh ) ) { 24 24 $wp_customize->selective_refresh->add_partial( 25 'blogname', array( 25 'blogname', 26 array( 26 27 'selector' => '.site-title a', 27 28 'container_inclusive' => false, … … 30 31 ); 31 32 $wp_customize->selective_refresh->add_partial( 32 'blogdescription', array( 33 'blogdescription', 34 array( 33 35 'selector' => '.site-description', 34 36 'container_inclusive' => false, … … 40 42 // Add color scheme setting and control. 41 43 $wp_customize->add_setting( 42 'color_scheme', array( 44 'color_scheme', 45 array( 43 46 'default' => 'default', 44 47 'sanitize_callback' => 'twentyfifteen_sanitize_color_scheme', … … 48 51 49 52 $wp_customize->add_control( 50 'color_scheme', array( 53 'color_scheme', 54 array( 51 55 'label' => __( 'Base Color Scheme', 'twentyfifteen' ), 52 56 'section' => 'colors', … … 59 63 // Add custom header and sidebar text color setting and control. 60 64 $wp_customize->add_setting( 61 'sidebar_textcolor', array( 65 'sidebar_textcolor', 66 array( 62 67 'default' => $color_scheme[4], 63 68 'sanitize_callback' => 'sanitize_hex_color', … … 68 73 $wp_customize->add_control( 69 74 new WP_Customize_Color_Control( 70 $wp_customize, 'sidebar_textcolor', array( 75 $wp_customize, 76 'sidebar_textcolor', 77 array( 71 78 'label' => __( 'Header and Sidebar Text Color', 'twentyfifteen' ), 72 79 'description' => __( 'Applied to the header on small screens and the sidebar on wide screens.', 'twentyfifteen' ), … … 81 88 // Add custom header and sidebar background color setting and control. 82 89 $wp_customize->add_setting( 83 'header_background_color', array( 90 'header_background_color', 91 array( 84 92 'default' => $color_scheme[1], 85 93 'sanitize_callback' => 'sanitize_hex_color', … … 90 98 $wp_customize->add_control( 91 99 new WP_Customize_Color_Control( 92 $wp_customize, 'header_background_color', array( 100 $wp_customize, 101 'header_background_color', 102 array( 93 103 'label' => __( 'Header and Sidebar Background Color', 'twentyfifteen' ), 94 104 'description' => __( 'Applied to the header on small screens and the sidebar on wide screens.', 'twentyfifteen' ), … … 167 177 */ 168 178 return apply_filters( 169 'twentyfifteen_color_schemes', array( 179 'twentyfifteen_color_schemes', 180 array( 170 181 'default' => array( 171 182 'label' => __( 'Default', 'twentyfifteen' ), … … 372 383 function twentyfifteen_get_color_scheme_css( $colors ) { 373 384 $colors = wp_parse_args( 374 $colors, array( 385 $colors, 386 array( 375 387 'background_color' => '', 376 388 'header_background_color' => '',
Note: See TracChangeset
for help on using the changeset viewer.