";
$output .= "
';
$output .= $glow;
$output .= '
';
return $output;
}
/**
* Function that initializes settings of Ultimate Hotspot Module.
*
* @method ult_hotspot_init
*/
public function ult_hotspot_init() {
if ( function_exists( 'vc_map' ) ) {
vc_map(
array(
'name' => __( 'Hotspot', 'ultimate_vc' ),
'base' => 'ult_hotspot',
'as_parent' => array( 'only' => 'ult_hotspot_items' ),
'content_element' => true,
'show_settings_on_create' => true,
'category' => 'Ultimate VC Addons',
'icon' => 'ult_hotspot',
'class' => 'ult_hotspot',
'description' => __( 'Display Hotspot on Image.', 'ultimate_vc' ),
'params' => array(
array(
'type' => 'ult_img_single',
'class' => '',
'heading' => __( 'Select Hotspot Image', 'ultimate_vc' ),
'param_name' => 'main_img',
'value' => '',
),
array(
'type' => 'dropdown',
'class' => '',
'heading' => __( 'Image Size', 'ultimate_vc' ),
'param_name' => 'main_img_size',
'value' => array(
'Default / Full Size' => 'main_img_original',
'Custom' => 'main_img_custom',
),
),
array(
'type' => 'number',
'heading' => __( 'Image Width', 'ultimate_vc' ),
'class' => '',
'value' => '',
'suffix' => 'px',
'param_name' => 'main_img_width',
'dependency' => array(
'element' => 'main_img_size',
'value' => 'main_img_custom',
),
),
array(
'type' => 'textfield',
'heading' => __( 'Extra Class Name', 'ultimate_vc' ),
'param_name' => 'el_class',
'description' => __( 'Ran out of options? Need more styles? Write your own CSS and mention the class name here.', 'ultimate_vc' ),
),
),
'js_view' => 'ULTHotspotContainerView',
)
);
vc_map(
array(
'name' => __( 'Hotspot Item', 'ultimate_vc' ),
'base' => 'ult_hotspot_items',
'content_element' => true,
'as_child' => array( 'only' => 'ult_hotspot' ),
'icon' => 'ult_hotspot',
'class' => 'ult_hotspot',
'js_view' => 'ULTHotspotSingleView',
'is_container' => false,
'params' => array(
array(
'type' => 'ultimate_hotspot_param',
'heading' => 'Position',
'param_name' => 'hotspot_position',
),
// Hotspot Icon.
array(
'type' => 'dropdown',
'class' => '',
'heading' => __( 'Icon to display:', 'ultimate_vc' ),
'param_name' => 'icon_type',
'value' => array(
__( 'Font Icon Manager', 'ultimate_vc' ) => 'selector',
__( 'Custom Image Icon', 'ultimate_vc' ) => 'custom',
),
'description' => __( 'Use an existing font icon or upload a custom image.', 'ultimate_vc' ),
'group' => 'Icon',
),
array(
'type' => 'icon_manager',
'class' => '',
'heading' => __( 'Select Icon ', 'ultimate_vc' ),
'param_name' => 'icon',
'value' => '',
'description' => __( "Click and select icon of your choice. If you can't find the one that suits for your purpose", 'ultimate_vc' ) . ', ' . __( 'you can', 'ultimate_vc' ) . "