start_controls_section( 'abcbiz_elementor_wc_product_cart_icon', [ 'label' => esc_html__( 'Style', 'abcbiz-addons' ), 'tab' => Controls_Manager::TAB_STYLE, ] ); //Icon Size $this->add_responsive_control( 'abcbiz_elementor_wc_product_cart_icon_size', [ 'label' => esc_html__( 'Icon Size', 'abcbiz-addons' ), 'type' => \Elementor\Controls_Manager::SLIDER, 'size_units' => [ 'px'], 'range' => [ 'px' => [ 'min' => 10, 'max' => 100, 'step' => 1, ], ], 'default' => [ 'unit' => 'px', 'size' => 24, ], 'selectors' => [ '{{WRAPPER}} .abcbiz-elementor-wc-cart-icon .abcbiz-cart-contents .eicon-cart-solid' => 'font-size: {{SIZE}}{{UNIT}};', ], ] ); //Icon Color $this->add_control( 'abcbiz_elementor_wc_product_cart_icon_color', [ 'label' => esc_html__( 'Icon Color', 'abcbiz-addons' ), 'type' => Controls_Manager::COLOR, 'default' => '#333333', 'selectors' => [ '{{WRAPPER}} .abcbiz-elementor-wc-cart-icon .abcbiz-cart-contents .eicon-cart-solid' => 'color: {{VALUE}}', ], ] ); //Icon Hover Color $this->add_control( 'abcbiz_elementor_wc_product_cart_icon_hov_color', [ 'label' => esc_html__( 'Icon Hover Color', 'abcbiz-addons' ), 'type' => Controls_Manager::COLOR, 'default' => '#873ff0', 'selectors' => [ '{{WRAPPER}} .abcbiz-elementor-wc-cart-icon:hover .abcbiz-cart-contents .eicon-cart-solid' => 'color: {{VALUE}}', ], ] ); //Counter $this->add_control( 'abcbiz_elementor_wc_product_cart_count_switch', [ 'label' => esc_html__('Display Counter?', 'abcbiz-addons'), 'type' => Controls_Manager::SWITCHER, 'label_on' => esc_html__('Show', 'abcbiz-addons'), 'label_off' => esc_html__('Hide', 'abcbiz-addons'), 'return_value' => 'yes', 'default' => 'yes', ] ); //Count BG Color $this->add_control( 'abcbiz_elementor_wc_product_cart_count_bg_color', [ 'label' => esc_html__( 'Counter BG Color', 'abcbiz-addons' ), 'type' => Controls_Manager::COLOR, 'default' => '#873ff0', 'selectors' => [ '{{WRAPPER}} .abcbiz-elementor-wc-cart-icon .abcbiz-cart-contents .abcbiz-cart-contents-count' => 'background-color: {{VALUE}}', ], 'condition' => [ 'abcbiz_elementor_wc_product_cart_count_switch' => 'yes', ], ] ); //Count BG Hover Color $this->add_control( 'abcbiz_elementor_wc_product_cart_count_bg_hover_color', [ 'label' => esc_html__( 'Counter BG Hover Color', 'abcbiz-addons' ), 'type' => Controls_Manager::COLOR, 'default' => '#005ab4', 'selectors' => [ '{{WRAPPER}} .abcbiz-elementor-wc-cart-icon:hover .abcbiz-cart-contents .abcbiz-cart-contents-count' => 'background-color: {{VALUE}}', ], 'condition' => [ 'abcbiz_elementor_wc_product_cart_count_switch' => 'yes', ], ] ); //Number Color $this->add_control( 'abcbiz_elementor_wc_product_cart_count_color', [ 'label' => esc_html__( 'Number Color', 'abcbiz-addons' ), 'type' => Controls_Manager::COLOR, 'default' => '#ffffff', 'selectors' => [ '{{WRAPPER}} .abcbiz-elementor-wc-cart-icon .abcbiz-cart-contents .abcbiz-cart-contents-count' => 'color: {{VALUE}}', ], 'condition' => [ 'abcbiz_elementor_wc_product_cart_count_switch' => 'yes', ], ] ); //Number Hover Color $this->add_control( 'abcbiz_elementor_wc_product_cart_count_hov_color', [ 'label' => esc_html__( 'Number Hover Color', 'abcbiz-addons' ), 'type' => Controls_Manager::COLOR, 'default' => '#ffffff', 'selectors' => [ '{{WRAPPER}} .abcbiz-elementor-wc-cart-icon:hover .abcbiz-cart-contents .abcbiz-cart-contents-count' => 'color: {{VALUE}}', ], 'condition' => [ 'abcbiz_elementor_wc_product_cart_count_switch' => 'yes', ], ] ); //Count Size $this->add_responsive_control( 'abcbiz_elementor_wc_product_cart_count_size', [ 'label' => esc_html__( 'Counter Size', 'abcbiz-addons' ), 'type' => \Elementor\Controls_Manager::SLIDER, 'size_units' => [ 'px'], 'range' => [ 'px' => [ 'min' => 5, 'max' => 60, 'step' => 1, ], ], 'default' => [ 'unit' => 'px', 'size' => 20, ], 'selectors' => [ '{{WRAPPER}} .abcbiz-elementor-wc-cart-icon .abcbiz-cart-contents .abcbiz-cart-contents-count' => 'width: {{SIZE}}{{UNIT}}; height: {{SIZE}}{{UNIT}};', ], 'condition' => [ 'abcbiz_elementor_wc_product_cart_count_switch' => 'yes', ], ] ); //Count font Size $this->add_responsive_control( 'abcbiz_elementor_wc_product_cart_count_font_size', [ 'label' => esc_html__( 'Number Font Size', 'abcbiz-addons' ), 'type' => \Elementor\Controls_Manager::SLIDER, 'size_units' => [ 'px'], 'range' => [ 'px' => [ 'min' => 8, 'max' => 40, 'step' => 1, ], ], 'default' => [ 'unit' => 'px', 'size' => 12, ], 'selectors' => [ '{{WRAPPER}} .abcbiz-elementor-wc-cart-icon .abcbiz-cart-contents .abcbiz-cart-contents-count' => 'font-size: {{SIZE}}{{UNIT}};', ], 'condition' => [ 'abcbiz_elementor_wc_product_cart_count_switch' => 'yes', ], ] ); //Counter position $this->add_responsive_control( 'abcbiz_elementor_wc_product_cart_count_pos', [ 'label' => esc_html__( 'Counter Position', 'abcbiz-addons' ), 'type' => \Elementor\Controls_Manager::SLIDER, 'size_units' => [ 'px'], 'range' => [ 'px' => [ 'min' => -30, 'max' => 30, 'step' => 1, ], ], 'default' => [ 'unit' => 'px', 'size' => -10, ], 'selectors' => [ '{{WRAPPER}} .abcbiz-elementor-wc-cart-icon .abcbiz-cart-contents .abcbiz-cart-contents-count' => 'margin-top: {{SIZE}}{{UNIT}};', ], 'condition' => [ 'abcbiz_elementor_wc_product_cart_count_switch' => 'yes', ], ] ); $this->end_controls_section(); } /** * Render the widget output on the frontend. */ protected function render() { include 'renderview.php'; } }