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

[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 {
storagePid = {$plugin.tx_randombanners.persistence.storagePid}
}
settings {
noFollowTag = 1
}
}
# Ideally taken from ${const.page.root}
[globalVar = TSFE:id = 3]
plugin.tx_randombanners.settings.numberOfBannersShown = -1
plugin.tx_randombanners.settings.noFollowTag = 0
[global]
lib.misc.bannerWidget = USER
......
......@@ -2,9 +2,18 @@
<div class="tx-randombanners">
<f:for each="{banners}" as="banner">
<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:image src="{banner.logo.filePath}{banner.logo.fileName}" alt="{banner.name}" />
</a>
<f:if confition="{settings.noFollowTag} == 1">
<then>
<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>
</f:for>
</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