* @link https://www.elicus.com/ * @copyright 2023 Elicus Technologies Private Limited * @version 1.9.15 */ class DIPL_TeamSlider extends ET_Builder_Module { public $slug = 'dipl_team_slider'; public $vb_support = 'on'; protected $module_credits = array( 'module_uri' => 'https://diviextended.com/product/divi-plus/', 'author' => 'Elicus', 'author_uri' => 'https://elicus.com/', ); /** * Track if the module is currently rendering to prevent unnecessary rendering and recursion. * * @var bool */ protected static $rendering = false; public function init() { $this->name = esc_html__( 'DP Team Slider', 'divi-plus' ); $this->main_css_element = '%%order_class%%'; } public function get_settings_modal_toggles() { return array( 'general' => array( 'toggles' => array( 'main_content' => array( 'title' => esc_html__( 'Content', 'divi-plus' ), ), 'elements' => array( 'title' => esc_html__( 'Elements', 'divi-plus' ), ), 'slider_settings' => array( 'title' => esc_html__( 'Slider', 'divi-plus' ), ), ), ), 'advanced' => array( 'toggles' => array( 'text' => array( 'title' => esc_html__( 'Text Alignment', 'divi-plus' ), ), 'image' => array( 'title' => esc_html__( 'Image', 'divi-plus' ), ), 'name_text_settings' => array( 'title' => esc_html__( 'Name Text', 'divi-plus' ), ), 'designation_text_settings' => array( 'title' => esc_html__( 'Designation Text', 'divi-plus' ), ), 'description_text_settings' => array( 'title' => esc_html__( 'Description Text', 'divi-plus' ), ), 'skill_text_settings' => array( 'title' => esc_html__( 'Skill Text', 'divi-plus' ), ), 'team_member_image_settings' => array( 'title' => esc_html__( 'Team Member Image', 'divi-plus' ), ), 'skills_settings' => array( 'title' => esc_html__( 'Skills', 'divi-plus' ), ), 'social_icon_settings' => array( 'title' => esc_html__( 'Social Icons', 'divi-plus' ), ), 'popup_text_settings' => array( 'title' => esc_html__( 'Popup Text', 'divi-plus' ), 'sub_toggles' => array( 'popup_name' => array( 'name' => esc_html__( 'Name', 'divi-plus' ), ), 'popup_designation' => array( 'name' => esc_html__( 'Designation', 'divi-plus' ), ), 'popup_description' => array( 'name' => esc_html__( 'Description', 'divi-plus' ), ), 'popup_skill_text' => array( 'name' => esc_html__( 'Skill Text', 'divi-plus' ), ), ), 'tabbed_subtoggles' => true, ), 'popup_element_settings' => array( 'title' => esc_html__( 'Popup Elements', 'divi-plus' ), 'sub_toggles' => array( 'popup' => array( 'name' => esc_html__( 'Popup', 'divi-plus' ), ), 'skills_setting' => array( 'name' => esc_html__( 'Skill Bars', 'divi-plus' ), ), 'social_setting' => array( 'name' => esc_html__( 'Social Icons', 'divi-plus' ), ), ), 'tabbed_subtoggles' => true, ), 'slider_styles' => array( 'title' => esc_html__( 'Slider', 'divi-plus' ), ), ), ), ); } public function get_advanced_fields_config() { return array( 'fonts' => array( 'name' => array( 'label' => esc_html__( 'Name', 'divi-plus' ), 'font_size' => array( 'default' => '30px', 'range_settings' => array( 'min' => '1', 'max' => '100', 'step' => '1', ), 'validate_unit' => true, ), 'line_height' => array( 'default' => '1.5em', 'range_settings' => array( 'min' => '0.1', 'max' => '10', 'step' => '0.1', ), ), 'letter_spacing' => array( 'default' => '0px', 'range_settings' => array( 'min' => '0', 'max' => '10', 'step' => '1', ), 'validate_unit' => true, ), 'css' => array( 'main' => '%%order_class%% .dipl_team_member_name, %%order_class%% .dipl_team_member_name h1, %%order_class%% .dipl_team_member_name h2, %%order_class%% .dipl_team_member_name h3, %%order_class%% .dipl_team_member_name h4, %%order_class%% .dipl_team_member_name h5, %%order_class%% .dipl_team_member_name h6', 'important' => 'all', ), 'header_level' => array( 'default' => 'h2', ), 'tab_slug' => 'advanced', 'toggle_slug' => 'name_text_settings', ), 'designation' => array( 'label' => esc_html__( 'Designation', 'divi-plus' ), 'font_size' => array( 'default' => '20px', 'range_settings' => array( 'min' => '1', 'max' => '100', 'step' => '1', ), 'validate_unit' => true, ), 'line_height' => array( 'default' => '1.5em', 'range_settings' => array( 'min' => '0.1', 'max' => '10', 'step' => '0.1', ), ), 'letter_spacing' => array( 'default' => '0px', 'range_settings' => array( 'min' => '0', 'max' => '10', 'step' => '1', ), 'validate_unit' => true, ), 'css' => array( 'main' => '%%order_class%% .dipl_team_member_designation, %%order_class%% .dipl_team_member_designation h1, %%order_class%% .dipl_team_member_designation h2, %%order_class%% .dipl_team_member_designation h3, %%order_class%% .dipl_team_member_designation h4, %%order_class%% .dipl_team_member_designation h5, %%order_class%% .dipl_team_member_designation h6', 'important' => 'all', ), 'header_level' => array( 'default' => 'h4', ), 'tab_slug' => 'advanced', 'toggle_slug' => 'designation_text_settings', ), 'body' => array( 'label' => esc_html__( 'Description', 'divi-plus' ), 'font_size' => array( 'default' => '16px', 'range_settings' => array( 'min' => '1', 'max' => '100', 'step' => '1', ), 'validate_unit' => true, ), 'line_height' => array( 'default' => '1.3em', 'range_settings' => array( 'min' => '0', 'max' => '5', 'step' => '0.1', ), ), 'letter_spacing' => array( 'default' => '0px', 'range_settings' => array( 'min' => '0', 'max' => '10', 'step' => '1', ), 'validate_unit' => true, ), 'css' => array( 'main' => '%%order_class%% .dipl_team_member_short_desc, %%order_class%% .dipl_team_member_short_desc a', 'important' => 'all', ), 'tab_slug' => 'advanced', 'toggle_slug' => 'description_text_settings', ), 'skill_text' => array( 'label' => esc_html__( 'Skill Field', 'divi-plus' ), 'font_size' => array( 'default' => '20px', 'range_settings' => array( 'min' => '1', 'max' => '100', 'step' => '1', ), 'validate_unit' => true, ), 'line_height' => array( 'default' => '1.5em', 'range_settings' => array( 'min' => '0.1', 'max' => '10', 'step' => '0.1', ), ), 'letter_spacing' => array( 'default' => '0px', 'range_settings' => array( 'min' => '0', 'max' => '10', 'step' => '1', ), 'validate_unit' => true, ), 'css' => array( 'main' => '%%order_class%% .dipl_skill_bar_wrapper_inner .dipl_skill_name, %%order_class%% .dipl_skill_bar_wrapper_inner .dipl_skill_name a', 'important' => 'all', ), 'tab_slug' => 'advanced', 'toggle_slug' => 'skill_text_settings', ), 'popup_name' => array( 'label' => esc_html__( 'Popup Name', 'divi-plus' ), 'font_size' => array( 'default' => '18px', 'range_settings' => array( 'min' => '1', 'max' => '100', 'step' => '1', ), 'validate_unit' => true, ), 'line_height' => array( 'default' => '1.5em', 'range_settings' => array( 'min' => '0.1', 'max' => '10', 'step' => '0.1', ), ), 'letter_spacing' => array( 'default' => '0px', 'range_settings' => array( 'min' => '0', 'max' => '10', 'step' => '1', ), 'validate_unit' => true, ), 'css' => array( 'main' => '%%order_class%%_lightbox .dipl_team_member_name', 'important' => 'all', ), 'header_level' => array( 'default' => 'h5', ), 'tab_slug' => 'advanced', 'toggle_slug' => 'popup_text_settings', 'sub_toggle' => 'popup_name', 'depends_on' => array( 'use_popup' ), 'depends_show_if' => 'on', ), 'popup_designation' => array( 'label' => esc_html__( 'Popup Designation', 'divi-plus' ), 'font_size' => array( 'default' => '12px', 'range_settings' => array( 'min' => '1', 'max' => '100', 'step' => '1', ), 'validate_unit' => true, ), 'line_height' => array( 'default' => '1.5em', 'range_settings' => array( 'min' => '0.1', 'max' => '10', 'step' => '0.1', ), ), 'letter_spacing' => array( 'default' => '0px', 'range_settings' => array( 'min' => '0', 'max' => '10', 'step' => '1', ), 'validate_unit' => true, ), 'css' => array( 'main' => '%%order_class%%_lightbox .dipl_team_member_designation', 'important' => 'all', ), 'tab_slug' => 'advanced', 'toggle_slug' => 'popup_text_settings', 'sub_toggle' => 'popup_designation', 'depends_on' => array( 'use_popup' ), 'depends_show_if' => 'on', ), 'popup_description' => array( 'label' => esc_html__( 'Description', 'divi-plus' ), 'font_size' => array( 'default' => '14px', 'range_settings' => array( 'min' => '1', 'max' => '100', 'step' => '1', ), 'validate_unit' => true, ), 'line_height' => array( 'default' => '1.3em', 'range_settings' => array( 'min' => '0.1', 'max' => '10', 'step' => '0.1', ), ), 'letter_spacing' => array( 'default' => '0px', 'range_settings' => array( 'min' => '0', 'max' => '10', 'step' => '1', ), 'validate_unit' => true, ), 'css' => array( 'main' => '%%order_class%%_lightbox .dipl_team_member_description, %%order_class%%_lightbox .dipl_team_member_description a', 'important' => 'all', ), 'tab_slug' => 'advanced', 'toggle_slug' => 'popup_text_settings', 'sub_toggle' => 'popup_description', 'depends_on' => array( 'use_popup' ), 'depends_show_if' => 'on', ), 'popup_skill_text' => array( 'label' => esc_html__( 'Skill Text', 'divi-plus' ), 'font_size' => array( 'default' => '14px', 'range_settings' => array( 'min' => '1', 'max' => '100', 'step' => '1', ), 'validate_unit' => true, ), 'line_height' => array( 'default' => '1.5em', 'range_settings' => array( 'min' => '0.1', 'max' => '10', 'step' => '0.1', ), ), 'letter_spacing' => array( 'default' => '0px', 'range_settings' => array( 'min' => '0', 'max' => '10', 'step' => '1', ), 'validate_unit' => true, ), 'css' => array( 'main' => '%%order_class%%_lightbox .dipl_skill_bar_wrapper_inner .dipl_skill_name, %%order_class%%_lightbox .dipl_bar_counter_wrapper_inner .dipl_skill_name', 'important' => 'all', ), 'tab_slug' => 'advanced', 'toggle_slug' => 'popup_text_settings', 'sub_toggle' => 'popup_skill_text', 'depends_on' => array( 'use_popup' ), 'depends_show_if' => 'on', ) ), 'button' => array( 'link_button' => array( 'label' => esc_html__( 'Link Button', 'divi-plus' ), 'css' => array( 'main' => "{$this->main_css_element} .dipl-team-item-link-btn-wrap .dipl-team-item-link-btn", 'alignment' => "{$this->main_css_element} .dipl-team-item-link-btn-wrap", 'important' => 'all', ), 'margin_padding' => array( 'css' => array( 'margin' => "{$this->main_css_element} .dipl-team-item-link-btn-wrap", 'padding' => "{$this->main_css_element} .dipl-team-item-link-btn-wrap .dipl-team-item-link-btn", 'important' => 'all', ), ), 'no_rel_attr' => true, 'use_alignment' => true, 'box_shadow' => true, 'depends_on' => array( 'link_type' ), 'depends_show_if' => 'button', ), ), 'slider_margin_padding' => array( 'slider_container' => array( 'margin_padding' => array( 'css' => array( 'use_margin' => false, 'padding' => "{$this->main_css_element} .swiper-container", 'important' => 'all', ), ), ), 'team_member_card' => array( 'margin_padding' => array( 'css' => array( 'use_margin' => false, 'padding' => '%%order_class%% .dipl_team_member_card', 'important' => 'all', ), ), ), 'arrows' => array( 'margin_padding' => array( 'css' => array( 'use_margin' => false, 'padding' => "{$this->main_css_element} .swiper-button-next::after, {$this->main_css_element} .swiper-button-prev::after", 'important' => 'all', ), ), ), 'popup' => array( 'margin_padding' => array( 'css' => array( 'use_margin' => false, 'padding' => '%%order_class%%_lightbox .dipl_team_member_wrapper_lightbox', 'important' => 'all', ), ), ), ), 'borders' => array( 'team_member_border' => array( 'css' => array( 'main' => array( 'border_radii' => '%%order_class%% .swiper-slide', 'border_styles' => '%%order_class%% .swiper-slide', 'important' => 'all', ), ), 'label_prefix' => esc_html__( 'Member', 'divi-plus' ), 'tab_slug' => 'advanced', 'toggle_slug' => 'border', ), 'team_member_image_border' => array( 'css' => array( 'main' => array( 'border_radii' => '%%order_class%% .dipl_swiper_wrapper .dipl_team_member_image img', 'border_styles' => '%%order_class%% .dipl_swiper_wrapper .dipl_team_member_image img', ), 'important' => 'all', ), 'label_prefix' => esc_html__( 'Member Image', 'divi-plus' ), 'tab_slug' => 'advanced', 'toggle_slug' => 'image', ), 'team_member_icon_border' => array( 'css' => array( 'main' => array( 'border_radii' => '%%order_class%% .dipl_team_member_social_icon', 'border_styles' => '%%order_class%% .dipl_team_member_social_icon', 'important' => 'all', ), ), 'label_prefix' => esc_html__( 'Icon', 'divi-plus' ), 'tab_slug' => 'advanced', 'toggle_slug' => 'border', ), 'bars_border' => array( 'label_prefix' => esc_html__( 'Bar', 'divi-plus' ), 'css' => array( 'main' => array( 'border_radii' => '%%order_class%%_lightbox .dipl_empty_bar', 'border_styles' => '%%order_class%%_lightbox .dipl_empty_bar', ), 'important' => 'all', ), 'tab_slug' => 'advanced', 'toggle_slug' => 'popup_element_settings', 'sub_toggle' => 'skills_setting', 'depends_on' => array( 'popup_bar_layout' ), 'depends_show_if' => 'layout1', ), 'skill_bars_border' => array( 'css' => array( 'main' => array( 'border_radii' => '%%order_class%%_lightbox .dipl_skill_bar_wrapper .dipl_bar_counter_chunks', 'border_styles' => '%%order_class%%_lightbox .dipl_skill_bar_wrapper .dipl_bar_counter_chunks', 'important' => 'all', ), ), 'label_prefix' => esc_html__( 'Skill Bar Chunks', 'divi-plus' ), 'tab_slug' => 'advanced', 'toggle_slug' => 'popup_element_settings', 'sub_toggle' => 'skills_setting', 'depends_on' => array( 'popup_bar_layout' ), 'depends_show_if' => 'layout2', ), 'team_member_popup_icon_border' => array( 'css' => array( 'main' => array( 'border_radii' => '%%order_class%%_lightbox .dipl_team_member_social_icon', 'border_styles' => '%%order_class%%_lightbox .dipl_team_member_social_icon', 'important' => 'all', ), ), 'label_prefix' => esc_html__( 'Popup Social Icon', 'divi-plus' ), 'tab_slug' => 'advanced', 'toggle_slug' => 'popup_element_settings', 'sub_toggle' => 'social_setting', 'depends_on' => array( 'use_popup' ), 'depends_show_if' => 'on', ), 'team_member_popup_border' => array( 'css' => array( 'main' => array( 'border_radii' => '%%order_class%%_lightbox .dipl_team_member_wrapper_lightbox', 'border_styles' => '%%order_class%%_lightbox .dipl_team_member_wrapper_lightbox', 'important' => 'all', ), ), 'label_prefix' => esc_html__( 'Popup Border', 'divi-plus' ), 'tab_slug' => 'advanced', 'toggle_slug' => 'popup_element_settings', 'sub_toggle' => 'popup', 'depends_on' => array( 'use_popup' ), 'depends_show_if' => 'on', ), 'default' => array( 'css' => array( 'main' => array( 'border_radii' => '%%order_class%%', 'border_styles' => '%%order_class%%', ), ), ), ), 'box_shadow' => array( 'single_post' => array( 'label' => esc_html__( 'Team Member', 'divi-plus' ), 'css' => array( 'main' => "{$this->main_css_element} .swiper-slide", 'important' => 'all', ), 'tab_slug' => 'advanced', 'toggle_slug' => 'box_shadow', ), 'team_member_image_shadow' => array( 'css' => array( 'main' => '%%order_class%% .dipl_swiper_wrapper .dipl_team_member_image img', 'important' => 'all', ), 'label' => esc_html__( 'Member Image Box Shadow', 'divi-plus' ), 'tab_slug' => 'advanced', 'toggle_slug' => 'image', ), 'default' => array( 'css' => array( 'main' => '%%order_class%%', ), ), ), 'text' => array( 'text_orientation' => array( 'exclude_options' => array( 'justified' ), ), 'options' => array( 'text_orientation' => array( 'label' => esc_html__( 'Alignment', 'divi-plus' ), ), ), 'css' => array( 'text_orientation' => $this->main_css_element, ), ), 'text_shadow' => false, ); } public function get_fields() { $team_slider_fields = array( 'posts_number' => array( 'label' => esc_html__( 'Number of Members', 'divi-plus' ), 'type' => 'text', 'option_category' => 'configuration', 'default' => '10', 'tab_slug' => 'general', 'toggle_slug' => 'main_content', 'description' => esc_html__( 'Here you can define the value of number of members you would like to display.', 'divi-plus' ), 'computed_affects' => array( '__team_slider_data', ), ), 'post_order' => array( 'label' => esc_html__( 'Order', 'divi-plus' ), 'type' => 'select', 'option_category' => 'configuration', 'options' => array( 'DESC' => esc_html__( 'DESC', 'divi-plus' ), 'ASC' => esc_html__( 'ASC', 'divi-plus' ), ), 'default' => 'DESC', 'tab_slug' => 'general', 'toggle_slug' => 'main_content', 'description' => esc_html__( 'Here you can choose in which order you want to display team members on the slider.', 'divi-plus' ), 'computed_affects' => array( '__team_slider_data', ), ), 'post_order_by' => array( 'label' => esc_html__( 'Order by', 'divi-plus' ), 'type' => 'select', 'option_category' => 'configuration', 'options' => array( 'date' => esc_html__( 'Date', 'divi-plus' ), 'modified' => esc_html__( 'Modified Date', 'divi-plus' ), 'title' => esc_html__( 'Title', 'divi-plus' ), 'name' => esc_html__( 'Slug', 'divi-plus' ), 'ID' => esc_html__( 'ID', 'divi-plus' ), 'rand' => esc_html__( 'Random', 'divi-plus' ), 'relevance' => esc_html__( 'Relevance', 'divi-plus' ), 'none' => esc_html__( 'None', 'divi-plus' ), ), 'default' => 'date', 'tab_slug' => 'general', 'toggle_slug' => 'main_content', 'description' => esc_html__( 'Here you can choose the order type of the members to be displayed on the slider.', 'divi-plus' ), 'computed_affects' => array( '__team_slider_data', ), ), 'include_categories' => array( 'label' => esc_html__( 'Select Categories', 'divi-plus' ), 'type' => 'categories', 'option_category' => 'basic_option', 'renderer_options' => array( 'use_terms' => true, 'term_name' => 'dipl-team-member-category', 'field_name' => 'el_include_team_member_category', ), 'tab_slug' => 'general', 'toggle_slug' => 'main_content', 'description' => esc_html__( 'Here you can choose which category members you would like to display. If you want to display all members, then leave it unchecked.', 'divi-plus' ), 'computed_affects' => array( '__team_slider_data', ), ), 'no_result_text' => array( 'label' => esc_html__( 'No Result Text', 'divi-plus' ), 'type' => 'text', 'option_category' => 'configuration', 'default' => esc_html__( 'The team member you requested could not be found. Try changing your module settings or create some new team members.', 'divi-plus' ), 'tab_slug' => 'general', 'toggle_slug' => 'main_content', 'description' => esc_html__( 'Here you can define custom no result text.', 'divi-plus' ), ), 'show_short_desc' => array( 'label' => esc_html__( 'Show Short Description', 'divi-plus' ), 'type' => 'yes_no_button', 'option_category' => 'configuration', 'options' => array( 'on' => esc_html__( 'Yes', 'divi-plus' ), 'off' => esc_html__( 'No', 'divi-plus' ), ), 'default' => 'on', 'tab_slug' => 'general', 'toggle_slug' => 'elements', 'description' => esc_html__( 'Here you can select whether or not to display the short description of the members.', 'divi-plus' ), 'computed_affects' => array( '__team_slider_data', ), ), 'show_designation' => array( 'label' => esc_html__( 'Show Designation', 'divi-plus' ), 'type' => 'yes_no_button', 'option_category' => 'configuration', 'options' => array( 'on' => esc_html__( 'Yes', 'divi-plus' ), 'off' => esc_html__( 'No', 'divi-plus' ), ), 'default' => 'on', 'tab_slug' => 'general', 'toggle_slug' => 'elements', 'description' => esc_html__( 'Here you can select whether or not to display the designation of the members.', 'divi-plus' ), 'computed_affects' => array( '__team_slider_data', ), ), 'show_social_icon' => array( 'label' => esc_html__( 'Show Social Icon', 'divi-plus' ), 'type' => 'yes_no_button', 'option_category' => 'configuration', 'options' => array( 'on' => esc_html__( 'Yes', 'divi-plus' ), 'off' => esc_html__( 'No', 'divi-plus' ), ), 'default' => 'on', 'tab_slug' => 'general', 'toggle_slug' => 'elements', 'description' => esc_html__( 'Here you can select whether or not to display social icons on the slider.', 'divi-plus' ), 'computed_affects' => array( '__team_slider_data', ), ), 'social_icon_link_target' => array( 'label' => esc_html__( 'Social Icon Link Target', 'divi-plus' ), 'type' => 'select', 'option_category' => 'configuration', 'options' => array( 'off' => esc_html__( 'In The Same Window', 'divi-plus' ), 'on' => esc_html__( 'In The New Tab', 'divi-plus' ), ), 'default' => 'off', 'show_if' => array( 'show_social_icon' => 'on', ), 'tab_slug' => 'general', 'toggle_slug' => 'elements', 'description' => esc_html__( 'Here you can choose whether or not the social icon opens the link in a new window.', 'divi-plus' ), 'computed_affects' => array( '__team_slider_data', ), ), 'show_skills' => array( 'label' => esc_html__( 'Show Skills', 'divi-plus' ), 'type' => 'yes_no_button', 'option_category' => 'configuration', 'options' => array( 'on' => esc_html__( 'Yes', 'divi-plus' ), 'off' => esc_html__( 'No', 'divi-plus' ), ), 'default' => 'on', 'tab_slug' => 'general', 'toggle_slug' => 'elements', 'description' => esc_html__( 'Here you can select whether or not to display skills of the members.', 'divi-plus' ), 'computed_affects' => array( '__team_slider_data', ), ), 'enable_member_link' => array( 'label' => esc_html__( 'Enable Member Link', 'divi-plus' ), 'type' => 'yes_no_button', 'option_category' => 'configuration', 'options' => array( 'on' => esc_html__( 'Yes', 'divi-plus' ), 'off' => esc_html__( 'No', 'divi-plus' ), ), 'default' => 'off', 'tab_slug' => 'general', 'toggle_slug' => 'link_options', 'description' => esc_html__( 'Here you can select whether or not to link the member on single member page.', 'divi-plus' ), 'computed_affects' => array( '__team_slider_data', ), ), 'link_type' => array( 'label' => esc_html__( 'Link Type', 'divi-plus' ), 'type' => 'select', 'option_category' => 'configuration', 'options' => array( 'item' => esc_html__( 'Link Whole Item', 'divi-plus' ), 'button' => esc_html__( 'Show Button', 'divi-plus' ), ), 'default' => 'item', 'show_if' => array( 'enable_member_link' => 'on', ), 'tab_slug' => 'general', 'toggle_slug' => 'link_options', 'description' => esc_html__( 'Here you can choose whether to link the whole team member item or use the button.', 'divi-plus' ), 'computed_affects' => array( '__team_slider_data', ), ), 'link_button_text' => array( 'label' => esc_html__( 'Link Button Text', 'divi-plus' ), 'type' => 'text', 'option_category' => 'configuration', 'default' => esc_html__( 'Read more', 'divi-plus' ), 'show_if' => array( 'enable_member_link' => 'on', 'link_type' => 'button' ), 'tab_slug' => 'general', 'toggle_slug' => 'link_options', 'description' => esc_html__( 'Here you can define the value of number of members you would like to display.', 'divi-plus' ), 'computed_affects' => array( '__team_slider_data', ), ), 'use_popup' => array( 'label' => esc_html__( 'Use Popup', 'divi-plus' ), 'type' => 'yes_no_button', 'option_category' => 'configuration', 'options' => array( 'on' => esc_html__( 'Yes', 'divi-plus' ), 'off' => esc_html__( 'No', 'divi-plus' ), ), 'default' => 'off', 'show_if' => array( 'enable_member_link' => 'on' ), 'tab_slug' => 'general', 'toggle_slug' => 'link_options', 'description' => esc_html__( 'Enable this to open popup/lightbox instead of open a link.', 'divi-plus' ), 'computed_affects' => array( '__team_slider_data', ), ), 'link_target' => array( 'label' => esc_html__( 'Member Link Target', 'divi-plus' ), 'type' => 'select', 'option_category' => 'configuration', 'options' => array( 'off' => esc_html__( 'In The Same Window', 'divi-plus' ), 'on' => esc_html__( 'In The New Tab', 'divi-plus' ), ), 'default' => 'off', 'show_if' => array( 'enable_member_link' => 'on', 'use_popup' => 'off' ), 'tab_slug' => 'general', 'toggle_slug' => 'link_options', 'description' => esc_html__( 'Here you can choose whether or not the member opens the link in a new window.', 'divi-plus' ), 'computed_affects' => array( '__team_slider_data', ), ), 'display_in_popup' => array( 'label' => esc_html__( 'Display in Popup', 'divi-plus' ), 'type' => 'multiple_checkboxes', 'option_category' => 'basic_option', 'options' => array( 'image' => esc_html__( 'Image', 'divi-plus' ), 'designation' => esc_html__( 'Designation', 'divi-plus' ), 'social_icons' => esc_html__( 'Social Icons', 'divi-plus' ), 'content' => esc_html__( 'Content', 'divi-plus' ), 'skills_bars' => esc_html__( 'Skill Bars', 'divi-plus' ), ), 'show_if' => array( 'enable_member_link' => 'on', 'use_popup' => 'on' ), 'default' => 'on|on|on|on|on', 'tab_slug' => 'general', 'toggle_slug' => 'link_options', 'description' => esc_html__( 'Here you can choose whether or not to show extra fields in popup state.', 'divi-plus' ), ), 'slider_layout' => array( 'label' => esc_html__( 'Layout', 'divi-plus' ), 'type' => 'select', 'option_category' => 'layout', 'options' => array( 'layout1' => esc_html__( 'Layout 1', 'divi-plus' ), 'layout2' => esc_html__( 'Layout 2', 'divi-plus' ), ), 'default' => 'layout1', 'tab_slug' => 'general', 'toggle_slug' => 'slider_settings', 'description' => esc_html__( 'Here you can select the team slider layout.', 'divi-plus' ), 'computed_affects' => array( '__team_slider_data', ), ), 'slide_effect' => array( 'label' => esc_html__( 'Slide Effect', 'divi-plus' ), 'type' => 'select', 'option_category' => 'layout', 'options' => array( 'slide' => esc_html__( 'Slide', 'divi-plus' ), 'coverflow' => esc_html__( 'Coverflow', 'divi-plus' ), 'cube' => esc_html__( 'Cube', 'divi-plus' ), 'flip' => esc_html__( 'Flip', 'divi-plus' ), 'fade' => esc_html__( 'Fade', 'divi-plus' ), ), 'default' => 'slide', 'tab_slug' => 'general', 'toggle_slug' => 'slider_settings', 'description' => esc_html__( 'Here you can choose the slide animation effect.', 'divi-plus' ), ), 'post_per_slide' => array( 'label' => esc_html__( 'Number of Members Per View', 'divi-plus' ), 'type' => 'select', 'option_category' => 'layout', 'options' => array( '1' => esc_html__( '1', 'divi-plus' ), '2' => esc_html__( '2', 'divi-plus' ), '3' => esc_html__( '3', 'divi-plus' ), '4' => esc_html__( '4', 'divi-plus' ), '5' => esc_html__( '5', 'divi-plus' ), '6' => esc_html__( '6', 'divi-plus' ), '7' => esc_html__( '7', 'divi-plus' ), '8' => esc_html__( '8', 'divi-plus' ), '9' => esc_html__( '9', 'divi-plus' ), '10' => esc_html__( '10', 'divi-plus' ), ), 'default' => '3', 'mobile_options' => true, 'show_if' => array( 'slide_effect' => array( 'coverflow', 'slide' ), ), 'tab_slug' => 'general', 'toggle_slug' => 'slider_settings', 'description' => esc_html__( 'Here you can choose the number of members you want to display per slide.', 'divi-plus' ), 'computed_affects' => array( '__team_slider_data', ), ), 'slides_per_group' => array( 'label' => esc_html__( 'Number of Slides Per Group', 'divi-plus' ), 'type' => 'select', 'option_category' => 'layout', 'options' => array( '1' => esc_html__( '1', 'divi-plus' ), '2' => esc_html__( '2', 'divi-plus' ), '3' => esc_html__( '3', 'divi-plus' ), '4' => esc_html__( '4', 'divi-plus' ), '5' => esc_html__( '5', 'divi-plus' ), '6' => esc_html__( '6', 'divi-plus' ), '7' => esc_html__( '7', 'divi-plus' ), '8' => esc_html__( '8', 'divi-plus' ), '9' => esc_html__( '9', 'divi-plus' ), '10' => esc_html__( '10', 'divi-plus' ), ), 'default' => '1', 'mobile_options' => true, 'show_if' => array( 'slide_effect' => array( 'coverflow', 'slide' ), ), 'tab_slug' => 'general', 'toggle_slug' => 'slider_settings', 'description' => esc_html__( 'Here you can choose the number of slides per group to slide by.', 'divi-plus' ), ), 'space_between_slides' => array( 'label' => esc_html__( 'Space between Slides', 'divi-plus' ), 'type' => 'range', 'option_category' => 'layout', 'range_settings' => array( 'min' => '10', 'max' => '100', 'step' => '1', ), 'show_if' => array( 'slide_effect' => array( 'slide', 'coverflow' ), ), 'fixed_unit' => 'px', 'default' => '20px', 'mobile_options' => true, 'tab_slug' => 'general', 'toggle_slug' => 'slider_settings', 'description' => esc_html__( 'Move the slider or input the value to increse or decrease the space between slides.', 'divi-plus' ), ), 'enable_coverflow_shadow' => array( 'label' => esc_html__( 'Enable Slide Shadow', 'divi-plus' ), 'type' => 'yes_no_button', 'option_category' => 'configuration', 'options' => array( 'on' => esc_html__( 'Yes', 'divi-plus' ), 'off' => esc_html__( 'No', 'divi-plus' ), ), 'default' => 'off', 'show_if' => array( 'slide_effect' => 'coverflow', ), 'tab_slug' => 'general', 'toggle_slug' => 'slider_settings', 'description' => esc_html__( 'Here you can select whether or not to use Slide Shadow for the Coverflow effect.', 'divi-plus' ), ), 'coverflow_shadow_color' => array( 'label' => esc_html__( 'Shadow Color', 'divi-plus' ), 'type' => 'color-alpha', 'custom_color' => true, 'show_if' => array( 'slide_effect' => 'coverflow', 'enable_coverflow_shadow' => 'on', ), 'default' => '#ccc', 'tab_slug' => 'general', 'toggle_slug' => 'slider_settings', 'description' => esc_html__( 'Here you can select color for the Shadow.' ), ), 'coverflow_rotate' => array( 'label' => esc_html__( 'Coverflow Rotate', 'divi-plus' ), 'type' => 'range', 'option_category' => 'font_option', 'range_settings' => array( 'min' => '1', 'max' => '360', 'step' => '1', ), 'mobile_options' => true, 'show_if' => array( 'slide_effect' => 'coverflow', ), 'default' => '40', 'tab_slug' => 'general', 'toggle_slug' => 'slider_settings', 'description' => esc_html__( 'Move the slider or input the value to rotate non-focused team members card.', 'divi-plus' ), ), 'coverflow_depth' => array( 'label' => esc_html__( 'Coverflow Depth', 'divi-plus' ), 'type' => 'range', 'option_category' => 'font_option', 'range_settings' => array( 'min' => '1', 'max' => '1000', 'step' => '1', ), 'mobile_options' => true, 'show_if' => array( 'slide_effect' => 'coverflow', ), 'default' => '100', 'tab_slug' => 'general', 'toggle_slug' => 'slider_settings', 'description' => esc_html__( 'Move the slider or input the value to zoom-in or zoom-out, non-focused team members card on the slider.', 'divi-plus' ), ), 'equalize_posts_height' => array( 'label' => esc_html__( 'Equalize Slide Height', 'divi-plus' ), 'type' => 'yes_no_button', 'option_category' => 'configuration', 'options' => array( 'off' => esc_html__( 'Off', 'divi-plus' ), 'on' => esc_html__( 'On', 'divi-plus' ), ), 'default' => 'on', 'tab_slug' => 'general', 'toggle_slug' => 'slider_settings', 'description' => esc_html__( 'Here you can choose whether or not to equalize the card height of the team members on the slider.', 'divi-plus' ), ), 'auto_height_slider' => array( 'label' => esc_html__( 'Auto Height Slider', 'divi-plus' ), 'type' => 'yes_no_button', 'option_category' => 'configuration', 'options' => array( 'off' => esc_html__( 'Off', 'divi-plus' ), 'on' => esc_html__( 'On', 'divi-plus' ), ), 'default' => 'off', 'tab_slug' => 'general', 'toggle_slug' => 'slider_settings', 'description' => esc_html__( 'Here you can choose whether or not slider height should adjust according to each slide.', 'divi-plus' ), ), 'slider_loop' => array( 'label' => esc_html__( 'Enable Loop', 'divi-plus' ), 'type' => 'yes_no_button', 'option_category' => 'configuration', 'options' => array( 'on' => esc_html__( 'Yes', 'divi-plus' ), 'off' => esc_html__( 'No', 'divi-plus' ), ), 'default' => 'off', 'tab_slug' => 'general', 'toggle_slug' => 'slider_settings', 'description' => esc_html__( 'Here you can choose whether or not to enable loop for the team slider.', 'divi-plus' ), ), 'autoplay' => array( 'label' => esc_html__( 'Autoplay', 'divi-plus' ), 'type' => 'yes_no_button', 'option_category' => 'configuration', 'options' => array( 'on' => esc_html__( 'Yes', 'divi-plus' ), 'off' => esc_html__( 'No', 'divi-plus' ), ), 'default' => 'on', 'tab_slug' => 'general', 'toggle_slug' => 'slider_settings', 'description' => esc_html__( 'Here you can choose whether or not to autoplay team slider.', 'divi-plus' ), ), 'enable_linear_transition' => array( 'label' => esc_html__( 'Enable Linear Transition', 'divi-plus' ), 'type' => 'yes_no_button', 'option_category' => 'configuration', 'options' => array( 'on' => esc_html__( 'Yes', 'divi-plus' ), 'off' => esc_html__( 'No', 'divi-plus' ), ), 'default' => 'off', 'tab_slug' => 'general', 'toggle_slug' => 'slider_settings', 'description' => esc_html__( 'Here you can choose whether or not to enable linear transition between slides.', 'divi-plus' ), ), 'autoplay_speed' => array( 'label' => esc_html__( 'Autoplay Delay', 'divi-plus' ), 'type' => 'text', 'option_category' => 'configuration', 'default' => '3000', 'show_if' => array( 'autoplay' => 'on', ), 'show_if_not' => array( 'autoplay' => 'off', ), 'tab_slug' => 'general', 'toggle_slug' => 'slider_settings', 'description' => esc_html__( 'Here you can input the value to delay autoplay after a complete transition of the team slider.', 'divi-plus' ), ), 'transition_duration' => array( 'label' => esc_html__( 'Transition Duration', 'divi-plus' ), 'type' => 'text', 'option_category' => 'configuration', 'default' => '1000', 'tab_slug' => 'general', 'toggle_slug' => 'slider_settings', 'description' => esc_html__( 'Here you can input the value to delay each slide in a transition.', 'divi-plus' ), ), 'pause_on_hover' => array( 'label' => esc_html__( 'Pause On Hover', 'divi-plus' ), 'type' => 'yes_no_button', 'option_category' => 'configuration', 'options' => array( 'on' => esc_html__( 'Yes', 'divi-plus' ), 'off' => esc_html__( 'No', 'divi-plus' ), ), 'default' => 'on', 'show_if' => array( 'autoplay' => 'on', ), 'tab_slug' => 'general', 'toggle_slug' => 'slider_settings', 'description' => esc_html__( 'Here you can choose whether or not to pause slides on mouse hover.', 'divi-plus' ), ), 'show_arrow' => array( 'label' => esc_html__( 'Show Arrows', 'divi-plus' ), 'type' => 'yes_no_button', 'option_category' => 'configuration', 'options' => array( 'on' => esc_html__( 'Yes', 'divi-plus' ), 'off' => esc_html__( 'No', 'divi-plus' ), ), 'default' => 'on', 'tab_slug' => 'general', 'toggle_slug' => 'slider_settings', 'description' => esc_html__( 'Here you can choose whether or not to display previous & next arrow on the slider.', 'divi-plus' ), ), 'previous_slide_arrow' => array( 'label' => esc_html__( 'Previous Arrow', 'divi-plus' ), 'type' => 'select_icon', 'option_category' => 'basic_option', 'class' => array( 'et-pb-font-icon', ), 'show_if' => array( 'show_arrow' => 'on', ), 'default' => ET_BUILDER_PRODUCT_VERSION < '4.13.0' ? '%%2%%' : '#||divi||400', 'tab_slug' => 'general', 'toggle_slug' => 'slider_settings', 'description' => esc_html__( 'Here you can select the icon to be used for the previous slide navigation.', 'divi-plus' ), ), 'next_slide_arrow' => array( 'label' => esc_html__( 'Next Arrow', 'divi-plus' ), 'type' => 'select_icon', 'option_category' => 'basic_option', 'class' => array( 'et-pb-font-icon', ), 'show_if' => array( 'show_arrow' => 'on', ), 'default' => ET_BUILDER_PRODUCT_VERSION < '4.13.0' ? '%%3%%' : '$||divi||400', 'tab_slug' => 'general', 'toggle_slug' => 'slider_settings', 'description' => esc_html__( 'Here you can select the icon to be used for the next slide navigation.', 'divi-plus' ), ), 'show_arrow_on_hover' => array( 'label' => esc_html__( 'Show Arrows Only On Hover', 'divi-plus' ), 'type' => 'yes_no_button', 'option_category' => 'configuration', 'options' => array( 'on' => esc_html__( 'Yes', 'divi-plus' ), 'off' => esc_html__( 'No', 'divi-plus' ), ), 'show_if' => array( 'show_arrow' => 'on', ), 'default' => 'off', 'tab_slug' => 'general', 'toggle_slug' => 'slider_settings', 'description' => esc_html__( 'Here you can choose whether or not to display previous and next arrow on hover.', 'divi-plus' ), ), 'arrows_position' => array( 'label' => esc_html__( 'Arrows Position', 'divi-plus' ), 'type' => 'select', 'option_category' => 'layout', 'options' => array( 'inside' => esc_html__( 'Inside', 'divi-plus' ), 'outside' => esc_html__( 'Outside', 'divi-plus' ), 'top_left' => esc_html__( 'Top Left', 'divi-plus' ), 'top_right' => esc_html__( 'Top Right', 'divi-plus' ), 'top_center' => esc_html__( 'Top Center', 'divi-plus' ), 'bottom_left' => esc_html__( 'Bottom Left', 'divi-plus' ), 'bottom_right' => esc_html__( 'Bottom Right', 'divi-plus' ), 'bottom_center' => esc_html__( 'Bottom Center', 'divi-plus' ), ), 'default' => 'outside', 'mobile_options' => true, 'show_if' => array( 'show_arrow' => 'on', ), 'tab_slug' => 'general', 'toggle_slug' => 'slider_settings', 'description' => esc_html__( 'Here you can choose the arrows position.', 'divi-plus' ), ), 'show_control_dot' => array( 'label' => esc_html__( 'Show Control Dots', 'divi-plus' ), 'type' => 'yes_no_button', 'option_category' => 'configuration', 'options' => array( 'on' => esc_html__( 'Yes', 'divi-plus' ), 'off' => esc_html__( 'No', 'divi-plus' ), ), 'default' => 'on', 'tab_slug' => 'general', 'toggle_slug' => 'slider_settings', 'description' => esc_html__( 'Here you choose whether or not to display pagination on the team slider.', 'divi-plus' ), ), 'control_dot_style' => array( 'label' => esc_html__( 'Dots Pagination Style', 'divi-plus' ), 'type' => 'select', 'option_category' => 'layout', 'options' => array( 'solid_dot' => esc_html__( 'Solid Dot', 'divi-plus' ), 'transparent_dot' => esc_html__( 'Transparent Dot', 'divi-plus' ), 'stretched_dot' => esc_html__( 'Stretched Dot', 'divi-plus' ), 'line' => esc_html__( 'Line', 'divi-plus' ), 'rounded_line' => esc_html__( 'Rounded Line', 'divi-plus' ), 'square_dot' => esc_html__( 'Squared Dot', 'divi-plus' ), ), 'show_if' => array( 'show_control_dot' => 'on', ), 'default' => 'solid_dot', 'tab_slug' => 'general', 'toggle_slug' => 'slider_settings', 'description' => esc_html__( 'control dot style', 'divi-plus' ), ), 'enable_dynamic_dots' => array( 'label' => esc_html__( 'Enable Dynamic Dots', 'divi-plus' ), 'type' => 'yes_no_button', 'option_category' => 'configuration', 'options' => array( 'on' => esc_html__( 'Yes', 'divi-plus' ), 'off' => esc_html__( 'No', 'divi-plus' ), ), 'default' => 'off', 'show_if' => array( 'show_control_dot' => 'on', 'control_dot_style' => array( 'solid_dot', 'transparent_dot', 'square_dot' ), ), 'tab_slug' => 'general', 'toggle_slug' => 'slider_settings', 'description' => esc_html__( 'This setting will turn on and off the dynamic pagination of the slider.', 'divi-plus' ), ), 'slider_container_custom_padding' => array( 'label' => esc_html__( 'Slider Container Padding', 'divi-plus' ), 'type' => 'custom_padding', 'option_category' => 'layout', 'mobile_options' => true, 'hover' => false, 'tab_slug' => 'advanced', 'toggle_slug' => 'margin_padding', 'description' => esc_html__( 'Padding adds extra space to the inside of the element, increasing the distance between the edge of the element and its inner contents.', 'divi-plus' ), ), 'team_member_card_custom_padding' => array( 'label' => esc_html__( 'Slide Padding', 'divi-plus' ), 'type' => 'custom_padding', 'option_category' => 'layout', 'mobile_options' => true, 'hover' => false, 'default' => '', 'default_on_front' => '', 'tab_slug' => 'advanced', 'toggle_slug' => 'margin_padding', 'description' => esc_html__( 'Padding adds extra space to the inside of the element, increasing the distance between the edge of the element and its inner contents.', 'divi-plus' ), ), 'slide_bg_color' => array( 'label' => esc_html__( 'Slide Background', 'divi-plus' ), 'type' => 'background-field', 'base_name' => 'slide_bg', 'context' => 'slide_bg_color', 'custom_color' => true, 'background_fields' => $this->generate_background_options( 'slide_bg', 'button', 'general', 'background', 'slide_bg_color' ), 'mobile_options' => true, 'tab_slug' => 'general', 'toggle_slug' => 'background', 'description' => esc_html__( 'Customize the background style of the individual slide by adjusting the background color, gradient, and image.', 'divi-plus' ), ), 'social_icon_separator_color' => array( 'label' => esc_html__( 'Icon Separator Color', 'divi-plus' ), 'type' => 'color-alpha', 'custom_color' => true, 'show_if' => array( 'slider_layout' => 'layout1', ), 'default' => '#cccccc', 'tab_slug' => 'advanced', 'toggle_slug' => 'social_icon_settings', 'description' => esc_html__( 'Here you can define the social icon separator color.', 'divi-plus' ), ), 'social_icon_separator_size' => array( 'label' => esc_html__( 'Separator Size', 'divi-plus' ), 'type' => 'range', 'option_category' => 'font_option', 'range_settings' => array( 'min' => '1', 'max' => '10', 'step' => '1', ), 'mobile_options' => true, 'show_if' => array( 'slider_layout' => 'layout1', ), 'default' => '1px', 'tab_slug' => 'advanced', 'toggle_slug' => 'social_icon_settings', 'description' => esc_html__( 'Move the slider or input the value to increase or decrease social icon separator size.', 'divi-plus' ), ), 'social_icon_size' => array( 'label' => esc_html__( 'Icon Size', 'divi-plus' ), 'type' => 'range', 'option_category' => 'font_option', 'range_settings' => array( 'min' => '1', 'max' => '100', 'step' => '1', ), 'mobile_options' => true, 'default' => '16px', 'default_on_front' => '16px', 'tab_slug' => 'advanced', 'toggle_slug' => 'social_icon_settings', 'description' => esc_html__( 'Move the slider or input the value to increase or decrease team member social icon size.', 'divi-plus' ), ), 'social_icon_color' => array( 'label' => esc_html__( 'Icon Color', 'divi-plus' ), 'type' => 'color-alpha', 'custom_color' => true, 'hover' => 'tabs', 'tab_slug' => 'advanced', 'toggle_slug' => 'social_icon_settings', 'description' => esc_html__( 'Here you can choose a custom color to be used for the social icon.', 'divi-plus' ), ), 'social_icon_background_color' => array( 'label' => esc_html__( 'Icon Background Color', 'divi-plus' ), 'type' => 'color-alpha', 'custom_color' => true, 'hover' => 'tabs', 'tab_slug' => 'advanced', 'toggle_slug' => 'social_icon_settings', 'description' => esc_html__( 'Here you can choose a custom color to be used for the social icon background.', 'divi-plus' ), ), 'social_icon_alignment' => array( 'label' => esc_html__( 'Social Icon Alignment', 'divi-plus' ), 'type' => 'select', 'option_category' => 'layout', 'options' => array( 'dipl_icon_left' => esc_html__( 'Left', 'divi-plus' ), 'dipl_icon_center' => esc_html__( 'Center', 'divi-plus' ), 'dipl_icon_right' => esc_html__( 'Right', 'divi-plus' ), ), 'default' => 'dipl_icon_center', 'tab_slug' => 'advanced', 'toggle_slug' => 'social_icon_settings', 'description' => esc_html__( 'Here you can select the placement for the social icons.', 'divi-plus' ), ), 'skill_bar_height' => array( 'label' => esc_html__( 'Bar Height', 'divi-plus' ), 'type' => 'range', 'option_category' => 'font_option', 'range_settings' => array( 'min' => '1', 'max' => '30', 'step' => '1', ), 'show_if' => array( 'show_skills' => 'on', ), 'mobile_options' => true, 'default' => '12px', 'tab_slug' => 'advanced', 'toggle_slug' => 'skills_settings', 'description' => esc_html__( 'Move the slider or input the value to increase or decrease skills bar height.', 'divi-plus' ), ), 'empty_bar_color' => array( 'label' => esc_html__( 'Empty Bar Color', 'divi-plus' ), 'type' => 'color-alpha', 'custom_color' => true, 'show_if' => array( 'show_skills' => 'on', ), 'hover' => 'tabs', 'default' => '#ccc', 'tab_slug' => 'advanced', 'toggle_slug' => 'skills_settings', 'description' => esc_html__( 'Here you can choose a custom color to be used for the empty skills bar.', 'divi-plus' ), ), 'filled_bar_color' => array( 'label' => esc_html__( 'Filled Bar Color', 'divi-plus' ), 'type' => 'color-alpha', 'custom_color' => true, 'show_if' => array( 'show_skills' => 'on', ), 'hover' => 'tabs', 'default' => '#0c71c3', 'tab_slug' => 'advanced', 'toggle_slug' => 'skills_settings', 'description' => esc_html__( 'Here you can choose a custom color to be used for the filled skills bar.', 'divi-plus' ), ), 'arrows_custom_padding' => array( 'label' => esc_html__( 'Arrows Padding', 'divi-plus' ), 'type' => 'custom_padding', 'option_category' => 'layout', 'show_if' => array( 'show_arrow' => 'on', ), 'default' => '8px|8px|8px|8px|true|true', 'default_on_front' => '8px|8px|8px|8px|true|true', 'mobile_options' => true, 'hover' => false, 'tab_slug' => 'advanced', 'toggle_slug' => 'slider_styles', 'description' => esc_html__( 'Padding adds extra space to the inside of the element, increasing the distance between the edge of the element and its inner contents.', 'divi-plus' ), ), 'arrow_font_size' => array( 'label' => esc_html__( 'Arrow Font Size', 'divi-plus' ), 'type' => 'range', 'option_category' => 'layout', 'range_settings' => array( 'min' => '10', 'max' => '100', 'step' => '1', ), 'show_if' => array( 'show_arrow' => 'on', ), 'mobile_options' => true, 'default' => '18px', 'tab_slug' => 'advanced', 'toggle_slug' => 'slider_styles', 'description' => esc_html__( 'Move the slider or input the value to increse or decrease the size of arrows.', 'divi-plus' ), ), 'arrow_color' => array( 'label' => esc_html__( 'Arrow Color', 'divi-plus' ), 'type' => 'color-alpha', 'custom_color' => true, 'show_if' => array( 'show_arrow' => 'on', ), 'default' => '#007aff', 'hover' => 'tabs', 'tab_slug' => 'advanced', 'toggle_slug' => 'slider_styles', 'description' => esc_html__( 'Here you can choose a custom color to be used for arrows.', 'divi-plus' ), ), 'arrow_background_color' => array( 'label' => esc_html__( 'Arrow Background', 'divi-plus' ), 'type' => 'color-alpha', 'custom_color' => true, 'show_if' => array( 'show_arrow' => 'on', ), 'hover' => 'tabs', 'tab_slug' => 'advanced', 'toggle_slug' => 'slider_styles', 'description' => esc_html__( 'Here you can choose a custom color to be used for the background of arrows.', 'divi-plus' ), ), 'arrow_background_border_radius' => array( 'label' => esc_html__( 'Arrow Border Radius', 'divi-plus' ), 'type' => 'range', 'option_category' => 'layout', 'range_settings' => array( 'min' => '0', 'max' => '500', 'step' => '1', ), 'show_if' => array( 'show_arrow' => 'on', ), 'default' => '0px', 'tab_slug' => 'advanced', 'toggle_slug' => 'slider_styles', 'description' => esc_html__( 'Move the slider or input the value to increase or decrease the border radius of the arrow background.', 'divi-plus' ), ), 'arrow_background_border_size' => array( 'label' => esc_html__( 'Arrow Background Border', 'divi-plus' ), 'type' => 'range', 'option_category' => 'layout', 'range_settings' => array( 'min' => '1', 'max' => '10', 'step' => '1', ), 'show_if' => array( 'show_arrow' => 'on', ), 'default' => '0px', 'tab_slug' => 'advanced', 'toggle_slug' => 'slider_styles', 'description' => esc_html__( 'Move the slider or input the value to increase or decrease the border size of the arrow background.', 'divi-plus' ), ), 'arrow_shape_border_color' => array( 'label' => esc_html__( 'Arrow Backround Border Color', 'divi-plus' ), 'type' => 'color-alpha', 'custom_color' => true, 'show_if' => array( 'show_arrow' => 'on', ), 'hover' => 'tabs', 'tab_slug' => 'advanced', 'toggle_slug' => 'slider_styles', 'description' => esc_html__( 'Here you can choose a custom color to be used for the arrow shape border', 'divi-plus' ), ), 'control_dot_active_color' => array( 'label' => esc_html__( 'Active Dot Pagination Color', 'divi-plus' ), 'type' => 'color-alpha', 'custom_color' => true, 'show_if' => array( 'show_control_dot' => 'on', ), 'default' => '#000000', 'tab_slug' => 'advanced', 'toggle_slug' => 'slider_styles', 'description' => esc_html__( 'Here you can choose a custom color to be used for the pagination of an active item.', 'divi-plus' ), ), 'control_dot_inactive_color' => array( 'label' => esc_html__( 'Inactive Dot Pagination Color', 'divi-plus' ), 'type' => 'color-alpha', 'custom_color' => true, 'show_if' => array( 'show_control_dot' => 'on', ), 'default' => '#007aff', 'tab_slug' => 'advanced', 'toggle_slug' => 'slider_styles', 'description' => esc_html__( 'Here you can choose a custom color to be used for the pagination of inactive items.', 'divi-plus' ), ), 'image_height' => array( 'label' => esc_html__( 'Image Height', 'divi-plus' ), 'type' => 'range', 'option_category' => 'layout', 'range_settings' => array( 'min' => '100', 'max' => '1000', 'step' => '1', ), 'mobile_options' => 'true', 'validate_unit' => true, 'allowed_values' => et_builder_get_acceptable_css_string_values( 'height' ), 'default' => 'auto', 'default_unit' => 'px', 'tab_slug' => 'advanced', 'toggle_slug' => 'image', 'description' => esc_html__( 'Move the slider or input the value to increase or decrease the image height.', 'divi-plus' ), ), 'close_icon_position' => array( 'label' => esc_html__( 'Close Icon Position', 'divi-plus' ), 'type' => 'select', 'option_category' => 'layout', 'options' => array( 'outside' => esc_html__( 'Outside', 'divi-plus' ), 'inside' => esc_html__( 'Inside', 'divi-plus' ), ), 'show_if' => array( 'enable_member_link' => 'on', 'use_popup' => 'on' ), 'default' => 'outside', 'tab_slug' => 'advanced', 'toggle_slug' => 'popup_element_settings', 'sub_toggle' => 'popup', 'description' => esc_html__( 'Here you can select the placement for the social icons.', 'divi-plus' ), ), 'lightbox_close_icon_color' => array( 'label' => esc_html__( 'Close Icon Color', 'divi-plus' ), 'type' => 'color-alpha', 'custom_color' => true, 'default' => '#bbb', 'default_on_front' => '#bbb', 'show_if' => array( 'enable_member_link' => 'on', 'use_popup' => 'on' ), 'tab_slug' => 'advanced', 'toggle_slug' => 'popup_element_settings', 'sub_toggle' => 'popup', 'description' => esc_html__( 'Here you can define a custom color for the close icon.', 'divi-plus' ), ), 'lightbox_close_icon_size' => array( 'label' => esc_html__( 'Close Icon Size', 'divi-plus' ), 'type' => 'range', 'option_category' => 'font_option', 'range_settings' => array( 'min' => '1', 'max' => '100', 'step' => '1', ), 'mobile_options' => true, 'default' => '28px', 'default_on_front' => '28px', 'show_if' => array( 'enable_member_link' => 'on', 'use_popup' => 'on' ), 'tab_slug' => 'advanced', 'toggle_slug' => 'popup_element_settings', 'sub_toggle' => 'popup', 'description' => esc_html__( 'Move the slider or input the value to increase or decrease team member lightbox close icon size.', 'divi-plus' ), ), 'popup_width' => array( 'label' => esc_html__( 'Popup Width', 'divi-plus' ), 'type' => 'range', 'option_category' => 'layout', 'range_settings' => array( 'min' => '10', 'max' => '100', 'step' => '1', ), 'fixed_unit' => '%', 'default' => '60%', 'mobile_options' => true, 'show_if' => array( 'enable_member_link' => 'on', 'use_popup' => 'on' ), 'tab_slug' => 'advanced', 'toggle_slug' => 'popup_element_settings', 'sub_toggle' => 'popup', 'description' => esc_html__( 'Adjust the width of the popup.', 'divi-plus' ), ), 'popup_overlay_bg' => array( 'label' => esc_html__( 'Popup Overlay Background', 'divi-plus' ), 'type' => 'color-alpha', 'custom_color' => true, 'default' => 'rgba(0,0,0,0.8)', 'default_on_front' => 'rgba(0,0,0,0.8)', 'show_if' => array( 'enable_member_link' => 'on', 'use_popup' => 'on' ), 'tab_slug' => 'advanced', 'toggle_slug' => 'popup_element_settings', 'sub_toggle' => 'popup', 'description' => esc_html__( 'Here you can define a custom background overlay color for the Popup.', 'divi-plus' ), ), 'popup_bg' => array( 'label' => esc_html__( 'Popup Background', 'divi-plus' ), 'type' => 'color-alpha', 'custom_color' => true, 'default' => '#fff', 'show_if' => array( 'enable_member_link' => 'on', 'use_popup' => 'on' ), 'tab_slug' => 'advanced', 'toggle_slug' => 'popup_element_settings', 'sub_toggle' => 'popup', 'description' => esc_html__( 'Here you can choose a custom color to be used for popup.', 'divi-plus' ), ), 'popup_custom_padding' => array( 'label' => esc_html__( 'Popup Padding', 'divi-plus' ), 'type' => 'custom_padding', 'option_category' => 'layout', 'mobile_options' => true, 'hover' => false, 'default' => '', 'show_if' => array( 'enable_member_link' => 'on', 'use_popup' => 'on' ), 'tab_slug' => 'advanced', 'toggle_slug' => 'popup_element_settings', 'sub_toggle' => 'popup', 'description' => esc_html__( 'Padding adds extra space to the inside of the element, increasing the distance between the edge of the element and its inner contents.', 'divi-plus' ), ), 'popup_bar_layout' => array( 'label' => esc_html__( 'Skill Bar Layout', 'divi-plus' ), 'type' => 'select', 'option_category' => 'configuration', 'options' => array( 'layout1' => esc_html__( 'Layout 1', 'divi-plus' ), 'layout2' => esc_html__( 'Layout 2', 'divi-plus' ), ), 'default' => 'layout1', 'default_on_front' => 'layout1', 'tab_slug' => 'advanced', 'show_if' => array( 'enable_member_link' => 'on', 'use_popup' => 'on' ), 'toggle_slug' => 'popup_element_settings', 'sub_toggle' => 'skills_setting', 'affects' => array( 'border_radii_skill_bars_border', 'border_styles_skill_bars_border', 'border_width_all_skill_bars_border', 'border_color_all_skill_bars_border', 'border_style_all_skill_bars_border', ), 'description' => esc_html__( 'Here you can select the layout for your skill bar.', 'divi-plus' ), ), 'popup_use_stripes' => array( 'label' => esc_html__( 'Use Stripes', 'divi-plus' ), 'type' => 'yes_no_button', 'option_category' => 'configuration', 'options' => array( 'on' => esc_html__( 'Yes', 'divi-plus' ), 'off' => esc_html__( 'No', 'divi-plus' ), ), 'default' => 'off', 'show_if' => array( 'enable_member_link' => 'on', 'use_popup' => 'on', 'popup_bar_layout' => 'layout1', ), 'tab_slug' => 'advanced', 'toggle_slug' => 'popup_element_settings', 'sub_toggle' => 'skills_setting', 'description' => esc_html__( 'Here you can choose whether to use striped bar or not.', 'divi-plus' ), ), 'popup_stripe_color' => array( 'label' => esc_html__( 'Stripe Color', 'divi-plus' ), 'type' => 'color-alpha', 'custom_color' => true, 'show_if' => array( 'enable_member_link' => 'on', 'use_popup' => 'on', 'popup_bar_layout' => 'layout1', 'popup_use_stripes' => 'on', ), 'default' => 'rgba(255,255,255,.15)', 'default_on_front' => 'rgba(255,255,255,.15)', 'tab_slug' => 'advanced', 'toggle_slug' => 'popup_element_settings', 'sub_toggle' => 'skills_setting', 'description' => esc_html__( 'Here you can select the color for the stripes.', 'divi-plus' ), ), 'popup_use_animated_stripes' => array( 'label' => esc_html__( 'Enable Stripes animation', 'divi-plus' ), 'type' => 'yes_no_button', 'option_category' => 'configuration', 'options' => array( 'on' => esc_html__( 'Yes', 'divi-plus' ), 'off' => esc_html__( 'No', 'divi-plus' ), ), 'default' => 'off', 'show_if' => array( 'enable_member_link' => 'on', 'use_popup' => 'on', 'popup_bar_layout' => 'layout1', 'popup_use_stripes' => 'on', ), 'tab_slug' => 'advanced', 'toggle_slug' => 'popup_element_settings', 'sub_toggle' => 'skills_setting', 'description' => esc_html__( 'Here you can choose whether to use animated striped bar or not.', 'divi-plus' ), ), 'popup_animation_speed' => array( 'label' => esc_html__( 'Animation Speed', 'divi-plus' ), 'type' => 'range', 'option_category' => 'layout', 'range_settings' => array( 'min' => '1', 'max' => '10', 'step' => '1', ), 'unitless' => true, 'default' => '1', 'default_on_front' => '1', 'show_if' => array( 'enable_member_link' => 'on', 'use_popup' => 'on', 'popup_bar_layout' => 'layout1', 'popup_use_stripes' => 'on', 'popup_use_animated_stripes' => 'on', ), 'tab_slug' => 'advanced', 'toggle_slug' => 'popup_element_settings', 'sub_toggle' => 'skills_setting', 'description' => esc_html__( 'Here you can select the animation speed in seconds.', 'divi-plus' ), ), 'popup_skill_bar_height' => array( 'label' => esc_html__( 'Bar Height', 'divi-plus' ), 'type' => 'range', 'option_category' => 'font_option', 'range_settings' => array( 'min' => '1', 'max' => '30', 'step' => '1', ), 'mobile_options' => true, 'default' => '12px', 'show_if' => array( 'enable_member_link' => 'on', 'use_popup' => 'on' ), 'tab_slug' => 'advanced', 'toggle_slug' => 'popup_element_settings', 'sub_toggle' => 'skills_setting', 'description' => esc_html__( 'Move the slider or input the value to increase or decrease skills bar height.', 'divi-plus' ), ), 'popup_empty_bar_color' => array( 'label' => esc_html__( 'Empty Bar Color', 'divi-plus' ), 'type' => 'color-alpha', 'custom_color' => true, 'hover' => 'tabs', 'default' => '#ccc', 'show_if' => array( 'enable_member_link' => 'on', 'use_popup' => 'on' ), 'tab_slug' => 'advanced', 'toggle_slug' => 'popup_element_settings', 'sub_toggle' => 'skills_setting', 'description' => esc_html__( 'Here you can choose a custom color to be used for the empty skills bar.', 'divi-plus' ), ), 'popup_filled_bar_color' => array( 'label' => esc_html__( 'Filled Bar Color', 'divi-plus' ), 'type' => 'color-alpha', 'custom_color' => true, 'hover' => 'tabs', 'default' => '#0c71c3', 'show_if' => array( 'enable_member_link' => 'on', 'use_popup' => 'on' ), 'tab_slug' => 'advanced', 'toggle_slug' => 'popup_element_settings', 'sub_toggle' => 'skills_setting', 'description' => esc_html__( 'Here you can choose a custom color to be used for the filled skills bar.', 'divi-plus' ), ), 'popup_social_icon_size' => array( 'label' => esc_html__( 'Popup Icon Size', 'divi-plus' ), 'type' => 'range', 'option_category' => 'font_option', 'range_settings' => array( 'min' => '1', 'max' => '100', 'step' => '1', ), 'mobile_options' => true, 'default' => '16px', 'default_on_front' => '16px', 'show_if' => array( 'enable_member_link' => 'on', 'use_popup' => 'on' ), 'tab_slug' => 'advanced', 'toggle_slug' => 'popup_element_settings', 'sub_toggle' => 'social_setting', 'description' => esc_html__( 'Move the slider or input the value to increase or decrease team member social icon size.', 'divi-plus' ), ), 'popup_social_icon_color' => array( 'label' => esc_html__( 'Popup Icon Color', 'divi-plus' ), 'type' => 'color-alpha', 'custom_color' => true, 'hover' => 'tabs', 'show_if' => array( 'enable_member_link' => 'on', 'use_popup' => 'on' ), 'tab_slug' => 'advanced', 'toggle_slug' => 'popup_element_settings', 'sub_toggle' => 'social_setting', 'description' => esc_html__( 'Here you can choose a custom color to be used for the social icon.', 'divi-plus' ), 'computed_affects' => array( '__team_grid_data', ), ), 'popup_social_icon_background_color' => array( 'label' => esc_html__( 'Popup Icon Background Color', 'divi-plus' ), 'type' => 'color-alpha', 'custom_color' => true, 'hover' => 'tabs', 'show_if' => array( 'enable_member_link' => 'on', 'use_popup' => 'on' ), 'tab_slug' => 'advanced', 'toggle_slug' => 'popup_element_settings', 'sub_toggle' => 'social_setting', 'description' => esc_html__( 'Here you can choose a custom color to be used for the social icon background.', 'divi-plus' ), ), 'popup_social_icon_alignment' => array( 'label' => esc_html__( 'Popup Social Icon Alignment', 'divi-plus' ), 'type' => 'select', 'option_category' => 'layout', 'options' => array( 'dipl_icon_left' => esc_html__( 'Left', 'divi-plus' ), 'dipl_icon_center' => esc_html__( 'Center', 'divi-plus' ), 'dipl_icon_right' => esc_html__( 'Right', 'divi-plus' ), ), 'show_if' => array( 'enable_member_link' => 'on', 'use_popup' => 'on' ), 'default' => 'dipl_icon_left', 'tab_slug' => 'advanced', 'toggle_slug' => 'popup_element_settings', 'sub_toggle' => 'social_setting', 'description' => esc_html__( 'Here you can select the placement for the social icons.', 'divi-plus' ), ), '__team_slider_data' => array( 'type' => 'computed', 'computed_callback' => array( 'DIPL_TeamSlider', 'get_team_members' ), 'computed_depends_on' => array( 'posts_number', 'post_order', 'post_order_by', 'include_categories', 'show_short_desc', 'show_designation', 'show_social_icon', 'social_icon_link_target', 'show_skills', 'slider_layout', 'name_level', 'designation_level', 'enable_member_link', 'link_type', 'link_target', 'use_popup', 'custom_link_button', 'link_button_icon', 'link_button_text', ), ), ); $team_slider_fields = array_merge( $team_slider_fields, $this->generate_background_options( 'slide_bg', 'skip', 'general', 'background', 'slide_bg_color' ) ); return $team_slider_fields; } public static function get_team_members( $attrs = array(), $conditional_tags = array(), $current_page = array() ) { if ( self::$rendering ) { // We are trying to render a Blog module while a Blog module is already being rendered // which means we have most probably hit an infinite recursion. While not necessarily // the case, rendering a post which renders a Blog module which renders a post // which renders a Blog module is not a sensible use-case. return ''; } global $wp_filter, $et_fb_processing_shortcode_object, $et_pb_rendering_column_content; /* * Cached $wp_filter so it can be restored at the end of the callback. * This is needed because this callback uses the_content filter / calls a function * which uses the_content filter. WordPress doesn't support nested filter */ $wp_filter_cache = $wp_filter; $global_processing_original_value = $et_fb_processing_shortcode_object; $defaults = array( 'posts_number' => '10', 'post_order' => 'DESC', 'post_order_by' => 'date', 'include_categories' => '', 'slider_layout' => 'layout1', 'show_short_desc' => 'on', 'show_designation' => 'on', 'show_social_icon' => 'on', 'social_icon_link_target' => 'off', 'show_skills' => 'on', 'name_level' => 'h2', 'designation_level' => 'h4', 'enable_member_link' => 'off', 'link_type' => 'item', 'link_target' => 'off', 'use_popup' => 'off', 'custom_link_button' => 'off', 'link_button_icon' => '', 'link_button_text' => esc_html__( 'Read more', 'divi-plus' ) ); // WordPress' native conditional tag is only available during page load. It'll fail during component update because // et_pb_process_computed_property() is loaded in admin-ajax.php. Thus, use WordPress' conditional tags on page load and // rely to passed $conditional_tags for AJAX call. $is_front_page = (bool) et_fb_conditional_tag( 'is_front_page', $conditional_tags ); $is_single = (bool) et_fb_conditional_tag( 'is_single', $conditional_tags ); $is_user_logged_in = (bool) et_fb_conditional_tag( 'is_user_logged_in', $conditional_tags ); $current_post_id = isset( $current_page['id'] ) ? (int) $current_page['id'] : 0; $attrs = wp_parse_args( $attrs, $defaults ); foreach ( $defaults as $key => $default ) { ${$key} = esc_html( et_()->array_get( $attrs, $key, $default ) ); } $processed_name_level = et_pb_process_header_level( $name_level, 'h2' ); $processed_name_level = esc_html( $processed_name_level ); $processed_designation_level = et_pb_process_header_level( $designation_level, 'h4' ); $processed_designation_level = esc_html( $processed_designation_level ); $args = array( 'post_type' => 'dipl-team-member', 'posts_per_page' => intval( $posts_number ), 'post_status' => 'publish', 'orderby' => 'date', 'order' => 'DESC', ); if ( is_user_logged_in() ) { $args['post_status'] = array( 'publish', 'private' ); } if ( '' !== $include_categories ) { $args['tax_query'] = array( array( 'taxonomy' => 'dipl-team-member-category', 'field' => 'term_id', 'terms' => array_map( 'intval', explode( ',', $include_categories ) ), 'operator' => 'IN', ) ); } if ( isset( $post_order_by ) && '' !== $post_order_by ) { $args['orderby'] = sanitize_text_field( $post_order_by ); } if ( isset( $post_order ) && '' !== $post_order ) { $args['order'] = sanitize_text_field( $post_order ); } global $wp_the_query; $query_backup = $wp_the_query; $query = new WP_Query( $args ); self::$rendering = true; $output_array = array(); if ( $query->have_posts() ) { $wrapper_class = array( 'dipl_team_member_card' ); if ( 'on' === $enable_member_link && 'item' === $link_type ) { if ( 'on' === $use_popup ) { $wrapper_class[] = 'dipl_team_popup'; } else { $wrapper_class[] = 'dipl_team_link'; } } while ( $query->have_posts() ) { $query->the_post(); $post_id = intval( get_the_ID() ); $member_name = esc_html( get_the_title( $post_id ) ); $has_member_image = has_post_thumbnail( $post_id ); $meta_fields = get_post_meta( $post_id ); $skill_bar = ''; $output = ''; if ( 'on' === $show_skills && '' !== $meta_fields['dipl_team_member_skills'][0] && '' !== $meta_fields['dipl_team_member_skills_value'][0] ) { $team_skills = explode( ',', $meta_fields['dipl_team_member_skills'][0] ); $team_skills_value = explode( ',', $meta_fields['dipl_team_member_skills_value'][0] ); for ( $i = 0; $i < count( $team_skills ); $i++ ) { $filled_bar_size = $team_skills_value[ $i ] . '%'; $skill_bar .= sprintf( '
', $team_skills[ $i ], $filled_bar_size ); } } $member_name = ''; if ( '' !== $member_name ) { $member_name = sprintf( '