var/cache/dev/twig/60/609238ee3bfece622d58bb9cc2076476.php line 49

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