WPR FM
uid=9814(b13i2mwmyrdbxio) php=8.4.28
info
cwd /data/sites/web/b13i2mwmyrdbxio/www |
naik
Buka
-
README.md
7444
x
D
admin/
D
assets/
-
ele-custom-skin-pro.php
7123
x
D
includes/
-
license.php
1459
x
D
modules/
D
skin/
-
update.php
3978
x
Upload
Simpan
# ECS Pro — Ele Custom Skin for Elementor (Pro) **Version:** 4.0.0 **Requires:** ECS — Ele Custom Skin for Elementor (free) 4.0.0+ **Requires WordPress:** 6.0+ **Requires PHP:** 8.0+ **Requires Elementor Pro:** recommended for full Theme Builder integration **License:** GPLv3 Premium add-on for [ECS — Ele Custom Skin for Elementor](https://github.com/dudaster/ecs-for-elementor). Extends the free plugin with advanced color/font scheme systems, alternative logo management, conditional "Look & Feel" rules, display conditions, and dynamic field replacement. > ECS Pro **cannot run without ECS free** — it registers itself as an extension via the `ecs_register_modules` action. --- ## Modules ### Color Schemes Save unlimited named color palettes and switch them globally or per page. - Adds a **Color Schemes** tab to Elementor Site Settings - Each scheme stores overrides for every Elementor global color (system + custom) plus arbitrary extra CSS variables - Applies scheme CSS under a scoped selector — no conflict with the default kit - Schemes can be activated programmatically, via page meta, or from a Color Switcher widget - **Color Switcher widget**: a front-end button/toggle that lets visitors switch the active scheme at runtime (stored in `localStorage`) - Data stored in `wp_options` key `dte_pro_color_schemes` as a JSON array ### Font Schemes The same concept as Color Schemes but for typography. - Adds a **Font Schemes** tab to Elementor Site Settings - Each scheme overrides Elementor global typography (system + custom) and additional CSS font variables - Font Switcher widget mirrors Color Switcher for runtime font switching - Data stored in `wp_options` key `dte_pro_font_schemes` ### Alternative Logos Define multiple site logos and serve a different one based on the active Custom Look. - Adds an **Alt Logos** tab to Elementor Site Settings - Each logo entry: label + media library image + optional alt text override - Logo selection is driven by the **Custom Look & Feel** module (a "look" picks a logo) - Data stored in `wp_options` key `dte_pro_alt_logos` ### Custom Look & Feel Conditional "looks" that combine a color scheme, font scheme, custom CSS, and logo into a single rule with conditions and optional time intervals. Adds two Site Settings tabs: | Tab | Purpose | |-----|---------| | **Custom CSS** | A library of named CSS snippets that can be selectively activated | | **Custom Looks** | Conditional rules that activate a scheme/font/logo/CSS combination | Each "look" supports: - **Display conditions** (page type, post, taxonomy, etc.) - **Time intervals** (activate only between specific hours/days) - Composed of: a Color Scheme + Font Scheme + one or more Custom CSS snippets + an Alt Logo Data stored in: - `wp_options` `dte_pro_custom_css` — `[{ id, label, css }]` - `wp_options` `dte_pro_custom_looks` — `[{ id, name, enabled, conditions[], time_interval{}, styles{} }]` ### Display Conditions Evaluates Elementor Pro Theme Builder display conditions programmatically for use by the Custom Look & Feel module (and potentially other Pro modules). - Wraps `ElementorPro\Modules\ThemeBuilder` condition evaluation - Used internally — no UI of its own ### Dynamic Fields Replaces `{curly_bracket}` tags in widget content with dynamic values at render time. - Supports post fields, site fields, user fields, and custom meta - Fully front-end: replacement runs via an output filter, no editor UI changes ### Container Responsive Responsive container layout modes — moved from ECS free to Pro for finer control. - Adds a responsive `dte_container_type` control to Elementor Containers - Per-breakpoint modes: Flex, Grid, Slider, Custom Layout - Syncs with Elementor's native `display` control via JS - `prefix_class: 'e-dte%s-'` generates desktop/tablet/mobile classes (`e-dte-`, `e-dte-tablet-`, `e-dte-mobile-`) ### Legacy Pro Backward-compatibility layer for sites using ECS Pro 3.x features. Auto-detected and activated on update. --- ## Installation 1. Ensure **ECS — Ele Custom Skin for Elementor** (free) is installed and active 2. Upload `ele-custom-skin-pro` to `/wp-content/plugins/` 3. Activate **ECS Pro** in the WordPress plugin screen 4. Enter your license key at **Elementor → ECS Pro License** 5. Navigate to **Elementor → ECS Modules** to enable/disable individual Pro modules --- ## Architecture ``` ele-custom-skin-pro/ ├── ele-custom-skin-pro.php # Plugin bootstrap, constants, dependency check ├── license.php # License key management ├── update.php # Auto-update client (dudaster.com API) ├── includes/ │ ├── class-ecs-pro-module-base.php # Abstract base for Pro modules │ ├── class-license.php │ ├── class-serializer.php │ ├── class-submenu.php │ └── views/ # Admin view partials ├── admin/ # Admin UI (license page) ├── assets/ # Shared Pro JS/CSS ├── modules/ │ ├── init.php # Registers all Pro modules via ecs_register_modules │ ├── alt-logos/ │ ├── color-schemes/ │ ├── container-responsive/ │ ├── custom-look-feel/ │ ├── display-conditions.php │ ├── dynamic-fields.php │ ├── font-schemes/ │ └── legacy-pro/ └── skin/ └── skin-custom.php # Legacy skin compatibility ``` ### How Pro modules integrate with ECS free ECS Pro hooks into `ecs_register_modules` (fired by `ECS_Modules_Manager` before reading the active list): ```php // modules/init.php add_action( 'ecs_register_modules', function( ECS_Modules_Manager $manager ) { $manager->register_module( new ECS_Color_Schemes_Module() ); $manager->register_module( new ECS_Font_Schemes_Module() ); // ... } ); ``` Pro modules extend `ECS_Pro_Module_Base` which in turn extends the free `ECS_Module_Base`, so they follow the same lifecycle: | Method | Description | |--------|-------------| | `get_id()` | Unique string ID (stored in `ecs_active_modules` option) | | `get_title()` | Display name in admin | | `get_description()` | Short description shown in modules list | | `boot()` | Called once on activation — registers hooks | | `register_widgets()` | Elementor widgets (e.g. Color Switcher, Font Switcher) | | `enqueue_frontend_assets()` | Frontend scripts/styles | | `enqueue_editor_assets()` | Editor scripts/styles | ### License & auto-update - License validated against `https://dudaster.com/update.php` - Fallback server: `http://dudaster.1002.ro/` - Server constants: `ELECSP_SRV`, `ELECSP_SBK`, `ELECSP_PID` --- ## Development ### Requirements - PHP 8.0+ - WordPress 6.0+ - ECS free 4.0.0+ - Elementor (free) 3.20+ - Elementor Pro 3.20+ *(strongly recommended)* ### JavaScript Plain ES5 IIFEs, no build step. Assets in each module's `assets/js/` and `assets/css/` directories. --- ## Changelog ### 4.0.0 - Rewritten as a modular extension of ECS free 4.0.0 - Modules: Color Schemes, Font Schemes, Alt Logos, Custom Look & Feel, Display Conditions, Dynamic Fields, Container Responsive, Legacy Pro - Registers via `ecs_register_modules` action hook (no monkey-patching of free plugin) --- ## License GPLv3 — see [LICENSE](http://www.gnu.org/licenses/gpl-3.0) for details. Copyright © Dudaster.com
Exec