News.html 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. {namespace v=FluidTYPO3\Vhs\ViewHelpers}
  2. {namespace ot=Opentalent\OtTemplating\ViewHelpers}
  3. <f:comment><!-- Special layout for the Members page --></f:comment>
  4. <f:layout name="News" />
  5. <f:comment><!-- Render the header defined in partial/header.html--></f:comment>
  6. <f:render partial="Classic/Header" arguments="{_all}" />
  7. <v:variable.set name="request" value="{ot:request.get()}" />
  8. <div class="main">
  9. <f:comment><!-- Central column --></f:comment>
  10. <div class="content">
  11. <f:comment><!-- All news or details --></f:comment>
  12. <h2><f:translate key="news"/></h2>
  13. <div class="ot-news">
  14. <f:if condition="{request.tx_news_pi1.news}">
  15. <f:then>
  16. <f:comment><!-- a news was required, show details --></f:comment>
  17. <f:cObject typoscriptObjectPath="lib.tx_ottemplating.widgets.news_detail" />
  18. <f:link.page>
  19. <f:translate key="go-back-to-news-list"/>
  20. </f:link.page>
  21. <f:render partial="Classic/ShareBar"/>
  22. </f:then>
  23. <f:else>
  24. <f:comment><!-- no news was required, show list --></f:comment>
  25. <f:cObject typoscriptObjectPath="lib.tx_ottemplating.widgets.news_list" />
  26. </f:else>
  27. </f:if>
  28. </div>
  29. </div>
  30. </div>
  31. <f:comment><!-- Render the footer defined in partial/footer.html--></f:comment>
  32. <f:render partial="Classic/Footer" />