Last active
November 4, 2015 20:53
-
-
Save ursbraem/b7817ab0a720626b03db to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{namespace n=Tx_News_ViewHelpers} | |
{namespace stubr=STUBR\Customvhs\ViewHelpers} | |
<time class="event-date" datetime="<n:format.date format="{f:translate(key:'dateTimeFormatMachine')}">{newsItem.datetime}</n:format.date>"> | |
<f:if condition="{settings.forcelocale}==true"> | |
<stubr:switchlocale new="de_CH.UTF-8" /> | |
</f:if> | |
<n:format.date format="{f:translate(key:'dateTimeFormatHumanWeekday')}">{newsItem.datetime}</n:format.date> | |
<f:if condition="{settings.forcelocale}==true"> | |
<stubr:switchlocale new="fr_CH.UTF-8" /> | |
</f:if> | |
</time> | |
<p class="sidebar-content"> | |
<n:link newsItem="{newsItem}" settings="{settings}" title="{newsItem.txNewscustomLinktitle}" >{newsItem.title}</n:link> | |
</p> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Catches a TS setting and forces another locale quickly