| 1 |
<?php |
| 2 |
/** |
| 3 |
* Plugin Name: Easy Elements |
| 4 |
* Plugin URI: http://themewant.com/ |
| 5 |
* Description: Provides a set of custom Elementor widgets, shortcodes, and enhancements. |
| 6 |
* Version: 1.0.6 |
| 7 |
* Author: Themewant |
| 8 |
* Author URI: http://themewant.com/ |
| 9 |
* Text Domain: easy-elements |
| 10 |
* Domain Path: /languages |
| 11 |
* License: GPLv2 or later |
| 12 |
* License URI: https://www.gnu.org/licenses/gpl-2.0.html |
| 13 |
*/ |
| 14 |
|
| 15 |
if ( ! defined( 'ABSPATH' ) ) { |
| 16 |
exit; |
| 17 |
} |
| 18 |
|
| 19 |
|
| 20 |
define( 'EASY_ELEMENTS_DEV', false ); |
| 21 |
if ( defined( 'EASY_ELEMENTS_DEV' ) && true == EASY_ELEMENTS_DEV ) { |
| 22 |
define('EASYELEMENTS_VER', '1.0.5' . time() ); |
| 23 |
} else { |
| 24 |
define( 'EASYELEMENTS_VER', '1.0.5' ); |
| 25 |
} |
| 26 |
|
| 27 |
// Define constants |
| 28 |
define( 'EASYELEMENTS_FILE', __FILE__ ); |
| 29 |
define( 'EASYELEMENTS_DIR_PATH', plugin_dir_path( __FILE__ ) ); |
| 30 |
define( 'EASYELEMENTS_DIR_URL', plugin_dir_url( __FILE__ ) ); |
| 31 |
define( 'EASYELEMENTS_ASSETS_URL', EASYELEMENTS_DIR_URL . 'assets/' ); |
| 32 |
define( 'EASYELEMENTS_URL', plugins_url( '/', __FILE__ ) ); |
| 33 |
define( 'EASYELEMENTS_PATH', plugin_basename( __FILE__ ) ); |
| 34 |
define( 'EASYELEMENTS_DOMAIN', trailingslashit( 'http://themewant.com' ) ); |
| 35 |
define( 'EASYELEMENTS_URL_ADMIN', plugin_dir_url( __FILE__ ) ); |
| 36 |
define( 'EASYELEMENTS_ASSETS_ADMIN', trailingslashit( EASYELEMENTS_URL_ADMIN ) ); |
| 37 |
|
| 38 |
if ( ! defined( 'EASY_EXTENSION_BADGE' ) ) { |
| 39 |
define( 'EASY_EXTENSION_BADGE', '<span class="easy-extension-badge"></span>' ); |
| 40 |
} |
| 41 |
|
| 42 |
require_once EASYELEMENTS_DIR_PATH . 'inc/class-loader.php'; |
| 43 |
|
| 44 |
register_activation_hook( EASYELEMENTS_FILE, 'easy_elements_activate' ); |
| 45 |
|
| 46 |
function easy_elements_activate() { |
| 47 |
flush_rewrite_rules(); |
| 48 |
} |
| 49 |
|
| 50 |
add_action( 'plugins_loaded', function() { |
| 51 |
if ( class_exists( 'Easy_Header_Footer_Elementor' ) ) { |
| 52 |
Easy_Header_Footer_Elementor::instance(); |
| 53 |
} |
| 54 |
}); |
| 55 |
|
| 56 |
|