var/cache/dev/twig/45/452da077ba798d3ada07dc4b1d798a26.php line 34

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\SandboxExtension;
  6. use Twig\Markup;
  7. use Twig\Sandbox\SecurityError;
  8. use Twig\Sandbox\SecurityNotAllowedTagError;
  9. use Twig\Sandbox\SecurityNotAllowedFilterError;
  10. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  11. use Twig\Source;
  12. use Twig\Template;
  13. /* Frontend/product.html.twig */
  14. class __TwigTemplate_9834b2430bcaf8f315ccaeaa4fc62850 extends Template
  15. {
  16.     private $source;
  17.     private $macros = [];
  18.     public function __construct(Environment $env)
  19.     {
  20.         parent::__construct($env);
  21.         $this->source $this->getSourceContext();
  22.         $this->parent false;
  23.         $this->blocks = [
  24.             'script' => [$this'block_script'],
  25.         ];
  26.     }
  27.     protected function doDisplay(array $context, array $blocks = [])
  28.     {
  29.         $macros $this->macros;
  30.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  31.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Frontend/product.html.twig"));
  32.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  33.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Frontend/product.html.twig"));
  34.         // line 1
  35.         echo "<div class='row bg-img1 bg-background-color' style='margin-right:0px;margin-left:0px;'>
  36. \t<div class='col-12'>
  37. \t\t<section class=\"txt-center m-t-45 p-lr-15 p-tb-52 text_color_main\">
  38. \t\t\t<h2 class=\"ltext-105 txt-center\">
  39. \t\t\t\t";
  40.         // line 5
  41.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["webSetting"]) || array_key_exists("webSetting"$context) ? $context["webSetting"] : (function () { throw new RuntimeError('Variable "webSetting" does not exist.'5$this->source); })()), "mainTitle", [], "any"falsefalsefalse5), "html"nulltrue);
  42.         echo "
  43. \t\t\t</h2>
  44. \t\t\t<p>";
  45.         // line 7
  46.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["webSetting"]) || array_key_exists("webSetting"$context) ? $context["webSetting"] : (function () { throw new RuntimeError('Variable "webSetting" does not exist.'7$this->source); })()), "mainSubtitle", [], "any"falsefalsefalse7), "html"nulltrue);
  47.         echo "</p>
  48. \t\t</section>
  49. \t</div>\t
  50. </div>
  51. <section class=\"bg0 p-t-23\">
  52. \t<div class=\"container\">\t
  53. \t\t<div class=\"flex-w flex-sb-m p-b-52\">\t\t\t
  54. \t\t\t<div class=\"flex-w flex-l-m filter-tope-group m-tb-10\">\t\t\t\t
  55. \t\t\t\t<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,\"\",";
  56.         // line 17
  57.         echo twig_escape_filter($this->env, (isset($context["pager_limit"]) || array_key_exists("pager_limit"$context) ? $context["pager_limit"] : (function () { throw new RuntimeError('Variable "pager_limit" does not exist.'17$this->source); })()), "html"nulltrue);
  58.         echo ")'>
  59. \t\t\t\t\tTodos los productos
  60. \t\t\t\t</button>
  61. \t
  62. \t\t\t\t";
  63.         // line 21
  64.         $context['_parent'] = $context;
  65.         $context['_seq'] = twig_ensure_traversable((isset($context["categories"]) || array_key_exists("categories"$context) ? $context["categories"] : (function () { throw new RuntimeError('Variable "categories" does not exist.'21$this->source); })()));
  66.         foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
  67.             echo "\t\t\t\t\t
  68. \t\t\t\t\t";
  69.             // line 22
  70.             if ((twig_get_attribute($this->env$this->source$context["item"], "category_count", [], "any"falsefalsefalse22) > 0)) {
  71.                 // line 23
  72.                 echo "\t\t\t\t\t\t";
  73.                 if ((twig_get_attribute($this->env$this->source$context["item"], "subcategory_count", [], "any"falsefalsefalse23) > 0)) {
  74.                     // line 24
  75.                     echo "\t\t\t\t\t\t\t<button class=\"stext-106 cl6 hov1 bor3 trans-04 m-r-32 m-tb-5 filter_list\" id='cat_btn_";
  76.                     echo twig_escape_filter($this->env$this->extensions['App\Twig\AppExtension']->md5(twig_get_attribute($this->env$this->source$context["item"], "category_id", [], "any"falsefalsefalse24)), "html"nulltrue);
  77.                     echo "' data-token='";
  78.                     echo twig_escape_filter($this->env$this->extensions['App\Twig\AppExtension']->md5(twig_get_attribute($this->env$this->source$context["item"], "category_id", [], "any"falsefalsefalse24)), "html"nulltrue);
  79.                     echo "' onclick=\"\$('.subcategories_For_";
  80.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["item"], "category_id", [], "any"falsefalsefalse24), "html"nulltrue);
  81.                     echo "').toggle('fast')\">
  82. \t\t\t\t\t\t\t\t";
  83.                     // line 25
  84.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["item"], "name", [], "any"falsefalsefalse25), "html"nulltrue);
  85.                     echo "
  86. \t\t\t\t\t\t\t</button>\t\t\t\t\t\t\t
  87. \t\t\t\t\t\t\t<span class='subcategories_For_";
  88.                     // line 27
  89.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["item"], "category_id", [], "any"falsefalsefalse27), "html"nulltrue);
  90.                     echo "' style='display:none;'><i class='fa fa-chevron-right'></i>&nbsp;&nbsp;&nbsp;</span>
  91. \t\t\t\t\t\t";
  92.                 } else {
  93.                     // line 29
  94.                     echo "\t\t\t\t\t\t\t<button class=\"stext-106 cl6 hov1 bor3 trans-04 m-r-32 m-tb-5 filter_list\" id='cat_btn_";
  95.                     echo twig_escape_filter($this->env$this->extensions['App\Twig\AppExtension']->md5(twig_get_attribute($this->env$this->source$context["item"], "category_id", [], "any"falsefalsefalse29)), "html"nulltrue);
  96.                     echo "' data-token='";
  97.                     echo twig_escape_filter($this->env$this->extensions['App\Twig\AppExtension']->md5(twig_get_attribute($this->env$this->source$context["item"], "category_id", [], "any"falsefalsefalse29)), "html"nulltrue);
  98.                     echo "' onclick=\"loadCategory(1,'";
  99.                     echo twig_escape_filter($this->env$this->extensions['App\Twig\AppExtension']->md5(twig_get_attribute($this->env$this->source$context["item"], "category_id", [], "any"falsefalsefalse29)), "html"nulltrue);
  100.                     echo "',";
  101.                     echo twig_escape_filter($this->env, (isset($context["pager_limit"]) || array_key_exists("pager_limit"$context) ? $context["pager_limit"] : (function () { throw new RuntimeError('Variable "pager_limit" does not exist.'29$this->source); })()), "html"nulltrue);
  102.                     echo ")\" data-filterr=\".filter_";
  103.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["item"], "category_id", [], "any"falsefalsefalse29), "html"nulltrue);
  104.                     echo "\">
  105. \t\t\t\t\t\t\t\t";
  106.                     // line 30
  107.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["item"], "name", [], "any"falsefalsefalse30), "html"nulltrue);
  108.                     echo "
  109. \t\t\t\t\t\t\t</button>\t\t\t\t\t\t
  110. \t\t\t\t\t\t";
  111.                 }
  112.                 // line 33
  113.                 echo "\t\t\t\t\t\t
  114. \t\t\t\t\t\t";
  115.                 // line 34
  116.                 $context['_parent'] = $context;
  117.                 $context['_seq'] = twig_ensure_traversable((isset($context["subcategories"]) || array_key_exists("subcategories"$context) ? $context["subcategories"] : (function () { throw new RuntimeError('Variable "subcategories" does not exist.'34$this->source); })()));
  118.                 foreach ($context['_seq'] as $context["_key"] => $context["subcategory"]) {
  119.                     // line 35
  120.                     echo "\t\t\t\t\t\t\t";
  121.                     if ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["subcategory"], "category", [], "any"falsefalsefalse35), "categoryId", [], "any"falsefalsefalse35) == twig_get_attribute($this->env$this->source$context["item"], "category_id", [], "any"falsefalsefalse35))) {
  122.                         // line 36
  123.                         echo "\t\t\t\t\t\t\t<button style='color:#ccc;display:none' onclick=\"loadCategory(2,'";
  124.                         echo twig_escape_filter($this->env$this->extensions['App\Twig\AppExtension']->md5(twig_get_attribute($this->env$this->source$context["subcategory"], "subcategoryId", [], "any"falsefalsefalse36)), "html"nulltrue);
  125.                         echo "',";
  126.                         echo twig_escape_filter($this->env, (isset($context["pager_limit"]) || array_key_exists("pager_limit"$context) ? $context["pager_limit"] : (function () { throw new RuntimeError('Variable "pager_limit" does not exist.'36$this->source); })()), "html"nulltrue);
  127.                         echo ")\" class=\"stext-106 cl6 hov1 bor3 trans-04 m-r-32 m-tb-5 subcategories_For_";
  128.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["item"], "category_id", [], "any"falsefalsefalse36), "html"nulltrue);
  129.                         echo "\" data-filterr=\".filter_s_";
  130.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["subcategory"], "subcategoryId", [], "any"falsefalsefalse36), "html"nulltrue);
  131.                         echo "\">
  132. \t\t\t\t\t\t\t\t";
  133.                         // line 37
  134.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["subcategory"], "name", [], "any"falsefalsefalse37), "html"nulltrue);
  135.                         echo "
  136. \t\t\t\t\t\t\t</button>\t\t\t\t\t\t\t
  137. \t\t\t\t\t\t\t";
  138.                     }
  139.                     // line 40
  140.                     echo "\t\t\t\t\t\t";
  141.                 }
  142.                 $_parent $context['_parent'];
  143.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['subcategory'], $context['_parent'], $context['loop']);
  144.                 $context array_intersect_key($context$_parent) + $_parent;
  145.                 // line 41
  146.                 echo "\t\t\t\t\t";
  147.             }
  148.             // line 42
  149.             echo "\t\t\t\t";
  150.         }
  151.         $_parent $context['_parent'];
  152.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
  153.         $context array_intersect_key($context$_parent) + $_parent;
  154.         // line 43
  155.         echo "\t\t\t</div>
  156. \t
  157. \t\t\t";
  158.         // line 60
  159.         echo "\t\t\t
  160. \t\t\t";
  161.         // line 61
  162.         if ((isset($context["filter"]) || array_key_exists("filter"$context) ? $context["filter"] : (function () { throw new RuntimeError('Variable "filter" does not exist.'61$this->source); })())) {
  163.             // line 62
  164.             echo "\t\t\t\t<!-- Search product: dis-none-->
  165. \t\t\t\t<div class=\"panel-search w-full p-t-10 p-b-15\">
  166. \t\t\t\t\t<div class=\"bor8 dis-flex p-l-15\">
  167. \t\t\t\t\t\t<button class=\"size-113 flex-c-m fs-16 cl2 hov-cl1 trans-04\">
  168. \t\t\t\t\t\t\t<i class=\"zmdi zmdi-search\"></i>
  169. \t\t\t\t\t\t</button>\t\t\t\t\t\t
  170. \t\t\t\t\t\t<form method='post' id='search_field_1' style='width:100%'>
  171. \t\t\t\t\t\t\t<input class=\"mtext-107 cl2 size-114 plh2 p-r-15\" type=\"text\" id=\"search-product-1\" placeholder=\"Buscar\">\t\t\t\t\t\t
  172. \t\t\t\t\t\t</form>\t\t\t\t\t\t\t\t
  173. \t\t\t\t\t</div>\t
  174. \t\t\t\t\t<small id='search_field_loader_1'></small>
  175. \t\t\t\t</div>
  176. \t\t\t";
  177.         }
  178.         // line 75
  179.         echo "\t
  180. \t\t\t<!-- Filter -->
  181. \t\t\t";
  182.         // line 264
  183.         echo "\t\t</div>
  184. \t\t
  185. \t\t
  186. \t\t<div class=\"row\" id='dynamic_loader'></div>
  187. \t\t
  188. \t\t\t\t
  189. \t\t<div class='p-t-10' id='pager_label'></div>
  190. \t\t<br>
  191. \t\t<div class=\"flex-c-m flex-w w-full\" id='pager_control' data-type=\"\" data-token=\"\" data-limit=\"\">\t\t\t
  192. \t\t\t<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\">
  193. \t\t\t\tCargar más
  194. \t\t\t</a>
  195. \t\t</div>
  196. \t\t
  197. \t\t
  198. \t</div>
  199. </section>
  200. ";
  201.         // line 283
  202.         $this->displayBlock('script'$context$blocks);
  203.         
  204.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  205.         
  206.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  207.     }
  208.     public function block_script($context, array $blocks = [])
  209.     {
  210.         $macros $this->macros;
  211.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  212.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""script"));
  213.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  214.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""script"));
  215.         // line 284
  216.         echo "<script>
  217. \t
  218. \tfunction imageClick(id, title)
  219. \t{
  220.             
  221. \t\tvar url = '";
  222.         // line 289
  223.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("frontend_product_modal_load", ["slug" => (isset($context["slug"]) || array_key_exists("slug"$context) ? $context["slug"] : (function () { throw new RuntimeError('Variable "slug" does not exist.'289$this->source); })())]), "html"nulltrue);
  224.         echo "';
  225. \t\tvar data = {                
  226. \t\t\tid: id
  227. \t\t};
  228. \t\t\$('#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> ');
  229. \t\t\$('#viewContentBody').load(url,data, function()
  230. \t\t{
  231. \t\t});
  232. \t\t
  233. \t\t\$('#viewContentTitle').text(title);
  234. \t\t\$('#viewContent').modal('show');
  235. \t\t\t//initiate the plugin and pass the id of the div containing gallery images
  236. \t\t\$('#imageModal').elevateZoom({
  237. \t\t\tgallery:'gallery_01',
  238. \t\t\tresponsive: true,
  239. \t\t\tcursor: 'pointer',
  240. \t\t\t//easing : true,
  241. \t\t\tgalleryActiveClass: 'active'
  242. \t\t\t//imageCrossfade: true
  243. \t\t});
  244. \t\t//pass the images to Fancybox
  245. \t\t\$('#imageModal').bind(\"click\", function(e)
  246. \t\t{
  247. \t\t\tvar ez = \$('#imageModal').data('elevateZoom');
  248. \t\t\t\$.fancybox(ez.getGalleryList());
  249. \t\t\treturn false;
  250. \t\t});
  251. \t\t\$('#viewContent').on('hidden.bs.modal', function()
  252. \t\t{
  253. \t\t\t\$(\".zoomContainer\"). css(\"display\", \"none\"); 
  254. \t\t\t\$(\".zoomWindow\"). css(\"display\", \"none\"); 
  255. \t\t});
  256.         
  257.     }
  258.     
  259.     function imageRelationClick(id_relation, name, md5)
  260. \t{
  261.         
  262. \t\tvar url = '";
  263.         // line 331
  264.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("frontend_product_modal_load", ["slug" => (isset($context["slug"]) || array_key_exists("slug"$context) ? $context["slug"] : (function () { throw new RuntimeError('Variable "slug" does not exist.'331$this->source); })())]), "html"nulltrue);
  265.         echo "';
  266. \t\tvar data = {
  267. \t\t\tid: id_relation
  268. \t\t};
  269. \t\t\$('#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> ');
  270. \t\t\$('#viewContentBody').load(url,data, function(){
  271. \t\t});
  272. \t\t
  273. \t\t\$('#viewContentTitle').text(name);
  274.        
  275.     }
  276. \t
  277.          
  278. </script>
  279. ";
  280.         
  281.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  282.         
  283.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  284.     }
  285.     public function getTemplateName()
  286.     {
  287.         return "Frontend/product.html.twig";
  288.     }
  289.     public function isTraitable()
  290.     {
  291.         return false;
  292.     }
  293.     public function getDebugInfo()
  294.     {
  295.         return array (  286 => 331,  241 => 289,  234 => 284,  215 => 283,  194 => 264,  190 => 75,  175 => 62,  173 => 61,  170 => 60,  166 => 43,  160 => 42,  157 => 41,  151 => 40,  145 => 37,  134 => 36,  131 => 35,  127 => 34,  124 => 33,  118 => 30,  105 => 29,  100 => 27,  95 => 25,  86 => 24,  83 => 23,  81 => 22,  75 => 21,  68 => 17,  55 => 7,  50 => 5,  44 => 1,);
  296.     }
  297.     public function getSourceContext()
  298.     {
  299.         return new Source("<div class='row bg-img1 bg-background-color' style='margin-right:0px;margin-left:0px;'>
  300. \t<div class='col-12'>
  301. \t\t<section class=\"txt-center m-t-45 p-lr-15 p-tb-52 text_color_main\">
  302. \t\t\t<h2 class=\"ltext-105 txt-center\">
  303. \t\t\t\t{{webSetting.mainTitle}}
  304. \t\t\t</h2>
  305. \t\t\t<p>{{webSetting.mainSubtitle}}</p>
  306. \t\t</section>
  307. \t</div>\t
  308. </div>
  309. <section class=\"bg0 p-t-23\">
  310. \t<div class=\"container\">\t
  311. \t\t<div class=\"flex-w flex-sb-m p-b-52\">\t\t\t
  312. \t\t\t<div class=\"flex-w flex-l-m filter-tope-group m-tb-10\">\t\t\t\t
  313. \t\t\t\t<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}})'>
  314. \t\t\t\t\tTodos los productos
  315. \t\t\t\t</button>
  316. \t
  317. \t\t\t\t{% for item in categories %}\t\t\t\t\t
  318. \t\t\t\t\t{% if item.category_count > 0 %}
  319. \t\t\t\t\t\t{% if item.subcategory_count > 0 %}
  320. \t\t\t\t\t\t\t<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')\">
  321. \t\t\t\t\t\t\t\t{{item.name}}
  322. \t\t\t\t\t\t\t</button>\t\t\t\t\t\t\t
  323. \t\t\t\t\t\t\t<span class='subcategories_For_{{item.category_id}}' style='display:none;'><i class='fa fa-chevron-right'></i>&nbsp;&nbsp;&nbsp;</span>
  324. \t\t\t\t\t\t{% else %}
  325. \t\t\t\t\t\t\t<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}}\">
  326. \t\t\t\t\t\t\t\t{{item.name}}
  327. \t\t\t\t\t\t\t</button>\t\t\t\t\t\t
  328. \t\t\t\t\t\t{% endif %}
  329. \t\t\t\t\t\t
  330. \t\t\t\t\t\t{% for subcategory in subcategories %}
  331. \t\t\t\t\t\t\t{% if subcategory.category.categoryId == item.category_id %}
  332. \t\t\t\t\t\t\t<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}}\">
  333. \t\t\t\t\t\t\t\t{{subcategory.name}}
  334. \t\t\t\t\t\t\t</button>\t\t\t\t\t\t\t
  335. \t\t\t\t\t\t\t{% endif %}
  336. \t\t\t\t\t\t{% endfor %}
  337. \t\t\t\t\t{% endif %}
  338. \t\t\t\t{% endfor %}
  339. \t\t\t</div>
  340. \t
  341. \t\t\t{#
  342. \t\t\t<div class=\"flex-w flex-c-m m-tb-10\">
  343. \t\t\t\t<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\">
  344. \t\t\t\t\t<i class=\"icon-filter cl2 m-r-6 fs-15 trans-04 zmdi zmdi-filter-list\"></i>
  345. \t\t\t\t\t<i class=\"icon-close-filter cl2 m-r-6 fs-15 trans-04 zmdi zmdi-close dis-none\"></i>
  346. \t\t\t\t\t Filtros
  347. \t\t\t\t</div>
  348. \t
  349. \t\t\t\t<div class=\"flex-c-m stext-106 cl6 size-105 bor4 pointer hov-btn3 trans-04 m-tb-4 js-show-search\">
  350. \t\t\t\t\t<i class=\"icon-search cl2 m-r-6 fs-15 trans-04 zmdi zmdi-search\"></i>
  351. \t\t\t\t\t<i class=\"icon-close-search cl2 m-r-6 fs-15 trans-04 zmdi zmdi-close dis-none\"></i>
  352. \t\t\t\t\tBuscar
  353. \t\t\t\t</div>
  354. \t\t\t</div>
  355. \t\t\t#}
  356. \t\t\t
  357. \t\t\t{% if filter %}
  358. \t\t\t\t<!-- Search product: dis-none-->
  359. \t\t\t\t<div class=\"panel-search w-full p-t-10 p-b-15\">
  360. \t\t\t\t\t<div class=\"bor8 dis-flex p-l-15\">
  361. \t\t\t\t\t\t<button class=\"size-113 flex-c-m fs-16 cl2 hov-cl1 trans-04\">
  362. \t\t\t\t\t\t\t<i class=\"zmdi zmdi-search\"></i>
  363. \t\t\t\t\t\t</button>\t\t\t\t\t\t
  364. \t\t\t\t\t\t<form method='post' id='search_field_1' style='width:100%'>
  365. \t\t\t\t\t\t\t<input class=\"mtext-107 cl2 size-114 plh2 p-r-15\" type=\"text\" id=\"search-product-1\" placeholder=\"Buscar\">\t\t\t\t\t\t
  366. \t\t\t\t\t\t</form>\t\t\t\t\t\t\t\t
  367. \t\t\t\t\t</div>\t
  368. \t\t\t\t\t<small id='search_field_loader_1'></small>
  369. \t\t\t\t</div>
  370. \t\t\t{% endif %}
  371. \t
  372. \t\t\t<!-- Filter -->
  373. \t\t\t{#<div class=\"dis-none panel-filter w-full p-t-10\">
  374. \t\t\t\t<div class=\"wrap-filter flex-w bg6 w-full p-lr-40 p-t-27 p-lr-15-sm\">
  375. \t\t\t\t\t<div class=\"filter-col1 p-r-15 p-b-27\">
  376. \t\t\t\t\t\t<div class=\"mtext-102 cl2 p-b-15\">
  377. \t\t\t\t\t\t\t Ordenar por
  378. \t\t\t\t\t\t</div>
  379. \t
  380. \t\t\t\t\t\t<ul>
  381. \t\t\t\t\t\t\t<li class=\"p-b-6\">
  382. \t\t\t\t\t\t\t\t<a href=\"#\" class=\"filter-link stext-106 trans-04\">
  383. \t\t\t\t\t\t\t\t\tDefault
  384. \t\t\t\t\t\t\t\t</a>
  385. \t\t\t\t\t\t\t</li>
  386. \t
  387. \t\t\t\t\t\t\t<li class=\"p-b-6\">
  388. \t\t\t\t\t\t\t\t<a href=\"#\" class=\"filter-link stext-106 trans-04\">
  389. \t\t\t\t\t\t\t\t\tPopularity
  390. \t\t\t\t\t\t\t\t</a>
  391. \t\t\t\t\t\t\t</li>
  392. \t
  393. \t\t\t\t\t\t\t<li class=\"p-b-6\">
  394. \t\t\t\t\t\t\t\t<a href=\"#\" class=\"filter-link stext-106 trans-04\">
  395. \t\t\t\t\t\t\t\t\tAverage rating
  396. \t\t\t\t\t\t\t\t</a>
  397. \t\t\t\t\t\t\t</li>
  398. \t
  399. \t\t\t\t\t\t\t<li class=\"p-b-6\">
  400. \t\t\t\t\t\t\t\t<a href=\"#\" class=\"filter-link stext-106 trans-04 filter-link-active\">
  401. \t\t\t\t\t\t\t\t\tNewness
  402. \t\t\t\t\t\t\t\t</a>
  403. \t\t\t\t\t\t\t</li>
  404. \t
  405. \t\t\t\t\t\t\t<li class=\"p-b-6\">
  406. \t\t\t\t\t\t\t\t<a href=\"#\" class=\"filter-link stext-106 trans-04\">
  407. \t\t\t\t\t\t\t\t\tPrice: Low to High
  408. \t\t\t\t\t\t\t\t</a>
  409. \t\t\t\t\t\t\t</li>
  410. \t
  411. \t\t\t\t\t\t\t<li class=\"p-b-6\">
  412. \t\t\t\t\t\t\t\t<a href=\"#\" class=\"filter-link stext-106 trans-04\">
  413. \t\t\t\t\t\t\t\t\tPrice: High to Low
  414. \t\t\t\t\t\t\t\t</a>
  415. \t\t\t\t\t\t\t</li>
  416. \t\t\t\t\t\t</ul>
  417. \t\t\t\t\t</div>
  418. \t
  419. \t\t\t\t\t<div class=\"filter-col2 p-r-15 p-b-27\">
  420. \t\t\t\t\t\t<div class=\"mtext-102 cl2 p-b-15\">
  421. \t\t\t\t\t\t\tPrecio
  422. \t\t\t\t\t\t</div>
  423. \t
  424. \t\t\t\t\t\t<ul>
  425. \t\t\t\t\t\t\t<li class=\"p-b-6\">
  426. \t\t\t\t\t\t\t\t<a href=\"#\" class=\"filter-link stext-106 trans-04 filter-link-active\">
  427. \t\t\t\t\t\t\t\t\tAll
  428. \t\t\t\t\t\t\t\t</a>
  429. \t\t\t\t\t\t\t</li>
  430. \t
  431. \t\t\t\t\t\t\t<li class=\"p-b-6\">
  432. \t\t\t\t\t\t\t\t<a href=\"#\" class=\"filter-link stext-106 trans-04\">
  433. \t\t\t\t\t\t\t\t\t\$0.00 - \$50.00
  434. \t\t\t\t\t\t\t\t</a>
  435. \t\t\t\t\t\t\t</li>
  436. \t
  437. \t\t\t\t\t\t\t<li class=\"p-b-6\">
  438. \t\t\t\t\t\t\t\t<a href=\"#\" class=\"filter-link stext-106 trans-04\">
  439. \t\t\t\t\t\t\t\t\t\$50.00 - \$100.00
  440. \t\t\t\t\t\t\t\t</a>
  441. \t\t\t\t\t\t\t</li>
  442. \t
  443. \t\t\t\t\t\t\t<li class=\"p-b-6\">
  444. \t\t\t\t\t\t\t\t<a href=\"#\" class=\"filter-link stext-106 trans-04\">
  445. \t\t\t\t\t\t\t\t\t\$100.00 - \$150.00
  446. \t\t\t\t\t\t\t\t</a>
  447. \t\t\t\t\t\t\t</li>
  448. \t
  449. \t\t\t\t\t\t\t<li class=\"p-b-6\">
  450. \t\t\t\t\t\t\t\t<a href=\"#\" class=\"filter-link stext-106 trans-04\">
  451. \t\t\t\t\t\t\t\t\t\$150.00 - \$200.00
  452. \t\t\t\t\t\t\t\t</a>
  453. \t\t\t\t\t\t\t</li>
  454. \t
  455. \t\t\t\t\t\t\t<li class=\"p-b-6\">
  456. \t\t\t\t\t\t\t\t<a href=\"#\" class=\"filter-link stext-106 trans-04\">
  457. \t\t\t\t\t\t\t\t\t\$200.00+
  458. \t\t\t\t\t\t\t\t</a>
  459. \t\t\t\t\t\t\t</li>
  460. \t\t\t\t\t\t</ul>
  461. \t\t\t\t\t</div>
  462. \t
  463. \t\t\t\t\t<div class=\"filter-col3 p-r-15 p-b-27\">
  464. \t\t\t\t\t\t<div class=\"mtext-102 cl2 p-b-15\">
  465. \t\t\t\t\t\t\tColor
  466. \t\t\t\t\t\t</div>
  467. \t
  468. \t\t\t\t\t\t<ul>
  469. \t\t\t\t\t\t\t<li class=\"p-b-6\">
  470. \t\t\t\t\t\t\t\t<span class=\"fs-15 lh-12 m-r-6\" style=\"color: #222;\">
  471. \t\t\t\t\t\t\t\t\t<i class=\"zmdi zmdi-circle\"></i>
  472. \t\t\t\t\t\t\t\t</span>
  473. \t
  474. \t\t\t\t\t\t\t\t<a href=\"#\" class=\"filter-link stext-106 trans-04\">
  475. \t\t\t\t\t\t\t\t\tBlack
  476. \t\t\t\t\t\t\t\t</a>
  477. \t\t\t\t\t\t\t</li>
  478. \t
  479. \t\t\t\t\t\t\t<li class=\"p-b-6\">
  480. \t\t\t\t\t\t\t\t<span class=\"fs-15 lh-12 m-r-6\" style=\"color: #4272d7;\">
  481. \t\t\t\t\t\t\t\t\t<i class=\"zmdi zmdi-circle\"></i>
  482. \t\t\t\t\t\t\t\t</span>
  483. \t
  484. \t\t\t\t\t\t\t\t<a href=\"#\" class=\"filter-link stext-106 trans-04 filter-link-active\">
  485. \t\t\t\t\t\t\t\t\tBlue
  486. \t\t\t\t\t\t\t\t</a>
  487. \t\t\t\t\t\t\t</li>
  488. \t
  489. \t\t\t\t\t\t\t<li class=\"p-b-6\">
  490. \t\t\t\t\t\t\t\t<span class=\"fs-15 lh-12 m-r-6\" style=\"color: #b3b3b3;\">
  491. \t\t\t\t\t\t\t\t\t<i class=\"zmdi zmdi-circle\"></i>
  492. \t\t\t\t\t\t\t\t</span>
  493. \t
  494. \t\t\t\t\t\t\t\t<a href=\"#\" class=\"filter-link stext-106 trans-04\">
  495. \t\t\t\t\t\t\t\t\tGrey
  496. \t\t\t\t\t\t\t\t</a>
  497. \t\t\t\t\t\t\t</li>
  498. \t
  499. \t\t\t\t\t\t\t<li class=\"p-b-6\">
  500. \t\t\t\t\t\t\t\t<span class=\"fs-15 lh-12 m-r-6\" style=\"color: #00ad5f;\">
  501. \t\t\t\t\t\t\t\t\t<i class=\"zmdi zmdi-circle\"></i>
  502. \t\t\t\t\t\t\t\t</span>
  503. \t
  504. \t\t\t\t\t\t\t\t<a href=\"#\" class=\"filter-link stext-106 trans-04\">
  505. \t\t\t\t\t\t\t\t\tGreen
  506. \t\t\t\t\t\t\t\t</a>
  507. \t\t\t\t\t\t\t</li>
  508. \t
  509. \t\t\t\t\t\t\t<li class=\"p-b-6\">
  510. \t\t\t\t\t\t\t\t<span class=\"fs-15 lh-12 m-r-6\" style=\"color: #fa4251;\">
  511. \t\t\t\t\t\t\t\t\t<i class=\"zmdi zmdi-circle\"></i>
  512. \t\t\t\t\t\t\t\t</span>
  513. \t
  514. \t\t\t\t\t\t\t\t<a href=\"#\" class=\"filter-link stext-106 trans-04\">
  515. \t\t\t\t\t\t\t\t\tRed
  516. \t\t\t\t\t\t\t\t</a>
  517. \t\t\t\t\t\t\t</li>
  518. \t
  519. \t\t\t\t\t\t\t<li class=\"p-b-6\">
  520. \t\t\t\t\t\t\t\t<span class=\"fs-15 lh-12 m-r-6\" style=\"color: #aaa;\">
  521. \t\t\t\t\t\t\t\t\t<i class=\"zmdi zmdi-circle-o\"></i>
  522. \t\t\t\t\t\t\t\t</span>
  523. \t
  524. \t\t\t\t\t\t\t\t<a href=\"#\" class=\"filter-link stext-106 trans-04\">
  525. \t\t\t\t\t\t\t\t\tWhite
  526. \t\t\t\t\t\t\t\t</a>
  527. \t\t\t\t\t\t\t</li>
  528. \t\t\t\t\t\t</ul>
  529. \t\t\t\t\t</div>
  530. \t
  531. \t\t\t\t\t<div class=\"filter-col4 p-b-27\">
  532. \t\t\t\t\t\t<div class=\"mtext-102 cl2 p-b-15\">
  533. \t\t\t\t\t\t\tTags
  534. \t\t\t\t\t\t</div>
  535. \t
  536. \t\t\t\t\t\t<div class=\"flex-w p-t-4 m-r--5\">
  537. \t\t\t\t\t\t\t<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\">
  538. \t\t\t\t\t\t\t\tFashion
  539. \t\t\t\t\t\t\t</a>
  540. \t
  541. \t\t\t\t\t\t\t<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\">
  542. \t\t\t\t\t\t\t\tLifestyle
  543. \t\t\t\t\t\t\t</a>
  544. \t
  545. \t\t\t\t\t\t\t<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\">
  546. \t\t\t\t\t\t\t\tDenim
  547. \t\t\t\t\t\t\t</a>
  548. \t
  549. \t\t\t\t\t\t\t<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\">
  550. \t\t\t\t\t\t\t\tStreetstyle
  551. \t\t\t\t\t\t\t</a>
  552. \t
  553. \t\t\t\t\t\t\t<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\">
  554. \t\t\t\t\t\t\t\tCrafts
  555. \t\t\t\t\t\t\t</a>
  556. \t\t\t\t\t\t</div>
  557. \t\t\t\t\t</div>
  558. \t\t\t\t</div>
  559. \t\t\t</div>#}
  560. \t\t</div>
  561. \t\t
  562. \t\t
  563. \t\t<div class=\"row\" id='dynamic_loader'></div>
  564. \t\t
  565. \t\t\t\t
  566. \t\t<div class='p-t-10' id='pager_label'></div>
  567. \t\t<br>
  568. \t\t<div class=\"flex-c-m flex-w w-full\" id='pager_control' data-type=\"\" data-token=\"\" data-limit=\"\">\t\t\t
  569. \t\t\t<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\">
  570. \t\t\t\tCargar más
  571. \t\t\t</a>
  572. \t\t</div>
  573. \t\t
  574. \t\t
  575. \t</div>
  576. </section>
  577. {% block script %}
  578. <script>
  579. \t
  580. \tfunction imageClick(id, title)
  581. \t{
  582.             
  583. \t\tvar url = '{{ path(\"frontend_product_modal_load\", {slug: slug}) }}';
  584. \t\tvar data = {                
  585. \t\t\tid: id
  586. \t\t};
  587. \t\t\$('#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> ');
  588. \t\t\$('#viewContentBody').load(url,data, function()
  589. \t\t{
  590. \t\t});
  591. \t\t
  592. \t\t\$('#viewContentTitle').text(title);
  593. \t\t\$('#viewContent').modal('show');
  594. \t\t\t//initiate the plugin and pass the id of the div containing gallery images
  595. \t\t\$('#imageModal').elevateZoom({
  596. \t\t\tgallery:'gallery_01',
  597. \t\t\tresponsive: true,
  598. \t\t\tcursor: 'pointer',
  599. \t\t\t//easing : true,
  600. \t\t\tgalleryActiveClass: 'active'
  601. \t\t\t//imageCrossfade: true
  602. \t\t});
  603. \t\t//pass the images to Fancybox
  604. \t\t\$('#imageModal').bind(\"click\", function(e)
  605. \t\t{
  606. \t\t\tvar ez = \$('#imageModal').data('elevateZoom');
  607. \t\t\t\$.fancybox(ez.getGalleryList());
  608. \t\t\treturn false;
  609. \t\t});
  610. \t\t\$('#viewContent').on('hidden.bs.modal', function()
  611. \t\t{
  612. \t\t\t\$(\".zoomContainer\"). css(\"display\", \"none\"); 
  613. \t\t\t\$(\".zoomWindow\"). css(\"display\", \"none\"); 
  614. \t\t});
  615.         
  616.     }
  617.     
  618.     function imageRelationClick(id_relation, name, md5)
  619. \t{
  620.         
  621. \t\tvar url = '{{ path(\"frontend_product_modal_load\", {slug: slug}) }}';
  622. \t\tvar data = {
  623. \t\t\tid: id_relation
  624. \t\t};
  625. \t\t\$('#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> ');
  626. \t\t\$('#viewContentBody').load(url,data, function(){
  627. \t\t});
  628. \t\t
  629. \t\t\$('#viewContentTitle').text(name);
  630.        
  631.     }
  632. \t
  633.          
  634. </script>
  635. {% endblock %}
  636. ""Frontend/product.html.twig""/home/sinfilas/public_html/templates/Frontend/product.html.twig");
  637.     }
  638. }