var/cache/dev/twig/39/39b81a5c042cf2d268d1727c454ca247.php line 323

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. /* front/catalog/discount/view.html.twig */
  15. class __TwigTemplate_6081e9e9b8eb2ebac97010a01d1acf7a extends Template
  16. {
  17. private $source;
  18. private $macros = [];
  19. public function __construct(Environment $env)
  20. {
  21. parent::__construct($env);
  22. $this->source = $this->getSourceContext();
  23. $this->blocks = [
  24. 'javascripts' => [$this, 'block_javascripts'],
  25. 'structuredData' => [$this, 'block_structuredData'],
  26. 'bodyClass' => [$this, 'block_bodyClass'],
  27. 'metas' => [$this, 'block_metas'],
  28. 'featured' => [$this, 'block_featured'],
  29. 'breadcrumbs' => [$this, 'block_breadcrumbs'],
  30. 'content' => [$this, 'block_content'],
  31. ];
  32. }
  33. protected function doGetParent(array $context)
  34. {
  35. // line 1
  36. return "front/front.html.twig";
  37. }
  38. protected function doDisplay(array $context, array $blocks = [])
  39. {
  40. $macros = $this->macros;
  41. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  42. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "front/catalog/discount/view.html.twig"));
  43. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  44. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "front/catalog/discount/view.html.twig"));
  45. $this->parent = $this->loadTemplate("front/front.html.twig", "front/catalog/discount/view.html.twig", 1);
  46. yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
  47. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  48. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  49. }
  50. // line 3
  51. public function block_javascripts($context, array $blocks = [])
  52. {
  53. $macros = $this->macros;
  54. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  55. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
  56. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  57. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
  58. // line 4
  59. yield " <script>
  60. config.discountId = ";
  61. // line 5
  62. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["discount"]) || array_key_exists("discount", $context) ? $context["discount"] : (function () { throw new RuntimeError('Variable "discount" does not exist.', 5, $this->source); })()), "id", [], "any", false, false, false, 5), "html", null, true);
  63. yield ";
  64. </script>
  65. <script src=\"";
  66. // line 7
  67. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("js/filters.js"), "html", null, true);
  68. yield "\"></script>
  69. ";
  70. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  71. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  72. return; yield '';
  73. }
  74. // line 10
  75. public function block_structuredData($context, array $blocks = [])
  76. {
  77. $macros = $this->macros;
  78. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  79. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "structuredData"));
  80. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  81. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "structuredData"));
  82. // line 11
  83. yield " ";
  84. $context["cpt"] = 1;
  85. // line 12
  86. yield " <script type=\"application/ld+json\">
  87. {
  88. \"@context\": \"https://schema.org\",
  89. \"@type\": \"BreadcrumbList\",
  90. \"itemListElement\":
  91. [
  92. {
  93. \"@type\": \"ListItem\",
  94. \"position\": ";
  95. // line 20
  96. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["cpt"]) || array_key_exists("cpt", $context) ? $context["cpt"] : (function () { throw new RuntimeError('Variable "cpt" does not exist.', 20, $this->source); })()), "html", null, true);
  97. yield ",
  98. \"item\":
  99. {
  100. \"@id\": \"";
  101. // line 23
  102. yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("index");
  103. yield "\",
  104. \"name\": \"";
  105. // line 24
  106. yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Vivog | Matériel pour les toiletteurs et éleveurs", [], "messages");
  107. yield "\"
  108. }
  109. },
  110. ";
  111. // line 27
  112. $context['_parent'] = $context;
  113. $context['_seq'] = CoreExtension::ensureTraversable((isset($context["path"]) || array_key_exists("path", $context) ? $context["path"] : (function () { throw new RuntimeError('Variable "path" does not exist.', 27, $this->source); })()));
  114. $context['loop'] = [
  115. 'parent' => $context['_parent'],
  116. 'index0' => 0,
  117. 'index' => 1,
  118. 'first' => true,
  119. ];
  120. if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  121. $length = count($context['_seq']);
  122. $context['loop']['revindex0'] = $length - 1;
  123. $context['loop']['revindex'] = $length;
  124. $context['loop']['length'] = $length;
  125. $context['loop']['last'] = 1 === $length;
  126. }
  127. foreach ($context['_seq'] as $context["_key"] => $context["p"]) {
  128. // line 28
  129. yield " ";
  130. $context["cpt"] = ((isset($context["cpt"]) || array_key_exists("cpt", $context) ? $context["cpt"] : (function () { throw new RuntimeError('Variable "cpt" does not exist.', 28, $this->source); })()) + 1);
  131. // line 29
  132. yield " {
  133. \"@type\": \"ListItem\",
  134. \"position\": ";
  135. // line 31
  136. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["cpt"]) || array_key_exists("cpt", $context) ? $context["cpt"] : (function () { throw new RuntimeError('Variable "cpt" does not exist.', 31, $this->source); })()), "html", null, true);
  137. yield ",
  138. \"item\":
  139. {
  140. ";
  141. // line 34
  142. if ((CoreExtension::getAttribute($this->env, $this->source, $context["loop"], "index", [], "any", false, false, false, 34) == 1)) {
  143. // line 35
  144. yield " \"@id\": \"";
  145. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("universe", ["url" => CoreExtension::getAttribute($this->env, $this->source, $context["p"], "url", [], "any", false, false, false, 35), "id" => CoreExtension::getAttribute($this->env, $this->source, $context["p"], "id", [], "any", false, false, false, 35)]), "html", null, true);
  146. yield "\",
  147. ";
  148. } else {
  149. // line 37
  150. yield " \"@id\": \"";
  151. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("discount", ["url" => CoreExtension::getAttribute($this->env, $this->source, $context["p"], "url", [], "any", false, false, false, 37), "id" => CoreExtension::getAttribute($this->env, $this->source, $context["p"], "id", [], "any", false, false, false, 37)]), "html", null, true);
  152. yield "\",
  153. ";
  154. }
  155. // line 39
  156. yield " \"name\": \"";
  157. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["p"], "name", [], "any", false, false, false, 39), "html", null, true);
  158. yield "\"
  159. }
  160. },
  161. ";
  162. ++$context['loop']['index0'];
  163. ++$context['loop']['index'];
  164. $context['loop']['first'] = false;
  165. if (isset($context['loop']['length'])) {
  166. --$context['loop']['revindex0'];
  167. --$context['loop']['revindex'];
  168. $context['loop']['last'] = 0 === $context['loop']['revindex0'];
  169. }
  170. }
  171. $_parent = $context['_parent'];
  172. unset($context['_seq'], $context['_iterated'], $context['_key'], $context['p'], $context['_parent'], $context['loop']);
  173. $context = array_intersect_key($context, $_parent) + $_parent;
  174. // line 43
  175. yield " ";
  176. $context["cpt"] = ((isset($context["cpt"]) || array_key_exists("cpt", $context) ? $context["cpt"] : (function () { throw new RuntimeError('Variable "cpt" does not exist.', 43, $this->source); })()) + 1);
  177. // line 44
  178. yield " {
  179. \"@type\": \"ListItem\",
  180. \"position\": ";
  181. // line 46
  182. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["cpt"]) || array_key_exists("cpt", $context) ? $context["cpt"] : (function () { throw new RuntimeError('Variable "cpt" does not exist.', 46, $this->source); })()), "html", null, true);
  183. yield ",
  184. \"item\":
  185. {
  186. \"@id\": \"";
  187. // line 49
  188. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("discount", ["url" => CoreExtension::getAttribute($this->env, $this->source, (isset($context["discount"]) || array_key_exists("discount", $context) ? $context["discount"] : (function () { throw new RuntimeError('Variable "discount" does not exist.', 49, $this->source); })()), "url", [], "any", false, false, false, 49), "id" => CoreExtension::getAttribute($this->env, $this->source, (isset($context["discount"]) || array_key_exists("discount", $context) ? $context["discount"] : (function () { throw new RuntimeError('Variable "discount" does not exist.', 49, $this->source); })()), "id", [], "any", false, false, false, 49)]), "html", null, true);
  189. yield "\",
  190. \"name\": \"";
  191. // line 50
  192. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["discount"]) || array_key_exists("discount", $context) ? $context["discount"] : (function () { throw new RuntimeError('Variable "discount" does not exist.', 50, $this->source); })()), "title", [], "any", false, false, false, 50), "html", null, true);
  193. yield "\"
  194. }
  195. }
  196. ]
  197. }
  198. </script>
  199. ";
  200. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  201. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  202. return; yield '';
  203. }
  204. // line 58
  205. public function block_bodyClass($context, array $blocks = [])
  206. {
  207. $macros = $this->macros;
  208. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  209. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "bodyClass"));
  210. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  211. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "bodyClass"));
  212. yield "discount-page";
  213. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  214. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  215. return; yield '';
  216. }
  217. // line 60
  218. public function block_metas($context, array $blocks = [])
  219. {
  220. $macros = $this->macros;
  221. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  222. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "metas"));
  223. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  224. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "metas"));
  225. // line 61
  226. yield " <title>";
  227. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['App\Twig\TextExtension']->stripTagsFilter(CoreExtension::getAttribute($this->env, $this->source, (isset($context["discountDescription"]) || array_key_exists("discountDescription", $context) ? $context["discountDescription"] : (function () { throw new RuntimeError('Variable "discountDescription" does not exist.', 61, $this->source); })()), "title", [], "any", false, false, false, 61)), "html", null, true);
  228. yield "</title>
  229. <link rel=\"canonical\" href=\"";
  230. // line 62
  231. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("discount", ["id" => CoreExtension::getAttribute($this->env, $this->source, (isset($context["discount"]) || array_key_exists("discount", $context) ? $context["discount"] : (function () { throw new RuntimeError('Variable "discount" does not exist.', 62, $this->source); })()), "id", [], "any", false, false, false, 62), "url" => CoreExtension::getAttribute($this->env, $this->source, (isset($context["discount"]) || array_key_exists("discount", $context) ? $context["discount"] : (function () { throw new RuntimeError('Variable "discount" does not exist.', 62, $this->source); })()), "url", [], "any", false, false, false, 62)]), "html", null, true);
  232. yield "\" />
  233. <meta name=\"robots\" content=\"noindex\">
  234. ";
  235. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  236. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  237. return; yield '';
  238. }
  239. // line 66
  240. public function block_featured($context, array $blocks = [])
  241. {
  242. $macros = $this->macros;
  243. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  244. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "featured"));
  245. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  246. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "featured"));
  247. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  248. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  249. return; yield '';
  250. }
  251. // line 68
  252. public function block_breadcrumbs($context, array $blocks = [])
  253. {
  254. $macros = $this->macros;
  255. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  256. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "breadcrumbs"));
  257. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  258. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "breadcrumbs"));
  259. // line 69
  260. yield " ";
  261. yield from $this->loadTemplate("front/layout/breadcrumbs.html.twig", "front/catalog/discount/view.html.twig", 69)->unwrap()->yield(CoreExtension::merge($context, ["discount" => (isset($context["discount"]) || array_key_exists("discount", $context) ? $context["discount"] : (function () { throw new RuntimeError('Variable "discount" does not exist.', 69, $this->source); })())]));
  262. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  263. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  264. return; yield '';
  265. }
  266. // line 72
  267. public function block_content($context, array $blocks = [])
  268. {
  269. $macros = $this->macros;
  270. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  271. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
  272. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  273. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
  274. // line 73
  275. yield " <div class=\"ctn category-view discount-view\">
  276. ";
  277. // line 74
  278. if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_ADMIN")) {
  279. // line 75
  280. yield " <div class=\"admin-tools\">
  281. <a href=\"";
  282. // line 76
  283. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("admin_discount_edit", ["id" => CoreExtension::getAttribute($this->env, $this->source, (isset($context["discount"]) || array_key_exists("discount", $context) ? $context["discount"] : (function () { throw new RuntimeError('Variable "discount" does not exist.', 76, $this->source); })()), "id", [], "any", false, false, false, 76)]), "html", null, true);
  284. yield "\" class=\"admin-update\" target=\"_blank\">modifier la catégorie</a>
  285. </div>
  286. ";
  287. }
  288. // line 79
  289. yield " <h1>";
  290. yield CoreExtension::getAttribute($this->env, $this->source, (isset($context["discountDescription"]) || array_key_exists("discountDescription", $context) ? $context["discountDescription"] : (function () { throw new RuntimeError('Variable "discountDescription" does not exist.', 79, $this->source); })()), "title", [], "any", false, false, false, 79);
  291. yield "</h1>
  292. ";
  293. // line 80
  294. yield from $this->loadTemplate("front/catalog/discount/list.html.twig", "front/catalog/discount/view.html.twig", 80)->unwrap()->yield($context);
  295. // line 81
  296. yield " <div class=\"center\">
  297. <div class=\"product-ctn\">
  298. ";
  299. // line 83
  300. yield from $this->loadTemplate("front/catalog/product/list.html.twig", "front/catalog/discount/view.html.twig", 83)->unwrap()->yield(CoreExtension::merge($context, ["products" => (isset($context["products"]) || array_key_exists("products", $context) ? $context["products"] : (function () { throw new RuntimeError('Variable "products" does not exist.', 83, $this->source); })()), "productTitleTag" => "h2", "listClass" => "", "discounts" => (isset($context["discounts"]) || array_key_exists("discounts", $context) ? $context["discounts"] : (function () { throw new RuntimeError('Variable "discounts" does not exist.', 83, $this->source); })())]));
  301. // line 84
  302. yield " </div>
  303. </div>
  304. </div>
  305. ";
  306. // line 87
  307. yield $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("App\\Controller\\Front\\Modules\\SeenProductsController::block", ["request" => CoreExtension::getAttribute($this->env, $this->source, // line 89
  308. (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 89, $this->source); })()), "request", [], "any", false, false, false, 89)]));
  309. // line 90
  310. yield "
  311. <div class=\"ctn\">
  312. <div class=\"footer-spacer\"></div>
  313. </div>
  314. ";
  315. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  316. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  317. return; yield '';
  318. }
  319. /**
  320. * @codeCoverageIgnore
  321. */
  322. public function getTemplateName()
  323. {
  324. return "front/catalog/discount/view.html.twig";
  325. }
  326. /**
  327. * @codeCoverageIgnore
  328. */
  329. public function isTraitable()
  330. {
  331. return false;
  332. }
  333. /**
  334. * @codeCoverageIgnore
  335. */
  336. public function getDebugInfo()
  337. {
  338. return array ( 368 => 90, 366 => 89, 365 => 87, 360 => 84, 358 => 83, 354 => 81, 352 => 80, 347 => 79, 341 => 76, 338 => 75, 336 => 74, 333 => 73, 323 => 72, 311 => 69, 301 => 68, 282 => 66, 268 => 62, 263 => 61, 253 => 60, 233 => 58, 215 => 50, 211 => 49, 205 => 46, 201 => 44, 198 => 43, 179 => 39, 173 => 37, 167 => 35, 165 => 34, 159 => 31, 155 => 29, 152 => 28, 135 => 27, 129 => 24, 125 => 23, 119 => 20, 109 => 12, 106 => 11, 96 => 10, 83 => 7, 78 => 5, 75 => 4, 65 => 3, 42 => 1,);
  339. }
  340. public function getSourceContext()
  341. {
  342. return new Source("{% extends 'front/front.html.twig' %}
  343. {% block javascripts %}
  344. <script>
  345. config.discountId = {{ discount.id }};
  346. </script>
  347. <script src=\"{{ asset('js/filters.js') }}\"></script>
  348. {% endblock %}
  349. {% block structuredData %}
  350. {% set cpt = 1 %}
  351. <script type=\"application/ld+json\">
  352. {
  353. \"@context\": \"https://schema.org\",
  354. \"@type\": \"BreadcrumbList\",
  355. \"itemListElement\":
  356. [
  357. {
  358. \"@type\": \"ListItem\",
  359. \"position\": {{ cpt }},
  360. \"item\":
  361. {
  362. \"@id\": \"{{ url('index') }}\",
  363. \"name\": \"{% trans %}Vivog | Matériel pour les toiletteurs et éleveurs{% endtrans %}\"
  364. }
  365. },
  366. {% for p in path %}
  367. {% set cpt = cpt + 1 %}
  368. {
  369. \"@type\": \"ListItem\",
  370. \"position\": {{ cpt }},
  371. \"item\":
  372. {
  373. {% if loop.index == 1 %}
  374. \"@id\": \"{{ url('universe',{url:p.url,id:p.id}) }}\",
  375. {% else %}
  376. \"@id\": \"{{ url('discount',{url:p.url,id:p.id}) }}\",
  377. {% endif %}
  378. \"name\": \"{{ p.name }}\"
  379. }
  380. },
  381. {% endfor %}
  382. {% set cpt = cpt + 1 %}
  383. {
  384. \"@type\": \"ListItem\",
  385. \"position\": {{ cpt }},
  386. \"item\":
  387. {
  388. \"@id\": \"{{ url('discount',{url:discount.url,id:discount.id}) }}\",
  389. \"name\": \"{{ discount.title }}\"
  390. }
  391. }
  392. ]
  393. }
  394. </script>
  395. {% endblock %}
  396. {% block bodyClass %}discount-page{% endblock %}
  397. {% block metas %}
  398. <title>{{ discountDescription.title | striptags }}</title>
  399. <link rel=\"canonical\" href=\"{{ url('discount',{id:discount.id, url:discount.url}) }}\" />
  400. <meta name=\"robots\" content=\"noindex\">
  401. {% endblock %}
  402. {% block featured %}{% endblock %}
  403. {% block breadcrumbs %}
  404. {% include 'front/layout/breadcrumbs.html.twig' with {discount:discount} %}
  405. {% endblock %}
  406. {% block content %}
  407. <div class=\"ctn category-view discount-view\">
  408. {% if is_granted('ROLE_ADMIN') %}
  409. <div class=\"admin-tools\">
  410. <a href=\"{{ path('admin_discount_edit',{id:discount.id}) }}\" class=\"admin-update\" target=\"_blank\">modifier la catégorie</a>
  411. </div>
  412. {% endif %}
  413. <h1>{{ discountDescription.title | raw }}</h1>
  414. {% include 'front/catalog/discount/list.html.twig' %}
  415. <div class=\"center\">
  416. <div class=\"product-ctn\">
  417. {% include 'front/catalog/product/list.html.twig' with { products:products, productTitleTag:'h2', listClass:'', discounts:discounts }%}
  418. </div>
  419. </div>
  420. </div>
  421. {{ render(controller(
  422. 'App\\\\Controller\\\\Front\\\\Modules\\\\SeenProductsController::block',
  423. { 'request': app.request }
  424. )) }}
  425. <div class=\"ctn\">
  426. <div class=\"footer-spacer\"></div>
  427. </div>
  428. {% endblock %}", "front/catalog/discount/view.html.twig", "/var/www/dogcat.com/v2-test/templates/front/catalog/discount/view.html.twig");
  429. }
  430. }