var/cache/dev/twig/ba/ba1c0b4d1eceeb974f4be0d61a07b70b.php line 43

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/manufacturer/view.html.twig */
  15. class __TwigTemplate_03ee0a2726c571ee552bf58f26f54041 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. 'featured' => [$this, 'block_featured'],
  27. 'breadcrumbs' => [$this, 'block_breadcrumbs'],
  28. 'content' => [$this, 'block_content'],
  29. ];
  30. }
  31. protected function doGetParent(array $context)
  32. {
  33. // line 1
  34. return "front/front.html.twig";
  35. }
  36. protected function doDisplay(array $context, array $blocks = [])
  37. {
  38. $macros = $this->macros;
  39. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  40. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "front/catalog/manufacturer/view.html.twig"));
  41. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  42. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "front/catalog/manufacturer/view.html.twig"));
  43. $this->parent = $this->loadTemplate("front/front.html.twig", "front/catalog/manufacturer/view.html.twig", 1);
  44. yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
  45. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  46. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  47. }
  48. // line 3
  49. public function block_bodyClass($context, array $blocks = [])
  50. {
  51. $macros = $this->macros;
  52. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  53. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "bodyClass"));
  54. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  55. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "bodyClass"));
  56. yield "category";
  57. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  58. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  59. return; yield '';
  60. }
  61. // line 5
  62. public function block_metas($context, array $blocks = [])
  63. {
  64. $macros = $this->macros;
  65. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  66. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "metas"));
  67. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  68. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "metas"));
  69. // line 6
  70. yield " <title>";
  71. 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.', 6, $this->source); })()), "name", [], "any", false, false, false, 6), "html", null, true);
  72. yield "</title>
  73. <meta name=\"description\" content=\"";
  74. // line 7
  75. 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");
  76. yield "\">
  77. ";
  78. // line 8
  79. $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.', 8, $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.', 8, $this->source); })()), "request", [], "any", false, false, false, 8), "locale", [], "any", false, false, false, 8)], "method", false, false, false, 8);
  80. // line 9
  81. yield " ";
  82. if (((isset($context["nbPages"]) || array_key_exists("nbPages", $context) ? $context["nbPages"] : (function () { throw new RuntimeError('Variable "nbPages" does not exist.', 9, $this->source); })()) > 1)) {
  83. // line 10
  84. yield " ";
  85. if (((isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 10, $this->source); })()) > 1)) {
  86. // line 11
  87. yield " <link rel=\"canonical\" href=\"";
  88. 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.', 11, $this->source); })()), "id", [], "any", false, false, false, 11), "url" => (isset($context["slug"]) || array_key_exists("slug", $context) ? $context["slug"] : (function () { throw new RuntimeError('Variable "slug" does not exist.', 11, $this->source); })()), "page" => (isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 11, $this->source); })())]), "html", null, true);
  89. yield "\" />
  90. ";
  91. } else {
  92. // line 13
  93. yield " <link rel=\"canonical\" href=\"";
  94. 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.', 13, $this->source); })()), "id", [], "any", false, false, false, 13), "url" => (isset($context["slug"]) || array_key_exists("slug", $context) ? $context["slug"] : (function () { throw new RuntimeError('Variable "slug" does not exist.', 13, $this->source); })())]), "html", null, true);
  95. yield "\" />
  96. ";
  97. }
  98. // line 15
  99. yield " ";
  100. if (((isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 15, $this->source); })()) > 2)) {
  101. // line 16
  102. yield " <link rel=\"prev\" href=\"";
  103. 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.', 16, $this->source); })()), "id", [], "any", false, false, false, 16), "url" => (isset($context["slug"]) || array_key_exists("slug", $context) ? $context["slug"] : (function () { throw new RuntimeError('Variable "slug" does not exist.', 16, $this->source); })()), "page" => ((isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 16, $this->source); })()) - 1)]), "html", null, true);
  104. yield "\" />
  105. ";
  106. } elseif (( // line 17
  107. (isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 17, $this->source); })()) == 2)) {
  108. // line 18
  109. yield " <link rel=\"prev\" href=\"";
  110. 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); })())]), "html", null, true);
  111. yield "\" />
  112. ";
  113. }
  114. // line 20
  115. yield " ";
  116. if (((isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 20, $this->source); })()) < (isset($context["nbPages"]) || array_key_exists("nbPages", $context) ? $context["nbPages"] : (function () { throw new RuntimeError('Variable "nbPages" does not exist.', 20, $this->source); })()))) {
  117. // line 21
  118. yield " <link rel=\"next\" href=\"";
  119. 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.', 21, $this->source); })()), "id", [], "any", false, false, false, 21), "url" => (isset($context["slug"]) || array_key_exists("slug", $context) ? $context["slug"] : (function () { throw new RuntimeError('Variable "slug" does not exist.', 21, $this->source); })()), "page" => ((isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 21, $this->source); })()) + 1)]), "html", null, true);
  120. yield "\" />
  121. ";
  122. }
  123. // line 23
  124. yield " ";
  125. } else {
  126. // line 24
  127. yield " <link rel=\"canonical\" href=\"";
  128. 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.', 24, $this->source); })()), "id", [], "any", false, false, false, 24), "url" => (isset($context["slug"]) || array_key_exists("slug", $context) ? $context["slug"] : (function () { throw new RuntimeError('Variable "slug" does not exist.', 24, $this->source); })())]), "html", null, true);
  129. yield "\" />
  130. ";
  131. }
  132. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  133. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  134. return; yield '';
  135. }
  136. // line 28
  137. public function block_featured($context, array $blocks = [])
  138. {
  139. $macros = $this->macros;
  140. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  141. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "featured"));
  142. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  143. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "featured"));
  144. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  145. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  146. return; yield '';
  147. }
  148. // line 30
  149. public function block_breadcrumbs($context, array $blocks = [])
  150. {
  151. $macros = $this->macros;
  152. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  153. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "breadcrumbs"));
  154. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  155. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "breadcrumbs"));
  156. // line 31
  157. yield " ";
  158. yield from $this->loadTemplate("front/layout/breadcrumbs.html.twig", "front/catalog/manufacturer/view.html.twig", 31)->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.', 31, $this->source); })())]));
  159. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  160. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  161. return; yield '';
  162. }
  163. // line 34
  164. public function block_content($context, array $blocks = [])
  165. {
  166. $macros = $this->macros;
  167. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  168. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
  169. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  170. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
  171. // line 35
  172. yield " <div class=\"manufacturer-view\">
  173. <div class=\"ctn\">
  174. ";
  175. // line 37
  176. if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_ADMIN")) {
  177. // line 38
  178. yield " <div class=\"admin-tools\">
  179. <a href=\"";
  180. // line 39
  181. 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.', 39, $this->source); })()), "id", [], "any", false, false, false, 39)]), "html", null, true);
  182. yield "\" class=\"admin-update\" target=\"_blank\">modifier la marque</a>
  183. </div>
  184. ";
  185. }
  186. // line 42
  187. yield " <h1>";
  188. 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.', 42, $this->source); })()), "title", [], "any", false, false, false, 42), "html", null, true);
  189. yield "</h1>
  190. ";
  191. // line 43
  192. if (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.', 43, $this->source); })()), "description1", [], "any", false, false, false, 43)) {
  193. // line 44
  194. yield " <div class=\"description\">
  195. ";
  196. // line 45
  197. 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.', 45, $this->source); })()), "description1", [], "any", false, false, false, 45);
  198. yield "
  199. </div>
  200. ";
  201. }
  202. // line 48
  203. yield " <div class=\"manufacturer-ctn\">
  204. ";
  205. // line 49
  206. yield from $this->loadTemplate("front/catalog/product/list.html.twig", "front/catalog/manufacturer/view.html.twig", 49)->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.', 49, $this->source); })())]));
  207. // line 50
  208. yield " </div>
  209. ";
  210. // line 51
  211. if (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.', 51, $this->source); })()), "description2", [], "any", false, false, false, 51)) {
  212. // line 52
  213. yield " <div class=\"description\">
  214. ";
  215. // line 53
  216. 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.', 53, $this->source); })()), "description2", [], "any", false, false, false, 53);
  217. yield "
  218. </div>
  219. ";
  220. }
  221. // line 56
  222. yield " </div>
  223. ";
  224. // line 57
  225. 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 59
  226. (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 59, $this->source); })()), "request", [], "any", false, false, false, 59)]));
  227. // line 60
  228. yield "
  229. <div class=\"footer-spacer\"></div>
  230. </div>
  231. ";
  232. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  233. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  234. return; yield '';
  235. }
  236. /**
  237. * @codeCoverageIgnore
  238. */
  239. public function getTemplateName()
  240. {
  241. return "front/catalog/manufacturer/view.html.twig";
  242. }
  243. /**
  244. * @codeCoverageIgnore
  245. */
  246. public function isTraitable()
  247. {
  248. return false;
  249. }
  250. /**
  251. * @codeCoverageIgnore
  252. */
  253. public function getDebugInfo()
  254. {
  255. return array ( 272 => 60, 270 => 59, 269 => 57, 266 => 56, 260 => 53, 257 => 52, 255 => 51, 252 => 50, 250 => 49, 247 => 48, 241 => 45, 238 => 44, 236 => 43, 231 => 42, 225 => 39, 222 => 38, 220 => 37, 216 => 35, 206 => 34, 194 => 31, 184 => 30, 165 => 28, 150 => 24, 147 => 23, 141 => 21, 138 => 20, 132 => 18, 130 => 17, 125 => 16, 122 => 15, 116 => 13, 110 => 11, 107 => 10, 104 => 9, 102 => 8, 98 => 7, 93 => 6, 83 => 5, 63 => 3, 40 => 1,);
  256. }
  257. public function getSourceContext()
  258. {
  259. return new Source("{% extends 'front/front.html.twig' %}
  260. {% block bodyClass %}category{% endblock %}
  261. {% block metas %}
  262. <title>{{ manufacturer.name }}</title>
  263. <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 %}\">
  264. {% set slug = manufacturer.getUrl(app.request.locale) %}
  265. {% if nbPages > 1 %}
  266. {% if page > 1 %}
  267. <link rel=\"canonical\" href=\"{{ url('manufacturer',{id:manufacturer.id, url:slug, page:page}) }}\" />
  268. {% else %}
  269. <link rel=\"canonical\" href=\"{{ url('manufacturer',{id:manufacturer.id, url:slug}) }}\" />
  270. {% endif %}
  271. {% if page > 2 %}
  272. <link rel=\"prev\" href=\"{{ url('manufacturer',{id:manufacturer.id, url:slug, page:page-1}) }}\" />
  273. {% elseif page == 2 %}
  274. <link rel=\"prev\" href=\"{{ url('manufacturer',{id:manufacturer.id, url:slug}) }}\" />
  275. {% endif %}
  276. {% if page < nbPages %}
  277. <link rel=\"next\" href=\"{{ url('manufacturer',{id:manufacturer.id, url:slug, page:page+1}) }}\" />
  278. {% endif %}
  279. {% else %}
  280. <link rel=\"canonical\" href=\"{{ url('manufacturer',{id:manufacturer.id, url:slug}) }}\" />
  281. {% endif %}
  282. {% endblock %}
  283. {% block featured %}{% endblock %}
  284. {% block breadcrumbs %}
  285. {% include 'front/layout/breadcrumbs.html.twig' with {manufacturer:manufacturer} %}
  286. {% endblock %}
  287. {% block content %}
  288. <div class=\"manufacturer-view\">
  289. <div class=\"ctn\">
  290. {% if is_granted('ROLE_ADMIN') %}
  291. <div class=\"admin-tools\">
  292. <a href=\"{{ path('admin_manufacturer_edit',{id:manufacturer.id}) }}\" class=\"admin-update\" target=\"_blank\">modifier la marque</a>
  293. </div>
  294. {% endif %}
  295. <h1>{{ manufacturerDescription.title }}</h1>
  296. {% if manufacturerDescription.description1 %}
  297. <div class=\"description\">
  298. {{ manufacturerDescription.description1|raw }}
  299. </div>
  300. {% endif %}
  301. <div class=\"manufacturer-ctn\">
  302. {% include 'front/catalog/product/list.html.twig' with { products:products }%}
  303. </div>
  304. {% if manufacturerDescription.description2 %}
  305. <div class=\"description\">
  306. {{ manufacturerDescription.description2|raw }}
  307. </div>
  308. {% endif %}
  309. </div>
  310. {{ render(controller(
  311. 'App\\\\Controller\\\\Front\\\\Modules\\\\SeenProductsController::block',
  312. { 'request': app.request }
  313. )) }}
  314. <div class=\"footer-spacer\"></div>
  315. </div>
  316. {% endblock %}", "front/catalog/manufacturer/view.html.twig", "/var/www/dogcat.com/v2-test/templates/front/catalog/manufacturer/view.html.twig");
  317. }
  318. }