src/Flexy/FrontBundle/templates/categories/singleCategoryProduct.html.twig line 1

Open in your IDE?
  1. {% extends "@Flexy/FrontBundle/templates/layout.html.twig"  %}
  2.     {% block stylesheets %}           
  3.   {{ parent() }}
  4.  
  5.  
  6.    <link rel="stylesheet" href="{{asset('bundles/flexyfront/assets/css/chosen.css')}}">
  7.     <style>
  8.     .chosen-container-single .chosen-single {
  9.     padding: 5px 8px 30px 13px !important;
  10.     border: 1px solid #f5f5f5 !important;
  11.     font-size: 16px !important;
  12.     color: #a0a0a0 !important;
  13.     }
  14.     </style>
  15.       {% endblock %}
  16.  
  17. {% block body %}
  18.        <div class="body-wrapper">
  19.             <!-- Begin Li's Breadcrumb Area -->
  20.             <div class="breadcrumb-area d-none">
  21.                 <div class="container">
  22.                     <div class="breadcrumb-content">
  23.                         <ul>
  24.                             <li><a href="index.html">Home</a></li>
  25.                             <li class="active">Shop List Right Sidebar</li>
  26.                         </ul>
  27.                     </div>
  28.                 </div>
  29.             </div>
  30.             <!-- Li's Breadcrumb Area End Here -->
  31.             <!-- Begin Li's Content Wraper Area -->
  32.             <div class="content-wraper pt-60 pb-60">
  33.                 <div class="container">
  34.                     <div class="row">
  35.                         {% set colBody = "col-lg-9" %}
  36.                         {% if categoryProduct.id == 75 %}
  37.                         {% set colBody = "col-lg-12" %}
  38.                         {% endif %}
  39.                         
  40.                         <div class="{{colBody}} order-2 order-lg-1">
  41.                             <!-- Begin Li's Banner Area -->
  42.                                 {% if categoryProduct.id == 75 %}
  43.                                 <div class="text-center p-3" >
  44.                                         <h2><i class="fa fa-hamburger"></i> O'MALL FOOD</h2>
  45.                                     </div>
  46.                                 {% endif %}
  47.                             
  48.                             {% if categoryProduct.image %}
  49.                             <div class="single-banner shop-page-banner">
  50.                                 <a href="#">
  51.                                     <img src="/uploads/{{asset(categoryProduct.image)}}" alt="">
  52.                                 </a>
  53.                             
  54.                             </div>
  55.                             {% endif %}
  56.                             <!-- Li's Banner Area End Here -->
  57.                             <!-- shop-top-bar start -->
  58.                             <div class="shop-top-bar mt-30">
  59.                                 <div class="shop-bar-inner">
  60.                                     <div class="product-view-mode">
  61.                                         <!-- shop-item-filter-list start -->
  62.                                         <ul class="nav shop-item-filter-list" role="tablist">
  63.                                             <li role="presentation"><a data-toggle="tab" role="tab" aria-controls="grid-view" href="#grid-view"><i class="fa fa-th"></i></a></li>
  64.                                             <li class="active" role="presentation"><a aria-selected="true" class="active show" data-toggle="tab" role="tab" aria-controls="list-view" href="#list-view"><i class="fa fa-th-list"></i></a></li>
  65.                                         </ul>
  66.                                         <!-- shop-item-filter-list end -->
  67.                                     </div>
  68.                                     <div class="toolbar-amount">
  69.                                         <p> {{ products.getTotalItemCount }} (Produits)</p>
  70.                                     </div>
  71.                                 </div>
  72.                                 <!-- product-select-box start -->
  73.                                 <div class="product-select-box">
  74.                                     <div class="product-short">
  75.                                         <p>Lister par:</p>
  76.                                         <select class="nice-select">
  77.                                             <option value="trending">Les nouveaux</option>
  78.                                             <option value="sales">Nom (A - Z)</option>
  79.                                             <option value="sales">Nom (Z - A)</option>
  80.                                             <option value="rating">Prix (Low &gt; High)</option>
  81.                                             <option value="date">Avis (Lowest)</option>
  82.                                             <option value="price-asc">Model (A - Z)</option>
  83.                                             <option value="price-asc">Model (Z - A)</option>
  84.                                         </select>
  85.                                     </div>
  86.                                 </div>
  87.                                 <!-- product-select-box end -->
  88.                             </div>
  89.                             <!-- shop-top-bar end -->
  90.                             <!-- shop-products-wrapper start -->
  91.                             <div class="shop-products-wrapper">
  92.                                 <div class="tab-content">
  93.                                      
  94.  
  95.  
  96.                                     <div id="grid-view" class="tab-pane fade " role="tabpanel">
  97.                                         <div class="product-area shop-product-area">
  98.                                             <div class="row">
  99.                                             {% for singleProduct in categoryProduct.products %}
  100.                                             
  101.                                                 <div class="col-lg-4 col-md-4 col-sm-6 mt-40">
  102.                                                     <!-- single-product-wrap start -->
  103.                                                     
  104.                                                
  105.                                                         
  106.                                                 {% include "@Flexy/FrontBundle/templates/products/includes/_singleProduct.html.twig" with {singleProduct:singleProduct} %}
  107.   
  108.                                                
  109.                                                     <!-- single-product-wrap end -->
  110.                                                 </div>
  111.                                                  {% endfor %}
  112.                                             </div>
  113.                                         </div>
  114.                                     </div>
  115.                                     <div id="list-view" class="tab-pane fade product-list-view active show" role="tabpanel">
  116.                                         <div class="row">
  117.                                             <div class="col">
  118.                                                
  119.                                                 {% for singleProduct in products %}
  120.                                                
  121.                                                         
  122.                                                 {% include "@Flexy/FrontBundle/templates/products/includes/_singleProductListView.html.twig" with {singleProduct:singleProduct} %}
  123.   
  124.                                                 {% endfor %}
  125.                                             </div>
  126.                                         </div>
  127.                                     </div>
  128.                                     <div class="paginatoin-area">
  129.                                         <div class="row">
  130.                                             <div class="col-lg-6 col-md-6">
  131.                                                 <p> {{ products.getTotalItemCount }} (Produits)</p>
  132.                                             </div>
  133.                                             <div class="col-lg-6 col-md-6 menu-item">
  134.                                                 {{ knp_pagination_render(products) }}
  135.                                             </div>
  136.                                         </div>
  137.                                     </div>
  138.                                 </div>
  139.                             </div>
  140.                             <!-- shop-products-wrapper end -->
  141.                         </div>
  142.                     {% if categoryProduct.id != 75 %}        
  143.                         <div class="col-lg-3 order-1 order-lg-2">
  144.                             
  145.                             {{render(path('front_sideBarFilter',{filter:app.request.get("filter")}))}}
  146.                         </div>
  147.                         {% endif %}
  148.                         
  149.                     </div>
  150.                 
  151.                 
  152.                 </div>
  153.                 
  154.             </div>
  155.             <!-- Content Wraper Area End Here -->
  156.         </div>
  157.        
  158. {% endblock %}
  159.    {% block javascripts %}
  160.         {{parent()}}
  161.         <script>
  162.             $(".shop-item-filter-list a").click(function(){
  163.                 var cible = $(this).attr("aria-controls");
  164.                 $(".tab-pane").removeClass("active show");
  165.                 $("#"+cible).addClass("active show");
  166.             });
  167.         </script>
  168.     {% endblock %}