Streamline cropvariant definitions

This commit is contained in:
Björn Fromme
2020-05-28 20:31:12 +02:00
parent 1a8dccae2d
commit 8de34655eb
9 changed files with 12 additions and 12 deletions
@@ -128,7 +128,7 @@ call_user_func(function() {
'allowedAspectRatios' => [
'header' => [
'title' => 'Header Startseite',
'value' => 2.0571,
'value' => 1440 / 700,
],
],
],
@@ -111,7 +111,7 @@ call_user_func(function() {
'allowedAspectRatios' => [
'header' => [
'title' => 'Header Startseite',
'value' => 2.0571,
'value' => 1440 / 700,
],
],
],
@@ -68,11 +68,11 @@ call_user_func(function() {
'allowedAspectRatios' => [
'headerDefault' => [
'title' => 'Header standard',
'value' => 2.63333333333333,
'value' => 1440 / 420,
],
'headerLarge' => [
'title' => 'Header groß',
'value' => 2.0571,
'value' => 1440 / 700,
],
],
],
@@ -285,7 +285,7 @@ return [
'allowedAspectRatios' => [
'teaser' => [
'title' => 'Teaser',
'value' => 1.7857,
'value' => 450 / 250,
],
],
],
@@ -325,7 +325,7 @@ return [
'allowedAspectRatios' => [
'teaser' => [
'title' => 'Teaser',
'value' => 1.7857,
'value' => 450 / 250,
],
],
],
@@ -365,7 +365,7 @@ return [
'allowedAspectRatios' => [
'teaser' => [
'title' => 'Header',
'value' => 2.63333333333333,
'value' => 1440 / 700,
],
],
],
@@ -4,7 +4,7 @@
<f:spaceless>
<f:if condition="{activity.imageHeader.uid}">
<f:then>
{f:uri.image(image: activity.imageHeader, cropVariant: 'default', width: '1440', maxHeight: '700') -> v:variable.set(name: 'headerImage')}
{f:uri.image(image: activity.imageHeader, width: '1440') -> v:variable.set(name: 'headerImage')}
</f:then>
<f:else>
{f:uri.image(src: settings.activityDefaultHeaderImage, width: '1440') -> v:variable.set(name: 'headerImage')}
@@ -3,7 +3,7 @@
<f:spaceless>
<f:if condition="{traveltype.imageHeader.uid}">
<f:then>
{f:uri.image(image: traveltype.imageHeader, cropVariant: 'default', width: '1440', maxHeight: '700') -> v:variable.set(name: 'headerImage')}
{f:uri.image(image: traveltype.imageHeader, width: '1440') -> v:variable.set(name: 'headerImage')}
</f:then>
<f:else>
{v:variable.set(name: 'headerImage', value: 'https://placehold.it/1440x700')}
@@ -34,7 +34,7 @@
style="background-image: url({f:uri.image(image: image, cropVariant: 'default', width: '1440', maxHeight: '700')})"></a>
</f:then>
<f:else>
<div class="herounit__image" style="background-image: url({f:uri.image(image: image, cropVariant: 'default', width: '1440', maxHeight: '700')})"></div>
<div class="herounit__image" style="background-image: url({f:uri.image(image: image, width: '1440')})"></div>
</f:else>
</f:if>
</f:for>
@@ -4,7 +4,7 @@
<f:spaceless>
<f:if condition="{offer.imageHeader.uid}">
<f:then>
{f:uri.image(image: offer.imageHeader, cropVariant: 'default', width: '1440', maxHeight: '700') -> v:variable.set(name: 'headerImage')}
{f:uri.image(image: offer.imageHeader, width: '1440') -> v:variable.set(name: 'headerImage')}
</f:then>
<f:else>
{v:variable.set(name: 'headerImage', value: 'https://placehold.it/1440x700')}
@@ -10,7 +10,7 @@
<f:spaceless>
<f:if condition="{image.0.uid}">
<f:then>
{f:uri.image(image: image.0, cropVariant: 'default', width: '1440', maxHeight: '700') -> v:variable.set(name: 'headerImage')}
{f:uri.image(image: image.0, width: '1440') -> v:variable.set(name: 'headerImage')}
</f:then>
<f:else>
{v:variable.set(name: 'headerImage', value: 'https://placehold.it/1440x700')}