<?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, CoreExtension::getAttribute($this->env, $this->source, $context["attribute"], "attribute", [], "any", false, false, false, 10), "code", [], "any", false, false, false, 10) == "origin_country")) {
// line 11
yield " ";
if ((CoreExtension::getAttribute($this->env, $this->source, $context["attribute"], "value", [], "any", false, false, false, 11) == "France")) {
// line 12
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, 12), "code", [], "any", false, false, false, 12), "html", null, true);
yield "\">
<td>";
// line 13
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["attribute"], "attribute", [], "any", false, false, false, 13), "getAttributeDescription", ["fr"], "method", false, false, false, 13), "title", [], "any", false, false, false, 13), "html", null, true);
yield "</td>
<td>";
// line 14
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["attribute"], "value", [], "any", false, false, false, 14), "html", null, true);
yield "</td>
</tr>
";
} elseif (CoreExtension::inFilter(CoreExtension::getAttribute($this->env, $this->source, // line 16
$context["attribute"], "value", [], "any", false, false, false, 16), ["Allemagne", "Belgique", "Espagne", "Italie", "Pologne", "Roumanie", "Grande Bretagne", "Union Européenne"])) {
// line 17
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, 17), "code", [], "any", false, false, false, 17), "html", null, true);
yield "\">
<td>";
// line 18
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["attribute"], "attribute", [], "any", false, false, false, 18), "getAttributeDescription", ["fr"], "method", false, false, false, 18), "title", [], "any", false, false, false, 18), "html", null, true);
yield "</td>
<td>Europe</td>
</tr>
";
}
// line 22
yield " ";
} elseif ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["attribute"], "attribute", [], "any", false, false, false, 22), "code", [], "any", false, false, false, 22) == "main_color")) {
// line 23
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, 23), "code", [], "any", false, false, false, 23), "html", null, true);
yield "\">
<td>";
// line 24
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["attribute"], "attribute", [], "any", false, false, false, 24), "getAttributeDescription", ["fr"], "method", false, false, false, 24), "title", [], "any", false, false, false, 24), "html", null, true);
yield "</td>
<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"], "entity", [], "any", false, false, false, 25), "title", [], "any", false, false, false, 25), "html", null, true);
yield "</td>
</tr>
";
} elseif (((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, // line 27
$context["attribute"], "attribute", [], "any", false, false, false, 27), "code", [], "any", false, false, false, 27) == "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.', 27, $this->source); })()), "manufacturer", [], "any", false, false, false, 27))) {
// line 28
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, 28), "code", [], "any", false, false, false, 28), "html", null, true);
yield "\">
<td>";
// line 29
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["attribute"], "attribute", [], "any", false, false, false, 29), "getAttributeDescription", ["fr"], "method", false, false, false, 29), "title", [], "any", false, false, false, 29), "html", null, true);
yield "</td>
<td><a href=\"";
// line 30
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.', 30, $this->source); })()), "manufacturer", [], "any", false, false, false, 30), "id", [], "any", false, false, false, 30), "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.', 30, $this->source); })()), "manufacturer", [], "any", false, false, false, 30), "url", [], "any", false, false, false, 30)]), "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.', 30, $this->source); })()), "manufacturer", [], "any", false, false, false, 30), "name", [], "any", false, false, false, 30), "html", null, true);
yield "</a></td>
</tr>
";
} elseif (CoreExtension::inFilter(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, // line 32
$context["attribute"], "attribute", [], "any", false, false, false, 32), "code", [], "any", false, false, false, 32), ["height", "length", "width"])) {
// line 33
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, 33), "code", [], "any", false, false, false, 33), "html", null, true);
yield "\">
<td>";
// line 34
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["attribute"], "attribute", [], "any", false, false, false, 34), "getAttributeDescription", ["fr"], "method", false, false, false, 34), "title", [], "any", false, false, false, 34), "html", null, true);
yield "</td>
<td>";
// line 35
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["attribute"], "value", [], "any", false, false, false, 35), "html", null, true);
yield "mm</td>
</tr>
";
} else {
// line 38
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, 38), "code", [], "any", false, false, false, 38), "html", null, true);
yield "\">
<td>";
// line 39
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["attribute"], "attribute", [], "any", false, false, false, 39), "getAttributeDescription", ["fr"], "method", false, false, false, 39), "title", [], "any", false, false, false, 39), "html", null, true);
yield "</td>
<td>
";
// line 41
if ((($tmp = CoreExtension::getAttribute($this->env, $this->source, $context["attribute"], "getDescription", ["fr"], "method", false, false, false, 41)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
// line 42
yield " ";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["attribute"], "getDescription", ["fr"], "method", false, false, false, 42), "value", [], "any", false, false, false, 42), "html", null, true);
yield "
";
} elseif ((CoreExtension::getAttribute($this->env, $this->source, // line 43
$context["attribute"], "value", [], "any", false, false, false, 43) == 1)) {
// line 44
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 45
$context["attribute"], "value", [], "any", false, false, false, 45) == 0)) {
// line 46
yield " ";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Non"), "html", null, true);
yield "
";
} else {
// line 48
yield " ";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["attribute"], "displayedValue", [], "any", false, false, false, 48), "html", null, true);
yield "
";
}
// line 50
yield " </td>
</tr>
";
}
// line 53
yield " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_key'], $context['attribute'], $context['_parent']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 54
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 ( 201 => 54, 195 => 53, 190 => 50, 184 => 48, 178 => 46, 176 => 45, 171 => 44, 169 => 43, 164 => 42, 162 => 41, 157 => 39, 152 => 38, 146 => 35, 142 => 34, 137 => 33, 135 => 32, 128 => 30, 124 => 29, 119 => 28, 117 => 27, 112 => 25, 108 => 24, 103 => 23, 100 => 22, 93 => 18, 88 => 17, 86 => 16, 81 => 14, 77 => 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.attribute.code == \x27origin_country\x27 %}
{% if attribute.value == \x27France\x27 %}
<tr data-attr=\"{{ attribute.attribute.code }}\">
<td>{{ attribute.attribute.getAttributeDescription(\x27fr\x27).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 }}\">
<td>{{ attribute.attribute.getAttributeDescription(\x27fr\x27).title }}</td>
<td>Europe</td>
</tr>
{% endif %}
{% elseif attribute.attribute.code == \x27main_color\x27 %}
<tr data-attr=\"{{ attribute.attribute.code }}\">
<td>{{ attribute.attribute.getAttributeDescription(\x27fr\x27).title }}</td>
<td>{{ attribute.entity.title }}</td>
</tr>
{% elseif attribute.attribute.code == \x27product_brand\x27 and product.manufacturer %}
<tr data-attr=\"{{ attribute.attribute.code }}\">
<td>{{ attribute.attribute.getAttributeDescription(\x27fr\x27).title }}</td>
<td><a href=\"{{ path(\x27manufacturer\x27, {id:product.manufacturer.id, url:product.manufacturer.url}) }}\">{{ product.manufacturer.name }}</a></td>
</tr>
{% elseif attribute.attribute.code in [\x27height\x27, \x27length\x27, \x27width\x27] %}
<tr data-attr=\"{{ attribute.attribute.code }}\">
<td>{{ attribute.attribute.getAttributeDescription(\x27fr\x27).title }}</td>
<td>{{ attribute.value }}mm</td>
</tr>
{% else %}
<tr data-attr=\"{{ attribute.attribute.code }}\">
<td>{{ attribute.attribute.getAttributeDescription(\x27fr\x27).title }}</td>
<td>
{% if attribute.getDescription(\x27fr\x27) %}
{{ attribute.getDescription(\x27fr\x27).value }}
{% elseif attribute.value == 1 %}
{{ \x27Oui\x27 | trans }}
{% elseif attribute.value == 0 %}
{{ \x27Non\x27 | trans }}
{% else %}
{{ attribute.displayedValue }}
{% endif %}
</td>
</tr>
{% endif %}
{% endfor %}
</tbody>
</table>
</div>
{% endif %}
", "front/catalog/product/view/caracteristics.html.twig", "/var/www/dogcat.com/pim/templates/front/catalog/product/view/caracteristics.html.twig");
}
}