var/cache/dev/twig/1a/1a9b78d590a843eb49061d73d7234bf1.php line 57

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