<# _.each( settings.hotspots, function( item, index ) {
var has_icon = false,
hotspotTag = 'div',
hotspotKey = view.getRepeaterSettingKey( 'hotspot', 'hotspots', index ),
wrapperKey = view.getRepeaterSettingKey( 'wrapper', 'hotspots', index ),
iconWrapperKey = view.getRepeaterSettingKey( 'icon-wrapper', 'hotspots', index ),
iconKey = view.getRepeaterSettingKey( 'icon', 'hotspots', index ),
textKey = view.getRepeaterSettingKey( 'text', 'hotspots', index ),
tooltipKey = view.getRepeaterSettingKey( 'content', 'hotspots', index ),
contentId = widgetId + '_' + item._id;
view.addRenderAttribute( wrapperKey, 'class', 'ee-hotspot__wrapper' );
view.addRenderAttribute( textKey, 'class', 'ee-hotspot__text' );
view.addRenderAttribute( tooltipKey, 'class', 'hotip-content' );
view.addRenderAttribute( tooltipKey, 'id', 'hotip-content-' + contentId );
view.addRenderAttribute( hotspotKey, {
'class' : [
'elementor-repeater-item-' + item._id,
'hotip',
'ee-hotspot',
],
'data-hotips-content' : '#hotip-content-' + contentId,
'data-hotips-position' : item.tooltip_position,
'data-hotips-arrow-position-h' : item.tooltip_arrow_position_h,
'data-hotips-arrow-position-v' : item.tooltip_arrow_position_v,
'data-hotips-class' : [
'ee-tooltip',
'ee-tooltip-' + widgetId,
],
} );
if ( 'icon' === item.hotspot && ( item.icon || item.selected_icon ) ) {
var iconHTML = elementor.helpers.renderIcon( view, item.selected_icon, { 'aria-hidden': true }, 'i' , 'object' ),
migrated = elementor.helpers.isIconMigrated( item, 'selected_icon' );
has_icon = true;
view.addRenderAttribute( iconWrapperKey, {
'class' : [
'ee-hotspot__icon',
'ee-icon',
'ee-icon-support--svg',
],
} );
if ( item.icon ) {
view.addRenderAttribute( iconKey, {
'class' : item.icon,
'aria-hidden' : 'true',
} );
}
} else {
view.addInlineEditingAttributes( textKey, 'none' );
}
if ( item._item_id ) {
view.addRenderAttribute( hotspotKey, 'id', item._item_id );
}
if ( item.css_classes ) {
view.addRenderAttribute( hotspotKey, 'class', item.css_classes );
}
if ( '' !== item.link.url ) {
hotspotTag = 'a';
view.addRenderAttribute( hotspotKey, 'href', item.link.url );
}
#><{{ hotspotTag }} {{{ view.getRenderAttributeString( hotspotKey ) }}}>
<#
if ( has_icon ) {
#><#
if ( ( migrated || ! item.icon ) && iconHTML.rendered ) {
#>{{{ iconHTML.value }}}<#
} else {
#><#
}
#><#
} else {
#>{{{ item.text }}}<#
}
#>
{{ hotspotTag }}>
{{{ item.content }}}
<# }); #>