A TYPO3 plugin to display a list of languages to select from. Clicking on a language links to the corresponding version of the page.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

15 lines
1.2 KiB

<f:comment>Rendering of linked flag</f:comment>
<f:if condition="{option.externalUrl}">
<f:then>
<f:link.external uri="{option.externalUrl}" class="flag" target="{settings.target}"><img src="{f:uri.image(src: '{option.flagFile}')}" title="{option.title}" alt="{option.title}" class="tx-srlanguagemenu-flag-linked" /></f:link.external>
<f:if condition="{settings.showLinkWithFlag}">
<f:link.external uri="{option.externalUrl}" class="title" target="{settings.target}">{option.title}</f:link.external>
</f:if>
</f:then>
<f:else>
<f:link.page additionalParams="{L: '{option.uid}'}" addQueryString="1" addQueryStringMethod="GET" argumentsToBeExcludedFromQueryString="{settings.removeParams}" class="flag" target="{settings.target}"><img src="{f:uri.image(src: '{option.flagFile}')}" title="{option.title}" alt="{option.title}" class="tx-srlanguagemenu-flag-linked" /></f:link.page>
<f:if condition="{settings.showLinkWithFlag}">
<f:link.page additionalParams="{L: '{option.uid}'}" addQueryString="1" addQueryStringMethod="GET" argumentsToBeExcludedFromQueryString="{settings.removeParams}" class="title" target="{settings.target}">{option.title}</f:link.page>
</f:if>
</f:else>
</f:if>