<html
		xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers"
		xmlns:n="http://typo3.org/ns/GeorgRinger/News/ViewHelpers"
		data-namespace-typo3-fluid="true">
<f:layout name="General" />

<!--
	=====================
		Templates/Tag/List.html
-->

<f:section name="content">
	<f:if condition="{tags}">
		<ul class="news-tags">
			<f:for each="{tags}" as="tag">
				<li>
					{n:tag.count(tagUid:tag.uid) -> f:variable(name: 'tagUsageCount')}
					<f:if condition="{tag.uid} == {overwriteDemand.tags}">
						<f:then>
							<f:link.page title="{tag.title}" class="active" pageUid="{settings.listPid}" additionalParams="{tx_news_pi1:{overwriteDemand:{tags: tag}}}">
								{tag.title}
							</f:link.page>
						</f:then>
						<f:else>
							<f:link.page title="{tag.title}" pageUid="{settings.listPid}" additionalParams="{tx_news_pi1:{overwriteDemand:{tags: tag}}}">
								{tag.title}
							</f:link.page>
						</f:else>
					</f:if>

					<f:if condition="{tagUsageCount}">({tagUsageCount})</f:if>
				</li>
			</f:for>
		</ul>
	</f:if>
</f:section>
</html>