From: Steve Sutton Date: Thu, 19 Jan 2017 17:28:41 +0000 (-0500) Subject: Setup js calls to work in either https or http X-Git-Tag: v1.6.11^2~1^2~25 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=1713a1302a28d8e7392b7946d81bf740747504cc;p=WP-Plugins%2Fglm-member-db-events.git Setup js calls to work in either https or http This will be for making sites fully https. --- diff --git a/models/front/events/detail.php b/models/front/events/detail.php index e53c546..e4368b9 100644 --- a/models/front/events/detail.php +++ b/models/front/events/detail.php @@ -76,7 +76,7 @@ class GlmMembersFront_events_detail extends GlmMembersFront_events_baseAction $categories = $this->getCategories(); wp_register_script( 'googlemaps-js', - 'http://maps.googleapis.com/maps/api/js?key=' . $this->config['settings']['google_maps_api_key'], + '//maps.googleapis.com/maps/api/js?key=' . $this->config['settings']['google_maps_api_key'], null, GLM_MEMBERS_EVENTS_PLUGIN_VERSION, true diff --git a/models/front/events/frontAdd.php b/models/front/events/frontAdd.php index 6378f7a..1e06f3b 100644 --- a/models/front/events/frontAdd.php +++ b/models/front/events/frontAdd.php @@ -65,7 +65,7 @@ class GLmMembersFront_events_frontAdd extends GlmDataEvents $part = urlencode($part); } $addressString = implode( ',', $address); - $url = "http://maps.googleapis.com/maps/api/geocode/json?address={$addressString}"; + $url = "//maps.googleapis.com/maps/api/geocode/json?address={$addressString}"; $ch = curl_init($url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $return = json_decode(curl_exec($ch)); @@ -221,7 +221,7 @@ class GLmMembersFront_events_frontAdd extends GlmDataEvents if( ! wp_script_is( 'jquery-ui', 'enqueued' ) ){ wp_enqueue_script('jquery-ui-datepicker', false, array('jquery'), false, true); - wp_enqueue_style('jquery-style', 'http://ajax.googleapis.com/ajax/libs/jqueryui/1.11.4/themes/smoothness/jquery-ui.css'); + wp_enqueue_style('jquery-style', '//ajax.googleapis.com/ajax/libs/jqueryui/1.11.4/themes/smoothness/jquery-ui.css'); // wp_enqueue_script('front-js', GLM_MEMBERS_EVENTS_PLUGIN_PATH . '/js/front.js'); } $view = 'frontAdd'; diff --git a/views/admin/events/editLocation.html b/views/admin/events/editLocation.html index 2870405..b44d76c 100644 --- a/views/admin/events/editLocation.html +++ b/views/admin/events/editLocation.html @@ -1,7 +1,7 @@ - +