- Timestamp:
- 12/16/2014 08:32:03 PM (11 years ago)
- Location:
- branches/4.1
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
src/wp-content/themes/twentyfifteen/inc/customizer.php (modified) (9 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/4.1
-
branches/4.1/src/wp-content/themes/twentyfifteen/inc/customizer.php
r30814 r30924 34 34 35 35 $wp_customize->add_control( 'color_scheme', array( 36 'label' => esc_html__( 'Base Color Scheme', 'twentyfifteen' ),36 'label' => __( 'Base Color Scheme', 'twentyfifteen' ), 37 37 'section' => 'colors', 38 38 'type' => 'select', … … 49 49 50 50 $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'sidebar_textcolor', array( 51 'label' => esc_html__( 'Header and Sidebar Text Color', 'twentyfifteen' ),52 'description' => esc_html__( 'Applied to the header on small screens and the sidebar on wide screens.', 'twentyfifteen' ),51 'label' => __( 'Header and Sidebar Text Color', 'twentyfifteen' ), 52 'description' => __( 'Applied to the header on small screens and the sidebar on wide screens.', 'twentyfifteen' ), 53 53 'section' => 'colors', 54 54 ) ) ); … … 65 65 66 66 $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'header_background_color', array( 67 'label' => esc_html__( 'Header and Sidebar Background Color', 'twentyfifteen' ),68 'description' => esc_html__( 'Applied to the header on small screens and the sidebar on wide screens.', 'twentyfifteen' ),67 'label' => __( 'Header and Sidebar Background Color', 'twentyfifteen' ), 68 'description' => __( 'Applied to the header on small screens and the sidebar on wide screens.', 'twentyfifteen' ), 69 69 'section' => 'colors', 70 70 ) ) ); 71 71 72 72 // Add an additional description to the header image section. 73 $wp_customize->get_section( 'header_image' )->description = esc_html__( 'Applied to the header on small screens and the sidebar on wide screens.', 'twentyfifteen' );73 $wp_customize->get_section( 'header_image' )->description = __( 'Applied to the header on small screens and the sidebar on wide screens.', 'twentyfifteen' ); 74 74 } 75 75 add_action( 'customize_register', 'twentyfifteen_customize_register', 11 ); … … 95 95 return apply_filters( 'twentyfifteen_color_schemes', array( 96 96 'default' => array( 97 'label' => esc_html__( 'Default', 'twentyfifteen' ),97 'label' => __( 'Default', 'twentyfifteen' ), 98 98 'colors' => array( 99 99 '#f1f1f1', … … 106 106 ), 107 107 'dark' => array( 108 'label' => esc_html__( 'Dark', 'twentyfifteen' ),108 'label' => __( 'Dark', 'twentyfifteen' ), 109 109 'colors' => array( 110 110 '#111111', … … 117 117 ), 118 118 'yellow' => array( 119 'label' => esc_html__( 'Yellow', 'twentyfifteen' ),119 'label' => __( 'Yellow', 'twentyfifteen' ), 120 120 'colors' => array( 121 121 '#f4ca16', … … 128 128 ), 129 129 'pink' => array( 130 'label' => esc_html__( 'Pink', 'twentyfifteen' ),130 'label' => __( 'Pink', 'twentyfifteen' ), 131 131 'colors' => array( 132 132 '#ffe5d1', … … 139 139 ), 140 140 'purple' => array( 141 'label' => esc_html__( 'Purple', 'twentyfifteen' ),141 'label' => __( 'Purple', 'twentyfifteen' ), 142 142 'colors' => array( 143 143 '#674970', … … 150 150 ), 151 151 'blue' => array( 152 'label' => esc_html__( 'Blue', 'twentyfifteen' ),152 'label' => __( 'Blue', 'twentyfifteen' ), 153 153 'colors' => array( 154 154 '#e9f2f9',
Note: See TracChangeset
for help on using the changeset viewer.