[ 'type' => 'ct-options', 'setting' => [ 'transport' => 'postMessage' ], 'inner-options' => [ 'woo_categories_has_page_title' => [ 'label' => __( 'Page Title', 'blocksy' ), 'type' => 'ct-panel', 'switch' => true, 'value' => 'yes', 'wrapperAttr' => [ 'data-label' => 'heading-label' ], 'setting' => [ 'transport' => 'postMessage' ], 'inner-options' => [ blocksy_get_options('general/page-title', [ 'prefix' => 'woo_categories', 'is_woo' => true ]), ], ], blocksy_rand_md5() => [ 'type' => 'ct-title', 'label' => __( 'Shop Settings', 'blocksy' ), ], blocksy_rand_md5() => [ 'title' => __( 'General', 'blocksy' ), 'type' => 'tab', 'options' => [ [ 'shop_cards_type' => [ 'label' => false, 'type' => 'ct-image-picker', 'value' => 'type-1', 'divider' => 'bottom', 'setting' => [ 'transport' => 'postMessage' ], 'choices' => [ 'type-1' => [ 'src' => blocksy_image_picker_url( 'woo-type-1.svg' ), 'title' => __( 'Type 1', 'blocksy' ), ], 'type-2' => [ 'src' => blocksy_image_picker_url( 'woo-type-2.svg' ), 'title' => __( 'Type 2', 'blocksy' ), ], ], ], 'blocksy_woo_columns' => [ 'label' => __('Columns & Rows', 'blocksy'), 'type' => 'ct-woocommerce-columns-and-rows', 'value' => [ 'desktop' => 4, 'tablet' => 3, 'mobile' => 1 ], 'min' => 1, 'max' => 5, 'responsive' => true, 'setting' => [ 'transport' => 'postMessage' ], ], 'woocommerce_catalog_columns' => [ 'type' => 'hidden', 'value' => 4, 'setting' => [ 'type' => 'option', 'transport' => 'postMessage' ], ], 'woocommerce_catalog_rows' => [ 'type' => 'hidden', 'value' => 4, 'setting' => [ 'type' => 'option', 'transport' => 'postMessage' ], ], blocksy_rand_md5() => [ 'type' => 'ct-divider', 'attr' => [ 'data-type' => 'small' ] ], 'product_card_options_panel' => [ 'label' => __( 'Cards Options', 'blocksy' ), 'type' => 'ct-panel', 'wrapperAttr' => [ 'data-panel' => 'only-arrow' ], 'setting' => [ 'transport' => 'postMessage' ], 'inner-options' => [ blocksy_rand_md5() => [ 'title' => __( 'General', 'blocksy' ), 'type' => 'tab', 'options' => [ [ 'woocommerce_thumbnail_cropping' => [ 'label' => __('Thumbnail', 'blocksy'), 'type' => 'ct-woocommerce-ratio', /** * Can be * 1:1 * custom * predefined */ 'value' => '1:1', 'design' => 'inline', 'setting' => [ 'type' => 'option', 'transport' => 'postMessage' ], 'preview_width_key' => 'woocommerce_thumbnail_image_width', 'inner-options' => [ 'woocommerce_thumbnail_image_width' => [ 'type' => 'text', 'label' => __('Image Width', 'blocksy'), 'desc' => __('Image height will be automatically calculated based on the image ratio.', 'blocksy'), 'value' => 500, 'design' => 'inline', 'setting' => [ 'type' => 'option', 'capability' => 'manage_woocommerce', ] ], ], ], 'woocommerce_thumbnail_cropping_custom_width' => [ 'label' => false, 'type' => 'hidden', 'value' => 4, 'setting' => [ 'type' => 'option', 'capability' => 'manage_woocommerce', 'transport' => 'postMessage' ], 'disableRevertButton' => true, 'desc' => __('Width', 'blocksy'), ], 'woocommerce_thumbnail_cropping_custom_height' => [ 'label' => false, 'type' => 'hidden', 'value' => 3, 'setting' => [ 'type' => 'option', 'capability' => 'manage_woocommerce', 'transport' => 'postMessage' ], 'disableRevertButton' => true, 'desc' => __('Height', 'blocksy'), ], 'has_star_rating' => [ 'label' => __( 'Star Rating', 'blocksy' ), 'type' => 'ct-switch', 'value' => 'yes', 'setting' => [ 'transport' => 'postMessage' ], ], 'has_sale_badge' => [ 'label' => __( 'Sale Badge', 'blocksy' ), 'type' => 'ct-switch', 'value' => 'yes', 'setting' => [ 'transport' => 'postMessage' ], ], 'has_product_categories' => [ 'label' => __( 'Product Categories', 'blocksy' ), 'type' => 'ct-switch', 'value' => 'no', 'setting' => [ 'transport' => 'postMessage' ], ], ], apply_filters( 'blocksy_woo_card_options_elements', [] ), [ 'shopCardsGap' => [ 'label' => __( 'Cards Gap', 'blocksy' ), 'type' => 'ct-slider', 'min' => 0, 'max' => 100, 'responsive' => true, 'value' => [ 'mobile' => 30, 'tablet' => 30, 'desktop' => 30, ], 'divider' => 'top', 'setting' => [ 'transport' => 'postMessage' ], ], blocksy_rand_md5() => [ 'type' => 'ct-condition', 'condition' => [ 'shop_cards_type' => 'type-1' ], 'options' => [ 'shop_cards_alignment_1' => [ 'type' => 'ct-radio', 'label' => __( 'Content Alignment', 'blocksy' ), 'value' => 'left', 'view' => 'text', 'attr' => [ 'data-type' => 'alignment' ], 'disableRevertButton' => true, 'design' => 'block', 'divider' => 'top', 'setting' => [ 'transport' => 'postMessage' ], 'choices' => [ 'left' => '', 'center' => '', 'right' => '', ], ], ], ], ], ], ], blocksy_rand_md5() => [ 'title' => __( 'Design', 'blocksy' ), 'type' => 'tab', 'options' => [ 'cardProductTitleFont' => [ 'type' => 'ct-typography', 'label' => __( 'Title Font', 'blocksy' ), 'value' => blocksy_typography_default_values([ 'size' => '17px', 'variation' => 'n6', ]), 'setting' => [ 'transport' => 'postMessage' ], ], 'cardProductTitleColor' => [ 'label' => __( 'Title Color', 'blocksy' ), 'type' => 'ct-color-picker', 'design' => 'inline', 'setting' => [ 'transport' => 'postMessage' ], 'value' => [ 'default' => [ 'color' => Blocksy_Css_Injector::get_skip_rule_keyword('DEFAULT'), ], 'hover' => [ 'color' => Blocksy_Css_Injector::get_skip_rule_keyword('DEFAULT'), ], ], 'pickers' => [ [ 'title' => __( 'Initial', 'blocksy' ), 'id' => 'default', 'inherit' => 'var(--headingColor)' ], [ 'title' => __( 'Hover', 'blocksy' ), 'id' => 'hover', 'inherit' => 'var(--linkHoverColor)' ], ], ], 'cardProductPriceColor' => [ 'label' => __( 'Price Color', 'blocksy' ), 'type' => 'ct-color-picker', 'design' => 'inline', 'divider' => 'top', 'setting' => [ 'transport' => 'postMessage' ], 'value' => [ 'default' => [ 'color' => Blocksy_Css_Injector::get_skip_rule_keyword('DEFAULT'), ], ], 'pickers' => [ [ 'title' => __( 'Initial', 'blocksy' ), 'id' => 'default', 'inherit' => 'var(--color)' ], ], ], blocksy_rand_md5() => [ 'type' => 'ct-condition', 'condition' => [ 'has_product_categories' => 'yes' ], 'options' => [ 'cardProductCategoriesColor' => [ 'label' => __( 'Categories Color', 'blocksy' ), 'type' => 'ct-color-picker', 'design' => 'inline', 'divider' => 'top', 'setting' => [ 'transport' => 'postMessage' ], 'value' => [ 'default' => [ 'color' => 'var(--color)', ], 'hover' => [ 'color' => Blocksy_Css_Injector::get_skip_rule_keyword('DEFAULT'), ], ], 'pickers' => [ [ 'title' => __( 'Initial', 'blocksy' ), 'id' => 'default', ], [ 'title' => __( 'Hover', 'blocksy' ), 'id' => 'hover', 'inherit' => 'var(--linkHoverColor)' ], ], ], ], ], blocksy_rand_md5() => [ 'type' => 'ct-condition', 'condition' => [ 'shop_cards_type' => 'type-1' ], 'options' => [ 'cardProductButton1Text' => [ 'label' => __( 'Button Text Color', 'blocksy' ), 'type' => 'ct-color-picker', 'design' => 'inline', 'divider' => 'top', 'setting' => [ 'transport' => 'postMessage' ], 'value' => [ 'default' => [ 'color' => Blocksy_Css_Injector::get_skip_rule_keyword('DEFAULT'), ], 'hover' => [ 'color' => Blocksy_Css_Injector::get_skip_rule_keyword('DEFAULT'), ], ], 'pickers' => [ [ 'title' => __( 'Initial', 'blocksy' ), 'id' => 'default', 'inherit' => 'var(--buttonTextInitialColor)' ], [ 'title' => __( 'Hover', 'blocksy' ), 'id' => 'hover', 'inherit' => 'var(--buttonTextHoverColor)' ], ], ], 'cardProductButtonBackground' => [ 'label' => __( 'Button Background Color', 'blocksy' ), 'type' => 'ct-color-picker', 'design' => 'inline', 'setting' => [ 'transport' => 'postMessage' ], 'value' => [ 'default' => [ 'color' => Blocksy_Css_Injector::get_skip_rule_keyword('DEFAULT'), ], 'hover' => [ 'color' => Blocksy_Css_Injector::get_skip_rule_keyword('DEFAULT'), ], ], 'pickers' => [ [ 'title' => __( 'Initial', 'blocksy' ), 'id' => 'default', 'inherit' => 'var(--buttonInitialColor)' ], [ 'title' => __( 'Hover', 'blocksy' ), 'id' => 'hover', 'inherit' => 'var(--buttonHoverColor)' ], ], ], ], ], blocksy_rand_md5() => [ 'type' => 'ct-condition', 'condition' => [ 'shop_cards_type' => 'type-2' ], 'options' => [ 'cardProductButton2Text' => [ 'label' => __( 'Button Text Color', 'blocksy' ), 'type' => 'ct-color-picker', 'design' => 'inline', 'divider' => 'top', 'setting' => [ 'transport' => 'postMessage' ], 'value' => [ 'default' => [ 'color' => 'var(--color)', ], 'hover' => [ 'color' => 'var(--linkHoverColor)', ], ], 'pickers' => [ [ 'title' => __( 'Initial', 'blocksy' ), 'id' => 'default', ], [ 'title' => __( 'Hover', 'blocksy' ), 'id' => 'hover', ], ], ], 'cardProductBackground' => [ 'label' => __( 'Card Background Color', 'blocksy' ), 'type' => 'ct-color-picker', 'design' => 'inline', 'divider' => 'top', 'setting' => [ 'transport' => 'postMessage' ], 'value' => [ 'default' => [ 'color' => '#ffffff', ], ], 'pickers' => [ [ 'title' => __( 'Initial', 'blocksy' ), 'id' => 'default', ], ], ], 'cardProductShadow' => [ 'label' => __( 'Card Shadow', 'blocksy' ), 'type' => 'ct-box-shadow', 'responsive' => true, 'divider' => 'top', 'setting' => [ 'transport' => 'postMessage' ], 'value' => blocksy_box_shadow_value([ 'enable' => true, 'h_offset' => 0, 'v_offset' => 12, 'blur' => 18, 'spread' => -6, 'inset' => false, 'color' => [ 'color' => 'rgba(34, 56, 101, 0.03)', ], ]) ], ], ], 'cardProductRadius' => [ 'label' => __( 'Border Radius', 'blocksy' ), 'type' => 'ct-spacing', 'divider' => 'top', 'setting' => [ 'transport' => 'postMessage' ], 'value' => blocksy_spacing_value([ 'linked' => true, 'top' => '3px', 'left' => '3px', 'right' => '3px', 'bottom' => '3px', ]), 'responsive' => true ], ], ], ], ], blocksy_rand_md5() => [ 'type' => 'ct-title', 'label' => __( 'Page Elements', 'blocksy' ), ], 'has_shop_sort' => [ 'label' => __( 'Shop Sort', 'blocksy' ), 'type' => 'ct-switch', 'value' => 'yes', 'setting' => [ 'transport' => 'postMessage' ], ], 'has_shop_results_count' => [ 'label' => __( 'Shop Results Count', 'blocksy' ), 'type' => 'ct-switch', 'value' => 'yes', 'setting' => [ 'transport' => 'postMessage' ], ], ], blocksy_get_options('general/sidebar-particular', [ 'prefix' => 'woo', ]), blocksy_get_options('general/pagination', [ 'prefix' => 'woo', ]), [ blocksy_rand_md5() => [ 'type' => 'ct-title', 'label' => __( 'Functionality Options', 'blocksy' ), ], 'product_catalog_panel' => [ 'label' => __( 'Product Catalog', 'blocksy' ), 'type' => 'ct-panel', 'wrapperAttr' => [ 'data-panel' => 'only-arrow' ], 'setting' => [ 'transport' => 'postMessage' ], 'inner-options' => [ 'woocommerce_shop_page_display' => [ 'label' => __( 'Shop page display', 'blocksy' ), 'type' => 'ct-select', 'value' => '', 'view' => 'text', 'placeholder' => __('Show products', 'blocksy'), 'design' => 'block', 'setting' => [ 'type' => 'option' ], 'desc' => __( 'Choose what to display on the main shop page.', 'blocksy' ), 'choices' => blocksy_ordered_keys( [ '' => __('Show products', 'blocksy'), 'subcategories' => __('Show categories', 'blocksy'), 'both' => __('Show categories & products', 'blocksy'), ] ), ], 'woocommerce_category_archive_display' => [ 'label' => __( 'Category display', 'blocksy' ), 'type' => 'ct-select', 'value' => '', 'view' => 'text', 'placeholder' => __('Show products', 'blocksy'), 'design' => 'block', 'setting' => [ 'type' => 'option' ], 'desc' => __( 'Choose what to display on product category pages.', 'blocksy' ), 'choices' => blocksy_ordered_keys( [ '' => __('Show products', 'blocksy'), 'subcategories' => __('Show subcategories', 'blocksy'), 'both' => __('Show subcategories & products', 'blocksy'), ] ), ], 'woocommerce_default_catalog_orderby' => [ 'label' => __( 'Default product sorting', 'blocksy' ), 'type' => 'ct-select', 'value' => 'menu_order', 'view' => 'text', 'design' => 'block', 'desc' => __( 'How should products be sorted in the catalog by default?', 'blocksy' ), 'setting' => [ 'type' => 'option' ], 'choices' => blocksy_ordered_keys( [ 'menu_order' => __('Default sorting (custom ordering + name)', 'blocksy'), 'popularity' => __('Popularity (sales)', 'blocksy'), 'rating' => __('Average rating', 'blocksy'), 'date' => __('Sort by most recent', 'blocksy'), 'price' => __('Sort by price (asc)', 'blocksy'), 'price-desc' => __('Sort by price (desc)', 'blocksy'), ] ), ], ], ], 'woocommerce_demo_store' => [ 'label' => __( 'Store notice', 'blocksy' ), 'type' => 'ct-panel', 'value' => 'no', 'switch' => true, 'setting' => [ 'sanitize_callback' => 'wc_bool_to_string', 'sanitize_js_callback' => 'wc_bool_to_string', 'type' => 'option' ], 'inner-options' => [ blocksy_rand_md5() => [ 'title' => __( 'General', 'blocksy' ), 'type' => 'tab', 'options' => [ 'woocommerce_demo_store_notice' => [ 'type' => 'textarea', 'label' => __('Store notice', 'blocksy'), 'value' => __( 'This is a demo store for testing purposes — no orders shall be fulfilled.', 'blocksy' ), 'setting' => [ 'type' => 'option', 'transport' => 'postMessage' ], 'disableRevertButton' => true, ], 'store_notice_position' => [ 'type' => 'ct-radio', 'label' => __( 'Position', 'blocksy' ), 'value' => 'bottom', 'view' => 'text', 'disableRevertButton' => true, 'setting' => [ 'transport' => 'postMessage' ], 'choices' => [ 'top' => __('Top', 'blocksy'), 'bottom' => __('Bottom', 'blocksy'), ], ], ], ], blocksy_rand_md5() => [ 'title' => __( 'Design', 'blocksy' ), 'type' => 'tab', 'options' => [ 'wooNoticeContent' => [ 'label' => __( 'Font Color', 'blocksy' ), 'type' => 'ct-color-picker', 'design' => 'inline', 'skipEditPalette' => true, 'setting' => [ 'transport' => 'postMessage' ], 'value' => [ 'default' => [ 'color' => '#ffffff', ], ], 'pickers' => [ [ 'title' => __( 'Initial', 'blocksy' ), 'id' => 'default', ], ], ], 'wooNoticeBackground' => [ 'label' => __( 'Background Color', 'blocksy' ), 'type' => 'ct-color-picker', 'design' => 'inline', 'skipEditPalette' => true, 'setting' => [ 'transport' => 'postMessage' ], 'value' => [ 'default' => [ 'color' => 'var(--paletteColor1)', ], ], 'pickers' => [ [ 'title' => __( 'Initial', 'blocksy' ), 'id' => 'default', ], ], ], ], ], ], ], ], ], ], blocksy_rand_md5() => [ 'title' => __( 'Design', 'blocksy' ), 'type' => 'tab', 'options' => [ 'starRatingColor' => [ 'label' => __( 'Star Rating Color', 'blocksy' ), 'type' => 'ct-color-picker', 'design' => 'inline', 'setting' => [ 'transport' => 'postMessage' ], 'value' => [ 'default' => [ 'color' => '#FDA256', ], 'inactive' => [ 'color' => '#F9DFCC', ], ], 'pickers' => [ [ 'title' => __( 'Active', 'blocksy' ), 'id' => 'default', ], [ 'title' => __( 'Inactive', 'blocksy' ), 'id' => 'inactive', ], ], ], 'saleBadgeColor' => [ 'label' => __( 'Sale Badge Color', 'blocksy' ), 'type' => 'ct-color-picker', 'design' => 'inline', 'divider' => 'top', 'setting' => [ 'transport' => 'postMessage' ], 'value' => [ 'text' => [ 'color' => '#ffffff', ], 'background' => [ 'color' => 'var(--paletteColor1)', ], ], 'pickers' => [ [ 'title' => __( 'Text', 'blocksy' ), 'id' => 'text', ], [ 'title' => __( 'Background', 'blocksy' ), 'id' => 'background', ], ], ], 'infoMessageColor' => [ 'label' => __( 'Info Message Color', 'blocksy' ), 'type' => 'ct-color-picker', 'design' => 'inline', 'divider' => 'top', 'setting' => [ 'transport' => 'postMessage' ], 'value' => [ 'text' => [ 'color' => Blocksy_Css_Injector::get_skip_rule_keyword('DEFAULT'), ], 'background' => [ 'color' => '#F0F1F3', ], ], 'pickers' => [ [ 'title' => __( 'Text', 'blocksy' ), 'id' => 'text', 'inherit' => 'var(--color)' ], [ 'title' => __( 'Background', 'blocksy' ), 'id' => 'background', ], ], ], 'errorMessageColor' => [ 'label' => __( 'Error Message Color', 'blocksy' ), 'type' => 'ct-color-picker', 'design' => 'inline', 'divider' => 'top', 'setting' => [ 'transport' => 'postMessage' ], 'value' => [ 'text' => [ 'color' => '#ffffff', ], 'background' => [ 'color' => 'rgba(218, 0, 28, 0.7)', ], ], 'pickers' => [ [ 'title' => __( 'Text', 'blocksy' ), 'id' => 'text', ], [ 'title' => __( 'Background', 'blocksy' ), 'id' => 'background', ], ], ], ], ], ], ], ];