Plugin Directory

Changeset 1095269

Timestamp:
02/20/2015 03:50:18 PM (9 years ago)
Author:
pbaylies
Message:

Updated plugin to version 2.4.7; bugfix for recent Google Maps API change, replaced InfoWindow with InfoBox. Replaced geolocation service freegeoip with telize.

Location:
simplemap
Files:
1 added
22 edited
11 copied

Legend:

Unmodified
Added
Removed
  • simplemap/tags/2.4.7/classes/simplemap.php

    r809073 r1095269  
    100100
    101101                if ( !' . absint( $is_sm_search ) . ' && auto_locate == "ip" ) {
    102                     jQuery.getJSON( "http://freegeoip.net/json/?callback=?", function(location) {
     102                    // alternatively, freegeoip.net/json/
     103                    jQuery.getJSON( "http://www.telize.com/geoip/?callback=?", function(location) {
    103104                        lat = location.latitude;
    104105                        lng = location.longitude;
     
    113114                            document.getElementById("location_search_state_field").value = location.region_code;
    114115                        }
    115                         if ( document.getElementById("location_search_zip_field") ) {
     116 ) {
    116117                            document.getElementById("location_search_zip_field").value = location.zipcode;
    117118                        }
     
    12561257                }
    12571258
    1258                 var html = '<div class="markertext" style="max-width: ' + maxbubblewidth + 'px; height: ' + totalheight + 'px; overflow-y: auto; overflow-x: hidden;">';
     1259                var html = '<div class="markertext" style="max-width: ' + maxbubblewidth + 'px; height: ' + totalheight + 'px; overflow-y: auto; overflow-x: hidden;">';
    12591260                html += '<h3 style="margin-top: 0; padding-top: 0; border-top: none;">';
    12601261
     
    13641365
    13651366                html += '   </div>';
     1367
     1368
     1369
     1370
     1371
     1372
     1373
    13661374
    13671375                google.maps.event.addListener(marker, 'click', function() {
     
    13791387                    if ( infowidth < maxbubblewidth ) infowidth = maxbubblewidth;
    13801388                    infowidth = parseInt(infowidth) + 'px';
     1389
    13811390                    var infowindow = new google.maps.InfoWindow({
    13821391                        maxWidth: infowidth,
    13831392                        content: html
     1393
     1394
     1395
     1396
     1397
     1398
     1399
     1400
     1401
     1402
     1403
     1404
     1405
     1406
     1407
     1408
     1409
     1410
     1411
     1412
    13841413                    });             
    13851414                    infowindow.open(map, marker);
  • simplemap/tags/2.4.7/inc/styles/dark.css

    r521911 r1095269  
    211211}
    212212
    213 .sm-single-location-data-ul {
    214 
     213.infoBox {
     214    background-color: #fff;
     215}
     216.infoBox:after {
     217    position: relative;
     218    top: 20px;
     219    left: 60px;
     220    border-top: 0px;
     221    border-left: 0px;
     222    padding: 0px;
     223    content: '';
     224    overflow: hidden;
     225    display: block;
     226    width: 0;
     227    height: 0;
     228    border-left: 20px solid rgba(0, 0, 0, 0);
     229    border-right: 20px solid rgba(0, 0, 0, 0);
     230    border-top: 20px solid #FFF;
     231}
  • simplemap/tags/2.4.7/inc/styles/light.css

    r521911 r1095269  
    216216margin-left:0;
    217217}
     218
     219
     220
     221
     222
     223
     224
     225
     226
     227
     228
     229
     230
     231
     232
     233
     234
     235
     236
     237
  • simplemap/tags/2.4.7/readme.txt

    r1095263 r1095269  
    55Tags: map, maps, store locator, database, locations, stores, Google maps, locator
    66Requires at least: 2.8
    7 Tested up to: 3.7.1
    8 Stable tag: 2.4.6
     7Tested up to: .1
     8Stable tag: 2.4.
    99
    1010SimpleMap is an easy-to-use international store locator plugin that uses Google Maps to display information directly on your WordPress site.
  • simplemap/tags/2.4.7/simplemap.php

    r1095263 r1095269  
    22/*
    33Plugin Name: SimpleMap
    4 Version: 2.4.6
     4Version: 2.4.
    55Plugin URI: http://simplemap-plugin.com/
    66Author: Michael Torbert
     
    2020
    2121    // Plugin Version Number
    22     define( 'SIMPLEMAP_VERSION', '2.4.6' );
     22    define( 'SIMPLEMAP_VERSION', '2.4.' );
    2323
    2424    if ( !defined( 'WP_PLUGIN_DIR' ) ) {
  • simplemap/trunk/classes/simplemap.php

    r809073 r1095269  
    100100
    101101                if ( !' . absint( $is_sm_search ) . ' && auto_locate == "ip" ) {
    102                     jQuery.getJSON( "http://freegeoip.net/json/?callback=?", function(location) {
     102                    // alternatively, freegeoip.net/json/
     103                    jQuery.getJSON( "http://www.telize.com/geoip/?callback=?", function(location) {
    103104                        lat = location.latitude;
    104105                        lng = location.longitude;
     
    113114                            document.getElementById("location_search_state_field").value = location.region_code;
    114115                        }
    115                         if ( document.getElementById("location_search_zip_field") ) {
     116 ) {
    116117                            document.getElementById("location_search_zip_field").value = location.zipcode;
    117118                        }
     
    12561257                }
    12571258
    1258                 var html = '<div class="markertext" style="max-width: ' + maxbubblewidth + 'px; height: ' + totalheight + 'px; overflow-y: auto; overflow-x: hidden;">';
     1259                var html = '<div class="markertext" style="max-width: ' + maxbubblewidth + 'px; height: ' + totalheight + 'px; overflow-y: auto; overflow-x: hidden;">';
    12591260                html += '<h3 style="margin-top: 0; padding-top: 0; border-top: none;">';
    12601261
     
    13641365
    13651366                html += '   </div>';
     1367
     1368
     1369
     1370
     1371
     1372
     1373
    13661374
    13671375                google.maps.event.addListener(marker, 'click', function() {
     
    13791387                    if ( infowidth < maxbubblewidth ) infowidth = maxbubblewidth;
    13801388                    infowidth = parseInt(infowidth) + 'px';
     1389
    13811390                    var infowindow = new google.maps.InfoWindow({
    13821391                        maxWidth: infowidth,
    13831392                        content: html
     1393
     1394
     1395
     1396
     1397
     1398
     1399
     1400
     1401
     1402
     1403
     1404
     1405
     1406
     1407
     1408
     1409
     1410
     1411
     1412
    13841413                    });             
    13851414                    infowindow.open(map, marker);
  • simplemap/trunk/inc/styles/dark.css

    r521911 r1095269  
    211211}
    212212
    213 .sm-single-location-data-ul {
    214 
     213.infoBox {
     214    background-color: #fff;
     215}
     216.infoBox:after {
     217    position: relative;
     218    top: 20px;
     219    left: 60px;
     220    border-top: 0px;
     221    border-left: 0px;
     222    padding: 0px;
     223    content: '';
     224    overflow: hidden;
     225    display: block;
     226    width: 0;
     227    height: 0;
     228    border-left: 20px solid rgba(0, 0, 0, 0);
     229    border-right: 20px solid rgba(0, 0, 0, 0);
     230    border-top: 20px solid #FFF;
     231}
  • simplemap/trunk/inc/styles/light.css

    r521911 r1095269  
    216216margin-left:0;
    217217}
     218
     219
     220
     221
     222
     223
     224
     225
     226
     227
     228
     229
     230
     231
     232
     233
     234
     235
     236
     237
  • simplemap/trunk/readme.txt

    r809073 r1095269  
    55Tags: map, maps, store locator, database, locations, stores, Google maps, locator
    66Requires at least: 2.8
    7 Tested up to: 3.7.1
    8 Stable tag: 2.4.6
     7Tested up to: .1
     8Stable tag: 2.4.
    99
    1010SimpleMap is an easy-to-use international store locator plugin that uses Google Maps to display information directly on your WordPress site.
  • simplemap/trunk/simplemap.php

    r809073 r1095269  
    22/*
    33Plugin Name: SimpleMap
    4 Version: 2.4.6
     4Version: 2.4.
    55Plugin URI: http://simplemap-plugin.com/
    66Author: Michael Torbert
     
    2020
    2121    // Plugin Version Number
    22     define( 'SIMPLEMAP_VERSION', '2.4.6' );
     22    define( 'SIMPLEMAP_VERSION', '2.4.' );
    2323
    2424    if ( !defined( 'WP_PLUGIN_DIR' ) ) {
Note: See TracChangeset for help on using the changeset viewer.