/
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-widget.php
(31622B)
<?php namespace Elementor; if (!defined('ABSPATH')) { exit; // Exit if accessed directly } class Pylon_Team_Widget extends Widget_Base { public function get_name() { return 'pylon_team'; } public function get_title() { return esc_html__( 'Pylon Team With Section', '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_team_options', [ 'label' => esc_html__( 'Static Content', 'pyloncore' ), 'tab' => Controls_Manager::TAB_CONTENT, ] ); $this->add_control( 'pylon_team_stitle', [ 'label' => esc_html__( 'Small Title', 'pyloncore' ), 'type' => \Elementor\Controls_Manager::TEXT, 'default' => esc_html__( 'Professional & Experts', 'pyloncore' ), ] ); $this->add_control( 'pylon_team_title', [ 'label' => esc_html__( 'Title', 'pyloncore' ), 'type' => \Elementor\Controls_Manager::TEXT, 'default' => esc_html__( 'Meet the Best Agents', 'pyloncore' ), ] ); $this->add_control( 'pylon_team_title_tag', [ 'label' => esc_html__( 'Select Title Tag', 'pyloncore' ), 'type' => Controls_Manager::SELECT, 'default' => 'h2', 'options' => [ 'h1' => esc_html__( 'H1', 'pyloncore' ), 'h2' => esc_html__( 'H2', 'pyloncore' ), 'h3' => esc_html__( 'H3', 'pyloncore' ), 'h4' => esc_html__( 'H4', 'pyloncore' ), 'h5' => esc_html__( 'H5', 'pyloncore' ), 'h6' => esc_html__( 'H6', 'pyloncore' ), 'span'=> esc_html__( 'Span', 'pyloncore' ), 'p' => esc_html__( 'P', 'pyloncore' ), 'div' => esc_html__( 'Div', 'pyloncore' ), ], ] ); $this->add_control( 'pylon_team_textarea', [ 'label' => esc_html__( 'Content', 'pyloncore' ), 'type' => \Elementor\Controls_Manager::TEXTAREA, 'default' => esc_html__( 'There are many variations of passages of Lorem Ipsum available, but the majority have suffered alteration in some form.', 'pyloncore' ), 'show_label' => true, ] ); $this->end_controls_section(); $this->start_controls_section( 'pylon_team_css_section', [ 'label' => esc_html__( 'Section', 'pyloncore' ), 'tab' => Controls_Manager::TAB_STYLE, ] ); $this->add_control( 'pylon_ttitle_box_alignment', [ '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, ] ); $this->add_responsive_control( 'title_color', [ 'label' => esc_html__( 'Title Color', 'pyloncore' ), 'type' => \Elementor\Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .team-home' => 'background-color: {{VALUE}}', ], ] ); $this->add_responsive_control( 'pylon_team_css_section_margin', [ 'label' => esc_html__( 'Margin', 'pyloncore' ), 'type' => Controls_Manager::DIMENSIONS, 'size_units' => ['px', '%', 'em'], 'selectors' => [ '{{WRAPPER}} .team-home' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', ], ] ); $this->add_responsive_control( 'pylon_team_css_section_padding', [ 'label' => esc_html__( 'Padding', 'pyloncore' ), 'type' => Controls_Manager::DIMENSIONS, 'size_units' => ['px', '%', 'em'], 'default' => [ 'top' => '120', 'right' => '0', 'bottom' => '120', 'left' => '0', 'isLinked' => true, ], 'selectors' => [ '{{WRAPPER}} .team-home' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', ], ] ); $this->end_controls_section(); $this->start_controls_section( 'pylon_ttitle_stitle_styles', [ 'label' => esc_html__( 'Static Small Title', 'pyloncore' ), 'tab' => Controls_Manager::TAB_STYLE, ] ); $this->add_responsive_control( 'pylon_ttitle_small_title_color', [ 'label' => esc_html__( 'Color', 'pyloncore' ), 'type' => \Elementor\Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .small-title' => 'color: {{VALUE}}', ], ] ); $this->add_group_control( \Elementor\Group_Control_Typography::get_type(), [ 'name' => 'pylon_ttitle_small_title_typo', 'label' => esc_html__( 'Typography', 'pyloncore' ), 'selector' => '{{WRAPPER}} .small-title', ] ); $this->add_responsive_control( 'pylon_ttitle_small_title_after_color', [ 'label' => esc_html__( 'Line Color', 'pyloncore' ), 'type' => \Elementor\Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .small-title:after' => 'background-color: {{VALUE}}', ], ] ); $this->add_responsive_control( 'pylon_ttitle_stitle_margin', [ 'label' => esc_html__( 'Margin', 'pyloncore' ), 'type' => Controls_Manager::DIMENSIONS, 'size_units' => ['px', '%', 'em'], 'selectors' => [ '{{WRAPPER}} .small-title' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', ], 'separator' => 'before', ] ); $this->add_responsive_control( 'pylon_ttitle_stitle_padding', [ 'label' => esc_html__( 'Padding', 'pyloncore' ), 'type' => Controls_Manager::DIMENSIONS, 'size_units' => ['px', '%', 'em'], 'selectors' => [ '{{WRAPPER}} .small-title' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', ], 'separator' => 'before', ] ); $this->end_controls_section(); $this->start_controls_section( 'pylon_ttitle_title_styles', [ 'label' => esc_html__( 'Static Title', 'pyloncore' ), 'tab' => Controls_Manager::TAB_STYLE, ] ); $this->add_responsive_control( 'pylon_ttitle_title_color', [ 'label' => esc_html__( 'Color', 'pyloncore' ), 'type' => \Elementor\Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .team-home__content .block-title .title-block' => 'color: {{VALUE}}', ], ] ); $this->add_group_control( \Elementor\Group_Control_Typography::get_type(), [ 'name' => 'pylon_ttitle_title_typo', 'label' => esc_html__( 'Typography', 'pyloncore' ), 'selector' => '{{WRAPPER}} .team-home__content .block-title .title-block', ] ); $this->add_responsive_control( 'pylon_ttitle_title_margin', [ 'label' => esc_html__( 'Margin', 'pyloncore' ), 'type' => Controls_Manager::DIMENSIONS, 'size_units' => ['px', '%', 'em'], 'default' => [ 'top' => '0', 'right' => '0', 'bottom' => '50', 'left' => '0', 'isLinked' => true, ], 'selectors' => [ '{{WRAPPER}} .team-home__content .block-title' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', ], 'separator' => 'before', ] ); $this->add_responsive_control( 'pylon_ttitle_title_padding', [ 'label' => esc_html__( 'Padding', 'pyloncore' ), 'type' => Controls_Manager::DIMENSIONS, 'size_units' => ['px', '%', 'em'], 'selectors' => [ '{{WRAPPER}} .team-home__content .block-title .title-block' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', ], 'separator' => 'before', ] ); $this->end_controls_section(); $this->start_controls_section( 'pylon_ttitle_dec_styles', [ 'label' => esc_html__( 'Static Content', 'pyloncore' ), 'tab' => Controls_Manager::TAB_STYLE, ] ); $this->add_responsive_control( 'pylon_ttitle_dec_color', [ 'label' => esc_html__( 'Color', 'pyloncore' ), 'type' => \Elementor\Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .team-home__content>P' => 'color: {{VALUE}}', ], ] ); $this->add_group_control( \Elementor\Group_Control_Typography::get_type(), [ 'name' => 'pylon_ttitle_dec_typo', 'label' => esc_html__( 'Typography', 'pyloncore' ), 'selector' => '{{WRAPPER}} .team-home__content>P', ] ); $this->add_responsive_control( 'pylon_ttitle_dec_margin', [ 'label' => esc_html__( 'Margin', 'pyloncore' ), 'type' => Controls_Manager::DIMENSIONS, 'size_units' => ['px', '%', 'em'], 'selectors' => [ '{{WRAPPER}} .team-home__content>P' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', ], 'separator' => 'before', ] ); $this->add_responsive_control( 'pylon_ttitle_dec_padding', [ 'label' => esc_html__( 'Padding', 'pyloncore' ), 'type' => Controls_Manager::DIMENSIONS, 'size_units' => ['px', '%', 'em'], 'selectors' => [ '{{WRAPPER}} .team-home__content>P' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', ], 'separator' => 'before', ] ); $this->end_controls_section(); $this->start_controls_section( 'pylon_team_styles_after', [ 'label' => esc_html__( 'Team Section After', 'pyloncore' ), 'tab' => Controls_Manager::TAB_STYLE, ] ); $this->add_group_control( \Elementor\Group_Control_Background::get_type(), [ 'name' => 'pylon_team_css_section_after', 'label' => esc_html__( 'Background', 'pyloncore' ), 'types' => ['classic', 'gradient', 'video'], 'selector' => '{{WRAPPER}} .team-home__bg', ] ); $this->add_responsive_control( 'pylon_team_css_section_after_bg', [ 'label' => esc_html__( 'Background Color', 'pyloncore' ), 'type' => \Elementor\Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .team-home__bg::before' => 'background-color: {{VALUE}}', ], ] ); $this->end_controls_section(); $this->start_controls_section( 'pylon_team_styles', [ 'label' => esc_html__( 'Team Content Box', 'pyloncore' ), 'tab' => Controls_Manager::TAB_STYLE, ] ); $this->add_responsive_control( 'pylon_team_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_team_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_team_css_box_padding', [ 'label' => esc_html__( 'Padding', 'pyloncore' ), 'type' => Controls_Manager::DIMENSIONS, 'size_units' => ['px', '%', 'em'], 'default' => [ 'top' => '40', 'right' => '50', 'bottom' => '40', 'left' => '50', 'isLinked' => true, ], 'selectors' => [ '{{WRAPPER}} .team-one__content' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', ], ] ); $this->add_control( 'pylon_team_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_team_title_css', [ 'label' => esc_html__( 'Team Title', 'pyloncore' ), 'tab' => Controls_Manager::TAB_STYLE, ] ); $this->add_responsive_control( 'pylon_team_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_team_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_team_title_font', 'label' => esc_html__( 'Typography', 'pyloncore' ), 'selector' => '{{WRAPPER}} .team-one__content h3 a', ] ); $this->add_responsive_control( 'pylon_team_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_team_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_team_stitle_css', [ 'label' => esc_html__( 'Team Sub Title', 'pyloncore' ), 'tab' => Controls_Manager::TAB_STYLE, ] ); $this->add_responsive_control( 'pylon_team_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_team_stitle_font', 'label' => esc_html__( 'Typography', 'pyloncore' ), 'selector' => '{{WRAPPER}} .team-one__content span', ] ); $this->add_responsive_control( 'pylon_team_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_team_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_team_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_team_social_bg', 'label' => esc_html__( 'Background', 'pyloncore' ), 'types' => ['classic', 'gradient', 'video'], 'selector' => '{{WRAPPER}} .team-one__social', ] ); $this->add_responsive_control( 'pylon_team_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_team_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_team_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_team_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_team_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_team_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 ); 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", "prevEl": "#team-home__swiper-button-prev" }, "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>'; ?> <section class="team-home"> <div class="team-home__bg"></div> <div class="container"> <div class="row"> <div class="col-xl-5"> <div class="team-home__content text-<?php echo esc_attr($settings['pylon_ttitle_box_alignment']); ?>"> <div class="block-title"> <p class="small-title"><?php echo esc_html($settings['pylon_team_stitle']); ?></p> <<?php echo esc_attr($settings['pylon_team_title_tag']); ?> class="title-block"><?php echo esc_html($settings['pylon_team_title']); ?></<?php echo esc_attr($settings['pylon_team_title_tag']); ?>> </div> <p><?php echo esc_html($settings['pylon_team_textarea']); ?></p> <div class="team-home__nav"> <div class="swiper-button-prev" id="team-home__swiper-button-next"><i class="pylon-icon-left-arrow"></i></div> <div class="swiper-button-next" id="team-home__swiper-button-prev"><i class="pylon-icon-right-arrow"></i></div> </div> </div> </div> </div> </div> <div class="team-home__carousel-wrap "> <div class="thm-swiper__slider swiper-container team-slider-<?php echo esc_attr($dynamic_num); ?>"> <div class="swiper-wrapper"> <?php global $post; $paged = get_query_var('paged') ? get_query_var('paged') : 1; $p = new \WP_Query( array( 'posts_per_page' => -1, '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_team = get_post_meta( get_the_ID(), 'pylon_team_meta', true ); } else { $pylon_team = array(); } ?> <div class="swiper-slide"> <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 if($pylon_team) { foreach($pylon_team['pylon_member_social_profile'] as $plon_team_social){ if($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_team['pylon_member_designation'])) {?> <span><?php echo esc_html($pylon_team['pylon_member_designation']); ?></span> <?php } ?> </div> </div> </div> <?php endwhile; wp_reset_query(); ?> </div> </div> </div> </section> <?php } } Plugin::instance()->widgets_manager->register_widget_type( new Pylon_Team_Widget );
Save
cmd:
run