templates/front/theme1/modele/bloc_associes.html.twig line 1

Open in your IDE?
  1. <section class="list_art_inter" {% if widget.bgimage is defined and widget.bgimage != null %}style="background: url({{asset_image(widget.bgimage)}}) " {% else %} style="background-color:{{widget.bgcolor}}"{% endif %}>
        <div class="container-fluid wrapper">
            <div class="list_blocs pos1">
                <div class="cnt_blocs">
                    <div class="sub-title">{{widget.title}}</div>
                    {% if widget.subTitle != '' %}<div class="sub-title">{{widget.subTitle}}</div>{% endif %}
                    {% if widget.description != '' %}
                        <div>
                           {{widget.description|raw}}
                        </div>
                    {% endif %}
                </div>
                <div class="blocs">
                    <div class="results affichage3">
                        {% set duree = 0.1 %}
                        {% for key,item in resultat|filter((u) => u.slug != app.request.attributes.get('_route_params')['slug']) %}
                            {% set annimation = key  is odd ?'wow fadeInRight':'wow fadeInLeft' %}
                            {% if item.title_affichage != '' %}
                               {% set titreShow = item.title_affichage %}
                            {% else %}
                               {% set titreShow = item.titre %}
                            {% endif %}
    
                            <div class="article" data-wow-delay="{{duree}}s" >
                                {% if item.image != null %}
                                    <span class="article-image lazyload" data-bgset="{{asset_image(item.image, "medium2")}} [(max-width: 609px)] | {{asset_image(item.image, "medium2")}} [(max-width: 1200px)] | {{asset_image(item.image, "medium2")}} [(min-width: 1201px)]" >
                                        <img alt="{{titreShow}}" title="{{titreShow}}" src="{{asset_image(item.image, 'medium2')}}" />
                                    </span>
                                {% elseif parametre.imageVide != null %}
                                    <span class="article-image lazyload" data-bgset="{{asset_image(parametre.imageVide, "medium2")}} [(max-width: 609px)] | {{asset_image(parametre.imageVide, "medium2")}} [(max-width: 1200px)] | {{asset_image(parametre.imageVide, "medium2")}} [(min-width: 1201px)]" >
                                        <img alt="{{titreShow}}" title="{{titreShow}}" src="{{asset('/uploads/images/'~ parametre.imageVide)}}" />
                                    </span>
                                {% endif %}
                                <div class="article-cnt">
                                    <a class="sub-title article-titre wow fadeInUp" data-wow-delay="{{duree}}s" href="{{path('page',{slug:item.slug})}}" title="{{titreShow}}">{{titreShow}}</a>
                                    {% if item.chapeau is not empty %}<span class="article-txt"> {{item.chapeau}} </span> {% endif %}
                                </div>
                            </div>
                            {% set duree = duree + 0.2 %}
                        {% endfor %}
                    </div>
                </div>
             </div>
        </div>
    </section>