add_panel( 'allstore_options', array( 'title' => esc_html__('AllStore Options', 'all-store'), 'priority' => 10 ) ); /* * Catalog */ $wp_customize->add_section( 'catalog_section', array( 'title' => esc_html__( 'Catalog', 'all-store' ), 'priority' => 10, 'panel' => 'allstore_options', ) ); // Catalog Sidebar $wp_customize->add_setting( 'catalog_sidebar', array( 'default' => $defaults['catalog_sidebar'], 'sanitize_callback' => 'allstore_sanitize_select' ) ); $wp_customize->add_control( 'catalog_sidebar', array( 'type' => 'radio', 'label' => esc_html__('Sidebar', 'all-store'), 'section' => 'catalog_section', 'choices' => array( 'show' => esc_attr__( 'Show', 'all-store' ), 'sticky' => esc_attr__( 'Sticky', 'all-store' ), 'hide' => esc_attr__( 'Hide', 'all-store' ), ), ) ); // Catalog Gallery Mode Image $wp_customize->add_setting( 'catalog_galimg', array( 'default' => $defaults['catalog_galimg'], 'sanitize_callback' => 'allstore_sanitize_select' ) ); $wp_customize->add_control( 'catalog_galimg', array( 'type' => 'radio', 'label' => esc_html__('Gallery Mode Image', 'all-store'), 'section' => 'catalog_section', 'choices' => array( 'single' => esc_attr__( 'Single Image', 'all-store' ), 'carousel' => esc_attr__( 'Carousel', 'all-store' ), ), ) ); // Catalog Related Products Position $wp_customize->add_setting( 'product_related', array( 'default' => $defaults['product_related'], 'sanitize_callback' => 'allstore_sanitize_select' ) ); $wp_customize->add_control( 'product_related', array( 'type' => 'radio', 'label' => esc_html__('Related Products Position', 'all-store'), 'section' => 'catalog_section', 'choices' => array( 'right' => esc_attr__( 'Right', 'all-store' ), 'bottom' => esc_attr__( 'Bottom', 'all-store' ), ), ) ); // Catalog Additional Information Style $wp_customize->add_setting( 'product_info', array( 'default' => $defaults['product_info'], 'sanitize_callback' => 'allstore_sanitize_select' ) ); $wp_customize->add_control( 'product_info', array( 'type' => 'radio', 'label' => esc_html__('Additional Information Style', 'all-store'), 'section' => 'catalog_section', 'choices' => array( 'table' => esc_attr__( 'Table', 'all-store' ), 'dots' => esc_attr__( 'Dots', 'all-store' ), ), ) ); // Catalog Short Additional Information Rows $wp_customize->add_setting( 'product_propscount', array( 'default' => $defaults['product_propscount'], 'sanitize_callback' => 'allstore_sanitize_select' ) ); $wp_customize->add_control( 'product_propscount', array( 'type' => 'text', 'label' => esc_html__('Short Additional Information Rows', 'all-store'), 'section' => 'catalog_section', ) ); /* * Blog */ $wp_customize->add_section( 'section_blog', array( 'title' => esc_html__( 'Blog', 'all-store' ), 'priority' => 10, 'panel' => 'allstore_options', ) ); // Blog Sidebar $wp_customize->add_setting( 'post_sidebar', array( 'default' => $defaults['post_sidebar'], 'sanitize_callback' => 'allstore_sanitize_select' ) ); $wp_customize->add_control( 'post_sidebar', array( 'type' => 'radio', 'label' => esc_html__('Sidebar', 'all-store'), 'section' => 'section_blog', 'choices' => array( 'sticky' => esc_html__( 'Sticky', 'all-store' ), 'show' => esc_html__( 'Show', 'all-store' ), 'hide' => esc_html__( 'Hide', 'all-store' ), ), ) ); /* * Footer */ $wp_customize->add_section( 'section_footer', array( 'title' => esc_html__( 'Footer', 'all-store' ), 'priority' => 10, 'panel' => 'allstore_options', ) ); // Footer Copyright $wp_customize->add_setting( 'footer_copyright', array( 'default' => $defaults['footer_copyright'], 'sanitize_callback' => 'wp_kses_post' ) ); $wp_customize->add_control( 'footer_copyright', array( 'type' => 'text', 'label' => esc_html__('Copyright', 'all-store'), 'section' => 'section_footer', ) ); /* * Colors - Links */ $wp_customize->add_setting('color_hover', array( 'default' => $defaults['color_hover'], 'sanitize_callback' => 'sanitize_hex_color' )); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'color_hover', array( 'label' => esc_html__( 'Links', 'all-store' ), 'settings' => 'color_hover', 'section' => 'colors', 'priority' => 10, ) ) ); /* * Colors - Dark */ $wp_customize->add_setting('color_main', array( 'default' => $defaults['color_main'], 'sanitize_callback' => 'sanitize_hex_color' )); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'color_main', array( 'label' => esc_html__( 'Main Color', 'all-store' ), 'settings' => 'color_main', 'section' => 'colors', 'priority' => 10, ) ) ); /* * Colors - Text */ $wp_customize->add_setting('color_text', array( 'default' => $defaults['color_text'], 'sanitize_callback' => 'sanitize_hex_color' )); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'color_text', array( 'label' => esc_html__( 'Text Color', 'all-store' ), 'settings' => 'color_text', 'section' => 'colors', 'priority' => 10, ) ) ); /* * Footer BG Color */ $wp_customize->add_setting('colors_footer_bg', array( 'default' => $defaults['colors_footer_bg'], 'sanitize_callback' => 'sanitize_hex_color', )); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'colors_footer_bg', array( 'label' => esc_html__( 'Footer Background Color', 'all-store' ), 'settings' => 'colors_footer_bg', 'section' => 'colors', 'priority' => 10, ) ) ); /* * Footer Bottom BG Color */ $wp_customize->add_setting('colors_footer_bottom_bg', array( 'default' => $defaults['colors_footer_bottom_bg'], 'sanitize_callback' => 'sanitize_hex_color', )); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'colors_footer_bottom_bg', array( 'label' => esc_html__( 'Footer Bottom Background Color', 'all-store' ), 'settings' => 'colors_footer_bottom_bg', 'section' => 'colors', 'priority' => 10, ) ) );