{% extends 'front/base_front.html.twig' %}{% block title %} {{ 'Pages.HotelPromo.Title'|trans({}, 'messages_front') }} {% endblock %}{% block container %} <section id="explore_area" class="section_padding"> <div class="container"> <h2>{{ 'Pages.HotelPromo.Messages.Promotion'|trans({}, 'messages_front') }}</h2> {% if hotelsWithPromos | length > 0 %} <div class="row mt-3"> <div class="col-lg-12 col-md-12 col-sm-12 col-12"> <div class="row mt-2"> {% for hotel in hotelsWithPromos %} <div class="col-lg-3"> <div class="theme_common_box_two img_hover"> <div class="theme_two_box_img"> <a href="{{ hotel.link }}"> <img src="{{ hotel.image }}" data-src="{{ hotel.image }}" alt="{{ hotel.title }}"/> <div class="promo span-accroche-fiche text-white px-2 py-2 font-weight-500"> {% for promo in hotel.promos %} {{ promo.name }} {% endfor %} </div> </a> <p><i class="fas fa-map-marker-alt"></i> {{ hotel.city }}</p> </div> <div class="theme_two_box_content"> <h4> <a href="{{ hotel.link }}">{{ hotel.title }}</a> </h4> {% if hotel.stars != 0 %} <span class="review_star"> <span class="form-check-label"> {% for j in 1 .. hotel.stars %} <i class="fas fa-star color_theme"></i> {% endfor %} </span> </span> {% endif %} <h3> {% if hotel.price is defined and hotel.currency is defined %} {{ hotel.price }}<sup>{{ hotel.currency }} </sup> {% endif %} <span> {% if hotel.board is defined %} {{ hotel.board }} {% endif %} </span> </h3> </div> </div> </div> {% endfor %} </div> </div> </div> {% endif %} </div> </section> <style> .span-accroche-fiche { top: 15px; position: absolute; } .promo { background-color: red; border-bottom-right-radius: 6px; border-top-right-radius: 6px; } </style>{% endblock %}