*/ // Exit if accessed directly if (!defined('ABSPATH')) { exit; } require_once LEAFLET_MAP__PLUGIN_DIR . 'shortcodes/class.map-shortcode.php'; /** * Leaflet Image Shortcode Class */ class Leaflet_Image_Shortcode extends Leaflet_Map_Shortcode { /** * Get HTML for shortcode * * @param string $atts or Array * @param string $content produced by adding atts to JavaScript * * @return string HTML script */ protected function getHTML($atts='', $content=null) { extract($this->getAtts($atts)); $x = empty($x) ? 0 : $this->LM->filter_float($x); $y = empty($y) ? 0 : $this->LM->filter_float($y); /* only required field for image map (src/source) */ $src = empty($src) ? '' : $src; $source = empty($source) ? 'https://picsum.photos/1000/1000/' : $source; $source = empty($src) ? $source : $src; ob_start(); ?>/*