/
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/animation-shape.php
(6751B)
<?php namespace Elementor; if (!defined('ABSPATH')) { exit; // Exit if accessed directly } class Pylon_Animation_Shape_Widget extends Widget_Base { public function get_name() { return 'pylon_Animation_shape'; } public function get_title() { return esc_html__( 'Pylon Animation Shape', 'pyloncore' ); } public function get_icon() { return 'fa fa-at'; } public function get_categories() { return ['pylon']; } /** * Get widget keywords */ public function get_keywords() { return ['animation', 'animate', 'shape','pylon']; } protected function register_controls() { //Content tab start $this->start_controls_section( 'pylon_Animation_shape_options', [ 'label' => esc_html__( 'Pylon Animation Shape', 'pyloncore' ), 'tab' => Controls_Manager::TAB_CONTENT, ] ); $repeater = new \Elementor\Repeater(); $repeater->add_control( 'pylon_shape_select', [ 'label' => esc_html__( 'Select Animation', 'pyloncore' ), 'type' => \Elementor\Controls_Manager::SELECT, 'default' => 'shapeMover', 'options' => [ 'shapeMover' => esc_html__( 'Shape Mover', 'pyloncore' ), 'bubbleMover' => esc_html__( 'Bubble Mover', 'pyloncore' ), 'bounce' => esc_html__( 'Bounce', 'pyloncore' ), 'float-bob-x' => esc_html__( 'float-bob-x', 'pyloncore' ), 'bounceInLeft' => esc_html__( 'bounceInLeft', 'pyloncore' ), 'float-bob-y' => esc_html__( 'float-bob-y', 'pyloncore' ), 'None' => esc_html__( 'None', 'pyloncore' ), ], ] ); $repeater->add_responsive_control( 'pylon_shape_top', [ 'label' => esc_html__( 'Top To Bottom', 'pyloncore' ), 'type' => Controls_Manager::SLIDER, 'size_units' => [ 'px', '%' ], 'range' => [ 'px' => [ 'min' => -1000, 'max' => 2000, 'step' => 1, ], '%' => [ 'min' => -100, 'max' => 100, ], ], 'default' => [ 'unit' => 'px', 'size' => 100, ], ] ); $repeater->add_responsive_control( 'pylon_shape_left', [ 'label' => esc_html__( 'Left To Right', 'pyloncore' ), 'type' => Controls_Manager::SLIDER, 'size_units' => [ 'px', '%' ], 'range' => [ 'px' => [ 'min' => -1000, 'max' => 2000, 'step' => 1, ], '%' => [ 'min' => -100, 'max' => 100, ], ], 'default' => [ 'unit' => 'px', 'size' => 100, ], ] ); $repeater->add_responsive_control( 'pylon_shape_duration', [ 'label' => esc_html__( 'Animation Duration', 'pyloncore' ), 'type' => Controls_Manager::SLIDER, 'size_units' => [ 's' ], 'range' => [ 's' => [ 'min' => 0.1, 'max' => 100, 'step' => 0.1, ] ], 'default' => [ 'unit' => 's', 'size' => 9, ], ] ); $repeater->add_control( 'pylon_shape_img', [ 'label' => __( 'Choose Image', 'pyloncore' ), 'type' => \Elementor\Controls_Manager::MEDIA, 'default' => [ 'url' => \Elementor\Utils::get_placeholder_image_src(), ], ] ); $repeater->add_control( 'pylon_shape_img_opacity', [ 'label' => esc_html__( 'opacity', 'pyloncore' ), 'type' => \Elementor\Controls_Manager::NUMBER, 'min' => -1, 'max' => 1, 'step' => 0.1, 'default' => 1, ] ); $this->add_control( 'pylon_shapes', [ 'label' => esc_html__( 'Shape List', 'pyloncore' ), 'type' => \Elementor\Controls_Manager::REPEATER, 'fields' => $repeater->get_controls(), 'default' => [ [ 'pylon_shape_select' =>'shapeMover', 'pylon_shape_img' => '', 'pylon_shape_top' => '200', 'pylon_shape_left' => '300', 'pylon_shape_duration' => '9', ], ], ] ); $this->end_controls_section(); } //Render protected function render() { $settings = $this->get_settings_for_display(); foreach($settings['pylon_shapes'] as $paylo_shape){ echo '<img src="'.esc_url($paylo_shape['pylon_shape_img']['url']).'" alt="'.esc_attr('pylon','pyloncore').'" class="shapeanimation" style="top:'.esc_attr($paylo_shape['pylon_shape_top']['size']). esc_attr($paylo_shape['pylon_shape_top']['unit']).';left:'.esc_attr($paylo_shape['pylon_shape_left']['size']). esc_attr($paylo_shape['pylon_shape_left']['unit']).';-webkit-animation-duration:'.esc_attr($paylo_shape['pylon_shape_duration']['size']). esc_attr($paylo_shape['pylon_shape_duration']['unit']).'; animation-duration: '.esc_attr($paylo_shape['pylon_shape_duration']['size']). esc_attr($paylo_shape['pylon_shape_duration']['unit']).';-webkit-animation-name:'.esc_attr($paylo_shape['pylon_shape_select']).'; animation-name: '.esc_attr($paylo_shape['pylon_shape_select']).'; opacity: '.esc_attr($paylo_shape['pylon_shape_img_opacity']).';">'; } } } Plugin::instance()->widgets_manager->register_widget_type( new Pylon_Animation_Shape_Widget());
Save
cmd:
run