var/cache/dev/twig/b5/b569915e45d8004975a32691d7bbd292.php line 48

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