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

Open in your IDE?
  1. {% extends "front/"~ app.request.server.get('APP_THEME') ~"/base.html.twig" %}
  2. {% block stylesheets %}
  3.       {{parent()}}
  4. {% endblock %}
  5. {% block body %}
  6.          <div class="page_cms page_activite pt-5">
  7.                 <div class="breadcrumb-style-default">
  8.                     <div class="container">
  9.                         <div class="row">
  10.                             <div class="col-lg-12">
  11.                                 <div class="inner text-center">
  12.                                     {% if breadcrumb is defined and breadcrumb is not empty %}
  13.                                         {{ include ('front/'~ app.request.server.get('APP_THEME') ~'/partials/breadcrumb.html.twig')}}
  14.                                         <h1 class="page-title">{{title_page}}</h1>
  15.                                     {% endif %}
  16.                                 </div>
  17.                             </div>
  18.                         </div>
  19.                     </div>
  20.                 </div>
  21.                 <div class="container-fluid wrapper">
  22.                     <div id="bloc-principal" class="row">
  23.                         <div class="col-sm-12 text-center">
  24.                             {% if parametreRef is defined and parametreRef is not empty %}
  25.                                 <h2>{{parametreRef.soustitreparamref}}</h2>
  26.                                 {{parametreRef.description|raw}}
  27.                             {% endif %}
  28.                         </div>
  29.                     </div>
  30.                     {% if activites is defined and activites is not empty %}
  31.                         <div id="bloc-activites" class="row">
  32.                             {% for item in activites %}
  33.                                 <div class="col-sm-12 col-md-6">
  34.                                     <div class="panel panel-success mb-4">
  35.                                         <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>
  36.                                         <div class="panel-body">
  37.                                             {% if item.urls_principal is defined and item.urls_principal is not empty %}
  38.                                                 <ul>   
  39.                                                     {% for item_url in item.urls_principal|filter(v => v.type == "page_ref") %}
  40.                                                         <li>
  41.                                                             <a href="{{path('page', {slug:item_url.slug})}}" title="{{item_url.titre}}" target="_top"> {{item_url.titre}}</a>
  42.                                                         </li>
  43.                                                     {% endfor %}  
  44.                                                     {% for item_url in item.urls_principal|filter(v => v.type == "page_actualite") %}
  45.                                                         <li>
  46.                                                             <a href="{{path('page', {slug:item_url.slug})}}" title="{{item_url.titre}}" target="_top"> {{item_url.titre}}</a>
  47.                                                         </li>
  48.                                                     {% endfor %}     
  49.                                                     {% if item.activite_secondiare is defined and item.activite_secondiare is not empty %}
  50.                                                           {% for item in item.activite_secondiare %}
  51.                                                             <div class="sous_activite">
  52.                                                                 {# <a href="{{path('page',{slug:item.slug})}}"><i class="fa fa-long-arrow-right" aria-hidden="true"></i> {{item.titre}}</a> #}
  53.                                                                 {% if item.urls is defined and item.urls is not empty %}
  54.                                                                     <ul>
  55.                                                                         {% for item_url in item.urls|filter(v => v.type == "page_ref") %}
  56.                                                                                 <li>
  57.                                                                                    <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>
  58.                                                                                 </li>
  59.                                                                         {% endfor %}
  60.                                                                         {% for item_url in item.urls|filter(v => v.type == "page_actualite") %}
  61.                                                                                 <li>
  62.                                                                                    <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>
  63.                                                                                 </li>
  64.                                                                         {% endfor %}
  65.                                                                     </ul>
  66.                                                                 {% endif %}
  67.                                                             </div> 
  68.                                                           {% endfor %}
  69.                                                     {% endif %}                                                                                                                                                         
  70.                                                 </ul>  
  71.                                             {% endif %}
  72.                                         </div>
  73.                                     </div>
  74.                                 </div>
  75.                             {% endfor %}
  76.                         </div>
  77.                     {% endif %}
  78.                 </div>
  79.          </div> 
  80. {% endblock %}