var/cache/dev/twig/ad/adfc4eebcfa63612ae3f336ddae09d45.php line 222

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