/home/techb158/l2hypotheques.com/wp-content/plugins/pyloncore/elementor/widgets
Edit: /home/techb158/l2hypotheques.com/wp-content/plugins/pyloncore/elementor/widgets/progress-widget.php (15577B)
start_controls_section(
'pylon_progress_main_options',
[
'label' => esc_html__( 'Pylon Progress', 'pyloncore' ),
'tab' => Controls_Manager::TAB_CONTENT,
]
);
$this->add_control(
'pylon_progress_options_style',
[
'label' => esc_html__('pylon progress Style','pyloncore'),
'type' => \Elementor\Controls_Manager::SELECT,
'options' => [
'one' => esc_html__('Style One' ,'pyloncore'),
'two' => esc_html__('Style two' ,'pyloncore'),
],
'default' => 'one'
]
);
$this->end_controls_section();
$this->start_controls_section(
'pylon_progress_options',
[
'label' => esc_html__( 'Pylon Progress', 'pyloncore' ),
'tab' => Controls_Manager::TAB_CONTENT,
'condition' => [
'pylon_progress_options_style' => 'one',
],
]
);
$this->add_control(
'pylon_progress_title',
[
'label' => esc_html__( 'Title', 'pyloncore' ),
'type' => \Elementor\Controls_Manager::TEXT,
'default' => esc_html__( 'Loan Process', 'pyloncore' ),
]
);
$this->add_control(
'pylon_progress_number',
[
'label' => esc_html__( 'Number', 'pyloncore' ),
'type' => \Elementor\Controls_Manager::NUMBER,
'min' => 1,
'max' => 100,
'step' => 1,
'default' => 90,
]
);
$this->add_control(
'pylon_progress_symbol',
[
'label' => esc_html__( 'Symbol', 'pyloncore' ),
'type' => \Elementor\Controls_Manager::TEXT,
'default' => esc_html__( '%', 'pyloncore' ),
]
);
$this->end_controls_section();
$this->start_controls_section(
'pylon_progress__two_options',
[
'label' => esc_html__( 'Pylon Progress', 'pyloncore' ),
'tab' => Controls_Manager::TAB_CONTENT,
'condition' => [
'pylon_progress_options_style' => 'two',
],
]
);
$repeater = new \Elementor\Repeater();
$repeater->add_control(
'pylon_progress_two_number',
[
'label' => esc_html__( 'Number', 'pyloncore' ),
'type' => \Elementor\Controls_Manager::NUMBER,
'min' => 1,
'max' => 100,
'step' => 1,
'default' => 90,
]
);
$repeater->add_control(
'pylon_progress_two_symbol',
[
'label' => esc_html__( 'Symbol', 'pyloncore' ),
'type' => \Elementor\Controls_Manager::TEXT,
'default' => esc_html__( '%', 'pyloncore' ),
]
);
$repeater->add_control(
'pylon_progress_two_title',
[
'label' => esc_html__( 'Title', 'pyloncore' ),
'type' => \Elementor\Controls_Manager::TEXT,
'default' => esc_html__( 'Loan Process', 'pyloncore' ),
]
);
$this->add_control(
'pylon_shapes_two',
[
'label' => esc_html__( 'Shape List', 'pyloncore' ),
'type' => \Elementor\Controls_Manager::REPEATER,
'fields' => $repeater->get_controls(),
'default' => [
[
],
],
]
);
$this->end_controls_section();
$this->start_controls_section(
'pylon_progress_css_options',
[
'label' => esc_html__( 'Title', 'pyloncore' ),
'tab' => Controls_Manager::TAB_STYLE,
]
);
$this->add_responsive_control(
'pylon_progress_title_color',
[
'label' => esc_html__( 'Title Color', 'pyloncore' ),
'type' => \Elementor\Controls_Manager::COLOR,
'selectors' => [
'{{WRAPPER}} .why-choose__progress-top h3,{{WRAPPER}} .why-choose-two__progress__title' => 'color: {{VALUE}}',
],
]
);
$this->add_group_control(
\Elementor\Group_Control_Typography::get_type(),
[
'name' => 'pylon_progress_title_typo',
'label' => esc_html__( 'Typography', 'pyloncore' ),
'selector' => '{{WRAPPER}} .why-choose__progress-top h3,{{WRAPPER}} .why-choose-two__progress__title',
]
);
$this->add_responsive_control(
'pylon_progress_title_margin',
[
'label' => esc_html__( 'Margin', 'pyloncore' ),
'type' => Controls_Manager::DIMENSIONS,
'size_units' => ['px', '%', 'em'],
'default' => [
'top' => '0',
'right' => '0',
'bottom' => '7',
'left' => '0',
'isLinked' => true,
],
'selectors' => [
'{{WRAPPER}} .why-choose__progress-top,{{WRAPPER}} .why-choose-two__progress__title' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
],
]
);
$this->add_responsive_control(
'pylon_progress_title_padding',
[
'label' => esc_html__( 'Margin', 'pyloncore' ),
'type' => Controls_Manager::DIMENSIONS,
'size_units' => ['px', '%', 'em'],
'default' => [
'top' => '0',
'right' => '0',
'bottom' => '7',
'left' => '0',
'isLinked' => true,
],
'selectors' => [
'{{WRAPPER}} .why-choose__progress-top,{{WRAPPER}} .why-choose-two__progress__title' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
],
]
);
$this->end_controls_section();
$this->start_controls_section(
'pylon_progress_number_options_css',
[
'label' => esc_html__( 'Number', 'pyloncore' ),
'tab' => Controls_Manager::TAB_STYLE,
]
);
$this->add_group_control(
\Elementor\Group_Control_Background::get_type(),
[
'name' => 'pylon_progress_number_background',
'types' => [ 'classic', 'gradient', 'video' ],
'selector' => '{{WRAPPER}} .why-choose-two__progress__box>span',
]
);
$this->add_responsive_control(
'pylon_progress_number_color',
[
'label' => esc_html__( 'Number Color', 'pyloncore' ),
'type' => \Elementor\Controls_Manager::COLOR,
'selectors' => [
'{{WRAPPER}} .why-choose__progress-top span
,{{WRAPPER}} .why-choose-two__progress__box > span' => 'color: {{VALUE}}',
],
]
);
$this->add_group_control(
\Elementor\Group_Control_Typography::get_type(),
[
'name' => 'pylon_progress_number_typo',
'label' => esc_html__( 'Number Typography', 'pyloncore' ),
'selector' => '{{WRAPPER}} .why-choose__progress-top span,{{WRAPPER}} .why-choose-two__progress__box > span',
]
);
$this->end_controls_section();
$this->start_controls_section(
'pylon_progress_bar_options_css',
[
'label' => esc_html__( 'Progress Bar', 'pyloncore' ),
'tab' => Controls_Manager::TAB_STYLE,
]
);
$this->add_responsive_control(
'pylon_progress_bar_bg',
[
'label' => esc_html__( 'Background Color', 'pyloncore' ),
'type' => \Elementor\Controls_Manager::COLOR,
'selectors' => [
'{{WRAPPER}} .why-choose__progress-bar' => 'background-color: {{VALUE}}',
],
]
);
$this->add_responsive_control(
'pylon_progress_bar_height',
[
'label' => esc_html__( 'Height', 'pyloncore' ),
'type' => Controls_Manager::SLIDER,
'size_units' => ['px'],
'range' => [
'px' => [
'min' => 1,
'max' => 13,
'step' => 1,
],
],
'default' => [
'unit' => 'px',
'size' => 4,
],
'selectors' => [
'{{WRAPPER}} .why-choose__progress-bar' => 'height: {{SIZE}}{{UNIT}};',
],
]
);
$this->add_responsive_control(
'pylon_progress_bar_radius',
[
'label' => esc_html__( 'Border Radius', 'pyloncore' ),
'type' => Controls_Manager::SLIDER,
'size_units' => ['px'],
'range' => [
'px' => [
'min' => 0,
'max' => 100,
'step' => 1,
],
],
'default' => [
'unit' => 'px',
'size' => 4,
],
'selectors' => [
'{{WRAPPER}} .why-choose__progress-bar' => 'border-radius: {{SIZE}}{{UNIT}};',
],
]
);
$this->add_control(
'pylon_progress_note',
[
'label' => esc_html__( 'Active Color', 'pyloncore' ),
'type' => \Elementor\Controls_Manager::HEADING,
'separator' => 'before',
]
);
$this->add_group_control(
\Elementor\Group_Control_Background::get_type(),
[
'name' => 'background',
'label' => esc_html__( 'Background', 'pyloncore' ),
'types' => ['classic', 'gradient', 'video'],
'selector' => '{{WRAPPER}} .why-choose__progress-bar > span',
]
);
$this->add_responsive_control(
'pylon_progress_bar_aradius',
[
'label' => esc_html__( 'Active Border Radius', 'pyloncore' ),
'type' => Controls_Manager::SLIDER,
'size_units' => ['px'],
'range' => [
'px' => [
'min' => 0,
'max' => 100,
'step' => 1,
],
],
'default' => [
'unit' => 'px',
'size' => 4,
],
'selectors' => [
'{{WRAPPER}} .why-choose__progress-bar > span' => 'border-radius: {{SIZE}}{{UNIT}};',
],
]
);
$this->end_controls_section();
}
//Render
protected function render() {
$settings = $this->get_settings_for_display();
ob_start();
if($settings['pylon_progress_options_style'] == 'one'){
echo '
'.esc_html($settings['pylon_progress_title']).'
'.esc_html($settings['pylon_progress_number']).''.esc_html($settings['pylon_progress_symbol']).'
';
}elseif ($settings['pylon_progress_options_style'] == 'two') { ?>
widgets_manager->register_widget_type( new Pylon_progress_bar_Widget );