News.html 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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. <v:variable.set name="request" value="{ot:request.get()}" />
  6. <section class="t-container st-effect-3">
  7. <div class="wrapper">
  8. <f:comment><!-- Render the header defined in partial/header.html--></f:comment>
  9. <f:render partial="Modern/Header" arguments="{_all}" />
  10. <section class="page-section-ptb">
  11. <div class="container">
  12. <div class="row">
  13. <div class="col-sm-12 mt-30">
  14. <f:comment><!-- All news or details --></f:comment>
  15. <h2><f:translate key="news"/></h2>
  16. <div class="ot-news">
  17. <f:if condition="{request.tx_news_pi1.news}">
  18. <f:then>
  19. <f:comment><!-- a news was required, show details --></f:comment>
  20. <f:cObject typoscriptObjectPath="lib.tx_ottemplating.widgets.news_detail" />
  21. <f:link.page><f:translate key="go-back-to-news-list"/></f:link.page>
  22. <f:render partial="Modern/ShareBar"/>
  23. </f:then>
  24. <f:else>
  25. <f:comment><!-- no news was required, show list --></f:comment>
  26. <f:cObject typoscriptObjectPath="lib.tx_ottemplating.widgets.news_list" />
  27. </f:else>
  28. </f:if>
  29. </div>
  30. </div>
  31. </div>
  32. </div>
  33. </section>
  34. </div>
  35. </section>