File "class-wpml-pp-image-hotspots.php"
Full path: /home/kosmetik/public_html/wp-content/plugins/powerpack-elements/classes/wpml/class-wpml-pp-image-hotspots.php
File
size: 1.26 B
MIME-type: text/x-php
Charset: utf-8
Download Open Edit Advanced Editor Back
<?php
class WPML_PP_Image_Hotspots extends WPML_Elementor_Module_With_Items
{
public function get_items_field()
{
return 'hot_spots';
}
public function get_fields()
{
return array('hotspot_admin_label', 'hotspot_text', 'hotspot_link' => array('url'), 'tooltip_content');
}
protected function get_title($field)
{
switch ($field) {
case 'hotspot_admin_label':
return esc_html__('Image Hotspot - Admin Label', 'powerpack');
case 'hotspot_text':
return esc_html__('Image Hotspot - Text', 'powerpack');
case 'url':
return esc_html__('Image Hotspot - Link', 'powerpack');
case 'tooltip_content':
return esc_html__('Image Hotspot - Tooltip Content', 'powerpack');
default:
return '';
}
}
protected function get_editor_type($field)
{
switch ($field) {
case 'hotspot_admin_label':
return 'LINE';
case 'hotspot_text':
return 'LINE';
case 'url':
return 'LINE';
case 'tooltip_content':
return 'VISUAL';
default:
return '';
}
}
}