Plugin Directory

Changeset 961397


Ignore:
Timestamp:
08/06/2014 10:44:06 PM (12 years ago)
Author:
awerhane74
Message:

[Release 1.0.4]

Location:
easy-maps/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • easy-maps/trunk/easy-maps.php

    r961379 r961397  
    77 * Description: Enhance your posts with Google Maps.  Use the Trippy Easy Maps plugin to easily create more dynamic content.
    88 * Plugin URI:
    9  * Version:     1.0.3
     9 * Version:     1.0.4
    1010 * Author:      Team Trippy
    1111 * Author URI:  http://www.trippy.com
     
    151151    $html = str_get_html($contentBody);
    152152   
    153     if ( ! isset( $content_width ) ) {
     153    if ( ! isset( $content_width ) || $content_width == 0) {
    154154        $content_width = 640;
    155155    }
     
    162162        $content_width = round($content_width/2);
    163163    }
    164    
     164
    165165    $mapWidth = $isAdminMode ? 250 : round($content_width);
     166   
     167    if (!$mapWidth || $mapWidth == 0) {
     168        $mapWidth = 640;
     169    }
    166170   
    167171    $trippyStaticMapUrl = "http://maps.googleapis.com/maps/api/staticmap?key=AIzaSyBzXWNRqto9a4mUXUtCdwt3KLXNsSE9l_0&sensor=false&size=". $mapWidth . "x250";
  • easy-maps/trunk/readme.txt

    r961379 r961397  
    4343
    4444== Changelog ==
     45= 1.0.4 =
     46* Fixed issue with map with invalid width
     47
    4548= 1.0.3 =
    4649* Added support for Wordpress 3.5.0
Note: See TracChangeset for help on using the changeset viewer.