templates/press_site/actions/content/default.html.twig line 1

Open in your IDE?
  1. {% extends 'press_site/layout/main.html.twig' %}
  2. {% block title %}{{ 'menu.header.home' | trans({}, 'PressSite') }}{% endblock %}
  3. {% block content %}
  4.     <main>
  5.         <div class="body__container">
  6.             {% if new_movies_collection is not empty %}
  7.             <div class="category__title-container">
  8.                 <h1>{{ 'content.titles.new_movies' | trans({}, 'PressSite') }}</h1>
  9.                 {% if not isBroadcastType() %}
  10.                 <a href="{{ path('press_site.actions.product.new_movies', {_locale: app.request.locale}) }}" class="link__box">
  11.                     {{ 'meta.see_all.new' | trans({}, 'PressSite') }}
  12.                 </a>
  13.                 {% endif %}
  14.             </div>
  15.             <div class="body__category-container">
  16.                 {% for new_movie in new_movies_collection %}
  17.                     {% include 'press_site/actions/movies/partials/listing/single_list_item.html.twig' with { entity: new_movie } %}
  18.                 {% endfor %}
  19.             </div>
  20.             {% endif %}
  21.             {% if upcoming_movies_collection is not empty %}
  22.             <div class="category__title-container">
  23.                 <h1>{{ 'content.titles.upcoming_movies' | trans({}, 'PressSite') }}</h1>
  24.                 {% if not isBroadcastType() %}
  25.                 <a href="{{ path('press_site.actions.product.upcoming_movies', {_locale: app.request.locale}) }}" class="link__box">
  26.                     {{ 'meta.see_all.upcoming' | trans({}, 'PressSite') }}
  27.                 </a>
  28.                 {% endif %}
  29.             </div>
  30.             <div class="body__category-container">
  31.                 {% for upcoming_movie in upcoming_movies_collection %}
  32.                     {% include 'press_site/actions/movies/partials/listing/single_list_item.html.twig' with { entity: upcoming_movie } %}
  33.                 {% endfor %}
  34.             </div>
  35.             {% endif %}
  36.         </div>
  37.     </main>
  38. {% endblock %}