| Server IP : 108.167.142.43 / Your IP : 216.73.217.58 Web Server : Apache System : Linux gator4174.hostgator.com 5.14.0-687.39.1.el9_8.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Aug 18 06:09:16 EDT 2026 x86_64 User : delarice ( 2406) PHP Version : 8.3.36 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /home2/delarice/public_html/wp-content/plugins/templately/modules/ai-content-merger/ |
Upload File : |
<?php
/**
* AI-content-merger module (spec 022-ai-content-merger).
*
* Platform-aware AI content merging: the AIContentHelper class (flatten-by-id, unicode
* normalization, Elementor/Gutenberg dot-notation content merging, HTML class-based
* replacement). Relocated from includes/Core/Importer/Utils/AIContentHelper.php.
*
* PHP-only, no REST routes, no JS. Per spec 022 FR-011 this is a STANDALONE class of pure
* static merge logic with ZERO cross-module dependencies — the public entry point is the
* static merge($payload, $template, $platform) dispatcher, consumed by FSI's
* Runners/Finalizer. The session/path resolution + file IO that used to live here as
* host-state instance methods (generateAiFilePaths, isAiContent, processAiContent,
* writeDebugFile, …) is now the consumer's responsibility, breaking the former
* full-site-import ↔ ai-content-merger dependency cycle.
*
* @package Templately
*/
namespace Templately\Modules\AiContentMerger;
use Templately\Core\Module_Base;
class Module extends Module_Base {
public function get_name(): string {
return 'ai-content-merger';
}
}