Changeset 3714289
- Timestamp:
- 09/26/2026 01:29:02 PM (3 weeks ago)
- Location:
- atlas-maps
- Files:
-
- 40 added
- 28 deleted
- 16 edited
- 16 copied
-
tags/1.1.0 (copied) (copied from atlas-maps/trunk )
-
tags/1.1.0/LICENSE.txt (copied) (copied from atlas-maps/trunk/LICENSE.txt ) (1 diff)
-
tags/1.1.0/THIRD_PARTY_LICENSES.txt (copied) (copied from atlas-maps/trunk/THIRD_PARTY_LICENSES.txt )
-
tags/1.1.0/admin (copied) (copied from atlas-maps/trunk/admin )
-
tags/1.1.0/admin/boxes.php (modified) (2 diffs)
-
tags/1.1.0/admin/save-post.php (modified) (3 diffs)
-
tags/1.1.0/assets (copied) (copied from atlas-maps/trunk/assets )
-
tags/1.1.0/assets/essential/index.php (copied) (copied from atlas-maps/trunk/assets/essential/index.php ) (4 diffs)
-
tags/1.1.0/assets/essential/tg-am-admin-CD3hedPfzV.js (added)
-
tags/1.1.0/assets/essential/tg-am-admin-CD3hedPfzV.min.js (added)
-
tags/1.1.0/assets/essential/tg-am-admin-CD9P5LpfXR.js (deleted)
-
tags/1.1.0/assets/essential/tg-am-admin-CD9P5LpfXR.min.js (deleted)
-
tags/1.1.0/assets/essential/tg-am-admin-E-yK4pR3wl.js (deleted)
-
tags/1.1.0/assets/essential/tg-am-admin-E-yK4pR3wl.min.js (deleted)
-
tags/1.1.0/assets/essential/tg-am-admin-EDzywgJ67T.js (added)
-
tags/1.1.0/assets/essential/tg-am-admin-EDzywgJ67T.min.js (added)
-
tags/1.1.0/assets/essential/tg-am-atlas-maps-ABLT1_VYso.css (deleted)
-
tags/1.1.0/assets/essential/tg-am-atlas-maps-ABLT1_VYso.min.css (deleted)
-
tags/1.1.0/assets/essential/tg-am-atlas-maps-ACjHuXS2xl.css (added)
-
tags/1.1.0/assets/essential/tg-am-atlas-maps-ACjHuXS2xl.min.css (added)
-
tags/1.1.0/assets/essential/tg-am-europe-CsaR3xGQeF.js (copied) (copied from atlas-maps/trunk/assets/essential/tg-am-europe-CsaR3xGQeF.js ) (1 diff)
-
tags/1.1.0/assets/essential/tg-am-europe-CsaR3xGQeF.min.js (copied) (copied from atlas-maps/trunk/assets/essential/tg-am-europe-CsaR3xGQeF.min.js ) (1 diff)
-
tags/1.1.0/assets/essential/tg-am-frontend-EBy4SceIIJ.js (added)
-
tags/1.1.0/assets/essential/tg-am-frontend-EBy4SceIIJ.min.js (added)
-
tags/1.1.0/assets/essential/tg-am-frontend-EDh8XyMriw.js (deleted)
-
tags/1.1.0/assets/essential/tg-am-frontend-EDh8XyMriw.min.js (deleted)
-
tags/1.1.0/assets/essential/tg-am-glyph-pins-ADyR5F8McX.jpg (added)
-
tags/1.1.0/assets/essential/tg-am-image-pins-ACSbIw2jAq.jpg (added)
-
tags/1.1.0/assets/essential/tg-am-mount-CDvtQwbJwW.js (deleted)
-
tags/1.1.0/assets/essential/tg-am-mount-CDvtQwbJwW.min.js (deleted)
-
tags/1.1.0/assets/essential/tg-am-mount-CVB37SQWhZ.js (added)
-
tags/1.1.0/assets/essential/tg-am-mount-CVB37SQWhZ.min.js (added)
-
tags/1.1.0/assets/essential/tg-am-pin-colors-ABVesAFSJa.jpg (added)
-
tags/1.1.0/assets/essential/tg-am-pin-sizes-AhUXrsbD0V.jpg (added)
-
tags/1.1.0/assets/essential/tg-am-pro-tooltips-CCQ2yUmKR2.js (added)
-
tags/1.1.0/assets/essential/tg-am-pro-tooltips-CCQ2yUmKR2.min.js (added)
-
tags/1.1.0/assets/essential/tg-am-pro-tooltips-C_JzKrreOg.js (deleted)
-
tags/1.1.0/assets/essential/tg-am-pro-tooltips-C_JzKrreOg.min.js (deleted)
-
tags/1.1.0/assets/essential/tg-am-state-callouts-ADIrhQC3Sl.jpg (added)
-
tags/1.1.0/assets/essential/tg-am-us-CD1olxcarW.js (copied) (copied from atlas-maps/trunk/assets/essential/tg-am-us-CD1olxcarW.js ) (1 diff)
-
tags/1.1.0/assets/essential/tg-am-us-CD1olxcarW.min.js (copied) (copied from atlas-maps/trunk/assets/essential/tg-am-us-CD1olxcarW.min.js ) (1 diff)
-
tags/1.1.0/assets/essential/tg-am-vendor-CBMAXaHyD6.js (deleted)
-
tags/1.1.0/assets/essential/tg-am-vendor-CBMAXaHyD6.min.js (deleted)
-
tags/1.1.0/assets/essential/tg-am-vendor-CeMLR-iepa.js (added)
-
tags/1.1.0/assets/essential/tg-am-vendor-CeMLR-iepa.min.js (added)
-
tags/1.1.0/assets/essential/tg-am-world-CBeweCq9be.js (copied) (copied from atlas-maps/trunk/assets/essential/tg-am-world-CBeweCq9be.js ) (1 diff)
-
tags/1.1.0/assets/essential/tg-am-world-CBeweCq9be.min.js (copied) (copied from atlas-maps/trunk/assets/essential/tg-am-world-CBeweCq9be.min.js ) (1 diff)
-
tags/1.1.0/atlas-maps.php (copied) (copied from atlas-maps/trunk/atlas-maps.php ) (2 diffs)
-
tags/1.1.0/frontend (copied) (copied from atlas-maps/trunk/frontend )
-
tags/1.1.0/frontend/shortcode.php (modified) (4 diffs)
-
tags/1.1.0/index.php (copied) (copied from atlas-maps/trunk/index.php )
-
tags/1.1.0/readme.txt (copied) (copied from atlas-maps/trunk/readme.txt ) (5 diffs)
-
tags/1.1.0/sanitize.php (added)
-
trunk/LICENSE.txt (modified) (1 diff)
-
trunk/admin/boxes.php (modified) (2 diffs)
-
trunk/admin/save-post.php (modified) (3 diffs)
-
trunk/assets/essential/index.php (modified) (4 diffs)
-
trunk/assets/essential/tg-am-admin-CBUwx3YxyT.js (deleted)
-
trunk/assets/essential/tg-am-admin-CBUwx3YxyT.min.js (deleted)
-
trunk/assets/essential/tg-am-admin-CD3hedPfzV.js (added)
-
trunk/assets/essential/tg-am-admin-CD3hedPfzV.min.js (added)
-
trunk/assets/essential/tg-am-admin-E79-Oxq9l4.js (deleted)
-
trunk/assets/essential/tg-am-admin-E79-Oxq9l4.min.js (deleted)
-
trunk/assets/essential/tg-am-admin-EDzywgJ67T.js (added)
-
trunk/assets/essential/tg-am-admin-EDzywgJ67T.min.js (added)
-
trunk/assets/essential/tg-am-atlas-maps-ABLT1_VYso.css (deleted)
-
trunk/assets/essential/tg-am-atlas-maps-ABLT1_VYso.min.css (deleted)
-
trunk/assets/essential/tg-am-atlas-maps-ACjHuXS2xl.css (added)
-
trunk/assets/essential/tg-am-atlas-maps-ACjHuXS2xl.min.css (added)
-
trunk/assets/essential/tg-am-europe-CsaR3xGQeF.js (modified) (1 diff)
-
trunk/assets/essential/tg-am-europe-CsaR3xGQeF.min.js (modified) (1 diff)
-
trunk/assets/essential/tg-am-frontend-EBy4SceIIJ.js (added)
-
trunk/assets/essential/tg-am-frontend-EBy4SceIIJ.min.js (added)
-
trunk/assets/essential/tg-am-frontend-EHsExCcmc6.js (deleted)
-
trunk/assets/essential/tg-am-frontend-EHsExCcmc6.min.js (deleted)
-
trunk/assets/essential/tg-am-glyph-pins-ADyR5F8McX.jpg (added)
-
trunk/assets/essential/tg-am-image-pins-ACSbIw2jAq.jpg (added)
-
trunk/assets/essential/tg-am-mount-CScR2kmj0g.js (deleted)
-
trunk/assets/essential/tg-am-mount-CScR2kmj0g.min.js (deleted)
-
trunk/assets/essential/tg-am-mount-CVB37SQWhZ.js (added)
-
trunk/assets/essential/tg-am-mount-CVB37SQWhZ.min.js (added)
-
trunk/assets/essential/tg-am-pin-colors-ABVesAFSJa.jpg (added)
-
trunk/assets/essential/tg-am-pin-sizes-AhUXrsbD0V.jpg (added)
-
trunk/assets/essential/tg-am-pro-tooltips-CCQ2yUmKR2.js (added)
-
trunk/assets/essential/tg-am-pro-tooltips-CCQ2yUmKR2.min.js (added)
-
trunk/assets/essential/tg-am-pro-tooltips-CDfsVut2GA.js (deleted)
-
trunk/assets/essential/tg-am-pro-tooltips-CDfsVut2GA.min.js (deleted)
-
trunk/assets/essential/tg-am-state-callouts-ADIrhQC3Sl.jpg (added)
-
trunk/assets/essential/tg-am-us-CD1olxcarW.js (modified) (1 diff)
-
trunk/assets/essential/tg-am-us-CD1olxcarW.min.js (modified) (1 diff)
-
trunk/assets/essential/tg-am-vendor-CBMAXaHyD6.js (deleted)
-
trunk/assets/essential/tg-am-vendor-CBMAXaHyD6.min.js (deleted)
-
trunk/assets/essential/tg-am-vendor-CeMLR-iepa.js (added)
-
trunk/assets/essential/tg-am-vendor-CeMLR-iepa.min.js (added)
-
trunk/assets/essential/tg-am-world-CBeweCq9be.js (modified) (1 diff)
-
trunk/assets/essential/tg-am-world-CBeweCq9be.min.js (modified) (1 diff)
-
trunk/atlas-maps.php (modified) (2 diffs)
-
trunk/frontend/shortcode.php (modified) (4 diffs)
-
trunk/readme.txt (modified) (5 diffs)
-
trunk/sanitize.php (added)
Legend:
- Unmodified
- Added
- Removed
-
atlas-maps/tags/1.1.0/LICENSE.txt
r3408451 r3714289 1 Atlas Maps 1. 0.22 Copyright (C) 202 5SC Toro Guapo SRL1 Atlas Maps 1.1.0 2 Copyright (C) 2026 SC Toro Guapo SRL 3 3 4 4 This plugin is licensed under the GNU General Public License v2.0 or later. -
atlas-maps/tags/1.1.0/admin/boxes.php
r3401884 r3714289 39 39 40 40 $meta = get_post_meta( $post_id, TG_AM_META_MAP, true ); 41 if ( ! is_array($meta) ) { 41 if ( is_array( $meta ) ) { 42 require_once TG_AM_ROOT_DIR . 'sanitize.php'; 43 $meta = tg_am_decode_legacy_map_text( $meta ); 44 } else { 42 45 $meta = array( 43 46 'code' => TG_AM_DEFAULT_MAP_CODE, … … 56 59 wp_add_inline_script( 57 60 'tg_am_admin_script', 58 'window.tg_am_data = ' . wp_json_encode( $js_data ),61 'window.tg_am_data = ' . wp_json_encode( $js_data, JSON_HEX_TAG ), 59 62 'before' 60 63 ); -
atlas-maps/tags/1.1.0/admin/save-post.php
r3401884 r3714289 2 2 3 3 if ( ! defined( 'ABSPATH' ) ) exit; 4 5 require_once TG_AM_ROOT_DIR . 'sanitize.php'; 4 6 5 7 function tg_am_save_post( $post_id ) { … … 20 22 21 23 $map = isset( $_POST['tg_am_map'] ) 22 ? map_deep( wp_unslash( $_POST['tg_am_map'] ), 'wp_kses_post')24 ? tg_am_sanitize_map( map_deep( wp_unslash( $_POST['tg_am_map'] ), 'wp_kses_post' ) ) 23 25 : null; 24 26 … … 49 51 $as_bool( $map, 'hasRegionColors' ); 50 52 $as_bool( $map, 'hasUsStateLabels' ); 53 $as_bool( $map, 'hasUsStateCallouts' ); 51 54 $as_int( $map, 'usStateLabelSizePixels' ); 55 $as_int( $map, 'pinSizePixels' ); 52 56 53 update_post_meta( $post_id, TG_AM_META_MAP, $map);57 update_post_meta( $post_id, TG_AM_META_MAP, wp_slash( $map ) ); 54 58 } -
atlas-maps/tags/1.1.0/assets/essential/index.php
r3408451 r3714289 8 8 9 9 function tg_am_asset_style_version() { 10 return '1. 0.2';10 return '1.1.0'; 11 11 } 12 12 … … 14 14 return tg_am_assets_base_url() . ( 15 15 ( defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ) 16 ? 'tg-am-admin-E 79-Oxq9l4.js'17 : 'tg-am-admin-E 79-Oxq9l4.min.js');16 ? 'tg-am-admin-EDzywgJ67T.js' 17 : 'tg-am-admin-EDzywgJ67T.min.js'); 18 18 } 19 19 … … 21 21 return tg_am_assets_base_url() . ( 22 22 ( defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ) 23 ? 'tg-am-frontend-E HsExCcmc6.js'24 : 'tg-am-frontend-E HsExCcmc6.min.js');23 ? 'tg-am-frontend-EBy4SceIIJ.js' 24 : 'tg-am-frontend-EBy4SceIIJ.min.js'); 25 25 } 26 26 … … 28 28 return tg_am_assets_base_url() . ( 29 29 ( defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ) 30 ? 'tg-am-atlas-maps-A BLT1_VYso.css'31 : 'tg-am-atlas-maps-A BLT1_VYso.min.css');30 ? 'tg-am-atlas-maps-ACjHuXS2xl.css' 31 : 'tg-am-atlas-maps-ACjHuXS2xl.min.css'); 32 32 } -
atlas-maps/tags/1.1.0/assets/essential/tg-am-europe-CsaR3xGQeF.js
r3408451 r3714289 1 1 /*! 2 * Atlas Maps 1. 0.22 * Atlas Maps 1.1.0 3 3 * License: GPLv2 or later 4 4 * License URI: https://www.gnu.org/licenses/gpl-2.0.html -
atlas-maps/tags/1.1.0/assets/essential/tg-am-europe-CsaR3xGQeF.min.js
r3408451 r3714289 1 1 /*! 2 * Atlas Maps 1. 0.2(minified)2 * Atlas Maps 1.1.0 (minified) 3 3 * Source File: assets/essential/tg-am-europe-CsaR3xGQeF.js 4 * Source Package: https://toroguapo.com/atlas-maps/source/atlas-maps-source-1. 0.2.zip4 * Source Package: https://toroguapo.com/atlas-maps/source/atlas-maps-source-1.1.0.zip 5 5 * License: GPLv2 or later 6 6 * License URI: https://www.gnu.org/licenses/gpl-2.0.html -
atlas-maps/tags/1.1.0/assets/essential/tg-am-us-CD1olxcarW.js
r3408451 r3714289 1 1 /*! 2 * Atlas Maps 1. 0.22 * Atlas Maps 1.1.0 3 3 * License: GPLv2 or later 4 4 * License URI: https://www.gnu.org/licenses/gpl-2.0.html -
atlas-maps/tags/1.1.0/assets/essential/tg-am-us-CD1olxcarW.min.js
r3408451 r3714289 1 1 /*! 2 * Atlas Maps 1. 0.2(minified)2 * Atlas Maps 1.1.0 (minified) 3 3 * Source File: assets/essential/tg-am-us-CD1olxcarW.js 4 * Source Package: https://toroguapo.com/atlas-maps/source/atlas-maps-source-1. 0.2.zip4 * Source Package: https://toroguapo.com/atlas-maps/source/atlas-maps-source-1.1.0.zip 5 5 * License: GPLv2 or later 6 6 * License URI: https://www.gnu.org/licenses/gpl-2.0.html -
atlas-maps/tags/1.1.0/assets/essential/tg-am-world-CBeweCq9be.js
r3408451 r3714289 1 1 /*! 2 * Atlas Maps 1. 0.22 * Atlas Maps 1.1.0 3 3 * License: GPLv2 or later 4 4 * License URI: https://www.gnu.org/licenses/gpl-2.0.html -
atlas-maps/tags/1.1.0/assets/essential/tg-am-world-CBeweCq9be.min.js
r3408451 r3714289 1 1 /*! 2 * Atlas Maps 1. 0.2(minified)2 * Atlas Maps 1.1.0 (minified) 3 3 * Source File: assets/essential/tg-am-world-CBeweCq9be.js 4 * Source Package: https://toroguapo.com/atlas-maps/source/atlas-maps-source-1. 0.2.zip4 * Source Package: https://toroguapo.com/atlas-maps/source/atlas-maps-source-1.1.0.zip 5 5 * License: GPLv2 or later 6 6 * License URI: https://www.gnu.org/licenses/gpl-2.0.html -
atlas-maps/tags/1.1.0/atlas-maps.php
r3424258 r3714289 4 4 * Plugin Name: Interactive World, Europe & US Maps - Atlas Maps 5 5 * Description: Build interactive world, Europe & US maps with clickable regions, tooltips and pins. Responsive map plugin for WordPress, no coding required. 6 * Version: 1. 0.36 * Version: 1.1.0 7 7 * Author: Toro Guapo 8 8 * Author URI: https://toroguapo.com/ … … 40 40 define( 'TG_AM_PLUGIN_FILE', __FILE__ ); 41 41 42 define( 'TG_AM', 'Essential' );42 define( 'TG_AM', 'Essential'); 43 43 44 44 define( 'TG_AM_SHORTCODE_MAP', 'atlas-map' ); -
atlas-maps/tags/1.1.0/frontend/shortcode.php
r3401884 r3714289 2 2 3 3 if ( ! defined( 'ABSPATH' ) ) exit; 4 5 function tg_am_json_encode_for_html_attribute( $value ) { 6 return wp_json_encode( 7 $value, 8 JSON_HEX_TAG | JSON_HEX_AMP | JSON_HEX_APOS | JSON_HEX_QUOT 9 ); 10 } 4 11 5 12 function tg_am_shortcode_atlas_map( $attrs, $content, $tag ) { … … 67 74 'hasHoverEffects' => $get_bool( 'hasHoverEffects' ), 68 75 'hasUsStateLabels' => $get_bool( 'hasUsStateLabels' ), 76 'hasUsStateCallouts' => $get_bool( 'hasUsStateCallouts' ), 69 77 'usStateLabelSizePixels' => empty( $meta['usStateLabelSizePixels'] ) 70 78 ? null 71 : $meta['usStateLabelSizePixels'] 79 : $meta['usStateLabelSizePixels'], 80 'pinSizePixels' => empty( $meta['pinSizePixels'] ) 81 ? null 82 : $meta['pinSizePixels'] 72 83 ); 73 84 … … 75 86 76 87 if ( ! empty( $meta['data'] ) && is_array( $meta['data'] ) ) { 77 $data = $meta['data']; 88 require_once TG_AM_ROOT_DIR . 'sanitize.php'; 89 $data = tg_am_decode_legacy_map_text( $meta['data'] ); 78 90 79 91 if ( ! empty( $data['__default'] ) && is_array( $data['__default'] ) ) { … … 96 108 <p 97 109 id="<?php echo esc_attr( $div_id ) ?>" 98 data-tg-am-props="<?php echo esc_attr( wp_json_encode( $props ) ) ?>"110 data-tg-am-props="<?php echo esc_attr( tg_am_json_encode_for_html_attribute( $props ) ) ?>" 99 111 ></p> 100 112 <?php -
atlas-maps/tags/1.1.0/readme.txt
r3413150 r3714289 3 3 Tags: interactive map, world map, us map, svg map, clickable maps 4 4 Requires at least: 6.5 5 Tested up to: 6.95 Tested up to: 7.1 6 6 Requires PHP: 7.0 7 Stable Tag: 1. 0.37 Stable Tag: 1.1.0 8 8 License: GPLv2 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 42 42 - Additional themes and a full theme editor to perfectly match your site. 43 43 - Per-region hover effects and color customization. 44 - Unlimited pins with configurable tooltips and shapes. 44 - Unlimited pins with configurable tooltips, colors, shapes and sizes. 45 - Pins with icons from seven icon sets: Lucide, Tabler, Phosphor (regular and filled), Font Awesome, Material Symbols and Hugeicons. 46 - Pins with your own images and logos, from the Media Library, an uploaded SVG file or a web address. 47 - US state labels, with callouts that show the small northeastern states in boxes next to the map. 45 48 - [See a live demo with all Pro features enabled](https://toroguapo.com/atlas-maps-pro). 46 49 … … 67 70 The free version lets you create up to 5 pins on any map. Each pin can have its own tooltip content and click action. 68 71 72 = Can I use icons or my own images as pins? = 73 74 Yes, with Atlas Maps Pro. Pins can show an icon from seven icon sets, including Lucide, Font Awesome and Material Symbols, or your own image from the Media Library, an uploaded SVG file or a web address. You can also choose colors for each pin and set the size of all pins or of each pin. 75 69 76 = Is Atlas Maps responsive and mobile-friendly? = 70 77 … … 89 96 == Changelog == 90 97 98 = 1.1.0 = 99 100 - Pro: pins can show an icon from seven icon sets (Lucide, Tabler, Phosphor regular and filled, Font Awesome, Material Symbols and Hugeicons), inside a pin, inside a circle or on its own. 101 - Pro: pins can show your own image from the Media Library, an uploaded SVG file or a web address. 102 - Pro: set the size of all pins on a map, or of each pin. 103 - Pro: choose colors for each pin. 104 - Pro: callouts for small states on the US map show Vermont, New Hampshire, Massachusetts, Rhode Island, Connecticut, New Jersey, Delaware, Maryland and Washington, D.C. in boxes next to the map. 105 - Pick a pin's location by clicking the map. 106 - Pro: editing a custom theme now updates every map that uses it. 107 - Fixed the free version showing and editing only the first of its 5 pins. 108 - Fixed `&` and `<` being saved as `&` and `<` in tooltips, pin names, theme names and links. Maps saved with earlier versions show correctly without saving them again. 109 - Fixed backslashes being removed from map text when saving. 110 - Tested with WordPress 7.1. 111 91 112 = 1.0.3 = 92 113 … … 96 117 97 118 - Interactive world, Europe and US maps with clickable regions, tooltips, themes and up to 5 pins. 119 120 == Upgrade Notice == 121 122 = 1.1.0 = 123 124 Fixes pins in the free version and saving text with ampersands or backslashes. Pro adds icon and image pins, pin colors and sizes, and callouts for small US states. -
atlas-maps/trunk/LICENSE.txt
r3408451 r3714289 1 Atlas Maps 1. 0.22 Copyright (C) 202 5SC Toro Guapo SRL1 Atlas Maps 1.1.0 2 Copyright (C) 2026 SC Toro Guapo SRL 3 3 4 4 This plugin is licensed under the GNU General Public License v2.0 or later. -
atlas-maps/trunk/admin/boxes.php
r3401884 r3714289 39 39 40 40 $meta = get_post_meta( $post_id, TG_AM_META_MAP, true ); 41 if ( ! is_array($meta) ) { 41 if ( is_array( $meta ) ) { 42 require_once TG_AM_ROOT_DIR . 'sanitize.php'; 43 $meta = tg_am_decode_legacy_map_text( $meta ); 44 } else { 42 45 $meta = array( 43 46 'code' => TG_AM_DEFAULT_MAP_CODE, … … 56 59 wp_add_inline_script( 57 60 'tg_am_admin_script', 58 'window.tg_am_data = ' . wp_json_encode( $js_data ),61 'window.tg_am_data = ' . wp_json_encode( $js_data, JSON_HEX_TAG ), 59 62 'before' 60 63 ); -
atlas-maps/trunk/admin/save-post.php
r3401884 r3714289 2 2 3 3 if ( ! defined( 'ABSPATH' ) ) exit; 4 5 require_once TG_AM_ROOT_DIR . 'sanitize.php'; 4 6 5 7 function tg_am_save_post( $post_id ) { … … 20 22 21 23 $map = isset( $_POST['tg_am_map'] ) 22 ? map_deep( wp_unslash( $_POST['tg_am_map'] ), 'wp_kses_post')24 ? tg_am_sanitize_map( map_deep( wp_unslash( $_POST['tg_am_map'] ), 'wp_kses_post' ) ) 23 25 : null; 24 26 … … 49 51 $as_bool( $map, 'hasRegionColors' ); 50 52 $as_bool( $map, 'hasUsStateLabels' ); 53 $as_bool( $map, 'hasUsStateCallouts' ); 51 54 $as_int( $map, 'usStateLabelSizePixels' ); 55 $as_int( $map, 'pinSizePixels' ); 52 56 53 update_post_meta( $post_id, TG_AM_META_MAP, $map);57 update_post_meta( $post_id, TG_AM_META_MAP, wp_slash( $map ) ); 54 58 } -
atlas-maps/trunk/assets/essential/index.php
r3408451 r3714289 8 8 9 9 function tg_am_asset_style_version() { 10 return '1. 0.2';10 return '1.1.0'; 11 11 } 12 12 … … 14 14 return tg_am_assets_base_url() . ( 15 15 ( defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ) 16 ? 'tg-am-admin-E 79-Oxq9l4.js'17 : 'tg-am-admin-E 79-Oxq9l4.min.js');16 ? 'tg-am-admin-EDzywgJ67T.js' 17 : 'tg-am-admin-EDzywgJ67T.min.js'); 18 18 } 19 19 … … 21 21 return tg_am_assets_base_url() . ( 22 22 ( defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ) 23 ? 'tg-am-frontend-E HsExCcmc6.js'24 : 'tg-am-frontend-E HsExCcmc6.min.js');23 ? 'tg-am-frontend-EBy4SceIIJ.js' 24 : 'tg-am-frontend-EBy4SceIIJ.min.js'); 25 25 } 26 26 … … 28 28 return tg_am_assets_base_url() . ( 29 29 ( defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ) 30 ? 'tg-am-atlas-maps-A BLT1_VYso.css'31 : 'tg-am-atlas-maps-A BLT1_VYso.min.css');30 ? 'tg-am-atlas-maps-ACjHuXS2xl.css' 31 : 'tg-am-atlas-maps-ACjHuXS2xl.min.css'); 32 32 } -
atlas-maps/trunk/assets/essential/tg-am-europe-CsaR3xGQeF.js
r3408451 r3714289 1 1 /*! 2 * Atlas Maps 1. 0.22 * Atlas Maps 1.1.0 3 3 * License: GPLv2 or later 4 4 * License URI: https://www.gnu.org/licenses/gpl-2.0.html -
atlas-maps/trunk/assets/essential/tg-am-europe-CsaR3xGQeF.min.js
r3408451 r3714289 1 1 /*! 2 * Atlas Maps 1. 0.2(minified)2 * Atlas Maps 1.1.0 (minified) 3 3 * Source File: assets/essential/tg-am-europe-CsaR3xGQeF.js 4 * Source Package: https://toroguapo.com/atlas-maps/source/atlas-maps-source-1. 0.2.zip4 * Source Package: https://toroguapo.com/atlas-maps/source/atlas-maps-source-1.1.0.zip 5 5 * License: GPLv2 or later 6 6 * License URI: https://www.gnu.org/licenses/gpl-2.0.html -
atlas-maps/trunk/assets/essential/tg-am-us-CD1olxcarW.js
r3408451 r3714289 1 1 /*! 2 * Atlas Maps 1. 0.22 * Atlas Maps 1.1.0 3 3 * License: GPLv2 or later 4 4 * License URI: https://www.gnu.org/licenses/gpl-2.0.html -
atlas-maps/trunk/assets/essential/tg-am-us-CD1olxcarW.min.js
r3408451 r3714289 1 1 /*! 2 * Atlas Maps 1. 0.2(minified)2 * Atlas Maps 1.1.0 (minified) 3 3 * Source File: assets/essential/tg-am-us-CD1olxcarW.js 4 * Source Package: https://toroguapo.com/atlas-maps/source/atlas-maps-source-1. 0.2.zip4 * Source Package: https://toroguapo.com/atlas-maps/source/atlas-maps-source-1.1.0.zip 5 5 * License: GPLv2 or later 6 6 * License URI: https://www.gnu.org/licenses/gpl-2.0.html -
atlas-maps/trunk/assets/essential/tg-am-world-CBeweCq9be.js
r3408451 r3714289 1 1 /*! 2 * Atlas Maps 1. 0.22 * Atlas Maps 1.1.0 3 3 * License: GPLv2 or later 4 4 * License URI: https://www.gnu.org/licenses/gpl-2.0.html -
atlas-maps/trunk/assets/essential/tg-am-world-CBeweCq9be.min.js
r3408451 r3714289 1 1 /*! 2 * Atlas Maps 1. 0.2(minified)2 * Atlas Maps 1.1.0 (minified) 3 3 * Source File: assets/essential/tg-am-world-CBeweCq9be.js 4 * Source Package: https://toroguapo.com/atlas-maps/source/atlas-maps-source-1. 0.2.zip4 * Source Package: https://toroguapo.com/atlas-maps/source/atlas-maps-source-1.1.0.zip 5 5 * License: GPLv2 or later 6 6 * License URI: https://www.gnu.org/licenses/gpl-2.0.html -
atlas-maps/trunk/atlas-maps.php
r3424258 r3714289 4 4 * Plugin Name: Interactive World, Europe & US Maps - Atlas Maps 5 5 * Description: Build interactive world, Europe & US maps with clickable regions, tooltips and pins. Responsive map plugin for WordPress, no coding required. 6 * Version: 1. 0.36 * Version: 1.1.0 7 7 * Author: Toro Guapo 8 8 * Author URI: https://toroguapo.com/ … … 40 40 define( 'TG_AM_PLUGIN_FILE', __FILE__ ); 41 41 42 define( 'TG_AM', 'Essential' );42 define( 'TG_AM', 'Essential'); 43 43 44 44 define( 'TG_AM_SHORTCODE_MAP', 'atlas-map' ); -
atlas-maps/trunk/frontend/shortcode.php
r3401884 r3714289 2 2 3 3 if ( ! defined( 'ABSPATH' ) ) exit; 4 5 function tg_am_json_encode_for_html_attribute( $value ) { 6 return wp_json_encode( 7 $value, 8 JSON_HEX_TAG | JSON_HEX_AMP | JSON_HEX_APOS | JSON_HEX_QUOT 9 ); 10 } 4 11 5 12 function tg_am_shortcode_atlas_map( $attrs, $content, $tag ) { … … 67 74 'hasHoverEffects' => $get_bool( 'hasHoverEffects' ), 68 75 'hasUsStateLabels' => $get_bool( 'hasUsStateLabels' ), 76 'hasUsStateCallouts' => $get_bool( 'hasUsStateCallouts' ), 69 77 'usStateLabelSizePixels' => empty( $meta['usStateLabelSizePixels'] ) 70 78 ? null 71 : $meta['usStateLabelSizePixels'] 79 : $meta['usStateLabelSizePixels'], 80 'pinSizePixels' => empty( $meta['pinSizePixels'] ) 81 ? null 82 : $meta['pinSizePixels'] 72 83 ); 73 84 … … 75 86 76 87 if ( ! empty( $meta['data'] ) && is_array( $meta['data'] ) ) { 77 $data = $meta['data']; 88 require_once TG_AM_ROOT_DIR . 'sanitize.php'; 89 $data = tg_am_decode_legacy_map_text( $meta['data'] ); 78 90 79 91 if ( ! empty( $data['__default'] ) && is_array( $data['__default'] ) ) { … … 96 108 <p 97 109 id="<?php echo esc_attr( $div_id ) ?>" 98 data-tg-am-props="<?php echo esc_attr( wp_json_encode( $props ) ) ?>"110 data-tg-am-props="<?php echo esc_attr( tg_am_json_encode_for_html_attribute( $props ) ) ?>" 99 111 ></p> 100 112 <?php -
atlas-maps/trunk/readme.txt
r3413150 r3714289 3 3 Tags: interactive map, world map, us map, svg map, clickable maps 4 4 Requires at least: 6.5 5 Tested up to: 6.95 Tested up to: 7.1 6 6 Requires PHP: 7.0 7 Stable Tag: 1. 0.37 Stable Tag: 1.1.0 8 8 License: GPLv2 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 42 42 - Additional themes and a full theme editor to perfectly match your site. 43 43 - Per-region hover effects and color customization. 44 - Unlimited pins with configurable tooltips and shapes. 44 - Unlimited pins with configurable tooltips, colors, shapes and sizes. 45 - Pins with icons from seven icon sets: Lucide, Tabler, Phosphor (regular and filled), Font Awesome, Material Symbols and Hugeicons. 46 - Pins with your own images and logos, from the Media Library, an uploaded SVG file or a web address. 47 - US state labels, with callouts that show the small northeastern states in boxes next to the map. 45 48 - [See a live demo with all Pro features enabled](https://toroguapo.com/atlas-maps-pro). 46 49 … … 67 70 The free version lets you create up to 5 pins on any map. Each pin can have its own tooltip content and click action. 68 71 72 = Can I use icons or my own images as pins? = 73 74 Yes, with Atlas Maps Pro. Pins can show an icon from seven icon sets, including Lucide, Font Awesome and Material Symbols, or your own image from the Media Library, an uploaded SVG file or a web address. You can also choose colors for each pin and set the size of all pins or of each pin. 75 69 76 = Is Atlas Maps responsive and mobile-friendly? = 70 77 … … 89 96 == Changelog == 90 97 98 = 1.1.0 = 99 100 - Pro: pins can show an icon from seven icon sets (Lucide, Tabler, Phosphor regular and filled, Font Awesome, Material Symbols and Hugeicons), inside a pin, inside a circle or on its own. 101 - Pro: pins can show your own image from the Media Library, an uploaded SVG file or a web address. 102 - Pro: set the size of all pins on a map, or of each pin. 103 - Pro: choose colors for each pin. 104 - Pro: callouts for small states on the US map show Vermont, New Hampshire, Massachusetts, Rhode Island, Connecticut, New Jersey, Delaware, Maryland and Washington, D.C. in boxes next to the map. 105 - Pick a pin's location by clicking the map. 106 - Pro: editing a custom theme now updates every map that uses it. 107 - Fixed the free version showing and editing only the first of its 5 pins. 108 - Fixed `&` and `<` being saved as `&` and `<` in tooltips, pin names, theme names and links. Maps saved with earlier versions show correctly without saving them again. 109 - Fixed backslashes being removed from map text when saving. 110 - Tested with WordPress 7.1. 111 91 112 = 1.0.3 = 92 113 … … 96 117 97 118 - Interactive world, Europe and US maps with clickable regions, tooltips, themes and up to 5 pins. 119 120 == Upgrade Notice == 121 122 = 1.1.0 = 123 124 Fixes pins in the free version and saving text with ampersands or backslashes. Pro adds icon and image pins, pin colors and sizes, and callouts for small US states.
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)