templates/Frontend/product.html.twig line 1

Open in your IDE?
  1. <div class='row bg-img1 bg-background-color' style='margin-right:0px;margin-left:0px;'>
  2.     <div class='col-12'>
  3.         <section class="txt-center m-t-45 p-lr-15 p-tb-52 text_color_main">
  4.             <h2 class="ltext-105 txt-center">
  5.                 {{webSetting.mainTitle}}
  6.             </h2>
  7.             <p>{{webSetting.mainSubtitle}}</p>
  8.         </section>
  9.     </div>    
  10. </div>
  11. <section class="bg0 p-t-23">
  12.     <div class="container">    
  13.         <div class="flex-w flex-sb-m p-b-52">            
  14.             <div class="flex-w flex-l-m filter-tope-group m-tb-10">                
  15.                 <button class="stext-106 cl6 hov1 bor3 trans-04 m-r-32 m-tb-5 how-active1 filter_list" id='cat_btn_0' data-filterr="*" data-token='0' onclick='loadCategory(false,"",{{pager_limit}})'>
  16.                     Todos los productos
  17.                 </button>
  18.     
  19.                 {% for item in categories %}                    
  20.                     {% if item.category_count > 0 %}
  21.                         {% if item.subcategory_count > 0 %}
  22.                             <button class="stext-106 cl6 hov1 bor3 trans-04 m-r-32 m-tb-5 filter_list" id='cat_btn_{{item.category_id | md5}}' data-token='{{item.category_id | md5}}' onclick="$('.subcategories_For_{{item.category_id}}').toggle('fast')">
  23.                                 {{item.name}}
  24.                             </button>                            
  25.                             <span class='subcategories_For_{{item.category_id}}' style='display:none;'><i class='fa fa-chevron-right'></i>&nbsp;&nbsp;&nbsp;</span>
  26.                         {% else %}
  27.                             <button class="stext-106 cl6 hov1 bor3 trans-04 m-r-32 m-tb-5 filter_list" id='cat_btn_{{item.category_id | md5}}' data-token='{{item.category_id | md5}}' onclick="loadCategory(1,'{{item.category_id | md5}}',{{pager_limit}})" data-filterr=".filter_{{item.category_id}}">
  28.                                 {{item.name}}
  29.                             </button>                        
  30.                         {% endif %}
  31.                         
  32.                         {% for subcategory in subcategories %}
  33.                             {% if subcategory.category.categoryId == item.category_id %}
  34.                             <button style='color:#ccc;display:none' onclick="loadCategory(2,'{{subcategory.subcategoryId | md5}}',{{pager_limit}})" class="stext-106 cl6 hov1 bor3 trans-04 m-r-32 m-tb-5 subcategories_For_{{item.category_id}}" data-filterr=".filter_s_{{subcategory.subcategoryId}}">
  35.                                 {{subcategory.name}}
  36.                             </button>                            
  37.                             {% endif %}
  38.                         {% endfor %}
  39.                     {% endif %}
  40.                 {% endfor %}
  41.             </div>
  42.     
  43.             {#
  44.             <div class="flex-w flex-c-m m-tb-10">
  45.                 <div class="flex-c-m stext-106 cl6 size-104 bor4 pointer hov-btn3 trans-04 m-r-8 m-tb-4 js-show-filter">
  46.                     <i class="icon-filter cl2 m-r-6 fs-15 trans-04 zmdi zmdi-filter-list"></i>
  47.                     <i class="icon-close-filter cl2 m-r-6 fs-15 trans-04 zmdi zmdi-close dis-none"></i>
  48.                      Filtros
  49.                 </div>
  50.     
  51.                 <div class="flex-c-m stext-106 cl6 size-105 bor4 pointer hov-btn3 trans-04 m-tb-4 js-show-search">
  52.                     <i class="icon-search cl2 m-r-6 fs-15 trans-04 zmdi zmdi-search"></i>
  53.                     <i class="icon-close-search cl2 m-r-6 fs-15 trans-04 zmdi zmdi-close dis-none"></i>
  54.                     Buscar
  55.                 </div>
  56.             </div>
  57.             #}
  58.             
  59.             {% if filter %}
  60.                 <!-- Search product: dis-none-->
  61.                 <div class="panel-search w-full p-t-10 p-b-15">
  62.                     <div class="bor8 dis-flex p-l-15">
  63.                         <button class="size-113 flex-c-m fs-16 cl2 hov-cl1 trans-04">
  64.                             <i class="zmdi zmdi-search"></i>
  65.                         </button>                        
  66.                         <form method='post' id='search_field_1' style='width:100%'>
  67.                             <input class="mtext-107 cl2 size-114 plh2 p-r-15" type="text" id="search-product-1" placeholder="Buscar">                        
  68.                         </form>                                
  69.                     </div>    
  70.                     <small id='search_field_loader_1'></small>
  71.                 </div>
  72.             {% endif %}
  73.     
  74.             <!-- Filter -->
  75.             {#<div class="dis-none panel-filter w-full p-t-10">
  76.                 <div class="wrap-filter flex-w bg6 w-full p-lr-40 p-t-27 p-lr-15-sm">
  77.                     <div class="filter-col1 p-r-15 p-b-27">
  78.                         <div class="mtext-102 cl2 p-b-15">
  79.                              Ordenar por
  80.                         </div>
  81.     
  82.                         <ul>
  83.                             <li class="p-b-6">
  84.                                 <a href="#" class="filter-link stext-106 trans-04">
  85.                                     Default
  86.                                 </a>
  87.                             </li>
  88.     
  89.                             <li class="p-b-6">
  90.                                 <a href="#" class="filter-link stext-106 trans-04">
  91.                                     Popularity
  92.                                 </a>
  93.                             </li>
  94.     
  95.                             <li class="p-b-6">
  96.                                 <a href="#" class="filter-link stext-106 trans-04">
  97.                                     Average rating
  98.                                 </a>
  99.                             </li>
  100.     
  101.                             <li class="p-b-6">
  102.                                 <a href="#" class="filter-link stext-106 trans-04 filter-link-active">
  103.                                     Newness
  104.                                 </a>
  105.                             </li>
  106.     
  107.                             <li class="p-b-6">
  108.                                 <a href="#" class="filter-link stext-106 trans-04">
  109.                                     Price: Low to High
  110.                                 </a>
  111.                             </li>
  112.     
  113.                             <li class="p-b-6">
  114.                                 <a href="#" class="filter-link stext-106 trans-04">
  115.                                     Price: High to Low
  116.                                 </a>
  117.                             </li>
  118.                         </ul>
  119.                     </div>
  120.     
  121.                     <div class="filter-col2 p-r-15 p-b-27">
  122.                         <div class="mtext-102 cl2 p-b-15">
  123.                             Precio
  124.                         </div>
  125.     
  126.                         <ul>
  127.                             <li class="p-b-6">
  128.                                 <a href="#" class="filter-link stext-106 trans-04 filter-link-active">
  129.                                     All
  130.                                 </a>
  131.                             </li>
  132.     
  133.                             <li class="p-b-6">
  134.                                 <a href="#" class="filter-link stext-106 trans-04">
  135.                                     $0.00 - $50.00
  136.                                 </a>
  137.                             </li>
  138.     
  139.                             <li class="p-b-6">
  140.                                 <a href="#" class="filter-link stext-106 trans-04">
  141.                                     $50.00 - $100.00
  142.                                 </a>
  143.                             </li>
  144.     
  145.                             <li class="p-b-6">
  146.                                 <a href="#" class="filter-link stext-106 trans-04">
  147.                                     $100.00 - $150.00
  148.                                 </a>
  149.                             </li>
  150.     
  151.                             <li class="p-b-6">
  152.                                 <a href="#" class="filter-link stext-106 trans-04">
  153.                                     $150.00 - $200.00
  154.                                 </a>
  155.                             </li>
  156.     
  157.                             <li class="p-b-6">
  158.                                 <a href="#" class="filter-link stext-106 trans-04">
  159.                                     $200.00+
  160.                                 </a>
  161.                             </li>
  162.                         </ul>
  163.                     </div>
  164.     
  165.                     <div class="filter-col3 p-r-15 p-b-27">
  166.                         <div class="mtext-102 cl2 p-b-15">
  167.                             Color
  168.                         </div>
  169.     
  170.                         <ul>
  171.                             <li class="p-b-6">
  172.                                 <span class="fs-15 lh-12 m-r-6" style="color: #222;">
  173.                                     <i class="zmdi zmdi-circle"></i>
  174.                                 </span>
  175.     
  176.                                 <a href="#" class="filter-link stext-106 trans-04">
  177.                                     Black
  178.                                 </a>
  179.                             </li>
  180.     
  181.                             <li class="p-b-6">
  182.                                 <span class="fs-15 lh-12 m-r-6" style="color: #4272d7;">
  183.                                     <i class="zmdi zmdi-circle"></i>
  184.                                 </span>
  185.     
  186.                                 <a href="#" class="filter-link stext-106 trans-04 filter-link-active">
  187.                                     Blue
  188.                                 </a>
  189.                             </li>
  190.     
  191.                             <li class="p-b-6">
  192.                                 <span class="fs-15 lh-12 m-r-6" style="color: #b3b3b3;">
  193.                                     <i class="zmdi zmdi-circle"></i>
  194.                                 </span>
  195.     
  196.                                 <a href="#" class="filter-link stext-106 trans-04">
  197.                                     Grey
  198.                                 </a>
  199.                             </li>
  200.     
  201.                             <li class="p-b-6">
  202.                                 <span class="fs-15 lh-12 m-r-6" style="color: #00ad5f;">
  203.                                     <i class="zmdi zmdi-circle"></i>
  204.                                 </span>
  205.     
  206.                                 <a href="#" class="filter-link stext-106 trans-04">
  207.                                     Green
  208.                                 </a>
  209.                             </li>
  210.     
  211.                             <li class="p-b-6">
  212.                                 <span class="fs-15 lh-12 m-r-6" style="color: #fa4251;">
  213.                                     <i class="zmdi zmdi-circle"></i>
  214.                                 </span>
  215.     
  216.                                 <a href="#" class="filter-link stext-106 trans-04">
  217.                                     Red
  218.                                 </a>
  219.                             </li>
  220.     
  221.                             <li class="p-b-6">
  222.                                 <span class="fs-15 lh-12 m-r-6" style="color: #aaa;">
  223.                                     <i class="zmdi zmdi-circle-o"></i>
  224.                                 </span>
  225.     
  226.                                 <a href="#" class="filter-link stext-106 trans-04">
  227.                                     White
  228.                                 </a>
  229.                             </li>
  230.                         </ul>
  231.                     </div>
  232.     
  233.                     <div class="filter-col4 p-b-27">
  234.                         <div class="mtext-102 cl2 p-b-15">
  235.                             Tags
  236.                         </div>
  237.     
  238.                         <div class="flex-w p-t-4 m-r--5">
  239.                             <a href="#" class="flex-c-m stext-107 cl6 size-301 bor7 p-lr-15 hov-tag1 trans-04 m-r-5 m-b-5">
  240.                                 Fashion
  241.                             </a>
  242.     
  243.                             <a href="#" class="flex-c-m stext-107 cl6 size-301 bor7 p-lr-15 hov-tag1 trans-04 m-r-5 m-b-5">
  244.                                 Lifestyle
  245.                             </a>
  246.     
  247.                             <a href="#" class="flex-c-m stext-107 cl6 size-301 bor7 p-lr-15 hov-tag1 trans-04 m-r-5 m-b-5">
  248.                                 Denim
  249.                             </a>
  250.     
  251.                             <a href="#" class="flex-c-m stext-107 cl6 size-301 bor7 p-lr-15 hov-tag1 trans-04 m-r-5 m-b-5">
  252.                                 Streetstyle
  253.                             </a>
  254.     
  255.                             <a href="#" class="flex-c-m stext-107 cl6 size-301 bor7 p-lr-15 hov-tag1 trans-04 m-r-5 m-b-5">
  256.                                 Crafts
  257.                             </a>
  258.                         </div>
  259.                     </div>
  260.                 </div>
  261.             </div>#}
  262.         </div>
  263.         
  264.         
  265.         <div class="row" id='dynamic_loader'></div>
  266.         
  267.                 
  268.         <div class='p-t-10' id='pager_label'></div>
  269.         <br>
  270.         <div class="flex-c-m flex-w w-full" id='pager_control' data-type="" data-token="" data-limit="">            
  271.             <a href="javascript:void(0)" onclick="loadMore()" class="flex-c-m stext-101 cl5 size-103 bg2 bor1 hov-btn1 p-lr-15 trans-04">
  272.                 Cargar más
  273.             </a>
  274.         </div>
  275.         
  276.         
  277.     </div>
  278. </section>
  279. {% block script %}
  280. <script>
  281.     
  282.     function imageClick(id, title)
  283.     {
  284.             
  285.         var url = '{{ path("frontend_product_modal_load", {slug: slug}) }}';
  286.         var data = {                
  287.             id: id
  288.         };
  289.         $('#viewContentBody').html('<div class="row"><div class="col-lg-12 text-center"><br><i class="fa fa-spinner fa-spin" style="font-size:30px"></i><br></div></div> ');
  290.         $('#viewContentBody').load(url,data, function()
  291.         {
  292.         });
  293.         
  294.         $('#viewContentTitle').text(title);
  295.         $('#viewContent').modal('show');
  296.             //initiate the plugin and pass the id of the div containing gallery images
  297.         $('#imageModal').elevateZoom({
  298.             gallery:'gallery_01',
  299.             responsive: true,
  300.             cursor: 'pointer',
  301.             //easing : true,
  302.             galleryActiveClass: 'active'
  303.             //imageCrossfade: true
  304.         });
  305.         //pass the images to Fancybox
  306.         $('#imageModal').bind("click", function(e)
  307.         {
  308.             var ez = $('#imageModal').data('elevateZoom');
  309.             $.fancybox(ez.getGalleryList());
  310.             return false;
  311.         });
  312.         $('#viewContent').on('hidden.bs.modal', function()
  313.         {
  314.             $(".zoomContainer"). css("display", "none"); 
  315.             $(".zoomWindow"). css("display", "none"); 
  316.         });
  317.         
  318.     }
  319.     
  320.     function imageRelationClick(id_relation, name, md5)
  321.     {
  322.         
  323.         var url = '{{ path("frontend_product_modal_load", {slug: slug}) }}';
  324.         var data = {
  325.             id: id_relation
  326.         };
  327.         $('#viewContentBody').html('<div class="row"><div class="col-lg-12 text-center"><br><i class="fa fa-spinner fa-spin" style="font-size:30px"></i><br></div></div> ');
  328.         $('#viewContentBody').load(url,data, function(){
  329.         });
  330.         
  331.         $('#viewContentTitle').text(name);
  332.        
  333.     }
  334.     
  335.          
  336. </script>
  337. {% endblock %}