Plugin Directory

Changeset 1670577


Ignore:
Timestamp:
06/04/2017 06:28:21 PM (9 years ago)
Author:
abooze
Message:

Added auto complete for from and two fields.

Location:
ab-google-map-travel
Files:
9 added
4 edited

Legend:

Unmodified
Added
Removed
  • ab-google-map-travel/trunk/ab-google-map-travel.php

    r1356420 r1670577  
    33  Plugin Name: AB Google Map Travel (AB-MAP)
    44  Plugin URI: http://wp.aboobacker.com
    5   Version: 4.1
     5  Version: 4.5
    66  Author: Aboobacker P Ummer
    77  Author URI: http://aboobacker.com
     
    1111global $wp_version;
    1212// Wordppress Version Check
    13 if (version_compare($wp_version, '3.0', '<')) {
     13if (version_compare($wp_version, '4.0', '<')) {
    1414    exit($exit_msg . " Please upgrade your wordpress.");
    1515}
     
    3434function abinclude_files($lang) {
    3535    wp_enqueue_style('abdistance_calc_css', plugins_url('/css/styles.css', __FILE__));
    36     wp_enqueue_style('google_map_css', 'http://code.google.com/apis/maps/documentation/javascript/examples/default.css');
    37     wp_enqueue_script('google_map_js', 'http://maps.google.com/maps/api/js?sensor=false&language=' . get_option('language'));
     36    wp_enqueue_script('google_map_js', 'https://maps.google.com/maps/api/js?key=AIzaSyCSX5ZH0dnGrOez2Q42j0XewKhHYayXEdE&libraries=places&sensor=false&language=' . get_option('language'));
    3837    wp_enqueue_script('abdistance_calc_js', plugins_url('/js/ab-get-distance.js', __FILE__));
    3938}
     
    6564<table class="abgdc-table">
    6665<tr>
    67 <td>From: </td><td><input type="text" name="place_from" class="txt" /></td>
    68 <td>To: </td><td><input type="text" name="place_to" class="txt" /></td>
     66<td>From: </td><td><input type="text" name="place_from" id="from-input" class="txt" /></td>
     67<td>To: </td><td><input type="text" name="place_to" id="to-input" class="txt" /></td>
    6968<td>Travel Time:
    7069<input type="radio" id="day_time" name="travel_time" value="day" checked="checked" /> Day
  • ab-google-map-travel/trunk/js/ab-get-distance.js

    r1111735 r1670577  
    1717    map = new google.maps.Map(document.getElementById("map_canvas"), myOptions);
    1818    directionsDisplay.setMap(map);
     19    new google.maps.places.Autocomplete(document.getElementById('from-input'));
     20    new google.maps.places.Autocomplete(document.getElementById('to-input'));
    1921  }
    2022  function calcRoute(from,to){
  • ab-google-map-travel/trunk/readme.txt

    r1356428 r1670577  
    44Tags: Google Maps, Distance Calculator, Google Maps, Calculate Distance, Driving Directions, Google Travel, AB Google Map Travel, Abooze Map Plugin
    55Requires at least: 4.1
    6 Tested up to: 4.4.2
    7 Stable tag: 4.1
     6Tested up to: 4.7.5
     7Stable tag: 4.5
    88This plugin will display the distance & driving direction between two points on earth. (No support provided).
    99== Description ==
     
    8181 <li>Compatible with Wordpress 4.4.2</li>
    8282</ul>
     83
     84= 4.5=
     85Released on 04/06/2017
     86<ul>
     87 <li>Added auto complete with with from and to fields</li>
     88 <li>Added developer's MAP API key</li>
     89 <li>More to come in premium version soon</li>
     90</ul>
Note: See TracChangeset for help on using the changeset viewer.