/
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/team-two-widget.php
(19602B)
<?php namespace Elementor; if (!defined('ABSPATH')) { exit; // Exit if accessed directly } class Pylon_Team_Two_Widget extends Widget_Base { public function get_name() { return 'pylon_team2'; } public function get_title() { return esc_html__( 'Pylon Team Two', 'pyloncore' ); } public function get_icon() { return 'eicon-integration'; } public function get_categories() { return ['pylon']; } protected function register_controls() { //Content tab start $this->start_controls_section( 'pylon_team2_options', [ 'label' => esc_html__( 'Settings', 'pyloncore' ), 'tab' => Controls_Manager::TAB_CONTENT, ] ); $this->add_control( 'pylon_team2_show_item', [ 'label' => esc_html__( 'Show Items', 'plugin-pyloncore' ), 'type' => \Elementor\Controls_Manager::NUMBER, 'min' => 1, 'max' => 30, 'step' => 1, 'default' => 6, 'condition' => [ 'pylon_team2_slide_enable!' => 'yes', ], ] ); $this->add_control( 'pylon_team2_slide_enable', [ 'label' => esc_html__( 'Enable Slide', 'pyloncore' ), 'type' => \Elementor\Controls_Manager::SWITCHER, 'label_on' => esc_html__( 'Show', 'payloncore' ), 'label_off' => esc_html__( 'Hide', 'payloncore' ), 'return_value' => 'yes', 'default' => 'yes', ] ); $this->add_control( 'pylon_team2_nav_enable', [ 'label' => esc_html__( 'Enable nav', 'pyloncore' ), 'type' => \Elementor\Controls_Manager::SWITCHER, 'label_on' => esc_html__( 'Show', 'payloncore' ), 'label_off' => esc_html__( 'Hide', 'payloncore' ), 'return_value' => 'yes', 'default' => 'yes', 'condition' => [ 'pylon_team2_slide_enable' => 'yes', ], ] ); $this->end_controls_section(); $this->start_controls_section( 'pylon_team2_styles', [ 'label' => esc_html__( 'Team Content Box', 'pyloncore' ), 'tab' => Controls_Manager::TAB_STYLE, ] ); $this->add_responsive_control( 'pylon_team2_css_box_bg', [ 'label' => esc_html__( 'Content Background', 'pyloncore' ), 'type' => \Elementor\Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .title' => 'background-color: {{VALUE}}', ], ] ); $this->add_responsive_control( 'pylon_team2_css_box_margin', [ 'label' => esc_html__( 'Margin', 'pyloncore' ), 'type' => Controls_Manager::DIMENSIONS, 'size_units' => ['px', '%', 'em'], 'selectors' => [ '{{WRAPPER}} .team-one__content' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', ], ] ); $this->add_responsive_control( 'pylon_team2_css_box_padding', [ 'label' => esc_html__( 'Padding', 'pyloncore' ), 'type' => Controls_Manager::DIMENSIONS, 'size_units' => ['px', '%', 'em'], 'default' => [ 'top' => '50', 'right' => '40', 'bottom' => '50', 'left' => '40', 'isLinked' => true, ], 'selectors' => [ '{{WRAPPER}} .team-one__content' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', ], ] ); $this->add_control( 'pylon_team2_css_box_liment', [ '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' => 'left', 'toggle' => true, 'selectors' => [ '{{WRAPPER}} .team-one__content' => 'text-align: {{VALUE}}', ], ] ); $this->end_controls_section(); $this->start_controls_section( 'pylon_team2_title_css', [ 'label' => esc_html__( 'Team Title', 'pyloncore' ), 'tab' => Controls_Manager::TAB_STYLE, ] ); $this->add_responsive_control( 'pylon_team2_title_color', [ 'label' => esc_html__( 'Color', 'pyloncore' ), 'type' => \Elementor\Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .team-one__content h3 a' => 'color: {{VALUE}}', ], ] ); $this->add_responsive_control( 'pylon_team2_title_hcolor', [ 'label' => esc_html__( 'Color', 'pyloncore' ), 'type' => \Elementor\Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .team-one__content h3 a:hover' => 'color: {{VALUE}}', ], ] ); $this->add_group_control( \Elementor\Group_Control_Typography::get_type(), [ 'name' => 'pylon_team2_title_font', 'label' => esc_html__( 'Typography', 'pyloncore' ), 'selector' => '{{WRAPPER}} .team-one__content h3 a', ] ); $this->add_responsive_control( 'pylon_team2_title_margin', [ 'label' => esc_html__( 'Margin', 'pyloncore' ), 'type' => Controls_Manager::DIMENSIONS, 'size_units' => ['px', '%', 'em'], 'selectors' => [ '{{WRAPPER}} .team-one__content h3 a' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', ], ] ); $this->add_responsive_control( 'pylon_team2_title_padding', [ 'label' => esc_html__( 'Padding', 'pyloncore' ), 'type' => Controls_Manager::DIMENSIONS, 'size_units' => ['px', '%', 'em'], 'selectors' => [ '{{WRAPPER}} .team-one__content h3 a' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', ], ] ); $this->end_controls_section(); $this->start_controls_section( 'pylon_team2_stitle_css', [ 'label' => esc_html__( 'Team Sub Title', 'pyloncore' ), 'tab' => Controls_Manager::TAB_STYLE, ] ); $this->add_responsive_control( 'pylon_team2_stitle_color', [ 'label' => esc_html__( 'Color', 'pyloncore' ), 'type' => \Elementor\Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .team-one__content span' => 'color: {{VALUE}}', ], ] ); $this->add_group_control( \Elementor\Group_Control_Typography::get_type(), [ 'name' => 'pylon_team2_stitle_font', 'label' => esc_html__( 'Typography', 'pyloncore' ), 'selector' => '{{WRAPPER}} .team-one__content span', ] ); $this->add_responsive_control( 'pylon_team2_stitle_margin', [ 'label' => esc_html__( 'Margin', 'pyloncore' ), 'type' => Controls_Manager::DIMENSIONS, 'size_units' => ['px', '%', 'em'], 'selectors' => [ '{{WRAPPER}} .team-one__content span' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', ], ] ); $this->add_responsive_control( 'pylon_team2_stitle_padding', [ 'label' => esc_html__( 'Padding', 'pyloncore' ), 'type' => Controls_Manager::DIMENSIONS, 'size_units' => ['px', '%', 'em'], 'selectors' => [ '{{WRAPPER}} .team-one__content span' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', ], ] ); $this->end_controls_section(); $this->start_controls_section( 'pylon_team2_social_css', [ 'label' => esc_html__( 'Team Social', 'pyloncore' ), 'tab' => Controls_Manager::TAB_STYLE, ] ); $this->add_group_control( \Elementor\Group_Control_Background::get_type(), [ 'name' => 'pylon_team2_social_bg', 'label' => esc_html__( 'Background', 'pyloncore' ), 'types' => ['classic', 'gradient', 'video'], 'selector' => '{{WRAPPER}} .team-one__social', ] ); $this->add_responsive_control( 'pylon_team2_social_bg_margin', [ 'label' => esc_html__( 'Box Margin', 'pyloncore' ), 'type' => Controls_Manager::DIMENSIONS, 'size_units' => ['px', '%', 'em'], 'selectors' => [ '{{WRAPPER}} .team-one__social' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', ], ] ); $this->add_responsive_control( 'pylon_team2_social_bg_padding', [ 'label' => esc_html__( 'Box Padding', 'pyloncore' ), 'type' => Controls_Manager::DIMENSIONS, 'size_units' => ['px', '%', 'em'], 'selectors' => [ '{{WRAPPER}} .team-one__social' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', ], ] ); $this->add_responsive_control( 'pylon_team2_social_icon_color', [ 'label' => esc_html__( 'icon Color', 'pyloncore' ), 'type' => \Elementor\Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .team-one__social a' => 'color: {{VALUE}}', ], ] ); $this->add_responsive_control( 'pylon_team2_social_icon_hcolor', [ 'label' => esc_html__( 'icon Hover Color', 'pyloncore' ), 'type' => \Elementor\Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .team-one__social a:hover' => 'color: {{VALUE}}', ], ] ); $this->add_responsive_control( 'pylon_team2_social_icon_size', [ 'label' => esc_html__( 'Icon SIze', 'pyloncore' ), 'type' => Controls_Manager::SLIDER, 'size_units' => ['px'], 'range' => [ 'px' => [ 'min' => 0, 'max' => 50, 'step' => 1, ], ], 'default' => [ 'unit' => 'px', 'size' => 16, ], 'selectors' => [ '{{WRAPPER}} .team-one__social a' => 'font-size: {{SIZE}}{{UNIT}};', ], ] ); $this->add_responsive_control( 'pylon_team2_social_icon_margin', [ 'label' => esc_html__( 'Margin Left', 'pyloncore' ), 'type' => Controls_Manager::SLIDER, 'size_units' => ['px'], 'range' => [ 'px' => [ 'min' => 0, 'max' => 50, 'step' => 1, ], ], 'default' => [ 'unit' => 'px', 'size' => 30, ], 'selectors' => [ '{{WRAPPER}} .team-one__social a + a' => 'margin-left: {{SIZE}}{{UNIT}};', ], ] ); $this->end_controls_section(); } //Render protected function render() { $settings = $this->get_settings_for_display(); $dynamic_num = rand( 35245545, 541541745 ); if ( $settings['pylon_team2_slide_enable'] ) { echo ' <script> jQuery(document).ready(function($) { "use strict"; var swiper = new Swiper(".team-slider-' . esc_attr( $dynamic_num ) . '", { "spaceBetween": 30, "loop": false, "slidesPerView": 3, "autoplay": { "delay": 5000 }, "navigation": { "nextEl": "#team-home__swiper-button-next-' . esc_attr( $dynamic_num ) . '", "prevEl": "#team-home__swiper-button-prev-' . esc_attr( $dynamic_num ) . '" }, "breakpoints": { "0": { "spaceBetween": 0, "slidesPerView": 1 }, "375": { "spaceBetween": 0, "slidesPerView": 1 }, "575": { "spaceBetween": 30, "slidesPerView": 2 }, "767": { "spaceBetween": 30, "slidesPerView": 2 }, "991": { "spaceBetween": 30, "slidesPerView": 3 } } }); }); </script>'; } if($settings['pylon_team2_slide_enable'] == 'yes' ) : ?> <div class="thm-swiper__slider swiper-container team-slider-<?php echo esc_attr($dynamic_num); ?>"> <div class="swiper-wrapper"> <?php else : ?> <div class="all-team"> <div class="row"> <?php endif; ?> <?php global $post; if($settings['pylon_team2_slide_enable'] ==! 'yes' && !empty($settings['pylon_team2_show_item'])){ $pylon_item = $settings['pylon_team2_show_item']; }else{ $pylon_item = -1; } $paged = get_query_var('paged') ? get_query_var('paged') : 1; $p = new \WP_Query( array( 'posts_per_page' => esc_attr($pylon_item), 'post_type' => 'pylon_team', 'paged' => $paged ) ); while ($p->have_posts()) : $p->the_post(); if(get_post_meta( get_the_ID(), 'pylon_team_meta', true)) { $pylon_team2 = get_post_meta( get_the_ID(), 'pylon_team_meta', true ); } else { $pylon_team2 = array(); } ?> <div class="<?php if($settings['pylon_team2_slide_enable'] == 'yes' ) : ?>swiper-slide <?php else : ?>col-lg-4 col-md-6 mb-30<?php endif; ?>"> <div class="team-one__card"> <div class="team-one__image"> <?php pylon_post_thumbnail('team-member'); ?> </div> <div class="team-one__content"> <div class="team-one__social"> <?php foreach($pylon_team2['pylon_member_social_profile'] as $plon_team_social){ if(!empty($plon_team_social['pylon_site_link'])) { echo '<a href="'.esc_url($plon_team_social['pylon_site_link']).'" class="'.esc_attr($plon_team_social['pylon_site_icon']).'" title="'.esc_attr($plon_team_social['pylon_site_name']).'"></a>'; } } ?> </div> <h3><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h3> <?php if(!empty($pylon_team2['pylon_member_designation'])) {?> <span><?php echo esc_html($pylon_team2['pylon_member_designation']); ?></span> <?php } ?> </div> </div> </div> <?php endwhile; wp_reset_query(); ?> </div> <?php if($settings['pylon_team2_slide_enable'] == 'yes' && $settings['pylon_team2_nav_enable'] == 'yes' ) : ?> <div class="team-home__nav"> <div class="swiper-button-prev" id="team-home__swiper-button-next-<?php echo esc_attr($dynamic_num); ?>"><i class="pylon-icon-left-arrow"></i></div> <div class="swiper-button-next" id="team-home__swiper-button-prev-<?php echo esc_attr($dynamic_num); ?>"><i class="pylon-icon-right-arrow"></i></div> </div> <?php endif; ?> </div> <?php } } Plugin::instance()->widgets_manager->register_widget_type( new Pylon_Team_Two_Widget );
Save
cmd:
run