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 109d7f9 commit d84162a
Show file tree
Hide file tree
Showing 6 changed files with 149 additions and 132 deletions.
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@ Author: ali7ali

Contributors: ali7ali

Tags: price-table, drag-and-drop, elementor, page builder, landing page, premium, price, compare, table, alpha
Tags: price-table, price, elementor, compare, table

Requires at least: 6.0

Tested up to: 6.4
Tested up to: 6.6

Requires PHP: 7.3
Requires PHP: 7.4

Stable tag: 1.0.4
Stable tag: 1.0.5

License: GPLv3

Expand Down Expand Up @@ -58,12 +58,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 @@ -86,5 +86,5 @@ Manual or using sFTP install:

== Upgrade Notice ==

= 1.0.4 =
Compatibility for WP 6.3.
= 1.0.5 =
Compatibility for WP 6.6 and refactor the integration with Elementor.
18 changes: 13 additions & 5 deletions alpha-price-table-for-elementor.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,12 @@
* Description: Premium Price Table for WordPress.
* Author: Ali Ali
* Author URI: https://github.com/Ali7Ali
* Version: 1.0.4
* Version: 1.0.5
* Text Domain: alpha-price-table-for-elementor
* Domain Path: /languages
* License: GPLv3
*
*
* @package alpha-price-table-for-elementor
*/

/*
Expand All @@ -37,13 +36,22 @@
exit; // Exit if accessed directly.
}

define('ALPHAPRICETABLE_VERSION', '1.0.4');
define('ALPHAPRICETABLE_VERSION', '1.0.5');
define('ALPHAPRICETABLE_ADDONS_PL_ROOT', __FILE__);
define('ALPHAPRICETABLE_PL_URL', plugins_url('/', ALPHAPRICETABLE_ADDONS_PL_ROOT));
define('ALPHAPRICETABLE_PL_PATH', plugin_dir_path(ALPHAPRICETABLE_ADDONS_PL_ROOT));
define('ALPHAPRICETABLE_PL_ASSETS', trailingslashit(ALPHAPRICETABLE_PL_URL . 'assets'));
define('ALPHAPRICETABLE_PL_INCLUDE', trailingslashit(ALPHAPRICETABLE_PL_PATH . 'include'));
define('ALPHAPRICETABLE_PL_LANGUAGES', trailingslashit(ALPHAPRICETABLE_PL_PATH . 'languages'));
define('ALPHAPRICETABLE_PLUGIN_BASE', plugin_basename(ALPHAPRICETABLE_ADDONS_PL_ROOT));

// Required File
include(ALPHAPRICETABLE_PL_INCLUDE . '/class-alpha-price-table.php');
function alpha_price_table_addon()
{

// Load plugin file
require_once(ALPHAPRICETABLE_PL_INCLUDE . '/class-alpha-price-table.php');

// Run the plugin
\Elementor_Alpha_Price_Table_Addon\Alpha_Price_Table_For_Elementor::instance();
}
add_action('plugins_loaded', 'alpha_price_table_addon');
21 changes: 11 additions & 10 deletions include/class-alpha-price-table-widget.php
Original file line number Diff line number Diff line change
@@ -1,26 +1,27 @@
<?php

namespace Elementor_Alpha_Price_Table_Addon;

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

/**
* Alpha Price Table Widget.
*
* @package alpha-price-table-for-elementor
* */

namespace Elementor;

// Elementor Classes.

use Elementor\Widget_Base;
use Elementor\Controls_Manager;
use Elementor\Group_Control_Border;
use Elementor\Group_Control_Typography;
use Elementor\Icons_Manager;
use Elementor\Repeater;
use Elementor\Core\Schemes\Color;
use Elementor\Core\Schemes\Typography;
use Elementor\Widget_Base;
use Elementor\Group_Control_Border;
use Elementor\Group_Control_Typography;
use Elementor\Icons_Manager;

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

/**
* Class Alpha_Price_Table_Widget
Expand Down
Loading

0 comments on commit d84162a

Please # to comment.