PluginProbe
Templately – Elementor & Gutenberg Template Library: 6500+ Free & Pro Ready Templates And Cloud! / trunk
Templately – Elementor & Gutenberg Template Library: 6500+ Free & Pro Ready Templates And Cloud! vtrunk
3.8.0 3.7.5 3.7.4 3.7.3 3.7.2 1-final 3.7.1 3.7.0 3.6.8 3.6.7 3.6.6 3.6.5 3.6.4 3.6.3 3.6.2 3.6.1 3.0.3 3.0.4 3.0.5 3.0.6 3.0.7 3.0.8 3.0.9 3.1.0 3.1.1 All 112 releases
templately / modules / template-customizer / module.php

module.php in Templately – Elementor & Gutenberg Template Library: 6500+ Free & Pro Ready Templates And Cloud! trunk, at modules/template-customizer/module.php

41 lines 1.5 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Template-customizer module (spec 021-template-customizer + 024-logo-branding).
4 *
5 * PHP REST surface: AI logo generation (generate/callback/data/poll/available-credits).
6 * Relocated from includes/API/LogoGeneration.php — behavior byte-identical (same routes,
7 * params, option keys). The consolidation decision assigns 024's logo REST here.
8 *
9 * The JS view layer this spec describes (Customizer wizard, color/typography editors,
10 * logo generator UI, AI tagline UI) is DEFERRED: that code currently lives inside
11 * react-src/app/components/fsi/{wizard,customizer}/ (spec 029's future territory),
12 * tightly coupled to the FSI wizard's step machine (fsiFlowReducer, aiMode, SurfaceShell).
13 * Extracting it now would mean restructuring FSI's wizard before 029's own pass — see the
14 * modularization PRD's blockers log for the full reasoning. Complete the JS move when
15 * spec 029 (or a dedicated follow-up after it) is reached.
16 *
17 * @package Templately
18 */
19
20 namespace Templately\Modules\TemplateCustomizer;
21
22 use Templately\Core\Module_Base;
23 use Templately\Modules\TemplateCustomizer\REST\LogoGeneration;
24
25 class Module extends Module_Base {
26
27 public function get_name(): string {
28 return 'template-customizer';
29 }
30
31 public function get_dependencies(): array {
32 // REST/LogoGeneration.php uses full-site-import's Utils/AIUtils/SignatureVerifier
33 // during AI logo generation (spec 025).
34 return [ 'full-site-import' ];
35 }
36
37 public function register_rest_routes(): void {
38 LogoGeneration::get_instance()->register_routes();
39 }
40 }
41