<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
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;
/* product/detail.html.twig */
class __TwigTemplate_fedd0464cbcb36547445d21181caf57d extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'content' => [$this, 'block_content'],
];
$this->sandbox = $this->env->getExtension('\Twig\Extension\SandboxExtension');
$this->checkSecurity();
}
protected function doGetParent(array $context)
{
// line 1
return "layouts/layout.html.twig";
}
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", "product/detail.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "product/detail.html.twig"));
$this->parent = $this->loadTemplate("layouts/layout.html.twig", "product/detail.html.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 3
public function block_content($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(), "block", "content"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
// line 4
echo "
";
// line 5
twig_get_attribute($this->env, $this->source, $this->env->getFunction('pimcore_head_title')->getCallable()(), "set", [0 => (((twig_get_attribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 5, $this->source); })()), "codice", [], "any", false, false, true, 5) . " - ") . twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 5, $this->source); })()), "categories", [], "any", false, false, true, 5), 0, [], "array", false, false, true, 5), "name", [], "any", false, false, true, 5)) . " | Busetto")], "method", false, false, true, 5);
// line 6
echo " ";
twig_get_attribute($this->env, $this->source, $this->env->getFunction('pimcore_head_meta')->getCallable()(), "setDescription", [0 => (isset($context["metaDescription"]) || array_key_exists("metaDescription", $context) ? $context["metaDescription"] : (function () { throw new RuntimeError('Variable "metaDescription" does not exist.', 6, $this->source); })()), 1 => 160], "method", false, false, true, 6);
// line 7
echo "
";
// line 8
$context["breadcrumbData"] = twig_get_attribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 8, $this->source); })()), "getCategoryBreadcrumb", [], "method", false, false, true, 8);
// line 9
echo " ";
$context["breadcrumb"] = "";
// line 10
echo " ";
$context["prelocal"] = "";
// line 11
echo " ";
$context["precat"] = "";
// line 12
echo " ";
if ( !twig_test_empty((isset($context["breadcrumbData"]) || array_key_exists("breadcrumbData", $context) ? $context["breadcrumbData"] : (function () { throw new RuntimeError('Variable "breadcrumbData" does not exist.', 12, $this->source); })()))) {
// line 13
echo " ";
if ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 13, $this->source); })()), "request", [], "any", false, false, true, 13), "locale", [], "any", false, false, true, 13) == "it")) {
// line 14
echo " ";
$context["prelocal"] = "/it/prodotti/";
// line 15
echo " ";
$context["precat"] = "/ Prodotti ";
// line 16
echo " ";
} elseif ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 16, $this->source); })()), "request", [], "any", false, false, true, 16), "locale", [], "any", false, false, true, 16) == "en")) {
// line 17
echo " ";
$context["prelocal"] = "/en/products/";
// line 18
echo " ";
$context["precat"] = "/ Products ";
// line 19
echo " ";
}
// line 20
echo " ";
$context["breadcrumb"] = (((((($this->sandbox->ensureToStringAllowed((isset($context["precat"]) || array_key_exists("precat", $context) ? $context["precat"] : (function () { throw new RuntimeError('Variable "precat" does not exist.', 20, $this->source); })()), 20, $this->source) . "/ <a href=\"") . $this->sandbox->ensureToStringAllowed((isset($context["prelocal"]) || array_key_exists("prelocal", $context) ? $context["prelocal"] : (function () { throw new RuntimeError('Variable "prelocal" does not exist.', 20, $this->source); })()), 20, $this->source)) . $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["breadcrumbData"]) || array_key_exists("breadcrumbData", $context) ? $context["breadcrumbData"] : (function () { throw new RuntimeError('Variable "breadcrumbData" does not exist.', 20, $this->source); })()), "url", [], "any", false, false, true, 20), 20, $this->source)) . "\">") . $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["breadcrumbData"]) || array_key_exists("breadcrumbData", $context) ? $context["breadcrumbData"] : (function () { throw new RuntimeError('Variable "breadcrumbData" does not exist.', 20, $this->source); })()), "name", [], "any", false, false, true, 20), 20, $this->source)) . "</a> ");
// line 21
echo " ";
}
// line 22
echo "
<main role=\"main\" class=\"single-product mt-100 pt-0 pt-lg-100\">
<div class=\"fs-15 breadcrumbs mb-10 mx-10 mx-md-40 mx-lg-70\">
<a href=\"/\">";
// line 25
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Home"), "html", null, true);
echo "</a> ";
echo $this->sandbox->ensureToStringAllowed((isset($context["breadcrumb"]) || array_key_exists("breadcrumb", $context) ? $context["breadcrumb"] : (function () { throw new RuntimeError('Variable "breadcrumb" does not exist.', 25, $this->source); })()), 25, $this->source);
echo "/ ";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 25, $this->source); })()), "nome", [], "any", false, false, true, 25), 25, $this->source), "html", null, true);
echo "
</div>
";
// line 28
echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "areablock", "areaBlock");
echo "
<div class=\"pb-20 mx-10 mx-md-40 mx-lg-70 \">
<div class=\"row gx-0 gx-lg-70\">
<div class=\"col-12 col-xl-7\">
<!--";
// line 34
echo "-->
<div class=\"d-flex flex-column flex-lg-row gallery-product\">
<div class=\"col-12 col-lg-2 order-2 order-lg-1 my-30 my-lg-0\">
<div class=\"swiper swiper-thumbs\">
<div class=\"swiper-wrapper\">
";
// line 39
if ( !twig_test_empty(twig_get_attribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 39, $this->source); })()), "fotoPricipale", [], "any", false, false, true, 39))) {
// line 40
echo " <div class=\"swiper-slide thumb p-10\" style=\"background-image:url(";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 40, $this->source); })()), "fotoPricipale", [], "any", false, false, true, 40), "getThumbnail", [0 => "product_thumbnail_gallery"], "method", false, false, true, 40), "getPath", [], "method", false, false, true, 40), 40, $this->source), "html", null, true);
echo ")\">
<!-- ";
// line 41
echo $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 41, $this->source); })()), "fotoPricipale", [], "any", false, false, true, 41), "getThumbnail", [0 => "product_thumbnail_gallery"], "method", false, false, true, 41), "getHtml", [], "method", false, false, true, 41), 41, $this->source);
echo " -->
</div>
";
}
// line 44
echo " ";
if ( !twig_test_empty(twig_get_attribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 44, $this->source); })()), "foto2", [], "any", false, false, true, 44))) {
// line 45
echo " <div class=\"swiper-slide thumb p-5\" style=\"background-image:url(";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 45, $this->source); })()), "foto2", [], "any", false, false, true, 45), "getThumbnail", [0 => "product_thumbnail_gallery"], "method", false, false, true, 45), "getPath", [], "method", false, false, true, 45), 45, $this->source), "html", null, true);
echo ")\">
<!-- ";
// line 46
echo $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 46, $this->source); })()), "foto2", [], "any", false, false, true, 46), "getThumbnail", [0 => "product_thumbnail_gallery"], "method", false, false, true, 46), "getHtml", [], "method", false, false, true, 46), 46, $this->source);
echo " -->
</div>
";
}
// line 49
echo " ";
if ( !twig_test_empty(twig_get_attribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 49, $this->source); })()), "foto3", [], "any", false, false, true, 49))) {
// line 50
echo " <div class=\"swiper-slide thumb p-5\" style=\"background-image:url(";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 50, $this->source); })()), "foto3", [], "any", false, false, true, 50), "getThumbnail", [0 => "product_thumbnail_gallery"], "method", false, false, true, 50), "getPath", [], "method", false, false, true, 50), 50, $this->source), "html", null, true);
echo ")\">
<!-- ";
// line 51
echo $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 51, $this->source); })()), "foto3", [], "any", false, false, true, 51), "getThumbnail", [0 => "product_thumbnail_gallery"], "method", false, false, true, 51), "getHtml", [], "method", false, false, true, 51), 51, $this->source);
echo " -->
</div>
";
}
// line 54
echo " ";
if ( !twig_test_empty(twig_get_attribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 54, $this->source); })()), "foto4", [], "any", false, false, true, 54))) {
// line 55
echo " <div class=\"swiper-slide thumb p-5\" style=\"background-image:url(";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 55, $this->source); })()), "foto4", [], "any", false, false, true, 55), "getThumbnail", [0 => "product_thumbnail_gallery"], "method", false, false, true, 55), "getPath", [], "method", false, false, true, 55), 55, $this->source), "html", null, true);
echo ")\">
<!-- ";
// line 56
echo $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 56, $this->source); })()), "foto4", [], "any", false, false, true, 56), "getThumbnail", [0 => "product_thumbnail_gallery"], "method", false, false, true, 56), "getHtml", [], "method", false, false, true, 56), 56, $this->source);
echo " -->
</div>
";
}
// line 59
echo " </div>
</div>
</div>
<div class=\"ms-0 ms-lg-20 col-12 col-lg-10 order-1 order-lg-2 p-5 position-relative\">
";
// line 63
if (twig_get_attribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 63, $this->source); })()), "url3d", [], "any", false, false, true, 63)) {
// line 64
echo " <div class=\"banner3d-container\">
<a href=\"";
// line 65
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 65, $this->source); })()), "url3d", [], "any", false, false, true, 65), 65, $this->source), "html", null, true);
echo "\" class=\"banner3d\" target=\"_blank\">
<span>";
// line 66
echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("TEXT3D");
echo "</span>
</a>
</div>
";
}
// line 70
echo " <div class=\"swiper swiper-slider\">
<div class=\"swiper-wrapper\">
";
// line 72
if ( !twig_test_empty(twig_get_attribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 72, $this->source); })()), "fotoPricipale", [], "any", false, false, true, 72))) {
// line 73
echo " <div class=\"swiper-slide\">
<a href=\"#\" data-bs-toggle=\"modal\" data-bs-target=\"#imageModal\" data-image=\"";
// line 74
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 74, $this->source); })()), "fotoPricipale", [], "any", false, false, true, 74), "thumbnail", [0 => "product_main"], "method", false, false, true, 74), 74, $this->source), "html", null, true);
echo "\" class=\"d-block d-lg-none\">
<div class=\" position-absolute top-0 end-0\"><svg xmlns=\"http://www.w3.org/2000/svg\" width=\"30\" height=\"30\" fill=\"currentColor\" class=\"bi bi-plus-circle\" viewBox=\"0 0 17 17\"><path d=\"M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14m0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16\"/><path d=\"M8 4a.5.5 0 0 1 .5.5v3h3a.5.5 0 0 1 0 1h-3v3a.5.5 0 0 1-1 0v-3h-3a.5.5 0 0 1 0-1h3v-3A.5.5 0 0 1 8 4\"/></svg></div>
</a>
";
// line 77
if (( !(null === twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 77, $this->source); })()), "fotoPricipale", [], "any", false, false, true, 77), "getMetadata", [0 => "alt"], "method", false, false, true, 77)) && !twig_test_empty(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 77, $this->source); })()), "fotoPricipale", [], "any", false, false, true, 77), "getMetadata", [0 => "alt"], "method", false, false, true, 77)))) {
// line 78
echo " ";
echo $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 78, $this->source); })()), "fotoPricipale", [], "any", false, false, true, 78), "getThumbnail", [0 => "product_main"], "method", false, false, true, 78), "getHtml", [], "method", false, false, true, 78), 78, $this->source);
echo "
";
} else {
// line 80
echo " ";
$context["alt_image"] = (((("Busetto " . $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 80, $this->source); })()), "codice", [], "any", false, false, true, 80), 80, $this->source)) . " ") . $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, twig_split_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 80, $this->source); })()), "descrizione", [], "any", false, false, true, 80), 80, $this->source), ". "), 0, [], "array", false, false, true, 80), 80, $this->source)) . " 1");
// line 81
echo " ";
echo $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 81, $this->source); })()), "fotoPricipale", [], "any", false, false, true, 81), "thumbnail", [0 => "product_main"], "method", false, false, true, 81), "html", [0 => ["alt" => (isset($context["alt_image"]) || array_key_exists("alt_image", $context) ? $context["alt_image"] : (function () { throw new RuntimeError('Variable "alt_image" does not exist.', 81, $this->source); })())]], "method", false, false, true, 81), 81, $this->source);
echo "
";
}
// line 83
echo " </div>
";
}
// line 85
echo " ";
if ( !twig_test_empty(twig_get_attribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 85, $this->source); })()), "foto2", [], "any", false, false, true, 85))) {
// line 86
echo " <div class=\"swiper-slide\">
<a href=\"#\" data-bs-toggle=\"modal\" data-bs-target=\"#imageModal\" data-image=\"";
// line 87
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 87, $this->source); })()), "foto2", [], "any", false, false, true, 87), "thumbnail", [0 => "product_main"], "method", false, false, true, 87), 87, $this->source), "html", null, true);
echo "\" class=\"d-block d-lg-none\">
<div class=\" position-absolute top-0 end-0\"><svg xmlns=\"http://www.w3.org/2000/svg\" width=\"30\" height=\"30\" fill=\"currentColor\" class=\"bi bi-plus-circle\" viewBox=\"0 0 17 17\"><path d=\"M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14m0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16\"/><path d=\"M8 4a.5.5 0 0 1 .5.5v3h3a.5.5 0 0 1 0 1h-3v3a.5.5 0 0 1-1 0v-3h-3a.5.5 0 0 1 0-1h3v-3A.5.5 0 0 1 8 4\"/></svg></div>
</a>
";
// line 90
if (( !(null === twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 90, $this->source); })()), "foto2", [], "any", false, false, true, 90), "getMetadata", [0 => "alt"], "method", false, false, true, 90)) && !twig_test_empty(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 90, $this->source); })()), "foto2", [], "any", false, false, true, 90), "getMetadata", [0 => "alt"], "method", false, false, true, 90)))) {
// line 91
echo " ";
echo $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 91, $this->source); })()), "foto2", [], "any", false, false, true, 91), "getThumbnail", [0 => "product_main"], "method", false, false, true, 91), "getHtml", [], "method", false, false, true, 91), 91, $this->source);
echo "
";
} else {
// line 93
echo " ";
$context["alt_image"] = (((("Busetto " . $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 93, $this->source); })()), "codice", [], "any", false, false, true, 93), 93, $this->source)) . " ") . $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, twig_split_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 93, $this->source); })()), "descrizione", [], "any", false, false, true, 93), 93, $this->source), ". "), 0, [], "array", false, false, true, 93), 93, $this->source)) . " 2");
// line 94
echo " ";
echo $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 94, $this->source); })()), "foto2", [], "any", false, false, true, 94), "thumbnail", [0 => "product_main"], "method", false, false, true, 94), "html", [0 => ["alt" => (isset($context["alt_image"]) || array_key_exists("alt_image", $context) ? $context["alt_image"] : (function () { throw new RuntimeError('Variable "alt_image" does not exist.', 94, $this->source); })())]], "method", false, false, true, 94), 94, $this->source);
echo "
";
}
// line 96
echo " </div>
";
}
// line 98
echo " ";
if ( !twig_test_empty(twig_get_attribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 98, $this->source); })()), "foto3", [], "any", false, false, true, 98))) {
// line 99
echo " <div class=\"swiper-slide\">
<a href=\"#\" data-bs-toggle=\"modal\" data-bs-target=\"#imageModal\" data-image=\"";
// line 100
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 100, $this->source); })()), "foto3", [], "any", false, false, true, 100), "thumbnail", [0 => "product_main"], "method", false, false, true, 100), 100, $this->source), "html", null, true);
echo "\" class=\"d-block d-lg-none\">
<div class=\" position-absolute top-0 end-0\"><svg xmlns=\"http://www.w3.org/2000/svg\" width=\"30\" height=\"30\" fill=\"currentColor\" class=\"bi bi-plus-circle\" viewBox=\"0 0 17 17\"><path d=\"M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14m0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16\"/><path d=\"M8 4a.5.5 0 0 1 .5.5v3h3a.5.5 0 0 1 0 1h-3v3a.5.5 0 0 1-1 0v-3h-3a.5.5 0 0 1 0-1h3v-3A.5.5 0 0 1 8 4\"/></svg></div>
</a>
";
// line 103
if (( !(null === twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 103, $this->source); })()), "foto3", [], "any", false, false, true, 103), "getMetadata", [0 => "alt"], "method", false, false, true, 103)) && !twig_test_empty(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 103, $this->source); })()), "foto3", [], "any", false, false, true, 103), "getMetadata", [0 => "alt"], "method", false, false, true, 103)))) {
// line 104
echo " ";
echo $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 104, $this->source); })()), "foto3", [], "any", false, false, true, 104), "getThumbnail", [0 => "product_main"], "method", false, false, true, 104), "getHtml", [], "method", false, false, true, 104), 104, $this->source);
echo "
";
} else {
// line 106
echo " ";
$context["alt_image"] = (((("Busetto " . $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 106, $this->source); })()), "codice", [], "any", false, false, true, 106), 106, $this->source)) . " ") . $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, twig_split_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 106, $this->source); })()), "descrizione", [], "any", false, false, true, 106), 106, $this->source), ". "), 0, [], "array", false, false, true, 106), 106, $this->source)) . " 3");
// line 107
echo " ";
echo $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 107, $this->source); })()), "foto3", [], "any", false, false, true, 107), "thumbnail", [0 => "product_main"], "method", false, false, true, 107), "html", [0 => ["alt" => (isset($context["alt_image"]) || array_key_exists("alt_image", $context) ? $context["alt_image"] : (function () { throw new RuntimeError('Variable "alt_image" does not exist.', 107, $this->source); })())]], "method", false, false, true, 107), 107, $this->source);
echo "
";
}
// line 109
echo " </div>
";
}
// line 111
echo " ";
if ( !twig_test_empty(twig_get_attribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 111, $this->source); })()), "foto4", [], "any", false, false, true, 111))) {
// line 112
echo " <div class=\"swiper-slide\">
<a href=\"#\" data-bs-toggle=\"modal\" data-bs-target=\"#imageModal\" data-image=\"";
// line 113
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 113, $this->source); })()), "foto4", [], "any", false, false, true, 113), "thumbnail", [0 => "product_main"], "method", false, false, true, 113), 113, $this->source), "html", null, true);
echo "\" class=\"d-block d-lg-none\">
<div class=\" position-absolute top-0 end-0\"><svg xmlns=\"http://www.w3.org/2000/svg\" width=\"30\" height=\"30\" fill=\"currentColor\" class=\"bi bi-plus-circle\" viewBox=\"0 0 17 17\"><path d=\"M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14m0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16\"/><path d=\"M8 4a.5.5 0 0 1 .5.5v3h3a.5.5 0 0 1 0 1h-3v3a.5.5 0 0 1-1 0v-3h-3a.5.5 0 0 1 0-1h3v-3A.5.5 0 0 1 8 4\"/></svg></div>
</a>
";
// line 116
if (( !(null === twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 116, $this->source); })()), "foto4", [], "any", false, false, true, 116), "getMetadata", [0 => "alt"], "method", false, false, true, 116)) && !twig_test_empty(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 116, $this->source); })()), "foto4", [], "any", false, false, true, 116), "getMetadata", [0 => "alt"], "method", false, false, true, 116)))) {
// line 117
echo " ";
echo $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 117, $this->source); })()), "foto4", [], "any", false, false, true, 117), "getThumbnail", [0 => "product_main"], "method", false, false, true, 117), "getHtml", [], "method", false, false, true, 117), 117, $this->source);
echo "
";
} else {
// line 119
echo " ";
$context["alt_image"] = (((("Busetto " . $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 119, $this->source); })()), "codice", [], "any", false, false, true, 119), 119, $this->source)) . " ") . $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, twig_split_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 119, $this->source); })()), "descrizione", [], "any", false, false, true, 119), 119, $this->source), ". "), 0, [], "array", false, false, true, 119), 119, $this->source)) . " 4");
// line 120
echo " ";
echo $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 120, $this->source); })()), "foto4", [], "any", false, false, true, 120), "thumbnail", [0 => "product_main"], "method", false, false, true, 120), "html", [0 => ["alt" => (isset($context["alt_image"]) || array_key_exists("alt_image", $context) ? $context["alt_image"] : (function () { throw new RuntimeError('Variable "alt_image" does not exist.', 120, $this->source); })())]], "method", false, false, true, 120), 120, $this->source);
echo "
";
}
// line 122
echo " </div>
";
}
// line 124
echo " </div>
<div class=\"swiper-pagination\"></div>
</div>
<!-- Modale per l'immagine -->
<div class=\"modal fade\" id=\"imageModal\" tabindex=\"-1\" aria-labelledby=\"imageModalLabel\" aria-hidden=\"true\">
<div class=\"modal-dialog modal-lg modal-fullscreen-lg-down modal-dialog-centered\">
<div class=\"modal-content rounded-0\">
<div class=\"modal-header border-0\">
<button type=\"button\" class=\"btn-close\" data-bs-dismiss=\"modal\" aria-label=\"Close\"></button>
</div>
<div class=\"modal-body\" id=\"modalImageContainer\">
<!-- image container -->
</div>
</div>
</div>
</div>
</div>
</div>
<!--";
// line 146
echo "-->
</div>
<div class=\"col-12 col-xl-5 mb-30\">
";
// line 150
$this->loadTemplate("/inc/social-share.html.twig", "product/detail.html.twig", 150)->display($context);
// line 151
echo " <h1>";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 151, $this->source); })()), "nome", [], "any", false, false, true, 151), 151, $this->source), "html", null, true);
echo "</h1>
<p class=\"m-0\">";
// line 152
echo $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 152, $this->source); })()), "descrizione", [], "any", false, false, true, 152), 152, $this->source);
echo "</p>
";
// line 153
if ( !twig_test_empty(twig_get_attribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 153, $this->source); })()), "tag", [], "any", false, false, true, 153))) {
// line 154
echo " <div class=\"tags d-flex gap-10 mt-10\">
";
// line 155
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 155, $this->source); })()), "tag", [], "any", false, false, true, 155));
foreach ($context['_seq'] as $context["_key"] => $context["tag"]) {
// line 156
echo " <span class=\"tag border border-deep-gray px-10 rounded-4\">";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["tag"], "name", [], "any", false, false, true, 156), 156, $this->source), "html", null, true);
echo "</span>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['tag'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 158
echo " </div>
";
}
// line 160
echo " <div class=\"downloads d-flex gap-50 my-80\">
";
// line 163
echo " </div>
";
// line 164
if ( !twig_test_empty(twig_get_attribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 164, $this->source); })()), "famiglia", [], "any", false, false, true, 164))) {
// line 165
echo " <h4>";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Nella stessa collezione"), "html", null, true);
echo "</h4>
<div class=\"category-products d-flex gap-20\">
<div class=\"swiper swiper-slider pb-40\">
<div class=\"swiper-wrapper\">
";
// line 169
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 169, $this->source); })()), "famiglia", [], "any", false, false, true, 169));
foreach ($context['_seq'] as $context["_key"] => $context["prodotto"]) {
// line 170
echo " <div class=\"swiper-slide\">
<a href=\"";
// line 171
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["prodotto"], "url", [], "any", false, false, true, 171), 0, [], "array", false, false, true, 171), "slug", [], "any", false, false, true, 171), 171, $this->source), "html", null, true);
echo "\" class=\"product text-center fs-14 col-6 col-md-3\">
<div class=\"image p-10\">
";
// line 173
if ( !twig_test_empty(twig_get_attribute($this->env, $this->source, $context["prodotto"], "fotoPricipale", [], "any", false, false, true, 173))) {
// line 174
echo " <!--<img src=\"/assets/images/temp/chairs/s035.jpg\" alt=\"s035\" class=\"w-100 m-auto d-block pb-20\">-->
";
// line 175
echo $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["prodotto"], "fotoPricipale", [], "any", false, false, true, 175), "getThumbnail", [0 => "product_thumbnail_family"], "method", false, false, true, 175), "getHtml", [], "method", false, false, true, 175), 175, $this->source);
echo "
";
} else {
// line 177
echo " <img src=\"/busetto-placeholder.jpg\" alt=\"\" class=\"w-100 m-auto d-block pb-20\">
";
}
// line 179
echo " </div>
<span class=\"fw-bold d-inline-block w-100 text-center\">";
// line 180
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["prodotto"], "nome", [], "any", false, false, true, 180), 180, $this->source), "html", null, true);
echo "</span>
</a>
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['prodotto'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 184
echo " </div>
<div class=\"swiper-pagination\"></div>
</div>
</div>
";
}
// line 189
echo " </div>
</div>
<ul class=\"nav nav-underline mb-3 justify-content-between justify-content-lg-start gap-lg-80 border-bottom border-light-gray\" role=\"tablist\" id=\"specs-tabs\" style=\"position:relative; z-index: 1;\">
<li class=\"nav-item\" role=\"presentation\">
<a class=\"h3 nav-link m-0 p-0 active\" id=\"size-lnk\" data-mdb-toggle=\"tab\" href=\"#size-tab\" role=\"tab\"
aria-controls=\"size-tab\" aria-selected=\"true\">";
// line 194
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Dimensioni"), "html", null, true);
echo "</a>
</li>
";
// line 196
if ( !twig_test_empty((isset($context["rivestimenti"]) || array_key_exists("rivestimenti", $context) ? $context["rivestimenti"] : (function () { throw new RuntimeError('Variable "rivestimenti" does not exist.', 196, $this->source); })()))) {
// line 197
echo " <li class=\"nav-item\" role=\"presentation\">
<a class=\"h3 nav-link m-0 p-0\" id=\"coatings-lnk\" data-mdb-toggle=\"tab\" href=\"#coatings-tab\" role=\"tab\"
aria-controls=\"coatings-tab\" aria-selected=\"false\" data-catids=\"";
// line 199
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed((isset($context["rivestimenti"]) || array_key_exists("rivestimenti", $context) ? $context["rivestimenti"] : (function () { throw new RuntimeError('Variable "rivestimenti" does not exist.', 199, $this->source); })()), 199, $this->source), "html", null, true);
echo "\" data-loc=\"";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 199, $this->source); })()), "request", [], "any", false, false, true, 199), "locale", [], "any", false, false, true, 199), 199, $this->source), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Rivestimenti"), "html", null, true);
echo "</a>
</li>
";
}
// line 202
echo " ";
if ( !twig_test_empty((isset($context["finiture"]) || array_key_exists("finiture", $context) ? $context["finiture"] : (function () { throw new RuntimeError('Variable "finiture" does not exist.', 202, $this->source); })()))) {
// line 203
echo " <li class=\"nav-item\" role=\"presentation\">
<a class=\"h3 nav-link m-0 p-0\" id=\"finishes-lnk\" data-mdb-toggle=\"tab\" href=\"#finishes-tab\" role=\"tab\"
aria-controls=\"finishes-tab\" aria-selected=\"false\" data-catids=\"";
// line 205
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed((isset($context["finiture"]) || array_key_exists("finiture", $context) ? $context["finiture"] : (function () { throw new RuntimeError('Variable "finiture" does not exist.', 205, $this->source); })()), 205, $this->source), "html", null, true);
echo "\" data-loc=\"";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 205, $this->source); })()), "request", [], "any", false, false, true, 205), "locale", [], "any", false, false, true, 205), 205, $this->source), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Finiture"), "html", null, true);
echo "</a>
</li>
";
}
// line 208
echo " </ul>
<!-- Tabs navs -->
<!-- Tabs content -->
<div class=\"tab-content pb-40\">
<div class=\"tab-pane fade show active\" id=\"size-tab\" role=\"tabpanel\" aria-labelledby=\"size-lnk\">
";
// line 214
$this->loadTemplate("product/dimensioni.html.twig", "product/detail.html.twig", 214)->display($context);
// line 215
echo " </div>
<div class=\"tab-pane fade\" id=\"coatings-tab\" role=\"tabpanel\" aria-labelledby=\"coatings-lnk\">
";
// line 217
$this->loadTemplate("product/rivestimenti.html.twig", "product/detail.html.twig", 217)->display($context);
// line 218
echo " </div>
<div class=\"tab-pane fade\" id=\"finishes-tab\" role=\"tabpanel\" aria-labelledby=\"finishes-lnk\">
";
// line 220
$this->loadTemplate("product/finiture.html.twig", "product/detail.html.twig", 220)->display($context);
// line 221
echo " </div>
</div>
<!-- Tabs content -->
";
// line 225
if ( !twig_test_empty(twig_get_attribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 225, $this->source); })()), "correlati", [], "any", false, false, true, 225))) {
// line 226
echo " <div class=\"row pt-40 pb-80 border-top related-products\">
<h3 class=\"text-center\">";
// line 227
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Potrebbero interessarti"), "html", null, true);
echo "</h3>
<div class=\"related-products d-flex gap-20\">
<div class=\"swiper swiper-slider pb-40\">
<div class=\"swiper-wrapper\">
";
// line 231
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 231, $this->source); })()), "correlati", [], "any", false, false, true, 231));
foreach ($context['_seq'] as $context["_key"] => $context["prodotto"]) {
// line 232
echo " <div class=\"swiper-slide\">
<a href=\"";
// line 233
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["prodotto"], "url", [], "any", false, false, true, 233), 0, [], "array", false, false, true, 233), "slug", [], "any", false, false, true, 233), 233, $this->source), "html", null, true);
echo "\" class=\"product text-center fs-14 col-6 col-md-3 col-6 col-md-3\">
<div class=\"image p-10 p-md-30\">
";
// line 235
if ( !twig_test_empty(twig_get_attribute($this->env, $this->source, $context["prodotto"], "fotoPricipale", [], "any", false, false, true, 235))) {
// line 236
echo " <!--<img src=\"/assets/images/temp/chairs/s035.jpg\" alt=\"s035\" class=\"w-100 m-auto d-block pb-20\">-->
";
// line 237
echo $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["prodotto"], "fotoPricipale", [], "any", false, false, true, 237), "getThumbnail", [0 => "product_related"], "method", false, false, true, 237), "getHtml", [], "method", false, false, true, 237), 237, $this->source);
echo "
";
} else {
// line 239
echo " <picture>
<img src=\"/busetto-placeholder.jpg\" alt=\"\" class=\"w-100 m-auto d-block pb-20\">
</picture>
";
}
// line 243
echo " </div>
<span class=\"fw-bold d-inline-block w-100 text-center\">";
// line 244
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["prodotto"], "nome", [], "any", false, false, true, 244), 244, $this->source), "html", null, true);
echo "</span>
</a>
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['prodotto'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 248
echo " </div>
<div class=\"swiper-pagination\"></div>
</div>
</div>
</div>
";
}
// line 254
echo "
</div>
</main>
<style>
.zoom-container {
position: relative;
overflow: auto; /* Abilita lo scrolling */
width: 100%;
height: 100%;
touch-action: auto; /* Permette il pinch-to-zoom nativo */
}
.zoom-image {
display: flex;
justify-content:center;
align-items:center;
width: 100%;
height: 100%;
max-width: none;
max-height: none;
object-fit: contain;
cursor: grab;
transform: scale(1);
transition: transform 0.2s ease;
}
</style>
";
// line 284
twig_get_attribute($this->env, $this->source, $this->env->getFunction('pimcore_head_script')->getCallable()(), "appendFile", [0 => (isset($context["swiper_js"]) || array_key_exists("swiper_js", $context) ? $context["swiper_js"] : (function () { throw new RuntimeError('Variable "swiper_js" does not exist.', 284, $this->source); })())], "method", false, false, true, 284);
echo "\t
<script>
document.addEventListener(\"DOMContentLoaded\", (event) => {
var thumbsSwiper = new Swiper('.gallery-product .swiper-thumbs', {
slidesPerView: '4',
direction: 'horizontal',
spaceBetween: 10,
//preventClicks: false,
//preventClicksPropagation: false,
//simulateTouch: false,
pagination: {
el: '.swiper-pagination',
type: 'bullets',
clickable: true,
},
breakpoints: {
992: {
slidesPerView: 'auto',
direction: 'vertical',
spaceBetween: 20,
}
}
});
var slider = new Swiper('.gallery-product .swiper-slider', {
slidesPerView: 1,
spaceBetween: 0,
//preventClicks: false,
//preventClicksPropagation: false,
//simulateTouch: false,
thumbs: {
swiper: thumbsSwiper,
}
});
var categorySwiper = new Swiper('.category-products .swiper-slider', {
slidesPerView: 2,
spaceBetween: 20,
//preventClicks: false,
//preventClicksPropagation: false,
//simulateTouch: false,
pagination: {
el: '.swiper-pagination',
type: 'bullets',
clickable: true,
},
breakpoints: {
992: {
slidesPerView: 4,
}
}
});
var relatedSwiper = new Swiper('.related-products .swiper-slider', {
slidesPerView: 2,
spaceBetween: 20,
//preventClicks: false,
//preventClicksPropagation: false,
//simulateTouch: false,
pagination: {
el: '.swiper-pagination',
type: 'bullets',
clickable: true,
},
breakpoints: {
992: {
slidesPerView: 4,
}
}
});
const triggerTabList = document.querySelectorAll('#specs-tabs a');
triggerTabList.forEach(triggerEl => {
const tabTrigger = new bootstrap.Tab(triggerEl);
triggerEl.addEventListener('click', event => {
event.preventDefault();
tabTrigger.show();
});
});
// modal - image zoom
const modalImageContainer = document.getElementById('modalImageContainer');
document.querySelectorAll('.swiper-slide a[data-bs-toggle=\"modal\"]').forEach(function (link) {
link.addEventListener('click', function () {
// Ottieni l'immagine dal data-attribute
const image = this.getAttribute('data-image');
const imageHtml = `<img src=\"\${image}\" alt=\"zoom immagine\" class=\"zoom-image\" />`;
if (imageHtml) {
// Aggiorna il contenuto del modale
modalImageContainer.innerHTML = '<div class=\"zoom-container\">'+imageHtml+'</div>';
}
});
});
});
</script>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "product/detail.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 656 => 284, 624 => 254, 616 => 248, 606 => 244, 603 => 243, 597 => 239, 592 => 237, 589 => 236, 587 => 235, 582 => 233, 579 => 232, 575 => 231, 568 => 227, 565 => 226, 563 => 225, 557 => 221, 555 => 220, 551 => 218, 549 => 217, 545 => 215, 543 => 214, 535 => 208, 525 => 205, 521 => 203, 518 => 202, 508 => 199, 504 => 197, 502 => 196, 497 => 194, 490 => 189, 483 => 184, 473 => 180, 470 => 179, 466 => 177, 461 => 175, 458 => 174, 456 => 173, 451 => 171, 448 => 170, 444 => 169, 436 => 165, 434 => 164, 431 => 163, 428 => 160, 424 => 158, 415 => 156, 411 => 155, 408 => 154, 406 => 153, 402 => 152, 397 => 151, 395 => 150, 389 => 146, 365 => 124, 361 => 122, 355 => 120, 352 => 119, 346 => 117, 344 => 116, 338 => 113, 335 => 112, 332 => 111, 328 => 109, 322 => 107, 319 => 106, 313 => 104, 311 => 103, 305 => 100, 302 => 99, 299 => 98, 295 => 96, 289 => 94, 286 => 93, 280 => 91, 278 => 90, 272 => 87, 269 => 86, 266 => 85, 262 => 83, 256 => 81, 253 => 80, 247 => 78, 245 => 77, 239 => 74, 236 => 73, 234 => 72, 230 => 70, 223 => 66, 219 => 65, 216 => 64, 214 => 63, 208 => 59, 202 => 56, 197 => 55, 194 => 54, 188 => 51, 183 => 50, 180 => 49, 174 => 46, 169 => 45, 166 => 44, 160 => 41, 155 => 40, 153 => 39, 146 => 34, 137 => 28, 127 => 25, 122 => 22, 119 => 21, 116 => 20, 113 => 19, 110 => 18, 107 => 17, 104 => 16, 101 => 15, 98 => 14, 95 => 13, 92 => 12, 89 => 11, 86 => 10, 83 => 9, 81 => 8, 78 => 7, 75 => 6, 73 => 5, 70 => 4, 60 => 3, 37 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends 'layouts/layout.html.twig' %}
{% block content %}
{% do pimcore_head_title().set(product.codice ~ \" - \" ~ product.categories[0].name ~ \" | Busetto\") %}
{% do pimcore_head_meta().setDescription(metaDescription, 160) %}
{% set breadcrumbData = product.getCategoryBreadcrumb() %}
{% set breadcrumb = \"\" %}
{% set prelocal = \"\" %}
{% set precat = \"\" %}
{% if breadcrumbData is not empty %}
{% if app.request.locale == 'it' %}
{% set prelocal = \"/it/prodotti/\" %}
{% set precat = \"/ Prodotti \" %}
{% elseif app.request.locale == 'en' %}
{% set prelocal = \"/en/products/\" %}
{% set precat = \"/ Products \" %}
{% endif %}
{% set breadcrumb = precat ~ '/ <a href=\"' ~ prelocal ~ breadcrumbData.url ~ '\">' ~ breadcrumbData.name ~ '</a> ' %}
{% endif %}
<main role=\"main\" class=\"single-product mt-100 pt-0 pt-lg-100\">
<div class=\"fs-15 breadcrumbs mb-10 mx-10 mx-md-40 mx-lg-70\">
<a href=\"/\">{{ 'Home'|trans }}</a> {{ breadcrumb|raw }}/ {{ product.nome }}
</div>
{{ pimcore_areablock(\"areaBlock\") }}
<div class=\"pb-20 mx-10 mx-md-40 mx-lg-70 \">
<div class=\"row gx-0 gx-lg-70\">
<div class=\"col-12 col-xl-7\">
<!--{# start swiper product details #}-->
<div class=\"d-flex flex-column flex-lg-row gallery-product\">
<div class=\"col-12 col-lg-2 order-2 order-lg-1 my-30 my-lg-0\">
<div class=\"swiper swiper-thumbs\">
<div class=\"swiper-wrapper\">
{% if product.fotoPricipale is not empty %}
<div class=\"swiper-slide thumb p-10\" style=\"background-image:url({{ product.fotoPricipale.getThumbnail(\"product_thumbnail_gallery\").getPath() }})\">
<!-- {{ product.fotoPricipale.getThumbnail(\"product_thumbnail_gallery\").getHtml()|raw }} -->
</div>
{% endif %}
{% if product.foto2 is not empty %}
<div class=\"swiper-slide thumb p-5\" style=\"background-image:url({{ product.foto2.getThumbnail(\"product_thumbnail_gallery\").getPath() }})\">
<!-- {{ product.foto2.getThumbnail(\"product_thumbnail_gallery\").getHtml()|raw }} -->
</div>
{% endif %}
{% if product.foto3 is not empty %}
<div class=\"swiper-slide thumb p-5\" style=\"background-image:url({{ product.foto3.getThumbnail(\"product_thumbnail_gallery\").getPath() }})\">
<!-- {{ product.foto3.getThumbnail(\"product_thumbnail_gallery\").getHtml()|raw }} -->
</div>
{% endif %}
{% if product.foto4 is not empty %}
<div class=\"swiper-slide thumb p-5\" style=\"background-image:url({{ product.foto4.getThumbnail(\"product_thumbnail_gallery\").getPath() }})\">
<!-- {{ product.foto4.getThumbnail(\"product_thumbnail_gallery\").getHtml()|raw }} -->
</div>
{% endif %}
</div>
</div>
</div>
<div class=\"ms-0 ms-lg-20 col-12 col-lg-10 order-1 order-lg-2 p-5 position-relative\">
{% if product.url3d %}
<div class=\"banner3d-container\">
<a href=\"{{ product.url3d }}\" class=\"banner3d\" target=\"_blank\">
<span>{{ 'TEXT3D'|trans|raw }}</span>
</a>
</div>
{% endif %}
<div class=\"swiper swiper-slider\">
<div class=\"swiper-wrapper\">
{% if product.fotoPricipale is not empty %}
<div class=\"swiper-slide\">
<a href=\"#\" data-bs-toggle=\"modal\" data-bs-target=\"#imageModal\" data-image=\"{{ product.fotoPricipale.thumbnail('product_main') }}\" class=\"d-block d-lg-none\">
<div class=\" position-absolute top-0 end-0\"><svg xmlns=\"http://www.w3.org/2000/svg\" width=\"30\" height=\"30\" fill=\"currentColor\" class=\"bi bi-plus-circle\" viewBox=\"0 0 17 17\"><path d=\"M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14m0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16\"/><path d=\"M8 4a.5.5 0 0 1 .5.5v3h3a.5.5 0 0 1 0 1h-3v3a.5.5 0 0 1-1 0v-3h-3a.5.5 0 0 1 0-1h3v-3A.5.5 0 0 1 8 4\"/></svg></div>
</a>
{% if product.fotoPricipale.getMetadata('alt') is not null and product.fotoPricipale.getMetadata('alt') is not empty %}
{{ product.fotoPricipale.getThumbnail(\"product_main\").getHtml()|raw }}
{% else %}
{% set alt_image = \"Busetto \" ~ product.codice ~ \" \" ~ product.descrizione|split(\". \")[0] ~ \" 1\" %}
{{ product.fotoPricipale.thumbnail(\"product_main\").html({'alt': alt_image})|raw }}
{% endif %}
</div>
{% endif %}
{% if product.foto2 is not empty %}
<div class=\"swiper-slide\">
<a href=\"#\" data-bs-toggle=\"modal\" data-bs-target=\"#imageModal\" data-image=\"{{ product.foto2.thumbnail('product_main') }}\" class=\"d-block d-lg-none\">
<div class=\" position-absolute top-0 end-0\"><svg xmlns=\"http://www.w3.org/2000/svg\" width=\"30\" height=\"30\" fill=\"currentColor\" class=\"bi bi-plus-circle\" viewBox=\"0 0 17 17\"><path d=\"M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14m0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16\"/><path d=\"M8 4a.5.5 0 0 1 .5.5v3h3a.5.5 0 0 1 0 1h-3v3a.5.5 0 0 1-1 0v-3h-3a.5.5 0 0 1 0-1h3v-3A.5.5 0 0 1 8 4\"/></svg></div>
</a>
{% if product.foto2.getMetadata('alt') is not null and product.foto2.getMetadata('alt') is not empty %}
{{ product.foto2.getThumbnail(\"product_main\").getHtml()|raw }}
{% else %}
{% set alt_image = \"Busetto \" ~ product.codice ~ \" \" ~ product.descrizione|split(\". \")[0] ~ \" 2\" %}
{{ product.foto2.thumbnail(\"product_main\").html({'alt': alt_image})|raw }}
{% endif %}
</div>
{% endif %}
{% if product.foto3 is not empty %}
<div class=\"swiper-slide\">
<a href=\"#\" data-bs-toggle=\"modal\" data-bs-target=\"#imageModal\" data-image=\"{{ product.foto3.thumbnail('product_main') }}\" class=\"d-block d-lg-none\">
<div class=\" position-absolute top-0 end-0\"><svg xmlns=\"http://www.w3.org/2000/svg\" width=\"30\" height=\"30\" fill=\"currentColor\" class=\"bi bi-plus-circle\" viewBox=\"0 0 17 17\"><path d=\"M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14m0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16\"/><path d=\"M8 4a.5.5 0 0 1 .5.5v3h3a.5.5 0 0 1 0 1h-3v3a.5.5 0 0 1-1 0v-3h-3a.5.5 0 0 1 0-1h3v-3A.5.5 0 0 1 8 4\"/></svg></div>
</a>
{% if product.foto3.getMetadata('alt') is not null and product.foto3.getMetadata('alt') is not empty %}
{{ product.foto3.getThumbnail(\"product_main\").getHtml()|raw }}
{% else %}
{% set alt_image = \"Busetto \" ~ product.codice ~ \" \" ~ product.descrizione|split(\". \")[0] ~ \" 3\" %}
{{ product.foto3.thumbnail(\"product_main\").html({'alt': alt_image})|raw }}
{% endif %}
</div>
{% endif %}
{% if product.foto4 is not empty %}
<div class=\"swiper-slide\">
<a href=\"#\" data-bs-toggle=\"modal\" data-bs-target=\"#imageModal\" data-image=\"{{ product.foto4.thumbnail('product_main') }}\" class=\"d-block d-lg-none\">
<div class=\" position-absolute top-0 end-0\"><svg xmlns=\"http://www.w3.org/2000/svg\" width=\"30\" height=\"30\" fill=\"currentColor\" class=\"bi bi-plus-circle\" viewBox=\"0 0 17 17\"><path d=\"M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14m0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16\"/><path d=\"M8 4a.5.5 0 0 1 .5.5v3h3a.5.5 0 0 1 0 1h-3v3a.5.5 0 0 1-1 0v-3h-3a.5.5 0 0 1 0-1h3v-3A.5.5 0 0 1 8 4\"/></svg></div>
</a>
{% if product.foto4.getMetadata('alt') is not null and product.foto4.getMetadata('alt') is not empty %}
{{ product.foto4.getThumbnail(\"product_main\").getHtml()|raw }}
{% else %}
{% set alt_image = \"Busetto \" ~ product.codice ~ \" \" ~ product.descrizione|split(\". \")[0] ~ \" 4\" %}
{{ product.foto4.thumbnail(\"product_main\").html({'alt': alt_image})|raw }}
{% endif %}
</div>
{% endif %}
</div>
<div class=\"swiper-pagination\"></div>
</div>
<!-- Modale per l'immagine -->
<div class=\"modal fade\" id=\"imageModal\" tabindex=\"-1\" aria-labelledby=\"imageModalLabel\" aria-hidden=\"true\">
<div class=\"modal-dialog modal-lg modal-fullscreen-lg-down modal-dialog-centered\">
<div class=\"modal-content rounded-0\">
<div class=\"modal-header border-0\">
<button type=\"button\" class=\"btn-close\" data-bs-dismiss=\"modal\" aria-label=\"Close\"></button>
</div>
<div class=\"modal-body\" id=\"modalImageContainer\">
<!-- image container -->
</div>
</div>
</div>
</div>
</div>
</div>
<!--{# end swiper product details #}-->
</div>
<div class=\"col-12 col-xl-5 mb-30\">
{% include '/inc/social-share.html.twig' %}
<h1>{{ product.nome }}</h1>
<p class=\"m-0\">{{ product.descrizione|raw }}</p>
{% if product.tag is not empty %}
<div class=\"tags d-flex gap-10 mt-10\">
{% for tag in product.tag %}
<span class=\"tag border border-deep-gray px-10 rounded-4\">{{ tag.name }}</span>
{% endfor %}
</div>
{% endif %}
<div class=\"downloads d-flex gap-50 my-80\">
{# <a href=\"#\" class=\"download\"><i class=\"fa fa-download me-10\"></i>Scarica scheda tecnica</a>
<a href=\"#\" class=\"download\"><i class=\"fa fa-download me-10\"></i>Scarica catalogo materiali</a> #}
</div>
{% if product.famiglia is not empty %}
<h4>{{ 'Nella stessa collezione'|trans }}</h4>
<div class=\"category-products d-flex gap-20\">
<div class=\"swiper swiper-slider pb-40\">
<div class=\"swiper-wrapper\">
{% for prodotto in product.famiglia %}
<div class=\"swiper-slide\">
<a href=\"{{ prodotto.url[0].slug }}\" class=\"product text-center fs-14 col-6 col-md-3\">
<div class=\"image p-10\">
{% if prodotto.fotoPricipale is not empty %}
<!--<img src=\"/assets/images/temp/chairs/s035.jpg\" alt=\"s035\" class=\"w-100 m-auto d-block pb-20\">-->
{{ prodotto.fotoPricipale.getThumbnail(\"product_thumbnail_family\").getHtml()|raw }}
{% else %}
<img src=\"/busetto-placeholder.jpg\" alt=\"\" class=\"w-100 m-auto d-block pb-20\">
{% endif %}
</div>
<span class=\"fw-bold d-inline-block w-100 text-center\">{{ prodotto.nome }}</span>
</a>
</div>
{% endfor %}
</div>
<div class=\"swiper-pagination\"></div>
</div>
</div>
{% endif %}
</div>
</div>
<ul class=\"nav nav-underline mb-3 justify-content-between justify-content-lg-start gap-lg-80 border-bottom border-light-gray\" role=\"tablist\" id=\"specs-tabs\" style=\"position:relative; z-index: 1;\">
<li class=\"nav-item\" role=\"presentation\">
<a class=\"h3 nav-link m-0 p-0 active\" id=\"size-lnk\" data-mdb-toggle=\"tab\" href=\"#size-tab\" role=\"tab\"
aria-controls=\"size-tab\" aria-selected=\"true\">{{ 'Dimensioni'|trans }}</a>
</li>
{% if rivestimenti is not empty %}
<li class=\"nav-item\" role=\"presentation\">
<a class=\"h3 nav-link m-0 p-0\" id=\"coatings-lnk\" data-mdb-toggle=\"tab\" href=\"#coatings-tab\" role=\"tab\"
aria-controls=\"coatings-tab\" aria-selected=\"false\" data-catids=\"{{ rivestimenti }}\" data-loc=\"{{ app.request.locale }}\">{{ 'Rivestimenti'|trans }}</a>
</li>
{% endif %}
{% if finiture is not empty %}
<li class=\"nav-item\" role=\"presentation\">
<a class=\"h3 nav-link m-0 p-0\" id=\"finishes-lnk\" data-mdb-toggle=\"tab\" href=\"#finishes-tab\" role=\"tab\"
aria-controls=\"finishes-tab\" aria-selected=\"false\" data-catids=\"{{ finiture }}\" data-loc=\"{{ app.request.locale }}\">{{ 'Finiture'|trans }}</a>
</li>
{% endif %}
</ul>
<!-- Tabs navs -->
<!-- Tabs content -->
<div class=\"tab-content pb-40\">
<div class=\"tab-pane fade show active\" id=\"size-tab\" role=\"tabpanel\" aria-labelledby=\"size-lnk\">
{% include 'product/dimensioni.html.twig' %}
</div>
<div class=\"tab-pane fade\" id=\"coatings-tab\" role=\"tabpanel\" aria-labelledby=\"coatings-lnk\">
{% include 'product/rivestimenti.html.twig' %}
</div>
<div class=\"tab-pane fade\" id=\"finishes-tab\" role=\"tabpanel\" aria-labelledby=\"finishes-lnk\">
{% include 'product/finiture.html.twig' %}
</div>
</div>
<!-- Tabs content -->
{% if product.correlati is not empty %}
<div class=\"row pt-40 pb-80 border-top related-products\">
<h3 class=\"text-center\">{{ 'Potrebbero interessarti'|trans }}</h3>
<div class=\"related-products d-flex gap-20\">
<div class=\"swiper swiper-slider pb-40\">
<div class=\"swiper-wrapper\">
{% for prodotto in product.correlati %}
<div class=\"swiper-slide\">
<a href=\"{{ prodotto.url[0].slug }}\" class=\"product text-center fs-14 col-6 col-md-3 col-6 col-md-3\">
<div class=\"image p-10 p-md-30\">
{% if prodotto.fotoPricipale is not empty %}
<!--<img src=\"/assets/images/temp/chairs/s035.jpg\" alt=\"s035\" class=\"w-100 m-auto d-block pb-20\">-->
{{ prodotto.fotoPricipale.getThumbnail(\"product_related\").getHtml()|raw }}
{% else %}
<picture>
<img src=\"/busetto-placeholder.jpg\" alt=\"\" class=\"w-100 m-auto d-block pb-20\">
</picture>
{% endif %}
</div>
<span class=\"fw-bold d-inline-block w-100 text-center\">{{ prodotto.nome }}</span>
</a>
</div>
{% endfor %}
</div>
<div class=\"swiper-pagination\"></div>
</div>
</div>
</div>
{% endif %}
</div>
</main>
<style>
.zoom-container {
position: relative;
overflow: auto; /* Abilita lo scrolling */
width: 100%;
height: 100%;
touch-action: auto; /* Permette il pinch-to-zoom nativo */
}
.zoom-image {
display: flex;
justify-content:center;
align-items:center;
width: 100%;
height: 100%;
max-width: none;
max-height: none;
object-fit: contain;
cursor: grab;
transform: scale(1);
transition: transform 0.2s ease;
}
</style>
{% do pimcore_head_script().appendFile(swiper_js) %}\t
<script>
document.addEventListener(\"DOMContentLoaded\", (event) => {
var thumbsSwiper = new Swiper('.gallery-product .swiper-thumbs', {
slidesPerView: '4',
direction: 'horizontal',
spaceBetween: 10,
//preventClicks: false,
//preventClicksPropagation: false,
//simulateTouch: false,
pagination: {
el: '.swiper-pagination',
type: 'bullets',
clickable: true,
},
breakpoints: {
992: {
slidesPerView: 'auto',
direction: 'vertical',
spaceBetween: 20,
}
}
});
var slider = new Swiper('.gallery-product .swiper-slider', {
slidesPerView: 1,
spaceBetween: 0,
//preventClicks: false,
//preventClicksPropagation: false,
//simulateTouch: false,
thumbs: {
swiper: thumbsSwiper,
}
});
var categorySwiper = new Swiper('.category-products .swiper-slider', {
slidesPerView: 2,
spaceBetween: 20,
//preventClicks: false,
//preventClicksPropagation: false,
//simulateTouch: false,
pagination: {
el: '.swiper-pagination',
type: 'bullets',
clickable: true,
},
breakpoints: {
992: {
slidesPerView: 4,
}
}
});
var relatedSwiper = new Swiper('.related-products .swiper-slider', {
slidesPerView: 2,
spaceBetween: 20,
//preventClicks: false,
//preventClicksPropagation: false,
//simulateTouch: false,
pagination: {
el: '.swiper-pagination',
type: 'bullets',
clickable: true,
},
breakpoints: {
992: {
slidesPerView: 4,
}
}
});
const triggerTabList = document.querySelectorAll('#specs-tabs a');
triggerTabList.forEach(triggerEl => {
const tabTrigger = new bootstrap.Tab(triggerEl);
triggerEl.addEventListener('click', event => {
event.preventDefault();
tabTrigger.show();
});
});
// modal - image zoom
const modalImageContainer = document.getElementById('modalImageContainer');
document.querySelectorAll('.swiper-slide a[data-bs-toggle=\"modal\"]').forEach(function (link) {
link.addEventListener('click', function () {
// Ottieni l'immagine dal data-attribute
const image = this.getAttribute('data-image');
const imageHtml = `<img src=\"\${image}\" alt=\"zoom immagine\" class=\"zoom-image\" />`;
if (imageHtml) {
// Aggiorna il contenuto del modale
modalImageContainer.innerHTML = '<div class=\"zoom-container\">'+imageHtml+'</div>';
}
});
});
});
</script>
{% endblock %}", "product/detail.html.twig", "/var/www/html/templates/product/detail.html.twig");
}
public function checkSecurity()
{
static $tags = array("do" => 5, "set" => 8, "if" => 12, "include" => 150, "for" => 155);
static $filters = array("escape" => 25, "trans" => 25, "raw" => 25, "split" => 80);
static $functions = array("pimcore_head_title" => 5, "pimcore_head_meta" => 6, "pimcore_areablock" => 28, "pimcore_head_script" => 284);
try {
$this->sandbox->checkSecurity(
['do', 'set', 'if', 'include', 'for'],
['escape', 'trans', 'raw', 'split'],
['pimcore_head_title', 'pimcore_head_meta', 'pimcore_areablock', 'pimcore_head_script']
);
} catch (SecurityError $e) {
$e->setSourceContext($this->source);
if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
$e->setTemplateLine($tags[$e->getTagName()]);
} elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
$e->setTemplateLine($filters[$e->getFilterName()]);
} elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
$e->setTemplateLine($functions[$e->getFunctionName()]);
}
throw $e;
}
}
}