var/cache/dev/twig/ff/ff178dbe6fd72847ada975c98b2697a6.php line 57

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\CoreExtension;
  6. use Twig\Extension\SandboxExtension;
  7. use Twig\Markup;
  8. use Twig\Sandbox\SecurityError;
  9. use Twig\Sandbox\SecurityNotAllowedTagError;
  10. use Twig\Sandbox\SecurityNotAllowedFilterError;
  11. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  12. use Twig\Source;
  13. use Twig\Template;
  14. use Twig\TemplateWrapper;
  15. /* ECommerce/App/Product/index.html.twig */
  16. class __TwigTemplate_02dc2919c8b39ed257ad0181afdd6bb3 extends Template
  17. {
  18. private Source $source;
  19. /**
  20. * @var array<string, Template>
  21. */
  22. private array $macros = [];
  23. public function __construct(Environment $env)
  24. {
  25. parent::__construct($env);
  26. $this->source = $this->getSourceContext();
  27. $this->blocks = [
  28. 'body' => [$this, 'block_body'],
  29. 'javascripts' => [$this, 'block_javascripts'],
  30. ];
  31. }
  32. protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
  33. {
  34. // line 1
  35. return "base.html.twig";
  36. }
  37. protected function doDisplay(array $context, array $blocks = []): iterable
  38. {
  39. $macros = $this->macros;
  40. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  41. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "ECommerce/App/Product/index.html.twig"));
  42. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  43. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "ECommerce/App/Product/index.html.twig"));
  44. // line 5
  45. $macros["͜macros"] = $this->macros["͜macros"] = $this->load("ECommerce/App/Product/macros.html.twig", 5)->unwrap();
  46. // line 1
  47. $this->parent = $this->load("base.html.twig", 1);
  48. yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
  49. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  50. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  51. }
  52. // line 7
  53. /**
  54. * @return iterable<null|scalar|\Stringable>
  55. */
  56. public function block_body(array $context, array $blocks = []): iterable
  57. {
  58. $macros = $this->macros;
  59. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  60. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
  61. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  62. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
  63. // line 8
  64. yield " <div class=\"container-fluid\">
  65. <div class=\"row\">
  66. <div class=\"container\">
  67. <div class=\"content\">
  68. <div class=\"container\">
  69. <div class=\"row position-relative\">
  70. <div class=\"col product-index-col pr-0\">
  71. <div class=\"row p-0 blog-post-content align-items-start\">
  72. <div class=\"p-0 product-index-table border-left-2 w-100\">
  73. <div class=\"row p-0 pl-5 position-relative\">
  74. <img src=\"";
  75. // line 20
  76. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/static/shop-hero.png"), "html", null, true);
  77. yield "\" class=\"img-fluid w-100\" alt=\"Shop Hero\" />
  78. <div class=\"shop-hero-captions\">
  79. <h1>";
  80. // line 23
  81. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("product.shop-hero-title", [], "ECommerceBundle"), "html", null, true);
  82. yield "</h1>
  83. </div>
  84. </div>
  85. <div class=\"row table-headline p-0 pl-3 pb-5\">
  86. ";
  87. // line 27
  88. yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 27, $this->source); })()), 'form_start');
  89. yield "
  90. <div class=\"col-2 p-0 sidebar-part\">
  91. <button class=\"sidebar-toggler\" type=\"button\" data-toggle=\"collapse\" data-target=\"#sidebar-part\" aria-controls=\"sidebar-part\" aria-expanded=\"false\" aria-label=\"Toggle sidebar part\">
  92. <span class=\"sidebar-toggler-icon\"></span>";
  93. // line 31
  94. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("product.filters", [], "ECommerceBundle"), "html", null, true);
  95. yield "
  96. </button>
  97. <div class=\"row p-0 pr-3 collapse sidebar-collapse\" id=\"sidebar-part\">
  98. <h3 class=\"font-24 line-height-113 font-weight-bold pt-53 mb-4 w-100 border-bottom-2-black pb-4 text-uppercase\">";
  99. // line 34
  100. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("categories", [], "ECommerceBundle"), "html", null, true);
  101. yield "</h3>
  102. <h4 class=\"accordion-header active font-21 line-height-113 font-weight-bold w-100 mb-40\">";
  103. // line 35
  104. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("product.categories", [], "ECommerceBundle"), "html", null, true);
  105. yield "</h4>
  106. ";
  107. // line 36
  108. yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 36, $this->source); })()), "categories", [], "any", false, false, false, 36), 'widget', ["attr" => ["class" => "accordion-content max-vh-15 mb-5 w-100"]]);
  109. yield "
  110. <h4 class=\"accordion-header active font-21 line-height-113 font-weight-bold w-100 mb-40\">";
  111. // line 38
  112. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("product.price_range", [], "ECommerceBundle"), "html", null, true);
  113. yield "</h4>
  114. <div class=\"accordion-content range-slider\">
  115. <div class=\"sliders\">
  116. </div>
  117. <div class=\"manual-input-values\">
  118. <span class=\"font-21 line-height-113\">
  119. ";
  120. // line 45
  121. yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 45, $this->source); })()), "min", [], "any", false, false, false, 45), 'widget');
  122. yield " ";
  123. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['App\Service\ECommerce\ProductTwigExtension']->currencyCodeFunction(CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 45, $this->source); })()), "user", [], "any", false, false, false, 45)), "html", null, true);
  124. yield "
  125. </span>
  126. <span class=\"font-21 line-height-113\">
  127. ";
  128. // line 48
  129. yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 48, $this->source); })()), "max", [], "any", false, false, false, 48), 'widget', ["attr" => ["max" => $this->extensions['Twig\Extension\CoreExtension']->formatNumber($this->extensions['App\Service\ECommerce\ProductTwigExtension']->getGlobalMaxPrice(CoreExtension::getAttribute($this->env, $this->source, // line 51
  130. (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 51, $this->source); })()), "user", [], "any", false, false, false, 51)), 0, ".", "")]]);
  131. // line 54
  132. yield " ";
  133. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['App\Service\ECommerce\ProductTwigExtension']->currencyCodeFunction(CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 54, $this->source); })()), "user", [], "any", false, false, false, 54)), "html", null, true);
  134. yield "
  135. </span>
  136. </div>
  137. </div>
  138. <h4 class=\"accordion-header active font-21 line-height-113 font-weight-bold w-100 mb-40\">";
  139. // line 60
  140. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("product.manufacturer", [], "ECommerceBundle"), "html", null, true);
  141. yield "</h4>
  142. ";
  143. // line 61
  144. yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 61, $this->source); })()), "manufacturers", [], "any", false, false, false, 61), 'widget', ["attr" => ["class" => "accordion-content max-vh-15 mb-5 w-100"]]);
  145. yield "
  146. <h4 class=\"accordion-header active font-21 line-height-113 font-weight-bold w-100 mb-40\">";
  147. // line 63
  148. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("product.sub_categories", [], "ECommerceBundle"), "html", null, true);
  149. yield "</h4>
  150. ";
  151. // line 64
  152. yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 64, $this->source); })()), "subCategories", [], "any", false, false, false, 64), 'widget', ["attr" => ["class" => "accordion-content max-vh-15 mb-5 w-100"]]);
  153. yield "
  154. </div>
  155. </div>
  156. <div class=\"form-inline flex-nowrap\">
  157. ";
  158. // line 68
  159. yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 68, $this->source); })()), "sortBy", [], "any", false, false, false, 68), 'widget');
  160. yield "
  161. ";
  162. // line 70
  163. $context["largeIconView"] = "assets/static/large-icon-view.svg";
  164. // line 71
  165. yield " ";
  166. $context["listView"] = "assets/static/list-view-selected.svg";
  167. // line 72
  168. yield " ";
  169. if ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 72, $this->source); })()), "request", [], "any", false, false, false, 72), "query", [], "any", false, false, false, 72), "get", ["view"], "method", false, false, false, 72) == "large-icons")) {
  170. // line 73
  171. yield " ";
  172. $context["largeIconView"] = "assets/static/large-icon-view-selected.svg";
  173. // line 74
  174. yield " ";
  175. $context["listView"] = "assets/static/list-view.svg";
  176. // line 75
  177. yield " ";
  178. }
  179. // line 76
  180. yield "
  181. <a class=\"list-view text-decoration-none\"
  182. href=\"";
  183. // line 78
  184. yield $this->extensions['App\Service\App\PublicTwig']->pathFunction(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 78, $this->source); })()), "request", [], "any", false, false, false, 78), "attributes", [], "any", false, false, false, 78), "get", ["_route"], "method", false, false, false, 78), Twig\Extension\CoreExtension::merge(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 78, $this->source); })()), "request", [], "any", false, false, false, 78), "query", [], "any", false, false, false, 78), "all", [], "any", false, false, false, 78), ["view" => "list"]));
  185. yield "\">
  186. <img src=\"";
  187. // line 79
  188. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl((isset($context["listView"]) || array_key_exists("listView", $context) ? $context["listView"] : (function () { throw new RuntimeError('Variable "listView" does not exist.', 79, $this->source); })())), "html", null, true);
  189. yield "\" alt=\"List View\">
  190. </a>
  191. <a class=\"large-icon-view text-decoration-none ml-2\"
  192. href=\"";
  193. // line 82
  194. yield $this->extensions['App\Service\App\PublicTwig']->pathFunction(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 82, $this->source); })()), "request", [], "any", false, false, false, 82), "attributes", [], "any", false, false, false, 82), "get", ["_route"], "method", false, false, false, 82), Twig\Extension\CoreExtension::merge(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 82, $this->source); })()), "request", [], "any", false, false, false, 82), "query", [], "any", false, false, false, 82), "all", [], "any", false, false, false, 82), ["view" => "large-icons"]));
  195. yield "\">
  196. <img src=\"";
  197. // line 83
  198. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl((isset($context["largeIconView"]) || array_key_exists("largeIconView", $context) ? $context["largeIconView"] : (function () { throw new RuntimeError('Variable "largeIconView" does not exist.', 83, $this->source); })())), "html", null, true);
  199. yield "\" alt=\"Large Icon View\">
  200. </a>
  201. </div>
  202. ";
  203. // line 86
  204. if ((($tmp = CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 86, $this->source); })()), "request", [], "any", false, false, false, 86), "query", [], "any", false, false, false, 86), "get", ["view"], "method", false, false, false, 86)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
  205. // line 87
  206. yield " <input type=\"hidden\" name=\"view\" value=\"";
  207. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 87, $this->source); })()), "request", [], "any", false, false, false, 87), "query", [], "any", false, false, false, 87), "get", ["view"], "method", false, false, false, 87), "html", null, true);
  208. yield "\">
  209. ";
  210. }
  211. // line 89
  212. yield "
  213. ";
  214. // line 90
  215. yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 90, $this->source); })()), 'form_end');
  216. yield "
  217. </div>
  218. <div class=\"row p-0 pl-3\">
  219. <div class=\"col-12 product-tale-like with-photos p-0 without-pagination\">";
  220. // line 95
  221. yield $macros["͜macros"]->getTemplateForMacro("macro_product_depot_table_header", $context, 95, $this->getSourceContext())->macro_product_depot_table_header(...[]);
  222. // line 96
  223. yield $macros["͜macros"]->getTemplateForMacro("macro_depot_product_table_body", $context, 96, $this->getSourceContext())->macro_depot_product_table_body(...[(isset($context["products"]) || array_key_exists("products", $context) ? $context["products"] : (function () { throw new RuntimeError('Variable "products" does not exist.', 96, $this->source); })()), ""]);
  224. // line 98
  225. yield "<div class=\"navigation d-flex justify-content-end ml-auto product-index-navigation\">
  226. <div class=\"row pl-0 pr-0\">
  227. <div class=\"col-12 \">
  228. ";
  229. // line 101
  230. yield $this->extensions['Knp\Bundle\PaginatorBundle\Twig\Extension\PaginationExtension']->render($this->env, (isset($context["products"]) || array_key_exists("products", $context) ? $context["products"] : (function () { throw new RuntimeError('Variable "products" does not exist.', 101, $this->source); })()));
  231. yield "
  232. </div>
  233. </div>
  234. </div>
  235. </div>
  236. </div>
  237. </div>
  238. </div>
  239. </div>
  240. <div class=\"row justify-content-center w-100\">
  241. <div class=\"synonym-products\">
  242. <div id=\"interchange-wrapper\" class=\"mt-3 mb-5\">
  243. <div class=\"row justify-content-center\">
  244. <div class=\"col-12 mb-5 text-center\">
  245. <h1>";
  246. // line 117
  247. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("general.interchange_button_title", [], "ECommerceBundle"), "html", null, true);
  248. yield "</h1>
  249. <a class=\"btn btn-primary mt-4\"
  250. href=\"";
  251. // line 119
  252. yield $this->extensions['App\Service\App\PublicTwig']->pathFunction("mdl_app_synonym_product_find", ["title" => Twig\Extension\CoreExtension::trim("*", "*", "left")]);
  253. yield "\"
  254. data-intro=\"";
  255. // line 120
  256. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("intro.interchange", [], "ECommerceBundle"), "html", null, true);
  257. yield "\"
  258. data-toggle=\"replace\"
  259. data-trigger=\"#interchange-wrapper\">
  260. <span class=\"text-capitalize font-21 font-weight-normal\">";
  261. // line 123
  262. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("general.interchange_button_search", [], "ECommerceBundle"), "html", null, true);
  263. yield "</span>
  264. <img src=\"";
  265. // line 124
  266. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/static/arrows-both-way.svg"), "html", null, true);
  267. yield "\" class=\"img-fluid ml-5\"
  268. alt=\"found in interchange catalogue\">
  269. </a>
  270. </div>
  271. </div>
  272. </div>
  273. </div>
  274. </div>
  275. </div>
  276. </div>
  277. </div>
  278. </div>
  279. </div>
  280. </div>
  281. ";
  282. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  283. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  284. yield from [];
  285. }
  286. // line 140
  287. /**
  288. * @return iterable<null|scalar|\Stringable>
  289. */
  290. public function block_javascripts(array $context, array $blocks = []): iterable
  291. {
  292. $macros = $this->macros;
  293. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  294. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
  295. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  296. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
  297. // line 141
  298. yield " ";
  299. yield from $this->yieldParentBlock("javascripts", $context, $blocks);
  300. yield "
  301. ";
  302. // line 142
  303. yield $this->extensions['Symfony\WebpackEncoreBundle\Twig\EntryFilesTwigExtension']->renderWebpackScriptTags("app/twoInputSlider");
  304. yield "
  305. ";
  306. // line 143
  307. yield $this->extensions['Symfony\WebpackEncoreBundle\Twig\EntryFilesTwigExtension']->renderWebpackScriptTags("app/submitFormOnChange");
  308. yield "
  309. ";
  310. // line 144
  311. yield $this->extensions['Symfony\WebpackEncoreBundle\Twig\EntryFilesTwigExtension']->renderWebpackScriptTags("app/showHideToggle");
  312. yield "
  313. ";
  314. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  315. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  316. yield from [];
  317. }
  318. /**
  319. * @codeCoverageIgnore
  320. */
  321. public function getTemplateName(): string
  322. {
  323. return "ECommerce/App/Product/index.html.twig";
  324. }
  325. /**
  326. * @codeCoverageIgnore
  327. */
  328. public function isTraitable(): bool
  329. {
  330. return false;
  331. }
  332. /**
  333. * @codeCoverageIgnore
  334. */
  335. public function getDebugInfo(): array
  336. {
  337. return array ( 347 => 144, 343 => 143, 339 => 142, 334 => 141, 321 => 140, 295 => 124, 291 => 123, 285 => 120, 281 => 119, 276 => 117, 257 => 101, 252 => 98, 250 => 96, 248 => 95, 241 => 90, 238 => 89, 232 => 87, 230 => 86, 224 => 83, 220 => 82, 214 => 79, 210 => 78, 206 => 76, 203 => 75, 200 => 74, 197 => 73, 194 => 72, 191 => 71, 189 => 70, 184 => 68, 177 => 64, 173 => 63, 168 => 61, 164 => 60, 154 => 54, 152 => 51, 151 => 48, 143 => 45, 133 => 38, 128 => 36, 124 => 35, 120 => 34, 114 => 31, 107 => 27, 100 => 23, 94 => 20, 80 => 8, 67 => 7, 56 => 1, 54 => 5, 41 => 1,);
  338. }
  339. public function getSourceContext(): Source
  340. {
  341. return new Source("{% extends 'base.html.twig' %}
  342. {% trans_default_domain 'ECommerceBundle' %}
  343. {%- import 'ECommerce/App/Product/macros.html.twig' as macros -%}
  344. {% block body %}
  345. <div class=\"container-fluid\">
  346. <div class=\"row\">
  347. <div class=\"container\">
  348. <div class=\"content\">
  349. <div class=\"container\">
  350. <div class=\"row position-relative\">
  351. <div class=\"col product-index-col pr-0\">
  352. <div class=\"row p-0 blog-post-content align-items-start\">
  353. <div class=\"p-0 product-index-table border-left-2 w-100\">
  354. <div class=\"row p-0 pl-5 position-relative\">
  355. <img src=\"{{ asset('assets/static/shop-hero.png') }}\" class=\"img-fluid w-100\" alt=\"Shop Hero\" />
  356. <div class=\"shop-hero-captions\">
  357. <h1>{{ 'product.shop-hero-title'|trans }}</h1>
  358. </div>
  359. </div>
  360. <div class=\"row table-headline p-0 pl-3 pb-5\">
  361. {{ form_start(form) }}
  362. <div class=\"col-2 p-0 sidebar-part\">
  363. <button class=\"sidebar-toggler\" type=\"button\" data-toggle=\"collapse\" data-target=\"#sidebar-part\" aria-controls=\"sidebar-part\" aria-expanded=\"false\" aria-label=\"Toggle sidebar part\">
  364. <span class=\"sidebar-toggler-icon\"></span>{{ 'product.filters'|trans }}
  365. </button>
  366. <div class=\"row p-0 pr-3 collapse sidebar-collapse\" id=\"sidebar-part\">
  367. <h3 class=\"font-24 line-height-113 font-weight-bold pt-53 mb-4 w-100 border-bottom-2-black pb-4 text-uppercase\">{{ 'categories'|trans }}</h3>
  368. <h4 class=\"accordion-header active font-21 line-height-113 font-weight-bold w-100 mb-40\">{{ 'product.categories'|trans }}</h4>
  369. {{ form_widget(form.categories, {attr: {class: 'accordion-content max-vh-15 mb-5 w-100'}}) }}
  370. <h4 class=\"accordion-header active font-21 line-height-113 font-weight-bold w-100 mb-40\">{{ 'product.price_range'|trans }}</h4>
  371. <div class=\"accordion-content range-slider\">
  372. <div class=\"sliders\">
  373. </div>
  374. <div class=\"manual-input-values\">
  375. <span class=\"font-21 line-height-113\">
  376. {{ form_widget(form.min) }} {{ currency_code(app.user) }}
  377. </span>
  378. <span class=\"font-21 line-height-113\">
  379. {{ form_widget(form.max,
  380. {attr:
  381. {
  382. max: global_max_product_price(app.user)|number_format(0, '.', ''),
  383. }
  384. })
  385. }} {{ currency_code(app.user) }}
  386. </span>
  387. </div>
  388. </div>
  389. <h4 class=\"accordion-header active font-21 line-height-113 font-weight-bold w-100 mb-40\">{{ 'product.manufacturer'|trans }}</h4>
  390. {{ form_widget(form.manufacturers, {attr: {class: 'accordion-content max-vh-15 mb-5 w-100'}}) }}
  391. <h4 class=\"accordion-header active font-21 line-height-113 font-weight-bold w-100 mb-40\">{{ 'product.sub_categories'|trans }}</h4>
  392. {{ form_widget(form.subCategories, {attr: {class: 'accordion-content max-vh-15 mb-5 w-100'}}) }}
  393. </div>
  394. </div>
  395. <div class=\"form-inline flex-nowrap\">
  396. {{ form_widget(form.sortBy) }}
  397. {% set largeIconView = 'assets/static/large-icon-view.svg' %}
  398. {% set listView = 'assets/static/list-view-selected.svg' %}
  399. {% if app.request.query.get('view') == 'large-icons' %}
  400. {% set largeIconView = 'assets/static/large-icon-view-selected.svg' %}
  401. {% set listView = 'assets/static/list-view.svg' %}
  402. {% endif %}
  403. <a class=\"list-view text-decoration-none\"
  404. href=\"{{ path(app.request.attributes.get('_route'), app.request.query.all | merge({'view': 'list'})) }}\">
  405. <img src=\"{{ asset(listView) }}\" alt=\"List View\">
  406. </a>
  407. <a class=\"large-icon-view text-decoration-none ml-2\"
  408. href=\"{{ path(app.request.attributes.get('_route'), app.request.query.all | merge({'view': 'large-icons'})) }}\">
  409. <img src=\"{{ asset(largeIconView) }}\" alt=\"Large Icon View\">
  410. </a>
  411. </div>
  412. {% if app.request.query.get('view') %}
  413. <input type=\"hidden\" name=\"view\" value=\"{{ app.request.query.get('view') }}\">
  414. {% endif %}
  415. {{ form_end(form) }}
  416. </div>
  417. <div class=\"row p-0 pl-3\">
  418. <div class=\"col-12 product-tale-like with-photos p-0 without-pagination\">
  419. {{- macros.product_depot_table_header() -}}
  420. {{- macros.depot_product_table_body(products, '') -}}
  421. <div class=\"navigation d-flex justify-content-end ml-auto product-index-navigation\">
  422. <div class=\"row pl-0 pr-0\">
  423. <div class=\"col-12 \">
  424. {{ knp_pagination_render(products) }}
  425. </div>
  426. </div>
  427. </div>
  428. </div>
  429. </div>
  430. </div>
  431. </div>
  432. </div>
  433. <div class=\"row justify-content-center w-100\">
  434. <div class=\"synonym-products\">
  435. <div id=\"interchange-wrapper\" class=\"mt-3 mb-5\">
  436. <div class=\"row justify-content-center\">
  437. <div class=\"col-12 mb-5 text-center\">
  438. <h1>{{ 'general.interchange_button_title'|trans }}</h1>
  439. <a class=\"btn btn-primary mt-4\"
  440. href=\"{{ path('mdl_app_synonym_product_find', { 'title': ('*'|trim('*', 'left')) }) }}\"
  441. data-intro=\"{{ ('intro.interchange'|trans) }}\"
  442. data-toggle=\"replace\"
  443. data-trigger=\"#interchange-wrapper\">
  444. <span class=\"text-capitalize font-21 font-weight-normal\">{{ 'general.interchange_button_search'|trans }}</span>
  445. <img src=\"{{ asset('assets/static/arrows-both-way.svg') }}\" class=\"img-fluid ml-5\"
  446. alt=\"found in interchange catalogue\">
  447. </a>
  448. </div>
  449. </div>
  450. </div>
  451. </div>
  452. </div>
  453. </div>
  454. </div>
  455. </div>
  456. </div>
  457. </div>
  458. </div>
  459. {% endblock %}
  460. {% block javascripts %}
  461. {{ parent() }}
  462. {{ encore_entry_script_tags('app/twoInputSlider') }}
  463. {{ encore_entry_script_tags('app/submitFormOnChange') }}
  464. {{ encore_entry_script_tags('app/showHideToggle') }}
  465. {% endblock %}
  466. ", "ECommerce/App/Product/index.html.twig", "/var/www/rs.optima/templates/ECommerce/App/Product/index.html.twig");
  467. }
  468. }