templates/press_site/actions/movies/partials/details/censorship_feature.html.twig line 1

Open in your IDE?
  1. {% set collection = getProductCensorship(entity, 'feature') %}
  2. {% if collection | length %}
  3.     <div class="short-info__wrapper feature-box">
  4.         <h6>{{ 'content.movies.feature' | trans({}, 'PressSite') }}</h6>
  5.         <div class="img-wrapper">
  6.         {% for item in collection.images  %}
  7.             {% if collection.images is not empty %}
  8.                 <img src="{{ asset(item.rating_content_icon.icon) }}" title="{{ item.rating_content_icon.alt }}" alt="{{ item.rating_content_icon.alt }}">
  9.                 {% if item.rating_symbol_icons is not empty %}
  10.                     {% for rating_symbol_icon in item.rating_symbol_icons %}
  11.                         <img src="{{ asset(rating_symbol_icon.icon) }}" title="{{ rating_symbol_icon.alt }}" alt="{{ rating_symbol_icon.alt }}">
  12.                     {% endfor %}
  13.                 {% endif %}
  14.             {% endif %}
  15.         {% endfor %}
  16.         </div>
  17.         <div class="text-wrapper">
  18.             {% for item in collection.text %}
  19.                 {% if collection.text is not empty %}
  20.                     <span>{{ item.label }}</span><br>
  21.                 {% endif %}
  22.             {% endfor %}
  23.         </div>
  24.     </div>
  25. {% endif %}