From 135e19a9e30e3e04619d7e7105802530d5001f1f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Fromme?= Date: Thu, 22 Feb 2024 11:44:26 +0100 Subject: [PATCH] feat: render included services conditionally in product teaser --- .../Private/Partials/Product/Teaser.html | 47 +++++++++++-------- 1 file changed, 28 insertions(+), 19 deletions(-) diff --git a/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Product/Teaser.html b/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Product/Teaser.html index 52280a62..aa7f5619 100644 --- a/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Product/Teaser.html +++ b/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Product/Teaser.html @@ -1,6 +1,7 @@ @@ -70,6 +71,7 @@ + {f:variable(name: 'including', value: '{f:render(section: \'Including\', arguments: \'{_all}\') -> v:format.trim()}')} @@ -80,26 +82,13 @@ {region.name}
- {ep:nightsOptions(options: nights, daytrip: daytrip)} inkl. + {ep:nightsOptions(options: nights, daytrip: daytrip)}{f:if(condition: including, then: ' inkl.')}
-
    -
  • - {ep:icon(class: 'w-6 h-6 text-ep-primary-light', icon: 'check')} - {f:if(condition: '{season} == "s"', then: 'Bergbahnticket', else: 'Skipass')} -
  • - -
  • - {ep:icon(class: 'w-6 h-6 text-ep-primary-light', icon: 'check')} - {product.feature} -
  • -
    - -
  • - {ep:icon(class: 'w-6 h-6 text-ep-primary-light', icon: 'check')} - Verpflegung -
  • -
    -
+ +
    + {including -> f:format.raw()} +
+
@@ -113,4 +102,24 @@ + + +
  • + {ep:icon(class: 'w-6 h-6 text-ep-primary-light', icon: 'check')} + Skipass +
  • +
    + +
  • + {ep:icon(class: 'w-6 h-6 text-ep-primary-light', icon: 'check')} + {product.feature} +
  • +
    + +
  • + {ep:icon(class: 'w-6 h-6 text-ep-primary-light', icon: 'check')} + Verpflegung +
  • +
    +