- Timestamp:
- 08/17/2018 01:50:26 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-content/themes/twentysixteen/inc/customizer.php
r42343 r43571 32 32 */ 33 33 add_theme_support( 34 'custom-background', apply_filters( 35 'twentysixteen_custom_background_args', array( 34 'custom-background', 35 apply_filters( 36 'twentysixteen_custom_background_args', 37 array( 36 38 'default-color' => $default_background_color, 37 39 ) … … 56 58 */ 57 59 add_theme_support( 58 'custom-header', apply_filters( 59 'twentysixteen_custom_header_args', array( 60 'custom-header', 61 apply_filters( 62 'twentysixteen_custom_header_args', 63 array( 60 64 'default-text-color' => $default_text_color, 61 65 'width' => 1200, … … 117 121 if ( isset( $wp_customize->selective_refresh ) ) { 118 122 $wp_customize->selective_refresh->add_partial( 119 'blogname', array( 123 'blogname', 124 array( 120 125 'selector' => '.site-title a', 121 126 'container_inclusive' => false, … … 124 129 ); 125 130 $wp_customize->selective_refresh->add_partial( 126 'blogdescription', array( 131 'blogdescription', 132 array( 127 133 'selector' => '.site-description', 128 134 'container_inclusive' => false, … … 134 140 // Add color scheme setting and control. 135 141 $wp_customize->add_setting( 136 'color_scheme', array( 142 'color_scheme', 143 array( 137 144 'default' => 'default', 138 145 'sanitize_callback' => 'twentysixteen_sanitize_color_scheme', … … 142 149 143 150 $wp_customize->add_control( 144 'color_scheme', array( 151 'color_scheme', 152 array( 145 153 'label' => __( 'Base Color Scheme', 'twentysixteen' ), 146 154 'section' => 'colors', … … 153 161 // Add page background color setting and control. 154 162 $wp_customize->add_setting( 155 'page_background_color', array( 163 'page_background_color', 164 array( 156 165 'default' => $color_scheme[1], 157 166 'sanitize_callback' => 'sanitize_hex_color', … … 162 171 $wp_customize->add_control( 163 172 new WP_Customize_Color_Control( 164 $wp_customize, 'page_background_color', array( 173 $wp_customize, 174 'page_background_color', 175 array( 165 176 'label' => __( 'Page Background Color', 'twentysixteen' ), 166 177 'section' => 'colors', … … 174 185 // Add link color setting and control. 175 186 $wp_customize->add_setting( 176 'link_color', array( 187 'link_color', 188 array( 177 189 'default' => $color_scheme[2], 178 190 'sanitize_callback' => 'sanitize_hex_color', … … 183 195 $wp_customize->add_control( 184 196 new WP_Customize_Color_Control( 185 $wp_customize, 'link_color', array( 197 $wp_customize, 198 'link_color', 199 array( 186 200 'label' => __( 'Link Color', 'twentysixteen' ), 187 201 'section' => 'colors', … … 192 206 // Add main text color setting and control. 193 207 $wp_customize->add_setting( 194 'main_text_color', array( 208 'main_text_color', 209 array( 195 210 'default' => $color_scheme[3], 196 211 'sanitize_callback' => 'sanitize_hex_color', … … 201 216 $wp_customize->add_control( 202 217 new WP_Customize_Color_Control( 203 $wp_customize, 'main_text_color', array( 218 $wp_customize, 219 'main_text_color', 220 array( 204 221 'label' => __( 'Main Text Color', 'twentysixteen' ), 205 222 'section' => 'colors', … … 210 227 // Add secondary text color setting and control. 211 228 $wp_customize->add_setting( 212 'secondary_text_color', array( 229 'secondary_text_color', 230 array( 213 231 'default' => $color_scheme[4], 214 232 'sanitize_callback' => 'sanitize_hex_color', … … 219 237 $wp_customize->add_control( 220 238 new WP_Customize_Color_Control( 221 $wp_customize, 'secondary_text_color', array( 239 $wp_customize, 240 'secondary_text_color', 241 array( 222 242 'label' => __( 'Secondary Text Color', 'twentysixteen' ), 223 243 'section' => 'colors', … … 290 310 */ 291 311 return apply_filters( 292 'twentysixteen_color_schemes', array( 312 'twentysixteen_color_schemes', 313 array( 293 314 'default' => array( 294 315 'label' => __( 'Default', 'twentysixteen' ), … … 489 510 function twentysixteen_get_color_scheme_css( $colors ) { 490 511 $colors = wp_parse_args( 491 $colors, array( 512 $colors, 513 array( 492 514 'background_color' => '', 493 515 'page_background_color' => '',
Note: See TracChangeset
for help on using the changeset viewer.