templates/basic/busqueda.html.twig line 1

Open in your IDE?
  1. {% set categoria = null %}
  2. {% set namecategoria = null %}
  3. {% set clasificaciones = qi.clasificaciones() %}
  4. <div class="cont-bus" id="busqueda-contenedor" data-visible="no">    
  5.   <div class="bg-naranja position-relative">
  6.     <div class="cerrar">
  7.         <img src="/img/SVG/close-circle-blanco.svg" alt="" class="cerrar-img"> 
  8.     </div>
  9.     <div class="container py-4" id="contenido_despleg">   
  10.     </div>
  11.  
  12.   </div>
  13.   <div class="parte2 bg-gris3 py-4">
  14.     {% for cat in qi.getCategoriasConProductos() %}
  15.       <div class="container container-slider cate cat_{{ cat.id }}">
  16.         <div class="row">
  17.           <div class="col-12 d-flex justify-content-between align-items-center mb-4">
  18.             <div class="swiper-button-prev">
  19.               <img src="/img/SVG/left.svg"/>
  20.             </div>
  21.             <div class="swiper-container busqueda-swiper mx-2">
  22.               <div class="swiper-wrapper">
  23.                 {% for item in qi.getProductosCategoriaGroupMaestro(cat.id) %}
  24.                 <div class="swiper-slide">
  25.                   <div class="item-producto">
  26.                     <div class="tags-promos">
  27.                         {% if item.descuento %}
  28.                           <p class="prom bg-naranja mb-2">
  29.                             {{ (item.descuento * 100) | number_format(2) }}% Dcto
  30.                           </p>
  31.                         {% endif %}
  32.                         {% if item.nuevo == 1 %}                   
  33.                           <p class="prom bg-naranja-claro">nuevo</p>
  34.                         {% endif %}
  35.                     </div>
  36.                     <a class="img" href="{{ path('product', {id: item.plu, nombre: qi.slugify(item.nombre)}) }}">
  37.                       <img src="{{ item.imagen }}" alt="">
  38.                     </a>
  39.                     <h4 class="bold color-negro">{{ item.nombre }}</h4>
  40.                     <p class="color-gris1 sm">{{ item.resumen }}</p>
  41.                     <div class="mt-3 d-flex justify-content-between align-items-center">
  42.                       <button class="btn btn-gris"><a href="{{ path('product', {id: item.plu, nombre: qi.slugify(item.nombre)}) }}">Ver</a></button>
  43.                                     {% if qi.getSetting('probar') == 1 %}                      
  44.                       {% if cat.id == 1 %}<button class="btn btn-naranja"><a href="">Probar</a></button>{% endif %}
  45.                       {% endif %}
  46.                     </div>
  47.                   </div>
  48.                 </div> 
  49.                 {% endfor %}
  50.               </div>
  51.             </div>
  52.             <div class="swiper-button-next">
  53.               <img src="/img/SVG/right.svg"/>
  54.             </div>
  55.           </div>
  56.         </div>
  57.         <div class="row">
  58.           <div class="col-12 d-flex justify-content-center py-2">
  59.               <a class="btn border-negro d-flex align-items-center mr-2" href="{{ path('categoria_slug', {categoria: cat.slug}) }}">
  60.               <i class="icon-ver mr-1"></i> Ver todo
  61.             </a>
  62.           </div>
  63.         </div>
  64.       </div>
  65.     {% endfor %}
  66.   </div>
  67. </div>