Initial commit
[TYPO3CMS/Extensions/roq_newsevent.git] / Resources / Private / Templates / News / DateMenu.html
1 {namespace n=Tx_News_ViewHelpers}
2 <f:layout name="General" />
3 <!--
4 =====================
5 Templates/News/DateMenu.html
6 -->
7
8
9
10 <f:section name="content">
11 <div class="news-menu-view">
12 <ul>
13 <f:groupedFor each="{news}" as="newsByYear" groupBy="yearOf{dateField}" groupKey="year">
14 <li>{year}
15 <ul>
16 <f:groupedFor each="{newsByYear}" as="newsByMonth" groupBy="monthOf{dateField}" groupKey="month">
17 <f:if condition="{0:year, 1:month} == {0:overwriteDemand.year, 1:overwriteDemand.month}">
18 <f:then>
19 <li class="item itemactive">
20 </f:then>
21 <f:else>
22 <li class="item">
23 </f:else>
24 </f:if>
25 <f:link.action pageUid="{listPid}" arguments="{overwriteDemand:{year: year, month: month}}"><f:translate key="month.{month}" /> {year}</f:link.action>
26 (<f:count subject="{newsByMonth}" /> <f:translate key="{f:if(condition: '{f:count(subject: newsByMonth)} == 1', then: 'entry', else: 'entries')}" />)
27 </li>
28 </f:groupedFor>
29 </ul>
30 </li>
31 </f:groupedFor>
32 </ul>
33 </div>
34 </f:section>