Skip to content

Remove ACF TIMBER BLOCKS - #29

Merged
bartnovak merged 1 commit into
masterfrom
ver30
Aug 5, 2026
Merged

bartnovak merged 1 commit into
masterfrom
ver30

Conversation

@bartnovak

@bartnovak bartnovak commented Aug 5, 2026 •

Copy link
Copy Markdown
Contributor

Summary by CodeRabbit

  • New Features

    • Added native WordPress and ACF block support using PHP-based rendering.
    • CTA blocks now display configured headings and content with proper formatting.
    • Filtering Posts blocks now include filter fields, a submit button, and results area.
    • Block generation now creates registration, metadata, and rendering files automatically.
    • Standard WordPress theme features and supports are now enabled.
  • Documentation

    • Updated project documentation to describe the native WordPress block-based theme architecture.
  • Refactor

    • Removed legacy Timber- and Twig-based theme integration.

@bartnovak
bartnovak merged commit 6b7ca1b into master Aug 5, 2026
0 of 3 checks passed
@coderabbitai

coderabbitai Bot commented Aug 5, 2026 •

Copy link
Copy Markdown

Review Change Stack

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 6f6adfd2-600a-4d2d-9df1-f32fa71e0cdc

📥 Commits

Reviewing files that changed from the base of the PR and between 5bb5094 and ffa786f.

📒 Files selected for processing (16)
  • README.md
  • web/app/mu-plugins/juniper-commands.php
  • web/app/themes/juniper-theme/blocks/cta/functions.php
  • web/app/themes/juniper-theme/blocks/cta/render.php
  • web/app/themes/juniper-theme/blocks/filteringposts/functions.php
  • web/app/themes/juniper-theme/blocks/filteringposts/render.php
  • web/app/themes/juniper-theme/class-startersite.php
  • web/app/themes/juniper-theme/composer.json
  • web/app/themes/juniper-theme/functions.php
  • web/app/themes/juniper-theme/inc/Ajax/JuniperAjaxFilteringposts.php
  • web/app/themes/juniper-theme/inc/Blocks/JuniperBlocks.php
  • web/app/themes/juniper-theme/inc/gutenberg-styles.php
  • web/app/themes/juniper-theme/inc/pattern-categories.php
  • web/app/themes/juniper-theme/static/no-timber.html
  • web/app/themes/juniper-theme/views/blocks/.gitkeep
  • web/app/themes/juniper-theme/views/blocks/cta.twig

Walkthrough

Juniper removes Timber integration and dependencies. The theme now uses native WordPress supports, ACF block registration, and PHP render templates. The block command scaffolds this structure, and existing CTA and Filtering Posts blocks use it.

Changes

Theme foundation

Layer / File(s) Summary
Remove Timber theme integration
web/app/themes/juniper-theme/composer.json, web/app/themes/juniper-theme/functions.php, web/app/themes/juniper-theme/class-startersite.php, web/app/themes/juniper-theme/static/no-timber.html, web/app/themes/juniper-theme/views/blocks/cta.twig, web/app/themes/juniper-theme/inc/...
Timber dependencies, initialization, StarterSite, fallback output, and Twig integration are removed. Standard WordPress theme supports are registered. Related formatting-only changes remain unchanged in behavior.

Block scaffolding

Layer / File(s) Summary
Generate native ACF blocks
web/app/mu-plugins/juniper-commands.php, README.md
The command generates escaped block metadata, guarded ACF registration, PHP render.php templates, and support settings. The README describes native ACF blocks and PHP rendering.

Existing block migration

Layer / File(s) Summary
Migrate CTA and Filtering Posts blocks
web/app/themes/juniper-theme/blocks/cta/*, web/app/themes/juniper-theme/blocks/filteringposts/*
The blocks register through acf/init and render through PHP templates. The CTA template renders escaped fields. The Filtering Posts template renders a translated filter form and results container.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch ver30

Warning

There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure.

🔧 PHPStan (2.2.7)

Composer install failed: dependency resolution error. Check composer.json and composer.lock for version constraints.


Comment @coderabbitai help to get the list of available commands.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant