var/cache/dev/twig/ac/ac099a1cf1cccd8b39a089849d3eb6d5.php line 38

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/modules/seen-products/block.html.twig */
  16. class __TwigTemplate_3868bf79173be4fcc376703c5c178a4d 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->parent = false;
  28. $this->blocks = [
  29. ];
  30. }
  31. protected function doDisplay(array $context, array $blocks = []): iterable
  32. {
  33. $macros = $this->macros;
  34. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  35. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "front/modules/seen-products/block.html.twig"));
  36. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  37. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "front/modules/seen-products/block.html.twig"));
  38. // line 1
  39. if ((($tmp = (isset($context["products"]) || array_key_exists("products", $context) ? $context["products"] : (function () { throw new RuntimeError('Variable "products" does not exist.', 1, $this->source); })())) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
  40. // line 2
  41. yield "<div class=\"module seen-products\">
  42. <div class=\"ctn\">
  43. <div class=\"title-ctn\">
  44. ";
  45. // line 6
  46. yield " <div class=\"title\">";
  47. yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Mes derniers articles vus", [], "messages");
  48. yield "</div>
  49. </div>
  50. ";
  51. // line 8
  52. yield from $this->load("front/catalog/product/carousel.html.twig", 8)->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.', 8, $this->source); })()), "productTitleTag" => "div"]));
  53. // line 9
  54. yield " </div>
  55. </div>
  56. ";
  57. }
  58. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  59. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  60. yield from [];
  61. }
  62. /**
  63. * @codeCoverageIgnore
  64. */
  65. public function getTemplateName(): string
  66. {
  67. return "front/modules/seen-products/block.html.twig";
  68. }
  69. /**
  70. * @codeCoverageIgnore
  71. */
  72. public function isTraitable(): bool
  73. {
  74. return false;
  75. }
  76. /**
  77. * @codeCoverageIgnore
  78. */
  79. public function getDebugInfo(): array
  80. {
  81. return array ( 63 => 9, 61 => 8, 55 => 6, 50 => 2, 48 => 1,);
  82. }
  83. public function getSourceContext(): Source
  84. {
  85. return new Source("{% if products %}
  86. <div class=\"module seen-products\">
  87. <div class=\"ctn\">
  88. <div class=\"title-ctn\">
  89. {# <a href=\"seen_products_clear\" class=\"clear-seen-products\">{% trans %}Effacer la sélection{% endtrans %}</a>#}
  90. <div class=\"title\">{% trans %}Mes derniers articles vus{% endtrans %}</div>
  91. </div>
  92. {% include 'front/catalog/product/carousel.html.twig' with { products:products, productTitleTag:'div' } %}
  93. </div>
  94. </div>
  95. {% endif %}
  96. ", "front/modules/seen-products/block.html.twig", "/var/www/dogcat.com/v2-test/templates/front/modules/seen-products/block.html.twig");
  97. }
  98. }