diff --git a/README.md b/README.md index fa2a754..e11977d 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ This package helps you integrate Statamic within your Rapidez project by adding - Products, categories, brands and pages collections as starting point so you can extend this however you'd like - Route merging so Statamic routes work as fallback - Page builder fieldset with a product slider, content, image and form component -- Responsive images with [spatie/statamic-responsive-images](https://github.com/spatie/statamic-responsive-images) +- Responsive images with Glide through [justbetter/statamic-glide-directive](https://github.com/justbetter/statamic-glide-directive) - Breadcrumbs for pages - Globals available in all views - Meta title, description and automatic alternate hreflang link tags @@ -225,6 +225,7 @@ Eventy::addFilter('rapidez.statamic.brand.entry.data', fn($brand) => [ ); ``` + ### Globals Globals will be available through the `$globals` variable. diff --git a/composer.json b/composer.json index 4878072..9734382 100644 --- a/composer.json +++ b/composer.json @@ -33,7 +33,7 @@ "php": "^8.1|^8.2", "justbetter/statamic-eloquent-driver-globalset-migration-generator": "^0.1.0", "rapidez/blade-directives": "^0.6", - "spatie/statamic-responsive-images": "^5.0", + "justbetter/statamic-glide-directive": "^2.1", "statamic-rad-pack/runway": "^7.6", "statamic/cms": "^5.0", "statamic/eloquent-driver": "^4.9", diff --git a/resources/views/stack/head.blade.php b/resources/views/stack/head.blade.php deleted file mode 100644 index 39c5163..0000000 --- a/resources/views/stack/head.blade.php +++ /dev/null @@ -1,11 +0,0 @@ - diff --git a/resources/views/vendor/responsive-images/responsiveImage.blade.php b/resources/views/vendor/responsive-images/responsiveImage.blade.php deleted file mode 100644 index 3fd9313..0000000 --- a/resources/views/vendor/responsive-images/responsiveImage.blade.php +++ /dev/null @@ -1,35 +0,0 @@ - - @foreach (($breakpoints ?? []) as $breakpoint) - @foreach($breakpoint->sources() ?? [] as $source) - @php - $srcSet = $source->getSrcset(); - @endphp - - @if($srcSet !== null) - getMimeType()) type="{{ $type }}" @endif - @if($media = $source->getMediaString()) media="{{ $media }}" @endif - srcset="{{ $srcSet }}" - @if($includePlaceholder ?? false) sizes="1px" @endif - > - @endif - @endforeach - @endforeach - - {{ $asset['alt'] ?? $asset['title'] }} - diff --git a/src/RapidezStatamicServiceProvider.php b/src/RapidezStatamicServiceProvider.php index eac998b..26ef166 100644 --- a/src/RapidezStatamicServiceProvider.php +++ b/src/RapidezStatamicServiceProvider.php @@ -13,7 +13,6 @@ use Illuminate\Support\Facades\View; use Illuminate\Support\Facades\Cache; use Illuminate\Support\Facades\Event; -use Illuminate\Support\Facades\Artisan; use Rapidez\Statamic\Tags\Alternates; use Statamic\Events\GlobalSetDeleted; use Illuminate\Support\ServiceProvider; @@ -212,7 +211,7 @@ public function bootUtilities() : static public function bootStack() : static { if (! $this->app->runningInConsole()) { - View::startPush('head', view('rapidez-statamic::stack.head')); + View::startPush('head', view('statamic-glide-directive::partials.head')); } return $this;