ele-custom-skin
Last commit date
admin
1 month ago
assets
2 months ago
includes
1 month ago
modules
6 days ago
skins
2 months ago
theme-builder
2 months ago
ele-custom-skin.php
6 days ago
readme.txt
6 days ago
ele-custom-skin.php
65 lines
| 1 | <?php |
| 2 | /* |
| 3 | * Plugin Name: ECS - Ele Custom Skin for Elementor |
| 4 | * Version: 4.3.6 |
| 5 | * Description: Modular toolkit extending Elementor with custom loop skins, color schemes, container layouts, and more. |
| 6 | * Plugin URI: https://dudaster.com |
| 7 | * Author: Dudaster.com |
| 8 | * Author URI: https://dudaster.com |
| 9 | * Text Domain: ele-custom-skin |
| 10 | * Domain Path: /languages |
| 11 | * License: GPLv3 |
| 12 | * License URI: http://www.gnu.org/licenses/gpl-3.0 |
| 13 | * Elementor tested up to: 3.35.0 |
| 14 | * Elementor Pro tested up to: 3.35.0 |
| 15 | * Requires at least: 6.0 |
| 16 | * Requires PHP: 8.0 |
| 17 | */ |
| 18 | |
| 19 | if ( ! defined( 'ABSPATH' ) ) { |
| 20 | exit; |
| 21 | } |
| 22 | |
| 23 | // ── Constants ───────────────────────────────────────────────────────────────── |
| 24 | |
| 25 | define( 'ECS_VERSION', '4.3.6' ); |
| 26 | define( 'ECS_FILE', __FILE__ ); |
| 27 | define( 'ECS_PATH', plugin_dir_path( __FILE__ ) ); |
| 28 | define( 'ECS_URL', plugin_dir_url( __FILE__ ) ); |
| 29 | |
| 30 | // Backward-compatibility aliases used by legacy ECS code. |
| 31 | define( 'ELECS_DIR', ECS_PATH ); |
| 32 | define( 'ELECS_NAME', plugin_basename( __FILE__ ) ); |
| 33 | define( 'ELECS_URL', ECS_URL ); |
| 34 | define( 'ELECS_VER', ECS_VERSION ); |
| 35 | |
| 36 | // ── Always-on includes ──────────────────────────────────────────────────────── |
| 37 | // These are loaded unconditionally because they're needed before Elementor init. |
| 38 | |
| 39 | require_once ECS_PATH . 'includes/ecs-notices.php'; |
| 40 | require_once ECS_PATH . 'includes/ecs-dependencies.php'; |
| 41 | |
| 42 | // ── Bootstrap ──────────────────────────────────────────────────────────────── |
| 43 | |
| 44 | /** |
| 45 | * Initialise the module system once Elementor is ready. |
| 46 | * Individual modules handle their own Elementor Pro dependency internally. |
| 47 | */ |
| 48 | function ecs_init(): void { |
| 49 | if ( ! did_action( 'elementor/loaded' ) ) { |
| 50 | add_action( 'admin_notices', function () { |
| 51 | echo '<div class="notice notice-error"><p>'; |
| 52 | echo esc_html__( 'ECS - Ele Custom Skin requires Elementor to be installed and activated.', 'ele-custom-skin' ); |
| 53 | echo '</p></div>'; |
| 54 | } ); |
| 55 | return; |
| 56 | } |
| 57 | |
| 58 | require_once ECS_PATH . 'includes/class-ecs-module-base.php'; |
| 59 | require_once ECS_PATH . 'includes/class-ecs-modules-manager.php'; |
| 60 | require_once ECS_PATH . 'includes/class-ecs-core.php'; |
| 61 | |
| 62 | ECS_Core::instance(); |
| 63 | } |
| 64 | add_action( 'elementor/init', 'ecs_init' ); |
| 65 |