=== iCortex™ – High-Fidelity Revenue Engineering for WordPress ===
Contributors: scordeveloper
Tags: wordpress, email campaigns, ai, push notifications, revenue, e-commerce, automation, orchestration
Requires at least: 5.0
Tested up to: 6.4
Stable tag: 1.0.6
Requires PHP: 7.2
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Data Orchestration Architecture for elite E-commerce. Integrates your WordPress core with iCortex™ for web push, orchestration, and revenue engineering signals.

== Description ==

**Subtitle:** Data Orchestration Architecture for Elite E-commerce.

Evolve your Wordpress ecosystem into a High-Fidelity Engineering environment. iCortex™ is not a conventional marketing tool; it is a **Data Orchestration Architecture** engineered for brands that demand technical sovereignty and predictive precision. By integrating directly into your WordPress core, iCortex™ eliminates sensory blindness, allowing for autonomous growth through deep data signals.

*Core Engineering Modules*

* **Predictive Cortex™** (Intent Intelligence): An advanced engine that analyzes profile behavior through mouse kinematics and real-time interaction signals to orchestrate interventions at the peak of opportunity.

* **Lifestyle Engine™** (Visual Synthesis): Autonomous production of high-aesthetic, hyper-realistic visual assets that elevate the perceived value of your products and the Orchestrated Ticket.

* **Revenue Recovery Prime** (Revenue Defense): Omnichannel orchestration (WhatsApp, Email, Push, and SMS) where technical precision replaces mass marketing to secure superior Revenue Recovery.

* **iCortex™ Hyper-Segmentation™**: A protocol that ensures each profile interacts with content specifically engineered for their behavior patterns.

**Functionalities & Capabilities**

* **Data Orchestration Architecture**: Total control over your data flow without the restrictions of closed platforms.

* **Strategic Engagement Cycles**: Deployment of Brand Recall and Purchase Experience architectures that operate under strict engineering protocols.

* **High-Fidelity Attribution Dashboard**: Real-time technical transparency over every orchestrated revenue stream.

* **Smart Routing**: An intelligent node that determines the optimal channel and latency for every profile interaction.

**Plan Architectures (Contact-Based)**

*Business Creative*

* Up to 5,000 global Contacts.
* Hyper-Realistic Lifestyle Engine™ Scenes.
* Simultaneous Omnichannel Campaign Orchestration.

*Growth Architect*

* Up to 25,000 global Contacts.
* Predictive Cortex™ Intent Analysis.
* iCortex™ Smart Routing & Intelligent Nodes.

*Elite Intelligence*

* Up to 100,000 global Contacts.
* 4K Studio-Quality Visual Synthesis.
* iCortex™ Hyper-Segmentation™ Protocol.

**Implementation Protocol**

The integration provides immediate access to the Profile Capture Trigger, initiating the orchestration of high-fidelity signals across your web infrastructure. The system includes a 15-day Strategic Evaluation cycle to monitor the initial impact of the architecture on your revenue defense.

*Note:* After installation, direct links to the iCortex™ platform appear in the **iCortex™** top-level admin menu (below **Media**), with submenu entries for each destination.

== Installation ==

1. Upload the plugin files to the `/wp-content/plugins/` directory (for example under `notification-button/trunk`), or install the package through the WordPress Plugins screen.
2. Activate the plugin through the **Plugins** screen in your dashboard.
3. Ensure permalinks are saved by visiting **Settings > Permalinks** and clicking **Save Changes**.
4. Use the **iCortex™** admin menu (below **Media**) to open each module inside WordPress; primary actions on those screens open the iCortex™ platform in a new browser tab.

If you deploy from **SVN** and the **`assets/page-icons/`** folder never appears on the server, the folder was likely never added to the repository (SVN skips empty paths). Add it explicitly: include **every file** under `assets/page-icons/` (see `package-manifest.txt` in that folder) and run `svn add assets/page-icons --force` before commit.

== Frequently Asked Questions ==

= Is an iCortex™ account required? =

Yes. Delivery, orchestration, and advanced configuration require an active iCortex™ account on the platform: https://icortex.ai

= Does the integration work on HTTP and HTTPS? =

Yes. Align protocol and domain settings with your iCortex™ workspace configuration.

= How should caching be handled? =

If you use page caching or a CDN, purge cache after activating the plugin so the service worker path and front-end scripts load correctly.

= How are invalid push subscriptions handled? =

The platform-side workflow includes maintenance routines to identify and remove invalid subscriptions so profile data stays accurate.

== Screenshots ==

1. iCortex™ positioning and hero overview for the E-commerce stack.
2. Predictive Cortex™ – intent intelligence and interaction signals.
3. Campaign orchestration and node-level control in iCortex™.
4. Lifestyle Engine™ – high-aesthetic visual synthesis (scene example).
5. Lifestyle Engine™ – product narrative and visual elevation (scene example).
6. Product storytelling and Lifestyle Engine™ output (footwear).
7. Product storytelling and Lifestyle Engine™ output (accessories).
8. Brand Recall and Lifestyle Engine™ strategic engagement cycle.
9. iCortex™ AI Stylizer – creative synthesis in the workflow.
10. Predictive timing, incentives, and orchestration surfaces in iCortex™.

== Changelog ==

= 1.0.6 =
* Multisite / PHP 8: Activation and deactivation hooks now accept the `$network_wide` parameter (avoids `ArgumentCountError` on network activate).
* Multisite: On network activation/deactivation, rewrite rules are invalidated safely per site (`delete_option( 'rewrite_rules' )`); large networks fall back to a single-site flush via `wp_is_large_network()`.
* Packaging: Added `assets/index.php`, `assets/page-icons/index.php`, and `assets/page-icons/package-manifest.txt` (lists SVG/PNG + SVN `add` hints) so `assets/page-icons/` is easier to commit intact; SVN users must still `svn add assets/page-icons --force` if the folder was missing from prior commits.

= 1.0.5 =
* Admin: Each submenu opens an internal WordPress page with card layout (Inter / Montserrat, primary buttons per design guidelines).
* Content localized EN / ES / PT from supplied copy decks; menu label **Profile Capture** (ES: Captura de Perfiles).
* Primary buttons continue to target the iCortex™ platform (`accounts*` host prefix) in a new tab.

= 1.0.4 =
* Admin: **iCortex™** is now a top-level menu below **Media**, with submenu entries for each platform destination (standard WordPress flyout / expand behavior).
* Each submenu action opens the platform in a new browser tab and returns to the overview.

= 1.0.3 =
* Fix: Avoid a fatal error if the `includes/` folder was missing from the installed package; show an admin notice instead.
* Release packaging: the distributed ZIP must include `includes/`, `languages/`, and `assets/` (plugin) so the admin integration works.

= 1.0.2 =
* Rebrand to iCortex™: readme, assets, and plugin metadata.
* Admin: new **Media > iCortex™** screen with direct platform links, locale-based host prefix, and translations (English, Spanish, Portuguese).
* Updated banners, icons, and ten directory screenshots.

= 1.0.1 =
* Compliance update: Renamed plugin to meet directory guidelines.
* Security: Refactored code to remove direct file writing (fopen/fwrite).
* Optimization: Implemented virtual rewrite rules for Service Worker delivery.
* Improved documentation and refined English descriptions.

= 1.0.0 =
* Initial release.
