start_controls_section(
'_section_team',
[
'label' => esc_html__( 'Team Settings', 'easy-elements' ),
'tab' => Controls_Manager::TAB_CONTENT,
]
);
$this->add_control(
'team_skin',
[
'label' => esc_html__('Skin Type', 'easy-elements'),
'type' => \Elementor\Controls_Manager::SELECT,
'default' => 'default',
'options' => [
'default' => esc_html__('Default', 'easy-elements'),
'skin1' => esc_html__('Skin 01', 'easy-elements'),
'skin2' => esc_html__('Skin 02', 'easy-elements'),
'skin3' => esc_html__('Skin 03', 'easy-elements'),
],
]
);
$this->add_control(
'image',
[
'label' => esc_html__('Image', 'easy-elements'),
'type' => Controls_Manager::MEDIA,
'default' => [
'url' => Utils::get_placeholder_image_src(),
],
]
);
$this->add_control(
'_name',
[
'label' => esc_html__( 'Name', 'easy-elements' ),
'type' => \Elementor\Controls_Manager::TEXT,
'default' => esc_html__( 'Harry Nelson', 'easy-elements' ),
'label_block' => true,
]
);
$this->add_control(
'title_tag',
[
'label' => esc_html__( 'Title HTML Tag', 'easy-elements' ),
'type' => \Elementor\Controls_Manager::SELECT,
'default' => 'h4',
'options' => [
'h1' => 'H1',
'h2' => 'H2',
'h3' => 'H3',
'h4' => 'H4',
'h5' => 'H5',
'h6' => 'H6',
'div' => 'div',
'span' => 'span',
'p' => 'p',
],
]
);
$this->add_control(
'designation',
[
'label' => esc_html__('Designation', 'easy-elements'),
'type' => Controls_Manager::TEXT,
'default' => esc_html__( 'Head of Operations', 'easy-elements' ),
'label_block' => true,
]
);
$this->add_control(
'details',
[
'label' => esc_html__('Details', 'easy-elements'),
'type' => \Elementor\Controls_Manager::TEXTAREA,
'default' => '',
'rows' => 4,
'placeholder' => esc_html__('Enter team member details here...', 'easy-elements'),
'label_block' => true,
'description' => esc_html__('This field is shown in the popup when Action Type is set to Popup.', 'easy-elements'),
]
);
$this->add_control(
'action_type',
[
'label' => esc_html__('Action Type', 'easy-elements'),
'type' => \Elementor\Controls_Manager::SELECT,
'options' => [
'link' => esc_html__('Link', 'easy-elements'),
'popup' => esc_html__('Popup', 'easy-elements'),
],
'default' => 'link',
'description' => esc_html__('Choose between link or popup action.', 'easy-elements'),
]
);
$this->add_control(
'link',
[
'label' => esc_html__('Link', 'easy-elements'),
'type' => Controls_Manager::URL,
'placeholder' => 'https://example.com',
'description' => esc_html__('You can add a page link here, such as the team member\'s profile page.', 'easy-elements'),
'condition' => [
'action_type' => 'link',
],
]
);
$this->add_control(
'content_show',
[
'label' => esc_html__('Content Show', 'easy-elements'),
'type' => \Elementor\Controls_Manager::SELECT,
'default' => 'inside',
'options' => [
'inside' => esc_html__('Inside Image', 'easy-elements'),
'normal' => esc_html__('Normal', 'easy-elements'),
],
'condition' => [
'team_skin' => ['default','skin2'],
],
]
);
$this->add_group_control(
Group_Control_Image_Size::get_type(),
[
'name' => 'image',
'default' => 'full',
]
);
$this->add_control(
'fetchpriority',
[
'label' => __('Image Fetch Priority', 'easy-elements'),
'type' => \Elementor\Controls_Manager::SELECT,
'options' => [
'' => __('Default', 'easy-elements'),
'high' => __('High', 'easy-elements'),
'low' => __('Low', 'easy-elements'),
],
'default' => 'low',
]
);
$this->add_control(
'image_overlay_note',
[
'type' => \Elementor\Controls_Manager::RAW_HTML,
'raw' => '
',
'separator' => 'before',
]
);
$this->add_group_control(
\Elementor\Group_Control_Background::get_type(),
[
'name' => 'image_overlay',
'label' => esc_html__('Image Overlay', 'easy-elements'),
'types' => [ 'classic', 'gradient' ],
'selector' => '{{WRAPPER}} .eel-team-grid .ee--team-img .eel-image-overlay',
]
);
$this->add_control(
'show_social_icon',
[
'label' => esc_html__( 'Show Social Icon', 'easy-elements' ),
'type' => \Elementor\Controls_Manager::SWITCHER,
'label_on' => esc_html__( 'Show', 'easy-elements' ),
'label_off' => esc_html__( 'Hide', 'easy-elements' ),
'return_value' => 'yes',
'default' => 'no',
'separator' => 'before',
]
);
$this->end_controls_section();
// Social Item
$this->start_controls_section(
'social_icon_section',
[
'label' => esc_html__( 'Social Settings', 'easy-elements' ),
'tab' => Controls_Manager::TAB_CONTENT,
'condition' => [
'show_social_icon' => 'yes',
],
]
);
$this->add_control(
'social_icon_position',
[
'label' => esc_html__('Icon Position', 'easy-elements'),
'type' => \Elementor\Controls_Manager::SELECT,
'default' => 'default',
'options' => [
'default' => esc_html__('Default', 'easy-elements'),
'posi_left' => esc_html__('Top Left', 'easy-elements'),
'posi_right' => esc_html__('Top Right', 'easy-elements'),
'posi_botttom_left' => esc_html__('Bottom Left', 'easy-elements'),
'posi_botttom_right' => esc_html__('Bottom Right', 'easy-elements'),
],
]
);
$this->add_control(
'social_icon_show',
[
'label' => esc_html__('Icon Show', 'easy-elements'),
'type' => \Elementor\Controls_Manager::SELECT,
'default' => 'dafault_show',
'options' => [
'dafault_show' => esc_html__('Dafault Show', 'easy-elements'),
'hover_show' => esc_html__('Icon Hover Show', 'easy-elements'),
],
'condition' => [
'social_icon_position!' => 'default',
],
]
);
$this->add_control(
'social_hover_icon',
[
'label' => esc_html__( 'Hover Icon', 'easy-elements' ),
'type' => \Elementor\Controls_Manager::ICONS,
'label_block' => true,
'default' => [
'value' => 'fas fa-plus',
'library' => 'fa-solid',
],
'condition' => [
'social_icon_show' => 'hover_show',
'social_icon_position!' => 'default',
],
]
);
$this->add_responsive_control(
's_icon_posi_top',
[
'label' => esc_html__( 'Top Position', 'easy-elements' ),
'type' => \Elementor\Controls_Manager::SLIDER,
'size_units' => [ 'px', 'em','%'],
'range' => [
'px' => [
'min' => 0,
'max' => 500,
],
],
'selectors' => [
'{{WRAPPER}} .eel-team-grid-social.posi_left, {{WRAPPER}} .eel-team-grid-social.posi_right' => 'top: {{SIZE}}{{UNIT}};',
],
'condition' => [
'social_icon_position' => ['posi_left','posi_right'],
],
]
);
$this->add_responsive_control(
's_icon_posi_bottom',
[
'label' => esc_html__( 'Bottom Position', 'easy-elements' ),
'type' => \Elementor\Controls_Manager::SLIDER,
'size_units' => [ 'px', 'em','%'],
'range' => [
'px' => [
'min' => 0,
'max' => 500,
],
],
'selectors' => [
'{{WRAPPER}} .eel-team-grid-social.posi_botttom_left, {{WRAPPER}} .eel-team-grid-social.posi_botttom_right' => 'bottom: {{SIZE}}{{UNIT}};',
],
'condition' => [
'social_icon_position' => ['posi_botttom_left','posi_botttom_right'],
],
]
);
$this->add_responsive_control(
's_icon_posi_left',
[
'label' => esc_html__( 'Left Position', 'easy-elements' ),
'type' => \Elementor\Controls_Manager::SLIDER,
'size_units' => [ 'px', 'em','%'],
'range' => [
'px' => [
'min' => 0,
'max' => 500,
],
],
'selectors' => [
'{{WRAPPER}} .eel-team-grid-social.posi_left' => 'left: {{SIZE}}{{UNIT}};',
'{{WRAPPER}} .eel-team-grid-social.posi_botttom_left' => 'left: {{SIZE}}{{UNIT}};',
],
'condition' => [
'social_icon_position' => ['posi_left','posi_botttom_left'],
],
]
);
$this->add_responsive_control(
's_icon_posi_right',
[
'label' => esc_html__( 'Right Position', 'easy-elements' ),
'type' => \Elementor\Controls_Manager::SLIDER,
'size_units' => [ 'px', 'em','%'],
'range' => [
'px' => [
'min' => 0,
'max' => 500,
],
],
'selectors' => [
'{{WRAPPER}} .eel-team-grid-social.posi_right' => 'right: {{SIZE}}{{UNIT}};',
'{{WRAPPER}} .eel-team-grid-social.posi_botttom_right' => 'right: {{SIZE}}{{UNIT}};',
],
'condition' => [
'social_icon_position' => ['posi_right','posi_botttom_right'],
],
]
);
$this->add_control(
'social_links',
[
'label' => esc_html__( 'Social Links', 'easy-elements' ),
'type' => Controls_Manager::REPEATER,
'fields' => [
[
'name' => 'link_url',
'label' => esc_html__( 'Link URL', 'easy-elements' ),
'type' => Controls_Manager::URL,
'default' => [
'url' => '#',
'is_external' => true,
'nofollow' => false,
],
],
[
'name' => 'icon',
'label' => esc_html__( 'Icon', 'easy-elements' ),
'type' => Controls_Manager::ICONS,
'default' => [
'value' => 'fab fa-facebook-f',
'library' => 'fa-brands',
],
],
],
'default' => [
[
'link_url' => [ 'url' => '#' ],
'icon' => [ 'value' => 'fab fa-facebook-f' ],
],
],
'title_field' => ' {{{ icon.value.replace(/^(fab fa-|fas fa-|far fa-|fa fa-)/, "") }}}',
]
);
$this->end_controls_section();
// Tab STYLE
$this->start_controls_section(
'section_item_per',
[
'label' => esc_html__( 'Team Item', 'easy-elements' ),
'tab' => Controls_Manager::TAB_STYLE,
]
);
$this->add_group_control(
\Elementor\Group_Control_Background::get_type(),
[
'name' => 'team_wrap_background',
'label' => __( 'Background', 'easy-elements' ),
'types' => [ 'classic', 'gradient' ],
'selector' => '{{WRAPPER}} .eel-team-grid .ee--team-img',
]
);
$this->add_responsive_control(
'item_padding',
[
'label' => esc_html__( 'Padding', 'easy-elements' ),
'type' => \Elementor\Controls_Manager::DIMENSIONS,
'size_units' => [ 'px', '%' ],
'selectors' => [
'{{WRAPPER}} .eel-team-grid .ee--team-img' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
],
]
);
$this->add_responsive_control(
'item_bdr_radius',
[
'label' => esc_html__( 'Border Radius', 'easy-elements' ),
'type' => \Elementor\Controls_Manager::DIMENSIONS,
'size_units' => [ 'px', '%' ],
'selectors' => [
'{{WRAPPER}} .eel-team-grid .ee--team-img' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
],
]
);
$this->add_group_control(
\Elementor\Group_Control_Border::get_type(),
[
'name' => 'team_border',
'selector' => '{{WRAPPER}} .eel-team-grid .ee--team-img',
]
);
$this->add_control(
'team_hover_border_color',
[
'label' => esc_html__( 'Item Hover Border Color', 'easy-elements' ),
'type' => \Elementor\Controls_Manager::COLOR,
'selectors' => [
'{{WRAPPER}} .eel-team-grid .ee--team-img:hover' => 'border-color: {{VALUE}}',
],
]
);
$this->add_group_control(
\Elementor\Group_Control_Box_Shadow::get_type(),
[
'name' => 'team_box_shadow',
'label' => esc_html__('Box Shadow', 'easy-elements'),
'selector' => '{{WRAPPER}} .eel-team-grid .ee--team-img',
]
);
$this->end_controls_section();
// Image
$this->start_controls_section(
'section_image',
[
'label' => esc_html__( 'Image', 'easy-elements' ),
'tab' => Controls_Manager::TAB_STYLE,
]
);
$this->add_responsive_control(
'image_width',
[
'label' => esc_html__( 'Image Width', 'easy-elements' ),
'type' => \Elementor\Controls_Manager::SLIDER,
'size_units' => [ 'px', 'em', '%' ],
'range' => [
'px' => [
'max' => 500,
],
],
'selectors' => [
'{{WRAPPER}} .eel-team-grid .ee--team-img .eel-team-img-box' => 'max-width: {{SIZE}}{{UNIT}};',
],
]
);
$this->add_responsive_control(
'image_height',
[
'label' => esc_html__( 'Image Height', 'easy-elements' ),
'type' => \Elementor\Controls_Manager::SLIDER,
'size_units' => [ 'px', 'em', '%' ],
'range' => [
'px' => [
'max' => 500,
],
],
'selectors' => [
'{{WRAPPER}} .eel-team-grid .ee--team-img .eel-team-img-box img' => 'height: {{SIZE}}{{UNIT}};',
],
]
);
$this->add_responsive_control(
'image_padding',
[
'label' => esc_html__( 'Padding', 'easy-elements' ),
'type' => \Elementor\Controls_Manager::DIMENSIONS,
'size_units' => [ 'px', 'em', '%' ],
'selectors' => [
'{{WRAPPER}} .eel-team-grid .ee--team-img .eel-team-img-area' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
],
]
);
$this->add_responsive_control(
'image_border_radius',
[
'label' => esc_html__( 'Border Radius', 'easy-elements' ),
'type' => \Elementor\Controls_Manager::DIMENSIONS,
'size_units' => [ 'px', '%' ],
'selectors' => [
'{{WRAPPER}} .eel-team-grid .ee--team-img .eel-team-img-box' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
],
]
);
$this->add_control(
'image_below_bg',
[
'label' => esc_html__( 'Below Background Color', 'easy-elements' ),
'type' => \Elementor\Controls_Manager::COLOR,
'selectors' => [
'{{WRAPPER}} .eel-team-grid .ee--team-img .eel-team-img-area .eel-image-below-bg' => 'background-color: {{VALUE}}',
],
]
);
$this->add_responsive_control(
'image_below_height',
[
'label' => esc_html__( 'Image BG Height', 'easy-elements' ),
'type' => \Elementor\Controls_Manager::SLIDER,
'selectors' => [
'{{WRAPPER}} .eel-team-grid .ee--team-img .eel-team-img-area .eel-image-below-bg' => 'height: {{SIZE}}%;',
],
]
);
$this->add_responsive_control(
'image_below_border_radius',
[
'label' => esc_html__( 'Below BG Border Radius', 'easy-elements' ),
'type' => \Elementor\Controls_Manager::DIMENSIONS,
'size_units' => [ 'px', '%' ],
'selectors' => [
'{{WRAPPER}} .eel-team-grid .ee--team-img .eel-team-img-area .eel-image-below-bg' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
],
]
);
$this->end_controls_section();
// Name & Designation
$this->start_controls_section(
'section_item',
[
'label' => esc_html__( 'Name & Designation Area', 'easy-elements' ),
'tab' => Controls_Manager::TAB_STYLE,
]
);
$this->add_control(
'_bg_color',
[
'label' => esc_html__( 'Background Color', 'easy-elements' ),
'type' => \Elementor\Controls_Manager::COLOR,
'selectors' => [
'{{WRAPPER}} .eel-team-grid .ee--team-img .eel-name-deg-wrap' => 'background-color: {{VALUE}}',
],
'condition' => [
'team_skin!' => ['skin1']
],
]
);
$this->add_responsive_control(
'wrap_padding',
[
'label' => esc_html__( 'Padding', 'easy-elements' ),
'type' => \Elementor\Controls_Manager::DIMENSIONS,
'size_units' => [ 'px', 'em', '%' ],
'selectors' => [
'{{WRAPPER}} .eel-team-grid .ee--team-img .eel-name-deg-wrap' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
],
]
);
$this->add_responsive_control(
'wrap_margin',
[
'label' => esc_html__( 'Margin', 'easy-elements' ),
'type' => \Elementor\Controls_Manager::DIMENSIONS,
'size_units' => [ 'px', 'em', '%' ],
'selectors' => [
'{{WRAPPER}} .eel-team-grid .ee--team-img .eel-name-deg-wrap' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
],
]
);
$this->add_responsive_control(
'_bdr_radius',
[
'label' => esc_html__( 'Border Radius', 'easy-elements' ),
'type' => \Elementor\Controls_Manager::DIMENSIONS,
'size_units' => [ 'px', '%' ],
'selectors' => [
'{{WRAPPER}} .eel-team-grid .ee--team-img .eel-name-deg-wrap' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
],
'condition' => [
'team_skin!' => ['skin1']
],
]
);
$this->add_responsive_control(
'team_content_alignment',
[
'label' => esc_html__( 'Alignment', 'easy-elements' ),
'type' => \Elementor\Controls_Manager::CHOOSE,
'options' => [
'left' => [
'title' => esc_html__( 'Left', 'easy-elements' ),
'icon' => 'eicon-text-align-left',
],
'center' => [
'title' => esc_html__( 'Center', 'easy-elements' ),
'icon' => 'eicon-text-align-center',
],
'right' => [
'title' => esc_html__( 'Right', 'easy-elements' ),
'icon' => 'eicon-text-align-right',
],
],
'selectors' => [
'{{WRAPPER}} .eel-team-grid .ee--team-img .eel-name-deg-wrap' => 'text-align: {{VALUE}};',
],
]
);
$this->end_controls_section();
// Name
$this->start_controls_section(
'section_name',
[
'label' => esc_html__( 'Name', 'easy-elements' ),
'tab' => Controls_Manager::TAB_STYLE,
]
);
$this->add_control(
'name_color',
[
'label' => esc_html__( 'Color', 'easy-elements' ),
'type' => Controls_Manager::COLOR,
'selectors' => [
'{{WRAPPER}} .eel-name' => 'color: {{VALUE}};',
],
]
);
$this->add_group_control(
\Elementor\Group_Control_Typography::get_type(),
[
'name' => 'name_typography',
'label' => esc_html__( 'Typography', 'easy-elements' ),
'selector' => '{{WRAPPER}} .eel-name',
]
);
$this->add_responsive_control(
'name_padding',
[
'label' => esc_html__( 'Padding', 'easy-elements' ),
'type' => \Elementor\Controls_Manager::DIMENSIONS,
'size_units' => [ 'px', 'em', '%' ],
'selectors' => [
'{{WRAPPER}} .eel-name' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
],
]
);
$this->end_controls_section();
// Designation
$this->start_controls_section(
'section_designation',
[
'label' => esc_html__( 'Designation', 'easy-elements' ),
'tab' => Controls_Manager::TAB_STYLE,
]
);
$this->add_control(
'designation_color',
[
'label' => esc_html__( 'Color', 'easy-elements' ),
'type' => Controls_Manager::COLOR,
'selectors' => [
'{{WRAPPER}} .eel-designation' => 'color: {{VALUE}};',
],
]
);
$this->add_group_control(
\Elementor\Group_Control_Typography::get_type(),
[
'name' => 'designation_typography',
'label' => esc_html__( 'Typography', 'easy-elements' ),
'selector' => '{{WRAPPER}} .eel-designation',
]
);
$this->end_controls_section();
$this->start_controls_section(
'section_description',
[
'label' => esc_html__( 'Description', 'easy-elements' ),
'tab' => Controls_Manager::TAB_STYLE,
'condition' => [
'team_skin' => 'skin3',
],
]
);
$this->start_controls_tabs( 'description_colors' );
// Normal Tab
$this->start_controls_tab(
'description_colors_normal',
[
'label' => esc_html__( 'Normal', 'easy-elements' ),
]
);
$this->add_control(
'description_color',
[
'label' => esc_html__( 'Color', 'easy-elements' ),
'type' => Controls_Manager::COLOR,
'selectors' => [
'{{WRAPPER}} .eel-image-content .eel-description' => 'color: {{VALUE}};',
],
]
);
$this->add_group_control(
\Elementor\Group_Control_Background::get_type(),
[
'name' => 'description_background',
'label' => esc_html__( 'Background Color', 'easy-elements' ),
'types' => [ 'classic', 'gradient' ],
'selector' => '{{WRAPPER}} .eel-image-content',
]
);
$this->end_controls_tab();
// Hover Tab
$this->start_controls_tab(
'description_colors_hover',
[
'label' => esc_html__( 'Hover', 'easy-elements' ),
]
);
$this->add_control(
'description_color_hover',
[
'label' => esc_html__( 'Color', 'easy-elements' ),
'type' => Controls_Manager::COLOR,
'selectors' => [
'{{WRAPPER}} .eel-image-content:hover .eel-description' => 'color: {{VALUE}};',
],
]
);
$this->add_group_control(
\Elementor\Group_Control_Background::get_type(),
[
'name' => 'description_background_hover',
'label' => esc_html__( 'Background Color', 'easy-elements' ),
'types' => [ 'classic', 'gradient' ],
'selector' => '{{WRAPPER}} .eel-image-content:hover:before',
]
);
$this->add_control(
'description_background_hover_opacity',
[
'label' => esc_html__( 'Opacity', 'easy-elements' ),
'type' => \Elementor\Controls_Manager::SLIDER,
'range' => [
'' => [
'min' => 0,
'max' => 1,
'step' => 0.1,
],
],
'default' => [
'size' => 0.5,
],
'selectors' => [
'{{WRAPPER}} .eel-image-content:hover::before' => 'opacity: {{SIZE}};',
],
]
);
$this->end_controls_tab();
$this->end_controls_tabs();
// Typography control (applies to both normal and hover states)
$this->add_group_control(
\Elementor\Group_Control_Typography::get_type(),
[
'name' => 'description_typography',
'label' => esc_html__( 'Typography', 'easy-elements' ),
'selector' => '{{WRAPPER}} .eel-image-content .eel-description',
]
);
$this->add_control(
'description_hover_transition',
[
'label' => esc_html__( 'Transition Duration', 'easy-elements' ),
'type' => Controls_Manager::SLIDER,
'size_units' => [ 's', 'ms' ],
'range' => [
's' => [
'min' => 0,
'max' => 3,
'step' => 0.1,
],
'ms' => [
'min' => 0,
'max' => 3000,
'step' => 100,
],
],
'default' => [
'unit' => 's',
'size' => 0.3,
],
'selectors' => [
'{{WRAPPER}} .eel-image-content' => 'transition-duration: {{SIZE}}{{UNIT}};',
],
]
);
$this->add_responsive_control(
'description_padding',
[
'label' => esc_html__( 'Padding', 'easy-elements' ),
'type' => Controls_Manager::DIMENSIONS,
'size_units' => [ 'px', '%', 'em' ],
'selectors' => [
'{{WRAPPER}} .eel-image-content' => 'padding: {{TOP}}{{UNIT}}} {{RIGHT}}{{UNIT}}} {{BOTTOM}}{{UNIT}}} {{LEFT}}{{UNIT}};',
],
]
);
$this->add_control(
'image_descripiton_overlay_note',
[
'type' => \Elementor\Controls_Manager::RAW_HTML,
'raw' => '',
'separator' => 'before',
]
);
$this->end_controls_section();
// Social Item
$this->start_controls_section(
'section_social',
[
'label' => esc_html__( 'Social Icon', 'easy-elements' ),
'tab' => Controls_Manager::TAB_STYLE,
'condition' => [
'show_social_icon' => 'yes',
]
]
);
$this->add_control(
's_icon_color',
[
'label' => esc_html__( 'Color', 'easy-elements' ),
'type' => Controls_Manager::COLOR,
'selectors' => [
'{{WRAPPER}} .eel-team-grid-social ul li a' => 'color: {{VALUE}};',
'{{WRAPPER}} .eel-team-grid-social .eel-team-social-hover a' => 'color: {{VALUE}};',
],
]
);
$this->add_control(
's_icon_hover_color',
[
'label' => esc_html__( 'Hover Color', 'easy-elements' ),
'type' => Controls_Manager::COLOR,
'selectors' => [
'{{WRAPPER}} .eel-team-grid-social ul li a:hover' => 'color: {{VALUE}};',
'{{WRAPPER}} .eel-team-grid-social .eel-team-social-hover a:hover' => 'color: {{VALUE}};',
],
]
);
$this->add_control(
's_icon_bg_color',
[
'label' => esc_html__( 'Background Color', 'easy-elements' ),
'type' => Controls_Manager::COLOR,
'selectors' => [
'{{WRAPPER}} .eel-team-grid-social ul li a' => 'background: {{VALUE}};',
'{{WRAPPER}} .eel-team-grid-social .eel-team-social-hover a' => 'background: {{VALUE}};',
],
]
);
$this->add_control(
's_icon_hover_bg_color',
[
'label' => esc_html__( 'Hover Background Color', 'easy-elements' ),
'type' => Controls_Manager::COLOR,
'selectors' => [
'{{WRAPPER}} .eel-team-grid-social ul li a:hover' => 'background: {{VALUE}};',
'{{WRAPPER}} .eel-team-grid-social .eel-team-social-hover a:hover' => 'background: {{VALUE}};',
],
]
);
$this->add_group_control(
\Elementor\Group_Control_Typography::get_type(),
[
'name' => 's_icon_typography',
'label' => esc_html__( 'Typography', 'easy-elements' ),
'selector' => '{{WRAPPER}} .eel-team-grid-social ul li a, {{WRAPPER}} .eel-team-grid-social .eel-team-social-hover a',
]
);
$this->add_responsive_control(
's_icon_gap',
[
'label' => esc_html__( 'Icon Gap', 'easy-elements' ),
'type' => \Elementor\Controls_Manager::SLIDER,
'size_units' => [ 'px', 'em'],
'selectors' => [
'{{WRAPPER}} .eel-team-grid-social ul' => 'gap: {{SIZE}}{{UNIT}};',
],
]
);
$this->add_responsive_control(
's_icon_width-height',
[
'label' => esc_html__( 'Button Size', 'easy-elements' ),
'type' => \Elementor\Controls_Manager::SLIDER,
'size_units' => [ 'px', 'em'],
'selectors' => [
'{{WRAPPER}} .eel-team-grid-social ul li a' => 'width: {{SIZE}}{{UNIT}}; height: {{SIZE}}{{UNIT}};',
'{{WRAPPER}} .eel-team-grid-social .eel-team-social-hover a' => 'width: {{SIZE}}{{UNIT}}; height: {{SIZE}}{{UNIT}};',
],
]
);
$this->add_responsive_control(
's_icon_radius',
[
'label' => esc_html__( 'Border Radius', 'easy-elements' ),
'type' => \Elementor\Controls_Manager::DIMENSIONS,
'size_units' => [ 'px', '%' ],
'selectors' => [
'{{WRAPPER}} .eel-team-grid-social ul li a' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
'{{WRAPPER}} .eel-team-grid-social .eel-team-social-hover a' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
],
]
);
$this->add_responsive_control(
's_icon_area_padding',
[
'label' => esc_html__( 'Area Padding', 'easy-elements' ),
'type' => \Elementor\Controls_Manager::DIMENSIONS,
'size_units' => [ 'px', '%' ],
'selectors' => [
'{{WRAPPER}} .eel-team-grid-social' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
],
]
);
$this->add_group_control(
\Elementor\Group_Control_Border::get_type(),
[
'name' => 'social_item_border',
'label' => esc_html__( 'Area Border', 'easy-elements' ),
'selector' => '{{WRAPPER}} .eel-team-grid .eel-team-grid-social.default',
'condition' => [
'social_icon_position' => 'default',
]
]
);
$this->add_control(
'social_item_border_note',
[
'type' => \Elementor\Controls_Manager::RAW_HTML,
'raw' => 'Note:Social Area Border',
'content_classes' => 'elementor-panel-alert elementor-panel-alert-info',
'condition' => [
'social_icon_position' => 'default',
]
]
);
$this->add_responsive_control(
'team_social_icon_alignment',
[
'label' => esc_html__( 'Alignment', 'easy-elements' ),
'type' => \Elementor\Controls_Manager::CHOOSE,
'options' => [
'flex-start' => [
'title' => esc_html__( 'Left', 'easy-elements' ),
'icon' => 'eicon-justify-start-h',
],
'center' => [
'title' => esc_html__( 'Center', 'easy-elements' ),
'icon' => 'eicon-justify-center-h',
],
'right' => [
'title' => esc_html__( 'Right', 'easy-elements' ),
'icon' => 'eicon-justify-end-h',
],
],
'selectors' => [
'{{WRAPPER}} .eel-team-grid .ee--team-img .eel-team-grid-social.default ul' => 'justify-content: {{VALUE}};',
],
'condition' => [
'social_icon_position' => 'default',
]
]
);
$this->end_controls_section();
// Popup
$this->start_controls_section(
'section_popup_style',
[
'label' => esc_html__( 'Popup Style', 'easy-elements' ),
'tab' => Controls_Manager::TAB_STYLE,
'condition' => [
'action_type' => 'popup',
],
]
);
$this->add_control(
'popup_bg_color',
[
'label' => esc_html__( 'Background Color', 'easy-elements' ),
'type' => Controls_Manager::COLOR,
'selectors' => [
'{{WRAPPER}} .eel-popup-content' => 'background-color: {{VALUE}};',
],
]
);
$this->add_control(
'popup_name_color',
[
'label' => esc_html__( 'Name Color', 'easy-elements' ),
'type' => Controls_Manager::COLOR,
'selectors' => [
'{{WRAPPER}} .eel-popup-name .eel-name' => 'color: {{VALUE}};',
],
]
);
$this->add_group_control(
\Elementor\Group_Control_Typography::get_type(),
[
'name' => 'popup_name_typography',
'label' => esc_html__( 'Name Typography', 'easy-elements' ),
'selector' => '{{WRAPPER}} .eel-popup-name .eel-name',
]
);
$this->add_control(
'popup_designation_color',
[
'label' => esc_html__( 'Designation Color', 'easy-elements' ),
'type' => Controls_Manager::COLOR,
'selectors' => [
'{{WRAPPER}} .eel-popup-designation' => 'color: {{VALUE}};',
],
]
);
$this->add_group_control(
\Elementor\Group_Control_Typography::get_type(),
[
'name' => 'popup_designation_typography',
'label' => esc_html__( 'Designation Typography', 'easy-elements' ),
'selector' => '{{WRAPPER}} .eel-popup-designation',
]
);
$this->add_control(
'popup_details_color',
[
'label' => esc_html__( 'Details Color', 'easy-elements' ),
'type' => Controls_Manager::COLOR,
'selectors' => [
'{{WRAPPER}} .eel-popup-details' => 'color: {{VALUE}};',
],
]
);
$this->add_group_control(
\Elementor\Group_Control_Typography::get_type(),
[
'name' => 'popup_details_typography',
'label' => esc_html__( 'Details Typography', 'easy-elements' ),
'selector' => '{{WRAPPER}} .eel-popup-details',
]
);
$this->add_control(
'popup_close_color',
[
'label' => esc_html__( 'Close Icon Color', 'easy-elements' ),
'type' => Controls_Manager::COLOR,
'selectors' => [
'{{WRAPPER}} .eel-popup-close' => 'color: {{VALUE}};',
],
]
);
$this->end_controls_section();
}
protected function render() {
$settings = $this->get_settings_for_display();
$team_skin = $settings['team_skin'];
?>
%2$s%1$s>', esc_attr( $title_tag ), esc_html( $settings['_name'] ));
$designation = $settings['designation'] ?? '';
$details = $settings['details'] ?? '';
?>