<?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;
/* front/modules/seen-products/block.html.twig */
class __TwigTemplate_c1d51553fe9f12572188778ca1b36a8e extends Template
{
private $source;
private $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 = [])
{
$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 ((isset($context["products"]) || array_key_exists("products", $context) ? $context["products"] : (function () { throw new RuntimeError('Variable "products" does not exist.', 1, $this->source); })())) {
// 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->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"]));
// line 9
yield " </div>
</div>
";
}
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
return; yield '';
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName()
{
return "front/modules/seen-products/block.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable()
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo()
{
return array ( 59 => 9, 57 => 8, 51 => 6, 46 => 2, 44 => 1,);
}
public function getSourceContext()
{
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");
}
}