/
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/slider-widget.php
(49682B)
<?php namespace Elementor; if (!defined('ABSPATH')) { exit; // Exit if accessed directly } class Pylon_slider_Widget extends Widget_Base { public function get_name() { return 'pylon_slider'; } public function get_title() { return esc_html__( 'Pylon Slider', 'pyloncore' ); } public function get_icon() { return 'eicon-post-slider'; } public function get_categories() { return ['pylon']; } protected function register_controls() { //Content tab start $this->start_controls_section( 'pylon_slider_options', [ 'label' => esc_html__( 'Pylon Slider', 'pyloncore' ), 'tab' => Controls_Manager::TAB_CONTENT, ] ); $repeater = new \Elementor\Repeater(); $repeater->add_control( 'pylon_slider_image', [ 'label' => esc_html__( 'Choose Image', 'pyloncore' ), 'type' => \Elementor\Controls_Manager::MEDIA, 'default' => [ 'url' => \Elementor\Utils::get_placeholder_image_src(), ], ] ); $repeater->add_control( 'pylon_slider_small_title', [ 'label' => esc_html__( 'Small Title', 'pyloncore' ), 'type' => Controls_Manager::TEXTAREA, 'default' => esc_html__( 'Simple & Secure Payment Process', 'pyloncore' ), 'show_label' => true, ] ); $repeater->add_control( 'pylon_slider_title', [ 'label' => esc_html__( 'Title', 'pyloncore' ), 'type' => Controls_Manager::TEXTAREA, 'default' => esc_html__( 'Connecting All Your Loan Needs', 'pyloncore' ), 'show_label' => true, ] ); $repeater->add_control( 'pylon_slider_process_list', [ 'label' => esc_html__( 'List', 'pyloncore' ), 'type' => Controls_Manager::TEXTAREA, 'default' => esc_html__( 'Connecting All Your Loan Needs', 'pyloncore' ), 'show_label' => true, 'default' => wp_kses_post( '<li>Quick Payment Process</li> <li>Loan Process</li><li>Safe & Secure Process</li>', 'pyloncore' ), ] ); $repeater->add_control( 'pylon_slider_text_enable', [ 'label' => esc_html__( 'Show text style three ', 'pyloncore' ), 'type' => \Elementor\Controls_Manager::SWITCHER, 'label_on' => esc_html__( 'Show', 'pyloncore' ), 'label_off' => esc_html__( 'Hide', 'pyloncore' ), 'return_value' => 'yes', 'default' => 'no', ] ); $repeater->add_control( 'pylon_slider_text', [ 'label' => esc_html__( 'Text', 'pyloncore' ), 'type' => \Elementor\Controls_Manager::TEXTAREA, 'rows' => 5, 'default' => esc_html__( 'Leverage agile frameworks to provide a robust synopsis for high level overviews. Iterative approaches to collaborative .', 'pyloncore' ), 'placeholder' => esc_html__( 'Type your description here', 'pyloncore' ), 'condition' => [ 'pylon_slider_text_enable' => 'yes', ], ] ); $repeater->add_control( 'pylon_slider_btn_enable', [ 'label' => esc_html__( 'Button Enable', 'pyloncore' ), 'type' => \Elementor\Controls_Manager::SWITCHER, 'label_on' => esc_html__( 'Show', 'pyloncore' ), 'label_off' => esc_html__( 'Hide', 'pyloncore' ), 'return_value' => 'yes', 'default' => 'yes', ] ); $repeater->add_control( 'pylon_slider_extral', [ 'label' => esc_html__( 'Link', 'pyloncore' ), 'type' => \Elementor\Controls_Manager::URL, 'options' => [ 'url', 'is_external', 'nofollow' ], 'default' => [ 'url' => '', 'is_external' => true, 'nofollow' => true, // 'custom_attributes' => '', ], 'label_block' => true, ] ); $repeater->add_control( 'pylon_slider_btn_text', [ 'label' => esc_html__( 'Buttn Text', 'pyloncore' ), 'type' => Controls_Manager::TEXT, 'default' => esc_html__( 'Apply For Loan', 'pyloncore' ), 'label_block' => true, 'condition' => [ 'pylon_slider_btn_enable' => 'yes', ], ] ); $repeater->add_control( 'pylon_slider_btn2_enable', [ 'label' => esc_html__( 'Enable Button Two', 'pyloncore' ), 'type' => \Elementor\Controls_Manager::SWITCHER, 'label_on' => esc_html__( 'Show', 'pyloncore' ), 'label_off' => esc_html__( 'Hide', 'pyloncore' ), 'return_value' => 'yes', 'default' => 'no', ] ); $repeater->add_control( 'pylon_slider2_extral', [ 'label' => esc_html__( 'Link', 'pyloncore' ), 'type' => \Elementor\Controls_Manager::URL, 'options' => [ 'url', 'is_external', 'nofollow' ], 'default' => [ 'url' => '', 'is_external' => true, 'nofollow' => true, // 'custom_attributes' => '', ], 'label_block' => true, ] ); $repeater->add_control( 'pylon_slider_page2_link', [ 'label' => esc_html__( 'Page Link', 'pyloncore' ), 'type' => Controls_Manager::SELECT, 'options' => pylon_page_list(), 'label_block' => true, 'condition' => [ 'pylon_slider_btn2_links' => 'page', 'pylon_slider_btn2_enable' => 'yes', ], ] ); $repeater->add_control( 'pylon_slider_btn2_text', [ 'label' => esc_html__( 'Buttn Text', 'pyloncore' ), 'type' => Controls_Manager::TEXT, 'default' => esc_html__( 'Contact Now', 'pyloncore' ), 'label_block' => true, 'condition' => [ 'pylon_slider_btn2_enable' => 'yes', ], ] ); $this->add_control( 'pylon_sliders_style', [ 'label' => esc_html__('Slider Style','pyloncore'), 'type' => \Elementor\Controls_Manager::SELECT, 'options' => [ 'one' => esc_html__('Style One' ,'pyloncore'), 'two' => esc_html__('Style two' ,'pyloncore'), 'three' => esc_html__('Style three' ,'pyloncore'), ], 'default' => 'one' ] ); $this->add_control( 'pylon_sliders', [ 'label' => esc_html__( 'Slider List', 'pyloncore' ), 'type' => \Elementor\Controls_Manager::REPEATER, 'fields' => $repeater->get_controls(), 'default' => [ [ 'pylon_slider_small_title' => esc_html__( 'Simple & Secure Payment Process', 'pyloncore' ), 'pylon_slider_title' => esc_html__( 'Connecting All Your Loan Needs', 'pyloncore' ), 'pylon_slider_btn_text' => esc_html__( 'Apply For Loan', 'pyloncore' ), ], ], ] ); $this->add_control( 'pylon_sliders_shape_image', [ 'label' => esc_html__( 'Choose Image', 'pyloncore' ), 'type' => \Elementor\Controls_Manager::MEDIA, 'default' => [ 'url' => \Elementor\Utils::get_placeholder_image_src(), ], 'condition' => [ 'pylon_sliders_style' => 'three', ], ] ); $this->end_controls_section(); $this->start_controls_section( 'pylon_slider_confi', [ 'label' => esc_html__( 'Pylon Slider Options', 'pyloncore' ), 'tab' => Controls_Manager::TAB_CONTENT, ] ); $this->add_responsive_control( 'pylon_slider_col', [ 'label' => esc_html__( 'Select Column', 'pyloncore' ), 'type' => Controls_Manager::SLIDER, 'size_units' => ['px', '%'], 'range' => [ 'px' => [ 'min' => 4, 'max' => 12, 'step' => 1, ], ], 'default' => [ 'size' => 6, ], ] ); $this->add_responsive_control( 'pylon_slider_alignment', [ 'label' => esc_html__('Slider 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' => 'left', 'toggle' => true, ] ); $this->add_control( 'pylon_slider_loop', [ 'label' => esc_html__( 'Enable Loop', 'pyloncore' ), 'type' => Controls_Manager::SWITCHER, 'label_on' => esc_html__( 'On', 'pyloncore' ), 'label_off' => esc_html__( 'Off', 'pyloncore' ), 'return_value' => 'yes', 'default' => 'yes', ] ); $this->add_control( 'pylon_slider_effect', [ 'label' => esc_html__( 'Enable Effect', 'pyloncore' ), 'type' => Controls_Manager::SWITCHER, 'label_on' => esc_html__( 'On', 'pyloncore' ), 'label_off' => esc_html__( 'Off', 'pyloncore' ), 'return_value' => 'yes', 'default' => 'yes', ] ); $this->add_control( 'pylon_slider_nav', [ 'label' => esc_html__( 'Enable Nav', 'pyloncore' ), 'type' => Controls_Manager::SWITCHER, 'label_on' => esc_html__( 'On', 'pyloncore' ), 'label_off' => esc_html__( 'Off', 'pyloncore' ), 'return_value' => 'yes', 'default' => 'yes', ] ); $this->add_control( 'pylon_slider_autoply', [ 'label' => esc_html__( 'Auto Play', 'plugin-pyloncore' ), 'type' => \Elementor\Controls_Manager::NUMBER, 'min' => 500, 'max' => 10000, 'step' => 50, 'default' => 5000, 'condition' => [ 'pylon_slider_loop' => 'yes', ], ] ); $this->add_control( 'pylon_slider_transparent_background', [ 'label' => esc_html__('Choose Background Type','pyloncore'), 'type' => \Elementor\Controls_Manager::SELECT, 'default' => 'theme', 'options' => [ 'theme' => esc_html__('Theme','pyloncore'), 'normal' => esc_html__('Normal','pyloncore'), 'gradient' => esc_html__('Gradient','pyloncore'), ], 'condition' => [ 'pylon_sliders_style' => 'two' ] ] ); $this->add_control( 'pylon_slider_transparent_background_normal_color', [ 'label' => esc_html__('Normal Color','pyloncore'), 'type' => \Elementor\Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .main-slider .thm-swiper-two__slider .swiper-slide .image-layer.background-normal:before' => 'background-color : {{VALUE}}' ], 'condition' => [ 'pylon_slider_transparent_background' => 'normal', ] ] ); $this->add_group_control( \Elementor\Group_Control_Background::get_type(), [ 'name' => 'pylon_slider_transparent_background_gradient_color', 'label' => esc_html__('Gradient Color','pyloncore'), 'types' => [ 'gradient' ], 'selector' => '{{WRAPPER}} .main-slider .thm-swiper-two__slider .swiper-slide .image-layer.background-gradient:after', 'condition' => [ 'pylon_slider_transparent_background' => 'gradient', ] ] ); $this->end_controls_section(); $this->start_controls_section( 'pylon_slider_box_style', [ 'label' => esc_html__( 'Content Box', 'pyloncore' ), 'tab' => Controls_Manager::TAB_STYLE, ] ); $this->add_responsive_control( 'pylon_slider_box_margin', [ 'label' => esc_html__( 'Margin', 'pyloncore' ), 'type' => Controls_Manager::DIMENSIONS, 'size_units' => ['px', '%', 'em'], 'selectors' => [ '{{WRAPPER}} .main-slider .swiper-slide .container,{{WRAPPER}} .main-slider-two .container-fluid' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', ], 'separator' => 'before', ] ); $this->add_responsive_control( 'pylon_slider_box_padding', [ 'label' => esc_html__( 'Padding', 'pyloncore' ), 'type' => Controls_Manager::DIMENSIONS, 'size_units' => ['px', '%', 'em'], 'selectors' => [ '{{WRAPPER}} .main-slider .swiper-slide .container,{{WRAPPER}} .main-slider-two .container-fluid' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', ], 'separator' => 'before', ] ); $this->end_controls_section(); $this->start_controls_section( 'pylon_slider_content_style', [ 'label' => esc_html__( 'Content', 'pyloncore' ), 'tab' => Controls_Manager::TAB_STYLE, ] ); $this->add_group_control( \Elementor\Group_Control_Typography::get_type(), [ 'name' => 'pylon_slider_stitle_typo', 'label' => esc_html__( 'Small Title Typography', 'pyloncore' ), 'selector' => '{{WRAPPER}} .main-slider .swiper-slide h2,{{WRAPPER}} .main-slider-two .swiper-slide p', ] ); $this->add_responsive_control( 'pylon_slider_stitle_color', [ 'label' => esc_html__( 'Small Title Color', 'pyloncore' ), 'type' => \Elementor\Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .main-slider .swiper-slide p,{{WRAPPER}} .main-slider-two .swiper-slide p' => 'color: {{VALUE}}', ], ] ); $this->add_group_control( \Elementor\Group_Control_Border::get_type(), [ 'name' => 'pylon_slider_small_title_border', 'label' => esc_html__( 'Small Title Border', 'pyloncore' ), 'selector' => '{{WRAPPER}} .main-slider .swiper-slide p,{{WRAPPER}} .main-slider-two .swiper-slide p', ] ); $this->add_control( '1bar', [ 'type' => \Elementor\Controls_Manager::DIVIDER, ] ); $this->add_group_control( \Elementor\Group_Control_Typography::get_type(), [ 'name' => 'pylon_slider_title_typo', 'label' => esc_html__( 'Title Typography', 'pyloncore' ), 'selector' => '{{WRAPPER}} .main-slider .swiper-slide h2,{{WRAPPER}} .main-slider-two .swiper-slide h2', ] ); $this->add_responsive_control( 'pylon_slider_title_color', [ 'label' => esc_html__( 'Title Color', 'pyloncore' ), 'type' => \Elementor\Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .main-slider .swiper-slide h2,{{WRAPPER}} .main-slider-two .swiper-slide h2' => 'color: {{VALUE}}', ], ] ); $this->add_group_control( \Elementor\Group_Control_Border::get_type(), [ 'name' => 'pylon_slider_title_border', 'label' => esc_html__('Title Border', 'pyloncore'), 'selector' => '{{WRAPPER}} .main-slider .swiper-slide h2,{{WRAPPER}} .main-slider-two .swiper-slide h2', ] ); $this->add_responsive_control( 'pylon_slider_title_margin', [ 'label' => esc_html__( 'Margin', 'pyloncore' ), 'type' => Controls_Manager::DIMENSIONS, 'size_units' => ['px', '%', 'em'], 'default' => [ 'top' => '14', 'right' => '0', 'bottom' => '0', 'left' => '0', 'isLinked' => true, ], 'selectors' => [ '{{WRAPPER}} .main-slider .swiper-slide h2,{{WRAPPER}} .main-slider-two .swiper-slide h2' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', ], 'separator' => 'before', ] ); $this->add_responsive_control( 'pylon_slider_title_padding', [ 'label' => esc_html__( 'Padding', 'pyloncore' ), 'type' => Controls_Manager::DIMENSIONS, 'size_units' => ['px', '%', 'em'], 'selectors' => [ '{{WRAPPER}} .main-slider .swiper-slide h2,{{WRAPPER}} .main-slider-two .swiper-slide h2' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', ], 'separator' => 'before', ] ); $this->add_control( '2bar', [ 'type' => \Elementor\Controls_Manager::DIVIDER, ] ); $this->add_group_control( \Elementor\Group_Control_Typography::get_type(), [ 'name' => 'pylon_slider_desc_typo', 'label' => esc_html__( 'Title Typography', 'pyloncore' ), 'selector' => '{{WRAPPER}} .main-slider-two .swiper-slide .main-slider-two__text', 'condition' => [ 'pylon_sliders_style' => 'three', ], ] ); $this->add_responsive_control( 'pylon_slider_desc_color', [ 'label' => esc_html__( 'Title Color', 'pyloncore' ), 'type' => \Elementor\Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .main-slider-two .swiper-slide .main-slider-two__text' => 'color: {{VALUE}}', ], 'condition' => [ 'pylon_sliders_style' => 'three', ], ] ); $this->end_controls_section(); $this->start_controls_section( 'pylon_slider_buttons_style', [ 'label' => esc_html__( 'Button', 'pyloncore' ), 'tab' => Controls_Manager::TAB_STYLE, ] ); $this->add_group_control( \Elementor\Group_Control_Typography::get_type(), [ 'name' => 'pylon_slider_button_typo', 'label' => esc_html__( 'Title Typography', 'pyloncore' ), 'selector' => '{{WRAPPER}} .thm-btn,{{WRAPPER}} .main-slider-two .swiper-slide .thm-btn', ] ); $this->add_responsive_control( 'pylon_slider_button_margin', [ 'label' => esc_html__( 'Margin', 'pyloncore' ), 'type' => Controls_Manager::DIMENSIONS, 'size_units' => ['px', '%', 'em'], 'selectors' => [ '{{WRAPPER}} .thm-btn,{{WRAPPER}} .main-slider-two .swiper-slide .thm-btn' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', ], 'separator' => 'before', ] ); $this->add_responsive_control( 'pylon_slider_button_padding', [ 'label' => esc_html__( 'Padding', 'pyloncore' ), 'type' => Controls_Manager::DIMENSIONS, 'size_units' => ['px', '%', 'em'], 'default' => [ 'top' => '16.5', 'right' => '39.5', 'bottom' => '16.5', 'left' => '39.5', 'isLinked' => true, ], 'selectors' => [ '{{WRAPPER}} .thm-btn,{{WRAPPER}} .main-slider-two .swiper-slide .thm-btn' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', ], 'separator' => 'before', ] ); $this->start_controls_tabs( 'pylon_slider_button_tabs' ); $this->start_controls_tab( 'pylon_slider_button_n_tab', [ 'label' => esc_html__( 'Normal', 'pyloncore' ), ] ); $this->add_responsive_control( 'pylon_slider_button_n_color', [ 'label' => esc_html__( 'Color', 'pyloncore' ), 'type' => \Elementor\Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .main-slider .swiper-slide .thm-btn,{{WRAPPER}} .main-slider-two .swiper-slide .thm-btn' => 'color: {{VALUE}}', ], ] ); $this->add_group_control( \Elementor\Group_Control_Background::get_type(), [ 'name' => 'pylon_slider_button_n_bg', 'label' => esc_html__( 'Background', 'pyloncore' ), 'types' => ['classic', 'gradient'], 'selector' => '{{WRAPPER}} .main-slider .swiper-slide .thm-btn,{{WRAPPER}} .main-slider-two .swiper-slide .thm-btn', ] ); $this->add_group_control( \Elementor\Group_Control_Border::get_type(), [ 'name' => 'pylon_slider_button_n_border', 'label' => esc_html__( 'Border', 'pyloncore' ), 'selector' => '{{WRAPPER}} .main-slider .swiper-slide .thm-btn,{{WRAPPER}} .main-slider-two .swiper-slide .thm-btn', ] ); $this->add_responsive_control( 'pylon_slider_button_n_border_radius', [ 'label' => esc_html__( 'Border Radius', 'pyloncore' ), 'type' => Controls_Manager::SLIDER, 'size_units' => ['px'], 'range' => [ 'px' => [ 'min' => 0, 'max' => 100, 'step' => 1, ], ], 'default' => [ 'size' => 4, ], 'selectors' => [ '{{WRAPPER}} .main-slider .swiper-slide .thm-btn,{{WRAPPER}} .main-slider-two .swiper-slide .thm-btn' => 'border-radius: {{SIZE}}{{UNIT}};', ], ] ); $this->add_group_control( \Elementor\Group_Control_Box_Shadow::get_type(), [ 'name' => 'pylon_slider_button_n_box_shadow', 'label' => esc_html__( 'Box Shadow', 'pyloncore' ), 'selector' => '{{WRAPPER}} .main-slider .swiper-slide .thm-btn,{{WRAPPER}} .main-slider-two .swiper-slide .thm-btn', ] ); $this->end_controls_tab(); $this->start_controls_tab( 'pylon_slider_button_h_tab', [ 'label' => esc_html__( 'Hover', 'pyloncore' ), ] ); $this->add_responsive_control( 'pylon_slider_button_h_color', [ 'label' => esc_html__( 'Color', 'pyloncore' ), 'type' => \Elementor\Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .main-slider .swiper-slide .thm-btn:hover,{{WRAPPER}} .main-slider-two .swiper-slide .thm-btn:hover' => 'color: {{VALUE}}', ], ] ); $this->add_group_control( \Elementor\Group_Control_Background::get_type(), [ 'name' => 'pylon_slider_button_h_bg', 'label' => esc_html__( 'Background', 'pyloncore' ), 'types' => ['classic', 'gradient'], 'selector' => '{{WRAPPER}} .main-slider .swiper-slide .thm-btn:hover,{{WRAPPER}} .main-slider-two .swiper-slide .thm-btn:hover', ] ); $this->add_group_control( \Elementor\Group_Control_Border::get_type(), [ 'name' => 'pylon_slider_button_h_border', 'label' => esc_html__( 'Border', 'pyloncore' ), 'selector' => '{{WRAPPER}} .main-slider .swiper-slide .thm-btn:hover,{{WRAPPER}} .main-slider-two .swiper-slide .thm-btn:hover', ] ); $this->add_responsive_control( 'pylon_slider_button_h_border_radius', [ 'label' => esc_html__( 'Border Radius', 'pyloncore' ), 'type' => Controls_Manager::SLIDER, 'size_units' => ['px'], 'range' => [ 'px' => [ 'min' => 0, 'max' => 100, 'step' => 1, ], ], 'default' => [ 'size' => 4, ], 'selectors' => [ '{{WRAPPER}} .main-slider .swiper-slide .thm-btn:hover,{{WRAPPER}} .main-slider-two .swiper-slide .thm-btn:hover' => 'border-radius: {{SIZE}}{{UNIT}};', ], ] ); $this->add_group_control( \Elementor\Group_Control_Box_Shadow::get_type(), [ 'name' => 'pylon_slider_button_h_box_shadow', 'label' => esc_html__( 'Box Shadow', 'pyloncore' ), 'selector' => '{{WRAPPER}} .main-slider .swiper-slide .thm-btn:hover,{{WRAPPER}} .main-slider-two .swiper-slide .thm-btn:hover', ] ); $this->end_controls_tab(); $this->end_controls_tabs(); $this->end_controls_section(); $this->start_controls_section( 'pylon_slider_buttons2_style', [ 'label' => esc_html__( 'Button Two', 'pyloncore' ), 'tab' => Controls_Manager::TAB_STYLE, ] ); $this->add_group_control( \Elementor\Group_Control_Typography::get_type(), [ 'name' => 'pylon_slider_button2_typo', 'label' => esc_html__( 'Title Typography', 'pyloncore' ), 'selector' => '{{WRAPPER}} .thm-btn.slider-btn-two', ] ); $this->add_responsive_control( 'pylon_slider_button2_margin', [ 'label' => esc_html__( 'Margin', 'pyloncore' ), 'type' => Controls_Manager::DIMENSIONS, 'size_units' => ['px', '%', 'em'], 'default' => [ 'top' => '0', 'right' => '0', 'bottom' => '0', 'left' => '10', 'isLinked' => true, ], 'selectors' => [ '{{WRAPPER}} .thm-btn.slider-btn-two' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', ], 'separator' => 'before', ] ); $this->add_responsive_control( 'pylon_slider_button2_padding', [ 'label' => esc_html__( 'Padding', 'pyloncore' ), 'type' => Controls_Manager::DIMENSIONS, 'size_units' => ['px', '%', 'em'], 'default' => [ 'top' => '16.5', 'right' => '39.5', 'bottom' => '16.5', 'left' => '39.5', 'isLinked' => true, ], 'selectors' => [ '{{WRAPPER}} .thm-btn.slider-btn-two' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', ], 'separator' => 'before', ] ); $this->start_controls_tabs( 'pylon_slider_button2_tabs' ); $this->start_controls_tab( 'pylon_slider_button2_n_tab', [ 'label' => esc_html__( 'Normal', 'pyloncore' ), ] ); $this->add_responsive_control( 'pylon_slider_button2_n_color', [ 'label' => esc_html__( 'Color', 'pyloncore' ), 'type' => \Elementor\Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .main-slider .swiper-slide .thm-btn.slider-btn-two' => 'color: {{VALUE}}', ], ] ); $this->add_group_control( \Elementor\Group_Control_Background::get_type(), [ 'name' => 'pylon_slider_button2_n_bg', 'label' => esc_html__( 'Background', 'pyloncore' ), 'types' => ['classic', 'gradient'], 'selector' => '{{WRAPPER}} .main-slider .swiper-slide .thm-btn.slider-btn-two', ] ); $this->add_group_control( \Elementor\Group_Control_Border::get_type(), [ 'name' => 'pylon_slider_button2_n_border', 'label' => esc_html__( 'Border', 'pyloncore' ), 'selector' => '{{WRAPPER}} .main-slider .swiper-slide .thm-btn.slider-btn-two', ] ); $this->add_responsive_control( 'pylon_slider_button2_n_border_radius', [ 'label' => esc_html__( 'Border Radius', 'pyloncore' ), 'type' => Controls_Manager::SLIDER, 'size_units' => ['px'], 'range' => [ 'px' => [ 'min' => 0, 'max' => 100, 'step' => 1, ], ], 'default' => [ 'size' => 4, ], 'selectors' => [ '{{WRAPPER}} .main-slider .swiper-slide .thm-btn.slider-btn-two' => 'border-radius: {{SIZE}}{{UNIT}};', ], ] ); $this->add_group_control( \Elementor\Group_Control_Box_Shadow::get_type(), [ 'name' => 'pylon_slider_button2_n_box_shadow', 'label' => esc_html__( 'Box Shadow', 'pyloncore' ), 'selector' => '{{WRAPPER}} .main-slider .swiper-slide .thm-btn.slider-btn-two', ] ); $this->end_controls_tab(); $this->start_controls_tab( 'pylon_slider_button2_h_tab', [ 'label' => esc_html__( 'Hover', 'pyloncore' ), ] ); $this->add_responsive_control( 'pylon_slider_button2_h_color', [ 'label' => esc_html__( 'Color', 'pyloncore' ), 'type' => \Elementor\Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .main-slider .swiper-slide .thm-btn.slider-btn-two:hover' => 'color: {{VALUE}}', ], ] ); $this->add_group_control( \Elementor\Group_Control_Background::get_type(), [ 'name' => 'pylon_slider_button2_h_bg', 'label' => esc_html__( 'Background', 'pyloncore' ), 'types' => ['classic', 'gradient'], 'selector' => '{{WRAPPER}} .main-slider .swiper-slide .thm-btn.slider-btn-two:hover', ] ); $this->add_group_control( \Elementor\Group_Control_Border::get_type(), [ 'name' => 'pylon_slider_button2_h_border', 'label' => esc_html__( 'Border', 'pyloncore' ), 'selector' => '{{WRAPPER}} .main-slider .swiper-slide .thm-btn.slider-btn-two:hover', ] ); $this->add_responsive_control( 'pylon_slider_button2_h_border_radius', [ 'label' => esc_html__( 'Border Radius', 'pyloncore' ), 'type' => Controls_Manager::SLIDER, 'size_units' => ['px'], 'range' => [ 'px' => [ 'min' => 0, 'max' => 100, 'step' => 1, ], ], 'default' => [ 'size' => 4, ], 'selectors' => [ '{{WRAPPER}} .main-slider .swiper-slide .thm-btn.slider-btn-two:hover' => 'border-radius: {{SIZE}}{{UNIT}};', ], ] ); $this->add_group_control( \Elementor\Group_Control_Box_Shadow::get_type(), [ 'name' => 'pylon_slider_button2_h_box_shadow', 'label' => esc_html__( 'Box Shadow', 'pyloncore' ), 'selector' => '{{WRAPPER}} .main-slider .swiper-slide .thm-btn.slider-btn-two:hover', ] ); $this->end_controls_tab(); $this->end_controls_tabs(); $this->end_controls_section(); } //Render protected function render() { $settings = $this->get_settings_for_display(); $dynamic_num = rand( 35245545, 541541745 ); if ( $settings['pylon_slider_loop'] == true ) { $pylon_slider_loop = 'true'; } else { $pylon_slider_loop = 'false'; } if ( $settings['pylon_slider_effect'] == true ) { $pylon_slider_effect = 'true'; } else { $pylon_slider_effect = 'false'; } if ($settings['pylon_slider_alignment'] == 'left') { $slider_alignment = 'start'; $text_align = 'left'; } elseif ($settings['pylon_slider_alignment'] == 'center') { $slider_alignment = 'center'; $text_align = 'center'; } elseif ($settings['pylon_slider_alignment'] == 'right') { $slider_alignment = 'end'; $text_align = 'right'; } echo ' <script> jQuery(document).ready(function($) { "use strict"; var swiper = new Swiper(".pylon-slider-'.$dynamic_num.'", { "slidesPerView": 1, "loop": true, "effect": "fade",'; if ( $settings['pylon_slider_loop'] == true ) { echo ' "autoplay": { "delay": ' . $settings['pylon_slider_autoply'] . ' },'; }; echo ' "navigation": { "nextEl": "#main-slider__swiper-button-next-' . $dynamic_num . '", "prevEl": "#main-slider__swiper-button-prev-' . $dynamic_num . '" } }); }); </script>'; $main_slider_two=''; if($settings['pylon_sliders_style'] == 'three'){ $main_slider_two ='main-slider-two'; } ?> <div class="main-slider <?php echo $main_slider_two; ?>"> <?php if ($settings['pylon_sliders_style'] == 'three') { ?> <div class="swiper-container thm-swiper__slider swiper-container-fade swiper-container-initialized swiper-container-horizontal pylon-slider-<?php echo esc_attr($dynamic_num); ?>"> <div class="swiper-wrapper"> <?php foreach ($settings['pylon_sliders'] as $pylon_slider) : ?> <div class="swiper-slide" > <div class="image-layer" style="background-image: url(<?php echo wp_get_attachment_image_url( $pylon_slider['pylon_slider_image']['id'], 'full' ); ?>);"> </div> <!-- /.image-layer --> <div class="container-fluid container-no-repeat" style="background-image: url(<?php echo $settings['pylon_sliders_shape_image']['url']; ?>);"> <div class="row justify-content-<?php echo esc_attr($slider_alignment); ?>"> <div class="col-xl-<?php echo esc_attr($settings['pylon_slider_col']['size']); ?> col-lg-<?php echo esc_attr($settings['pylon_slider_col']['size']); ?>"> <p class="text-<?php echo esc_attr($text_align); ?>"> <?php echo esc_html($pylon_slider['pylon_slider_small_title']); ?></p> <h2 class="text-<?php echo ($text_align); ?>"> <?php echo ($pylon_slider['pylon_slider_title']); ?></h2> <?php if($pylon_slider['pylon_slider_text_enable'] == 'yes'){?> <div class="main-slider-two__text"><?php echo esc_html($pylon_slider['pylon_slider_text']); ?></div> <!-- /.main-slider-two__text --> <?php } ?> <?php if($pylon_slider['pylon_slider_btn_enable'] == 'yes' || $pylon_slider['pylon_slider_btn2_enable'] == 'yes') { ?> <div class="links-box text-<?php echo esc_attr($text_align); ?>"> <?php if($pylon_slider['pylon_slider_btn_enable'] == 'yes' && isset($pylon_slider['pylon_slider_extral']['url'])) : ?> <a href="<?php echo $pylon_slider['pylon_slider_extral']['url']; ?>" class="thm-btn"><?php echo esc_html($pylon_slider['pylon_slider_btn_text']); ?> </a> <?php endif; ?> <?php if($pylon_slider['pylon_slider_btn2_enable'] == 'yes' && isset($pylon_slider['pylon_slider2_extral']['url'])){ echo '<a href="'.$pylon_slider['pylon_slider2_extral']['url'].'" class=" thm-btn slider-btn-two">'.esc_html($pylon_slider['pylon_slider_btn2_text']).'</a>'; }?> </div> <?php } ?> <!-- /.thm-btn dynamic-radius --> </div><!-- /.col-lg-7 text-right --> </div><!-- /.row --> </div><!-- /.container-fluid --> </div><!-- /.swiper-slide --> <?php endforeach; ?> </div><!-- /.swiper-wrapper --> </div> <?php } elseif ($settings['pylon_sliders_style']=='two') {?> <div class="swiper-container thm-swiper-two__slider pylon-slider-<?php echo esc_attr($dynamic_num); ?>"> <div class="swiper-wrapper"> <?php foreach ($settings['pylon_sliders'] as $pylon_slider) : ?> <div class="swiper-slide swiper-effect-<?php echo esc_attr($pylon_slider_effect); ?>"> <div class="image-layer background-<?php echo esc_attr($settings['pylon_slider_transparent_background']);?>" style="background-image: url(<?php echo wp_get_attachment_image_url( $pylon_slider['pylon_slider_image']['id'], 'full' ); ?>);"></div> <div class="container"> <div class="row justify-content-<?php echo esc_attr($slider_alignment); ?>"> <div class="col-xl-<?php echo esc_attr($settings['pylon_slider_col']['size']); ?> col-lg-<?php echo esc_attr($settings['pylon_slider_col']['size']); ?>"> <p class="text-<?php echo esc_attr($text_align); ?>"><?php echo esc_html($pylon_slider['pylon_slider_small_title']); ?></p> <h2 class="text-<?php echo esc_attr($text_align); ?>"><?php echo esc_html($pylon_slider['pylon_slider_title']); ?></h2> <ul class="lower-process-list justify-content-<?php echo esc_attr($slider_alignment); ?>"> <?php echo $pylon_slider['pylon_slider_process_list']; ?> </ul> <?php if($pylon_slider['pylon_slider_btn_enable'] == 'yes' || $pylon_slider['pylon_slider_btn2_enable'] == 'yes') { ?> <div class="links-box text-<?php echo esc_attr($text_align); ?>"> <?php if($pylon_slider['pylon_slider_btn_enable'] == 'yes' && isset($pylon_slider['pylon_slider_extral']['url'])) : ?> <a href="<?php echo $pylon_slider['pylon_slider_extral']['url']; ?>" class=" thm-btn"><?php echo esc_html($pylon_slider['pylon_slider_btn_text']); ?></a> <?php endif; ?> <?php if($pylon_slider['pylon_slider_btn2_enable'] == 'yes' && isset($pylon_slider['pylon_slider2_extral'])){ echo '<a href="'.$pylon_slider['pylon_slider2_extral']['url'].'" class=" thm-btn slider-btn-two">'.$pylon_slider['pylon_slider_btn2_text'].'</a>'; } ?> </div> <?php } ?> </div> </div> </div> </div> <?php endforeach; ?> </div> </div> <?php }else {?> <div class="swiper-container thm-swiper__slider pylon-slider-<?php echo esc_attr($dynamic_num); ?>"> <div class="swiper-wrapper"> <?php foreach ($settings['pylon_sliders'] as $pylon_slider) : ?> <div class="swiper-slide"> <div class="image-layer" style="background-image: url(<?php echo wp_get_attachment_image_url( $pylon_slider['pylon_slider_image']['id'], 'full' ); ?>);"></div> <div class="container"> <div class="row justify-content-<?php echo esc_attr($slider_alignment); ?>"> <div class="col-xl-<?php echo esc_attr($settings['pylon_slider_col']['size']); ?> col-lg-<?php echo esc_attr($settings['pylon_slider_col']['size']); ?>"> <p class="text-<?php echo esc_attr($text_align); ?>"><?php echo $pylon_slider['pylon_slider_small_title']; ?></p> <h2 class="text-<?php echo esc_attr($text_align); ?>"><?php echo $pylon_slider['pylon_slider_title']; ?></h2> <?php if($pylon_slider['pylon_slider_btn_enable'] == 'yes' || $pylon_slider['pylon_slider_btn2_enable'] == 'yes') { ?> <div class="links-box text-<?php echo $text_align; ?>"> <?php if($pylon_slider['pylon_slider_btn_enable'] == 'yes' && !empty($pylon_slider['pylon_slider_extral']['url'])) : ?> <a href="<?php echo $pylon_slider['pylon_slider_extral']['url']; ?>" class=" thm-btn"><?php echo esc_html($pylon_slider['pylon_slider_btn_text']); ?></a> <?php endif; ?> <?php if($pylon_slider['pylon_slider_btn2_enable'] == 'yes' && !empty($pylon_slider['pylon_slider2_extral']['url'])){ echo '<a href="'.$pylon_slider['pylon_slider2_extral']['url'].'" class=" thm-btn slider-btn-two">'.esc_html($pylon_slider['pylon_slider_btn2_text']).'</a>'; }?> </div> <?php } ?> </div> </div> </div> </div> <?php endforeach; ?> </div> <?php if($settings['pylon_slider_nav'] == true ) : ?> <div class="main-slider__nav"> <div class="swiper-button-prev" id="main-slider__swiper-button-next-<?php echo esc_attr($dynamic_num); ?>"><i class="pylon-icon-left-arrow"></i></div> <div class="swiper-button-next" id="main-slider__swiper-button-prev-<?php echo esc_attr($dynamic_num); ?>"><i class="pylon-icon-right-arrow"></i></div> </div> <?php endif; ?> </div> <?php } ?> </div> <?php } } Plugin::instance()->widgets_manager->register_widget_type( new Pylon_slider_Widget );
Save
cmd:
run