'https://www.diviessential.com/divi-hotspot/', 'author' => 'Divi Next', 'author_uri' => 'www.divinext.com', ); public function init() { $this->name = esc_html__( 'Hotspot Item', 'dnxte-divi-essential' ); $this->settings_modal_toggles = array( 'general' => array( 'toggles' => array( 'dnxte_hotspot_elements' => esc_html__('Hotspot', 'dnxte-divi-essential'), 'dnxte_tooltip_elements' => esc_html__('Tooltip', 'dnxte-divi-essential'), 'admin_label' => array( 'title' => esc_html__("Admin Label", 'dnxte-divi-essential'), 'priority' => 100 ) ) ), 'advanced' => array( 'toggles' => array( 'dnxte_hotspot_settings' => esc_html__('Hotspot Settings', 'dnxte-divi-essential'), 'dnxte_tooltip_settings' => esc_html__('Tooltip Settings', 'dnxte-divi-essential'), 'dnxte_tooltip_text' => esc_html__('Tooltip Text', 'dnxte-divi-essential'), 'dnxte_tooltip_desc' => esc_html__('Tooltip Description', 'dnxte-divi-essential'), 'dnxte_tooltip_image' => esc_html__('Tooltip Image', 'dnxte-divi-essential') ) ), 'custom_css' => array( 'toggles' => array( 'custom_css_id' => esc_html__( 'CSS ID & Classes', 'dnxte-divi-essential' ) ) ) ); $this->custom_css_fields = array( 'hotspot_text' => array( 'label' => esc_html__('Hotspot Text', 'dnxte-divi-essential'), 'selector' => '%%order_class%% .dnxte-hostpot-hotspot__text', ), 'hotspot_icon' => array( 'label' => esc_html__('Hotspot Icon', 'dnxte-divi-essential'), 'selector' => '%%order_class%% .dnxte-hotspot_icon', ), 'tooltip_text' => array( 'label' => esc_html__('Tooltip Text', 'dnxte-divi-essential'), 'selector' => '%%order_class%% .dnxte_tooltip_text', ), 'tooltip_desc' => array( 'label' => esc_html__('Tooltip Description', 'dnxte-divi-essential'), 'selector' => '%%order_class%% .dnxte-tooltip-content', ), 'tooltip_image' => array( 'label' => esc_html__('Tooltip Image', 'dnxte-divi-essential'), 'selector' => '%%order_class%% .dnxte-tooltip-image-container', ), ); } public function get_advanced_fields_config(){ return array( 'text' => false, 'max_width' => false, 'fonts' => array( 'hotspot_text' => array( 'label' => esc_html__('Hotspot', 'dnxte-divi-essential'), 'css' => array( 'main' => "%%order_class%% .dnxte-hostpot-hotspot__text", 'important' => 'plugin-only', ), 'tab_slug' => 'advanced', 'toggle_slug' => 'dnxte_hotspot_settings', ), 'tooltip_text' => array( 'label' => esc_html__('Tooltip', 'dnxte-divi-essential'), 'css' => array( 'main' => "%%order_class%% .dnxte-hostpot-tooltip-text .dnxte_tooltip_text", 'important' => 'plugin-only', ), 'tab_slug' => 'advanced', 'toggle_slug' => 'dnxte_tooltip_text', ), 'tooltip_desc' => array( 'label' => esc_html__('Description', 'dnxte-divi-essential'), 'css' => array( 'main' => "%%order_class%% .dnxte-hostpot-tooltip-text .dnxte-tooltip-content", 'important' => 'plugin-only', ), 'tab_slug' => 'advanced', 'toggle_slug' => 'dnxte_tooltip_desc', ), ), 'borders' => array( 'default' => array( 'css' => array( 'main' => array( 'border_radii' => "%%order_class%% .dnxte-hotspot_icon", 'border_radii_hover' => '%%order_class%%:hover .dnxte-hotspot_icon', 'border_styles' => "%%order_class%% .dnxte-hotspot_icon", 'border_styles_hover' => '%%order_class%%:hover .dnxte-hotspot_icon', ), ) ), 'hotspot_child' => array( 'css' => array( 'main' => array( 'border_radii' => "%%order_class%% .dnxte-hostpot-hotspots__wrapper,%%order_class%% .dnxte-hostpot-hotspots__wrapper:before", 'border_styles' => "%%order_class%% .dnxte-hostpot-hotspots__wrapper", ), 'important' => 'all' ), 'defaults' => array( 'border_radii' => 'on|50%|50%|50%|50%', ), 'label_prefix' => esc_html__('Hotspot', 'dnxte-divi-essential'), 'toggle_slug' => 'dnxte_hotspot_settings', ), 'tooltip_text' => array( 'css' => array( 'main' => array( 'border_radii' => "%%order_class%% .dnxte-hostpot-tooltip-text .dnxte_tooltip_text", 'border_styles' => "%%order_class%% .dnxte-hostpot-tooltip-text .dnxte_tooltip_text", ), 'important' => 'all' ), 'label_prefix' => esc_html__('Text', 'dnxte-divi-essential'), 'toggle_slug' => 'dnxte_tooltip_text', ), 'tooltip_desc' => array( 'css' => array( 'main' => array( 'border_radii' => "%%order_class%% .dnxte-hostpot-tooltip-text .dnxte-tooltip-content", 'border_styles' => "%%order_class%% .dnxte-hostpot-tooltip-text .dnxte-tooltip-content", ), 'important' => 'all' ), 'toggle_slug' => 'dnxte_tooltip_desc', ), 'tooltip_img' => array( 'css' => array( 'main' => array( 'border_radii' => "%%order_class%% .dnxte-hostpot-tooltip-text img", 'border_styles' => "%%order_class%% .dnxte-hostpot-tooltip-text img", ), 'important' => 'all' ), 'toggle_slug' => 'dnxte_tooltip_image', ), ), 'box_shadow' => array( 'default' => array( 'css' => array( 'main' => "%%order_class%% .dnxte-hostpot-hotspots__wrapper" ) ), 'hotspot' => array( 'label' => esc_html__('Hotspot Box Shadow', 'dnxte-divi-essential'), 'option_category' => 'layout', 'tab_slug' => 'advanced', 'toggle_slug' => 'dnxte_hotspot_settings', 'css' => array( 'main' => '%%order_class%% .dnxte-hostpot-hotspots__wrapper', 'custom_style' => true, 'important' => 'all' ), 'default_on_fronts' => array( 'color' => '', 'position' => '', ), ), 'tooltip_text' => array( 'label' => esc_html__('Text Box Shadow', 'dnxte-divi-essential'), 'option_category' => 'layout', 'tab_slug' => 'advanced', 'toggle_slug' => 'dnxte_tooltip_text', 'css' => array( 'main' => '%%order_class%% .dnxte-hostpot-tooltip-text .dnxte_tooltip_text', 'custom_style' => true, 'important' => 'all' ), 'default_on_fronts' => array( 'color' => '', 'position' => '', ), ), 'tooltip_desc' => array( 'label' => esc_html__('Box Shadow', 'dnxte-divi-essential'), 'option_category' => 'layout', 'tab_slug' => 'advanced', 'toggle_slug' => 'dnxte_tooltip_desc', 'css' => array( 'main' => '%%order_class%% .dnxte-hostpot-tooltip-text .dnxte-tooltip-content', 'custom_style' => true, 'important' => 'all' ), 'default_on_fronts' => array( 'color' => '', 'position' => '', ), ), 'tooltip_img' => array( 'label' => esc_html__('Box Shadow', 'dnxte-divi-essential'), 'option_category' => 'layout', 'tab_slug' => 'advanced', 'toggle_slug' => 'dnxte_tooltip_image', 'css' => array( 'main' => '%%order_class%% .dnxte-hostpot-tooltip-text img', 'custom_style' => true, 'important' => 'all' ), 'default_on_fronts' => array( 'color' => '', 'position' => '', ), ), ) ); } public function get_fields() { return array( 'admin_label_text' => array( 'label' => esc_html__('Admin Label', 'dnxte-divi-essential'), 'type' => 'text', 'option_category' => 'basic_option', 'description' => esc_html__('This will change the label of the module in the builder for easy identification.', 'dnxte-divi-essential'), 'toggle_slug' => 'admin_label', ), 'tooltip_hotspot_text' => array( 'label' => esc_html__('Hotspot Text', 'dnxte-divi-essential'), 'type' => 'text', 'option_category' => 'basic_option', 'description' => esc_html__('Input Hotspot text', 'dnxte-divi-essential'), 'toggle_slug' => 'dnxte_hotspot_elements', 'dynamic_content' => 'text', ), 'tooltip_use_hotspot_icon' => array( 'label' => esc_html__('Use Icon', 'dnxte-divi-essential'), 'type' => 'yes_no_button', 'toggle_slug' => 'dnxte_hotspot_elements', 'options' => array( 'on' => esc_html__('Yes', 'dnxte-divi-essential'), 'off' => esc_html__('No', 'dnxte-divi-essential'), ), 'affects' => array( 'tooltip_hotspot_icon', 'hotspot_icon_color', 'hotspot_icon_size' ), 'default_on_front' => 'on', ), 'tooltip_hotspot_icon' => array( 'label' => esc_html__('Icon', 'dnxte-divi-essential'), 'type' => 'select_icon', 'class' => array('et-pb-font-icon'), 'default' => 'N', 'toggle_slug' => 'dnxte_hotspot_elements', 'mobile_options' => true, 'option_category' => 'basic_option', ), 'tooltip_bg' => array( 'label' => esc_html__('Background Color', 'dnxte-divi-essential'), 'type' => 'color-alpha', 'custom_color' => true, 'default' => '', 'tab_slug' => 'advanced', 'toggle_slug' => 'dnxte_tooltip_settings', 'mobile_options' => true, 'hover' => 'tabs', ), 'tooltip_position' => array( 'label' => esc_html__('Tooltip Position', 'dnxte-divi-essential'), 'type' => 'select', 'description' => esc_html__('Select the position of the tooltip', 'dnxte-divi-essential'), 'option_category' => 'basic_option', 'tab_slug' => 'advanced', 'toggle_slug' => 'dnxte_tooltip_settings', 'options' => array( 'top' => esc_html__('Top', 'dnxte-divi-essential'), 'right' => esc_html__('Right', 'dnxte-divi-essential'), 'bottom' => esc_html__('Bottom', 'dnxte-divi-essential'), 'left' => esc_html__('Left', 'dnxte-divi-essential'), ), 'default' => 'top', ), 'tooltip_layout' => array( 'label' => esc_html__('Tooltip Layout', 'dnxte-divi-essential'), 'type' => 'select', 'description' => esc_html__('Select the layout of the tooltip', 'dnxte-divi-essential'), 'option_category' => 'basic_option', 'tab_slug' => 'advanced', 'toggle_slug' => 'dnxte_tooltip_settings', 'options' => array( 'column' => esc_html__('Top Image, Bottom Content', 'dnxte-divi-essential'), 'column-reverse' => esc_html__('Top Content, Bottom Image', 'dnxte-divi-essential'), 'row' => esc_html__('Left Image, Right Content', 'dnxte-divi-essential'), 'row-reverse' => esc_html__('Left Content, Right Image', 'dnxte-divi-essential'), ), 'default' => 'column', ), 'tooltip_text' => array( 'label' => esc_html__('Tooltip Text', 'dnxte-divi-essential'), 'type' => 'text', 'option_category' => 'basic_option', 'description' => esc_html__('Input Tooltip text', 'dnxte-divi-essential'), 'toggle_slug' => 'dnxte_tooltip_elements', 'dynamic_content' => 'text', ), 'tooltip_content' => array( 'label' => esc_html__('Tooltip Content', 'dnxte-divi-essential'), 'type' => 'tiny_mce', 'option_category' => 'basic_option', 'description' => esc_html__('Tooltip Description goes here', 'dnxte-divi-essential'), 'toggle_slug' => 'dnxte_tooltip_elements', 'dynamic_content' => 'text' ), 'tooltip_use_image' => array( 'label' => esc_html__('Use Image', 'dnxte-divi-essential'), 'type' => 'yes_no_button', 'toggle_slug' => 'dnxte_tooltip_elements', 'options' => array( 'on' => esc_html__('Yes', 'dnxte-divi-essential'), 'off' => esc_html__('No', 'dnxte-divi-essential'), ), 'affects' => array( 'tooltip_image', 'tooltip_image_alt' ), 'default_on_front' => 'off', ), 'tooltip_image' => array( 'label' => esc_html__('Image', 'dnxte-divi-essential'), 'type' => 'upload', 'option_category' => 'basic_option', 'upload_button_text' => esc_attr__('Upload an image', 'dnxte-divi-essential'), 'choose_text' => esc_attr__('Choose an Image', 'dnxte-divi-essential'), 'update_text' => esc_attr__('Set As Image', 'dnxte-divi-essential'), 'description' => esc_html__('Upload an image to display at the top of your team person.', 'dnxte-divi-essential'), 'toggle_slug' => 'dnxte_tooltip_elements', 'dynamic_content' => 'image', 'mobile_options' => true, 'hover' => 'tabs', ), 'tooltip_image_alt' => array( 'label' => esc_html__('Image Alt', 'dnxte-divi-essential'), 'type' => 'text', 'default' => 'tooltip text', 'option_category' => 'basic_option', 'description' => esc_html__('Input image alt text', 'dnxte-divi-essential'), 'toggle_slug' => 'dnxte_tooltip_elements', 'dynamic_content' => 'text', 'mobile_options' => true, 'hover' => 'tabs', ), 'hotspot_horizontal' => array( 'label' => esc_html__('Horizontal Position', 'dnxte-divi-essential'), 'description' => esc_html__('Adjust the position of hotspot.', 'dnxte-divi-essential'), 'type' => 'range', 'option_category' => 'layout', 'tab_slug' => 'advanced', 'toggle_slug' => 'dnxte_hotspot_settings', 'allowed_units' => array('%','em', 'rem', 'px', 'cm', 'mm', 'in', 'pt', 'pc', 'ex', 'vh', 'vw'), 'default' => '50%', 'default_unit' => '%', 'default_on_front' => '50%', 'allow_empty' => true, 'range_settings' => array( 'min' => '0', 'max' => '100', 'step' => '1', ), 'mobile_options' => true, 'hover' => 'tabs', ), 'hotspot_vertical' => array( 'label' => esc_html__('Vertical Position', 'dnxte-divi-essential'), 'description' => esc_html__('Adjust the position of hotspot.', 'dnxte-divi-essential'), 'type' => 'range', 'option_category' => 'layout', 'tab_slug' => 'advanced', 'toggle_slug' => 'dnxte_hotspot_settings', 'allowed_units' => array('%', 'em', 'rem', 'px', 'cm', 'mm', 'in', 'pt', 'pc', 'ex', 'vh', 'vw'), 'default' => '20%', 'default_unit' => '%', 'default_on_front' => '20%', 'allow_empty' => true, 'range_settings' => array( 'min' => '0', 'max' => '100', 'step' => '1', ), 'mobile_options' => true, 'hover' => 'tabs', ), 'hotspot_sizing' => array( 'label' => esc_html__('Circle Width', 'dnxte-divi-essential'), 'description' => esc_html__('Adjust the width of hotspot circle.', 'dnxte-divi-essential'), 'type' => 'range', 'option_category' => 'layout', 'tab_slug' => 'advanced', 'toggle_slug' => 'dnxte_hotspot_settings', 'default' => '30', 'default_on_front' => '30', 'fixed_unit' => '', 'validate_unit' => false, 'unitless' => true, 'allow_empty' => false, 'range_settings' => array( 'min' => '0', 'max' => '1000', 'step' => '1', ), 'mobile_options' => true, ), 'hotspot_bg' => array( 'label' => esc_html__('Background Color', 'dnxte-divi-essential'), 'type' => 'color-alpha', 'custom_color' => true, 'default' => '', 'tab_slug' => 'advanced', 'toggle_slug' => 'dnxte_hotspot_settings', 'mobile_options' => true, 'hover' => 'tabs', ), 'hotspot_wave_color' => array( 'label' => esc_html__('Wave Color', 'dnxte-divi-essential'), 'type' => 'color-alpha', 'custom_color' => true, 'default' => '', 'tab_slug' => 'advanced', 'toggle_slug' => 'dnxte_hotspot_settings', 'mobile_options' => true, 'hover' => 'tabs', ), 'hotspot_icon_color' => array( 'label' => esc_html__('Icon Color', 'dnxte-divi-essential'), 'type' => 'color-alpha', 'custom_color' => true, 'default' => '#fff', 'tab_slug' => 'advanced', 'toggle_slug' => 'dnxte_hotspot_settings', 'mobile_options' => true, 'hover' => 'tabs', 'show_if' => array( 'tooltip_use_hotspot_icon' => 'on', ), ), 'hotspot_icon_size' => array( 'label' => esc_html__('Icon Size', 'dnxte-divi-essential'), 'description' => esc_html__('Adjust the size of the icon.', 'dnxte-divi-essential'), 'type' => 'range', 'option_category' => 'layout', 'tab_slug' => 'advanced', 'toggle_slug' => 'dnxte_hotspot_settings', 'allowed_units' => array('em', 'rem', 'px', 'cm', 'mm', 'in', 'pt', 'pc', 'ex', 'vh', 'vw'), 'default' => '22px', 'default_unit' => 'px', 'default_on_front' => '', 'allow_empty' => true, 'range_settings' => array( 'min' => '0', 'max' => '100', 'step' => '1', ), 'mobile_options' => true, 'hover' => 'tabs', 'show_if' => array( 'tooltip_use_hotspot_icon' => 'on', ), ), 'tooltip_width' => array( 'label' => esc_html__('Tooltip Width', 'dnxte-divi-essential'), 'description' => esc_html__('Adjust the width of tooltip.', 'dnxte-divi-essential'), 'type' => 'range', 'option_category' => 'layout', 'tab_slug' => 'advanced', 'toggle_slug' => 'dnxte_tooltip_settings', 'allowed_units' => array('%','em', 'rem', 'px', 'cm', 'mm', 'in', 'pt', 'pc', 'ex', 'vh', 'vw'), 'default' => '200px', 'default_unit' => 'px', 'default_on_front' => '200px', 'allow_empty' => true, 'range_settings' => array( 'min' => '0', 'max' => '1000', 'step' => '1', ), 'mobile_options' => true, 'hover' => 'tabs', ), 'tooltip_image_width' => array( 'label' => esc_html__('Image Width', 'dnxte-divi-essential'), 'description' => esc_html__('Adjust the width of image.', 'dnxte-divi-essential'), 'type' => 'range', 'option_category' => 'layout', 'tab_slug' => 'advanced', 'toggle_slug' => 'dnxte_tooltip_image', 'allowed_units' => array('%','em', 'rem', 'px', 'cm', 'mm', 'in', 'pt', 'pc', 'ex', 'vh', 'vw'), 'default' => '100%', 'default_unit' => '%', 'default_on_front' => '100%', 'allow_empty' => true, 'range_settings' => array( 'min' => '0', 'max' => '100', 'step' => '1', ), 'mobile_options' => true, 'hover' => 'tabs', ), 'tooltip_image_vertical' => array( 'label' => esc_html__('Image Position', 'dnxte-divi-essential'), 'type' => 'select', 'description' => esc_html__('Select the position of the Image', 'dnxte-divi-essential'), 'option_category' => 'basic_option', 'tab_slug' => 'advanced', 'toggle_slug' => 'dnxte_tooltip_image', 'options' => array( 'flex-start' => esc_html__('Top/Left', 'dnxte-divi-essential'), 'center' => esc_html__('Center', 'dnxte-divi-essential'), 'flex-end' => esc_html__('Bottom/Right', 'dnxte-divi-essential'), ), 'default' => 'center', ), 'hotspot_padding' => array( 'label' => esc_html__('Hotspot', 'dnxte-divi-essential'), 'type' => 'custom_padding', 'mobile_options' => true, 'default' => '', 'hover' => 'tabs', 'allowed_units' => array('%', 'em', 'rem', 'px', 'cm', 'mm', 'in', 'pt', 'pc', 'ex', 'vh', 'vw'), 'option_category' => 'layout', 'tab_slug' => 'advanced', 'toggle_slug' => 'margin_padding', ), 'tooltip_padding' => array( 'label' => esc_html__('Tooltip', 'dnxte-divi-essential'), 'type' => 'custom_padding', 'mobile_options' => true, 'hover' => 'tabs', 'allowed_units' => array('%', 'em', 'rem', 'px', 'cm', 'mm', 'in', 'pt', 'pc', 'ex', 'vh', 'vw'), 'option_category' => 'layout', 'tab_slug' => 'advanced', 'toggle_slug' => 'margin_padding', ), 'tooltip_text_margin' => array( 'label' => esc_html__('Tooltip Text Margin', 'dnxte-divi-essential'), 'type' => 'custom_margin', 'mobile_options' => true, 'hover' => 'tabs', 'allowed_units' => array('%', 'em', 'rem', 'px', 'cm', 'mm', 'in', 'pt', 'pc', 'ex', 'vh', 'vw'), 'option_category' => 'layout', 'tab_slug' => 'advanced', 'toggle_slug' => 'margin_padding', ), 'tooltip_text_padding' => array( 'label' => esc_html__('Tooltip Text Padding', 'dnxte-divi-essential'), 'type' => 'custom_padding', 'mobile_options' => true, 'hover' => 'tabs', 'allowed_units' => array('%', 'em', 'rem', 'px', 'cm', 'mm', 'in', 'pt', 'pc', 'ex', 'vh', 'vw'), 'option_category' => 'layout', 'tab_slug' => 'advanced', 'toggle_slug' => 'margin_padding', ), 'tooltip_desc_margin' => array( 'label' => esc_html__('Description Margin', 'dnxte-divi-essential'), 'type' => 'custom_margin', 'mobile_options' => true, 'hover' => 'tabs', 'allowed_units' => array('%', 'em', 'rem', 'px', 'cm', 'mm', 'in', 'pt', 'pc', 'ex', 'vh', 'vw'), 'option_category' => 'layout', 'tab_slug' => 'advanced', 'toggle_slug' => 'margin_padding', ), 'tooltip_desc_padding' => array( 'label' => esc_html__('Description Padding', 'dnxte-divi-essential'), 'type' => 'custom_padding', 'mobile_options' => true, 'hover' => 'tabs', 'allowed_units' => array('%', 'em', 'rem', 'px', 'cm', 'mm', 'in', 'pt', 'pc', 'ex', 'vh', 'vw'), 'option_category' => 'layout', 'tab_slug' => 'advanced', 'toggle_slug' => 'margin_padding', ), 'tooltip_image_margin' => array( 'label' => esc_html__('Tooltip Image Margin', 'dnxte-divi-essential'), 'type' => 'custom_margin', 'mobile_options' => true, 'hover' => 'tabs', 'allowed_units' => array('%', 'em', 'rem', 'px', 'cm', 'mm', 'in', 'pt', 'pc', 'ex', 'vh', 'vw'), 'option_category' => 'layout', 'tab_slug' => 'advanced', 'toggle_slug' => 'margin_padding', ), 'tooltip_image_padding' => array( 'label' => esc_html__('Tooltip Image Padding', 'dnxte-divi-essential'), 'type' => 'custom_padding', 'mobile_options' => true, 'hover' => 'tabs', 'allowed_units' => array('%', 'em', 'rem', 'px', 'cm', 'mm', 'in', 'pt', 'pc', 'ex', 'vh', 'vw'), 'option_category' => 'layout', 'tab_slug' => 'advanced', 'toggle_slug' => 'margin_padding', ), 'css_id' => array( 'label' => esc_html__('CSS ID', 'dnxte-divi-essential'), 'type' => 'text', 'option_category' => 'basic_option', 'description' => esc_html__('Assign a unique CSS ID to the element which can be used to assign custom CSS styles from within your child theme or from within Divi\'s custom CSS inputs.', 'dnxte-divi-essential'), 'tab_slug' => 'custom_css', 'toggle_slug' => 'custom_css_id', ), 'css_classes' => array( 'label' => esc_html__('CSS Class', 'dnxte-divi-essential'), 'type' => 'text', 'option_category' => 'basic_option', 'description' => esc_html__('Assign any number of CSS Classes to the element, Separated by spaces, which can be used to assign custom CSS styles from within your child theme or from within Divi\'s custom CSS inputs.', 'dnxte-divi-essential'), 'tab_slug' => 'custom_css', 'toggle_slug' => 'custom_css_id', ), ); } public function render( $attrs, $content, $render_slug ) { $multi_view = et_pb_multi_view_options($this); $tooltip_position = esc_attr__( $this->props['tooltip_position'], 'dnxte-divi-essential'); $hotspot_custom_id = isset( $this->props['css_id'] ) ? $this->props['css_id'] : ""; $hotspot_custom_classes = isset( $this->props['css_classes'] ) ? $this->props['css_classes'] : ""; $hotspot_text = ""; if($multi_view->has_value('tooltip_hotspot_text')) { $hotspot_text = $multi_view->render_element(array( 'tag' => 'span', 'content' => '{{tooltip_hotspot_text}}', 'attrs' => array( 'class' => 'dnxte-hostpot-hotspot__text' ) )); } $hotspot_icon = ""; if($this->props['tooltip_use_hotspot_icon'] === "on" && $multi_view->has_value('tooltip_hotspot_icon')) { $icon_css_property = array( 'selector' => '%%order_class%% .et-pb-icon.dnxte-hotspot_icon', 'class' => 'et-pb-icon dnxte-hotspot_icon', ); $hotspot_icon = Common::get_icon_html( 'tooltip_hotspot_icon', $this, $render_slug, $multi_view, $icon_css_property ); } $tooltip_text = ""; if($multi_view->has_value('tooltip_text')) { $tooltip_text = $multi_view->render_element(array( 'tag' => 'p', 'content' => '{{tooltip_text}}', 'attrs' => array( 'class' => 'dnxte_tooltip_text' ) )); } $image = ""; if($this->props['tooltip_use_image'] === 'on' && $multi_view->has_value('tooltip_image')) { $image = Common::get_image_html( 'tooltip_image', // image_slug esc_attr( $this->props['tooltip_image_alt'] ), // alt_text '', // title $multi_view, // multi_view $this // context ); $image = sprintf('