*/ // Exit if accessed directly if (!defined('ABSPATH')) { exit; } require_once LEAFLET_MAP__PLUGIN_DIR . 'shortcodes/class.shortcode.php'; /** * Leaflet Line Shortcode Class */ class Leaflet_Circle_Shortcode extends Leaflet_Shortcode { /** * Get Script for Shortcode * * @param string $atts shortcode attributes * @param string $content optional * * @return string HTML */ protected function getHTML($atts='', $content=null) { if (!empty($atts)) { extract($atts, EXTR_SKIP); } $style_json = $this->LM->get_style_json($atts); $fitbounds = empty($fitbounds) ? 0 : $fitbounds; $fitbounds = filter_var($fitbounds, FILTER_VALIDATE_BOOLEAN); if (!empty($address)) { include_once LEAFLET_MAP__PLUGIN_DIR . 'class.geocoder.php'; $location = new Leaflet_Geocoder( $address ); $lat = $location->lat; $lng = $location->lng; } $lat = empty($lat) ? ( empty($y) ? '0' : $y ) : $lat; $lng = empty($lng) ? ( empty($x) ? '0' : $x ) : $lng; // validate lat/lng $lat = $this->LM->filter_float($lat); $lng = $this->LM->filter_float($lng); $radius = empty($radius) ? '1000' : $radius; $radius = $this->LM->filter_float($radius); ob_start(); ?>/*