HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux WebLive 5.15.0-79-generic #86-Ubuntu SMP Mon Jul 10 16:07:21 UTC 2023 x86_64
User: ubuntu (1000)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: /var/www/html/wpprm/wp-content/themes/ronneby/inc/vc_custom/dfd_vc_addons/params/param_hotspot.php
<?php
if ( ! defined( 'ABSPATH' ) ) { exit; }

if(!class_exists('Dfd_Vc_Param_Hotspot')) {
	class Dfd_Vc_Param_Hotspot {
		function __construct() {
			if(function_exists('vc_add_shortcode_param')) {
				vc_add_shortcode_param('dfd_hotspot_param', array(&$this, 'dfd_hotspot_param'), get_template_directory_uri().'/inc/vc_custom/dfd_vc_addons/admin/vc_extend/js/dfd_additional_param.js');
				add_action('admin_enqueue_scripts', array($this, 'load_assets'));
			}
		}
	
		function dfd_hotspot_param($settings, $value) {
			$value = isset($value) && !empty($value) ? $value : '';
			
			$id = uniqid('dfd_hotspot_ls_var-');
			
			$html = '<div class="dfd-hotspot-param-wrapper clearfix">';
				$html .= '<div class="dfd-hotspot-image-holder" data-popup-title="'.esc_attr__('Hotspot tooltip content', 'dfd').'" data-save-text="'.esc_attr__('Save changes', 'dfd').'" data-close-text="'.esc_attr__('Close','dfd').'"></div>';
				$html .= '<input type="hidden" id="'.esc_attr($id).'" name="'.$settings['param_name'].'" class="wpb_vc_param_value dfd_hotspot_ls_var '.$settings['param_name'].' '.$settings['type'].'_field" value=\''.$value.'\' />';
			$html .= '</div>';
			return $html;
		}
		
		function load_assets() {
			wp_enqueue_script('dfd_hotspot_param_js', get_template_directory_uri().'/inc/vc_custom/dfd_vc_addons/admin/js/jquery.hotspot.js', array('jquery'), null, true);
		}
	}
}

if(class_exists('Dfd_Vc_Param_Hotspot')) {
	$Dfd_Vc_Param_Hotspot = new Dfd_Vc_Param_Hotspot();
}