From 5845a93c90258c163afba0128fff221c228abc6b Mon Sep 17 00:00:00 2001 From: bozdoz Date: Mon, 28 Aug 2017 21:00:02 -0300 Subject: [PATCH] fix to image map; added attributes from map shortcode --- class.plugin-option.php | 2 +- class.plugin-settings.php | 2 +- shortcodes/class.image-shortcode.php | 47 ++++++++++++++++++++-------- shortcodes/class.map-shortcode.php | 40 +++++++++++++---------- templates/shortcode-helper.php | 2 +- 5 files changed, 61 insertions(+), 32 deletions(-) diff --git a/class.plugin-option.php b/class.plugin-option.php index 324f5a4..2c53a35 100644 --- a/class.plugin-option.php +++ b/class.plugin-option.php @@ -36,7 +36,7 @@ function __construct ($details = array()) { } $option_filter = array( - 'default' => FILTER_SANITIZE_STRING, + 'default' => null, 'type' => FILTER_SANITIZE_STRING, 'options' => array( 'filter' => FILTER_SANITIZE_STRING, diff --git a/class.plugin-settings.php b/class.plugin-settings.php index 2990e3c..1116bc4 100644 --- a/class.plugin-settings.php +++ b/class.plugin-settings.php @@ -119,7 +119,7 @@ class Leaflet_Map_Plugin_Settings { 'css_url' => array( 'default'=>'https://unpkg.com/leaflet@%s/dist/leaflet.css', 'type' => 'text', - 'helptext' => 'Save as above.' + 'helptext' => 'Same as above.' ), 'default_attribution' => array( 'default' => "Leaflet; \r\n© OpenStreetMap contributors", diff --git a/shortcodes/class.image-shortcode.php b/shortcodes/class.image-shortcode.php index 2ba6148..d0f2485 100644 --- a/shortcodes/class.image-shortcode.php +++ b/shortcodes/class.image-shortcode.php @@ -36,29 +36,50 @@ class="leaflet-map"