Skip to content

Commit

Permalink
refactor!: remove deprecated kirby-extended.blurry-placeholder opti…
Browse files Browse the repository at this point in the history
…on keys
  • Loading branch information
johannschopplich committed Jan 5, 2023
1 parent ca113ee commit 4c27ca6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tags/blurryimage.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@

if ($tag->file !== null) {
$dataUri = $tag->file->placeholderUri();
$preset = $tag->kirby()->option('johannschopplich.blurry-placeholder.kirbytag.srcset-preset') ?? $tag->kirby()->option('kirby-extended.blurry-placeholder.kirbytag.srcset-preset');
$sizes = $tag->kirby()->option('johannschopplich.blurry-placeholder.kirbytag.sizes') ?? $tag->kirby()->option('kirby-extended.blurry-placeholder.kirbytag.sizes', 'auto');
$preset = $tag->kirby()->option('johannschopplich.blurry-placeholder.kirbytag.srcset-preset');
$sizes = $tag->kirby()->option('johannschopplich.blurry-placeholder.kirbytag.sizes', 'auto');

$image = Html::img($dataUri, A::merge($imageAttr, [
'data-src' => $preset === null ? $tag->src : null,
Expand Down

0 comments on commit 4c27ca6

Please sign in to comment.