From 36d5cf56de112ec0f136522caffd8f4e16c443cc Mon Sep 17 00:00:00 2001 From: FrankZamora Date: Thu, 4 Dec 2025 11:46:21 -0600 Subject: [PATCH] =?UTF-8?q?fix(wrappers):=20eliminar=20wrappers=20vac?= =?UTF-8?q?=C3=ADos=20y=20corregir=20exclusiones=20AdSense=20(Plan=2099.15?= =?UTF-8?q?)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## Problema - Componentes deshabilitados/excluidos dejaban wrappers HTML vacíos (navbar 32px, sidebar col-lg-3 294px) - AdSense ignoraba exclusiones por URL pattern en grupo _exclusions ## Solución Plan 99.15 (Clean Architecture) ### Domain Layer - WrapperVisibilityCheckerInterface: contrato para verificar visibilidad ### Application Layer - CheckWrapperVisibilityUseCase: orquesta verificaciones de visibilidad ### Infrastructure Layer - WordPressComponentVisibilityRepository: consulta BD + PageVisibilityHelper - WrapperVisibilityService: facade estático para templates - BodyClassHooksRegistrar: agrega clases CSS failsafe al body ### Templates modificados - header.php: renderizado condicional de + \ No newline at end of file diff --git a/page.php b/page.php index 4717c5a4..fc34d719 100644 --- a/page.php +++ b/page.php @@ -26,11 +26,19 @@ if (function_exists('roi_render_component')) { ?> +
- -
+ +
-
+
+
+
diff --git a/single.php b/single.php index ac78d814..fc08b89a 100644 --- a/single.php +++ b/single.php @@ -24,11 +24,19 @@ if (function_exists('roi_render_component')) { ?> +
- -
+ +
-
+
+
+