📁 File Manager Pro
v10.0.3 | PHP: 8.1.34
Server: LiteSpeed
2026-06-28 21:25:40
📂
/ (Root)
/
home
/
apkbfjox
/
joygame.com.pk
/
wp-content
/
plugins
/
kadence-pro
/
dist
/
woocommerce-addons
📍 /home/apkbfjox/joygame.com.pk/wp-content/plugins/kadence-pro/dist/woocommerce-addons
🔄 Refresh
✏️
Editing: product-archive-options.php
Writable
<?php /** * Woocommerce Product Catalog Options. * * @package Kadence_Pro */ namespace Kadence_Pro; use Kadence\Theme_Customizer; use function Kadence\kadence; Theme_Customizer::add_settings( array( 'info_product_custom_shop_page' => array( 'control_type' => 'kadence_title_control', 'priority' => 11, 'section' => 'woocommerce_product_catalog', 'label' => esc_html__( 'Custom Shop Page', 'kadence-pro' ), 'settings' => false, ), 'product_archive_shop_custom' => array( 'control_type' => 'kadence_switch_control', 'section' => 'woocommerce_product_catalog', 'priority' => 11, 'default' => kadence()->default( 'product_archive_shop_custom' ), 'label' => esc_html__( 'Custom Content For Shop Page?', 'kadence-pro' ), 'input_attrs' => array( 'help' => esc_html__( 'This will use the page content of your shop page instead of the WooCommerce archive loop.', 'kadence-pro' ), ), 'transport' => 'refresh', ), 'info_product_archive_shop_active_filter' => array( 'control_type' => 'kadence_title_control', 'priority' => 12, 'section' => 'woocommerce_product_catalog', 'label' => esc_html__( 'Archive Active Filters', 'kadence-pro' ), 'settings' => false, ), 'product_archive_shop_filter_active_top' => array( 'control_type' => 'kadence_switch_control', 'section' => 'woocommerce_product_catalog', 'priority' => 12, 'default' => kadence()->default( 'product_archive_shop_filter_active_top' ), 'label' => esc_html__( 'Add Active Filters to top of Shop?', 'kadence-pro' ), 'transport' => 'refresh', ), 'product_archive_shop_filter_active_remove_all' => array( 'control_type' => 'kadence_switch_control', 'section' => 'woocommerce_product_catalog', 'priority' => 12, 'default' => kadence()->default( 'product_archive_shop_filter_active_remove_all' ), 'label' => esc_html__( 'Show Button to Remove all Filters?', 'kadence-pro' ), 'transport' => 'refresh', 'context' => array( array( 'setting' => 'product_archive_shop_filter_active_top', 'operator' => '=', 'value' => true, ), ), ), 'info_product_archive_shop_filter' => array( 'control_type' => 'kadence_title_control', 'priority' => 12, 'section' => 'woocommerce_product_catalog', 'label' => esc_html__( 'Off Canvas Sidebar', 'kadence-pro' ), 'settings' => false, ), 'product_archive_shop_filter_popout' => array( 'control_type' => 'kadence_switch_control', 'section' => 'woocommerce_product_catalog', 'priority' => 12, 'default' => kadence()->default( 'product_archive_shop_filter_popout' ), 'label' => esc_html__( 'Add Off Canvas Widget Area?', 'kadence-pro' ), 'transport' => 'refresh', ), 'product_archive_shop_filter_icon' => array( 'control_type' => 'kadence_radio_icon_control', 'section' => 'woocommerce_product_catalog', 'default' => kadence()->default( 'product_archive_shop_filter_icon' ), 'label' => esc_html__( 'Toggle Icon', 'kadence-pro' ), 'priority' => 12, 'partial' => array( 'selector' => '.filter-toggle-icon', 'container_inclusive' => false, 'render_callback' => 'Kadence_Pro\shop_filter_toggle_icon', ), 'context' => array( array( 'setting' => 'product_archive_shop_filter_popout', 'operator' => '=', 'value' => true, ), ), 'input_attrs' => array( 'layout' => array( 'menu3' => array( 'icon' => 'menu3', ), 'menu' => array( 'icon' => 'menu', ), 'listFilter' => array( 'icon' => 'listFilter', ), 'listFilterAlt' => array( 'icon' => 'listFilterAlt', ), 'none' => array( 'name' => 'none', ), ), 'responsive' => false, ), ), 'product_archive_shop_filter_label' => array( 'control_type' => 'kadence_text_control', 'sanitize' => 'sanitize_text_field', 'section' => 'woocommerce_product_catalog', 'default' => kadence()->default( 'product_archive_shop_filter_label' ), 'label' => esc_html__( 'Toggle Label', 'kadence-pro' ), 'priority' => 12, 'live_method' => array( array( 'type' => 'html', 'selector' => '.filter-toggle-label', 'pattern' => '$', 'key' => '', ), ), 'context' => array( array( 'setting' => 'product_archive_shop_filter_popout', 'operator' => '=', 'value' => true, ), ), ), 'info_product_archive_shop_filter_design' => array( 'control_type' => 'kadence_title_control', 'priority' => 12, 'section' => 'woocommerce_product_catalog_design', 'label' => esc_html__( 'Off Canvas Sidebar', 'kadence-pro' ), 'settings' => false, 'context' => array( array( 'setting' => 'product_archive_shop_filter_popout', 'operator' => '=', 'value' => true, ), ), ), 'product_archive_shop_filter_style' => array( 'control_type' => 'kadence_radio_icon_control', 'section' => 'woocommerce_product_catalog_design', 'default' => kadence()->default( 'product_archive_shop_filter_style' ), 'label' => esc_html__( 'Toggle Style', 'kadence-pro' ), 'priority' => 12, 'live_method' => array( array( 'type' => 'class', 'selector' => '.filter-toggle-open', 'pattern' => 'filter-toggle-style-$', 'key' => '', ), ), 'context' => array( array( 'setting' => 'product_archive_shop_filter_popout', 'operator' => '=', 'value' => true, ), ), 'input_attrs' => array( 'layout' => array( 'default' => array( 'name' => __( 'Default', 'kadence-pro' ), ), 'bordered' => array( 'name' => __( 'Bordered', 'kadence-pro' ), ), ), 'responsive' => false, ), ), 'product_archive_shop_filter_border' => array( 'control_type' => 'kadence_border_control', 'section' => 'woocommerce_product_catalog_design', 'priority' => 12, 'label' => esc_html__( 'Toggle Border', 'kadence-pro' ), 'default' => kadence()->default( 'product_archive_shop_filter_border' ), 'context' => array( array( 'setting' => 'product_archive_shop_filter_style', 'operator' => 'sub_object_contains', 'sub_key' => 'layout', 'responsive' => false, 'value' => 'bordered', ), ), 'context' => array( array( 'setting' => 'product_archive_shop_filter_popout', 'operator' => '=', 'value' => true, ), ), 'live_method' => array( array( 'type' => 'css_border', 'selector' => '.filter-toggle-open-container .filter-toggle-open.filter-toggle-style-bordered', 'pattern' => '$', 'property' => 'border', 'key' => 'border', ), ), 'input_attrs' => array( 'color' => false, 'responsive' => false, ), ), 'product_archive_shop_filter_icon_size' => array( 'control_type' => 'kadence_range_control', 'section' => 'woocommerce_product_catalog_design', 'label' => esc_html__( 'Icon Size', 'kadence-pro' ), 'priority' => 12, 'live_method' => array( array( 'type' => 'css', 'selector' => '.filter-toggle-open-container .filter-toggle-open .filter-toggle-icon', 'property' => 'font-size', 'pattern' => '$', 'key' => 'size', ), ), 'context' => array( array( 'setting' => 'product_archive_shop_filter_popout', 'operator' => '=', 'value' => true, ), ), 'default' => kadence()->default( 'product_archive_shop_filter_icon_size' ), 'input_attrs' => array( 'min' => array( 'px' => 0, 'em' => 0, 'rem' => 0, ), 'max' => array( 'px' => 100, 'em' => 12, 'rem' => 12, ), 'step' => array( 'px' => 1, 'em' => 0.01, 'rem' => 0.01, ), 'units' => array( 'px', 'em', 'rem' ), 'responsive' => false, ), ), 'product_archive_shop_filter_color' => array( 'control_type' => 'kadence_color_control', 'section' => 'woocommerce_product_catalog_design', 'label' => esc_html__( 'Trigger Colors', 'kadence-pro' ), 'default' => kadence()->default( 'product_archive_shop_filter_color' ), 'priority' => 12, 'live_method' => array( array( 'type' => 'css', 'selector' => '.filter-toggle-open-container .filter-toggle-open', 'property' => 'color', 'pattern' => '$', 'key' => 'color', ), array( 'type' => 'css', 'selector' => '.filter-toggle-open-container .filter-toggle-open:hover, .filter-toggle-open-container .filter-toggle-open:focus', 'property' => 'color', 'pattern' => '$', 'key' => 'hover', ), ), 'context' => array( array( 'setting' => 'product_archive_shop_filter_popout', 'operator' => '=', 'value' => true, ), ), 'input_attrs' => array( 'colors' => array( 'color' => array( 'tooltip' => __( 'Initial Color', 'kadence-pro' ), 'palette' => true, ), 'hover' => array( 'tooltip' => __( 'Hover Color', 'kadence-pro' ), 'palette' => true, ), ), ), ), 'product_archive_shop_filter_background' => array( 'control_type' => 'kadence_color_control', 'section' => 'woocommerce_product_catalog_design', 'label' => esc_html__( 'Trigger Background', 'kadence-pro' ), 'default' => kadence()->default( 'product_archive_shop_filter_background' ), 'priority' => 12, 'live_method' => array( array( 'type' => 'css', 'selector' => '.filter-toggle-open-container .filter-toggle-open', 'property' => 'background', 'pattern' => '$', 'key' => 'color', ), array( 'type' => 'css', 'selector' => '.filter-toggle-open-container .filter-toggle-open:hover, .filter-toggle-open-container .filter-toggle-open:focus', 'property' => 'background', 'pattern' => '$', 'key' => 'hover', ), ), 'context' => array( array( 'setting' => 'product_archive_shop_filter_popout', 'operator' => '=', 'value' => true, ), ), 'input_attrs' => array( 'colors' => array( 'color' => array( 'tooltip' => __( 'Initial Background', 'kadence-pro' ), 'palette' => true, ), 'hover' => array( 'tooltip' => __( 'Hover Background', 'kadence-pro' ), 'palette' => true, ), ), ), ), 'product_archive_shop_filter_border_color' => array( 'control_type' => 'kadence_color_control', 'section' => 'woocommerce_product_catalog_design', 'label' => esc_html__( 'Trigger Colors', 'kadence-pro' ), 'default' => kadence()->default( 'product_archive_shop_filter_border_color' ), 'priority' => 12, 'live_method' => array( array( 'type' => 'css', 'selector' => '.filter-toggle-open-container .filter-toggle-open', 'property' => 'border-color', 'pattern' => '$', 'key' => 'color', ), array( 'type' => 'css', 'selector' => '.filter-toggle-open-container .filter-toggle-open:hover, .filter-toggle-open-container .filter-toggle-open:focus', 'property' => 'border-color', 'pattern' => '$', 'key' => 'hover', ), ), 'context' => array( array( 'setting' => 'product_archive_shop_filter_popout', 'operator' => '=', 'value' => true, ), ), 'input_attrs' => array( 'colors' => array( 'color' => array( 'tooltip' => __( 'Initial Color', 'kadence-pro' ), 'palette' => true, ), 'hover' => array( 'tooltip' => __( 'Hover Color', 'kadence-pro' ), 'palette' => true, ), ), ), ), 'product_archive_shop_filter_typography' => array( 'control_type' => 'kadence_typography_control', 'section' => 'woocommerce_product_catalog_design', 'priority' => 12, 'label' => esc_html__( 'Trigger Font', 'kadence-pro' ), 'context' => array( array( 'setting' => 'product_archive_shop_filter_popout', 'operator' => '=', 'value' => true, ), array( 'setting' => 'product_archive_shop_filter_label', 'operator' => '!empty', 'value' => '', ), ), 'default' => kadence()->default( 'product_archive_shop_filter_typography' ), 'live_method' => array( array( 'type' => 'css_typography', 'selector' => '.filter-toggle-open-container .filter-toggle-open', 'pattern' => array( 'desktop' => '$', 'tablet' => '$', 'mobile' => '$', ), 'property' => 'font', 'key' => 'typography', ), ), 'input_attrs' => array( 'id' => 'product_archive_shop_filter_typography', 'options' => 'no-color', ), ), 'product_archive_shop_filter_padding' => array( 'control_type' => 'kadence_measure_control', 'section' => 'woocommerce_product_catalog_design', 'priority' => 12, 'default' => kadence()->default( 'product_archive_shop_filter_padding' ), 'label' => esc_html__( 'Trigger Padding', 'kadence-pro' ), 'live_method' => array( array( 'type' => 'css', 'selector' => '.filter-toggle-open-container .filter-toggle-open', 'property' => 'padding', 'pattern' => '$', 'key' => 'measure', ), ), 'context' => array( array( 'setting' => 'product_archive_shop_filter_popout', 'operator' => '=', 'value' => true, ), ), 'input_attrs' => array( 'responsive' => false, ), ), 'product_filter_widget_link' => array( 'control_type' => 'kadence_focus_button_control', 'section' => 'woocommerce_product_catalog', 'settings' => false, 'priority' => 12, 'context' => array( array( 'setting' => 'product_archive_shop_filter_popout', 'operator' => '=', 'value' => true, ), ), 'label' => esc_html__( 'Add Widget Items', 'kadence-pro' ), 'input_attrs' => array( 'section' => 'sidebar-widgets-product-filter', ), ), ) ); ob_start(); ?> <div class="kadence-compontent-tabs nav-tab-wrapper wp-clearfix"> <a href="#" class="nav-tab kadence-general-tab kadence-compontent-tabs-button nav-tab-active" data-tab="general"> <span><?php esc_html_e( 'General', 'kadence-pro' ); ?></span> </a> </div> <?php $compontent_tabs = ob_get_clean(); ob_start(); ?> <div class="kadence-compontent-description"> <p style="margin:0"><?php echo esc_html__( 'Title and Content settings affect legacy widgets. For block editor widgets use settings in the editor.', 'kadence' ); ?></p> </div> <?php $component_description = ob_get_clean(); $widget_settings = array( 'product_filter_widget_breaker' => array( 'control_type' => 'kadence_blank_control', 'section' => 'sidebar-widgets-product-filter', 'settings' => false, 'priority' => 5, 'description' => $compontent_tabs, ), 'product_filter_widget_settings' => array( 'control_type' => 'kadence_blank_control', 'section' => 'sidebar-widgets-product-filter', 'settings' => false, 'priority' => 10, 'description' => $component_description, ), 'product_filter_widget_title' => array( 'control_type' => 'kadence_typography_control', 'section' => 'sidebar-widgets-product-filter', 'label' => esc_html__( 'Widget Titles', 'kadence-pro' ), 'default' => kadence()->default( 'product_filter_widget_title' ), 'live_method' => array( array( 'type' => 'css_typography', 'selector' => '#filter-drawer .drawer-inner .product-filter-widgets .widget-title', 'pattern' => array( 'desktop' => '$', 'tablet' => '$', 'mobile' => '$', ), 'property' => 'font', 'key' => 'typography', ), ), 'context' => array( array( 'setting' => '__current_tab', 'value' => 'general', ), ), 'input_attrs' => array( 'id' => 'product_filter_widget_title', ), ), 'product_filter_widget_content' => array( 'control_type' => 'kadence_typography_control', 'section' => 'sidebar-widgets-product-filter', 'label' => esc_html__( 'Widget Content', 'kadence-pro' ), 'default' => kadence()->default( 'product_filter_widget_content' ), 'live_method' => array( array( 'type' => 'css_typography', 'selector' => '#filter-drawer .drawer-inner .product-filter-widgets', 'pattern' => array( 'desktop' => '$', 'tablet' => '$', 'mobile' => '$', ), 'property' => 'font', 'key' => 'typography', ), ), 'context' => array( array( 'setting' => '__current_tab', 'value' => 'general', ), ), 'input_attrs' => array( 'id' => 'product_filter_widget_content', ), ), 'product_filter_widget_link_colors' => array( 'control_type' => 'kadence_color_control', 'section' => 'sidebar-widgets-product-filter', 'label' => esc_html__( 'Link Colors', 'kadence-pro' ), 'default' => kadence()->default( 'product_filter_widget_link_colors' ), 'live_method' => array( array( 'type' => 'css', 'selector' => '#filter-drawer .drawer-inner .product-filter-widgets a:not(.kb-button)', 'property' => 'color', 'pattern' => '$', 'key' => 'color', ), array( 'type' => 'css', 'selector' => '#filter-drawer .drawer-inner .product-filter-widgets a:hover:not(.kb-button)', 'property' => 'color', 'pattern' => '$', 'key' => 'hover', ), ), 'context' => array( array( 'setting' => '__current_tab', 'value' => 'general', ), ), 'input_attrs' => array( 'colors' => array( 'color' => array( 'tooltip' => __( 'Initial Color', 'kadence-pro' ), 'palette' => true, ), 'hover' => array( 'tooltip' => __( 'Hover Color', 'kadence-pro' ), 'palette' => true, ), ), ), ), 'product_filter_widget_link_style' => array( 'control_type' => 'kadence_select_control', 'section' => 'sidebar-widgets-product-filter', 'default' => kadence()->default( 'product_filter_widget_link_style' ), 'label' => esc_html__( 'Link Style', 'kadence-pro' ), 'input_attrs' => array( 'options' => array( 'normal' => array( 'name' => __( 'Underline', 'kadence-pro' ), ), 'plain' => array( 'name' => __( 'No Underline', 'kadence-pro' ), ), ), ), 'context' => array( array( 'setting' => '__current_tab', 'value' => 'general', ), ), 'live_method' => array( array( 'type' => 'class', 'selector' => '#filter-drawer .drawer-inner .product-filter-widgets', 'pattern' => 'inner-link-style-$', 'key' => '', ), ), ), 'product_filter_widget_padding' => array( 'control_type' => 'kadence_measure_control', 'section' => 'sidebar-widgets-product-filter', 'default' => kadence()->default( 'product_filter_widget_padding' ), 'label' => esc_html__( 'Padding', 'kadence-pro' ), 'live_method' => array( array( 'type' => 'css', 'selector' => '#filter-drawer .drawer-inner .product-filter-widgets', 'property' => 'padding', 'pattern' => '$', 'key' => 'measure', ), ), 'context' => array( array( 'setting' => '__current_tab', 'value' => 'general', ), ), 'input_attrs' => array( 'responsive' => false, ), ), 'info_product_filter_widget_design' => array( 'control_type' => 'kadence_title_control', 'section' => 'sidebar-widgets-product-filter', 'label' => esc_html__( 'Popup Area Settings', 'kadence-pro' ), 'settings' => false, 'context' => array( array( 'setting' => '__current_tab', 'value' => 'general', ), ), ), 'product_filter_widget_layout' => array( 'control_type' => 'kadence_radio_icon_control', 'section' => 'sidebar-widgets-product-filter', 'default' => kadence()->default( 'product_filter_widget_layout' ), 'label' => esc_html__( 'Layout', 'kadence-pro' ), 'live_method' => array( array( 'type' => 'class', 'selector' => '#filter-drawer', 'pattern' => 'popup-drawer-layout-$', 'key' => '', ), ), 'context' => array( array( 'setting' => '__current_tab', 'value' => 'general', ), ), 'input_attrs' => array( 'layout' => array( 'fullwidth' => array( 'tooltip' => __( 'Reveal as Fullwidth', 'kadence-pro' ), 'name' => __( 'Fullwidth', 'kadence-pro' ), 'icon' => '', ), 'sidepanel' => array( 'tooltip' => __( 'Reveal as Side Panel', 'kadence-pro' ), 'name' => __( 'Side Panel', 'kadence-pro' ), 'icon' => '', ), ), 'responsive' => false, ), ), 'product_filter_widget_side' => array( 'control_type' => 'kadence_radio_icon_control', 'section' => 'sidebar-widgets-product-filter', 'default' => kadence()->default( 'product_filter_widget_side' ), 'label' => esc_html__( 'Slide-Out Side', 'kadence-pro' ), 'context' => array( array( 'setting' => '__current_tab', 'value' => 'general', ), array( 'setting' => 'product_filter_widget_layout', 'operator' => 'sub_object_contains', 'sub_key' => 'layout', 'responsive' => false, 'value' => 'sidepanel', ), ), 'live_method' => array( array( 'type' => 'class', 'selector' => '#filter-drawer', 'pattern' => 'popup-drawer-side-$', 'key' => '', ), ), 'input_attrs' => array( 'layout' => array( 'left' => array( 'tooltip' => __( 'Reveal from Left', 'kadence-pro' ), 'name' => __( 'Left', 'kadence-pro' ), 'icon' => '', ), 'right' => array( 'tooltip' => __( 'Reveal from Right', 'kadence-pro' ), 'name' => __( 'Right', 'kadence-pro' ), 'icon' => '', ), ), 'responsive' => false, ), ), 'product_filter_widget_pop_width' => array( 'control_type' => 'kadence_range_control', 'section' => 'sidebar-widgets-product-filter', 'label' => esc_html__( 'Popup Content Max Width', 'kadence-pro' ), 'live_method' => array( array( 'type' => 'css', 'selector' => '#filter-drawer.popup-drawer-layout-fullwidth .drawer-content .product-filter-widgets, #filter-drawer.popup-drawer-layout-sidepanel .drawer-inner', 'property' => 'max-width', 'pattern' => '$', 'key' => 'size', ), ), 'context' => array( array( 'setting' => '__current_tab', 'value' => 'general', ), ), 'default' => kadence()->default( 'product_filter_widget_pop_width' ), 'input_attrs' => array( 'min' => array( 'px' => 100, '%' => 10, ), 'max' => array( 'px' => 1000, '%' => 100, ), 'step' => array( 'px' => 1, '%' => 1, ), 'units' => array( 'px', '%' ), 'responsive' => false, ), ), 'product_filter_widget_pop_background' => array( 'control_type' => 'kadence_background_control', 'section' => 'sidebar-widgets-product-filter', 'label' => esc_html__( 'Popup Background', 'kadence-pro' ), 'default' => kadence()->default( 'product_filter_widget_pop_background' ), 'live_method' => array( array( 'type' => 'css_background', 'selector' => '#filter-drawer .drawer-inner', 'property' => 'background', 'pattern' => '$', 'key' => 'base', ), ), 'context' => array( array( 'setting' => '__current_tab', 'value' => 'general', ), ), 'input_attrs' => array( 'tooltip' => __( 'Popup Background', 'kadence-pro' ), ), ), 'product_filter_widget_close_color' => array( 'control_type' => 'kadence_color_control', 'section' => 'sidebar-widgets-product-filter', 'label' => esc_html__( 'Close Toggle Colors', 'kadence-pro' ), 'default' => kadence()->default( 'product_filter_widget_close_color' ), 'live_method' => array( array( 'type' => 'css', 'selector' => '#filter-drawer .drawer-header .drawer-toggle', 'property' => 'color', 'pattern' => '$', 'key' => 'color', ), array( 'type' => 'css', 'selector' => '#filter-drawer .drawer-header .drawer-toggle:hover', 'property' => 'color', 'pattern' => '$', 'key' => 'hover', ), ), 'context' => array( array( 'setting' => '__current_tab', 'value' => 'general', ), ), 'input_attrs' => array( 'colors' => array( 'color' => array( 'tooltip' => __( 'Initial Color', 'kadence-pro' ), 'palette' => true, ), 'hover' => array( 'tooltip' => __( 'Hover Color', 'kadence-pro' ), 'palette' => true, ), ), ), ), ); Theme_Customizer::add_settings( $widget_settings );
💾 Save Changes
❌ Cancel