/
home
/
techb158
/
l2hypotheques.com
/
wp-content
/
plugins
/
pyloncore
/
elementor
/
widgets
/
/home/techb158/l2hypotheques.com/wp-content/plugins/pyloncore/elementor/widgets
mkdir
upload
Name
Size
Mode
Actions
about-widget.php
28968
0644
edit
dl
rm
accordion-widget.php
22046
0644
edit
dl
rm
animation-shape.php
6751
0644
edit
dl
rm
animation-shape1.php
6554
0644
edit
dl
rm
banner-widget.php
20414
0644
edit
dl
rm
blog-widget.php
54710
0644
edit
dl
rm
button-widget.php
13626
0644
edit
dl
rm
call-to-action-widget.php
30409
0644
edit
dl
rm
client-logo-widget.php
14507
0644
edit
dl
rm
company-ceo.php
11289
0644
edit
dl
rm
contact-static-info-widget.php
22925
0644
edit
dl
rm
content-list-widget.php
29429
0644
edit
dl
rm
counter-box.php
16659
0644
edit
dl
rm
credit-card-widget.php
25564
0644
edit
dl
rm
custom-ripple-widget.php
2311
0644
edit
dl
rm
featuredbox-widget.php
43339
0644
edit
dl
rm
funfact-widget.php
26527
0644
edit
dl
rm
iconbox-widget.php
42282
0644
edit
dl
rm
image-float-widget.php
4050
0644
edit
dl
rm
image-widget.php
51246
0644
edit
dl
rm
image-with-title-widget.php
13185
0644
edit
dl
rm
loan-calculator-widget.php
56730
0644
edit
dl
rm
loan-combined-calculator-widget.php
75266
0644
edit
dl
rm
loan-eligibility-widget.php
24342
0644
edit
dl
rm
popup-widget.php
17573
0644
edit
dl
rm
progress-widget.php
15577
0644
edit
dl
rm
responsive-image-widget.php
1672
0644
edit
dl
rm
service-widget.php
60028
0644
edit
dl
rm
slider-widget.php
49682
0644
edit
dl
rm
slider2-widget.php
37782
0644
edit
dl
rm
team-two-widget.php
19602
0644
edit
dl
rm
team-widget.php
31622
0644
edit
dl
rm
testimonial-widget.php
55646
0644
edit
dl
rm
title-widget.php
28910
0644
edit
dl
rm
total-loan-calculator-widget.php
54789
0644
edit
dl
rm
why-choose-us-widget.php
10166
0644
edit
dl
rm
Edit:
/home/techb158/l2hypotheques.com/wp-content/plugins/pyloncore/elementor/widgets/progress-widget.php
(15577B)
<?php namespace Elementor; if (!defined('ABSPATH')) { exit; // Exit if accessed directly } class Pylon_progress_bar_Widget extends Widget_Base { public function get_name() { return 'pylon_progress'; } public function get_title() { return esc_html__( 'Pylon Progress Bar', 'pyloncore' ); } public function get_icon() { return 'eicon-skill-bar'; } public function get_categories() { return ['pylon']; } protected function register_controls() { //Content tab start $this->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 ' <div class="why-choose__progress"> <div class="why-choose__progress-top"> <h3>'.esc_html($settings['pylon_progress_title']).'</h3> <span>'.esc_html($settings['pylon_progress_number']).''.esc_html($settings['pylon_progress_symbol']).'</span> </div> <div class="why-choose__progress-bar"> <span style="width: '.esc_attr($settings['pylon_progress_number']).'%" class="wow slideInLeft animated" data-wow-duration="1500ms"></span> </div> </div> '; }elseif ($settings['pylon_progress_options_style'] == 'two') { ?> <ul class="list-unstyled why-choose-two__progress"> <?php foreach($settings['pylon_shapes_two'] as $pylonss){ ?> <li> <div class="why-choose-two__progress__box"> <div class="circleGraphic" data-circle-options='{ "color": "#008FD5", "value": <?php echo esc_attr($pylonss['pylon_progress_two_number']); ?> }'></div><!-- /.circleGraphic --> <span><?php echo ''.esc_attr($pylonss['pylon_progress_two_number']).''.esc_html($pylonss['pylon_progress_two_symbol']).''; ?></span> </div><!-- /.why-choose-two__progress__box --> <h3 class="why-choose-two__progress__title"><?php echo esc_html($pylonss['pylon_progress_two_title']); ?></h3> <!-- /.why-choose-two__progress__title --> </li> <?php } ?> </ul><!-- /.list-unstyled why-choose-two__progress --> <?php self::pyloncore_elementor_front_end_script_progress(); } echo ob_get_clean(); } public function pyloncore_elementor_front_end_script_progress(){ ?> <script> jQuery(document).ready(function($) { "use strict"; let thmcircleGraphic = jQuery(".circleGraphic"); if (thmcircleGraphic.length) { thmcircleGraphic.each(function () { let elm = jQuery(this); elm.appear(function () { let options = elm.data("circle-options"); let thmcircleGraphic = elm.circleGraphic( "object" === typeof options ? options : JSON.parse(options) ); }); }); } }); </script> <?php } } Plugin::instance()->widgets_manager->register_widget_type( new Pylon_progress_bar_Widget );
Save
cmd:
run