<?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/catalog/product/view/caracteristics.html.twig */
class __TwigTemplate_7b1206de07c49a7aa6c64144eff1e89b 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/catalog/product/view/caracteristics.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/catalog/product/view/caracteristics.html.twig"));
// line 1
if ((($tmp = CoreExtension::getAttribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 1, $this->source); })()), "caracteristics", [], "any", false, false, false, 1)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
// line 2
yield "<div class=\"tab-content rte section caracteristics\" style=\"padding: 30px 0;\">
<div class=\"title-ctn\">
<div class=\"title\">";
// line 4
yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Caractéristiques", [], "messages");
yield "</div>
<hr>
</div>
<table>
<tbody>
";
// line 9
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 9, $this->source); })()), "caracteristics", [], "any", false, false, false, 9));
foreach ($context['_seq'] as $context["_key"] => $context["attribute"]) {
// line 10
yield " ";
if ((CoreExtension::getAttribute($this->env, $this->source, $context["attribute"], "value", [], "any", false, false, false, 10) && (CoreExtension::getAttribute($this->env, $this->source, $context["attribute"], "value", [], "any", false, false, false, 10) != 0))) {
// line 11
yield " ";
if ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["attribute"], "attribute", [], "any", false, false, false, 11), "code", [], "any", false, false, false, 11) == "origin_country")) {
// line 12
yield " ";
if ((CoreExtension::getAttribute($this->env, $this->source, $context["attribute"], "value", [], "any", false, false, false, 12) == "France")) {
// line 13
yield " <tr data-attr=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["attribute"], "attribute", [], "any", false, false, false, 13), "code", [], "any", false, false, false, 13), "html", null, true);
yield "\" data-aid=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["attribute"], "attribute", [], "any", false, false, false, 13), "id", [], "any", false, false, false, 13), "html", null, true);
yield "\" data-paid=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["attribute"], "id", [], "any", false, false, false, 13), "html", null, true);
yield "\">
<td>";
// line 14
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["attribute"], "attribute", [], "any", false, false, false, 14), "title", [], "any", false, false, false, 14), "html", null, true);
yield "</td>
<td>";
// line 15
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["attribute"], "value", [], "any", false, false, false, 15), "html", null, true);
yield "</td>
</tr>
";
} elseif (CoreExtension::inFilter(CoreExtension::getAttribute($this->env, $this->source, // line 17
$context["attribute"], "value", [], "any", false, false, false, 17), ["Allemagne", "Belgique", "Espagne", "Italie", "Pologne", "Roumanie", "Grande Bretagne", "Union Européenne"])) {
// line 18
yield " <tr data-attr=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["attribute"], "attribute", [], "any", false, false, false, 18), "code", [], "any", false, false, false, 18), "html", null, true);
yield "\" data-aid=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["attribute"], "attribute", [], "any", false, false, false, 18), "id", [], "any", false, false, false, 18), "html", null, true);
yield "\" data-paid=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["attribute"], "id", [], "any", false, false, false, 18), "html", null, true);
yield "\">
<td>";
// line 19
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["attribute"], "attribute", [], "any", false, false, false, 19), "title", [], "any", false, false, false, 19), "html", null, true);
yield "</td>
<td>Europe</td>
</tr>
";
}
// line 23
yield " ";
} elseif ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["attribute"], "attribute", [], "any", false, false, false, 23), "code", [], "any", false, false, false, 23) == "main_color")) {
// line 24
yield " <tr data-attr=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["attribute"], "attribute", [], "any", false, false, false, 24), "code", [], "any", false, false, false, 24), "html", null, true);
yield "\" data-aid=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["attribute"], "attribute", [], "any", false, false, false, 24), "id", [], "any", false, false, false, 24), "html", null, true);
yield "\" data-paid=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["attribute"], "id", [], "any", false, false, false, 24), "html", null, true);
yield "\">
<td>";
// line 25
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["attribute"], "attribute", [], "any", false, false, false, 25), "title", [], "any", false, false, false, 25), "html", null, true);
yield "</td>
<td>";
// line 26
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["attribute"], "entity", [], "any", false, false, false, 26), "title", [], "any", false, false, false, 26), "html", null, true);
yield "</td>
</tr>
";
} elseif (((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, // line 28
$context["attribute"], "attribute", [], "any", false, false, false, 28), "code", [], "any", false, false, false, 28) == "product_brand") && CoreExtension::getAttribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 28, $this->source); })()), "manufacturer", [], "any", false, false, false, 28))) {
// line 29
yield " <tr data-attr=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["attribute"], "attribute", [], "any", false, false, false, 29), "code", [], "any", false, false, false, 29), "html", null, true);
yield "\" data-aid=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["attribute"], "attribute", [], "any", false, false, false, 29), "id", [], "any", false, false, false, 29), "html", null, true);
yield "\" data-paid=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["attribute"], "id", [], "any", false, false, false, 29), "html", null, true);
yield "\">
<td>";
// line 30
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["attribute"], "attribute", [], "any", false, false, false, 30), "title", [], "any", false, false, false, 30), "html", null, true);
yield "</td>
<td><a href=\"";
// line 31
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("manufacturer", ["id" => CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 31, $this->source); })()), "manufacturer", [], "any", false, false, false, 31), "id", [], "any", false, false, false, 31), "url" => CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 31, $this->source); })()), "manufacturer", [], "any", false, false, false, 31), "url", [], "any", false, false, false, 31)]), "html", null, true);
yield "\">";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 31, $this->source); })()), "manufacturer", [], "any", false, false, false, 31), "name", [], "any", false, false, false, 31), "html", null, true);
yield "</a></td>
</tr>
";
} else {
// line 34
yield " <tr data-attr=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["attribute"], "attribute", [], "any", false, false, false, 34), "code", [], "any", false, false, false, 34), "html", null, true);
yield "\" data-aid=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["attribute"], "attribute", [], "any", false, false, false, 34), "id", [], "any", false, false, false, 34), "html", null, true);
yield "\" data-paid=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["attribute"], "id", [], "any", false, false, false, 34), "html", null, true);
yield "\">
<td>";
// line 35
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["attribute"], "attribute", [], "any", false, false, false, 35), "title", [], "any", false, false, false, 35), "html", null, true);
yield "</td>
<td>
";
// line 37
if ((($tmp = $context["attribute"]) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
// line 38
yield " ";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["attribute"], "displayedValue", [], "any", false, false, false, 38), "html", null, true);
yield "
";
} elseif ((CoreExtension::getAttribute($this->env, $this->source, // line 39
$context["attribute"], "value", [], "any", false, false, false, 39) == 1)) {
// line 40
yield " ";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Oui"), "html", null, true);
yield "
";
} elseif ((CoreExtension::getAttribute($this->env, $this->source, // line 41
$context["attribute"], "value", [], "any", false, false, false, 41) == 0)) {
// line 42
yield " ";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Non"), "html", null, true);
yield "
";
}
// line 44
yield " </td>
</tr>
";
}
// line 47
yield " ";
}
// line 48
yield " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_key'], $context['attribute'], $context['_parent']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 49
yield " </tbody>
</table>
</div>
";
}
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
yield from [];
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName(): string
{
return "front/catalog/product/view/caracteristics.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable(): bool
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo(): array
{
return array ( 205 => 49, 199 => 48, 196 => 47, 191 => 44, 185 => 42, 183 => 41, 178 => 40, 176 => 39, 171 => 38, 169 => 37, 164 => 35, 155 => 34, 147 => 31, 143 => 30, 134 => 29, 132 => 28, 127 => 26, 123 => 25, 114 => 24, 111 => 23, 104 => 19, 95 => 18, 93 => 17, 88 => 15, 84 => 14, 75 => 13, 72 => 12, 69 => 11, 66 => 10, 62 => 9, 54 => 4, 50 => 2, 48 => 1,);
}
public function getSourceContext(): Source
{
return new Source("{% if product.caracteristics %}
<div class=\"tab-content rte section caracteristics\" style=\"padding: 30px 0;\">
<div class=\"title-ctn\">
<div class=\"title\">{% trans %}Caractéristiques{% endtrans %}</div>
<hr>
</div>
<table>
<tbody>
{% for attribute in product.caracteristics %}
{% if attribute.value and (attribute.value != 0) %}
{% if attribute.attribute.code == \x27origin_country\x27 %}
{% if attribute.value == \x27France\x27 %}
<tr data-attr=\"{{ attribute.attribute.code }}\" data-aid=\"{{ attribute.attribute.id }}\" data-paid=\"{{ attribute.id }}\">
<td>{{ attribute.attribute.title }}</td>
<td>{{ attribute.value }}</td>
</tr>
{% elseif attribute.value in [\x27Allemagne\x27,\x27Belgique\x27,\x27Espagne\x27,\x27Italie\x27,\x27Pologne\x27,\x27Roumanie\x27,\x27Grande Bretagne\x27,\x27Union Européenne\x27] %}
<tr data-attr=\"{{ attribute.attribute.code }}\" data-aid=\"{{ attribute.attribute.id }}\" data-paid=\"{{ attribute.id }}\">
<td>{{ attribute.attribute.title }}</td>
<td>Europe</td>
</tr>
{% endif %}
{% elseif attribute.attribute.code == \x27main_color\x27 %}
<tr data-attr=\"{{ attribute.attribute.code }}\" data-aid=\"{{ attribute.attribute.id }}\" data-paid=\"{{ attribute.id }}\">
<td>{{ attribute.attribute.title }}</td>
<td>{{ attribute.entity.title }}</td>
</tr>
{% elseif attribute.attribute.code == \x27product_brand\x27 and product.manufacturer %}
<tr data-attr=\"{{ attribute.attribute.code }}\" data-aid=\"{{ attribute.attribute.id }}\" data-paid=\"{{ attribute.id }}\">
<td>{{ attribute.attribute.title }}</td>
<td><a href=\"{{ path(\x27manufacturer\x27, {id:product.manufacturer.id, url:product.manufacturer.url}) }}\">{{ product.manufacturer.name }}</a></td>
</tr>
{% else %}
<tr data-attr=\"{{ attribute.attribute.code }}\" data-aid=\"{{ attribute.attribute.id }}\" data-paid=\"{{ attribute.id }}\">
<td>{{ attribute.attribute.title }}</td>
<td>
{% if attribute %}
{{ attribute.displayedValue }}
{% elseif attribute.value == 1 %}
{{ \x27Oui\x27 | trans }}
{% elseif attribute.value == 0 %}
{{ \x27Non\x27 | trans }}
{% endif %}
</td>
</tr>
{% endif %}
{% endif %}
{% endfor %}
</tbody>
</table>
</div>
{% endif %}
", "front/catalog/product/view/caracteristics.html.twig", "/var/www/dogcat.com/v2-test/templates/front/catalog/product/view/caracteristics.html.twig");
}
}