/home/techb158/l2hypotheques.com/wp-content/plugins/pyloncore/elementor/widgets
Edit: /home/techb158/l2hypotheques.com/wp-content/plugins/pyloncore/elementor/widgets/counter-box.php (16659B)
start_controls_section('pylon_counter_options', [
'label' => esc_html__('counter','pyloncore'),
'tab' => Controls_Manager::TAB_CONTENT,
]);
$this->add_responsive_control(
'pylon_counter_box_style_select',
[
'label' => esc_html__( 'Select Style', 'pyloncore' ),
'type' => \Elementor\Controls_Manager::SELECT,
'default' => 'one',
'options' => [
'one' => esc_html__( 'Style One', 'pyloncore' ),
'two' => esc_html__( 'Style Two', 'pyloncore' ),
'three' => esc_html__( 'Style Three', 'pyloncore' ),
],
]
);
$this->add_control(
'pylon_counter_box_align',
[
'label' => esc_html__( 'Alignment', 'pyloncore' ),
'type' => \Elementor\Controls_Manager::CHOOSE,
'options' => [
'left' => [
'title' => esc_html__( 'Left', 'pyloncore' ),
'icon' => 'eicon-text-align-left',
],
'center' => [
'title' => esc_html__( 'Center', 'pyloncore' ),
'icon' => 'eicon-text-align-center',
],
'right' => [
'title' => esc_html__( 'Right', 'pyloncore' ),
'icon' => 'eicon-text-align-right',
],
'space-around' => [
'title' => esc_html__( 'Space-around', 'pyloncore' ),
'icon' => ' eicon-justify-space-around-h',
],
'space-between' => [
'title' => esc_html__( 'Space-between', 'pyloncore' ),
'icon' => 'eicon-justify-space-between-h',
],
'space-evenly' => [
'title' => esc_html__( 'Space-evenly', 'pyloncore' ),
'icon' => 'eicon-justify-space-evenly-h',
],
],
'default' => 'center',
'toggle' => true,
'selectors' => [
'{{WRAPPER}} .counter-two__list' => 'justify-content: {{VALUE}};',
],
]
);
$repeater = new \Elementor\Repeater();
$repeater->add_control(
'pylon_counter_box_icon',
[
'label' => esc_html__( 'Icon', 'pyloncore' ),
'type' => \Elementor\Controls_Manager::ICONS,
]
);
$repeater->add_control(
'pylon_counter_box_number',
[
'label' => esc_html__( 'Number', 'pyloncore' ),
'type' => \Elementor\Controls_Manager::NUMBER,
'min' => 1,
'max' => 10000,
'step' => 1,
'default' => 99,
]
);
$repeater->add_control(
'pylon_counter_box_symble',
[
'label' => esc_html__( 'Symbol', 'pyloncore' ),
'type' => \Elementor\Controls_Manager::TEXT,
'default' => esc_html__( '%', 'pyloncore' ),
]
);
$repeater->add_control(
'pylon_counter_box_title',
[
'label' => esc_html__( 'Title', 'pyloncore' ),
'type' => \Elementor\Controls_Manager::TEXT,
'default' => esc_html__('Award Winning', 'pyloncore' ),
]
);
$this->add_control(
'pylon_counter_box',
[
'label' => esc_html__( 'Testimonial List', 'pyloncore' ),
'type' => \Elementor\Controls_Manager::REPEATER,
'fields' => $repeater->get_controls(),
'default' => [
[
'pylon_counter_box_icon' => esc_html__( 'Clydepylon-two-icon-loan', 'pyloncore' ),
],
],
]
);
$this->end_controls_section();
$this->start_controls_section(
'pylon_counter_box__style',
[
'label' => esc_html__( 'Box', 'pyloncore' ),
'tab' => Controls_Manager::TAB_STYLE,
'condition' => [
'pylon_counter_box_style_select' => 'two',
],
]
);
$this->add_responsive_control(
'pylon_counter_box__padding',
[
'label' => esc_html__( 'Padding', 'pyloncore' ),
'type' => Controls_Manager::DIMENSIONS,
'size_units' => ['px', '%', 'em'],
'selectors' => [
'{{WRAPPER}} .about-five__content-bottom-right' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
],
]
);
$this->add_group_control(
\Elementor\Group_Control_Background::get_type(),
[
'name' => 'pylon_counter_box__background',
'types' => [ 'classic', 'gradient', 'video' ],
'selector' => '{{WRAPPER}} .about-five__content-bottom-right',
]
);
$this->end_controls_section();
$this->start_controls_section(
'pylon_counter_box_inner_style',
[
'label' => esc_html__( 'inner', 'pyloncore' ),
'tab' => Controls_Manager::TAB_STYLE,
'condition' => [
'pylon_counter_box_style_select' => 'two',
],
]
);
$this->add_group_control(
\Elementor\Group_Control_Background::get_type(),
[
'name' => 'pylon_counter_box_inner_background',
'types' => [ 'classic', 'gradient', 'video' ],
'selector' => '{{WRAPPER}} .about-five__content-bottom-right .inner',
]
);
$this->add_group_control(
\Elementor\Group_Control_Border::get_type(),
[
'name' => 'border',
'selector' => '{{WRAPPER}} .about-five__content-bottom-right .inner',
]
);
$this->add_responsive_control(
'pylon_counter_box_inner__padding',
[
'label' => esc_html__( 'Padding', 'pyloncore' ),
'type' => Controls_Manager::DIMENSIONS,
'size_units' => ['px', '%', 'em'],
'selectors' => [
'{{WRAPPER}} .about-five__content-bottom-right .inner' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
],
]
);
$this->end_controls_section();
$this->start_controls_section(
'pylon_counter_box_amount_style',
[
'label' => esc_html__( 'Number', 'pyloncore' ),
'tab' => Controls_Manager::TAB_STYLE,
]
);
$this->add_responsive_control(
'pylon_counter_box_amount_color',
[
'label' => esc_html__( 'Color', 'pyloncore' ),
'type' => \Elementor\Controls_Manager::COLOR,
'selectors' => [
'{{WRAPPER}} .counter-two__list li .text-box h3,{{WRAPPER}} .about-five__content-bottom-right-top .counter-box h2,{{WRAPPER}} .counter-three__inner ul li h2' => 'color: {{VALUE}}',
],
]
);
$this->add_group_control(
\Elementor\Group_Control_Typography::get_type(),
[
'name' => 'pylon_counter_box_amount_typo',
'label' => esc_html__( 'Typography', 'pyloncore' ),
'selector' => '{{WRAPPER}} .counter-two__list li .text-box h3,{{WRAPPER}} .about-five__content-bottom-right-top .counter-box h2,{{WRAPPER}} .counter-three__inner ul li h2',
]
);
$this->add_responsive_control(
'pylon_counter_box_number_padding',
[
'label' => esc_html__( 'Padding', 'pyloncore' ),
'type' => Controls_Manager::DIMENSIONS,
'size_units' => ['px', '%', 'em'],
'selectors' => [
'{{WRAPPER}} .counter-two__list li .text-box h3,{{WRAPPER}} .about-five__content-bottom-right-top .counter-box h2,{{WRAPPER}} .counter-three__inner ul li h2' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
],
]
);
$this->end_controls_section();
$this->start_controls_section(
'pylon_counter_box_Icon_style',
[
'label' => esc_html__( 'Icon', 'pyloncore' ),
'tab' => Controls_Manager::TAB_STYLE,
]
);
$this->add_responsive_control(
'pylon_counter_box_Icon_color',
[
'label' => esc_html__( 'Color', 'pyloncore' ),
'type' => \Elementor\Controls_Manager::COLOR,
'selectors' => [
'{{WRAPPER}} .counter-two__list li .icon-box span::before,
{{WRAPPER}} .about-five__content-bottom-right-top .icon-box span i::before' => 'color: {{VALUE}}',
],
]
);
$this->add_group_control(
\Elementor\Group_Control_Background::get_type(),
[
'name' => 'pylon_counter_box_Icon_bg',
'label' => esc_html__( 'Background', 'pyloncore' ),
'types' => [ 'gradient' ],
'selector' => '{{WRAPPER}} .counter-two__list li .icon-box,{{WRAPPER}} .about-five__content-bottom-right-top .icon-box',
]
);
$this->add_responsive_control(
'pylon_counter_box_icon_size',
[
'label' => esc_html__( 'Icon Size', 'pyloncore' ),
'type' => Controls_Manager::SLIDER,
'size_units' => ['px'],
'range' => [
'px' => [
'min' => 20,
'max' => 150,
'step' => 1,
],
],
'selectors' => [
'{{WRAPPER}} .counter-two__list li .icon-box span::before,
{{WRAPPER}} .about-five__content-bottom-right-top .icon-box span i::before' => 'font-size: {{SIZE}}{{UNIT}};',
],
]
);
$this->add_group_control(
\Elementor\Group_Control_Border::get_type(),
[
'name' => 'pylon_counter_box_border',
'selector' => '{{WRAPPER}} .counter-two__list li .icon-box,{{WRAPPER}} .about-five__content-bottom-right-top .icon-box',
]
);
$this->end_controls_section();
$this->start_controls_section(
'pylon_counter_box_title',
[
'label' => esc_html__( 'Title', 'pyloncore' ),
'tab' => Controls_Manager::TAB_STYLE,
]
);
$this->add_group_control(
\Elementor\Group_Control_Typography::get_type(),
[
'name' => 'pylon_counter_box_title_typo',
'label' => esc_html__( 'Typography', 'pyloncore' ),
'selector' => '{{WRAPPER}} .counter-two__list li .text-box p,{{WRAPPER}} .about-five__content-bottom-right .inner .text-box p,{{WRAPPER}} .counter-three__inner ul li p',
]
);
$this->add_responsive_control(
'pylon_counter_box_titl_color',
[
'label' => esc_html__( 'Color', 'pyloncore' ),
'type' => \Elementor\Controls_Manager::COLOR,
'selectors' => [
'{{WRAPPER}} .counter-two__list li .text-box p,{{WRAPPER}} .about-five__content-bottom-right .inner .text-box p,{{WRAPPER}} .counter-three__inner ul li p' => 'color: {{VALUE}}',
],
]
);
$this->add_responsive_control(
'pylon_counter_box_titl_hover_color',
[
'label' => esc_html__( 'Color', 'pyloncore' ),
'type' => \Elementor\Controls_Manager::COLOR,
'selectors' => [
'{{WRAPPER}} .counter-two__list li .text-box p:hover,{{WRAPPER}} .about-five__content-bottom-right .inner .text-box p:hover,{{WRAPPER}} .counter-three__inner ul li p:hover' => 'color: {{VALUE}}',
],
]
);
$this->add_responsive_control(
'pylon_counter_box_title_padding',
[
'label' => esc_html__( 'Padding', 'pyloncore' ),
'type' => Controls_Manager::DIMENSIONS,
'size_units' => ['px', '%', 'em'],
'selectors' => [
'{{WRAPPER}} .counter-two__list li .text-box p,{{WRAPPER}} .about-five__content-bottom-right .inner .text-box p,{{WRAPPER}} .counter-three__inner ul li p' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
],
]
);
$this->end_controls_section();
}
protected function render() {
$settings = $this->get_settings_for_display(); ?>
jQuery(document).ready(function($) {
"use strict";
if (jQuery(".odometer").length) {
jQuery(".odometer").appear(function(e) {
var odo = jQuery(".odometer");
odo.each(function() {
var countNumber = jQuery(this).attr("data-count");
jQuery(this).html(countNumber);
});
});
}
});
';
}
}
Plugin::instance()->widgets_manager->register_widget_type( new pylon_Counter_Box_Widget );