From fb68f2023c3201945762f99a36923c67f650a2c1 Mon Sep 17 00:00:00 2001 From: FrankZamora Date: Sat, 6 Dec 2025 22:26:19 -0600 Subject: [PATCH] fix(theme): improve post-grid spacing, pagination and archive templates MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Fix flexbox gap issue causing unequal horizontal/vertical spacing - Reset Bootstrap row/col margins to use only CSS gap property - Replace WordPress pagination with Bootstrap-style pagination - Add cta-post component to category.php and archive.php templates - Fix spacing controls UI with separate horizontal/vertical gap fields - Update FieldMapper with new gap_horizontal and gap_vertical attributes 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- .../FieldMapping/PostGridFieldMapper.php | 3 +- .../Infrastructure/Ui/PostGridFormBuilder.php | 97 ++++++++++--- .../Infrastructure/Ui/PostGridRenderer.php | 129 ++++++++++++++---- archive.php | 7 + category.php | 7 + 5 files changed, 195 insertions(+), 48 deletions(-) diff --git a/Admin/PostGrid/Infrastructure/FieldMapping/PostGridFieldMapper.php b/Admin/PostGrid/Infrastructure/FieldMapping/PostGridFieldMapper.php index d7508f60..8dd935d3 100644 --- a/Admin/PostGrid/Infrastructure/FieldMapping/PostGridFieldMapper.php +++ b/Admin/PostGrid/Infrastructure/FieldMapping/PostGridFieldMapper.php @@ -81,7 +81,8 @@ final class PostGridFieldMapper implements FieldMapperInterface 'postGridPaginationActiveColor' => ['group' => 'colors', 'attribute' => 'pagination_active_color'], // Spacing - 'postGridGridGap' => ['group' => 'spacing', 'attribute' => 'grid_gap'], + 'postGridGapHorizontal' => ['group' => 'spacing', 'attribute' => 'gap_horizontal'], + 'postGridGapVertical' => ['group' => 'spacing', 'attribute' => 'gap_vertical'], 'postGridCardPadding' => ['group' => 'spacing', 'attribute' => 'card_padding'], 'postGridSectionMarginTop' => ['group' => 'spacing', 'attribute' => 'section_margin_top'], 'postGridSectionMarginBottom' => ['group' => 'spacing', 'attribute' => 'section_margin_bottom'], diff --git a/Admin/PostGrid/Infrastructure/Ui/PostGridFormBuilder.php b/Admin/PostGrid/Infrastructure/Ui/PostGridFormBuilder.php index c9c4e396..4ad8a83f 100644 --- a/Admin/PostGrid/Infrastructure/Ui/PostGridFormBuilder.php +++ b/Admin/PostGrid/Infrastructure/Ui/PostGridFormBuilder.php @@ -207,11 +207,11 @@ final class PostGridFormBuilder // Columns desktop $colsDesktop = $this->renderer->getFieldValue($componentId, 'layout', 'columns_desktop', '3'); $html .= '
'; - $html .= '