<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\CoreExtension;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
use Twig\TemplateWrapper;
/* front/modules/seen-products/block.html.twig */
class __TwigTemplate_3868bf79173be4fcc376703c5c178a4d extends Template
{
private Source $source;
/**
* @var array<string, Template>
*/
private array $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
];
}
protected function doDisplay(array $context, array $blocks = []): iterable
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "front/modules/seen-products/block.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "front/modules/seen-products/block.html.twig"));
// line 1
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)) {
// line 2
yield "<div class=\"module seen-products\">
<div class=\"ctn\">
<div class=\"title-ctn\">
";
// line 6
yield " <div class=\"title\">";
yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Mes derniers articles vus", [], "messages");
yield "</div>
</div>
";
// line 8
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"]));
// line 9
yield " </div>
</div>
";
}
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
yield from [];
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName(): string
{
return "front/modules/seen-products/block.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable(): bool
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo(): array
{
return array ( 63 => 9, 61 => 8, 55 => 6, 50 => 2, 48 => 1,);
}
public function getSourceContext(): Source
{
return new Source("{% if products %}
<div class=\"module seen-products\">
<div class=\"ctn\">
<div class=\"title-ctn\">
{# <a href=\"seen_products_clear\" class=\"clear-seen-products\">{% trans %}Effacer la sélection{% endtrans %}</a>#}
<div class=\"title\">{% trans %}Mes derniers articles vus{% endtrans %}</div>
</div>
{% include 'front/catalog/product/carousel.html.twig' with { products:products, productTitleTag:'div' } %}
</div>
</div>
{% endif %}
", "front/modules/seen-products/block.html.twig", "/var/www/dogcat.com/v2-test/templates/front/modules/seen-products/block.html.twig");
}
}