Skip to content

Commit

Permalink
Compatibility for WP 6.6 and refactor the integration with Elementor.
Browse files Browse the repository at this point in the history
  • Loading branch information
ali7ali committed Jul 20, 2024
1 parent d274a46 commit 3bef5f4
Show file tree
Hide file tree
Showing 8 changed files with 158 additions and 135 deletions.
18 changes: 11 additions & 7 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.5
Tested up to: 6.6

Requires PHP: 7.3
Requires PHP: 7.4

Stable tag: 1.1.0
Stable tag: 1.2.0

License: GPLv3

Expand Down Expand Up @@ -60,12 +60,12 @@ Use the WordPress.org forums for community support. If you spot a bug, you can o
= Minimum Requirements =

- WordPress 6.0 or greater
- PHP version 7.3 or greater
- PHP version 7.4 or greater
- MySQL version 5.0 or greater

= We recommend your host supports: =

- PHP version 7.4 or greater
- PHP version 8.1 or greater
- MySQL version 5.6 or greater
- WordPress Memory limit of 64 MB or greater (128 MB or higher is preferred)

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

== Upgrade Notice ==

= 1.1.0 =
Compatibility for WP 6.5 and optimize the plugin assets loading method.
= 1.2.0 =
Compatibility for WP 6.6 and refactor the integration with Elementor.

== Frequently Asked Questions ==

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

== Changelog ==

= 1.2.0 - 2024-07-20 =

- Compatibility for WP 6.6 and refactor the integration with Elementor.

= 1.1.0 - 2024-04-04 =

- Compatibility for WP 6.5 and optimize the plugin assets loading method.
Expand Down
20 changes: 14 additions & 6 deletions alpha-google-map-for-elementor.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,13 @@
* Description: Premium Google Map features for WordPress.
* Author: Ali Ali
* Author URI: https://github.com/Ali7Ali
* Version: 1.1.0
* Version: 1.2.0
* Text Domain: alpha-google-map-for-elementor
* Domain Path: /languages
* License: GPLv3
*
*
* @package alpha-google-map-for-elementor
*/
* */

/*
Copyright 2021 Ali Ali (email : [email protected])
Expand All @@ -37,13 +36,22 @@
exit; // Exit if accessed directly.
}

define('ALPHAMAP_VERSION', '1.1.0');
define('ALPHAMAP_VERSION', '1.2.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));
define('ALPHAMAP_PL_ASSETS', trailingslashit(ALPHAMAP_PL_URL . 'assets'));
define('ALPHAMAP_PL_INCLUDE', trailingslashit(ALPHAMAP_PL_PATH . 'include'));
define('ALPHAMAP_PL_LANGUAGES', trailingslashit(ALPHAMAP_PL_PATH . 'languages'));
define('ALPHAMAP_PLUGIN_BASE', plugin_basename(ALPHAMAP_ADDONS_PL_ROOT));

// Required File.
require ALPHAMAP_PL_INCLUDE . '/class-alpha-google-map.php';
function alpha_google_map_addon()
{

// Load plugin file
require_once(ALPHAMAP_PL_INCLUDE . '/class-alpha-google-map.php');

// Run the plugin
\Elementor_Alpha_Google_Map_Addon\Alpha_Google_Map::instance();
}
add_action('plugins_loaded', 'alpha_google_map_addon');
2 changes: 1 addition & 1 deletion assets/js/alpha-map.js
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ jQuery(window).on("elementor/frontend/init", function () {
});

jQuery(function () {
$("body").click(function (e) {
jQuery("body").click(function (e) {
let count = jQuery('.alpha-image-gallery').attr("data-count");
count = parseInt(count);
jQuery('.alpha-image-gallery').find("figure:nth-child(4)").append('<div style="position: absolute; color: #fff; top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: 16px; font-weight: 600; white-space: nowrap;">' + count + ' more </div>');
Expand Down
1 change: 0 additions & 1 deletion assets/js/pa-maps-finder.js

This file was deleted.

15 changes: 9 additions & 6 deletions include/class-alpha-google-map-widget.php
Original file line number Diff line number Diff line change
@@ -1,29 +1,32 @@
<?php

namespace Elementor_Alpha_Google_Map_Addon;

if (!defined('ABSPATH')) {
exit; // If this file is called directly, abort.
}

/**
* Alpha Google Map Widget.
*
* @package alpha-google-map-for-elementor
* */

namespace Elementor;

// Elementor Classes.
use Elementor\Plugin;
use Elementor\Widget_Base;
use Elementor\Controls_Manager;
use Elementor\Repeater;
use Elementor\Utils;
use Elementor\Settings;
use Elementor\Core\Schemes\Color;
use Elementor\Core\Schemes\Typography;
use Elementor\Core\Kits\Documents\Tabs\Global_Colors;
use Elementor\Core\Kits\Documents\Tabs\Global_Typography;
use Elementor\Group_Control_Border;
use Elementor\Group_Control_Typography;
use Elementor\Group_Control_Box_Shadow;
use Elementor\Group_Control_Text_Shadow;

if (!defined('ABSPATH')) {
exit; // If this file is called directly, abort.
}

/**
* Class Alpha_Google_Map_Widget
Expand Down
Loading

0 comments on commit 3bef5f4

Please sign in to comment.