Commit f2bb8b24 authored by thomas.loeffler's avatar thomas.loeffler
Browse files

[FEATURE] Added "nofollow" tag to banners which are not on homepage. #38220

git-svn-id: http://svn.t3o.typo3.org/extensions/projects/t3org/randombanners/trunk@2550 e8cb78a8-64f2-4011-8042-bd1ea5058d47
parent 93d0527a
...@@ -8,12 +8,14 @@ plugin.tx_randombanners { ...@@ -8,12 +8,14 @@ plugin.tx_randombanners {
storagePid = {$plugin.tx_randombanners.persistence.storagePid} storagePid = {$plugin.tx_randombanners.persistence.storagePid}
} }
settings { settings {
noFollowTag = 1
} }
} }
# Ideally taken from ${const.page.root} # Ideally taken from ${const.page.root}
[globalVar = TSFE:id = 3] [globalVar = TSFE:id = 3]
plugin.tx_randombanners.settings.numberOfBannersShown = -1 plugin.tx_randombanners.settings.numberOfBannersShown = -1
plugin.tx_randombanners.settings.noFollowTag = 0
[global] [global]
lib.misc.bannerWidget = USER lib.misc.bannerWidget = USER
......
...@@ -2,9 +2,18 @@ ...@@ -2,9 +2,18 @@
<div class="tx-randombanners"> <div class="tx-randombanners">
<f:for each="{banners}" as="banner"> <f:for each="{banners}" as="banner">
<div class="tx-randombanners-item"> <div class="tx-randombanners-item">
<a class="tx-randombanners-link" onclick="clickBanner($(this));" href="<f:uri.external uri='{banner.link}' />" data-itemId="{banner.uid}" target="_blank"> <f:if confition="{settings.noFollowTag} == 1">
<f:image src="{banner.logo.filePath}{banner.logo.fileName}" alt="{banner.name}" /> <then>
</a> <a class="tx-randombanners-link" onclick="clickBanner($(this));" href="<f:uri.external uri='{banner.link}' />" data-itemId="{banner.uid}" rel="nofollow" target="_blank">
<f:image src="{banner.logo.filePath}{banner.logo.fileName}" alt="{banner.name}" />
</a>
</then>
<else>
<a class="tx-randombanners-link" onclick="clickBanner($(this));" href="<f:uri.external uri='{banner.link}' />" data-itemId="{banner.uid}" target="_blank">
<f:image src="{banner.logo.filePath}{banner.logo.fileName}" alt="{banner.name}" />
</a>
</else>
</f:if>
</div> </div>
</f:for> </f:for>
</div> </div>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment