Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
mullema committed Apr 22, 2019
2 parents 34cb001 + 3c82cde commit 37675ab
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions fields/image-clip.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@
'fileResponse' => function (Kirby\Cms\File $file, $clip = null) {
if ($this->layout === 'list') {
$thumb = [
'width' => option('mullema.k3-image-clip.panelthumbs')['list']['width'] ?? 100,
'height' => option('mullema.k3-image-clip.panelthumbs')['list']['height'] ?? 100
'width' => option('panelthumbs')['list']['width'] ?? option('mullema.k3-image-clip.panelthumbs')['list']['width'] ?? 100,
'height' => option('panelthumbs')['list']['height'] ?? option('mullema.k3-image-clip.panelthumbs')['list']['height'] ?? 100
];
} else {
$thumb = [
'width' => option('mullema.k3-image-clip.panelthumbs')['cards']['width'] ?? 400,
'height' => option('mullema.k3-image-clip.panelthumbs')['cards']['width'] ?? 400
'width' => option('panelthumbs')['cards']['width'] ?? option('mullema.k3-image-clip.panelthumbs')['cards']['width'] ?? 400,
'height' => option('panelthumbs')['cards']['height'] ?? option('mullema.k3-image-clip.panelthumbs')['cards']['height'] ?? 400
];
}

Expand Down

0 comments on commit 37675ab

Please sign in to comment.