Changeset 3035581
- Timestamp:
- 02/14/2024 11:00:32 AM (2 years ago)
- Location:
- clicksports-maps/trunk
- Files:
-
- 5 edited
-
README.txt (modified) (2 diffs)
-
admin/class-clicksports-maps-admin.php (modified) (1 diff)
-
clicksports-maps.php (modified) (2 diffs)
-
includes/class-clicksports-maps.php (modified) (1 diff)
-
public/class-clicksports-maps-public.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
clicksports-maps/trunk/README.txt
r3035064 r3035581 5 5 Requires at least: 4.8 6 6 Tested up to: 6.4 7 Stable tag: 1.3. 77 Stable tag: 1.3.8 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 90 90 == Changelog == 91 91 92 = 1.3.8 = 93 * Fixed: Added fallback for unrecognized map theme with shortcode usage. 94 * Fixed: Miscellaneous minor fixes. 95 92 96 = 1.3.7 = 93 97 * Changed: Minor additions to descriptions and translations. -
clicksports-maps/trunk/admin/class-clicksports-maps-admin.php
r2815180 r3035581 248 248 $output .= '</select>'; 249 249 250 $existingThemes = json_decode( file_get_contents('https://maps.clicksports.de/styles.json' ) );251 foreach( $existingThemes as $existingTheme ) {252 $themes[] = $existingTheme;253 }254 255 250 $output .= '<h3>' . esc_html__( 'Map Theme', 'clicksports-maps' ) . '</h3>'; 256 251 $output .= '<select name="clicksports-maps[maptheme]" class="clicksports-maps-admin-select">'; 257 252 258 253 /** 259 * Removed server-side collection of themes: 260 * 261 * foreach( $themes as $theme ) { 262 * $output .= '<option value="' . esc_attr( $theme->id ) . '" ' . selected( $theme->id, $settings['maptheme'], false ) . '>' . esc_html__( $theme->name ) . '</option>'; 263 * } 264 * 265 * @since 1.1.1 254 * @update 1.1.1 255 * Removed server-side collection of themes. 256 * --- 257 * 258 * foreach( $themes as $theme ) { 259 * $output .= '<option value="' . esc_attr( $theme->id ) . '" ' . selected( $theme->id, $settings['maptheme'], false ) . '>' . esc_html__( $theme->name ) . '</option>'; 260 * } 261 * 262 * @update 1.3.8 263 * Removed leftover code. 264 * --- 265 * 266 * $existingThemes = json_decode( file_get_contents('https://maps.clicksports.de/styles.json' ) ); 267 * foreach( $existingThemes as $existingTheme ) { 268 * $themes[] = $existingTheme; 269 * } 266 270 */ 267 271 -
clicksports-maps/trunk/clicksports-maps.php
r3035044 r3035581 16 16 * Plugin Name: CLICKSPORTS Maps 17 17 * Description: This plugin is a simple alternative to Google Maps and displays a customizable map on your website. 18 * Version: 1.3. 718 * Version: 1.3.8 19 19 * Author: CLICKSPORTS 20 20 * Author URI: https://www.clicksports.de … … 38 38 * Rename this for your plugin and update it as you release new versions. 39 39 */ 40 define( 'CLICKSPORTS_MAPS_VERSION', '1.3. 7' );40 define( 'CLICKSPORTS_MAPS_VERSION', '1.3.8' ); 41 41 42 42 /** -
clicksports-maps/trunk/includes/class-clicksports-maps.php
r3035044 r3035581 57 57 $this->version = CLICKSPORTS_MAPS_VERSION; 58 58 } else { 59 $this->version = '1.3. 7';59 $this->version = '1.3.8'; 60 60 } 61 61 $this->plugin_name = 'clicksports-maps'; -
clicksports-maps/trunk/public/class-clicksports-maps-public.php
r2815180 r3035581 316 316 } 317 317 318 /** 319 * @update 1.3.8 320 * 321 * If the map theme given in the shortcode is not one of the existing themes, 322 * we fall back to the map theme set in the global settings. 323 */ 318 324 if( isset( $atts['maptheme'] ) ) { 319 $settings['maptheme'] = $atts['maptheme']; 325 if( preg_match('/\b(basic|klokantech-basic|positron)\b/', $atts['maptheme']) ) { 326 $settings['maptheme'] = $atts['maptheme']; 327 } 320 328 } 321 329 … … 370 378 * 371 379 * @update 1.3.4 380 * 372 381 * Use of htmlspecialchars() to prevent broken strings when using link attributes with double quotes in markers. 373 382 */
Note: See TracChangeset
for help on using the changeset viewer.