WordPress.org

Plugin Directory

Changeset 720767


Ignore:
Timestamp:
05/31/13 10:01:21 (11 months ago)
Author:
eskapism
Message:

version 1.3.1

Location:
simple-fields-map-extension
Files:
2 edited
10 copied

Legend:

Unmodified
Added
Removed
  • simple-fields-map-extension/tags/1.3.1/readme.txt

    r713040 r720767  
    55Requires at least: 3.5 
    66Tested up to: 3.5 
    7 Stable tag: 1.3 
     7Stable tag: 1.3.1 
    88License: GPLv2 
    99 
     
    3030* Search location of address by using built in search box 
    3131* Search location by enter its latitude and longitude coordinates 
    32 * Supports Repeatable Fields 
     32* Supports Repeatable Fields - have any amount of maps connected to each post 
    3333* From each saved position you can get 
    3434    * Latitude and Longitude 
    3535    * Address information, including store/shop name if that was what the user searched for when adding this location 
     36    * Preferred zoom level 
    3637 
    3738#### To add a map to a field group programmatically 
     
    8384 
    8485== Changelog == 
     86 
     87= 1.3.1 = 
     88- Static maps did not care about any preferred zoom level that was set in GUI. Now they do, funky funky! 
    8589 
    8690= 1.3 = 
  • simple-fields-map-extension/tags/1.3.1/simple-fields-map-extension.php

    r713040 r720767  
    44Plugin URI: http://earthpeople.se/ 
    55Description: Adds a Google Maps-field to Simple Fields 
    6 Version: 1.3 
     6Version: 1.3.1 
    77Author: Earth People 
    88Author URI: http://earthpeople.se/ 
     
    5454 
    5555    }); 
     56 
     57    add_filter( "the_content", function($str) { 
     58        $str .= "<pre>" . print_r( simple_fields_values('sf_map'), true) . "</pre>"; 
     59        return $str; 
     60    } ); 
     61 
    5662} 
    5763//* 
     
    8793            $key = "googlemaps",  
    8894            $name = "Google Maps location", 
    89             $version = "1.3"; 
     95            $version = "1.3.1"; 
    9096         
    9197        function __construct() { 
     
    352358                    } 
    353359     
     360                    // zoom order works like this:  
     361                    // 1. $options["static_maps_zoom"], if set. got from arg to simple_fields_value or default val 
     362                    // 2. $val['preferred_zoom'], if set. is set in gui. is empty if not set, but can be 0 (then it is set) 
     363 
    354364                    $static_map = add_query_arg(array( 
    355365                        "center"    => $val["lat"] . "," . $val["lng"], 
    356                         "zoom"      => $options["static_maps_zoom"], 
     366                        "zoom"      => isset( $val["preferred_zoom"] ) && is_numeric( $val["preferred_zoom"] ) ? $val["preferred_zoom"] : $options["static_maps_zoom"], 
    357367                        "size"      => $size_vals["width"] . "x" . $size_vals["height"], 
    358368                        "scale"     => $options["static_maps_scale"], 
  • simple-fields-map-extension/trunk/readme.txt

    r713040 r720767  
    55Requires at least: 3.5 
    66Tested up to: 3.5 
    7 Stable tag: 1.3 
     7Stable tag: 1.3.1 
    88License: GPLv2 
    99 
     
    3030* Search location of address by using built in search box 
    3131* Search location by enter its latitude and longitude coordinates 
    32 * Supports Repeatable Fields 
     32* Supports Repeatable Fields - have any amount of maps connected to each post 
    3333* From each saved position you can get 
    3434    * Latitude and Longitude 
    3535    * Address information, including store/shop name if that was what the user searched for when adding this location 
     36    * Preferred zoom level 
    3637 
    3738#### To add a map to a field group programmatically 
     
    8384 
    8485== Changelog == 
     86 
     87= 1.3.1 = 
     88- Static maps did not care about any preferred zoom level that was set in GUI. Now they do, funky funky! 
    8589 
    8690= 1.3 = 
  • simple-fields-map-extension/trunk/simple-fields-map-extension.php

    r713040 r720767  
    44Plugin URI: http://earthpeople.se/ 
    55Description: Adds a Google Maps-field to Simple Fields 
    6 Version: 1.3 
     6Version: 1.3.1 
    77Author: Earth People 
    88Author URI: http://earthpeople.se/ 
     
    5454 
    5555    }); 
     56 
     57    add_filter( "the_content", function($str) { 
     58        $str .= "<pre>" . print_r( simple_fields_values('sf_map'), true) . "</pre>"; 
     59        return $str; 
     60    } ); 
     61 
    5662} 
    5763//* 
     
    8793            $key = "googlemaps",  
    8894            $name = "Google Maps location", 
    89             $version = "1.3"; 
     95            $version = "1.3.1"; 
    9096         
    9197        function __construct() { 
     
    352358                    } 
    353359     
     360                    // zoom order works like this:  
     361                    // 1. $options["static_maps_zoom"], if set. got from arg to simple_fields_value or default val 
     362                    // 2. $val['preferred_zoom'], if set. is set in gui. is empty if not set, but can be 0 (then it is set) 
     363 
    354364                    $static_map = add_query_arg(array( 
    355365                        "center"    => $val["lat"] . "," . $val["lng"], 
    356                         "zoom"      => $options["static_maps_zoom"], 
     366                        "zoom"      => isset( $val["preferred_zoom"] ) && is_numeric( $val["preferred_zoom"] ) ? $val["preferred_zoom"] : $options["static_maps_zoom"], 
    357367                        "size"      => $size_vals["width"] . "x" . $size_vals["height"], 
    358368                        "scale"     => $options["static_maps_scale"], 
Note: See TracChangeset for help on using the changeset viewer.