PluginProbe
Easy Elements for Elementor – Addons & Website Templates / trunk
Easy Elements for Elementor – Addons & Website Templates vtrunk
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
easy-elements / easy-elements.php

easy-elements.php in Easy Elements for Elementor – Addons & Website Templates trunk, at easy-elements.php

62 lines 2.3 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Plugin Name: Easy Elements
4 * Plugin URI: https://wpeasyelements.com/
5 * Description: Provides a set of custom Elementor widgets, shortcodes, and enhancements.
6 * Version: 1.5.4
7 * Author: Themewant
8 * Author URI: https://wpeasyelements.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 // Prevent loading the plugin twice.
20 if ( defined( 'EASYELEMENTS_VER' ) ) {
21 return;
22 }
23
24 define( 'EASY_ELEMENTS_DEV', false );
25 if ( defined( 'EASY_ELEMENTS_DEV' ) && true == EASY_ELEMENTS_DEV ) {
26 define('EASYELEMENTS_VER', '1.5.4' . time() );
27 } else {
28 define( 'EASYELEMENTS_VER', '1.5.4' );
29 }
30
31 // Define constants
32 define( 'EASYELEMENTS_FILE', __FILE__ );
33 define( 'EASYELEMENTS_DIR_PATH', plugin_dir_path( __FILE__ ) );
34 define( 'EASYELEMENTS_DIR_URL', plugin_dir_url( __FILE__ ) );
35 define( 'EASYELEMENTS_ASSETS_URL', EASYELEMENTS_DIR_URL . 'assets/' );
36 define( 'EASYELEMENTS_URL', plugins_url( '/', __FILE__ ) );
37 define( 'EASYELEMENTS_PATH', plugin_basename( EASYELEMENTS_FILE ) );
38 define( 'EASYELEMENTS_DOMAIN', trailingslashit( 'https://wpeasyelements.com/' ) );
39 define( 'EASYELEMENTS_URL_ADMIN', plugin_dir_url( __FILE__ ) );
40 define( 'EASYELEMENTS_ASSETS_ADMIN', trailingslashit( EASYELEMENTS_URL_ADMIN ) );
41
42 /*
43 * Marks the free "EasyElements for Elementor" build. Several feature checks read
44 * `... || EASYELEMENTS_FOR_ELEMENTOR` and relied on it always being truthy. While the
45 * Pro add-on is active the left-hand side short-circuits, which hid the fact that this
46 * constant was never actually defined; with Pro deactivated PHP 8 evaluates it and
47 * throws a fatal "Undefined constant" error. Define it explicitly so those checks
48 * behave exactly as before, whether or not Pro is active.
49 */
50 if ( ! defined( 'EASYELEMENTS_FOR_ELEMENTOR' ) ) {
51 define( 'EASYELEMENTS_FOR_ELEMENTOR', true );
52 }
53
54 if ( ! defined( 'EASYEL_EXTENSION_BADGE' ) ) {
55 define( 'EASYEL_EXTENSION_BADGE', '<span class="easy-extension-badge"></span>' );
56 }
57
58 require_once __DIR__ . '/vendor/autoload.php';
59
60 require_once EASYELEMENTS_DIR_PATH . 'includes/Hooks/mini-cart-ajax.php';
61
62 require_once EASYELEMENTS_DIR_PATH . 'base.php';