templates/front/theme1/activites.html.twig line 1

Open in your IDE?
  1. {% extends "front/"~ app.request.server.get('APP_THEME') ~"/base.html.twig" %}
    
    {% block stylesheets %}
          {{parent()}}
    {% endblock %}
    
    
    {% block body %}
             <div class="page_cms page_activite pt-5">
                    <div class="breadcrumb-style-default">
                        <div class="container">
                            <div class="row">
                                <div class="col-lg-12">
                                    <div class="inner text-center">
                                        {% if breadcrumb is defined and breadcrumb is not empty %}
                                            {{ include ('front/'~ app.request.server.get('APP_THEME') ~'/partials/breadcrumb.html.twig')}}
                                            <h1 class="page-title">{{title_page}}</h1>
                                        {% endif %}
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
    
                    <div class="container-fluid wrapper">
                        <div id="bloc-principal" class="row">
                            <div class="col-sm-12 text-center">
                                {% if parametreRef is defined and parametreRef is not empty %}
                                    <h2>{{parametreRef.soustitreparamref}}</h2>
                                    {{parametreRef.description|raw}}
                                {% endif %}
                            </div>
                        </div>
    
                        {% if activites is defined and activites is not empty %}
                            <div id="bloc-activites" class="row">
                                {% for item in activites %}
                                    <div class="col-sm-12 col-md-6">
                                        <div class="panel panel-success mb-4">
                                            <div class="panel-heading"><span class="panel-title"> <a href="{{path('page',{slug:item.slug})}}" title="{{item.titre}}" target="_top">{{item.titre}}</a></span></div>
                                            <div class="panel-body">
                                                {% if item.urls_principal is defined and item.urls_principal is not empty %}
                                                    <ul>   
                                                        {% for item_url in item.urls_principal|filter(v => v.type == "page_ref") %}
                                                            <li>
                                                                <a href="{{path('page', {slug:item_url.slug})}}" title="{{item_url.titre}}" target="_top"> {{item_url.titre}}</a>
                                                            </li>
                                                        {% endfor %}  
    
                                                        {% for item_url in item.urls_principal|filter(v => v.type == "page_actualite") %}
                                                            <li>
                                                                <a href="{{path('page', {slug:item_url.slug})}}" title="{{item_url.titre}}" target="_top"> {{item_url.titre}}</a>
                                                            </li>
                                                        {% endfor %}     
    
    
                                                        {% if item.activite_secondiare is defined and item.activite_secondiare is not empty %}
                                                              {% for item in item.activite_secondiare %}
                                                                <div class="sous_activite">
                                                                    {# <a href="{{path('page',{slug:item.slug})}}"><i class="fa fa-long-arrow-right" aria-hidden="true"></i> {{item.titre}}</a> #}
                                                                    {% if item.urls is defined and item.urls is not empty %}
                                                                        <ul>
                                                                            {% for item_url in item.urls|filter(v => v.type == "page_ref") %}
                                                                                    <li>
                                                                                       <i class="fa fa-long-arrow-right" aria-hidden="true"></i>  <a href="{{path('page',{slug:item_url.slug})}}" title="{{item_url.titre}}" target="_top"> {{item_url.titre}}</a>
                                                                                    </li>
                                                                            {% endfor %}
    
                                                                            {% for item_url in item.urls|filter(v => v.type == "page_actualite") %}
                                                                                    <li>
                                                                                       <i class="fa fa-long-arrow-right" aria-hidden="true"></i> <a href="{{path('page',{slug:item_url.slug})}}" title="{{item_url.titre}}" target="_top"> {{item_url.titre}}</a>
                                                                                    </li>
                                                                            {% endfor %}
                                                                        </ul>
                                                                    {% endif %}
                                                                </div> 
                                                              {% endfor %}
                                                        {% endif %}                                                                                                                                                         
                                                    </ul>  
                                                {% endif %}
                                            </div>
                                        </div>
                                    </div>
                                {% endfor %}
                            </div>
                        {% endif %}
    
                    </div>
             </div> 
    {% endblock %}