From 567645542b2aff74768d804373b24a636ce2e658 Mon Sep 17 00:00:00 2001 From: Lara van Diemen Date: Fri, 30 Jan 2026 13:24:33 +0100 Subject: [PATCH] chore: some extra chanages that I forgot --- docs/elasticsearch.md | 6 +++--- src/ScaffoldServiceProvider.php | 4 ++-- .../header/reactive-search-bar.blade.php | 0 3 files changed, 5 insertions(+), 5 deletions(-) rename stubs/resources/views/{partials => components}/header/reactive-search-bar.blade.php (100%) diff --git a/docs/elasticsearch.md b/docs/elasticsearch.md index cfa5650..07379ce 100644 --- a/docs/elasticsearch.md +++ b/docs/elasticsearch.md @@ -50,13 +50,13 @@ return [ ## 5. Add the reactive search bar to the header -Replace the current `@include('partials.header.search-bar')` of the search-bar with the following in the `header.blade.php`: +Replace the current `` of the search-bar with the following in the `header.blade.php`: ```blade @if (is_plugin_active('yard-elasticsearch/yard-elasticsearch.php')) - @include('partials.header.reactive-search-bar') + @else - @include('partials.header.search-bar') + @endif ``` diff --git a/src/ScaffoldServiceProvider.php b/src/ScaffoldServiceProvider.php index 05040e6..751759d 100644 --- a/src/ScaffoldServiceProvider.php +++ b/src/ScaffoldServiceProvider.php @@ -46,7 +46,7 @@ public function bootingPackage(): void __DIR__ . '/../stubs/resources/scripts/reactive-search/views/search-input/SearchInput.jsx' => resource_path('scripts/reactive-search/views/search-input/SearchInput.jsx'), __DIR__ . '/../stubs/resources/scripts/reactive-search/views/search-page/search-page.css' => resource_path('scripts/reactive-search/views/search-page/search-page.css'), __DIR__ . '/../stubs/resources/scripts/reactive-search/views/search-page/SearchPage.jsx' => resource_path('scripts/reactive-search/views/search-page/SearchPage.jsx'), - __DIR__ . '/../stubs/resources/views/partials/header/reactive-search-bar.blade.php' => resource_path('views/partials/header/reactive-search-bar.blade.php'), + __DIR__ . '/../stubs/resources/views/components/header/reactive-search-bar.blade.php' => resource_path('views/components/header/reactive-search-bar.blade.php'), __DIR__ . '/../stubs/resources/views/reactive-search-page.blade.php' => resource_path('views/reactive-search-page.blade.php'), ], 'elasticsearch'); @@ -122,7 +122,7 @@ public function bootingPackage(): void __DIR__ . '/../stubs/resources/views/components/meta/event.blade.php' => resource_path('views/components/meta/event.blade.php'), __DIR__ . '/../stubs/resources/views/vendor/wp-events/blocks/event-info.blade.php' => resource_path('views/vendor/wp-events/blocks/event-info.blade.php'), __DIR__ . '/../stubs/resources/views/single-yard-event-schedule.blade.php' => resource_path('views/single-yard-event-schedule.blade.php'), - __DIR__ . '/../stubs/resources/views/single-yard-event.blade.php' => resource_path('views/partials/content-single-yard-event.blade.php'), + __DIR__ . '/../stubs/resources/views/single-yard-event.blade.php' => resource_path('views/single-yard-event.blade.php'), ], 'wp-events'); } } diff --git a/stubs/resources/views/partials/header/reactive-search-bar.blade.php b/stubs/resources/views/components/header/reactive-search-bar.blade.php similarity index 100% rename from stubs/resources/views/partials/header/reactive-search-bar.blade.php rename to stubs/resources/views/components/header/reactive-search-bar.blade.php