/home/techb158/l2hypotheques.com/wp-content/plugins/pyloncore/elementor/widgets
Edit: /home/techb158/l2hypotheques.com/wp-content/plugins/pyloncore/elementor/widgets/team-two-widget.php (19602B)
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 '
';
}
if($settings['pylon_team2_slide_enable'] == 'yes' ) : ?>
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();
}
?>
widgets_manager->register_widget_type( new Pylon_Team_Two_Widget );