Skip to content

Commit

Permalink
Compatibility for WP 6.5 and optimize the plugin assets loading method.
Browse files Browse the repository at this point in the history
  • Loading branch information
ali7ali committed Apr 4, 2024
1 parent ceefcc6 commit d274a46
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 13 deletions.
12 changes: 8 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ Tags: google-map, google, premium, elementor, alpha, page builder, landing page,

Requires at least: 6.0

Tested up to: 6.4
Tested up to: 6.5

Requires PHP: 7.3

Stable tag: 1.0.9
Stable tag: 1.1.0

License: GPLv3

Expand Down Expand Up @@ -88,8 +88,8 @@ Manual or using sFTP install:

== Upgrade Notice ==

= 1.0.9 =
Compatibility for WP 6.4 and bug fix for clicked pins.
= 1.1.0 =
Compatibility for WP 6.5 and optimize the plugin assets loading method.

== Frequently Asked Questions ==

Expand All @@ -109,6 +109,10 @@ No. You need to install Elementor Website Builder first.

== Changelog ==

= 1.1.0 - 2024-04-04 =

- Compatibility for WP 6.5 and optimize the plugin assets loading method.

= 1.0.9 - 2023-11-11 =

- Compatibility for WP 6.4 and bug fix for clicked pins.
Expand Down
4 changes: 2 additions & 2 deletions alpha-google-map-for-elementor.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* Description: Premium Google Map features for WordPress.
* Author: Ali Ali
* Author URI: https://github.com/Ali7Ali
* Version: 1.0.9
* Version: 1.1.0
* Text Domain: alpha-google-map-for-elementor
* Domain Path: /languages
* License: GPLv3
Expand Down Expand Up @@ -37,7 +37,7 @@
exit; // Exit if accessed directly.
}

define('ALPHAMAP_VERSION', '1.0.9');
define('ALPHAMAP_VERSION', '1.1.0');
define('ALPHAMAP_ADDONS_PL_ROOT', __FILE__);
define('ALPHAMAP_PL_URL', plugins_url('/', ALPHAMAP_ADDONS_PL_ROOT));
define('ALPHAMAP_PL_PATH', plugin_dir_path(ALPHAMAP_ADDONS_PL_ROOT));
Expand Down
15 changes: 12 additions & 3 deletions include/class-alpha-google-map.php
Original file line number Diff line number Diff line change
Expand Up @@ -239,8 +239,14 @@ public function plugin_css()
public function plugin_js()
{
// Script register.
wp_enqueue_script('alpha-maps-finder', ALPHAMAP_PL_ASSETS . 'js/pa-maps-finder.js', array('jquery'), ALPHAMAP_VERSION, true);
wp_enqueue_script('alphamap', ALPHAMAP_PL_ASSETS . 'js/alpha-map.js', array('jquery', 'alpha-api-js'), ALPHAMAP_VERSION, true);
wp_enqueue_script('alpha-maps-finder', ALPHAMAP_PL_ASSETS . 'js/pa-maps-finder.js', array('jquery'), ALPHAMAP_VERSION, array(
'in_footer' => true,
'strategy' => 'defer',
));
wp_enqueue_script('alphamap', ALPHAMAP_PL_ASSETS . 'js/alpha-map.js', array('jquery', 'alpha-api-js'), ALPHAMAP_VERSION, array(
'in_footer' => true,
'strategy' => 'defer',
));

// get an option.
$api_key = get_option('elementor_google_maps_api_key');
Expand All @@ -251,7 +257,10 @@ public function plugin_js()
$api,
array(),
'1.0.0',
false
array(
'in_footer' => true,
'strategy' => 'defer',
)
);
}

Expand Down
11 changes: 7 additions & 4 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ Author: ali7ali
Contributors: ali7ali
Tags: google-map, google, premium, elementor, alpha, page builder, landing page, drag-and-drop
Requires at least: 6.0
Tested up to: 6.4
Tested up to: 6.5
Requires PHP: 7.3
Stable tag: 1.0.9
Stable tag: 1.1.0
License: GPLv3
License URI: https://www.gnu.org/licenses/gpl-3.0.html

Expand Down Expand Up @@ -66,8 +66,8 @@ Manual or using sFTP install:

== Upgrade Notice ==

= 1.0.9 =
Compatibility for WP 6.4 and bug fix for clicked pins.
= 1.1.0 =
Compatibility for WP 6.5 and optimize the plugin assets loading method.

== Frequently Asked Questions ==

Expand All @@ -87,6 +87,9 @@ No. You need to install Elementor Website Builder first.

== Changelog ==

= 1.1.0 - 2024-04-04 =
* Compatibility for WP 6.5 and optimize the plugin assets loading method.

= 1.0.9 - 2023-11-11 =
* Compatibility for WP 6.4 and bug fix for clicked pins.

Expand Down

0 comments on commit d274a46

Please sign in to comment.