Remove unused and defunct code
This commit is contained in:
@@ -121,13 +121,6 @@ class PageLayoutView implements PageLayoutViewDrawItemHookInterface
|
||||
}
|
||||
$itemContent = '<strong>Störer ' . $size . '</strong>';
|
||||
break;
|
||||
case 'deal_of_the_week':
|
||||
if ((int) $row['tx_eptheme_context_product'] > 0) {
|
||||
$drawItem = false;
|
||||
$product = BackendUtility::getRecord('tx_epproducts_domain_model_product', $row['tx_eptheme_context_product']);
|
||||
$itemContent = '<strong>Deal der Woche</strong><br />' . $product['name'];
|
||||
}
|
||||
break;
|
||||
case 'lineup':
|
||||
$drawItem = false;
|
||||
$itemContent = '<strong>Lineup</strong><br />' . $row['tx_eptheme_lineup'] . ' Einträge';
|
||||
|
||||
@@ -39,12 +39,12 @@ class ProductViewHelper extends AbstractViewHelper
|
||||
{
|
||||
use CompileWithRenderStatic;
|
||||
|
||||
public function initializeArgument()
|
||||
public function initializeArguments()
|
||||
{
|
||||
parent::initializeArguments();
|
||||
|
||||
$this->registerArgument('product', Product::class, 'The product', true);
|
||||
$this->registerArgument('hotel', Hotel::class, 'The hotel');
|
||||
$this->registerArgument('hotel', 'mixed', 'The hotel');
|
||||
$this->registerArgument('linkHotel', 'bool', 'Whether to link the hotel', false, false);
|
||||
$this->registerArgument('referringPageUid', 'int', 'Uid of the referring page');
|
||||
$this->registerArgument('defaultDetailPageUid', 'int', 'Uid of default page for product details');
|
||||
|
||||
+1
-2
@@ -64,8 +64,7 @@ call_user_func(function() {
|
||||
|
||||
$GLOBALS['TCA']['tt_content']['types']['deal_of_the_week'] = [
|
||||
'showitem' => '
|
||||
--palette--;' . $frontendLanguageFilePrefix . 'palette.general;general, header,
|
||||
--palette--;Kontext, tx_eptheme_context_product, tx_eptheme_context_hotel, header_link, bodytext,
|
||||
--palette--;' . $frontendLanguageFilePrefix . 'palette.general;general, header, header_link, bodytext,
|
||||
--div--;' . $frontendLanguageFilePrefix . 'tabs.appearance,
|
||||
layout;' . $frontendLanguageFilePrefix . 'layout_formlabel,
|
||||
--div--;' . $frontendLanguageFilePrefix . 'tabs.access,
|
||||
|
||||
-3
@@ -1,9 +1,6 @@
|
||||
tt_content.deal_of_the_week =< lib.contentElement
|
||||
tt_content.deal_of_the_week {
|
||||
templateName = DealOfTheWeek
|
||||
dataProcessing {
|
||||
10 = EP\EpTheme\DataProcessing\TeaserProcessor
|
||||
}
|
||||
}
|
||||
|
||||
tt_content.disturber =< lib.contentElement
|
||||
|
||||
+3
-27
@@ -22,37 +22,13 @@
|
||||
<div>
|
||||
<div class="teaser-title">Angebot</div>
|
||||
<div class="content">
|
||||
<f:if condition="{product}">
|
||||
<f:then>
|
||||
<span class="headline headline--4">{product.name}</span>
|
||||
<span>{product.region.name}</span>
|
||||
</f:then>
|
||||
<f:else>
|
||||
<span class="headline headline--4">{data.header}</span>
|
||||
</f:else>
|
||||
</f:if>
|
||||
<span class="headline headline--4">{data.header}</span>
|
||||
<hr>
|
||||
<f:if condition="{data.bodytext}">
|
||||
<f:then>
|
||||
{data.bodytext -> f:format.nl2br()}
|
||||
</f:then>
|
||||
<f:else>
|
||||
<p>{date.nights} Nächte{f:if(condition: product.skipassIncluded, then: ' inkl. Skipass')}<br>z. B. am {date.dateStart -> f:format.date(format: 'd.m.Y')}</p>
|
||||
</f:else>
|
||||
</f:if>
|
||||
<f:if condition="{product}">
|
||||
<hr>
|
||||
<p><strong>ab {date.minPrice}€</strong>{f:if(condition: date.pseudoPrice, then: ' <s>{date.pseudoPrice} €</s>')}</p>
|
||||
</f:if>
|
||||
{data.bodytext -> f:format.nl2br()}
|
||||
</div>
|
||||
</div>
|
||||
<f:if condition="{data.header_link}">
|
||||
<f:then>
|
||||
<a class="btn btn-warning" href="{f:uri.typolink(parameter: data.header_link)}" title="{product.name}">Details</a>
|
||||
</f:then>
|
||||
<f:else>
|
||||
<a class="btn btn-warning" href="{ep:uri.product(product: product, hotel: hotel, linkHotel: linkHotel)}" title="{product.name}">Details</a>
|
||||
</f:else>
|
||||
<a class="btn btn-warning" href="{f:uri.typolink(parameter: data.header_link)}" title="{product.name}">Details</a>
|
||||
</f:if>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user