From 2dffa36a2453d9b968d863c9821e5b9b02239315 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Fromme?= Date: Sat, 21 Aug 2021 20:38:34 +0200 Subject: [PATCH] WIP Migrate teasers --- .../Partials/Product/SearchresultItem.html | 127 ------- .../Private/Partials/Product/Teaser.html | 123 +++--- .../Templates/Product/Teasergroup.html | 51 +-- .../Private/Templates/Searchbar/Index.html | 350 +++++++++--------- 4 files changed, 254 insertions(+), 397 deletions(-) delete mode 100644 public/typo3conf/ext/ep_theme/Resources/Private/Partials/Product/SearchresultItem.html diff --git a/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Product/SearchresultItem.html b/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Product/SearchresultItem.html deleted file mode 100644 index 0a3af260..00000000 --- a/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Product/SearchresultItem.html +++ /dev/null @@ -1,127 +0,0 @@ - - -
-
- - - - - - - {item.hotel.images0.alt} - - -
- {section.concept.name} -
-
-
-
- - {item.region.name} - -
{item.product.name} -
-
- - {item.hotel.name} - - - - Kategorie {item.hotel.category} - - -
-
    - -
  • - {item.hotel.fact} -
  • -
    - -
  • - {item.product.fact} -
  • -
    - - -
  • - {item.region.feature} -
  • -
    - - -
  • - {item.region.fact} -
  • -
    -
    -
    -
-
    -
  • - Skipass -
  • - -
  • - {item.board} -
  • -
    - -
  • - {item.product.feature} -
  • -
    -
-
-
-
- - {f:if(condition: '{item.dates -> f:count()} > 1', then: 'Zeitraum', else: 'Termin')} - - - {dateRange} - - - - - - - {item.dates -> f:count()} {f:if(condition: '{item.dates -> f:count()} > 1', then: 'Termine', else: 'Termin')} - - - - - -
- - {f:if(condition: item.daytrip, then: 'Tageweise buchbar', else: nightsOptions)} - -
- -
- -
- - 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 8a6cca04..beaa9b08 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,77 +1,76 @@ -
- - - -
+ + + +
- -
-
- {teaser.country.name} - -
- -
{teaser.concept.name}
-
-
-
-
- - - {teaser.product.name -> f:format.nl2br()} - {teaser.region.name} - - - {teaser.region.name} - {teaser.product.name -> f:format.nl2br()}{f:if(condition: teaser.product.subline, then: '
{teaser.product.subline}')}
-
-
+ + +
+ +
+
+ + +
-
- - {ep:dateRange(dateFrom: teaser.minDateStart, dateTo: teaser.maxDateEnd, includeLabel: 0, format: 'd.m.y')} ({teaser.dates -> f:count()} Termine)
- {ep:nightsOptions(options: teaser.nights, daytrip: teaser.daytrip)}, inkl. {f:if(condition: '{teaser.season} == "s"', then: 'Bergbahnticket', else: 'Skipass')} + + {teaser.concept.name} -
- +
+ +
+
+
+ + +
+ +
+
{teaser.product.name}
+
{teaser.region.name}
+
{ep:nightsOptions(options: teaser.nights, daytrip: teaser.daytrip)}
+
    +
  • + {f:if(condition: '{teaser.season} == "s"', then: 'Bergbahnticket', else: 'Skipass')} +
  • +
  • + {f:if(condition: '{teaser.season} == "s"', then: 'Bergbahnticket', else: 'Skipass')} +
  • +
  • + {f:if(condition: '{teaser.season} == "s"', then: 'Bergbahnticket', else: 'Skipass')} +
  • +
  • + {f:if(condition: '{teaser.season} == "s"', then: 'Bergbahnticket', else: 'Skipass')} +
  • +
+
+ ab {teaser.minPrice} € + p. P. / inkl. {f:if(condition: '{teaser.season} == "s"', then: 'Bergbahnticket', else: 'Skipass')}
-
-
- {teaser.product.teaser -> f:format.html()} -
- -
diff --git a/public/typo3conf/ext/ep_theme/Resources/Private/Templates/Product/Teasergroup.html b/public/typo3conf/ext/ep_theme/Resources/Private/Templates/Product/Teasergroup.html index d72fa418..b7b1364a 100644 --- a/public/typo3conf/ext/ep_theme/Resources/Private/Templates/Product/Teasergroup.html +++ b/public/typo3conf/ext/ep_theme/Resources/Private/Templates/Product/Teasergroup.html @@ -1,39 +1,22 @@ + xmlns:f="http://typo3.org/ns/fluid/ViewHelpers"> - -
+
- - -
-
-
    - -
-
-
-
- - - -
+ + -

+

Alle anzeigen -

+
@@ -41,18 +24,20 @@ - - - + + + - - -
  • + + + +
    + -
  • -
    -
    -
    + +
    + +
    diff --git a/public/typo3conf/ext/ep_theme/Resources/Private/Templates/Searchbar/Index.html b/public/typo3conf/ext/ep_theme/Resources/Private/Templates/Searchbar/Index.html index d8b6a6e8..05c82cac 100644 --- a/public/typo3conf/ext/ep_theme/Resources/Private/Templates/Searchbar/Index.html +++ b/public/typo3conf/ext/ep_theme/Resources/Private/Templates/Searchbar/Index.html @@ -33,204 +33,204 @@ data-datepicker-min-date-value="{f:format.date(date: 'now', format: 'Y-m-d')}" data-action="collapse:click:outside->collapse#close searchbar:input@window->collapse#close" data-collapse-collapsed-value="true"> -
    - - value="{ep:dateRange(dateFrom: searchParams.dateFrom, dateTo: searchParams.dateTo, includeLabel: 0)}" - - data-searchbar-target="dateRangeLabel"/> - - - -