diff --git a/Admin/Infrastructure/Api/Wordpress/AdminAjaxHandler.php b/Admin/Infrastructure/Api/Wordpress/AdminAjaxHandler.php index 338ef376..d2292fd9 100644 --- a/Admin/Infrastructure/Api/Wordpress/AdminAjaxHandler.php +++ b/Admin/Infrastructure/Api/Wordpress/AdminAjaxHandler.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace ROITheme\Admin\Infrastructure\API\WordPress; +namespace ROITheme\Admin\Infrastructure\Api\Wordpress; use ROITheme\Shared\Application\UseCases\SaveComponentSettings\SaveComponentSettingsUseCase; @@ -126,7 +126,7 @@ final class AdminAjaxHandler // Usar repositorio para restaurar valores if ($this->saveComponentSettingsUseCase !== null) { global $wpdb; - $repository = new \ROITheme\Shared\Infrastructure\Persistence\WordPress\WordPressComponentSettingsRepository($wpdb); + $repository = new \ROITheme\Shared\Infrastructure\Persistence\Wordpress\WordPressComponentSettingsRepository($wpdb); $updated = $repository->resetToDefaults($component, $schemaPath); wp_send_json_success([ diff --git a/Admin/Infrastructure/Api/Wordpress/AdminMenuRegistrar.php b/Admin/Infrastructure/Api/Wordpress/AdminMenuRegistrar.php index 50ba6cb9..9d701220 100644 --- a/Admin/Infrastructure/Api/Wordpress/AdminMenuRegistrar.php +++ b/Admin/Infrastructure/Api/Wordpress/AdminMenuRegistrar.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace ROITheme\Admin\Infrastructure\API\WordPress; +namespace ROITheme\Admin\Infrastructure\Api\Wordpress; use ROITheme\Admin\Domain\Contracts\MenuRegistrarInterface; use ROITheme\Admin\Domain\ValueObjects\MenuItem; diff --git a/Public/ContactForm/Infrastructure/Api/WordPress/ContactFormAjaxHandler.php b/Public/ContactForm/Infrastructure/Api/WordPress/ContactFormAjaxHandler.php index 23c69ba3..94331556 100644 --- a/Public/ContactForm/Infrastructure/Api/WordPress/ContactFormAjaxHandler.php +++ b/Public/ContactForm/Infrastructure/Api/WordPress/ContactFormAjaxHandler.php @@ -1,7 +1,7 @@ prefix . 'roi_theme_component_settings'; - -echo "=== CTA-BOX-SIDEBAR CONTENT (ACTUAL) ===\n"; -$rows = $wpdb->get_results( - "SELECT attribute_name, attribute_value FROM {$table} - WHERE component_name = 'cta-box-sidebar' - AND group_name = 'content' - ORDER BY attribute_name" -); -foreach ($rows as $row) { - echo "{$row->attribute_name}: [{$row->attribute_value}]\n"; -} diff --git a/functions.php b/functions.php index 4a231bf4..21c90f42 100644 --- a/functions.php +++ b/functions.php @@ -62,7 +62,7 @@ require_once get_template_directory() . '/Inc/customizer-cta.php'; // 3. INICIALIZAR DI CONTAINER (Clean Architecture) // ============================================================================= -use ROITheme\Shared\Infrastructure\DI\DIContainer; +use ROITheme\Shared\Infrastructure\Di\DIContainer; try { global $wpdb; @@ -92,7 +92,7 @@ try { use ROITheme\Admin\Domain\ValueObjects\MenuItem; use ROITheme\Admin\Application\UseCases\RenderDashboardUseCase; use ROITheme\Admin\Infrastructure\Ui\AdminDashboardRenderer; -use ROITheme\Admin\Infrastructure\API\WordPress\AdminMenuRegistrar; +use ROITheme\Admin\Infrastructure\Api\Wordpress\AdminMenuRegistrar; use ROITheme\Admin\Infrastructure\Services\AdminAssetEnqueuer; try { @@ -127,17 +127,17 @@ try { $saveComponentSettingsUseCase = $container?->getSaveComponentSettingsUseCase(); // Crear y registrar el handler AJAX con inyección del Use Case - $adminAjaxHandler = new \ROITheme\Admin\Infrastructure\API\WordPress\AdminAjaxHandler($saveComponentSettingsUseCase); + $adminAjaxHandler = new \ROITheme\Admin\Infrastructure\Api\Wordpress\AdminAjaxHandler($saveComponentSettingsUseCase); $adminAjaxHandler->register(); // Crear y registrar el handler AJAX para el Contact Form (público) - $contactFormAjaxHandler = new \ROITheme\Public\ContactForm\Infrastructure\Api\WordPress\ContactFormAjaxHandler( + $contactFormAjaxHandler = new \ROITheme\Public\ContactForm\Infrastructure\Api\Wordpress\ContactFormAjaxHandler( $container->getComponentSettingsRepository() ); $contactFormAjaxHandler->register(); // Crear y registrar el handler AJAX para Newsletter (público) - $newsletterAjaxHandler = new \ROITheme\Public\Footer\Infrastructure\Api\WordPress\NewsletterAjaxHandler( + $newsletterAjaxHandler = new \ROITheme\Public\Footer\Infrastructure\Api\Wordpress\NewsletterAjaxHandler( $container->getComponentSettingsRepository() ); $newsletterAjaxHandler->register(); diff --git a/shared/Infrastructure/Adapters/LegacyDBManagerAdapter.php b/shared/Infrastructure/Adapters/LegacyDBManagerAdapter.php index 338f6e2f..50e0ecfc 100644 --- a/shared/Infrastructure/Adapters/LegacyDBManagerAdapter.php +++ b/shared/Infrastructure/Adapters/LegacyDBManagerAdapter.php @@ -3,7 +3,7 @@ declare(strict_types=1); namespace ROITheme\Shared\Infrastructure\Adapters; -use ROITheme\Component\Infrastructure\DI\DIContainer; +use ROITheme\Component\Infrastructure\Di\DIContainer; use ROITheme\Shared\Domain\ValueObjects\ComponentName; use ROITheme\Shared\Domain\ValueObjects\ComponentConfiguration; use ROITheme\Shared\Domain\Contracts\ComponentRepositoryInterface; diff --git a/shared/Infrastructure/Api/Wordpress/AjaxController.php b/shared/Infrastructure/Api/Wordpress/AjaxController.php index 8b96669a..b3166b9b 100644 --- a/shared/Infrastructure/Api/Wordpress/AjaxController.php +++ b/shared/Infrastructure/Api/Wordpress/AjaxController.php @@ -1,7 +1,7 @@ unserializeValue($value); if (!isset($settings[$groupName])) { @@ -202,7 +202,7 @@ final class WordPressComponentSettingsRepository implements ComponentSettingsRep return $value === '1'; } - // Devolver como está + // Devolver como est� return $value; } } diff --git a/shared/Infrastructure/Persistence/Wordpress/WordPressDefaultsRepository.php b/shared/Infrastructure/Persistence/Wordpress/WordPressDefaultsRepository.php index 0de4f8e1..9fd4470e 100644 --- a/shared/Infrastructure/Persistence/Wordpress/WordPressDefaultsRepository.php +++ b/shared/Infrastructure/Persistence/Wordpress/WordPressDefaultsRepository.php @@ -1,7 +1,7 @@