templates/movie/movies-detail.html.twig line 1

Open in your IDE?
  1. {% extends 'layouts/layout.html.twig' %}
  2. {% block content %}
  3. <div class="movie-info">
  4.   <div class="row" style="display: flex; justify-content: center;">
  5.         <div class="d-flex flex-wrap" align="center" style="justify-content:center">
  6.           <div class="movie-text">
  7.             <h2>{{ movie.title("de") }}</h2>
  8.             <p>{{ movie.description("de") }}</p>
  9.             <p>{{ movie.releaseyear }}</p>
  10.             <p class="badge">{{ movie.genre }}</p>
  11.             </div>
  12.             <img src="{{ movie.imageURL }}" alt="{{ movie.title("de") }} poster">
  13. </div>
  14.  
  15.   {% if actors|length > 0 %}
  16.   <div class="actors">
  17.    <h3 align="center" ><b>Cast</b></h3>
  18.      <div class="row" style="display: flex; justify-content: center;">
  19.         <div class="d-flex flex-wrap" align="center" style="justify-content:center">
  20.               {% for actor in actors %}
  21.                <a href="/actor-detail/{{actor.id}}"> 
  22.                <div data-content="{{actor.name}}" class="image-cast">
  23.                  {% if actor.actorImage != "" %} <img src="{{ actor.actorImage }}" alt="{{ actor.name }}"> {% endif %}
  24.                </div>
  25.               </a>
  26.              {% endfor %}
  27.        </div>
  28.       </div>
  29. </div>
  30. {% endif %}
  31.  <div class="similar-movies">
  32.     <h3 align="center" ><b>Similar movies</b></h3>
  33.       <div class="row" style="display: flex; justify-content: center;">
  34.             <div class="d-flex flex-wrap" style="justify-content:center">
  35.                  {%  for smovie in similarmovies %}  
  36.                     <a href="/movie-detail/{{smovie.id}}">   
  37.                     <div data-content="{{ smovie.title("de")}}" class="image">                
  38.                             {# @var movies \Pimcore\Model\DataObject\Movies #}
  39.                                 {% if smovie %}
  40.                                     {% if smovie.getImageURL().getUrl() != ""  %}
  41.                                     {# TODO get Image Thumbnail #}
  42.                                     <img src="{{ smovie.getImageURL().getUrl() }}"/>
  43.                                     {% endif %}  
  44.                                 {% endif %}                          
  45.                     </div>
  46.                     </a>
  47.                  
  48.                 {% endfor %}
  49.                 
  50.             </div>
  51.     
  52. {%  endblock %}