start_controls_section( 'abcbiz_elementor_counter_section', [ 'label' => esc_html__('Counter', 'abcbiz-addons'), 'tab' => Controls_Manager::TAB_CONTENT, ] ); // counter title $this->add_control( 'abcbiz_elementor_counter_title', [ 'label' => esc_html__('Title', 'abcbiz-addons'), 'type' => Controls_Manager::TEXT, 'default' => esc_html__('Our Clients', 'abcbiz-addons'), 'label_block' => true, ] ); // counter number $this->add_control( 'abcbiz_elementor_counter_number', [ 'label' => esc_html__('Number', 'abcbiz-addons'), 'type' => Controls_Manager::NUMBER, 'default' => esc_html__('100', 'abcbiz-addons'), ] ); // counter icon $this->add_control( 'abcbiz_elementor_counter_icon', [ 'label' => esc_html__('Icon', 'abcbiz-addons'), 'type' => Controls_Manager::ICONS, ] ); // counter suffix $this->add_control( 'abcbiz_elementor_counter_suffix', [ 'label' => esc_html__('Suffix', 'abcbiz-addons'), 'type' => Controls_Manager::TEXT, 'default' => esc_html__('+', 'abcbiz-addons'), 'label_block' => true, ] ); //Alignment $this->add_responsive_control( 'abcbiz_elementor_counter_icon_align', [ 'label' => esc_html__( 'Alignment', 'abcbiz-addons'), 'type' => Controls_Manager::CHOOSE, 'default' => 'center', 'options' => [ 'left' => [ 'title' => esc_html__( 'Left', 'abcbiz-addons' ), 'icon' => 'eicon-text-align-left', ], 'center' => [ 'title' => esc_html__( 'Center', 'abcbiz-addons' ), 'icon' => 'eicon-text-align-center', ], 'right' => [ 'title' => esc_html__( 'Right', 'abcbiz-addons' ), 'icon' => 'eicon-text-align-right', ], ], 'selectors' => [ '{{WRAPPER}} .abcbiz-ele-countdown-wrap' => 'text-align: {{VALUE}}', ], ] ); // end of counter section $this->end_controls_section(); // start of counter style section $this->start_controls_section( 'abcbiz_elementor_counter_style_section', [ 'label' => esc_html__('Style', 'abcbiz-addons'), 'tab' => Controls_Manager::TAB_STYLE, ] ); //counter box padding $this->add_responsive_control( 'abcbiz_elementor_counter_box_padding', [ 'label' => esc_html__('Box Padding', 'abcbiz-addons'), 'type' => Controls_Manager::DIMENSIONS, 'size_units' => ['px', '%'], 'selectors' => [ '{{WRAPPER}} .abcbiz-ele-countdown-wrap' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', ], ] ); // counter title color $this->add_control( 'abcbiz_elementor_counter_title_color', [ 'label' => esc_html__('Title Color', 'abcbiz-addons'), 'type' => Controls_Manager::COLOR, 'default' => '#000000', 'selectors' => [ '{{WRAPPER}} .abcbiz-ele-count-title h3' => 'color: {{VALUE}};', ], ] ); // counter title typography $this->add_group_control( Group_Control_Typography::get_type(), [ 'name' => 'abcbiz_elementor_counter_title_typography', 'label' => esc_html__('Title Typography', 'abcbiz-addons'), 'selector' => '{{WRAPPER}} .abcbiz-ele-count-title h3', ] ); // counter number color $this->add_control( 'abcbiz_elementor_counter_number_color', [ 'label' => esc_html__('Number Color', 'abcbiz-addons'), 'type' => Controls_Manager::COLOR, 'default' => '#000000', 'selectors' => [ '{{WRAPPER}} .abcbiz-ele-counter .abcbiz-counter' => 'color: {{VALUE}};', '{{WRAPPER}} .abcbiz-ele-counter-suffix' => 'color: {{VALUE}};', ], ] ); // counter number typography $this->add_group_control( Group_Control_Typography::get_type(), [ 'name' => 'abcbiz_elementor_counter_number_typography', 'label' => esc_html__('Number Typography', 'abcbiz-addons'), 'selector' => '{{WRAPPER}} .abcbiz-ele-counter span.abcbiz-counter, {{WRAPPER}} .abcbiz-ele-counter-suffix', ] ); // counter icon color $this->add_control( 'abcbiz_elementor_counter_icon_color', [ 'label' => esc_html__('Icon Color', 'abcbiz-addons'), 'type' => Controls_Manager::COLOR, 'default' => '#59A818', 'selectors' => [ '{{WRAPPER}} .abcbiz-ele-countdown-wrap span.abcbiz-counter-icon i' => 'color: {{VALUE}};', '{{WRAPPER}} .abcbiz-ele-countdown-wrap span.abcbiz-counter-icon svg' => 'fill: {{VALUE}};', ], ] ); // counter icon size $this->add_responsive_control( 'abcbiz_elementor_counter_icon_size', [ 'label' => esc_html__('Icon Size', 'abcbiz-addons'), 'type' => Controls_Manager::SLIDER, 'size_units' => ['px', '%'], 'default' => [ 'size' => 30, ], 'range' => [ 'px' => [ 'min' => 10, 'max' => 200, ], ], 'selectors' => [ '{{WRAPPER}} .abcbiz-ele-countdown-wrap span.abcbiz-counter-icon i' => 'font-size: {{SIZE}}{{UNIT}};', '{{WRAPPER}} .abcbiz-ele-countdown-wrap span.abcbiz-counter-icon svg' => 'width: {{SIZE}}{{UNIT}};height: {{SIZE}}{{UNIT}};', ], ] ); // counter icon background color $this->add_control( 'abcbiz_elementor_counter_icon_bg_color', [ 'label' => esc_html__('Icon Background Color', 'abcbiz-addons'), 'type' => Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .abcbiz-ele-countdown-wrap span.abcbiz-counter-icon i' => 'background-color: {{VALUE}};', '{{WRAPPER}} .abcbiz-ele-countdown-wrap span.abcbiz-counter-icon svg' => 'background-color: {{VALUE}};', ], ] ); // counter icon border $this->add_group_control( Group_Control_Border::get_type(), [ 'name' => 'abcbiz_elementor_counter_icon_border', 'selector' => '{{WRAPPER}} .abcbiz-ele-countdown-wrap span.abcbiz-counter-icon i, {{WRAPPER}} .abcbiz-ele-countdown-wrap span.abcbiz-counter-icon svg', ] ); // counter icon border radius $this->add_responsive_control( 'abcbiz_elementor_counter_icon_border_radius', [ 'label' => esc_html__('Icon Border Radius', 'abcbiz-addons'), 'type' => Controls_Manager::DIMENSIONS, 'size_units' => ['px', '%'], 'selectors' => [ '{{WRAPPER}} .abcbiz-ele-countdown-wrap span.abcbiz-counter-icon i' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', '{{WRAPPER}} .abcbiz-ele-countdown-wrap span.abcbiz-counter-icon svg' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', ], ] ); // counter icon padding $this->add_responsive_control( 'abcbiz_elementor_counter_icon_padding', [ 'label' => esc_html__('Icon Padding', 'abcbiz-addons'), 'type' => Controls_Manager::DIMENSIONS, 'size_units' => ['px', '%'], 'selectors' => [ '{{WRAPPER}} .abcbiz-ele-countdown-wrap span.abcbiz-counter-icon i' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', '{{WRAPPER}} .abcbiz-ele-countdown-wrap span.abcbiz-counter-icon svg' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', ], ] ); // counter icon margin $this->add_responsive_control( 'abcbiz_elementor_counter_icon_margin', [ 'label' => esc_html__('Icon Margin', 'abcbiz-addons'), 'type' => Controls_Manager::DIMENSIONS, 'size_units' => ['px', '%'], 'selectors' => [ '{{WRAPPER}} .abcbiz-ele-countdown-wrap span.abcbiz-counter-icon i' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', '{{WRAPPER}} .abcbiz-ele-countdown-wrap span.abcbiz-counter-icon svg' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', ], ] ); // end of counter style section $this->end_controls_section(); // start of counter hover style section $this->start_controls_section( 'abcbiz_elementor_counter_hover_style_section', [ 'label' => esc_html__('Hover', 'abcbiz-addons'), 'tab' => Controls_Manager::TAB_STYLE, ] ); // counter title hover color $this->add_control( 'abcbiz_elementor_counter_title_hover_color', [ 'label' => esc_html__('Title Color', 'abcbiz-addons'), 'type' => Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .abcbiz-ele-countdown-wrap:hover .abcbiz-ele-count-title h3' => 'color: {{VALUE}};', ], ] ); // counter number hover color $this->add_control( 'abcbiz_elementor_counter_number_hover_color', [ 'label' => esc_html__('Number Color', 'abcbiz-addons'), 'type' => Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .abcbiz-ele-countdown-wrap:hover .abcbiz-counter' => 'color: {{VALUE}};', '{{WRAPPER}} .abcbiz-ele-countdown-wrap:hover .abcbiz-ele-counter-suffix' => 'color: {{VALUE}};', ], ] ); // counter icon hover color $this->add_control( 'abcbiz_elementor_counter_icon_hover_color', [ 'label' => esc_html__('Icon Color', 'abcbiz-addons'), 'type' => Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .abcbiz-ele-countdown-wrap:hover span.abcbiz-counter-icon i' => 'color: {{VALUE}};', '{{WRAPPER}} .abcbiz-ele-countdown-wrap:hover span.abcbiz-counter-icon svg' => 'fill: {{VALUE}};', ], ] ); // counter icon hover background color $this->add_control( 'abcbiz_elementor_counter_icon_hover_bg_color', [ 'label' => esc_html__('Icon Background Color', 'abcbiz-addons'), 'type' => Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .abcbiz-ele-countdown-wrap:hover span.abcbiz-counter-icon i' => 'background-color: {{VALUE}};', '{{WRAPPER}} .abcbiz-ele-countdown-wrap:hover span.abcbiz-counter-icon svg' => 'background-color: {{VALUE}};', ], ] ); // counter icon hover border color $this->add_control( 'abcbiz_elementor_counter_icon_hover_border_color', [ 'label' => esc_html__('Icon Border Color', 'abcbiz-addons'), 'type' => Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .abcbiz-ele-countdown-wrap:hover span.abcbiz-counter-icon i' => 'border-color: {{VALUE}};', '{{WRAPPER}} .abcbiz-ele-countdown-wrap:hover span.abcbiz-counter-icon svg' => 'border-color: {{VALUE}};', ], ] ); // end of counter hover style section $this->end_controls_section(); } /** * Render the widget output on the frontend. */ protected function render() { include 'RenderView.php'; } }