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">{{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>Toutes nos prestations de plombier-chauffagiste</h2>
  25.                             <p> Lorem Ipsum is simply dummy text of the printing and typesetting industry. 
  26.                                 Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, 
  27.                                 when an unknown printer took a galley of type and scrambled it to make a type specimen book. 
  28.                                 It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.</p>
  29.                         </div>
  30.                     </div>
  31.                     {% if activites is defined and activites is not empty %}
  32.                         <div class="row">
  33.                             {% for item in activites %}
  34.                                 <div class="col-sm-12 col-md-6">
  35.                                     <div class="panel panel-success mb-4">
  36.                                         <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>
  37.                                         <div class="panel-body">
  38.                                             {% if item.urls_principal is defined and item.urls_principal is not empty %}
  39.                                                 <ul>   
  40.                                                     {% for item_url in item.urls_principal|filter(v => v.type == "page_ref") %}
  41.                                                         <li>
  42.                                                             <a href="{{path('page', {slug:item_url.slug})}}" title="{{item_url.titre}}" target="_top"> {{item_url.titre}}</a>
  43.                                                         </li>
  44.                                                     {% endfor %}  
  45.                                                     {% for item_url in item.urls_principal|filter(v => v.type == "page_actualite") %}
  46.                                                         <li>
  47.                                                             <a href="{{path('page', {slug:item_url.slug})}}" title="{{item_url.titre}}" target="_top"> {{item_url.titre}}</a>
  48.                                                         </li>
  49.                                                     {% endfor %}     
  50.                                                     {% if item.activite_secondiare is defined and item.activite_secondiare is not empty %}
  51.                                                           {% for item in item.activite_secondiare %}
  52.                                                             <div class="sous_activite">
  53.                                                               <a href="{{path('page',{slug:item.slug})}}"><i class="fa fa-long-arrow-right" aria-hidden="true"></i> {{item.titre}}</a>
  54.                                                                 {% if item.urls is defined and item.urls is not empty %}
  55.                                                                     <ul>
  56.                                                                         {% for item_url in item.urls|filter(v => v.type == "page_ref") %}
  57.                                                                                 <li>
  58.                                                                                     <a href="{{path('page',{slug:item_url.slug})}}" title="{{item_url.titre}}" target="_top"> {{item_url.titre}}</a>
  59.                                                                                 </li>
  60.                                                                         {% endfor %}
  61.                                                                         {% for item_url in item.urls|filter(v => v.type == "page_actualite") %}
  62.                                                                                 <li>
  63.                                                                                     <a href="{{path('page',{slug:item_url.slug})}}" title="{{item_url.titre}}" target="_top"> {{item_url.titre}}</a>
  64.                                                                                 </li>
  65.                                                                         {% endfor %}
  66.                                                                     </ul>
  67.                                                                 {% endif %}
  68.                                                             </div> 
  69.                                                           {% endfor %}
  70.                                                     {% endif %}                                                                                                                                                         
  71.                                                 </ul>  
  72.                                             {% endif %}
  73.                                         </div>
  74.                                     </div>
  75.                                 </div>
  76.                             {% endfor %}
  77.                         </div>
  78.                     {% endif %}
  79.                 </div>
  80.          </div> 
  81. {% endblock %}