forked from extcode/cart_products
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[TASK] extcode#10 - extract reaser plugin
- Loading branch information
Daniel Lorenz
committed
Aug 27, 2018
1 parent
c441e0e
commit f02a0cc
Showing
13 changed files
with
208 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
<T3DataStructure> | ||
<sheets> | ||
<sDEF> | ||
<ROOT> | ||
<TCEforms> | ||
<sheetTitle>Optionen</sheetTitle> | ||
</TCEforms> | ||
<type>array</type> | ||
<el> | ||
<settings.templateLayout> | ||
<TCEforms> | ||
<label>LLL:EXT:cart_products/Resources/Private/Language/locallang_be.xlf:flexforms_template.templateLayout</label> | ||
<config> | ||
<type>select</type> | ||
<itemsProcFunc>Extcode\Cart\Hooks\ItemsProcFunc->user_templateLayout</itemsProcFunc> | ||
<itemsProcFuncConf>TeaserProducts</itemsProcFuncConf> | ||
<renderType>selectSingle</renderType> | ||
</config> | ||
</TCEforms> | ||
</settings.templateLayout> | ||
|
||
<settings.showPageUids> | ||
<TCEforms> | ||
<exclude>1</exclude> | ||
<label>LLL:EXT:cart_products/Resources/Private/Language/locallang_be.xlf:tx_cartproducts.plugin.products.action.product.list.select.show_pid</label> | ||
<config> | ||
<type>group</type> | ||
<internal_type>db</internal_type> | ||
<allowed>pages</allowed> | ||
<size>1</size> | ||
<maxitems>1</maxitems> | ||
<minitems>0</minitems> | ||
<show_thumbs>1</show_thumbs> | ||
<wizards> | ||
<suggest> | ||
<type>suggest</type> | ||
</suggest> | ||
</wizards> | ||
</config> | ||
</TCEforms> | ||
</settings.showPageUids> | ||
|
||
<settings.productUids> | ||
<TCEforms> | ||
<exclude>1</exclude> | ||
<label>LLL:EXT:cart_products/Resources/Private/Language/locallang_be.xlf:tx_cartproducts.plugin.products.action.product.teaser.select.product</label> | ||
<config> | ||
<type>select</type> | ||
<foreign_table>tx_cartproducts_domain_model_product_product</foreign_table> | ||
<size>3</size> | ||
<minitems>1</minitems> | ||
<maxitems>99</maxitems> | ||
</config> | ||
</TCEforms> | ||
</settings.productUids> | ||
</el> | ||
</ROOT> | ||
</sDEF> | ||
</sheets> | ||
</T3DataStructure> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
<html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers" | ||
data-namespace-typo3-fluid="true"> | ||
|
||
<div class="tx-cart"> | ||
<div class="tx-cart-products"> | ||
<f:render section="main"/> | ||
</div> | ||
</html> |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
<html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers" | ||
xmlns:cartproducts="http://typo3.org/ns/Extcode/CartProducts/ViewHelpers" | ||
data-namespace-typo3-fluid="true"> | ||
|
||
<f:section name="GridItem"> | ||
<div class="col-md-4"> | ||
<f:if condition="{product.images}"> | ||
<cartproducts:link.product pluginName="Products" product="{product}"settings="{settings}"> | ||
<f:image src="{product.firstImage.originalResource.originalFile.uid}" | ||
title="{product.firstImage.originalResource.title}" | ||
alt="{product.firstImage.originalResource.title}" | ||
width="{settings.listAction.media.image.size.small.maxWidth}" | ||
height="{settings.listAction.media.image.size.small.maxHeight}" /> | ||
</cartproducts:link.product> | ||
</f:if> | ||
<cartproducts:link.product pluginName="Products" product="{product}"settings="{settings}"> | ||
{product.title} | ||
</cartproducts:link.product> | ||
<f:render partial="Product/Price" arguments="{product: product, settings: settings, currencyTranslationData:currencyTranslationData}"></f:render> | ||
</div> | ||
</f:section> | ||
|
||
<f:for each="{products}" as="product" iteration="iterator"> | ||
<f:if condition="{iterator.isFirst}"> | ||
<div class="row"> | ||
</f:if> | ||
|
||
<f:if condition="{iterator.cycle} % 3"> | ||
<f:then> | ||
<f:render section="GridItem" arguments="{_all}"/> | ||
</f:then> | ||
|
||
<f:else> | ||
<f:render section="GridItem" arguments="{_all}"/> | ||
|
||
<f:if condition="{iterator.isLast}"> | ||
<f:then></f:then> | ||
<f:else> | ||
</div><div class="row"> | ||
</f:else> | ||
</f:if> | ||
</f:else> | ||
</f:if> | ||
|
||
<f:if condition="{iterator.isLast}"> | ||
</div> | ||
</f:if> | ||
</f:for> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
<html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers" | ||
xmlns:cartproducts="http://typo3.org/ns/Extcode/CartProducts/ViewHelpers" | ||
data-namespace-typo3-fluid="true"> | ||
|
||
<table class="table table-striped table-hover"> | ||
<thead> | ||
<tr> | ||
<th class="col-md-2"> | ||
| ||
</th> | ||
<th class="col-md-6"> | ||
<f:translate key="tx_cartproducts_domain_model_product_product.title"/> | ||
</th> | ||
<th class="col-md-4"> | ||
<f:translate key="tx_cartproducts_domain_model_product_product.price"/> | ||
</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
<f:for each="{products}" as="product"> | ||
<tr> | ||
<td> | ||
<f:if condition="{product.images}"> | ||
<cartproducts:link.product pluginName="Products" product="{product}"settings="{settings}"> | ||
<f:image src="{product.firstImage.originalResource.originalFile.uid}" | ||
title="{product.firstImage.originalResource.title}" | ||
alt="{product.firstImage.originalResource.title}" | ||
width="{settings.listAction.media.image.size.small.maxWidth}" | ||
height="{settings.listAction.media.image.size.small.maxHeight}" /> | ||
</cartproducts:link.product> | ||
</f:if> | ||
</td> | ||
<td> | ||
<cartproducts:link.product pluginName="Products" product="{product}"settings="{settings}"> | ||
{product.title} | ||
</cartproducts:link.product> | ||
</td> | ||
<td> | ||
<f:render partial="Product/Price" arguments="{product: product, settings: settings, currencyTranslationData:currencyTranslationData}"></f:render> | ||
</td> | ||
</tr> | ||
</f:for> | ||
</tbody> | ||
</table> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,9 @@ | ||
<html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers" | ||
data-namespace-typo3-fluid="true"> | ||
|
||
<div class="product"> | ||
<f:render partial="Product/List{f:format.case(value: settings.templateLayout, mode: 'capital')}" arguments="{_all}" /> | ||
</div> | ||
<f:layout name="Default"/> | ||
|
||
<f:section name="main"> | ||
<f:render partial="Product/List/{f:format.case(value: settings.templateLayout, mode: 'capital')}" arguments="{_all}" /> | ||
</f:section> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.