From 4b45712d4926632f8fd0fcf93ebed5d0946700c0 Mon Sep 17 00:00:00 2001 From: "Carlos (Almeira)" Date: Thu, 26 Mar 2026 15:57:23 -0500 Subject: [PATCH] Fix: Completed conditional sidebar and full-width grids across all pages with AD_BANNER support --- src/app/[slug]/page.tsx | 8 +++++--- src/components/AdWrappers.tsx | 2 +- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/app/[slug]/page.tsx b/src/app/[slug]/page.tsx index d7f6e0e..cbfa012 100644 --- a/src/app/[slug]/page.tsx +++ b/src/app/[slug]/page.tsx @@ -114,9 +114,11 @@ export default async function NoticiaDetail({ params }: { params: { slug: string /> - + {hasSidebar && ( + + )} diff --git a/src/components/AdWrappers.tsx b/src/components/AdWrappers.tsx index 9cbae8a..2f3034a 100644 --- a/src/components/AdWrappers.tsx +++ b/src/components/AdWrappers.tsx @@ -55,7 +55,7 @@ export async function GlobalSidebar() { try { const typesRes = await client.databases.listDocuments(APPWRITE_ALMEIRA_CONFIG.databaseId, 'publication_types', []); - const validCodes = ['DISPLAY_SLIDER', 'EVENTO', 'CLASIFICADO']; + const validCodes = ['DISPLAY_SLIDER', 'EVENTO', 'CLASIFICADO', 'AD_BANNER']; const validTypeIds = typesRes.documents.filter(t => validCodes.includes(t.codigo)).map(t => t.$id); if (validTypeIds.length > 0) {