| 1 |
<?php |
| 2 |
|
| 3 |
/** |
| 4 |
* Plugin Name: Master Addons for Elementor |
| 5 |
* Description: Master Addons is easy and must have Elementor Addons for WordPress Page Builder. Clean, Modern, Hand crafted designed Addons blocks. |
| 6 |
* Plugin URI: https://master-addons.com/all-widgets/ |
| 7 |
* Author: Jewel Theme |
| 8 |
* Version: 1.9.9 |
| 9 |
* Author URI: https://master-addons.com |
| 10 |
* Text Domain: master-addons |
| 11 |
* Domain Path: /languages |
| 12 |
* Elementor tested up to: 3.11.2 |
| 13 |
* Elementor Pro tested up to: 3.11.2 |
| 14 |
* */ |
| 15 |
// No, Direct access Sir !!! |
| 16 |
if ( !defined( 'ABSPATH' ) ) { |
| 17 |
exit; |
| 18 |
} |
| 19 |
$jltma_plugin_data = get_file_data( __FILE__, array( |
| 20 |
'Version' => 'Version', |
| 21 |
'Plugin Name' => 'Plugin Name', |
| 22 |
'Author' => 'Author', |
| 23 |
'Description' => 'Description', |
| 24 |
'Plugin URI' => 'Plugin URI', |
| 25 |
), false ); |
| 26 |
define( 'JLTMA', $jltma_plugin_data['Plugin Name'] ); |
| 27 |
define( 'JLTMA_PLUGIN_DESC', $jltma_plugin_data['Description'] ); |
| 28 |
define( 'JLTMA_PLUGIN_AUTHOR', $jltma_plugin_data['Author'] ); |
| 29 |
define( 'JLTMA_PLUGIN_URI', $jltma_plugin_data['Plugin URI'] ); |
| 30 |
define( 'JLTMA_VER', $jltma_plugin_data['Version'] ); |
| 31 |
define( 'JLTMA_BASE', plugin_basename( __FILE__ ) ); |
| 32 |
|
| 33 |
if ( function_exists( 'ma_el_fs' ) ) { |
| 34 |
ma_el_fs()->set_basename( false, __FILE__ ); |
| 35 |
} else { |
| 36 |
|
| 37 |
if ( !function_exists( 'ma_el_fs' ) ) { |
| 38 |
// Create a helper function for easy SDK access. |
| 39 |
function ma_el_fs() |
| 40 |
{ |
| 41 |
global $ma_el_fs ; |
| 42 |
|
| 43 |
if ( !isset( $ma_el_fs ) ) { |
| 44 |
// Activate multisite network integration. |
| 45 |
if ( !defined( 'WP_FS__PRODUCT_4015_MULTISITE' ) ) { |
| 46 |
define( 'WP_FS__PRODUCT_4015_MULTISITE', true ); |
| 47 |
} |
| 48 |
// Include Freemius SDK. |
| 49 |
require_once dirname( __FILE__ ) . '/lib/freemius/start.php'; |
| 50 |
$ma_el_fs = fs_dynamic_init( [ |
| 51 |
'id' => '4015', |
| 52 |
'slug' => 'master-addons', |
| 53 |
'premium_slug' => 'master-addons-pro', |
| 54 |
'type' => 'plugin', |
| 55 |
'public_key' => 'pk_3c9b5b4e47a06288e3500c7bf812e', |
| 56 |
'premium_suffix' => '(Pro)', |
| 57 |
'has_affiliation' => 'all', |
| 58 |
'has_addons' => false, |
| 59 |
'has_paid_plans' => true, |
| 60 |
'menu' => [ |
| 61 |
'slug' => 'master-addons-settings', |
| 62 |
'first-path' => 'admin.php?page=master-addons-settings', |
| 63 |
'account' => true, |
| 64 |
'network' => true, |
| 65 |
], |
| 66 |
'is_live' => true, |
| 67 |
'is_premium' => false, |
| 68 |
] ); |
| 69 |
} |
| 70 |
|
| 71 |
return $ma_el_fs; |
| 72 |
} |
| 73 |
|
| 74 |
// Init Freemius. |
| 75 |
ma_el_fs(); |
| 76 |
// Signal that SDK was initiated. |
| 77 |
do_action( 'ma_el_fs_loaded' ); |
| 78 |
} |
| 79 |
|
| 80 |
} |
| 81 |
|
| 82 |
// Instantiate Master Addons Class |
| 83 |
if ( !class_exists( '\\MasterAddons\\Master_Elementor_Addons' ) ) { |
| 84 |
require_once dirname( __FILE__ ) . '/class-master-elementor-addons.php'; |
| 85 |
} |
| 86 |
if ( ma_el_fs()->is_not_paying() ) { |
| 87 |
require_once dirname( __FILE__ ) . '/inc/freemius-config.php'; |
| 88 |
} |
| 89 |
// Activation and Deactivation hooks |
| 90 |
|
| 91 |
if ( class_exists( '\\MasterAddons\\Master_Elementor_Addons' ) ) { |
| 92 |
register_activation_hook( __FILE__, array( '\\MasterAddons\\Master_Elementor_Addons', 'jltma_plugin_activation_hook' ) ); |
| 93 |
register_deactivation_hook( __FILE__, array( '\\MasterAddons\\Master_Elementor_Addons', 'jltma_plugin_deactivation_hook' ) ); |
| 94 |
} |
| 95 |
|