* @link https://www.elicus.com/ * @copyright 2023 Elicus Technologies Private Limited * @version 1.9.15 */ class DIPL_TeamGrid extends ET_Builder_Module { public $slug = 'dipl_team_grid'; 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 Grid', 'divi-plus' ); $this->main_css_element = '%%order_class%%'; add_filter( 'et_builder_processed_range_value', array( $this, 'dipl_builder_processed_range_value' ), 10, 3 ); } 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' ), ), 'pagination' => array( 'title' => esc_html__( 'Pagination', 'divi-plus' ), ), ), ), 'advanced' => array( 'toggles' => array( 'layout_settings' => array( 'title' => esc_html__( 'Layout', 'divi-plus' ), ), 'name_settings' => array( 'title' => esc_html__( 'Name', 'divi-plus' ), ), 'designation_settings' => array( 'title' => esc_html__( 'Designation', 'divi-plus' ), ), 'short_description_settings' => array( 'title' => esc_html__( 'Short Description', 'divi-plus' ), ), 'social_icon_settings' => array( 'title' => esc_html__( 'Social Icons', 'divi-plus' ), ), 'filter_cat_settings' => array( 'title' => esc_html__( 'Filter Category', 'divi-plus' ), 'sub_toggles' => array( 'normal' => array( 'name' => esc_html__( 'Normal', 'divi-plus' ), ), 'active' => array( 'name' => esc_html__( 'Active', 'divi-plus' ), ), ), 'tabbed_subtoggles' => true, ), '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, ), 'pagination' => array( 'title' => esc_html__( 'Pagination', 'divi-plus' ), ), 'loader' => array( 'title' => esc_html__( 'Loader', 'divi-plus' ), ), ), ), ); } public function get_advanced_fields_config() { return array( 'fonts' => array( 'name' => array( 'label' => esc_html__( '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%% .dipl_team_member_name', 'important' => 'all', ), 'header_level' => array( 'default' => 'h5', ), 'tab_slug' => 'advanced', 'toggle_slug' => 'name_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', ), 'designation' => array( 'label' => esc_html__( '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%% .dipl_team_member_designation', 'important' => 'all', ), 'tab_slug' => 'advanced', 'toggle_slug' => 'designation_settings', 'depends_on' => array( 'show_designation' ), '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', ), 'short_description' => array( 'label' => esc_html__( 'Short 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%% .dipl_team_member_short_desc, %%order_class%% .dipl_team_member_short_desc a', 'important' => 'all', ), 'tab_slug' => 'advanced', 'toggle_slug' => 'short_description_settings', 'depends_on' => array( 'show_short_desc' ), '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', ), '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', ), 'category' => array( 'label' => esc_html__( 'Category', 'divi-plus' ), 'font_size' => array( 'default' => '16px', '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, ), 'text_color' => array( 'default' => '#fff', ), 'hide_text_align' => true, 'css' => array( 'main' => "%%order_class%% .dipl-team-items-categories li", 'color' => "%%order_class%% .dipl-team-items-categories li", 'important' => 'all', ), 'toggle_slug' => 'filter_cat_settings', 'sub_toggle' => 'normal', 'tab_slug' => 'advanced', 'depends_on' => array( 'filterable_team' ), 'depends_show_if' => 'on', ), 'active_category' => array( 'label' => esc_html__( 'Active Category', 'divi-plus' ), 'font_size' => array( 'default' => '16px', '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, ), 'text_color' => array( 'default' => '#000', ), 'hide_text_align' => true, 'css' => array( 'main' => "%%order_class%% .dipl-team-items-categories li.dipl-team-active-category, %%order_class%% .dipl-team-mobile-active-category", 'color' => "%%order_class%% .dipl-team-items-categories li.dipl-team-active-category, %%order_class%% .dipl-team-mobile-active-category", 'important' => 'all', ), 'depends_on' => array( 'filterable_team' ), 'depends_show_if' => 'on', 'toggle_slug' => 'filter_cat_settings', 'sub_toggle' => 'active', 'tab_slug' => 'advanced', ), 'loader_icon_text' => array( 'label' => esc_html__( 'Loader Icon', 'divi-plus' ), 'font_size' => array( 'default' => '36px', 'range_settings' => array( 'min' => '1', 'max' => '100', 'step' => '1', ), 'validate_unit' => true, ), 'text_color' => array( 'default' => '#000', ), 'hide_font' => true, 'hide_text_shadow' => true, 'hide_text_align' => true, 'hide_line_height' => true, 'hide_letter_spacing' => true, 'css' => array( 'main' => "{$this->main_css_element} .dipl_team_lightbox_loader:after", 'important' => 'all', ), 'tab_slug' => 'advanced', 'toggle_slug' => 'loader', ), ), 'button' => array( 'link_button' => array( 'label' => esc_html__( '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( 'use_button' ), 'depends_show_if' => 'on', ), ), 'grid_margin_padding' => array( 'team_member_grid' => array( 'margin_padding' => array( 'css' => array( 'use_margin' => false, 'padding' => '%%order_class%% .dipl_team_grid_item', 'important' => 'all', ), ), ), 'team_content' => array( 'margin_padding' => array( 'css' => array( 'use_margin' => false, 'padding' => '%%order_class%% .dipl_team_content_wrapper, %%order_class%% .dipl_team_overlay_wrapper', 'important' => 'all', ), ), ), 'popup' => array( 'margin_padding' => array( 'css' => array( 'use_margin' => false, 'padding' => '%%order_class%%_lightbox .dipl_team_member_wrapper_lightbox', 'important' => 'all', ), ), ), ), 'margin_padding' => array( 'css' => array( 'main' => $this->main_css_element, 'important' => 'all', ), ), 'borders' => array( 'team_member_border' => array( 'css' => array( 'main' => array( 'border_radii' => '%%order_class%% .dipl_team_grid_item', 'border_styles' => '%%order_class%% .dipl_team_grid_item', '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_team_member_image', 'border_styles' => '%%order_class%% .dipl_team_member_image', 'important' => 'all', ), ), 'label_prefix' => esc_html__( 'Member Image', 'divi-plus' ), 'tab_slug' => 'advanced', 'toggle_slug' => 'border', ), 'category_border' => array( 'css' => array( 'main' => array( 'border_radii' => '%%order_class%% .dipl-team-items-categories li', 'border_styles' => '%%order_class%% .dipl-team-items-categories li', 'important' => 'all', ), ), 'label_prefix' => esc_html__( 'Category', 'divi-plus' ), 'tab_slug' => 'advanced', 'toggle_slug' => 'filter_cat_settings', 'sub_toggle' => 'normal', 'depends_on' => array( 'filterable_team' ), 'depends_show_if' => 'on', ), 'active_category_border' => array( 'css' => array( 'main' => array( 'border_radii' => '%%order_class%% .dipl-team-items-categories .dipl-team-active-category', 'border_styles' => '%%order_class%% .dipl-team-items-categories .dipl-team-active-category', 'important' => 'all', ), ), 'label_prefix' => esc_html__( 'Category', 'divi-plus' ), 'tab_slug' => 'advanced', 'toggle_slug' => 'filter_cat_settings', 'sub_toggle' => 'active', 'depends_on' => array( 'filterable_team' ), 'depends_show_if' => 'on', ), '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( '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( 'bar_layout' ), 'depends_show_if' => 'layout2', ), '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__( 'Social Icon', 'divi-plus' ), 'tab_slug' => 'advanced', 'toggle_slug' => 'social_icon_settings', 'depends_on' => array( 'show_social_icon' ), 'depends_show_if' => 'on', ), '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', ), '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', ), 'default' => array( 'css' => array( 'main' => array( 'border_radii' => '%%order_class%%', 'border_styles' => '%%order_class%%', ), ), ), ), 'box_shadow' => array( 'team_member' => array( 'label' => esc_html__( 'Team Member', 'divi-plus' ), 'css' => array( 'main' => '%%order_class%% .dipl_team_grid_item', 'important' => 'all', ), 'tab_slug' => 'advanced', 'toggle_slug' => 'box_shadow', ), 'default' => array( 'css' => array( 'main' => '%%order_class%%', ), ), ), 'text' => false, 'link_options' => false, ); } public function get_fields() { $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_grid_data', ), ), 'offset_number' => array( 'label' => esc_html__( 'Offset Number', 'divi-plus' ), 'type' => 'text', 'option_category' => 'configuration', 'default' => 0, 'tab_slug' => 'general', 'toggle_slug' => 'main_content', 'description' => esc_html__( 'Choose how many team members you would like to skip. These team members will not be shown.', 'divi-plus' ), 'computed_affects' => array( '__team_grid_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_grid_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_grid_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_grid_data', ), ), 'no_result_text' => array( 'label' => esc_html__( 'No Result Text', 'divi-plus' ), 'type' => 'text', 'option_category' => 'configuration', 'default' => esc_html__( 'The team members 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_pagination' => array( 'label' => esc_html__( 'Show Pagination', 'divi-plus' ), 'type' => 'yes_no_button', 'option_category' => 'configuration', 'options' => array( 'off' => esc_html__( 'No', 'divi-plus' ), 'on' => esc_html__( 'Yes', 'divi-plus' ), ), 'default' => 'off', 'tab_slug' => 'general', 'toggle_slug' => 'pagination', 'description' => esc_html__( 'Show Pagination or not.', 'divi-plus' ), 'computed_affects' => array( '__team_grid_data', ), ), 'show_prev_next' => array( 'label' => esc_html__( 'Show Previous Next Links', 'divi-plus' ), 'type' => 'yes_no_button', 'option_category' => 'configuration', 'options' => array( 'off' => esc_html__( 'No', 'divi-plus' ), 'on' => esc_html__( 'Yes', 'divi-plus' ), ), 'show_if' => array( 'show_pagination' => 'on', ), 'default' => 'off', 'tab_slug' => 'general', 'toggle_slug' => 'pagination', 'description' => esc_html__( 'Show Previous Next Links or not.', 'divi-plus' ), ), 'next_text' => array( 'label' => esc_html__( 'Next Link Text', 'divi-plus' ), 'type' => 'text', 'option_category' => 'configuration', 'default' => 'Next', 'show_if' => array( 'show_pagination' => 'on', 'show_prev_next' => 'on', ), 'tab_slug' => 'general', 'toggle_slug' => 'pagination', 'description' => esc_html__( 'Here you can define Next Link text in numbered pagination.', 'divi-plus' ), ), 'prev_text' => array( 'label' => esc_html__( 'Prev Link Text', 'divi-plus' ), 'type' => 'text', 'option_category' => 'configuration', 'default' => 'Prev', 'show_if' => array( 'show_pagination' => 'on', 'show_prev_next' => 'on', ), 'tab_slug' => 'general', 'toggle_slug' => 'pagination', 'description' => esc_html__( 'Here you can define Previous Link text in numbered pagination.', 'divi-plus' ), ), 'grid_overlay_bg_color' => array( 'label' => esc_html__( 'Grid Overlay Background', 'divi-plus' ), 'type' => 'background-field', 'base_name' => 'grid_overlay_bg', 'context' => 'grid_overlay_bg_color', 'option_category' => 'button', 'custom_color' => true, 'background_fields' => $this->generate_background_options( 'grid_overlay_bg', 'button', 'general', 'background', 'grid_overlay_bg_color' ), 'show_if' => array( 'select_layout' => array( 'layout1', 'layout2' ), ), 'default' => 'rgba(255,255,255,0.7)', 'mobile_options' => true, 'tab_slug' => 'general', 'toggle_slug' => 'background', 'description' => esc_html__( 'Customize the overlay background style of the individual grid by adjusting the background color, gradient, and image.', 'divi-plus' ), ), 'grid_bg_color' => array( 'label' => esc_html__( 'Grid Background', 'divi-plus' ), 'type' => 'background-field', 'base_name' => 'grid_bg', 'context' => 'grid_bg_color', 'option_category' => 'button', 'custom_color' => true, 'background_fields' => $this->generate_background_options( 'grid_bg', 'button', 'general', 'background', 'grid_bg_color' ), 'show_if' => array( 'select_layout' => array( 'layout2', 'layout3', 'layout4' ), ), 'mobile_options' => true, 'tab_slug' => 'general', 'toggle_slug' => 'background', 'description' => esc_html__( 'Customize the overlay background style of the individual grid by adjusting the background color, gradient, and image.', 'divi-plus' ), ), 'filterable_team' => array( 'label' => esc_html__( 'Filterable Team', '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' => 'elements', 'affects' => array( 'category_font', 'category_font_size', 'category_line_height', 'category_letter_spacing', 'category_text_align', 'category_text_color', 'category_text_shadow', 'category_text_shadow_style', 'active_category_font', 'active_category_font_size', 'active_category_line_height', 'active_category_letter_spacing', 'active_category_text_align', 'active_category_text_color', 'active_category_text_shadow', 'active_category_text_shadow_style', ), 'computed_affects' => array( '__team_grid_data', ), ), 'show_all_link' => array( 'label' => esc_html__( 'Show All 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' => 'on', 'show_if' => array( 'filterable_team' => '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_grid_data', ), ), 'all_link_text' => array( 'label' => esc_html__( 'All Link Text', 'divi-plus' ), 'type' => 'text', 'option_category' => 'configuration', 'default' => esc_html__( 'All', 'divi-plus' ), 'show_if' => array( 'filterable_team' => 'on', ), 'tab_slug' => 'general', 'toggle_slug' => 'main_content', 'description' => esc_html__( 'Here you can define custom all link text.', 'divi-plus' ), 'computed_affects' => array( '__team_grid_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' ), ), 'affects' => array( 'designation_font', 'designation_font_size', 'designation_line_height', 'designation_letter_spacing', 'designation_text_align', 'designation_text_color', 'designation_text_shadow', 'designation_text_shadow_style', ), '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_grid_data', ), ), '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' ), ), 'affects' => array( 'short_description_font', 'short_description_font_size', 'short_description_line_height', 'short_description_letter_spacing', 'short_description_text_align', 'short_description_text_color', 'short_description_text_shadow', 'short_description_text_shadow_style', ), '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_grid_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' ), ), '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', ), 'default' => 'on', 'tab_slug' => 'general', 'toggle_slug' => 'elements', 'description' => esc_html__( 'Here you can select whether or not to display social icons on the grid.', 'divi-plus' ), 'computed_affects' => array( '__team_grid_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_grid_data', ), ), 'image_size' => array( 'label' => esc_html__( 'Image Size', 'divi-plus' ), 'type' => 'select', 'option_category' => 'configuration', 'options' => array( 'thumbnail' => esc_html__( 'Thumbnail', 'divi-plus' ), 'medium' => esc_html__( 'Medium', 'divi-plus' ), 'large' => esc_html__( 'Large', 'divi-plus' ), 'full' => esc_html__( 'Full', 'divi-plus' ), ), 'default' => 'medium', 'tab_slug' => 'general', 'toggle_slug' => 'elements', 'description' => esc_html__( 'Here you can select the size of team image.', 'divi-plus' ), 'computed_affects' => array( '__team_grid_data', ), ), 'image_zoom' => array( 'label' => esc_html__( 'Image Zoom on Hover', 'divi-plus' ), 'type' => 'yes_no_button', 'option_category' => 'configuration', 'options' => array( 'off' => esc_html__( 'No', 'divi-plus' ), 'on' => esc_html__( 'Yes', 'divi-plus' ), ), 'default' => 'on', 'tab_slug' => 'general', 'toggle_slug' => 'elements', 'description' => esc_html__( 'Here you can choose whether or not the zoom image on hover.', 'divi-plus' ), ), 'onclick_trigger' => array( 'label' => esc_html__( 'OnClick Trigger', 'divi-plus' ), 'type' => 'select', 'option_category' => 'layout', 'options' => array( 'do_nothing' => esc_html__( 'Do Nothing', 'divi-plus' ), 'open_popup' => esc_html__( 'Open Popup', 'divi-plus' ), 'open_link' => esc_html__( 'Open Link', 'divi-plus' ), ), 'default' => 'do_nothing', 'tab_slug' => 'general', 'toggle_slug' => 'elements', 'description' => esc_html__( 'Here you can select the onclick trigger event.', 'divi-plus' ), 'computed_affects' => array( '__team_grid_data', ), ), 'use_button' => array( 'label' => esc_html__( 'Use Button', 'divi-plus' ), 'type' => 'yes_no_button', 'option_category' => 'configuration', 'options' => array( 'off' => esc_html__( 'No', 'divi-plus' ), 'on' => esc_html__( 'Yes', 'divi-plus' ), ), 'default' => 'off', 'show_if_not' => array( 'onclick_trigger' => 'do_nothing', ), 'tab_slug' => 'general', 'toggle_slug' => 'elements', 'description' => esc_html__( 'Enable this to show button and perform action on it instead of whole item.', 'divi-plus' ), 'computed_affects' => array( '__team_grid_data', ), ), 'button_text' => array( 'label' => esc_html__( 'Button Text', 'divi-plus' ), 'type' => 'text', 'option_category' => 'configuration', 'default' => esc_html__( 'Read more', 'divi-plus' ), 'show_if_not' => array( 'onclick_trigger' => 'do_nothing', ), 'show_if' => array( 'use_button' => 'on' ), 'tab_slug' => 'general', 'toggle_slug' => 'elements', 'description' => esc_html__( 'Here you can define the value of number of members you would like to display.', 'divi-plus' ), 'computed_affects' => array( '__team_grid_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( 'onclick_trigger' => 'open_link', ), 'tab_slug' => 'general', 'toggle_slug' => 'elements', '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_grid_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( 'onclick_trigger' => 'open_popup', ), 'default' => 'on|on|on|on|on', 'tab_slug' => 'general', 'toggle_slug' => 'elements', 'description' => esc_html__( 'Here you can choose whether or not to show extra fields in popup state.', 'divi-plus' ), ), 'select_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' ), 'layout3' => esc_html__( 'Layout 3', 'divi-plus' ), 'layout4' => esc_html__( 'Layout 4', 'divi-plus' ), ), 'default' => 'layout1', 'tab_slug' => 'advanced', 'toggle_slug' => 'layout_settings', 'description' => esc_html__( 'Here you can select the team grid layout.', 'divi-plus' ), 'computed_affects' => array( '__team_grid_data', ), ), 'number_of_columns' => array( 'label' => esc_html__( 'Columns', 'divi-plus' ), 'type' => 'select', 'option_category' => 'layout', 'options' => array( '1' => esc_html( '1' ), '2' => esc_html( '2' ), '3' => esc_html( '3' ), '4' => esc_html( '4' ), '5' => esc_html( '5' ), '6' => esc_html( '6' ), ), 'default' => '4', 'mobile_options' => true, 'tab_slug' => 'advanced', 'toggle_slug' => 'layout_settings', 'description' => esc_html__( 'Here you can select the team grid column.', 'divi-plus' ), ), 'column_spacing' => array( 'label' => esc_html__( 'Column Spacing', 'divi-plus' ), 'type' => 'range', 'option_category' => 'layout', 'range_settings' => array( 'min' => '0', 'max' => '100', 'step' => '1', ), 'fixed_unit' => 'px', 'fixed_range' => true, 'validate_unit' => true, 'mobile_options' => true, 'default' => '15px', 'default_on_front' => '15px', 'tab_slug' => 'advanced', 'toggle_slug' => 'layout_settings', 'description' => esc_html__( 'Increase or decrease spacing between columns.', 'divi-plus' ), ), 'team_member_grid_custom_padding' => array( 'label' => esc_html__( 'Grid Padding', 'divi-plus' ), 'type' => 'custom_padding', 'option_category' => 'layout', 'mobile_options' => true, 'hover' => false, 'default' => '', '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_content_custom_padding' => array( 'label' => esc_html__( 'Content Padding', 'divi-plus' ), 'type' => 'custom_padding', 'option_category' => 'layout', 'mobile_options' => true, 'hover' => false, 'default' => '20px|20px|20px|20px|on|on', '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' ), 'computed_affects' => array( '__team_grid_data', ), ), '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', ), 'show_if' => array( 'show_social_icon' => 'on', ), 'mobile_options' => true, 'default' => '14px', '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', 'show_if' => array( 'show_social_icon' => 'on', ), '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' ), 'computed_affects' => array( '__team_grid_data', ), ), 'social_icon_background_color' => array( 'label' => esc_html__( 'Icon Background Color', 'divi-plus' ), 'type' => 'color-alpha', 'custom_color' => true, 'hover' => 'tabs', 'show_if' => array( 'show_social_icon' => 'on', ), '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' ), ), 'show_if' => array( 'show_social_icon' => 'on', ), 'default' => 'dipl_icon_left', 'tab_slug' => 'advanced', 'toggle_slug' => 'social_icon_settings', 'description' => esc_html__( 'Here you can select the placement for the social icons.', 'divi-plus' ), 'computed_affects' => array( '__team_grid_data', ), ), 'category_background_color' => array( 'label' => esc_html__( 'Category Background', 'divi-plus' ), 'type' => 'background-field', 'base_name' => 'category_background', 'context' => 'category_background_color', 'option_category' => 'button', 'custom_color' => true, 'background_fields' => $this->generate_background_options( "category_background", 'button', 'general', 'filter_cat_settings', 'category_background_color' ), 'mobile_options' => true, 'default' => '#000', 'show_if' => array( 'filterable_team' => 'on', ), 'tab_slug' => 'advanced', 'toggle_slug' => 'filter_cat_settings', 'sub_toggle' => 'normal', 'description' => esc_html__( 'Adjust the background style of the category by customizing the background color, gradient, and image.' ), ), 'active_category_background_color' => array( 'label' => esc_html__( 'Active Category Background', 'divi-plus' ), 'type' => 'background-field', 'base_name' => 'active_category_background', 'context' => 'active_category_background_color', 'option_category' => 'button', 'custom_color' => true, 'background_fields' => $this->generate_background_options( "active_category_background", 'button', 'general', 'filter_cat_settings', 'active_category_background_color' ), 'mobile_options' => true, 'default' => 'transparent', 'show_if' => array( 'filterable_team' => 'on', ), 'tab_slug' => 'advanced', 'toggle_slug' => 'filter_cat_settings', 'sub_toggle' => 'active', 'description' => esc_html__( 'Adjust the background style of the active category by customizing the background color, gradient, and image.' ), ), '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', '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', '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', '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' ), ), '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' ), ), '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', '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' ), ), '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( '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' ), ), 'stripe_color' => array( 'label' => esc_html__( 'Stripe Color', 'divi-plus' ), 'type' => 'color-alpha', 'custom_color' => true, 'show_if' => array( 'bar_layout' => 'layout1', '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' ), ), '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( 'bar_layout' => 'layout1', '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' ), ), '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( 'bar_layout' => 'layout1', 'use_stripes' => 'on', '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' ), ), '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', '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' ), ), 'empty_bar_color' => array( 'label' => esc_html__( 'Empty Bar Color', 'divi-plus' ), 'type' => 'color-alpha', 'custom_color' => true, 'hover' => 'tabs', 'default' => '#ccc', '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' ), ), 'filled_bar_color' => array( 'label' => esc_html__( 'Filled Bar Color', 'divi-plus' ), 'type' => 'color-alpha', 'custom_color' => true, 'hover' => 'tabs', 'default' => '#0c71c3', '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' ), ), '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' ), ), '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( 'onclick_trigger' => 'open_popup', ), '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', '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, '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( 'onclick_trigger' => 'open_popup', ), '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', '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' => '', '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' ), ), 'pagination_link_background_color' => array( 'label' => esc_html__( 'Pagination Link Background Color', 'divi-plus' ), 'type' => 'color-alpha', 'custom_color' => true, 'default' => 'transparent', 'hover' => 'tabs', 'show_if' => array( 'show_pagination' => 'on', ), 'tab_slug' => 'advanced', 'toggle_slug' => 'pagination', 'description' => esc_html__( 'Here you can define a custom background color for the pagination link.', 'divi-plus' ), ), 'pagination_link_color' => array( 'label' => esc_html__( 'Pagination Link Color', 'divi-plus' ), 'type' => 'color-alpha', 'custom_color' => true, 'hover' => 'tabs', 'default' => '#000', 'show_if' => array( 'show_pagination' => 'on', ), 'tab_slug' => 'advanced', 'toggle_slug' => 'pagination', 'description' => esc_html__( 'Here you can define a custom color for the pagination link.', 'divi-plus' ), ), 'active_pagination_link_background_color' => array( 'label' => esc_html__( 'Active Pagination Link Background Color', 'divi-plus' ), 'type' => 'color-alpha', 'custom_color' => true, 'default' => '#000', 'hover' => 'tabs', 'show_if' => array( 'show_pagination' => 'on', ), 'tab_slug' => 'advanced', 'toggle_slug' => 'pagination', 'description' => esc_html__( 'Here you can define a custom background color for the active pagination link.', 'divi-plus' ), ), 'active_pagination_link_color' => array( 'label' => esc_html__( 'Active Pagination Link Color', 'divi-plus' ), 'type' => 'color-alpha', 'custom_color' => true, 'default' => '#fff', 'hover' => 'tabs', 'show_if' => array( 'show_pagination' => 'on', ), 'tab_slug' => 'advanced', 'toggle_slug' => 'pagination', 'description' => esc_html__( 'Here you can define a custom color for the active pagination link.', 'divi-plus' ), ), 'loader_background_color' => array( 'label' => esc_html__( 'Loader Overlay', 'divi-plus' ), 'type' => 'color-alpha', 'custom_color' => true, 'default' => 'rgba(255, 255, 255, 0.8)', 'tab_slug' => 'advanced', 'toggle_slug' => 'loader', 'description' => esc_html__( 'Here you can choose a custom color to be used for the loader overlay.', 'divi-plus' ), ), '__team_grid_data' => array( 'type' => 'computed', 'computed_callback' => array( 'DIPL_TeamGrid', 'get_team_members' ), 'computed_depends_on' => array( 'posts_number', 'offset_number', 'post_order', 'post_order_by', 'include_categories', 'filterable_team', 'show_pagination', 'show_all_link', 'all_link_text', 'select_layout', 'show_short_desc', 'show_designation', 'show_social_icon', 'social_icon_link_target', 'link_target', 'name_level', 'image_size', 'onclick_trigger', 'use_button', 'custom_link_button', 'link_button_icon', 'button_text', 'team_content_custom_padding', 'team_content_custom_padding_tablet', 'team_content_custom_padding_phone' ), ), ); return array_merge( $fields, $this->generate_background_options( 'grid_overlay_bg', 'skip', 'general', 'background', 'grid_overlay_color' ), $this->generate_background_options( 'grid_bg', 'skip', 'general', 'background', 'grid_bg_color' ), $this->generate_background_options( 'category_background', 'skip', 'advanced', 'filter_cat_settings', 'category_background_color' ), $this->generate_background_options( 'active_category_background', 'skip', 'advanced', 'filter_cat_settings', 'active_category_background_color' ) ); return $team_grid_fields; } public static function get_team_members( $attrs = array(), $conditional_tags = array(), $current_page = array() ) { global $et_fb_processing_shortcode_object, $et_pb_rendering_column_content; 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 ''; } /* * 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 */ global $wp_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', 'offset_number' => '0', 'include_categories' => '', 'filterable_team' => 'off', 'show_pagination' => 'off', 'show_all_link' => 'on', 'all_link_text' => esc_html__( 'All', 'divi-plus' ), 'select_layout' => 'layout1', 'show_short_desc' => 'on', 'show_designation' => 'on', 'show_social_icon' => 'on', 'social_icon_link_target' => 'off', 'link_target' => 'off', 'name_level' => 'h5', 'image_size' => 'medium', 'onclick_trigger' => 'do_nothing', 'use_button' => 'off', 'button_text' => esc_html__( 'Read more', 'divi-plus' ), 'custom_link_button' => 'off', 'link_button_icon' => '', 'team_content_custom_padding' => '20px|20px|20px|20px|on|on', 'team_content_custom_padding_tablet' => '', 'team_content_custom_padding_phone' => '', ); // 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, 'h5' ); $processed_name_level = esc_html( $processed_name_level ); $args = array( 'post_type' => 'dipl-team-member', 'posts_per_page' => intval( $posts_number ), 'post_status' => 'publish', 'orderby' => 'date', 'order' => 'DESC', 'offset' => intval( $offset_number ), ); 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 = ''; if ( $query->have_posts() ) { if ( 'on' === $filterable_team ) { $data_atts = ''; $popupelements = ''; if ( file_exists( plugin_dir_path( __FILE__ ) . 'layouts/filterable-team/layout1.php' ) ) { include ( plugin_dir_path( __FILE__ ) . 'layouts/filterable-team/layout1.php' ); } } $output .= sprintf( '