/
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/popup-widget.php
(17573B)
<?php namespace Elementor; if (!defined('ABSPATH')) { exit; // Exit if accessed directly } class Pylon_Popup_Video_Widget extends Widget_Base { public function get_name() { return 'pylon_popup_video'; } public function get_title() { return esc_html__( 'Pylon Popup Video', 'pyloncore' ); } public function get_icon() { return 'eicon-youtube'; } public function get_categories() { return ['pylon']; } /** * Get widget keywords */ public function get_keywords() { return ['popup', 'video', 'lightbox','pylon']; } protected function register_controls() { //Content tab start $this->start_controls_section( 'pylon_popup_video_options', [ 'label' => esc_html__( 'Pylon Popup Video', 'pyloncore' ), 'tab' => Controls_Manager::TAB_CONTENT, ] ); $this->add_control( 'pylon_popup_video_link', [ 'label' => esc_html__( 'Video Link', 'pyloncore' ), 'type' => \Elementor\Controls_Manager::TEXT, 'default' => 'https://www.youtube.com/watch?v=fKjTmTVqnG8', ] ); $this->add_control( 'pylon_popup_video_icon', [ 'label' => esc_html__( 'Video Icon', 'pyloncore' ), 'type' => \Elementor\Controls_Manager::ICONS, 'default' => [ 'value' => 'fa fa-play', ], ] ); $this->add_control( 'pylon_popup_video_text', [ 'label' => esc_html__( 'Title', 'pyloncore' ), 'type' => \Elementor\Controls_Manager::TEXT, 'placeholder' => esc_html__( 'Type Your Title Here', 'pyloncore' ), ] ); $this->end_controls_section(); $this->start_controls_section( 'pylon_popup_video_css_box', [ 'label' => esc_html__( 'Box', 'pyloncore' ), 'tab' => Controls_Manager::TAB_STYLE, ] ); $this->add_group_control( \Elementor\Group_Control_Background::get_type(), [ 'name' => 'pylon_popup_video_css_box_bg', 'label' => esc_html__( 'Background', 'pyloncore' ), 'types' => ['classic', 'gradient', 'video'], 'selector' => '{{WRAPPER}} .video-one__box', ] ); $this->add_group_control( \Elementor\Group_Control_Border::get_type(), [ 'name' => 'pylon_popup_video_css_box_border', 'label' => esc_html__( 'Border', 'pyloncore' ), 'selector' => '{{WRAPPER}} .video-one__box', ] ); $this->add_group_control( \Elementor\Group_Control_Box_Shadow::get_type(), [ 'name' => 'pylon_popup_video_css_box_shadow', 'label' => esc_html__( 'Box Shadow', 'pyloncore' ), 'selector' => '{{WRAPPER}} .video-one__box', ] ); $this->add_responsive_control( 'pylon_popup_video_css_box_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}} .video-one__box' => 'border-radius: {{SIZE}}{{UNIT}};', ], ] ); $this->add_responsive_control( 'pylon_popup_video_css_box_margin', [ 'label' => esc_html__( 'Margin', 'pyloncore' ), 'type' => Controls_Manager::DIMENSIONS, 'size_units' => ['px', '%', 'em'], 'default' => [ 'top' => '', 'right' => '', 'bottom' => '-250', 'left' => '', 'isLinked' => true, ], 'selectors' => [ '{{WRAPPER}} .video-one__box' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', ], ] ); $this->add_responsive_control( 'pylon_popup_video_css_box_padding', [ 'label' => esc_html__( 'Padding', 'pyloncore' ), 'type' => Controls_Manager::DIMENSIONS, 'size_units' => ['px', '%', 'em'], 'default' => [ 'top' => '130', 'right' => '15', 'bottom' => '110', 'left' => '15', 'isLinked' => true, ], 'selectors' => [ '{{WRAPPER}} .video-one__box' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', ], ] ); $this->add_control( 'pylon_popup_video_css_note', [ 'label' => esc_html__( 'Background Image or Video', 'pyloncore' ), 'type' => \Elementor\Controls_Manager::HEADING, 'separator' => 'before', ] ); $this->add_group_control( \Elementor\Group_Control_Background::get_type(), [ 'name' => 'pylon_popup_video_css_box_img', 'label' => esc_html__( 'Background', 'pyloncore' ), 'types' => ['classic', 'gradient', 'video'], 'selector' => '{{WRAPPER}} .video-one__box-bg', ] ); $this->end_controls_section(); $this->start_controls_section( 'pylon_popup_video_css_icon', [ 'label' => esc_html__( 'Video Icon', 'pyloncore' ), 'tab' => Controls_Manager::TAB_STYLE, ] ); $this->add_responsive_control( 'pylon_popup_video_css_icon_color', [ 'label' => esc_html__( 'Color', 'pyloncore' ), 'type' => \Elementor\Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .video-one__btn' => 'color: {{VALUE}}', ], ] ); $this->add_responsive_control( 'pylon_popup_video_css_icon_hcolor', [ 'label' => esc_html__( 'Hover Color', 'pyloncore' ), 'type' => \Elementor\Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .video-one__btn:hover' => 'color: {{VALUE}}', ], ] ); $this->add_group_control( \Elementor\Group_Control_Background::get_type(), [ 'name' => 'pylon_popup_video_css_icon_bg', 'label' => esc_html__( 'Background', 'pyloncore' ), 'types' => ['classic', 'gradient', 'video'], 'selector' => '{{WRAPPER}} .video-one__btn', ] ); $this->add_responsive_control( 'pylon_popup_video_css_icon_hbg', [ 'label' => esc_html__( 'Hover Bg Color', 'pyloncore' ), 'type' => \Elementor\Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .video-one__btn:hover' => 'background-color: {{VALUE}}', ], ] ); $this->add_responsive_control( 'pylon_popup_video_css_icon_width', [ 'label' => esc_html__( 'Width', 'pyloncore' ), 'type' => Controls_Manager::SLIDER, 'size_units' => ['px'], 'range' => [ 'px' => [ 'min' => 0, 'max' => 300, 'step' => 1, ], ], 'default' => [ 'unit' => 'px', 'size' => 100, ], 'selectors' => [ '{{WRAPPER}} .video-one__btn' => 'width: {{SIZE}}{{UNIT}};', ], ] ); $this->add_responsive_control( 'pylon_popup_video_css_icon_height', [ 'label' => esc_html__( 'Height', 'pyloncore' ), 'type' => Controls_Manager::SLIDER, 'size_units' => ['px'], 'range' => [ 'px' => [ 'min' => 0, 'max' => 300, 'step' => 1, ], ], 'default' => [ 'unit' => 'px', 'size' => 100, ], 'selectors' => [ '{{WRAPPER}} .video-one__btn' => 'height: {{SIZE}}{{UNIT}};', ], ] ); $this->add_responsive_control( 'pylon_popup_video_css_icon_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}} .video-one__btn' => 'border-radius: {{SIZE}}{{UNIT}};', ], ] ); $this->add_responsive_control( 'pylon_popup_video_css_icon_size', [ 'label' => esc_html__( 'Icon Size', 'pyloncore' ), 'type' => Controls_Manager::SLIDER, 'size_units' => ['px'], 'range' => [ 'px' => [ 'min' => 10, 'max' => 300, 'step' => 1, ], ], 'default' => [ 'unit' => 'px', 'size' => 20, ], 'selectors' => [ '{{WRAPPER}} .video-one__btn' => 'font-size: {{SIZE}}{{UNIT}};', ], ] ); $this->add_group_control( \Elementor\Group_Control_Border::get_type(), [ 'name' => 'pylon_popup_video_css_icon_border', 'label' => esc_html__( 'Border', 'pyloncore' ), 'selector' => '{{WRAPPER}} .video-one__btn:before', ] ); $this->end_controls_section(); $this->start_controls_section( 'pylon_popup_video_css_title', [ 'label' => esc_html__( 'Title', 'pyloncore' ), 'tab' => Controls_Manager::TAB_STYLE, ] ); $this->add_control( 'pylon_popup_video_css_title_alingment', [ 'label' => esc_html__( 'Alignment', 'pyloncore' ), 'type' => \Elementor\Controls_Manager::CHOOSE, 'options' => [ 'left' => [ 'title' => esc_html__( 'Left', 'pyloncore' ), 'icon' => 'fa fa-align-left', ], 'center' => [ 'title' => esc_html__( 'Center', 'pyloncore' ), 'icon' => 'fa fa-align-center', ], 'right' => [ 'title' => esc_html__( 'Right', 'pyloncore' ), 'icon' => 'fa fa-align-right', ], ], 'default' => 'center', 'toggle' => true, 'selectors' => [ '{{WRAPPER}} .video-one h3' => 'text-align: {{VALUE}}', ], ] ); $this->add_group_control( \Elementor\Group_Control_Typography::get_type(), [ 'name' => 'pylon_popup_video_css_title_typo', 'label' => esc_html__( 'Typography', 'pyloncore' ), 'selector' => '{{WRAPPER}} .video-one h3', ] ); $this->add_responsive_control( 'pylon_popup_video_css_title_color', [ 'label' => esc_html__( 'Title Color', 'pyloncore' ), 'type' => \Elementor\Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .video-one h3' => 'color: {{VALUE}}', ], ] ); $this->add_responsive_control( 'pylon_popup_video_css_title_widht', [ 'label' => esc_html__( 'Max Width', 'pyloncore' ), 'type' => Controls_Manager::SLIDER, 'size_units' => ['px'], 'range' => [ 'px' => [ 'min' => 30, 'max' => 1920, 'step' => 1, ], ], 'default' => [ 'unit' => 'px', 'size' => 747, ], 'selectors' => [ '{{WRAPPER}} .video-one h3' => 'max-width: {{SIZE}}{{UNIT}};', ], ] ); $this->add_responsive_control( 'pylon_popup_video_css_title_margin', [ 'label' => esc_html__( 'Margin', 'pyloncore' ), 'type' => Controls_Manager::DIMENSIONS, 'size_units' => ['px', '%', 'em'], 'default' => [ 'top' => '60', 'right' => 'auto', 'bottom' => '', 'left' => 'auto', 'isLinked' => true, ], 'selectors' => [ '{{WRAPPER}} .video-one h3' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', ], ] ); $this->add_responsive_control( 'pylon_popup_video_css_title_padding', [ 'label' => esc_html__( 'Padding', 'pyloncore' ), 'type' => Controls_Manager::DIMENSIONS, 'size_units' => ['px', '%', 'em'], 'selectors' => [ '{{WRAPPER}} .video-one h3' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', ], ] ); $this->end_controls_section(); } //Render protected function render() { $settings = $this->get_settings_for_display(); $dynamic_num = rand( 35245545, 541541745 ); echo ' <script> jQuery(document).ready(function($) { "use strict"; if ($(".video-popup-'.esc_attr($dynamic_num).'").length) { $(".video-popup-'.esc_attr($dynamic_num).'").magnificPopup({ disableOn: 700, type: "iframe", mainClass: "mfp-fade", removalDelay: 160, preloader: true, fixedContentPos: false }); } }); </script>'; ?> <div class="video-one"> <div class="video-one__box"> <div class="video-one__box-bg"></div> <a href="<?php echo esc_url($settings['pylon_popup_video_link']); ?>" class="video-one__btn video-popup video-popup-<?php echo esc_attr($dynamic_num); ?>"><i class="<?php echo esc_attr($settings['pylon_popup_video_icon']['value']); ?>"></i></a> <?php if(!empty($settings['pylon_popup_video_text'])){ echo ' <h3>'.esc_html($settings['pylon_popup_video_text']).'</h3>'; } ?> </div> </div> <?php } } Plugin::instance()->widgets_manager->register_widget_type( new Pylon_Popup_Video_Widget );
Save
cmd:
run