var/cache/dev/twig/73/73f756f8ed2f934d6d1460f1b2cc6abf.php line 58

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/manufacturer/view.html.twig */
  16. class __TwigTemplate_68e587cc86ee0c731975630f1103509b 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. 'javascripts' => [$this, 'block_javascripts'],
  30. 'metas' => [$this, 'block_metas'],
  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/manufacturer/view.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/manufacturer/view.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 "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_javascripts(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", "javascripts"));
  78. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  79. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
  80. // line 6
  81. yield " <script>
  82. config.manufacturerId = ";
  83. // line 7
  84. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["manufacturer"]) || array_key_exists("manufacturer", $context) ? $context["manufacturer"] : (function () { throw new RuntimeError('Variable "manufacturer" does not exist.', 7, $this->source); })()), "id", [], "any", false, false, false, 7), "html", null, true);
  85. yield ";
  86. </script>
  87. <script src=\"";
  88. // line 9
  89. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("js/manufacturer.js"), "html", null, true);
  90. yield "\"></script>
  91. ";
  92. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  93. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  94. yield from [];
  95. }
  96. // line 12
  97. /**
  98. * @return iterable<null|scalar|\Stringable>
  99. */
  100. public function block_metas(array $context, array $blocks = []): iterable
  101. {
  102. $macros = $this->macros;
  103. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  104. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "metas"));
  105. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  106. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "metas"));
  107. // line 13
  108. yield " <title>";
  109. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["manufacturer"]) || array_key_exists("manufacturer", $context) ? $context["manufacturer"] : (function () { throw new RuntimeError('Variable "manufacturer" does not exist.', 13, $this->source); })()), "name", [], "any", false, false, false, 13), "html", null, true);
  110. yield "</title>
  111. <meta name=\"description\" content=\"";
  112. // line 14
  113. yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Vivog, fabrique et commercialise des tables de toilettage, baignoires pour chien, pulseurs pour chien, tondeuses pour chien et chat, shampooings chien et les accessoires pour les salons de toilettage et les élevages", [], "messages");
  114. yield "\">
  115. ";
  116. // line 15
  117. $context["slug"] = CoreExtension::getAttribute($this->env, $this->source, (isset($context["manufacturer"]) || array_key_exists("manufacturer", $context) ? $context["manufacturer"] : (function () { throw new RuntimeError('Variable "manufacturer" does not exist.', 15, $this->source); })()), "getUrl", [CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 15, $this->source); })()), "request", [], "any", false, false, false, 15), "locale", [], "any", false, false, false, 15)], "method", false, false, false, 15);
  118. // line 16
  119. yield " ";
  120. if (((isset($context["nbPages"]) || array_key_exists("nbPages", $context) ? $context["nbPages"] : (function () { throw new RuntimeError('Variable "nbPages" does not exist.', 16, $this->source); })()) > 1)) {
  121. // line 17
  122. yield " ";
  123. if (((isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 17, $this->source); })()) > 1)) {
  124. // line 18
  125. yield " <link rel=\"canonical\" href=\"";
  126. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("manufacturer", ["id" => CoreExtension::getAttribute($this->env, $this->source, (isset($context["manufacturer"]) || array_key_exists("manufacturer", $context) ? $context["manufacturer"] : (function () { throw new RuntimeError('Variable "manufacturer" does not exist.', 18, $this->source); })()), "id", [], "any", false, false, false, 18), "url" => (isset($context["slug"]) || array_key_exists("slug", $context) ? $context["slug"] : (function () { throw new RuntimeError('Variable "slug" does not exist.', 18, $this->source); })()), "page" => (isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 18, $this->source); })())]), "html", null, true);
  127. yield "\" />
  128. ";
  129. } else {
  130. // line 20
  131. yield " <link rel=\"canonical\" href=\"";
  132. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("manufacturer", ["id" => CoreExtension::getAttribute($this->env, $this->source, (isset($context["manufacturer"]) || array_key_exists("manufacturer", $context) ? $context["manufacturer"] : (function () { throw new RuntimeError('Variable "manufacturer" does not exist.', 20, $this->source); })()), "id", [], "any", false, false, false, 20), "url" => (isset($context["slug"]) || array_key_exists("slug", $context) ? $context["slug"] : (function () { throw new RuntimeError('Variable "slug" does not exist.', 20, $this->source); })())]), "html", null, true);
  133. yield "\" />
  134. ";
  135. }
  136. // line 22
  137. yield " ";
  138. if (((isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 22, $this->source); })()) > 2)) {
  139. // line 23
  140. yield " <link rel=\"prev\" href=\"";
  141. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("manufacturer", ["id" => CoreExtension::getAttribute($this->env, $this->source, (isset($context["manufacturer"]) || array_key_exists("manufacturer", $context) ? $context["manufacturer"] : (function () { throw new RuntimeError('Variable "manufacturer" does not exist.', 23, $this->source); })()), "id", [], "any", false, false, false, 23), "url" => (isset($context["slug"]) || array_key_exists("slug", $context) ? $context["slug"] : (function () { throw new RuntimeError('Variable "slug" does not exist.', 23, $this->source); })()), "page" => ((isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 23, $this->source); })()) - 1)]), "html", null, true);
  142. yield "\" />
  143. ";
  144. } elseif (( // line 24
  145. (isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 24, $this->source); })()) == 2)) {
  146. // line 25
  147. yield " <link rel=\"prev\" href=\"";
  148. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("manufacturer", ["id" => CoreExtension::getAttribute($this->env, $this->source, (isset($context["manufacturer"]) || array_key_exists("manufacturer", $context) ? $context["manufacturer"] : (function () { throw new RuntimeError('Variable "manufacturer" does not exist.', 25, $this->source); })()), "id", [], "any", false, false, false, 25), "url" => (isset($context["slug"]) || array_key_exists("slug", $context) ? $context["slug"] : (function () { throw new RuntimeError('Variable "slug" does not exist.', 25, $this->source); })())]), "html", null, true);
  149. yield "\" />
  150. ";
  151. }
  152. // line 27
  153. yield " ";
  154. if (((isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 27, $this->source); })()) < (isset($context["nbPages"]) || array_key_exists("nbPages", $context) ? $context["nbPages"] : (function () { throw new RuntimeError('Variable "nbPages" does not exist.', 27, $this->source); })()))) {
  155. // line 28
  156. yield " <link rel=\"next\" href=\"";
  157. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("manufacturer", ["id" => CoreExtension::getAttribute($this->env, $this->source, (isset($context["manufacturer"]) || array_key_exists("manufacturer", $context) ? $context["manufacturer"] : (function () { throw new RuntimeError('Variable "manufacturer" does not exist.', 28, $this->source); })()), "id", [], "any", false, false, false, 28), "url" => (isset($context["slug"]) || array_key_exists("slug", $context) ? $context["slug"] : (function () { throw new RuntimeError('Variable "slug" does not exist.', 28, $this->source); })()), "page" => ((isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 28, $this->source); })()) + 1)]), "html", null, true);
  158. yield "\" />
  159. ";
  160. }
  161. // line 30
  162. yield " ";
  163. } else {
  164. // line 31
  165. yield " <link rel=\"canonical\" href=\"";
  166. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("manufacturer", ["id" => CoreExtension::getAttribute($this->env, $this->source, (isset($context["manufacturer"]) || array_key_exists("manufacturer", $context) ? $context["manufacturer"] : (function () { throw new RuntimeError('Variable "manufacturer" does not exist.', 31, $this->source); })()), "id", [], "any", false, false, false, 31), "url" => (isset($context["slug"]) || array_key_exists("slug", $context) ? $context["slug"] : (function () { throw new RuntimeError('Variable "slug" does not exist.', 31, $this->source); })())]), "html", null, true);
  167. yield "\" />
  168. ";
  169. }
  170. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  171. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  172. yield from [];
  173. }
  174. // line 35
  175. /**
  176. * @return iterable<null|scalar|\Stringable>
  177. */
  178. public function block_featured(array $context, array $blocks = []): iterable
  179. {
  180. $macros = $this->macros;
  181. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  182. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "featured"));
  183. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  184. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "featured"));
  185. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  186. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  187. yield from [];
  188. }
  189. // line 37
  190. /**
  191. * @return iterable<null|scalar|\Stringable>
  192. */
  193. public function block_breadcrumbs(array $context, array $blocks = []): iterable
  194. {
  195. $macros = $this->macros;
  196. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  197. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "breadcrumbs"));
  198. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  199. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "breadcrumbs"));
  200. // line 38
  201. yield " ";
  202. yield from $this->load("front/layout/breadcrumbs.html.twig", 38)->unwrap()->yield(CoreExtension::merge($context, ["manufacturer" => (isset($context["manufacturer"]) || array_key_exists("manufacturer", $context) ? $context["manufacturer"] : (function () { throw new RuntimeError('Variable "manufacturer" does not exist.', 38, $this->source); })())]));
  203. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  204. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  205. yield from [];
  206. }
  207. // line 41
  208. /**
  209. * @return iterable<null|scalar|\Stringable>
  210. */
  211. public function block_content(array $context, array $blocks = []): iterable
  212. {
  213. $macros = $this->macros;
  214. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  215. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
  216. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  217. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
  218. // line 42
  219. yield " <div class=\"manufacturer-view\" data-id=\"";
  220. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["manufacturer"]) || array_key_exists("manufacturer", $context) ? $context["manufacturer"] : (function () { throw new RuntimeError('Variable "manufacturer" does not exist.', 42, $this->source); })()), "id", [], "any", false, false, false, 42), "html", null, true);
  221. yield "\">
  222. <div class=\"ctn\">
  223. ";
  224. // line 44
  225. if ((($tmp = $this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_ADMIN")) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
  226. // line 45
  227. yield " <div class=\"admin-tools\">
  228. <a href=\"";
  229. // line 46
  230. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("admin_manufacturer_edit", ["id" => CoreExtension::getAttribute($this->env, $this->source, (isset($context["manufacturer"]) || array_key_exists("manufacturer", $context) ? $context["manufacturer"] : (function () { throw new RuntimeError('Variable "manufacturer" does not exist.', 46, $this->source); })()), "id", [], "any", false, false, false, 46)]), "html", null, true);
  231. yield "\" class=\"admin-update\" target=\"_blank\">modifier la marque</a>
  232. </div>
  233. ";
  234. }
  235. // line 49
  236. yield " <h1>";
  237. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["manufacturerDescription"]) || array_key_exists("manufacturerDescription", $context) ? $context["manufacturerDescription"] : (function () { throw new RuntimeError('Variable "manufacturerDescription" does not exist.', 49, $this->source); })()), "title", [], "any", false, false, false, 49), "html", null, true);
  238. yield "</h1>
  239. ";
  240. // line 50
  241. if ((($tmp = CoreExtension::getAttribute($this->env, $this->source, (isset($context["manufacturerDescription"]) || array_key_exists("manufacturerDescription", $context) ? $context["manufacturerDescription"] : (function () { throw new RuntimeError('Variable "manufacturerDescription" does not exist.', 50, $this->source); })()), "description1", [], "any", false, false, false, 50)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
  242. // line 51
  243. yield " <div class=\"description\">
  244. ";
  245. // line 52
  246. yield CoreExtension::getAttribute($this->env, $this->source, (isset($context["manufacturerDescription"]) || array_key_exists("manufacturerDescription", $context) ? $context["manufacturerDescription"] : (function () { throw new RuntimeError('Variable "manufacturerDescription" does not exist.', 52, $this->source); })()), "description1", [], "any", false, false, false, 52);
  247. yield "
  248. </div>
  249. ";
  250. }
  251. // line 55
  252. yield " <div class=\"manufacturer-ctn\">
  253. ";
  254. // line 56
  255. yield from $this->load("front/catalog/product/list.html.twig", 56)->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.', 56, $this->source); })())]));
  256. // line 57
  257. yield " </div>
  258. ";
  259. // line 58
  260. if ((($tmp = CoreExtension::getAttribute($this->env, $this->source, (isset($context["manufacturerDescription"]) || array_key_exists("manufacturerDescription", $context) ? $context["manufacturerDescription"] : (function () { throw new RuntimeError('Variable "manufacturerDescription" does not exist.', 58, $this->source); })()), "description2", [], "any", false, false, false, 58)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
  261. // line 59
  262. yield " <div class=\"description\">
  263. ";
  264. // line 60
  265. yield CoreExtension::getAttribute($this->env, $this->source, (isset($context["manufacturerDescription"]) || array_key_exists("manufacturerDescription", $context) ? $context["manufacturerDescription"] : (function () { throw new RuntimeError('Variable "manufacturerDescription" does not exist.', 60, $this->source); })()), "description2", [], "any", false, false, false, 60);
  266. yield "
  267. </div>
  268. ";
  269. }
  270. // line 63
  271. yield " </div>
  272. ";
  273. // line 64
  274. 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 66
  275. (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 66, $this->source); })()), "request", [], "any", false, false, false, 66)]));
  276. // line 67
  277. yield "
  278. <div class=\"footer-spacer\"></div>
  279. </div>
  280. ";
  281. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  282. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  283. yield from [];
  284. }
  285. /**
  286. * @codeCoverageIgnore
  287. */
  288. public function getTemplateName(): string
  289. {
  290. return "front/catalog/manufacturer/view.html.twig";
  291. }
  292. /**
  293. * @codeCoverageIgnore
  294. */
  295. public function isTraitable(): bool
  296. {
  297. return false;
  298. }
  299. /**
  300. * @codeCoverageIgnore
  301. */
  302. public function getDebugInfo(): array
  303. {
  304. return array ( 328 => 67, 326 => 66, 325 => 64, 322 => 63, 316 => 60, 313 => 59, 311 => 58, 308 => 57, 306 => 56, 303 => 55, 297 => 52, 294 => 51, 292 => 50, 287 => 49, 281 => 46, 278 => 45, 276 => 44, 270 => 42, 257 => 41, 245 => 38, 232 => 37, 210 => 35, 195 => 31, 192 => 30, 186 => 28, 183 => 27, 177 => 25, 175 => 24, 170 => 23, 167 => 22, 161 => 20, 155 => 18, 152 => 17, 149 => 16, 147 => 15, 143 => 14, 138 => 13, 125 => 12, 112 => 9, 107 => 7, 104 => 6, 91 => 5, 68 => 3, 45 => 1,);
  305. }
  306. public function getSourceContext(): Source
  307. {
  308. return new Source("{% extends \x27front/front.html.twig\x27 %}
  309. {% block bodyClass %}category{% endblock %}
  310. {% block javascripts %}
  311. <script>
  312. config.manufacturerId = {{ manufacturer.id }};
  313. </script>
  314. <script src=\"{{ asset(\x27js/manufacturer.js\x27) }}\"></script>
  315. {% endblock %}
  316. {% block metas %}
  317. <title>{{ manufacturer.name }}</title>
  318. <meta name=\"description\" content=\"{% trans %}Vivog, fabrique et commercialise des tables de toilettage, baignoires pour chien, pulseurs pour chien, tondeuses pour chien et chat, shampooings chien et les accessoires pour les salons de toilettage et les élevages{% endtrans %}\">
  319. {% set slug = manufacturer.getUrl(app.request.locale) %}
  320. {% if nbPages > 1 %}
  321. {% if page > 1 %}
  322. <link rel=\"canonical\" href=\"{{ url(\x27manufacturer\x27,{id:manufacturer.id, url:slug, page:page}) }}\" />
  323. {% else %}
  324. <link rel=\"canonical\" href=\"{{ url(\x27manufacturer\x27,{id:manufacturer.id, url:slug}) }}\" />
  325. {% endif %}
  326. {% if page > 2 %}
  327. <link rel=\"prev\" href=\"{{ url(\x27manufacturer\x27,{id:manufacturer.id, url:slug, page:page-1}) }}\" />
  328. {% elseif page == 2 %}
  329. <link rel=\"prev\" href=\"{{ url(\x27manufacturer\x27,{id:manufacturer.id, url:slug}) }}\" />
  330. {% endif %}
  331. {% if page < nbPages %}
  332. <link rel=\"next\" href=\"{{ url(\x27manufacturer\x27,{id:manufacturer.id, url:slug, page:page+1}) }}\" />
  333. {% endif %}
  334. {% else %}
  335. <link rel=\"canonical\" href=\"{{ url(\x27manufacturer\x27,{id:manufacturer.id, url:slug}) }}\" />
  336. {% endif %}
  337. {% endblock %}
  338. {% block featured %}{% endblock %}
  339. {% block breadcrumbs %}
  340. {% include \x27front/layout/breadcrumbs.html.twig\x27 with {manufacturer:manufacturer} %}
  341. {% endblock %}
  342. {% block content %}
  343. <div class=\"manufacturer-view\" data-id=\"{{ manufacturer.id }}\">
  344. <div class=\"ctn\">
  345. {% if is_granted(\x27ROLE_ADMIN\x27) %}
  346. <div class=\"admin-tools\">
  347. <a href=\"{{ path(\x27admin_manufacturer_edit\x27,{id:manufacturer.id}) }}\" class=\"admin-update\" target=\"_blank\">modifier la marque</a>
  348. </div>
  349. {% endif %}
  350. <h1>{{ manufacturerDescription.title }}</h1>
  351. {% if manufacturerDescription.description1 %}
  352. <div class=\"description\">
  353. {{ manufacturerDescription.description1|raw }}
  354. </div>
  355. {% endif %}
  356. <div class=\"manufacturer-ctn\">
  357. {% include \x27front/catalog/product/list.html.twig\x27 with { products:products }%}
  358. </div>
  359. {% if manufacturerDescription.description2 %}
  360. <div class=\"description\">
  361. {{ manufacturerDescription.description2|raw }}
  362. </div>
  363. {% endif %}
  364. </div>
  365. {{ render(controller(
  366. \x27App\\\\Controller\\\\Front\\\\Modules\\\\SeenProductsController::block\x27,
  367. { \x27request\x27: app.request }
  368. )) }}
  369. <div class=\"footer-spacer\"></div>
  370. </div>
  371. {% endblock %}", "front/catalog/manufacturer/view.html.twig", "/var/www/dogcat.com/v2-test/templates/front/catalog/manufacturer/view.html.twig");
  372. }
  373. }