WordPress.org

Plugin Directory

Changeset 783806


Ignore:
Timestamp:
10/07/13 07:41:13 (6 months ago)
Author:
eskapism
Message:

https fixes

Location:
simple-fields-map-extension/trunk
Files:
1 deleted
3 edited

Legend:

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

    r728799 r783806  
    44Tags: simple fields, google maps, geolocation, latitude, longitude, lat, lng, location, extension, geocoding, maps 
    55Requires at least: 3.5.1 
    6 Tested up to: 3.5.1 
    7 Stable tag: 1.3.2 
     6Tested up to: 3.6.1 
     7Stable tag: 1.3.3 
    88License: GPLv2 
    99 
     
    4343 
    4444` 
    45         simple_fields_register_field_group('sf_map_test_field_fg', 
     45<?php 
     46 
     47// Add a field group with a Google Map-field 
     48simple_fields_register_field_group('sf_map_test_field_fg', 
     49    array( 
     50        'name' => 'My map', 
     51        'slug' => "mu_map" 
     52        'repeatable' => 1, 
     53        'fields' => array( 
    4654            array( 
    47                 'name' => 'My map', 
    48                 'repeatable' => 1, 
    49                 'fields' => array( 
    50                     array( 
    51                         "type" => "googlemaps", 
    52                         "slug" => "sf_map", 
    53                         "name" => "Test map", 
    54                         "options" => array( 
    55                             "defaultZoomLevel" => 10, 
    56                             "defaultMapTypeId" => "HYBRID", // ROADMAP | SATELLITE | HYBRID | TERRAIN 
    57                             "defaultLocationLat" => 40.71435, 
    58                             "defaultLocationLng" => -74.00597, 
    59                             "defaultZoomLevel" => 10 
    60                         ) 
    61                     ) 
     55                "type" => "googlemaps", 
     56                "slug" => "sf_map", 
     57                "name" => "Test map", 
     58                "options" => array( 
     59                    "defaultZoomLevel" => 10, 
     60                    "defaultMapTypeId" => "HYBRID", // ROADMAP | SATELLITE | HYBRID | TERRAIN 
     61                    "defaultLocationLat" => 40.71435, 
     62                    "defaultLocationLng" => -74.00597, 
     63                    "defaultZoomLevel" => 10 
    6264                ) 
    6365            ) 
    64         ); 
     66        ) 
     67    ) 
     68); 
     69 
     70?> 
    6571` 
    6672 
     
    8490 
    8591== Changelog == 
     92 
     93= 1.3.3 = 
     94- Load scripts over HTTPS. Fixes http://wordpress.org/support/topic/javascript-blocked-map-not-showing. 
    8695 
    8796= 1.3.2 = 
  • simple-fields-map-extension/trunk/scripts.js

    r713040 r783806  
    3535            var script = document.createElement("script"); 
    3636            script.type = "text/javascript"; 
    37             script.src = "http://maps.google.com/maps/api/js?libraries=places&sensor=false&callback=simple_fields_googlemap.map_script_loaded"; 
     37            script.src = "https://maps.google.com/maps/api/js?libraries=places&sensor=false&callback=simple_fields_googlemap.map_script_loaded"; 
    3838            document.body.appendChild(script); 
    3939        }, 
  • simple-fields-map-extension/trunk/simple-fields-map-extension.php

    r728799 r783806  
    44Plugin URI: http://earthpeople.se/ 
    55Description: Adds a Google Maps-field to Simple Fields 
    6 Version: 1.3.2 
     6Version: 1.3.3 
    77Author: Earth People 
    88Author URI: http://earthpeople.se/ 
     
    1212/* Add example post type and simple fields to test plugin.  
    1313// In case I forget to comment it out, it will only be called when using on my test domain (hopefully pretty unique name :) 
    14 if ( "playground-nightly.ep" === $_SERVER["HTTP_HOST"] ) { 
     14if ( "playground-nightly.ep" === $_SERVER["HTTP_HOST"] || "playground-root.ep" === $_SERVER["HTTP_HOST"] ) { 
    1515 
    1616    // Full example to add post type with maps and stuff 
     
    6767function simple_fields_field_googlemaps_check_simple_fields_installed() { 
    6868 
    69     $plugin_is_active = is_plugin_active("Simple-Fields-GIT/simple_fields.php") || is_plugin_active("Simple-Fields/simple_fields.php"); 
     69    $plugin_is_active = is_plugin_active("simple-fields/simple_fields.php") || is_plugin_active("Simple-Fields-GIT/simple_fields.php") || is_plugin_active("Simple-Fields/simple_fields.php"); 
    7070    if ( ! $plugin_is_active ) { 
    7171        ?> 
     
    9393            $key = "googlemaps",  
    9494            $name = "Google Maps location", 
    95             $version = "1.3.2"; 
     95            $version = "1.3.3"; 
    9696         
    9797        function __construct() { 
     
    342342            // Generate the src for a static map for each map, for each image size 
    343343            // https://developers.google.com/maps/documentation/staticmaps/ 
    344             $static_map_base = "http://maps.googleapis.com/maps/api/staticmap?sensor=false"; 
     344            $static_map_base = "https://maps.googleapis.com/maps/api/staticmap?sensor=false"; 
    345345            foreach ($values as $key => $val) { 
    346346                 
Note: See TracChangeset for help on using the changeset viewer.