Adjust rating widget as requested

This commit is contained in:
Björn Fromme
2018-08-15 19:24:24 +02:00
parent 90b543d45f
commit a17f9545cf
3 changed files with 6 additions and 3 deletions
@@ -41,6 +41,8 @@ plugin.tx_eptheme {
blogTagListPageUid = blogTagListPageUid =
# cat=eptheme/200/240; type=string; label=Groups contact form page UID # cat=eptheme/200/240; type=string; label=Groups contact form page UID
groupsContactFormPageUid = groupsContactFormPageUid =
# cat=eptheme/200/250; type=string; label=Rating page UID
ratingPageUid =
# cat=eptheme/400/100; type=string; label=Phone number general # cat=eptheme/400/100; type=string; label=Phone number general
phoneNumber = 0221 - 272 276 0 phoneNumber = 0221 - 272 276 0
@@ -80,6 +80,7 @@ plugin.tx_eptheme {
contactFormAutoreplySubject = {$plugin.tx_eptheme.settings.contactFormAutoreplySubject} contactFormAutoreplySubject = {$plugin.tx_eptheme.settings.contactFormAutoreplySubject}
groupsContactFormPageUid = {$plugin.tx_eptheme.settings.groupsContactFormPageUid} groupsContactFormPageUid = {$plugin.tx_eptheme.settings.groupsContactFormPageUid}
blogDetailPageUid = {$plugin.tx_eptheme.settings.blogDetailPageUid} blogDetailPageUid = {$plugin.tx_eptheme.settings.blogDetailPageUid}
ratingPageUid = {$plugin.tx_eptheme.settings.ratingPageUid}
} }
view { view {
templateRootPaths.0 = EXT:ep_theme/Resources/Private/Templates templateRootPaths.0 = EXT:ep_theme/Resources/Private/Templates
@@ -1,9 +1,9 @@
{namespace ep=EP\EpTheme\ViewHelpers} {namespace ep=EP\EpTheme\ViewHelpers}
<f:if condition="{product.ratingVotesCount} > 0"> <f:if condition="{product.ratingVotesCount} > 0">
<div class="ep-sidebar ep-rating"> <a href="{f:uri.page(pageUid: settings.ratingPageUid)}" class="ep-sidebar ep-rating" title="Reisebewertungen">
<p><strong>Bewertung</strong></p> <p><strong>Reisebewertung 16/17</strong></p>
<div> <div>
<ep:rating product="{product}"/> <ep:rating product="{product}"/>
</div> </div>
</div> </a>
</f:if> </f:if>