var/cache/dev/twig/b2/b25991803a42297a99bcbbf32e571bf7.php line 284

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