Skip to content
This repository has been archived by the owner on Sep 13, 2023. It is now read-only.

Commit

Permalink
Merge branch 'hotfix/noscriptFallback'
Browse files Browse the repository at this point in the history
  • Loading branch information
zogot committed Feb 21, 2014
2 parents feb89eb + cd3f39a commit c245af2
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion classes/Pronamic/Google/Maps/Maps.php
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ public static function getMapHtml( Pronamic_Google_Maps_Info $info ) {
$content .= sprintf( '<input type="hidden" name="pgm-info" value="%s" />', esc_attr( json_encode( $info ) ) );

$content .= sprintf( '<div class="canvas" style="width: %s; height: %s;">', $width, $height );
$content .= sprintf( ' <img src="%s" alt="" />', self::getStaticMapUrl( $info ) );
$content .= sprintf( ' <noscript><img src="%s" alt="" /></noscript>', self::getStaticMapUrl( $info ) );
$content .= sprintf( '</div>' );
} else {
$content .= sprintf( '<img src="%s" alt="" />', self::getStaticMapUrl( $info ) );
Expand Down
2 changes: 1 addition & 1 deletion pronamic-google-maps.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
Plugin URI: http://pronamic.eu/wordpress-plugins/pronamic-google-maps/
Description: This plugin makes it simple to add Google Maps to your WordPress post, pages or other custom post types.
Version: 2.2.7
Version: 2.2.8
Requires at least: 3.0
Author: Pronamic
Expand Down
5 changes: 4 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Tags: pronamic, google maps, widget, placemarker, geo, v3, api, custom types, la
Donate link: http://pronamic.eu/donate/?for=wp-plugin-pronamic-google-maps&source=wp-plugin-readme-txt
Requires at least: 3.0
Tested up to: 3.7.1
Stable tag: 2.2.7
Stable tag: 2.2.8
License: GPLv2 or later

This plugin makes it easy to add Google Maps to your WordPress post, pages or other custom post types.
Expand Down Expand Up @@ -267,6 +267,9 @@ Or througt an filter
* http://wordpress.org/support/topic/plugin-pronamic-google-maps-need-routes-too?replies=1#post-2741427
* http://wordpress.org/support/topic/plugin-pronamic-google-maps-is-it-possible-to-set-the-default-location-etc-for-post-edit-map?replies=4#post-2811858

= 2.2.8 =
* Added a <noscript> tag around the fallback static map.

= 2.2.7 =
* Fixed error on saving Pronamic Google Maps options.
* Improved support for percentage dimensions on singular maps.
Expand Down

0 comments on commit c245af2

Please sign in to comment.