templates/front/theme1/localite_details.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">{{breadcrumb|last.name}}</h1>
  15.                                     {% endif %}
  16.                                 </div>
  17.                             </div>
  18.                         </div>
  19.                     </div>
  20.                 </div>
  21.                 <div class="container-fluid wrapper">
  22.                     <div class="row">
  23.                         <div class="col-sm-12 text-center">
  24.                             <h2>{{secteur.titre}}</h2>
  25.                             <div>{{secteur.textgenerersecteurfinal|raw}}</div>
  26.                         </div>
  27.                     </div>
  28.                     
  29.                     <div class="row mt-2">
  30.                        {% if resultats is defined and resultats|filter(v => v.type == 'activite_primaire')|length > 0 %}
  31.                         <div class="col-sm-12 col-md-6">
  32.                             <div class="panel panel-success mb-4">
  33.                                 <div class="panel-heading"><span class="panel-title">Activité principale</span></div>
  34.                                 <div class="panel-body">
  35.                                     <ul>   
  36.                                         {% for item_url in resultats|filter(v => v.type == 'activite_primaire') %}
  37.                                             <li>
  38.                                                 <a href="{{path('page',{slug:item_url.slug})}}" title="{{item_url.titre}}" target="_top"> {{item_url.titre}}</a>
  39.                                             </li>
  40.                                         {% endfor %}                                                                                                                                                          
  41.                                     </ul>    
  42.                                 </div>
  43.                             </div>
  44.                         </div>
  45.                         {% endif %}
  46.                         {% if resultats is defined and resultats|filter(v => v.type == 'activite_secondaire')|length > 0 %}
  47.                             <div class="col-sm-12 col-md-6">
  48.                                 <div class="panel panel-success mb-4">
  49.                                     <div class="panel-heading"><span class="panel-title">Activité secondaire</span></div>
  50.                                     <div class="panel-body">
  51.                                         <ul>   
  52.                                             {% for item_url in resultats|filter(v => v.type == 'activite_secondaire') %}
  53.                                                 <li>
  54.                                                     <a href="{{path('page',{slug:item_url.slug})}}" title="{{item_url.titre}}" target="_top"> {{item_url.titre}}</a>
  55.                                                 </li>
  56.                                             {% endfor %}                                                                                                                                                          
  57.                                         </ul>  
  58.                                     </div>
  59.                                 </div>
  60.                             </div>
  61.                         {% endif %}
  62.                        {% if resultats is defined and resultats|filter(v => v.type == 'article')|length > 0 %}
  63.                             <div class="col-sm-12 col-md-6">
  64.                                 <div class="panel panel-success mb-4">
  65.                                     <div class="panel-heading"><span class="panel-title">Article</span></div>
  66.                                     <div class="panel-body">
  67.                                         <ul>   
  68.                                             {% for item_url in resultats|filter(v => v.type == 'article') %}
  69.                                                 <li>
  70.                                                     <a href="{{path('page',{slug:item_url.slug})}}" title="{{item_url.titre}}" target="_top"> {{item_url.titre}}</a>
  71.                                                 </li>
  72.                                             {% endfor %}                                                                                                                                                          
  73.                                         </ul>
  74.                                     </div>
  75.                                 </div>
  76.                             </div>
  77.                         {% endif %}  
  78.                     </div>
  79.             
  80.                 </div>
  81.          </div> 
  82. {% endblock %}