-
Notifications
You must be signed in to change notification settings - Fork 0
feat: update templates after changes in whitelabel #21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
laravdiemen
merged 1 commit into
main
from
feat/update-templates-after-changes-whitelabel
Jan 30, 2026
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,51 @@ | ||
| # WP Events | ||
|
|
||
| Use the WP Acorn scaffold command to get started: | ||
|
|
||
| ```shell | ||
| wp acorn scaffold:wp-events | ||
| ``` | ||
|
|
||
| After scaffolding, follow these steps: | ||
|
|
||
| ## 1. Install dependencies | ||
|
|
||
| ```shell | ||
| composer require yard/wp-events | ||
| ``` | ||
|
|
||
| ## 2. Run the Acorn WP-CLI command to discover this package | ||
|
|
||
| ```shell | ||
| wp acorn package:discover | ||
| ``` | ||
|
|
||
| ## 3. Update the Card component | ||
|
|
||
| Add the following parameters to the `__construct` method in the `Cards.php` file: | ||
|
|
||
| ```php | ||
| public function __construct( | ||
| // existing params... | ||
| public ?string $eventDateTime = null, | ||
| public ?string $eventLocation = null, | ||
| ) { | ||
| // existing code... | ||
| } | ||
| ``` | ||
|
|
||
| Add the following line to the view of the Card component: | ||
|
|
||
| ```php | ||
| <x-meta.event :eventDateTime="$eventDateTime" :eventLocation="$eventLocation" /> | ||
| ``` | ||
|
|
||
| ## 4. Import css file | ||
|
|
||
| Add the following import to your frontend stylesheet: | ||
|
|
||
| ```css | ||
| @import './blocks/add-event-to-calendar/shared'; | ||
| ``` | ||
|
|
||
| Everything should now be set up and ready to use! | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 3 additions & 1 deletion
4
stubs/resources/views/blocks/FacetWP/loops/events-loop.blade.php
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 3 additions & 1 deletion
4
stubs/resources/views/blocks/FacetWP/loops/knowledgebase-loop.blade.php
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 3 additions & 1 deletion
4
stubs/resources/views/blocks/FacetWP/loops/news-loop.blade.php
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 4 additions & 2 deletions
6
stubs/resources/views/blocks/FacetWP/loops/project-loop.blade.php
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 0 additions & 18 deletions
18
stubs/resources/views/partials/content-single-knowledgebase.blade.php
This file was deleted.
Oops, something went wrong.
23 changes: 0 additions & 23 deletions
23
stubs/resources/views/partials/content-single-news.blade.php
This file was deleted.
Oops, something went wrong.
7 changes: 0 additions & 7 deletions
7
stubs/resources/views/partials/content-single-person.blade.php
This file was deleted.
Oops, something went wrong.
53 changes: 0 additions & 53 deletions
53
stubs/resources/views/partials/content-single-project.blade.php
This file was deleted.
Oops, something went wrong.
13 changes: 0 additions & 13 deletions
13
stubs/resources/views/partials/content-single-yard-event-schedule.blade.php
This file was deleted.
Oops, something went wrong.
26 changes: 0 additions & 26 deletions
26
stubs/resources/views/partials/content-single-yard-event.blade.php
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,24 @@ | ||
| <x-layout.article> | ||
| <x-slot:article> | ||
| <x-brave-back-button /> | ||
|
|
||
| <h1>{!! $postData->title() !!}</h1> | ||
|
|
||
| {!! $postData->content() !!} | ||
|
|
||
| <x-social-share /> | ||
| </x-slot:article> | ||
|
|
||
| <x-slot:bottom> | ||
| @if ($postData->related()->isNotEmpty()) | ||
| <h2 class="alignwide mt-12! xl:mt-16! mb-0">Bekijk ook</h2> | ||
| <div class="@container alignwide"> | ||
| <div class="@2xl:grid-cols-3 @2xl:mt-8 mb-2 mt-4 grid gap-4 lg:gap-6"> | ||
| @foreach ($postData->related() as $related) | ||
| <x-card.knowledgebase :postData="$related" /> | ||
| @endforeach | ||
| </div> | ||
| </div> | ||
| @endif | ||
| </x-slot:bottom> | ||
| </x-layout.article> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,29 @@ | ||
| <x-layout.article> | ||
| <x-slot:article> | ||
| <x-brave-back-button /> | ||
|
|
||
| <h1>{!! $postData->title() !!}</h1> | ||
|
|
||
| <time class="my-4 block text-gray-500 md:my-6" datetime="{{ $postData->date('Y-m-d') }}"> | ||
| <i class="fa-light fa-clock mr-1 sm:mr-2" aria-hidden="true"></i> | ||
| {{ $postData->date('j F Y') }} | ||
| </time> | ||
|
|
||
| {!! $postData->content() !!} | ||
|
|
||
| <x-social-share /> | ||
| </x-slot:article> | ||
|
|
||
| <x-slot:bottom> | ||
| @if ($postData->related()->isNotEmpty()) | ||
| <h2 class="alignwide mt-12! xl:mt-16! mb-0">{{ __('Het laatste nieuws', 'sage') }}</h2> | ||
| <div class="@container alignwide"> | ||
| <div class="@2xl:grid-cols-3 @2xl:mt-8 mb-2 mt-4 grid gap-4 lg:gap-6"> | ||
| @foreach ($postData->related() as $related) | ||
| <x-card.news :postData="$related" /> | ||
| @endforeach | ||
| </div> | ||
| </div> | ||
| @endif | ||
| </x-slot:bottom> | ||
| </x-layout.article> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| <x-layout.article> | ||
| <x-slot:article> | ||
| <x-brave-back-button /> | ||
|
|
||
| <h1>{!! $postData->title() !!}</h1> | ||
|
|
||
| <x-meta.person class="mb-6" :email="$postData->email" :phone="$postData->phone" /> | ||
|
|
||
| {!! $postData->content() !!} | ||
| </x-slot:article> | ||
| </x-layout.article> |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Voeg ook een referentie naar deze doc toe in de ScaffoldCommand! Dan ziet degene die het scaffold het meteen.
Zie https://github.com/yardinternet/brave-scaffold/blob/main/src/Console/ElasticsearchScaffoldCommand.php#L34-L35