Sid Gifari File Manager
🏠 Root
/
home2
/
meumer25
/
www
/
wp-content
/
plugins
/
exclusive-addons-for-elementor
/
elements
/
team-member
/
Editing: team-member.php
<?php namespace ExclusiveAddons\Elements; if ( ! defined( 'ABSPATH' ) ) exit; // If this file is called directly, abort. use \Elementor\Controls_Manager; use \Elementor\Repeater; use \Elementor\Group_Control_Border; use \Elementor\Group_Control_Box_Shadow; use \Elementor\Group_Control_Image_Size; use \Elementor\Group_Control_Background; use \Elementor\Control_Media; use \Elementor\Icons_Manager; use \Elementor\Group_Control_Typography; use \Elementor\Group_Control_Css_Filter; use \Elementor\Utils; use \Elementor\Widget_Base; use \ExclusiveAddons\Elementor\Image_Mask_SVG_Control; use \ExclusiveAddons\Elementor\Helper; class Team_Member extends Widget_Base { public function get_name() { return 'exad-team-member'; } public function get_title() { return esc_html__( 'Team Member', 'exclusive-addons-elementor' ); } public function get_icon() { return 'exad exad-logo exad-team-member'; } public function get_categories() { return [ 'exclusive-addons-elementor' ]; } public function get_keywords() { return [ 'exclusive', 'employee', 'staff' ]; } protected function register_controls() { /** * Team Member Content Section */ $this->start_controls_section( 'exad_team_content', [ 'label' => esc_html__( 'Content', 'exclusive-addons-elementor' ) ] ); $this->add_control( 'exad_team_member_image', [ 'label' => __( 'Image', 'exclusive-addons-elementor' ), 'type' => Controls_Manager::MEDIA, 'default' => [ 'url' => Utils::get_placeholder_image_src() ], 'dynamic' => [ 'active' => true, ] ] ); $this->add_group_control( Group_Control_Image_Size::get_type(), [ 'name' => 'team_member_image_size', 'default' => 'medium_large', 'condition' => [ 'exad_team_member_image[url]!' => '' ] ] ); $this->add_control( 'exad_team_member_enable_image_mask', [ 'label' => __( 'Enable Image Mask', 'exclusive-addons-elementor' ), 'type' => Controls_Manager::SWITCHER, 'label_on' => __( 'Show', 'exclusive-addons-elementor' ), 'label_off' => __( 'Hide', 'exclusive-addons-elementor' ), 'return_value' => 'yes', 'default' => 'no', ] ); $this->add_control( 'exad_team_member_mask_shape_mask_shape', [ 'label' => __( 'Mask Shape', 'exclusive-addons-elementor' ), 'type' => Image_Mask_SVG_Control::SVGSELECTOR, 'options' => Helper::exad_masking_shape_list( 'list' ), 'default' => 'shape-1', 'toggle' => false, 'label_block' => true, 'selectors_dictionary' => Helper::exad_masking_shape_list( 'url' ), 'selectors' => [ '{{WRAPPER}} .exad-team-member-thumb img' => '-webkit-mask-image: url({{VALUE}}); mask-image: url({{VALUE}});' ], 'condition' => [ 'exad_team_member_enable_image_mask' => 'yes' ] ] ); $this->add_control( 'exad_team_member_mask_shape_position', [ 'label' => __( 'Position', 'exclusive-addons-elementor' ), 'type' => Controls_Manager::SELECT, 'default' => 'center', 'label_block' => true, 'options' => [ 'top' => __( 'Top', 'exclusive-addons-elementor' ), 'center' => __( 'Center', 'exclusive-addons-elementor' ), 'left' => __( 'Left', 'exclusive-addons-elementor' ), 'right' => __( 'Right', 'exclusive-addons-elementor' ), 'bottom' => __( 'Bottom', 'exclusive-addons-elementor' ), 'custom' => __( 'Custom', 'exclusive-addons-elementor' ) ], 'selectors' => [ '{{WRAPPER}} .exad-team-member-thumb img' => '-webkit-mask-position: {{VALUE}};' ], 'condition' => [ 'exad_team_member_enable_image_mask' => 'yes' ] ] ); $this->add_control( 'exad_team_member_mask_shape_position_x_offset', [ 'label' => __( 'X Offset', 'exclusive-addons-elementor' ), 'type' => Controls_Manager::SLIDER, 'size_units' => [ 'px', '%' ], 'range' => [ 'px' => [ 'min' => 0, 'max' => 500 ], '%' => [ 'min' => 0, 'max' => 100 ] ], 'selectors' => [ '{{WRAPPER}} .exad-team-member-thumb img' => '-webkit-mask-position-y: {{SIZE}}{{UNIT}};' ], 'condition' => [ 'exad_team_member_enable_image_mask' => 'yes', 'exad_team_member_mask_shape_position' => 'custom' ] ] ); $this->add_control( 'exad_team_member_mask_shape_position_y_offset', [ 'label' => __( 'Y Offset', 'exclusive-addons-elementor' ), 'type' => Controls_Manager::SLIDER, 'size_units' => [ 'px', '%' ], 'range' => [ 'px' => [ 'min' => 0, 'max' => 500 ], '%' => [ 'min' => 0, 'max' => 100 ] ], 'selectors' => [ '{{WRAPPER}} .exad-team-member-thumb img' => '-webkit-mask-position-x: {{SIZE}}{{UNIT}};' ], 'condition' => [ 'exad_team_member_enable_image_mask' => 'yes', 'exad_team_member_mask_shape_position' => 'custom' ] ] ); $this->add_control( 'exad_team_member_mask_shape_size', [ 'label' => __( 'Size', 'exclusive-addons-elementor' ), 'type' => Controls_Manager::SELECT, 'default' => 'auto', 'label_block' => true, 'options' => [ 'auto' => __( 'Auto', 'exclusive-addons-elementor' ), 'contain' => __( 'Contain', 'exclusive-addons-elementor' ), 'cover' => __( 'Cover', 'exclusive-addons-elementor' ), 'custom' => __( 'Custom', 'exclusive-addons-elementor' ) ], 'selectors' => [ '{{WRAPPER}} .exad-team-member-thumb img' => '-webkit-mask-size: {{VALUE}};' ], 'condition' => [ 'exad_team_member_enable_image_mask' => 'yes' ] ] ); $this->add_control( 'exad_team_member_mask_shape_custome_size', [ 'label' => __( 'Mask Size', 'exclusive-addons-elementor' ), 'type' => Controls_Manager::SLIDER, 'size_units' => [ 'px', '%' ], 'range' => [ 'px' => [ 'min' => 0, 'max' => 600 ], '%' => [ 'min' => 0, 'max' => 100 ] ], 'selectors' => [ '{{WRAPPER}} .exad-team-member-thumb img' => '-webkit-mask-size: {{SIZE}}{{UNIT}};' ], 'condition' => [ 'exad_team_member_enable_image_mask' => 'yes', 'exad_team_member_mask_shape_size' => 'custom' ] ] ); $this->add_control( 'exad_team_member_mask_shape_repeat', [ 'label' => __( 'Repeat', 'exclusive-addons-elementor' ), 'type' => Controls_Manager::SELECT, 'default' => 'no-repeat', 'label_block' => true, 'options' => [ 'no-repeat' => __( 'No repeat', 'exclusive-addons-elementor' ), 'repeat' => __( 'Repeat', 'exclusive-addons-elementor' ) ], 'selectors' => [ '{{WRAPPER}} .exad-team-member-thumb img' => '-webkit-mask-repeat: {{VALUE}};' ], 'condition' => [ 'exad_team_member_enable_image_mask' => 'yes' ] ] ); $this->add_control( 'exad_team_member_name', [ 'label' => esc_html__( 'Name', 'exclusive-addons-elementor' ), 'type' => Controls_Manager::TEXT, 'label_block' => true, 'default' => esc_html__( 'John Doe', 'exclusive-addons-elementor' ), 'dynamic' => [ 'active' => true, ] ] ); $this->add_control( 'exad_team_member_name_tag', [ 'label' => __('Name HTML Tag', 'exclusive-addons-elementor'), 'type' => Controls_Manager::SELECT, 'options' => Helper::exad_title_tags(), 'default' => 'h3', ] ); $this->add_control( 'exad_team_member_designation', [ 'label' => esc_html__( 'Designation', 'exclusive-addons-elementor' ), 'type' => Controls_Manager::TEXT, 'label_block' => true, 'default' => esc_html__( 'Designation', 'exclusive-addons-elementor' ), 'dynamic' => [ 'active' => true, ] ] ); $this->add_control( 'exad_team_member_description', [ 'label' => esc_html__( 'Description', 'exclusive-addons-elementor' ), 'type' => Controls_Manager::TEXTAREA, 'default' => esc_html__( 'Put team member details here. Click here to edit it from the inline editor.', 'exclusive-addons-elementor' ), 'dynamic' => [ 'active' => true, ] ] ); $this->add_control( 'exad_section_team_members_cta_btn', [ 'label' => __( 'Call To Action', 'exclusive-addons-elementor' ), 'type' => Controls_Manager::SWITCHER, 'label_on' => __( 'ON', 'exclusive-addons-elementor' ), 'label_off' => __( 'OFF', 'exclusive-addons-elementor' ), 'return_value' => 'yes', 'default' => 'no' ] ); $this->add_control( 'exad_team_members_cta_btn_text', [ 'label' => esc_html__( 'Text', 'exclusive-addons-elementor' ), 'type' => Controls_Manager::TEXT, 'label_block' => true, 'default' => esc_html__( 'Read More', 'exclusive-addons-elementor' ), 'condition' => [ 'exad_section_team_members_cta_btn' => 'yes' ], 'dynamic' => [ 'active' => true, ] ] ); $this->add_control( 'exad_team_members_cta_btn_link', [ 'label' => esc_html__( 'Link', 'exclusive-addons-elementor' ), 'type' => Controls_Manager::URL, 'label_block' => true, 'default' => [ 'url' => '#', 'is_external' => '' ], 'show_external' => true, 'condition' => [ 'exad_section_team_members_cta_btn' => 'yes' ] ] ); $this->end_controls_section(); /* * Team member Social profiles section */ $this->start_controls_section( 'exad_section_team_member_social_profiles', [ 'label' => esc_html__( 'Social Profiles', 'exclusive-addons-elementor' ) ] ); $this->add_control( 'exad_team_member_enable_social_profiles', [ 'label' => esc_html__( 'Display Social Profiles?', 'exclusive-addons-elementor' ), 'type' => Controls_Manager::SWITCHER, 'default' => 'yes' ] ); $repeater = new Repeater(); $repeater->add_control( 'social_icon', [ 'label' => __( 'Icon', 'exclusive-addons-elementor' ), 'type' => Controls_Manager::ICONS, 'label_block' => true, 'default' => [ 'value' => 'fab fa-wordpress', 'library' => 'fa-brands' ], 'recommended' => [ 'fa-brands' => [ 'android', 'apple', 'behance', 'bitbucket', 'codepen', 'delicious', 'deviantart', 'digg', 'dribbble', 'facebook', 'flickr', 'foursquare', 'free-code-camp', 'github', 'gitlab', 'globe', 'google-plus', 'houzz', 'instagram', 'jsfiddle', 'linkedin', 'medium', 'meetup', 'mixcloud', 'odnoklassniki', 'pinterest', 'product-hunt', 'reddit', 'shopping-cart', 'skype', 'slideshare', 'snapchat', 'soundcloud', 'spotify', 'stack-overflow', 'steam', 'stumbleupon', 'telegram', 'thumb-tack', 'tripadvisor', 'tumblr', 'twitch', 'twitter', 'viber', 'vimeo', 'vk', 'weibo', 'weixin', 'whatsapp', 'wordpress', 'xing', 'yelp', 'youtube', '500px' ], 'fa-solid' => [ 'envelope', 'link', 'rss' ] ] ] ); $repeater->add_control( 'link', [ 'label' => __( 'Link', 'exclusive-addons-elementor' ), 'type' => Controls_Manager::URL, 'label_block' => true, 'default' => [ 'url' => '#', 'is_external' => 'true' ], 'dynamic' => [ 'active' => true ], 'placeholder' => __( 'https://your-link.com', 'exclusive-addons-elementor' ) ] ); $this->add_control( 'exad_team_member_social_profile_links', [ 'label' => __( 'Social Icons', 'exclusive-addons-elementor' ), 'type' => Controls_Manager::REPEATER, 'fields' => $repeater->get_controls(), 'condition' => [ 'exad_team_member_enable_social_profiles!' => '' ], 'default' => [ [ 'social_icon' => [ 'value' => 'fab fa-facebook-f', 'library' => 'fa-brands' ] ], [ 'social_icon' => [ 'value' => 'fab fa-twitter', 'library' => 'fa-brands' ] ], [ 'social_icon' => [ 'value' => 'fab fa-linkedin-in', 'library' => 'fa-brands' ], ], [ 'social_icon' => [ 'value' => 'fab fa-google-plus-g', 'library' => 'fa-brands', ] ] ], 'title_field' => '{{{ elementor.helpers.getSocialNetworkNameFromIcon( social_icon, false, true, false, true ) }}}' ] ); $this->end_controls_section(); /* * Team Members Styling Section */ /* * Team Members Container Style */ $this->start_controls_section( 'exad_section_team_members_styles_preset', [ 'label' => esc_html__( 'Container', 'exclusive-addons-elementor' ), 'tab' => Controls_Manager::TAB_STYLE ] ); $this->add_group_control( Group_Control_Background::get_type(), [ 'name' => 'exad_team_members_bg', 'types' => [ 'classic', 'gradient' ], 'selector' => '{{WRAPPER}} .exad-team-member' ] ); // $this->add_control( // 'exad_team_members_glass_effect', // [ // 'label' => __( 'Blur Size', 'exclusive-addons-elementor' ), // 'type' => Controls_Manager::SLIDER, // 'size_units' => [ 'px' ], // 'range' => [ // 'px' => [ // 'min' => 0, // 'max' => 100, // 'step' => 1, // ], // ], // 'selectors' => [ // '{{WRAPPER}} .exad-team-member' => 'backdrop-filter: blur({{SIZE}}{{UNIT}});', // ], // ] // ); $this->add_group_control( Group_Control_Border::get_type(), [ 'name' => 'exad_team_members_border', 'selector' => '{{WRAPPER}} .exad-team-member' ] ); $this->add_responsive_control( 'exad_team_members_radius', [ 'label' => __( 'Border radius', 'exclusive-addons-elementor' ), 'type' => Controls_Manager::DIMENSIONS, 'size_units' => [ 'px', '%', 'em' ], 'default' => [ 'top' => '0', 'right' => '0', 'bottom' => '0', 'left' => '0' ], 'selectors' => [ '{{WRAPPER}} .exad-team-member' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};' ] ] ); $this->add_responsive_control( 'exad_team_members_padding', [ 'label' => __( 'Padding', 'exclusive-addons-elementor' ), 'type' => Controls_Manager::DIMENSIONS, 'size_units' => [ 'px', '%', 'em' ], 'default' => [ 'top' => '0', 'right' => '0', 'bottom' => '0', 'left' => '0' ], 'selectors' => [ '{{WRAPPER}} .exad-team-member' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};' ] ] ); $this->add_responsive_control( 'exad_team_members_margin', [ 'label' => __( 'Margin', 'exclusive-addons-elementor' ), 'type' => Controls_Manager::DIMENSIONS, 'size_units' => [ 'px', '%', 'em' ], 'default' => [ 'top' => '0', 'right' => '0', 'bottom' => '0', 'left' => '0' ], 'selectors' => [ '{{WRAPPER}} .exad-team-member' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};' ] ] ); $this->add_group_control( Group_Control_Box_Shadow::get_type(), [ 'name' => 'exad_team_members_box_shadow', 'selector' => '{{WRAPPER}} .exad-team-member', 'fields_options' => [ 'box_shadow_type' => [ 'default' =>'yes' ], 'box_shadow' => [ 'default' => [ 'horizontal' => 0, 'vertical' => 20, 'blur' => 49, 'spread' => 0, 'color' => 'rgba(24, 27, 33, 0.1)' ] ] ] ] ); $this->end_controls_section(); /** * For Thumbnail style */ $this->start_controls_section( 'exad_section_team_members_image_style', [ 'label' => esc_html__( 'Image', 'exclusive-addons-elementor' ), 'tab' => Controls_Manager::TAB_STYLE ] ); $this->add_control( 'exad_team_membe_image_position', [ 'label' => esc_html__( 'Image Position', 'exclusive-addons-elementor' ), 'type' => Controls_Manager::CHOOSE, 'toggle' => false, 'default' => 'exad-position-top', 'options' => [ 'exad-position-left' => [ 'title' => esc_html__( 'Left', 'exclusive-addons-elementor' ), 'icon' => 'eicon-arrow-left' ], 'exad-position-top' => [ 'title' => esc_html__( 'Top', 'exclusive-addons-elementor' ), 'icon' => 'eicon-arrow-up' ], 'exad-position-right' => [ 'title' => esc_html__( 'Right', 'exclusive-addons-elementor' ), 'icon' => 'eicon-arrow-right' ] ] ] ); $this->add_control( 'exad_section_team_members_thumbnail_box', [ 'label' => __( 'Image Box', 'exclusive-addons-elementor' ), 'type' => Controls_Manager::SWITCHER, 'label_on' => __( 'Show', 'exclusive-addons-elementor' ), 'label_off' => __( 'Hide', 'exclusive-addons-elementor' ), 'return_value' => 'yes', 'default' => 'no' ] ); $this->add_responsive_control( 'exad_section_team_members_thumbnail_box_height', [ 'label' => __( 'Height', 'exclusive-addons-elementor' ), 'type' => Controls_Manager::SLIDER, 'size_units' => [ 'px', '%' ], 'default' => [ 'unit' => 'px', 'size' => 100 ], 'range' => [ 'px' => [ 'min' => 50, 'max' => 500, 'step' => 5 ], '%' => [ 'min' => 1, 'max' => 100, 'step' => 2 ] ], 'selectors' => [ '{{WRAPPER}} .exad-team-member-thumb'=> 'height: {{SIZE}}{{UNIT}};' ], 'condition' => [ 'exad_section_team_members_thumbnail_box' => 'yes' ] ] ); $this->add_responsive_control( 'exad_section_team_members_thumbnail_box_width', [ 'label' => __( 'Width', 'exclusive-addons-elementor' ), 'type' => Controls_Manager::SLIDER, 'size_units' => [ 'px', '%' ], 'default' => [ 'unit' => 'px', 'size' => 100 ], 'range' => [ 'px' => [ 'min' => 50, 'max' => 500, 'step' => 5 ], '%' => [ 'min' => 1, 'max' => 100, 'step' => 2 ] ], 'selectors' => [ '{{WRAPPER}} .exad-team-member-thumb'=> 'width: {{SIZE}}{{UNIT}};' ], 'condition' => [ 'exad_section_team_members_thumbnail_box' => 'yes' ] ] ); $this->add_group_control( Group_Control_Border::get_type(), [ 'name' => 'exad_section_team_members_thumbnail_box_border', 'selector' => '{{WRAPPER}} .exad-team-member-thumb', 'condition' => [ 'exad_section_team_members_thumbnail_box' => 'yes' ] ] ); $this->add_responsive_control( 'exad_section_team_members_thumbnail_box_radius', [ 'label' => __( 'Border radius', 'exclusive-addons-elementor' ), 'type' => Controls_Manager::DIMENSIONS, 'size_units' => [ 'px', '%', 'em' ], 'separator' => 'after', 'default' => [ 'top' => '0', 'right' => '0', 'bottom' => '0', 'left' => '0' ], 'selectors' => [ '{{WRAPPER}} .exad-team-member-thumb' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', '{{WRAPPER}} .exad-team-member-thumb img' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};' ] ] ); $this->add_responsive_control( 'exad_section_team_members_thumbnail_box_margin_top', [ 'label' => __( 'Top Spacing', 'exclusive-addons-elementor' ), 'type' => Controls_Manager::SLIDER, 'size_units' => [ 'px', '%' ], 'default' => [ 'unit' => 'px', 'size' => 0 ], 'range' => [ 'px' => [ 'min' => -300, 'max' => 300, 'step' => 5 ], '%' => [ 'min' => -50, 'max' => 50, 'step' => 2 ] ], 'selectors' => [ '{{WRAPPER}} .exad-team-member-thumb' => 'margin-top: {{SIZE}}{{UNIT}};' ], 'condition' => [ 'exad_section_team_members_thumbnail_box' => 'yes' ] ] ); $this->add_responsive_control( 'exad_section_team_members_thumbnail_box_margin_bottom', [ 'label' => __( 'Bottom Spacing', 'exclusive-addons-elementor' ), 'type' => Controls_Manager::SLIDER, 'size_units' => [ 'px', '%' ], 'default' => [ 'unit' => 'px', 'size' => 0 ], 'range' => [ 'px' => [ 'min' => -300, 'max' => 300, 'step' => 5 ], '%' => [ 'min' => -50, 'max' => 50, 'step' => 2 ] ], 'selectors' => [ '{{WRAPPER}} .exad-team-member-thumb' => 'margin-bottom: {{SIZE}}{{UNIT}};' ], 'condition' => [ 'exad_section_team_members_thumbnail_box' => 'yes' ] ] ); $this->add_group_control( Group_Control_Box_Shadow::get_type(), [ 'name' => 'exad_section_team_members_thumbnail_box_shadow', 'selector' => '{{WRAPPER}} .exad-team-member-thumb', 'condition' => [ 'exad_section_team_members_thumbnail_box' => 'yes' ] ] ); $this->add_group_control( Group_Control_Css_Filter::get_type(), [ 'name' => 'exad_section_team_members_thumbnail_css_filter', 'selector' => '{{WRAPPER}} .exad-team-member-thumb img', ] ); $this->end_controls_section(); /* * Team Members Content Style */ $this->start_controls_section( 'exad_section_team_members_content_style', [ 'label' => esc_html__( 'Content', 'exclusive-addons-elementor' ), 'tab' => Controls_Manager::TAB_STYLE ] ); $this->add_control( 'exad_team_member_content_alignment', [ 'label' => __( 'Alignment', 'exclusive-addons-elementor' ), 'type' => Controls_Manager::CHOOSE, 'toggle' => false, 'options' => [ 'exad-left' => [ 'title' => __( 'Left', 'exclusive-addons-elementor' ), 'icon' => 'eicon-text-align-left' ], 'exad-center' => [ 'title' => __( 'Center', 'exclusive-addons-elementor' ), 'icon' => 'eicon-text-align-center' ], 'exad-right' => [ 'title' => __( 'Right', 'exclusive-addons-elementor' ), 'icon' => 'eicon-text-align-right' ] ], 'default' => 'exad-center' ] ); $this->add_group_control( Group_Control_Background::get_type(), [ 'name' => 'exad_team_members_content_background', 'types' => [ 'classic', 'gradient' ], 'selector' => '{{WRAPPER}} .exad-team-member-content' ] ); $this->add_responsive_control( 'exad_section_team_members_content_padding', [ 'label' => __( 'Padding', 'exclusive-addons-elementor' ), 'type' => Controls_Manager::DIMENSIONS, 'size_units' => [ 'px', '%', 'em' ], 'default' => [ 'top' => '30', 'right' => '30', 'bottom' => '30', 'left' => '30' ], 'selectors' => [ '{{WRAPPER}} .exad-team-member-content' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};' ] ] ); $this->add_responsive_control( 'exad_section_team_members_content_margin', [ 'label' => __( 'Margin', 'exclusive-addons-elementor' ), 'type' => Controls_Manager::DIMENSIONS, 'size_units' => [ 'px', '%', 'em' ], 'default' => [ 'top' => '0', 'right' => '0', 'bottom' => '0', 'left' => '0' ], 'selectors' => [ '{{WRAPPER}} .exad-team-member-content' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};' ] ] ); $this->add_responsive_control( 'exad_team_member_content_border_radius', [ 'label' => __( 'Border Radius', 'exclusive-addons-elementor' ), 'type' => Controls_Manager::DIMENSIONS, 'size_units' => [ 'px', '%', 'em' ], 'default' => [ 'top' => '0', 'right' => '0', 'bottom' => '0', 'left' => '0' ], 'selectors' => [ '{{WRAPPER}} .exad-team-member-content' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};' ] ] ); $this->add_group_control( Group_Control_Box_Shadow::get_type(), [ 'name' => 'exad_section_team_members_content_box_shadow', 'selector' => '{{WRAPPER}} .exad-team-member-content' ] ); $this->end_controls_section(); /* * Name style */ $this->start_controls_section( 'section_team_carousel_name', [ 'label' => __('Name', 'exclusive-addons-elementor'), 'tab' => Controls_Manager::TAB_STYLE ] ); $this->add_control( 'exad_team_name_color', [ 'label' => __('Color', 'exclusive-addons-elementor'), 'type' => Controls_Manager::COLOR, 'default' => '#000000', 'selectors' => [ '{{WRAPPER}} .exad-team-member-name' => 'color: {{VALUE}};' ] ] ); $this->add_group_control( Group_Control_Typography::get_type(), [ 'name' => 'exad_team_name_typography', 'selector' => '{{WRAPPER}} .exad-team-member-name' ] ); $this->add_responsive_control( 'exad_team_members_name_margin', [ 'label' => __( 'Margin', 'exclusive-addons-elementor' ), 'type' => Controls_Manager::DIMENSIONS, 'size_units' => [ 'px', '%', 'em' ], 'default' => [ 'top' => '0', 'right' => '0', 'bottom' => '20', 'left' => '0', 'isLinked' => false ], 'selectors' => [ '{{WRAPPER}} .exad-team-member-name' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};' ] ] ); $this->end_controls_section(); /** * Designation Style */ $this->start_controls_section( 'section_team_member_designation', [ 'label' => __('Designation', 'exclusive-addons-elementor'), 'tab' => Controls_Manager::TAB_STYLE ] ); $this->add_control( 'exad_team_designation_color', [ 'label' => __('Color', 'exclusive-addons-elementor'), 'type' => Controls_Manager::COLOR, 'default' => '#8a8d91', 'selectors' => [ '{{WRAPPER}} .exad-team-member-designation' => 'color: {{VALUE}};' ] ] ); $this->add_group_control( Group_Control_Typography::get_type(), [ 'name' => 'exad_team_designation_typography', 'selector' => '{{WRAPPER}} .exad-team-member-designation' ] ); $this->add_responsive_control( 'exad_team_members_designation_margin', [ 'label' => __( 'Margin', 'exclusive-addons-elementor' ), 'type' => Controls_Manager::DIMENSIONS, 'size_units' => [ 'px', '%', 'em' ], 'default' => [ 'top' => '0', 'right' => '0', 'bottom' => '20', 'left' => '0', 'isLinked' => false ], 'selectors' => [ '{{WRAPPER}} .exad-team-member-designation' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};' ] ] ); $this->end_controls_section(); /** * Description Style */ $this->start_controls_section( 'section_team_carousel_description', [ 'label' => __('Description', 'exclusive-addons-elementor'), 'tab' => Controls_Manager::TAB_STYLE ] ); $this->add_control( 'exad_description_color', [ 'label' => __('Color', 'exclusive-addons-elementor'), 'type' => Controls_Manager::COLOR, 'default' => '#8a8d91', 'selectors' => [ '{{WRAPPER}} .exad-team-member-about' => 'color: {{VALUE}};' ] ] ); $this->add_group_control( Group_Control_Typography::get_type(), [ 'name' => 'exad_description_typography', 'selector' => '{{WRAPPER}} .exad-team-member-about', 'fields_options' => [ 'line_height' => [ 'desktop_default' => [ 'unit' => 'em', 'size' => 1.5 ] ] ] ] ); $this->add_responsive_control( 'exad_team_members_description_margin', [ 'label' => __( 'Margin', 'exclusive-addons-elementor' ), 'type' => Controls_Manager::DIMENSIONS, 'size_units' => [ 'px', '%', 'em' ], 'default' => [ 'top' => '0', 'right' => '0', 'bottom' => '20', 'left' => '0', 'isLinked' => false ], 'selectors' => [ '{{WRAPPER}} .exad-team-member-about' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};' ] ] ); $this->end_controls_section(); /** * Call to action Style */ $this->start_controls_section( 'exad_team_member_cta_btn_style', [ 'label' => __('Call To Action', 'exclusive-addons-elementor'), 'tab' => Controls_Manager::TAB_STYLE, 'condition' => [ 'exad_section_team_members_cta_btn' => 'yes' ] ] ); $this->add_group_control( Group_Control_Typography::get_type(), [ 'name' => 'exad_team_member_cta_btn_typography', 'selector' => '{{WRAPPER}} .exad-team-member-cta' ] ); $this->add_responsive_control( 'exad_team_member_cta_btn_margin', [ 'label' => __( 'Margin', 'exclusive-addons-elementor' ), 'type' => Controls_Manager::DIMENSIONS, 'size_units' => [ 'px', '%', 'em' ], 'default' => [ 'top' => '0', 'right' => '0', 'bottom' => '20', 'left' => '0', 'isLinked' => false ], 'selectors' => [ '{{WRAPPER}} .exad-team-member-cta' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};' ] ] ); $this->add_responsive_control( 'exad_team_member_cta_btn_padding', [ 'label' => __( 'Padding', 'exclusive-addons-elementor' ), 'type' => Controls_Manager::DIMENSIONS, 'size_units' => [ 'px', '%', 'em' ], 'default' => [ 'top' => '15', 'right' => '30', 'bottom' => '15', 'left' => '30', 'isLinked' => false ], 'selectors' => [ '{{WRAPPER}} .exad-team-member-cta' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};' ] ] ); $this->add_responsive_control( 'exad_team_member_cta_btn_radius', [ 'label' => __( 'Border Radius', 'exclusive-addons-elementor' ), 'type' => Controls_Manager::DIMENSIONS, 'size_units' => [ 'px', '%', 'em' ], 'default' => [ 'top' => '0', 'right' => '0', 'bottom' => '0', 'left' => '0' ], 'selectors' => [ '{{WRAPPER}} .exad-team-member-cta' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};' ] ] ); $this->start_controls_tabs( 'exad_team_member_cta_btn_tabs' ); $this->start_controls_tab( 'exad_team_member_cta_btn_tab_normal', [ 'label' => esc_html__( 'Normal', 'exclusive-addons-elementor' ) ] ); $this->add_control( 'exad_team_member_cta_btn_text_color_normal', [ 'label' => esc_html__( 'Text Color', 'exclusive-addons-elementor' ), 'type' => Controls_Manager::COLOR, 'default' => '#222222', 'selectors' => [ '{{WRAPPER}} .exad-team-member-cta' => 'color: {{VALUE}};' ] ] ); $this->add_control( 'exad_team_member_cta_btn_background_normal', [ 'label' => esc_html__( 'Background Color', 'exclusive-addons-elementor' ), 'type' => Controls_Manager::COLOR, 'default' => '#d6d6d6', 'selectors' => [ '{{WRAPPER}} .exad-team-member-cta' => 'background-color: {{VALUE}};' ] ] ); $this->add_group_control( Group_Control_Border::get_type(), [ 'name' => 'exad_team_member_cta_btn_border_normal', 'selector' => '{{WRAPPER}} .exad-team-member-cta' ] ); $this->end_controls_tab(); $this->start_controls_tab( 'exad_team_member_cta_btn_tab_hover', [ 'label' => esc_html__( 'Hover', 'exclusive-addons-elementor' ) ] ); $this->add_control( 'exad_team_member_cta_btn_text_color_hover', [ 'label' => esc_html__( 'Text Color', 'exclusive-addons-elementor' ), 'type' => Controls_Manager::COLOR, 'default' => '#d6d6d6', 'selectors' => [ '{{WRAPPER}} .exad-team-member-cta:hover' => 'color: {{VALUE}};' ] ] ); $this->add_control( 'exad_team_member_cta_btn_background_hover', [ 'label' => esc_html__( 'Background Color', 'exclusive-addons-elementor' ), 'type' => Controls_Manager::COLOR, 'default' => '#222222', 'selectors' => [ '{{WRAPPER}} .exad-team-member-cta:hover' => 'background-color: {{VALUE}};' ] ] ); $this->add_group_control( Group_Control_Border::get_type(), [ 'name' => 'exad_team_member_cta_btn_border_hover', 'selector' => '{{WRAPPER}} .exad-team-member-cta:hover' ] ); $this->end_controls_tab(); $this->end_controls_tabs(); $this->end_controls_section(); /** * Social icons style */ $this->start_controls_section( 'exad_team_member_social_section', [ 'label' => __('Social Icons', 'exclusive-addons-elementor'), 'tab' => Controls_Manager::TAB_STYLE, 'condition' => [ 'exad_team_member_enable_social_profiles!' => '' ] ] ); $this->add_responsive_control( 'exad_team_members_social_icon_size', [ 'label' => __( 'Size', 'exclusive-addons-elementor' ), 'type' => Controls_Manager::SLIDER, 'size_units' => [ 'px' ], 'range' => [ 'px' => [ 'min' => 0, 'max' => 50, 'step' => 1 ] ], 'default' => [ 'unit' => 'px', 'size' => 14 ], 'selectors' => [ '{{WRAPPER}} .exad-team-member-social li a i' => 'font-size: {{SIZE}}{{UNIT}};' ] ] ); $this->add_responsive_control( 'exad_team_member_social_padding', [ 'label' => __( 'Padding', 'exclusive-addons-elementor' ), 'type' => Controls_Manager::DIMENSIONS, 'size_units' => [ 'px', '%', 'em' ], 'separator' => 'after', 'default' => [ 'top' => '15', 'right' => '15', 'bottom' => '15', 'left' => '15' ], 'selectors' => [ '{{WRAPPER}} .exad-team-member-social li a' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};' ] ] ); $this->add_responsive_control( 'exad_team_members_social_box_radius', [ 'label' => __( 'Border radius', 'exclusive-addons-elementor' ), 'type' => Controls_Manager::DIMENSIONS, 'size_units' => [ 'px', '%', 'em' ], 'default' => [ 'top' => '0', 'right' => '0', 'bottom' => '0', 'left' => '0' ], 'selectors' => [ '{{WRAPPER}} .exad-team-member-social li a' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};' ] ] ); $this->add_responsive_control( 'exad_team_member_social_margin', [ 'label' => __( 'Margin', 'exclusive-addons-elementor' ), 'type' => Controls_Manager::DIMENSIONS, 'size_units' => [ 'px', '%', 'em' ], 'separator' => 'after', 'selectors' => [ '{{WRAPPER}} .exad-team-member-social li a' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};' ] ] ); $this->start_controls_tabs( 'exad_team_members_social_icons_style_tabs' ); $this->start_controls_tab( 'exad_team_members_social_icon_tab', [ 'label' => esc_html__( 'Normal', 'exclusive-addons-elementor' ) ] ); $this->add_control( 'exad_team_carousel_social_icon_color_normal', [ 'label' => esc_html__( 'Icon Color', 'exclusive-addons-elementor' ), 'type' => Controls_Manager::COLOR, 'default' => '#a4a7aa', 'selectors' => [ '{{WRAPPER}} .exad-team-member-social li a i' => 'color: {{VALUE}};' ] ] ); $this->add_control( 'exad_team_carousel_social_bg_color_normal', [ 'label' => esc_html__( 'Background Color', 'exclusive-addons-elementor' ), 'type' => Controls_Manager::COLOR, 'default' => '', 'selectors' => [ '{{WRAPPER}} .exad-team-member-social li a' => 'background-color: {{VALUE}};' ] ] ); $this->add_group_control( Group_Control_Border::get_type(), [ 'name' => 'exad_team_carousel_social_border_normal', 'selector' => '{{WRAPPER}} .exad-team-member-social li a' ] ); $this->end_controls_tab(); $this->start_controls_tab( 'exad_team_members_social_icon_hover', [ 'label' => esc_html__( 'Hover', 'exclusive-addons-elementor' ) ] ); $this->add_control( 'exad_team_carousel_social_icon_color_hover', [ 'label' => esc_html__( 'Icon Color', 'exclusive-addons-elementor' ), 'type' => Controls_Manager::COLOR, 'default' => '#8a8d91', 'selectors' => [ '{{WRAPPER}} .exad-team-member-social li a:hover i' => 'color: {{VALUE}};' ] ] ); $this->add_control( 'exad_team_carousel_social_bg_color_hover', [ 'label' => esc_html__( 'Background Color', 'exclusive-addons-elementor' ), 'type' => Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .exad-team-member-social li a:hover' => 'background-color: {{VALUE}};' ] ] ); $this->add_group_control( Group_Control_Border::get_type(), [ 'name' => 'exad_team_carousel_social_border_hover', 'selector' => '{{WRAPPER}} .exad-team-member-social li a:hover' ] ); $this->end_controls_tab(); $this->end_controls_tabs(); $this->end_controls_section(); /* * Team member Animating Mask */ $this->start_controls_section( 'exad_section_team_member_animating_mask', [ 'label' => esc_html__( 'Animating Mask', 'exclusive-addons-elementor' ), 'tab' => Controls_Manager::TAB_STYLE, ] ); $this->add_control( 'exad_team_member_animating_mask_switcher', [ 'label' => __( 'Enable Animating Mask', 'exclusive-addons-elementor' ), 'type' => Controls_Manager::SWITCHER, 'label_on' => __( 'ON', 'exclusive-addons-elementor' ), 'label_off' => __( 'OFF', 'exclusive-addons-elementor' ), 'return_value' => 'yes', 'default' => 'no', ] ); $this->add_control( 'exad_team_member_animating_mask_style', [ 'label' => __( 'Animating Mask Style', 'exclusive-addons-elementor' ), 'type' => Controls_Manager::SELECT, 'default' => 'style_1', 'options' => [ 'style_1' => __( 'Style 1', 'exclusive-addons-elementor' ), 'style_2' => __( 'Style 2', 'exclusive-addons-elementor' ), 'style_3' => __( 'Style 3', 'exclusive-addons-elementor' ), ], 'condition' => [ 'exad_team_member_animating_mask_switcher' => 'yes' ] ] ); $this->end_controls_section(); } private function team_member_cta() { $settings = $this->get_settings_for_display(); $this->add_render_attribute( 'exad_team_members_cta_btn_text', 'class', 'exad-team-cta-button-text' ); $this->add_inline_editing_attributes( 'exad_team_members_cta_btn_text', 'none' ); ?> <span <?php $this->print_render_attribute_string( 'exad_team_members_cta_btn_text' ); ?>> <?php echo esc_html( $settings['exad_team_members_cta_btn_text'] ); ?> </span> <?php } protected function render() { $settings = $this->get_settings_for_display(); $this->add_render_attribute( 'exad_team_member_name', 'class', 'exad-team-member-name' ); $this->add_inline_editing_attributes( 'exad_team_member_name', 'basic' ); $this->add_render_attribute( 'exad_team_member_designation', 'class', 'exad-team-member-designation' ); $this->add_inline_editing_attributes( 'exad_team_member_designation', 'basic' ); $this->add_render_attribute( 'exad_team_member_description', 'class', 'exad-team-member-about' ); $this->add_inline_editing_attributes( 'exad_team_member_description', 'basic' ); $this->add_render_attribute( 'exad_team_member_item', [ 'class' => [ 'exad-team-member', esc_attr( $settings['exad_team_member_content_alignment'] ), esc_attr( $settings['exad_team_membe_image_position'] ) ] ]); $this->add_render_attribute( 'exad_team_members_cta_btn_link', 'class', 'exad-team-member-cta' ); if( isset( $settings['exad_team_members_cta_btn_link']['url'] ) ) { $this->add_render_attribute( 'exad_team_members_cta_btn_link', 'href', esc_url( $settings['exad_team_members_cta_btn_link']['url'] ) ); if( $settings['exad_team_members_cta_btn_link']['is_external'] ) { $this->add_render_attribute( 'exad_team_members_cta_btn_link', 'target', '_blank' ); } if( $settings['exad_team_members_cta_btn_link']['nofollow'] ) { $this->add_render_attribute( 'exad_team_members_cta_btn_link', 'rel', 'nofollow' ); } } ob_start(); ?> <div class="exad-team-item"> <div <?php $this->print_render_attribute_string( 'exad_team_member_item' ); ?>> <?php do_action('exad_team_member_wrapper_before'); ?> <?php if ( $settings['exad_team_member_image']['url'] || $settings['exad_team_member_image']['id'] ) { ?> <div class="exad-team-member-thumb<?php echo esc_attr( ( 'yes' === $settings['exad_team_member_animating_mask_switcher'] ) ? ' ' . $settings['exad_team_member_animating_mask_style'] : '' ); ?>"> <?php echo Group_Control_Image_Size::get_attachment_image_html( $settings, 'team_member_image_size', 'exad_team_member_image' ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?> </div> <?php } ?> <div class="exad-team-member-content"> <?php do_action('exad_team_member_content_area_before'); ?> <?php if ( !empty( $settings['exad_team_member_name'] ) ) : ?> <<?php Utils::print_validated_html_tag( $settings['exad_team_member_name_tag'] ); ?> <?php $this->print_render_attribute_string( 'exad_team_member_name' ); ?>> <?php echo esc_attr( $settings['exad_team_member_name'] ); ?> </<?php Utils::print_validated_html_tag( $settings['exad_team_member_name_tag'] ); ?>> <?php endif; ?> <?php if ( !empty( $settings['exad_team_member_designation'] ) ) : ?> <span <?php $this->print_render_attribute_string( 'exad_team_member_designation' ); ?>> <?php echo esc_attr( $settings['exad_team_member_designation'] ); ?> </span> <?php endif; ?> <?php do_action('exad_team_member_description_before'); ?> <?php if ( !empty( $settings['exad_team_member_description'] ) ) : ?> <div <?php $this->print_render_attribute_string( 'exad_team_member_description' ); ?>> <?php echo $settings['exad_team_member_description']; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?> </div> <?php endif; ?> <?php do_action('exad_team_member_description_after'); ?> <?php if ( 'yes' === $settings['exad_section_team_members_cta_btn'] && !empty( $settings['exad_team_members_cta_btn_text'] ) ) : ?> <a <?php $this->print_render_attribute_string( 'exad_team_members_cta_btn_link' ); ?>> <?php echo $this->team_member_cta(); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?> </a> <?php endif; if ( 'yes' === $settings['exad_team_member_enable_social_profiles'] ) : ?> <ul class="list-inline exad-team-member-social"> <?php foreach ( $settings['exad_team_member_social_profile_links'] as $index => $item ) : $social = ''; $link_key = 'link_' . $index; if ( 'svg' !== $item['social_icon']['library'] ) { $social = explode( ' ', $item['social_icon']['value'], 2 ); if ( empty( $social[1] ) ) { $social = ''; } else { $social = str_replace( 'fa-', '', $social[1] ); } } if ( 'svg' === $item['social_icon']['library'] ) { $social = ''; } if( $item['link']['url'] ) { $this->add_render_attribute( $link_key, 'href', esc_url( $item['link']['url'] ) ); if( $item['link']['is_external'] ) { $this->add_render_attribute( $link_key, 'target', '_blank' ); } if( $item['link']['nofollow'] ) { $this->add_render_attribute( $link_key, 'rel', 'nofollow' ); } } $this->add_render_attribute( $link_key, 'class', [ 'exad-social-icon', 'elementor-repeater-item-' . $item['_id'], ] ); ?> <li> <a <?php $this->print_render_attribute_string( $link_key ); ?>> <?php Icons_Manager::render_icon( $item['social_icon'], [ 'aria-hidden' => 'true' ] ); ?> </a> </li> <?php endforeach; ?> </ul> <?php endif; do_action('exad_team_member_content_area_after'); ?> </div> <?php do_action('exad_team_member_wrapper_after'); ?> </div> </div> <?php $output = ob_get_clean(); print wp_kses_post( $output ); } /** * Render team member widget output in the editor. * * Written as a Backbone JavaScript template and used to generate the live preview. * * @since 1.0.0 * @access protected */ protected function content_template() { ?> <# view.addRenderAttribute( 'exad_team_member_name', 'class', 'exad-team-member-name' ); view.addInlineEditingAttributes( 'exad_team_member_name', 'basic' ); view.addRenderAttribute( 'exad_team_member_designation', 'class', 'exad-team-member-designation' ); view.addInlineEditingAttributes( 'exad_team_member_designation', 'basic' ); view.addRenderAttribute( 'exad_team_member_description', 'class', 'exad-team-member-about' ); view.addInlineEditingAttributes( 'exad_team_member_description', 'basic' ); view.addRenderAttribute( 'exad_team_members_cta_btn_link', 'class', 'exad-team-member-cta' ); view.addRenderAttribute( 'exad_team_members_cta_btn_text', 'class', 'exad-team-cta-button-text' ); view.addInlineEditingAttributes( 'exad_team_members_cta_btn_text', 'none' ); view.addRenderAttribute( 'exad_team_member_item', { 'class': [ 'exad-team-member', settings.exad_team_member_content_alignment, settings.exad_team_membe_image_position ] } ); if ( settings.exad_team_member_image.url || settings.exad_team_member_image.id ) { var image = { id: settings.exad_team_member_image.id, url: settings.exad_team_member_image.url, size: settings.team_member_image_size_size, dimension: settings.team_member_image_size_custom_dimension, model: view.getEditModel() }; var imageURL = _.escape( elementor.imagesManager.getImageUrl( image ) ); } var target = settings.exad_team_members_cta_btn_link.is_external ? ' target="_blank"' : ''; var nofollow = settings.exad_team_members_cta_btn_link.nofollow ? ' rel="nofollow"' : ''; var nameHTMLTag = elementor.helpers.validateHTMLTag( settings.exad_team_member_name_tag ); #> <div class="exad-team-item"> <div {{{ view.getRenderAttributeString( 'exad_team_member_item' ) }}}> <# if ( imageURL ) { #> <div class="exad-team-member-thumb{{ ( 'yes' === settings.exad_team_member_animating_mask_switcher ) ? ' '+settings.exad_team_member_animating_mask_style : '' }}"> <img src="{{{ imageURL }}}"> </div> <# } #> <div class="exad-team-member-content"> <# if ( settings.exad_team_member_name ) { #> <{{{ nameHTMLTag }}} {{{ view.getRenderAttributeString( 'exad_team_member_name' ) }}}> {{{ settings.exad_team_member_name }}} </{{{ nameHTMLTag }}}> <# } #> <# if ( settings.exad_team_member_designation ) { #> <span {{{ view.getRenderAttributeString( 'exad_team_member_designation' ) }}}> {{{ settings.exad_team_member_designation }}} </span> <# } #> <# if ( settings.exad_team_member_description ) { #> <div {{{ view.getRenderAttributeString( 'exad_team_member_description' ) }}}> {{{ settings.exad_team_member_description }}} </div> <# } #> <# if ( 'yes' === settings.exad_section_team_members_cta_btn && settings.exad_team_members_cta_btn_text ) { #> <a href="{{{ settings.exad_team_members_cta_btn_link.url }}}" {{{ view.getRenderAttributeString( 'exad_team_members_cta_btn_link' ) }}}{{{ target }}}{{{ nofollow }}}> <span {{{ view.getRenderAttributeString( 'exad_team_members_cta_btn_text' ) }}}> {{{ settings.exad_team_members_cta_btn_text }}} </span> </a> <# } #> <# if ( 'yes' === settings.exad_team_member_enable_social_profiles && settings.exad_team_member_social_profile_links.length ) { #> <ul class="list-inline exad-team-member-social"> <# var iconsHTML = {}; _.each( settings.exad_team_member_social_profile_links, function( item, index ) { var link = item.link ? item.link.url : ''; #> <li> <a class="exad-social-icon elementor-repeater-item-{{item._id}}" href="{{ link }}"> <# iconsHTML[ index ] = elementor.helpers.renderIcon( view, item.social_icon, {}, 'i', 'object' ); #> {{{ iconsHTML[ index ].value }}} </a> </li> <# } ); #> </ul> <# } #> </div> </div> </div> <?php } }
Save
Cancel