esc_html__( '1 item', 'adela' ), '6' => esc_html__( '2 items', 'adela' ), '4' => esc_html__( '3 items', 'adela' ), '3' => esc_html__( '4 items', 'adela' ), ); } } if( !function_exists( 'adela_choose_carousel_item_values' ) ){ function adela_choose_carousel_item_values(){ return array( '1' => esc_html__( '1 item', 'adela' ), '2' => esc_html__( '2 items', 'adela' ), '3' => esc_html__( '3 items', 'adela' ), '4' => esc_html__( '4 items', 'adela' ), ); } } if( !function_exists( 'adela_choose_sidebar_values' ) ){ function adela_choose_sidebar_values(){ return array( 'sidebar-1' => esc_html__( 'Main Sidebar', 'adela' ), 'single-post-sidebar' => esc_html__( 'Single Post Sidebar', 'adela' ), 'shop-sidebar' => esc_html__( 'Shop Sidebar', 'adela' ), 'single-product-sidebar' => esc_html__( 'Single Product Sidebar', 'adela' ), ); } } if( !function_exists( 'adela_show_sidebar' ) ){ function adela_show_sidebar(){ $blog_layout = adela_get_option( 'blog_site_layout', 'right' ); if( $blog_layout != 'full' ){ return true; } return false; } } if( !function_exists( 'adela_show_shop_sidebar' ) ){ function adela_show_shop_sidebar(){ $blog_layout = adela_get_option( 'shop_site_layout', 'right' ); if( $blog_layout != 'full' ){ return true; } return false; } } if( !function_exists( 'adela_show_single_product_sidebar' ) ){ function adela_show_single_product_sidebar(){ $blog_layout = adela_get_option( 'single_product_site_layout', 'right' ); if( $blog_layout != 'full' ){ return true; } return false; } } if( !function_exists( 'adela_show_blog_grid_settings' ) ){ function adela_show_blog_grid_settings(){ $blog_layout = adela_get_option( 'blog_display_style', 'list' ); if( $blog_layout == 'grid' ){ return true; } return false; } } if( !function_exists( 'adela_show_shop_grid_settings' ) ){ function adela_show_shop_grid_settings(){ $blog_layout = adela_get_option( 'shop_display_layout', 'grid' ); if( $blog_layout == 'grid' ){ return true; } return false; } } if( !function_exists( 'adela_show_popup_settings' ) ){ function adela_show_popup_settings(){ $enable_popup = adela_get_option( 'popup_enable_popup', 'no' ); if( $enable_popup == 'yes' ){ return true; } return false; } } $options = array(); $options[] = array( 'name' => 'customizer_theme_options', 'title' => esc_html__( 'Theme Options', 'adela' ), 'description' => esc_html__( 'Theme Options', 'adela' ), 'sections' => array( array( 'name' => 'general_settings', 'title' => esc_html__( 'General settings', 'adela' ), 'settings' => array( array( 'name' => 'main_color', 'default' => '#c99947', 'control' => array( 'label' => esc_html( 'Main Color', 'adela' ), 'type' => 'color', ), ), array( 'name' => 'second_main_color', 'default' => '#222222', 'control' => array( 'label' => esc_html( 'Second Main Color', 'adela' ), 'type' => 'color', ), ), ) ), array( 'name' => 'popup_settings', 'title' => esc_html__( 'Popup settings', 'adela' ), 'settings' => array( array( 'name' => 'popup_enable_popup', 'default' => 'no', 'control' => array( 'label' => esc_html( 'Enable popup', 'adela' ), 'type' => 'select', 'choices' => array( 'yes' => esc_html( 'Yes', 'adela' ), 'no' => esc_html( 'No', 'adela' ), ) ), ), array( 'name' => 'popup_modal_title', 'default' => 'Subscribe to our', 'control' => array( 'label' => esc_html( 'Popup title', 'adela' ), 'type' => 'text', 'active_callback' => 'adela_show_popup_settings' ), ), array( 'name' => 'popup_modal_subtitle', 'default' => 'newsletter', 'control' => array( 'label' => esc_html( 'Popup sub title', 'adela' ), 'type' => 'text', 'active_callback' => 'adela_show_popup_settings' ), ), array( 'name' => 'popup_modal_desc', 'default' => 'Signup today for free and be the first to get notified on new update', 'control' => array( 'label' => esc_html( 'Popup description', 'adela' ), 'type' => 'textarea', 'active_callback' => 'adela_show_popup_settings' ), ), array( 'name' => 'popup_modal_delay_time', 'default' => 1000, 'control' => array( 'label' => esc_html( 'Popup delay time', 'adela' ), 'type' => 'number', 'active_callback' => 'adela_show_popup_settings' ), ), array( 'name' => 'popup_modal_form_action', 'default' => '', 'control' => array( 'label' => esc_html( 'Form action url', 'adela' ), 'type' => 'text', 'active_callback' => 'adela_show_popup_settings', 'description' => sprintf( '%s %s', esc_html__( 'Current the subscribe form only support MailChimp. Click ', 'adela' ), esc_url( 'https://shopify.barrelny.com/where-do-i-find-the-mailchimp-signup-url/' ), esc_html__( 'to know how to get the MailChimp signup URL.', 'adela' ) ) ), ), array( 'name' => 'popup_modal_placeholder_text', 'default' => 'Enter your email...', 'control' => array( 'label' => esc_html( 'Input placeholder', 'adela' ), 'type' => 'text', 'active_callback' => 'adela_show_popup_settings' ), ), array( 'name' => 'popup_modal_input_text', 'default' => 'Submit', 'control' => array( 'label' => esc_html( 'Input text', 'adela' ), 'type' => 'text', 'active_callback' => 'adela_show_popup_settings' ), ), array( 'name' => 'popup_modal_dont_show_again_text', 'default' => 'no thanks, i’ii be the last to know', 'control' => array( 'label' => esc_html( 'Ignore popup text', 'adela' ), 'type' => 'text', 'active_callback' => 'adela_show_popup_settings' ), ), array( 'name' => 'popup_modal_bg_image', 'control' => array( 'label' => esc_html( 'Popup background image', 'adela' ), 'type' => 'image', 'active_callback' => 'adela_show_popup_settings' ), ), ) ), array( 'name' => 'header_settings', 'title' => esc_html__( 'Header settings', 'adela' ), 'settings' => array( array( 'name' => 'header_discount_text', 'default' => 'Get Minimum 25-50% Off on Over 1.200.00 Styles', 'control' => array( 'label' => esc_html( 'Header text', 'adela' ), 'type' => 'text', ), ), array( 'name' => 'header_contact_text', 'default' => '(+900) 123-45678', 'control' => array( 'label' => esc_html( 'Contact info', 'adela' ), 'type' => 'text', ), ), array( 'name' => 'header_wishlist_link', 'default' => 'yes', 'control' => array( 'label' => esc_html( 'Show wishlist link', 'adela' ), 'type' => 'select', 'choices' => array( 'yes' => esc_html( 'Yes', 'adela' ), 'no' => esc_html( 'No', 'adela' ), ) ), ), array( 'name' => 'header_menu_right_text', 'default' => '', 'control' => array( 'label' => esc_html( 'Header menu text', 'adela' ), 'type' => 'text', ), ), ) ), array( 'name' => 'blog_settings', 'title' => esc_html__( 'Blog settings', 'adela' ), 'settings' => array( array( 'name' => 'blog_page_title', 'default' => '', 'control' => array( 'label' => esc_html( 'Blog page title', 'adela' ), 'type' => 'text', ), ), array( 'name' => 'blog_site_layout', 'default' => 'right', 'control' => array( 'label' => esc_html( 'Blog layout', 'adela' ), 'type' => 'select', 'choices' => array( 'left' => esc_html( 'Left sidebar', 'adela' ), 'right' => esc_html( 'Right sidebar', 'adela' ), 'full' => esc_html( 'Full width', 'adela' ), ) ), ), array( 'name' => 'blog_site_sidebar', 'default' => 'sidebar-1', 'control' => array( 'label' => esc_html( 'Blog sidebar', 'adela' ), 'type' => 'select', 'choices' => adela_choose_sidebar_values(), 'active_callback' => 'adela_show_sidebar' ), ), array( 'name' => 'blog_display_style', 'default' => 'list', 'control' => array( 'label' => esc_html( 'Blog style', 'adela' ), 'type' => 'select', 'choices' => array( 'grid' => esc_html( 'Grid style', 'adela' ), 'list' => esc_html( 'List style', 'adela' ), 'masonry' => esc_html( 'Masonry style', 'adela' ), ) ), ), array( 'name' => 'blog_grid_lg_items', 'default' => 4, 'control' => array( 'label' => esc_html( 'Large devices Desktops item(>=1200px)', 'adela' ), 'type' => 'select', 'choices' => adela_choose_item_values(), 'active_callback' => 'adela_show_blog_grid_settings' ), ), array( 'name' => 'blog_grid_md_items', 'default' => 4, 'control' => array( 'label' => esc_html( 'Medium devices Desktops item(>=992px)', 'adela' ), 'type' => 'select', 'choices' => adela_choose_item_values(), 'active_callback' => 'adela_show_blog_grid_settings' ), ), array( 'name' => 'blog_grid_sm_items', 'default' => 6, 'control' => array( 'label' => esc_html( 'Small devices Tablets item(>=768px)', 'adela' ), 'type' => 'select', 'choices' => adela_choose_item_values(), 'active_callback' => 'adela_show_blog_grid_settings' ), ), array( 'name' => 'blog_grid_xs_items', 'default' => 6, 'control' => array( 'label' => esc_html( 'Extra small devices Phones item(>=480px)', 'adela' ), 'type' => 'select', 'choices' => adela_choose_item_values(), 'active_callback' => 'adela_show_blog_grid_settings' ), ), array( 'name' => 'blog_grid_ts_items', 'default' => 12, 'control' => array( 'label' => esc_html( 'Extra small devices Phones item(<480px)', 'adela' ), 'type' => 'select', 'choices' => adela_choose_item_values(), 'active_callback' => 'adela_show_blog_grid_settings' ), ), ) ), array( 'name' => 'shop_settings', 'title' => esc_html__( 'Shop settings', 'adela' ), 'settings' => array( array( 'name' => 'shop_settings_section', 'control' => array( 'label' => esc_html( 'Shop settings section', 'adela' ), 'type' => 'custom_field', 'options' => array( 'type' => 'heading', ), ), ), array( 'name' => 'shop_site_layout', 'default' => 'right', 'control' => array( 'label' => esc_html( 'Shop layout', 'adela' ), 'type' => 'select', 'choices' => array( 'left' => esc_html( 'Left sidebar', 'adela' ), 'right' => esc_html( 'Right sidebar', 'adela' ), 'full' => esc_html( 'Full width', 'adela' ), ) ), ), array( 'name' => 'shop_site_sidebar', 'default' => 'sidebar-1', 'control' => array( 'label' => esc_html( 'Shop sidebar', 'adela' ), 'type' => 'select', 'choices' => adela_choose_sidebar_values(), 'active_callback' => 'adela_show_shop_sidebar' ), ), array( 'name' => 'shop_page_title', 'default' => '', 'control' => array( 'label' => esc_html( 'Shop page custom title', 'adela' ), 'type' => 'text', ), ), array( 'name' => 'shop_heading_background', 'control' => array( 'label' => esc_html( 'Shop heading background', 'adela' ), 'type' => 'image', ), ), array( 'name' => 'shop_product_per_page', 'default' => 9, 'control' => array( 'label' => esc_html( 'Product per page', 'adela' ), 'type' => 'number', ), ), array( 'name' => 'shop_display_layout', 'default' => 'grid', 'control' => array( 'label' => esc_html( 'Product default layout', 'adela' ), 'type' => 'select', 'choices' => array( 'grid' => esc_html( 'Grid layout', 'adela' ), 'list' => esc_html( 'List layout', 'adela' ), ) ), ), array( 'name' => 'shop_grid_lg_items', 'default' => 4, 'control' => array( 'label' => esc_html( 'Large devices Desktops item(>=1200px)', 'adela' ), 'type' => 'select', 'choices' => adela_choose_item_values(), 'active_callback' => 'adela_show_shop_grid_settings' ), ), array( 'name' => 'shop_grid_md_items', 'default' => 4, 'control' => array( 'label' => esc_html( 'Medium devices Desktops item(>=992px)', 'adela' ), 'type' => 'select', 'choices' => adela_choose_item_values(), 'active_callback' => 'adela_show_shop_grid_settings' ), ), array( 'name' => 'shop_grid_sm_items', 'default' => 6, 'control' => array( 'label' => esc_html( 'Small devices Tablets item(>=768px)', 'adela' ), 'type' => 'select', 'choices' => adela_choose_item_values(), 'active_callback' => 'adela_show_shop_grid_settings' ), ), array( 'name' => 'shop_grid_xs_items', 'default' => 6, 'control' => array( 'label' => esc_html( 'Extra small devices Phones item(>=480px)', 'adela' ), 'type' => 'select', 'choices' => adela_choose_item_values(), 'active_callback' => 'adela_show_shop_grid_settings' ), ), array( 'name' => 'shop_grid_ts_items', 'default' => 12, 'control' => array( 'label' => esc_html( 'Extra small devices Phones item(<480px)', 'adela' ), 'type' => 'select', 'choices' => adela_choose_item_values(), 'active_callback' => 'adela_show_shop_grid_settings' ), ), array( 'name' => 'single_product_settings_section', 'control' => array( 'label' => esc_html( 'Single product settings section', 'adela' ), 'type' => 'custom_field', 'options' => array( 'type' => 'heading', ), ), ), array( 'name' => 'single_product_site_layout', 'default' => 'right', 'control' => array( 'label' => esc_html( 'Single product layout', 'adela' ), 'type' => 'select', 'choices' => array( 'left' => esc_html( 'Left sidebar', 'adela' ), 'right' => esc_html( 'Right sidebar', 'adela' ), 'full' => esc_html( 'Full width', 'adela' ), ) ), ), array( 'name' => 'single_product_heading_background', 'control' => array( 'label' => esc_html( 'Single product heading background', 'adela' ), 'type' => 'image', ), ), array( 'name' => 'single_product_choosed_sidebar', 'default' => 'sidebar-1', 'control' => array( 'label' => esc_html( 'Single product sidebar', 'adela' ), 'type' => 'select', 'choices' => adela_choose_sidebar_values(), 'active_callback' => 'adela_show_single_product_sidebar' ), ), array( 'name' => 'single_product_linked_product_settings_section', 'control' => array( 'label' => esc_html( 'Linked products settings section', 'adela' ), 'type' => 'custom_field', 'options' => array( 'type' => 'heading', ), ), ), array( 'name' => 'shop_single_product_linked_lg_items', 'default' => 3, 'control' => array( 'label' => esc_html( 'Large devices Desktops item(>=1200px)', 'adela' ), 'type' => 'select', 'choices' => adela_choose_carousel_item_values(), ), ), array( 'name' => 'shop_single_product_linked_md_items', 'default' => 3, 'control' => array( 'label' => esc_html( 'Medium devices Desktops item(>=992px)', 'adela' ), 'type' => 'select', 'choices' => adela_choose_carousel_item_values(), ), ), array( 'name' => 'shop_single_product_linked_sm_items', 'default' => 2, 'control' => array( 'label' => esc_html( 'Small devices Tablets item(>=768px)', 'adela' ), 'type' => 'select', 'choices' => adela_choose_carousel_item_values(), ), ), array( 'name' => 'shop_single_product_linked_xs_items', 'default' => 2, 'control' => array( 'label' => esc_html( 'Extra small devices Phones item(>=480px)', 'adela' ), 'type' => 'select', 'choices' => adela_choose_carousel_item_values(), ), ), array( 'name' => 'shop_single_product_linked_ts_items', 'default' => 1, 'control' => array( 'label' => esc_html( 'Extra small devices Phones item(<480px)', 'adela' ), 'type' => 'select', 'choices' => adela_choose_carousel_item_values(), ), ), ) ), ) ); Adela_Customizer_Setup::instance( $options ); add_action( "customize_register", "adela_remove_exists_customize" ); if( !function_exists( 'adela_remove_exists_customize' ) ){ function adela_remove_exists_customize( $wp_customize ) { $wp_customize->remove_control( "woocommerce_catalog_columns" ); $wp_customize->remove_control( "woocommerce_catalog_rows" ); } }