var/cache/dev/twig/5b/5b10917327f4d09fedc298405a7114a2.php line 313

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