mirror of
https://github.com/woocommerce/storefront.git
synced 2025-08-21 04:11:59 +08:00
Fix merge conflict
This commit is contained in:
commit
efe46e8cc6
17 changed files with 712 additions and 540 deletions
|
@ -39,24 +39,24 @@ if ( ! class_exists( 'Storefront_Customizer' ) ) :
|
|||
public static function get_storefront_default_setting_values() {
|
||||
return apply_filters(
|
||||
'storefront_setting_default_values', $args = array(
|
||||
'storefront_heading_color' => '#333333',
|
||||
'storefront_text_color' => '#6d6d6d',
|
||||
'storefront_accent_color' => '#96588a',
|
||||
'storefront_hero_heading_color' => '#000000',
|
||||
'storefront_hero_text_color' => '#000000',
|
||||
'storefront_header_background_color' => '#ffffff',
|
||||
'storefront_header_text_color' => '#404040',
|
||||
'storefront_header_link_color' => '#333333',
|
||||
'storefront_footer_background_color' => '#f0f0f0',
|
||||
'storefront_footer_heading_color' => '#333333',
|
||||
'storefront_footer_text_color' => '#6d6d6d',
|
||||
'storefront_footer_link_color' => '#333333',
|
||||
'storefront_button_background_color' => '#eeeeee',
|
||||
'storefront_button_text_color' => '#333333',
|
||||
'storefront_heading_color' => '#333333',
|
||||
'storefront_text_color' => '#6d6d6d',
|
||||
'storefront_accent_color' => '#96588a',
|
||||
'storefront_hero_heading_color' => '#000000',
|
||||
'storefront_hero_text_color' => '#000000',
|
||||
'storefront_header_background_color' => '#ffffff',
|
||||
'storefront_header_text_color' => '#404040',
|
||||
'storefront_header_link_color' => '#333333',
|
||||
'storefront_footer_background_color' => '#f0f0f0',
|
||||
'storefront_footer_heading_color' => '#333333',
|
||||
'storefront_footer_text_color' => '#6d6d6d',
|
||||
'storefront_footer_link_color' => '#333333',
|
||||
'storefront_button_background_color' => '#eeeeee',
|
||||
'storefront_button_text_color' => '#333333',
|
||||
'storefront_button_alt_background_color' => '#333333',
|
||||
'storefront_button_alt_text_color' => '#ffffff',
|
||||
'storefront_layout' => 'right',
|
||||
'background_color' => 'ffffff',
|
||||
'storefront_button_alt_text_color' => '#ffffff',
|
||||
'storefront_layout' => 'right',
|
||||
'background_color' => 'ffffff',
|
||||
)
|
||||
);
|
||||
}
|
||||
|
@ -114,21 +114,21 @@ if ( ! class_exists( 'Storefront_Customizer' ) ) :
|
|||
public function customize_register( $wp_customize ) {
|
||||
|
||||
// Move background color setting alongside background image.
|
||||
$wp_customize->get_control( 'background_color' )->section = 'background_image';
|
||||
$wp_customize->get_control( 'background_color' )->priority = 20;
|
||||
$wp_customize->get_control( 'background_color' )->section = 'background_image';
|
||||
$wp_customize->get_control( 'background_color' )->priority = 20;
|
||||
|
||||
// Change background image section title & priority.
|
||||
$wp_customize->get_section( 'background_image' )->title = __( 'Background', 'storefront' );
|
||||
$wp_customize->get_section( 'background_image' )->priority = 30;
|
||||
$wp_customize->get_section( 'background_image' )->title = __( 'Background', 'storefront' );
|
||||
$wp_customize->get_section( 'background_image' )->priority = 30;
|
||||
|
||||
// Change header image section title & priority.
|
||||
$wp_customize->get_section( 'header_image' )->title = __( 'Header', 'storefront' );
|
||||
$wp_customize->get_section( 'header_image' )->priority = 25;
|
||||
$wp_customize->get_section( 'header_image' )->title = __( 'Header', 'storefront' );
|
||||
$wp_customize->get_section( 'header_image' )->priority = 25;
|
||||
|
||||
// Selective refresh.
|
||||
if ( function_exists( 'add_partial' ) ) {
|
||||
$wp_customize->get_setting( 'blogname' )->transport = 'postMessage';
|
||||
$wp_customize->get_setting( 'blogdescription' )->transport = 'postMessage';
|
||||
$wp_customize->get_setting( 'blogname' )->transport = 'postMessage';
|
||||
$wp_customize->get_setting( 'blogdescription' )->transport = 'postMessage';
|
||||
|
||||
$wp_customize->selective_refresh->add_partial(
|
||||
'custom_logo', array(
|
||||
|
@ -167,8 +167,8 @@ if ( ! class_exists( 'Storefront_Customizer' ) ) :
|
|||
*/
|
||||
$wp_customize->add_section(
|
||||
'storefront_typography', array(
|
||||
'title' => __( 'Typography', 'storefront' ),
|
||||
'priority' => 45,
|
||||
'title' => __( 'Typography', 'storefront' ),
|
||||
'priority' => 45,
|
||||
)
|
||||
);
|
||||
|
||||
|
@ -177,18 +177,18 @@ if ( ! class_exists( 'Storefront_Customizer' ) ) :
|
|||
*/
|
||||
$wp_customize->add_setting(
|
||||
'storefront_heading_color', array(
|
||||
'default' => apply_filters( 'storefront_default_heading_color', '#484c51' ),
|
||||
'sanitize_callback' => 'sanitize_hex_color',
|
||||
'default' => apply_filters( 'storefront_default_heading_color', '#484c51' ),
|
||||
'sanitize_callback' => 'sanitize_hex_color',
|
||||
)
|
||||
);
|
||||
|
||||
$wp_customize->add_control(
|
||||
new WP_Customize_Color_Control(
|
||||
$wp_customize, 'storefront_heading_color', array(
|
||||
'label' => __( 'Heading color', 'storefront' ),
|
||||
'section' => 'storefront_typography',
|
||||
'settings' => 'storefront_heading_color',
|
||||
'priority' => 20,
|
||||
'label' => __( 'Heading color', 'storefront' ),
|
||||
'section' => 'storefront_typography',
|
||||
'settings' => 'storefront_heading_color',
|
||||
'priority' => 20,
|
||||
)
|
||||
)
|
||||
);
|
||||
|
@ -198,18 +198,18 @@ if ( ! class_exists( 'Storefront_Customizer' ) ) :
|
|||
*/
|
||||
$wp_customize->add_setting(
|
||||
'storefront_text_color', array(
|
||||
'default' => apply_filters( 'storefront_default_text_color', '#43454b' ),
|
||||
'sanitize_callback' => 'sanitize_hex_color',
|
||||
'default' => apply_filters( 'storefront_default_text_color', '#43454b' ),
|
||||
'sanitize_callback' => 'sanitize_hex_color',
|
||||
)
|
||||
);
|
||||
|
||||
$wp_customize->add_control(
|
||||
new WP_Customize_Color_Control(
|
||||
$wp_customize, 'storefront_text_color', array(
|
||||
'label' => __( 'Text color', 'storefront' ),
|
||||
'section' => 'storefront_typography',
|
||||
'settings' => 'storefront_text_color',
|
||||
'priority' => 30,
|
||||
'label' => __( 'Text color', 'storefront' ),
|
||||
'section' => 'storefront_typography',
|
||||
'settings' => 'storefront_text_color',
|
||||
'priority' => 30,
|
||||
)
|
||||
)
|
||||
);
|
||||
|
@ -219,18 +219,18 @@ if ( ! class_exists( 'Storefront_Customizer' ) ) :
|
|||
*/
|
||||
$wp_customize->add_setting(
|
||||
'storefront_accent_color', array(
|
||||
'default' => apply_filters( 'storefront_default_accent_color', '#96588a' ),
|
||||
'sanitize_callback' => 'sanitize_hex_color',
|
||||
'default' => apply_filters( 'storefront_default_accent_color', '#96588a' ),
|
||||
'sanitize_callback' => 'sanitize_hex_color',
|
||||
)
|
||||
);
|
||||
|
||||
$wp_customize->add_control(
|
||||
new WP_Customize_Color_Control(
|
||||
$wp_customize, 'storefront_accent_color', array(
|
||||
'label' => __( 'Link / accent color', 'storefront' ),
|
||||
'section' => 'storefront_typography',
|
||||
'settings' => 'storefront_accent_color',
|
||||
'priority' => 40,
|
||||
'label' => __( 'Link / accent color', 'storefront' ),
|
||||
'section' => 'storefront_typography',
|
||||
'settings' => 'storefront_accent_color',
|
||||
'priority' => 40,
|
||||
)
|
||||
)
|
||||
);
|
||||
|
@ -240,19 +240,19 @@ if ( ! class_exists( 'Storefront_Customizer' ) ) :
|
|||
*/
|
||||
$wp_customize->add_setting(
|
||||
'storefront_hero_heading_color', array(
|
||||
'default' => apply_filters( 'storefront_default_hero_heading_color', '#000000' ),
|
||||
'sanitize_callback' => 'sanitize_hex_color',
|
||||
'default' => apply_filters( 'storefront_default_hero_heading_color', '#000000' ),
|
||||
'sanitize_callback' => 'sanitize_hex_color',
|
||||
)
|
||||
);
|
||||
|
||||
$wp_customize->add_control(
|
||||
new WP_Customize_Color_Control(
|
||||
$wp_customize, 'storefront_hero_heading_color', array(
|
||||
'label' => __( 'Hero heading color', 'storefront' ),
|
||||
'section' => 'storefront_typography',
|
||||
'settings' => 'storefront_hero_heading_color',
|
||||
'priority' => 50,
|
||||
'active_callback' => array( $this, 'is_homepage_template' ),
|
||||
'label' => __( 'Hero heading color', 'storefront' ),
|
||||
'section' => 'storefront_typography',
|
||||
'settings' => 'storefront_hero_heading_color',
|
||||
'priority' => 50,
|
||||
'active_callback' => array( $this, 'is_homepage_template' ),
|
||||
)
|
||||
)
|
||||
);
|
||||
|
@ -262,19 +262,19 @@ if ( ! class_exists( 'Storefront_Customizer' ) ) :
|
|||
*/
|
||||
$wp_customize->add_setting(
|
||||
'storefront_hero_text_color', array(
|
||||
'default' => apply_filters( 'storefront_default_hero_text_color', '#000000' ),
|
||||
'sanitize_callback' => 'sanitize_hex_color',
|
||||
'default' => apply_filters( 'storefront_default_hero_text_color', '#000000' ),
|
||||
'sanitize_callback' => 'sanitize_hex_color',
|
||||
)
|
||||
);
|
||||
|
||||
$wp_customize->add_control(
|
||||
new WP_Customize_Color_Control(
|
||||
$wp_customize, 'storefront_hero_text_color', array(
|
||||
'label' => __( 'Hero text color', 'storefront' ),
|
||||
'section' => 'storefront_typography',
|
||||
'settings' => 'storefront_hero_text_color',
|
||||
'priority' => 60,
|
||||
'active_callback' => array( $this, 'is_homepage_template' ),
|
||||
'label' => __( 'Hero text color', 'storefront' ),
|
||||
'section' => 'storefront_typography',
|
||||
'settings' => 'storefront_hero_text_color',
|
||||
'priority' => 60,
|
||||
'active_callback' => array( $this, 'is_homepage_template' ),
|
||||
)
|
||||
)
|
||||
);
|
||||
|
@ -282,10 +282,10 @@ if ( ! class_exists( 'Storefront_Customizer' ) ) :
|
|||
$wp_customize->add_control(
|
||||
new Arbitrary_Storefront_Control(
|
||||
$wp_customize, 'storefront_header_image_heading', array(
|
||||
'section' => 'header_image',
|
||||
'type' => 'heading',
|
||||
'label' => __( 'Header background image', 'storefront' ),
|
||||
'priority' => 6,
|
||||
'section' => 'header_image',
|
||||
'type' => 'heading',
|
||||
'label' => __( 'Header background image', 'storefront' ),
|
||||
'priority' => 6,
|
||||
)
|
||||
)
|
||||
);
|
||||
|
@ -295,18 +295,18 @@ if ( ! class_exists( 'Storefront_Customizer' ) ) :
|
|||
*/
|
||||
$wp_customize->add_setting(
|
||||
'storefront_header_background_color', array(
|
||||
'default' => apply_filters( 'storefront_default_header_background_color', '#2c2d33' ),
|
||||
'sanitize_callback' => 'sanitize_hex_color',
|
||||
'default' => apply_filters( 'storefront_default_header_background_color', '#2c2d33' ),
|
||||
'sanitize_callback' => 'sanitize_hex_color',
|
||||
)
|
||||
);
|
||||
|
||||
$wp_customize->add_control(
|
||||
new WP_Customize_Color_Control(
|
||||
$wp_customize, 'storefront_header_background_color', array(
|
||||
'label' => __( 'Background color', 'storefront' ),
|
||||
'section' => 'header_image',
|
||||
'settings' => 'storefront_header_background_color',
|
||||
'priority' => 15,
|
||||
'label' => __( 'Background color', 'storefront' ),
|
||||
'section' => 'header_image',
|
||||
'settings' => 'storefront_header_background_color',
|
||||
'priority' => 15,
|
||||
)
|
||||
)
|
||||
);
|
||||
|
@ -316,18 +316,18 @@ if ( ! class_exists( 'Storefront_Customizer' ) ) :
|
|||
*/
|
||||
$wp_customize->add_setting(
|
||||
'storefront_header_text_color', array(
|
||||
'default' => apply_filters( 'storefront_default_header_text_color', '#9aa0a7' ),
|
||||
'sanitize_callback' => 'sanitize_hex_color',
|
||||
'default' => apply_filters( 'storefront_default_header_text_color', '#9aa0a7' ),
|
||||
'sanitize_callback' => 'sanitize_hex_color',
|
||||
)
|
||||
);
|
||||
|
||||
$wp_customize->add_control(
|
||||
new WP_Customize_Color_Control(
|
||||
$wp_customize, 'storefront_header_text_color', array(
|
||||
'label' => __( 'Text color', 'storefront' ),
|
||||
'section' => 'header_image',
|
||||
'settings' => 'storefront_header_text_color',
|
||||
'priority' => 20,
|
||||
'label' => __( 'Text color', 'storefront' ),
|
||||
'section' => 'header_image',
|
||||
'settings' => 'storefront_header_text_color',
|
||||
'priority' => 20,
|
||||
)
|
||||
)
|
||||
);
|
||||
|
@ -337,18 +337,18 @@ if ( ! class_exists( 'Storefront_Customizer' ) ) :
|
|||
*/
|
||||
$wp_customize->add_setting(
|
||||
'storefront_header_link_color', array(
|
||||
'default' => apply_filters( 'storefront_default_header_link_color', '#d5d9db' ),
|
||||
'sanitize_callback' => 'sanitize_hex_color',
|
||||
'default' => apply_filters( 'storefront_default_header_link_color', '#d5d9db' ),
|
||||
'sanitize_callback' => 'sanitize_hex_color',
|
||||
)
|
||||
);
|
||||
|
||||
$wp_customize->add_control(
|
||||
new WP_Customize_Color_Control(
|
||||
$wp_customize, 'storefront_header_link_color', array(
|
||||
'label' => __( 'Link color', 'storefront' ),
|
||||
'section' => 'header_image',
|
||||
'settings' => 'storefront_header_link_color',
|
||||
'priority' => 30,
|
||||
'label' => __( 'Link color', 'storefront' ),
|
||||
'section' => 'header_image',
|
||||
'settings' => 'storefront_header_link_color',
|
||||
'priority' => 30,
|
||||
)
|
||||
)
|
||||
);
|
||||
|
@ -358,9 +358,9 @@ if ( ! class_exists( 'Storefront_Customizer' ) ) :
|
|||
*/
|
||||
$wp_customize->add_section(
|
||||
'storefront_footer', array(
|
||||
'title' => __( 'Footer', 'storefront' ),
|
||||
'priority' => 28,
|
||||
'description' => __( 'Customize the look & feel of your website footer.', 'storefront' ),
|
||||
'title' => __( 'Footer', 'storefront' ),
|
||||
'priority' => 28,
|
||||
'description' => __( 'Customize the look & feel of your website footer.', 'storefront' ),
|
||||
)
|
||||
);
|
||||
|
||||
|
@ -369,18 +369,18 @@ if ( ! class_exists( 'Storefront_Customizer' ) ) :
|
|||
*/
|
||||
$wp_customize->add_setting(
|
||||
'storefront_footer_background_color', array(
|
||||
'default' => apply_filters( 'storefront_default_footer_background_color', '#f0f0f0' ),
|
||||
'sanitize_callback' => 'sanitize_hex_color',
|
||||
'default' => apply_filters( 'storefront_default_footer_background_color', '#f0f0f0' ),
|
||||
'sanitize_callback' => 'sanitize_hex_color',
|
||||
)
|
||||
);
|
||||
|
||||
$wp_customize->add_control(
|
||||
new WP_Customize_Color_Control(
|
||||
$wp_customize, 'storefront_footer_background_color', array(
|
||||
'label' => __( 'Background color', 'storefront' ),
|
||||
'section' => 'storefront_footer',
|
||||
'settings' => 'storefront_footer_background_color',
|
||||
'priority' => 10,
|
||||
'label' => __( 'Background color', 'storefront' ),
|
||||
'section' => 'storefront_footer',
|
||||
'settings' => 'storefront_footer_background_color',
|
||||
'priority' => 10,
|
||||
)
|
||||
)
|
||||
);
|
||||
|
@ -390,18 +390,18 @@ if ( ! class_exists( 'Storefront_Customizer' ) ) :
|
|||
*/
|
||||
$wp_customize->add_setting(
|
||||
'storefront_footer_heading_color', array(
|
||||
'default' => apply_filters( 'storefront_default_footer_heading_color', '#494c50' ),
|
||||
'sanitize_callback' => 'sanitize_hex_color',
|
||||
'default' => apply_filters( 'storefront_default_footer_heading_color', '#494c50' ),
|
||||
'sanitize_callback' => 'sanitize_hex_color',
|
||||
)
|
||||
);
|
||||
|
||||
$wp_customize->add_control(
|
||||
new WP_Customize_Color_Control(
|
||||
$wp_customize, 'storefront_footer_heading_color', array(
|
||||
'label' => __( 'Heading color', 'storefront' ),
|
||||
'section' => 'storefront_footer',
|
||||
'settings' => 'storefront_footer_heading_color',
|
||||
'priority' => 20,
|
||||
'label' => __( 'Heading color', 'storefront' ),
|
||||
'section' => 'storefront_footer',
|
||||
'settings' => 'storefront_footer_heading_color',
|
||||
'priority' => 20,
|
||||
)
|
||||
)
|
||||
);
|
||||
|
@ -411,18 +411,18 @@ if ( ! class_exists( 'Storefront_Customizer' ) ) :
|
|||
*/
|
||||
$wp_customize->add_setting(
|
||||
'storefront_footer_text_color', array(
|
||||
'default' => apply_filters( 'storefront_default_footer_text_color', '#61656b' ),
|
||||
'sanitize_callback' => 'sanitize_hex_color',
|
||||
'default' => apply_filters( 'storefront_default_footer_text_color', '#61656b' ),
|
||||
'sanitize_callback' => 'sanitize_hex_color',
|
||||
)
|
||||
);
|
||||
|
||||
$wp_customize->add_control(
|
||||
new WP_Customize_Color_Control(
|
||||
$wp_customize, 'storefront_footer_text_color', array(
|
||||
'label' => __( 'Text color', 'storefront' ),
|
||||
'section' => 'storefront_footer',
|
||||
'settings' => 'storefront_footer_text_color',
|
||||
'priority' => 30,
|
||||
'label' => __( 'Text color', 'storefront' ),
|
||||
'section' => 'storefront_footer',
|
||||
'settings' => 'storefront_footer_text_color',
|
||||
'priority' => 30,
|
||||
)
|
||||
)
|
||||
);
|
||||
|
@ -432,18 +432,18 @@ if ( ! class_exists( 'Storefront_Customizer' ) ) :
|
|||
*/
|
||||
$wp_customize->add_setting(
|
||||
'storefront_footer_link_color', array(
|
||||
'default' => apply_filters( 'storefront_default_footer_link_color', '#2c2d33' ),
|
||||
'sanitize_callback' => 'sanitize_hex_color',
|
||||
'default' => apply_filters( 'storefront_default_footer_link_color', '#2c2d33' ),
|
||||
'sanitize_callback' => 'sanitize_hex_color',
|
||||
)
|
||||
);
|
||||
|
||||
$wp_customize->add_control(
|
||||
new WP_Customize_Color_Control(
|
||||
$wp_customize, 'storefront_footer_link_color', array(
|
||||
'label' => __( 'Link color', 'storefront' ),
|
||||
'section' => 'storefront_footer',
|
||||
'settings' => 'storefront_footer_link_color',
|
||||
'priority' => 40,
|
||||
'label' => __( 'Link color', 'storefront' ),
|
||||
'section' => 'storefront_footer',
|
||||
'settings' => 'storefront_footer_link_color',
|
||||
'priority' => 40,
|
||||
)
|
||||
)
|
||||
);
|
||||
|
@ -453,9 +453,9 @@ if ( ! class_exists( 'Storefront_Customizer' ) ) :
|
|||
*/
|
||||
$wp_customize->add_section(
|
||||
'storefront_buttons', array(
|
||||
'title' => __( 'Buttons', 'storefront' ),
|
||||
'priority' => 45,
|
||||
'description' => __( 'Customize the look & feel of your website buttons.', 'storefront' ),
|
||||
'title' => __( 'Buttons', 'storefront' ),
|
||||
'priority' => 45,
|
||||
'description' => __( 'Customize the look & feel of your website buttons.', 'storefront' ),
|
||||
)
|
||||
);
|
||||
|
||||
|
@ -464,18 +464,18 @@ if ( ! class_exists( 'Storefront_Customizer' ) ) :
|
|||
*/
|
||||
$wp_customize->add_setting(
|
||||
'storefront_button_background_color', array(
|
||||
'default' => apply_filters( 'storefront_default_button_background_color', '#96588a' ),
|
||||
'sanitize_callback' => 'sanitize_hex_color',
|
||||
'default' => apply_filters( 'storefront_default_button_background_color', '#96588a' ),
|
||||
'sanitize_callback' => 'sanitize_hex_color',
|
||||
)
|
||||
);
|
||||
|
||||
$wp_customize->add_control(
|
||||
new WP_Customize_Color_Control(
|
||||
$wp_customize, 'storefront_button_background_color', array(
|
||||
'label' => __( 'Background color', 'storefront' ),
|
||||
'section' => 'storefront_buttons',
|
||||
'settings' => 'storefront_button_background_color',
|
||||
'priority' => 10,
|
||||
'label' => __( 'Background color', 'storefront' ),
|
||||
'section' => 'storefront_buttons',
|
||||
'settings' => 'storefront_button_background_color',
|
||||
'priority' => 10,
|
||||
)
|
||||
)
|
||||
);
|
||||
|
@ -485,18 +485,18 @@ if ( ! class_exists( 'Storefront_Customizer' ) ) :
|
|||
*/
|
||||
$wp_customize->add_setting(
|
||||
'storefront_button_text_color', array(
|
||||
'default' => apply_filters( 'storefront_default_button_text_color', '#ffffff' ),
|
||||
'sanitize_callback' => 'sanitize_hex_color',
|
||||
'default' => apply_filters( 'storefront_default_button_text_color', '#ffffff' ),
|
||||
'sanitize_callback' => 'sanitize_hex_color',
|
||||
)
|
||||
);
|
||||
|
||||
$wp_customize->add_control(
|
||||
new WP_Customize_Color_Control(
|
||||
$wp_customize, 'storefront_button_text_color', array(
|
||||
'label' => __( 'Text color', 'storefront' ),
|
||||
'section' => 'storefront_buttons',
|
||||
'settings' => 'storefront_button_text_color',
|
||||
'priority' => 20,
|
||||
'label' => __( 'Text color', 'storefront' ),
|
||||
'section' => 'storefront_buttons',
|
||||
'settings' => 'storefront_button_text_color',
|
||||
'priority' => 20,
|
||||
)
|
||||
)
|
||||
);
|
||||
|
@ -506,18 +506,18 @@ if ( ! class_exists( 'Storefront_Customizer' ) ) :
|
|||
*/
|
||||
$wp_customize->add_setting(
|
||||
'storefront_button_alt_background_color', array(
|
||||
'default' => apply_filters( 'storefront_default_button_alt_background_color', '#2c2d33' ),
|
||||
'sanitize_callback' => 'sanitize_hex_color',
|
||||
'default' => apply_filters( 'storefront_default_button_alt_background_color', '#2c2d33' ),
|
||||
'sanitize_callback' => 'sanitize_hex_color',
|
||||
)
|
||||
);
|
||||
|
||||
$wp_customize->add_control(
|
||||
new WP_Customize_Color_Control(
|
||||
$wp_customize, 'storefront_button_alt_background_color', array(
|
||||
'label' => __( 'Alternate button background color', 'storefront' ),
|
||||
'section' => 'storefront_buttons',
|
||||
'settings' => 'storefront_button_alt_background_color',
|
||||
'priority' => 30,
|
||||
'label' => __( 'Alternate button background color', 'storefront' ),
|
||||
'section' => 'storefront_buttons',
|
||||
'settings' => 'storefront_button_alt_background_color',
|
||||
'priority' => 30,
|
||||
)
|
||||
)
|
||||
);
|
||||
|
@ -527,18 +527,18 @@ if ( ! class_exists( 'Storefront_Customizer' ) ) :
|
|||
*/
|
||||
$wp_customize->add_setting(
|
||||
'storefront_button_alt_text_color', array(
|
||||
'default' => apply_filters( 'storefront_default_button_alt_text_color', '#ffffff' ),
|
||||
'sanitize_callback' => 'sanitize_hex_color',
|
||||
'default' => apply_filters( 'storefront_default_button_alt_text_color', '#ffffff' ),
|
||||
'sanitize_callback' => 'sanitize_hex_color',
|
||||
)
|
||||
);
|
||||
|
||||
$wp_customize->add_control(
|
||||
new WP_Customize_Color_Control(
|
||||
$wp_customize, 'storefront_button_alt_text_color', array(
|
||||
'label' => __( 'Alternate button text color', 'storefront' ),
|
||||
'section' => 'storefront_buttons',
|
||||
'settings' => 'storefront_button_alt_text_color',
|
||||
'priority' => 40,
|
||||
'label' => __( 'Alternate button text color', 'storefront' ),
|
||||
'section' => 'storefront_buttons',
|
||||
'settings' => 'storefront_button_alt_text_color',
|
||||
'priority' => 40,
|
||||
)
|
||||
)
|
||||
);
|
||||
|
@ -548,26 +548,26 @@ if ( ! class_exists( 'Storefront_Customizer' ) ) :
|
|||
*/
|
||||
$wp_customize->add_section(
|
||||
'storefront_layout', array(
|
||||
'title' => __( 'Layout', 'storefront' ),
|
||||
'priority' => 50,
|
||||
'title' => __( 'Layout', 'storefront' ),
|
||||
'priority' => 50,
|
||||
)
|
||||
);
|
||||
|
||||
$wp_customize->add_setting(
|
||||
'storefront_layout', array(
|
||||
'default' => apply_filters( 'storefront_default_layout', $layout = is_rtl() ? 'left' : 'right' ),
|
||||
'sanitize_callback' => 'storefront_sanitize_choices',
|
||||
'default' => apply_filters( 'storefront_default_layout', $layout = is_rtl() ? 'left' : 'right' ),
|
||||
'sanitize_callback' => 'storefront_sanitize_choices',
|
||||
)
|
||||
);
|
||||
|
||||
$wp_customize->add_control(
|
||||
new Storefront_Custom_Radio_Image_Control(
|
||||
$wp_customize, 'storefront_layout', array(
|
||||
'settings' => 'storefront_layout',
|
||||
'section' => 'storefront_layout',
|
||||
'label' => __( 'General Layout', 'storefront' ),
|
||||
'priority' => 1,
|
||||
'choices' => array(
|
||||
'settings' => 'storefront_layout',
|
||||
'section' => 'storefront_layout',
|
||||
'label' => __( 'General Layout', 'storefront' ),
|
||||
'priority' => 1,
|
||||
'choices' => array(
|
||||
'right' => get_template_directory_uri() . '/assets/images/customizer/controls/2cr.png',
|
||||
'left' => get_template_directory_uri() . '/assets/images/customizer/controls/2cl.png',
|
||||
),
|
||||
|
@ -581,8 +581,8 @@ if ( ! class_exists( 'Storefront_Customizer' ) ) :
|
|||
if ( apply_filters( 'storefront_customizer_more', true ) ) {
|
||||
$wp_customize->add_section(
|
||||
'storefront_more', array(
|
||||
'title' => __( 'More', 'storefront' ),
|
||||
'priority' => 999,
|
||||
'title' => __( 'More', 'storefront' ),
|
||||
'priority' => 999,
|
||||
)
|
||||
);
|
||||
|
||||
|
@ -596,10 +596,10 @@ if ( ! class_exists( 'Storefront_Customizer' ) ) :
|
|||
$wp_customize->add_control(
|
||||
new More_Storefront_Control(
|
||||
$wp_customize, 'storefront_more', array(
|
||||
'label' => __( 'Looking for more options?', 'storefront' ),
|
||||
'section' => 'storefront_more',
|
||||
'settings' => 'storefront_more',
|
||||
'priority' => 1,
|
||||
'label' => __( 'Looking for more options?', 'storefront' ),
|
||||
'section' => 'storefront_more',
|
||||
'settings' => 'storefront_more',
|
||||
'priority' => 1,
|
||||
)
|
||||
)
|
||||
);
|
||||
|
@ -646,7 +646,7 @@ if ( ! class_exists( 'Storefront_Customizer' ) ) :
|
|||
$brighten_factor = apply_filters( 'storefront_brighten_factor', 25 );
|
||||
$darken_factor = apply_filters( 'storefront_darken_factor', -25 );
|
||||
|
||||
$styles = '
|
||||
$styles = '
|
||||
.main-navigation ul li a,
|
||||
.site-title a,
|
||||
ul.menu li a,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue