PluginProbe
Easy Elements for Elementor – Addons & Website Templates / 1.0.7
Easy Elements for Elementor – Addons & Website Templates v1.0.7
1.5.3 1.5.2 1.5.1 1.5.0 1.4.9 1.4.6 1.4.7 1.4.8 1.4.5 1.4.4 1.4.3 1.2.7 1.2.8 1.2.9 1.3.0 1.3.1 1.3.2 1.3.3 1.3.4 1.3.5 1.3.6 1.3.7 1.3.8 1.3.9 1.4.0 All 47 releases
← All changes | easy-elements.php +19 -14 1.2.91.0.7 View file →
@@ -1,12 +1,12 @@
1 1 <?php
2 2 /**
3 3 * Plugin Name: Easy Elements
4 - * Plugin URI: https://wpeasyelements.com/
4 + * Plugin URI: http://themewant.com/
5 5 * Description: Provides a set of custom Elementor widgets, shortcodes, and enhancements.
6 - * Version: 1.2.9
6 + * Version: 1.0.7
7 7 * Author: Themewant
8 - * Author URI: https://themewant.com/
8 + * Author URI: http://themewant.com/
9 9 * Text Domain: easy-elements
10 10 * Domain Path: /languages
11 11 * License: GPLv2 or later
12 12 * License URI: https://www.gnu.org/licenses/gpl-2.0.html
@@ -15,16 +15,10 @@
15 15 if ( ! defined( 'ABSPATH' ) ) {
16 16 exit;
17 17 }
18 18
19 +define( 'EASYELEMENTS_VER', '1.0.7' );
19 20
20 -define( 'EASY_ELEMENTS_DEV', false );
21 -if ( defined( 'EASY_ELEMENTS_DEV' ) && true == EASY_ELEMENTS_DEV ) {
22 - define('EASYELEMENTS_VER', '1.2.9' . time() );
23 -} else {
24 - define( 'EASYELEMENTS_VER', '1.2.9' );
25 -}
26 -
27 21 // Define constants
28 22 define( 'EASYELEMENTS_FILE', __FILE__ );
29 23 define( 'EASYELEMENTS_DIR_PATH', plugin_dir_path( __FILE__ ) );
30 24 define( 'EASYELEMENTS_DIR_URL', plugin_dir_url( __FILE__ ) );
@@ -29,10 +23,10 @@
29 23 define( 'EASYELEMENTS_DIR_PATH', plugin_dir_path( __FILE__ ) );
30 24 define( 'EASYELEMENTS_DIR_URL', plugin_dir_url( __FILE__ ) );
31 25 define( 'EASYELEMENTS_ASSETS_URL', EASYELEMENTS_DIR_URL . 'assets/' );
32 26 define( 'EASYELEMENTS_URL', plugins_url( '/', __FILE__ ) );
33 -define( 'EASYELEMENTS_PATH', plugin_basename( EASYELEMENTS_FILE ) );
34 -define( 'EASYELEMENTS_DOMAIN', trailingslashit( 'https://wpeasyelements.com/' ) );
27 +define( 'EASYELEMENTS_PATH', plugin_basename( __FILE__ ) );
28 +define( 'EASYELEMENTS_DOMAIN', trailingslashit( 'http://themewant.com' ) );
35 29 define( 'EASYELEMENTS_URL_ADMIN', plugin_dir_url( __FILE__ ) );
36 30 define( 'EASYELEMENTS_ASSETS_ADMIN', trailingslashit( EASYELEMENTS_URL_ADMIN ) );
37 31
38 32 if ( ! defined( 'EASY_EXTENSION_BADGE' ) ) {
@@ -38,7 +32,18 @@
38 32 if ( ! defined( 'EASY_EXTENSION_BADGE' ) ) {
39 33 define( 'EASY_EXTENSION_BADGE', '<span class="easy-extension-badge"></span>' );
40 34 }
41 35
42 -require_once __DIR__ . '/vendor/autoload.php';
36 +require_once EASYELEMENTS_DIR_PATH . 'inc/class-loader.php';
43 37
44 -require_once EASYELEMENTS_DIR_PATH . 'base.php';
38 +register_activation_hook( EASYELEMENTS_FILE, 'easy_elements_activate' );
39 +
40 +function easy_elements_activate() {
41 + flush_rewrite_rules();
42 +}
43 +
44 +add_action( 'plugins_loaded', function() {
45 + if ( class_exists( 'Easy_Header_Footer_Elementor' ) ) {
46 + Easy_Header_Footer_Elementor::instance();
47 + }
48 +});
49 +