Plugin Directory

Changeset 3330083


Ignore:
Timestamp:
07/18/2025 08:56:03 AM (9 months ago)
Author:
pluginscafe
Message:

Update to 1.3.5

Location:
gf-google-address-autocomplete
Files:
10 added
4 deleted
4 edited

Legend:

Unmodified
Added
Removed
  • gf-google-address-autocomplete/trunk/gf-auto-address-complete.php

    r3221006 r3330083  
    33Plugin Name: Address Autocomplete via Google for Gravity Forms
    44Plugin Url: https://pluginscafe.com
    5 Version: 1.3.4
     5Version: 1.3.5
    66Description: This plugin adds autocomplete/suggestion feature to gravity forms address field with google map api
    7 Author: Pluginscafe
     7Author: PluginsCafe
    88Author URI: https://pluginscafe.com
    99License: GPLv2 or later
    10 Text Domain: gravityforms
     10Text Domain: gf-google-address-autocomplete
    1111*/
    1212
    13 if (!defined('ABSPATH')) {
    14     exit;
    15 }
     13defined('ABSPATH') || die();
    1614
     15define('GF_AUTO_ADDRESS_COMPLETE_VERSION_NUM', '1.3.5');
     16define('GF_AUTO_ADDRESS_COMPLETE_FILE', __FILE__);
     17define('GF_AUTO_ADDRESS_COMPLETE_PATH', plugin_dir_path(__FILE__));
     18define('GF_AUTO_ADDRESS_COMPLETE_URL', plugin_dir_url(__FILE__));
    1719
    18 if (!defined('GF_AUTO_ADDRESS_COMPLETE_VERSION_NUM'))
    19     define('GF_AUTO_ADDRESS_COMPLETE_VERSION_NUM', '1.3.4');
     20add_action('gform_loaded', array('GF_Auto_Address_Complete_Bootstrap', 'load'), 5);
     21class GF_Auto_Address_Complete_Bootstrap {
     22    public static function load() {
     23        if (!method_exists('GFForms', 'include_addon_framework')) {
     24            return;
     25        }
    2026
    21 if (!defined('GF_AUTO_ADDRESS_COMPLETE_FILE'))
    22     define('GF_AUTO_ADDRESS_COMPLETE_FILE', __FILE__);
    23 
    24 if (!defined('GF_AUTO_ADDRESS_COMPLETE_PATH'))
    25     define('GF_AUTO_ADDRESS_COMPLETE_PATH', plugin_dir_path(__FILE__));
    26 
    27 if (!defined('GF_AUTO_ADDRESS_COMPLETE_URL'))
    28     define('GF_AUTO_ADDRESS_COMPLETE_URL', plugin_dir_url(__FILE__));
    29 
    30 
    31 class GF_auto_address_complete {
    32 
    33     function __construct() {
    34 
    35         if (is_admin()) {
    36             add_action('plugins_loaded', array($this, 'GF_admin_init'), 14);
    37         } else {
    38             add_action('plugins_loaded', array($this, 'frontend_init'), 14);
    39         }
    40     }
    41 
    42 
    43 
    44     /**
    45      * Init frontend
    46      */
    47     function frontend_init() {
    48         require_once(plugin_dir_path(__FILE__) . 'frontend/class-frontend.php');
    49     }
    50 
    51     /**
    52      * Init admin side
    53      */
    54     function GF_admin_init() {
    55         require_once(plugin_dir_path(__FILE__) . 'admin/class-admin.php');
    56         require_once(plugin_dir_path(__FILE__) . 'admin/class-helper.php');
     27        require_once 'class-auto-address-complete.php';
     28        GFAddOn::register('GFAutoAddressComplete');
    5729    }
    5830}
    59 
    60 new GF_auto_address_complete();
     31function GF_Address_Auto_Complete() {
     32    return GFAutoAddressComplete::get_instance();
     33}
  • gf-google-address-autocomplete/trunk/readme.txt

    r3221006 r3330083  
    11=== Address Autocomplete via Google for Gravity Forms ===
    2 Author: Pluginscafe
     2Author: PluginsCafe
    33Contributors: pluginscafe, kaisarahmmed
    44Tags: Gravityforms, Address, Autocomplete, Google place api, geolocation
    55Requires at least: 5.0
    66Requires PHP: 5.6
    7 Tested up to: 6.7.1
    8 Stable tag: trunk
     7Tested up to: 6.8
     8Stable tag: 1.3.5
    99License: GPLv2 or later
    1010License URI: https://www.gnu.org/licenses/old-licenses/gpl-2.0.en.html
     
    2929
    3030== Change log ==
     31
     32= 1.3.5 =
     33* Add new settings
     34* Fix js issue
     35* Fix other bugs
    3136
    3237= 1.3.4 =
Note: See TracChangeset for help on using the changeset viewer.