<?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;
/* @CoreShopFrontend/Product/detail.html.twig */
class __TwigTemplate_a58d9eae49d193a4903f0359f9975ddf extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'content' => [$this, 'block_content'],
'scripts' => [$this, 'block_scripts'],
'head_stylesheets' => [$this, 'block_head_stylesheets'],
];
$this->sandbox = $this->env->getExtension('\Twig\Extension\SandboxExtension');
$this->checkSecurity();
}
protected function doGetParent(array $context)
{
// line 1
return "@CoreShopFrontend/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", "@CoreShopFrontend/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", "@CoreShopFrontend/Product/detail.html.twig"));
// line 2
$macros["product_price"] = $this->macros["product_price"] = $this->loadTemplate("@CoreShopFrontend/Common/Macro/product_price.html.twig", "@CoreShopFrontend/Product/detail.html.twig", 2)->unwrap();
// line 3
$macros["currency"] = $this->macros["currency"] = $this->loadTemplate("@CoreShopFrontend/Common/Macro/currency.html.twig", "@CoreShopFrontend/Product/detail.html.twig", 3)->unwrap();
// line 1
$this->parent = $this->loadTemplate("@CoreShopFrontend/layout.html.twig", "@CoreShopFrontend/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 5
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 6
echo " ";
$context["cart_allowed"] = $this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("CORESHOP_CART_ADD_ITEM");
// line 7
echo " ";
$context["wishlist_allowed"] = $this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("CORESHOP_WISHLIST_ADD_ITEM");
// line 8
echo " ";
$context["discounted"] = $this->env->getFilter('coreshop_product_discount_price')->getCallable()($this->sandbox->ensureToStringAllowed((isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 8, $this->source); })()), 8, $this->source), $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["coreshop"]) || array_key_exists("coreshop", $context) ? $context["coreshop"] : (function () { throw new RuntimeError('Variable "coreshop" does not exist.', 8, $this->source); })()), "context", [], "any", false, false, true, 8), 8, $this->source));
// line 9
echo " <div class=\"container\" id=\"productPageHeader\">
<div class=\"row product-page-row\">
<div class=\"col-12 col-md-8\">
";
// line 12
$context["logo"] = $this->extensions['App\Twig\Extension\ProductLogoExtension']->productLogo($this->sandbox->ensureToStringAllowed((isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 12, $this->source); })()), 12, $this->source));
// line 13
echo " ";
if ( !(null === (isset($context["logo"]) || array_key_exists("logo", $context) ? $context["logo"] : (function () { throw new RuntimeError('Variable "logo" does not exist.', 13, $this->source); })()))) {
// line 14
echo " <img src=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(("/themes/frontend/images/productlogo-details/" . $this->sandbox->ensureToStringAllowed((isset($context["logo"]) || array_key_exists("logo", $context) ? $context["logo"] : (function () { throw new RuntimeError('Variable "logo" does not exist.', 14, $this->source); })()), 14, $this->source))), "html", null, true);
echo "\"
alt=\"";
// line 15
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.', 15, $this->source); })()), "getCollection", [], "method", false, false, true, 15), 15, $this->source), "html", null, true);
echo "\">
";
}
// line 17
echo " <h2>
";
// line 18
if ((twig_lower_filter($this->env, 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.', 18, $this->source); })()), "getBrand", [], "method", false, false, true, 18)) == "grand seiko")) {
// line 19
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.', 19, $this->source); })()), "getCollection", [], "method", false, false, true, 19), 19, $this->source), "html", null, true);
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.', 19, $this->source); })()), "getSubCollection", [], "method", false, false, true, 19), 19, $this->source), "html", null, true);
echo "
";
} else {
// line 21
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.', 21, $this->source); })()), "getSubCollection", [], "method", false, false, true, 21), 21, $this->source), "html", null, true);
echo "
";
}
// line 23
echo " </h2>
";
// line 24
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.', 24, $this->source); })()), "uniqueName", [], "any", false, false, true, 24)) {
// line 25
echo " <ul class=\"prod_unique_name\">
<li>";
// line 26
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.', 26, $this->source); })()), "uniqueName", [], "any", false, false, true, 26), 26, $this->source), "html", null, true);
echo "</li>
</ul>
";
}
// line 30
echo " <ul class=\"prodIds\">
<li class=\"first\"><span>Referenciaszám:</span> ";
// line 31
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.', 31, $this->source); })()), "sku", [], "any", false, false, true, 31), 31, $this->source), "html", null, true);
echo "</li>
";
// line 32
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.', 32, $this->source); })()), "getCaliberNumber", [], "method", false, false, true, 32)) {
// line 33
echo " <li><span>Szerkezet:</span> ";
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.', 33, $this->source); })()), "getCalibernumber", [], "method", false, false, true, 33), "getName", [], "method", false, false, true, 33), 33, $this->source), "html", null, true);
echo "</li>
";
}
// line 35
echo " ";
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.', 35, $this->source); })()), "businessClass", [], "any", false, false, true, 35) == "Seiko Boutique")) {
// line 36
echo " <li class=\"color-golden\"> Boutique Exkluzív</li>
";
}
// line 38
echo " </ul>
<ul class=\"prodIds\">
<li class=\"first\">
<span>Elérhetőség:</span> ";
// line 41
echo twig_escape_filter($this->env, ((twig_get_attribute($this->env, $this->source, ($context["availabilityOptions"] ?? null), 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); })()), "getAvailability", [], "method", false, false, true, 41), [], "array", true, true, true, 41)) ? (_twig_default_filter($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, ($context["availabilityOptions"] ?? null), 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); })()), "getAvailability", [], "method", false, false, true, 41), [], "array", false, false, true, 41), 41, $this->source), "-")) : ("-")), "html", null, true);
if ((isset($context["availabilityExtra"]) || array_key_exists("availabilityExtra", $context) ? $context["availabilityExtra"] : (function () { throw new RuntimeError('Variable "availabilityExtra" does not exist.', 41, $this->source); })())) {
// line 42
echo " <span>";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed((isset($context["availabilityExtra"]) || array_key_exists("availabilityExtra", $context) ? $context["availabilityExtra"] : (function () { throw new RuntimeError('Variable "availabilityExtra" does not exist.', 42, $this->source); })()), 42, $this->source), "html", null, true);
echo "</span>";
}
echo "</li>
</ul>
<h3><span></span></h3>
</div>
<div class=\"col-12 col-md-4 text-right\">
<div class=\"price-row-logo d-flex justify-content-end upper-row\">
";
// line 48
if ((isset($context["discounted"]) || array_key_exists("discounted", $context) ? $context["discounted"] : (function () { throw new RuntimeError('Variable "discounted" does not exist.', 48, $this->source); })())) {
// line 49
echo " <p class=\"crossed-price\">";
echo twig_call_macro($macros["currency"], "macro_getRetailPrice", [(isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 49, $this->source); })())], 49, $context, $this->getSourceContext());
echo "</p>
<p class=\"retail-price\">";
// line 50
echo twig_call_macro($macros["currency"], "macro_getDiscountPrice", [(isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 50, $this->source); })())], 50, $context, $this->getSourceContext());
echo "</p>
";
} else {
// line 52
echo " <p class=\"retail-price\">";
echo twig_call_macro($macros["currency"], "macro_getRetailPrice", [(isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 52, $this->source); })())], 52, $context, $this->getSourceContext());
echo "</p>
";
}
// line 54
echo " </div>
<div class=\"row p-0 rowmobview\">
";
// line 56
$this->loadTemplate("@CoreShopFrontend/Product/_manage_buttons.html.twig", "@CoreShopFrontend/Product/detail.html.twig", 56)->display(twig_array_merge($context, ["large" => false]));
// line 57
echo " </div>
</div>
<div class=\"col-12\" id=\"product-page-text\">
<p>";
// line 60
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.', 60, $this->source); })()), "shortDescription", [], "method", false, false, true, 60), 60, $this->source), "html", null, true);
echo "</p>
</div>
</div>
</div>
<div class=\"container gallery-container\">
";
// line 65
if ((twig_length_filter($this->env, 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); })()), "getImages", [], "method", false, false, true, 65)) > 0)) {
// line 66
echo " <div class=\"row gallery-row\">
";
// line 67
$context["imgmain"] = null;
// line 68
echo " ";
$context["imgleft"] = [];
// line 69
echo " ";
$context["imgright"] = [];
// line 70
echo " ";
$context["i"] = 0;
// line 71
echo " ";
$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.', 71, $this->source); })()), "getImages", [], "method", false, false, true, 71));
foreach ($context['_seq'] as $context["_key"] => $context["image"]) {
// line 72
echo " ";
if (((isset($context["i"]) || array_key_exists("i", $context) ? $context["i"] : (function () { throw new RuntimeError('Variable "i" does not exist.', 72, $this->source); })()) == 0)) {
// line 73
echo " ";
$context["imgmain"] = $context["image"];
// line 74
echo " ";
} elseif ((((isset($context["i"]) || array_key_exists("i", $context) ? $context["i"] : (function () { throw new RuntimeError('Variable "i" does not exist.', 74, $this->source); })()) % 2) == 0)) {
// line 75
echo " ";
$context["imgleft"] = twig_array_merge($this->sandbox->ensureToStringAllowed((isset($context["imgleft"]) || array_key_exists("imgleft", $context) ? $context["imgleft"] : (function () { throw new RuntimeError('Variable "imgleft" does not exist.', 75, $this->source); })()), 75, $this->source), [$context["image"]]);
// line 76
echo " ";
} else {
// line 77
echo " ";
$context["imgright"] = twig_array_merge($this->sandbox->ensureToStringAllowed((isset($context["imgright"]) || array_key_exists("imgright", $context) ? $context["imgright"] : (function () { throw new RuntimeError('Variable "imgright" does not exist.', 77, $this->source); })()), 77, $this->source), [$context["image"]]);
// line 78
echo " ";
}
// line 79
echo " ";
$context["i"] = ((isset($context["i"]) || array_key_exists("i", $context) ? $context["i"] : (function () { throw new RuntimeError('Variable "i" does not exist.', 79, $this->source); })()) + 1);
// line 80
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['image'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 81
echo "
";
// line 82
if ((isset($context["imgleft"]) || array_key_exists("imgleft", $context) ? $context["imgleft"] : (function () { throw new RuntimeError('Variable "imgleft" does not exist.', 82, $this->source); })())) {
// line 83
echo " <div class=\"col gallery-left-side-image\">
";
// line 84
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["imgleft"]) || array_key_exists("imgleft", $context) ? $context["imgleft"] : (function () { throw new RuntimeError('Variable "imgleft" does not exist.', 84, $this->source); })()));
$context['loop'] = [
'parent' => $context['_parent'],
'index0' => 0,
'index' => 1,
'first' => true,
];
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["_key"] => $context["asset"]) {
// line 85
echo " ";
$this->loadTemplate("@CoreShopFrontend/Product/_asset_item.html.twig", "@CoreShopFrontend/Product/detail.html.twig", 85)->display(twig_array_merge($context, ["fancyId" => "gallery"]));
// line 86
echo " ";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['length'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['asset'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 87
echo " </div>
";
}
// line 89
echo " ";
if ((isset($context["imgmain"]) || array_key_exists("imgmain", $context) ? $context["imgmain"] : (function () { throw new RuntimeError('Variable "imgmain" does not exist.', 89, $this->source); })())) {
// line 90
echo " ";
// line 91
echo " <div class=\"col gallery-main-image\">
<a href=\"";
// line 92
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["imgmain"]) || array_key_exists("imgmain", $context) ? $context["imgmain"] : (function () { throw new RuntimeError('Variable "imgmain" does not exist.', 92, $this->source); })()), "fullPath", [], "any", false, false, true, 92), 92, $this->source), "html", null, true);
echo "\" data-fancybox=\"gallery_small\">
";
// line 93
if ($this->env->getTest('instanceof')->getCallable()((isset($context["imgmain"]) || array_key_exists("imgmain", $context) ? $context["imgmain"] : (function () { throw new RuntimeError('Variable "imgmain" does not exist.', 93, $this->source); })()), "Pimcore\\Model\\Asset\\Image")) {
// line 94
echo " ";
echo $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["imgmain"]) || array_key_exists("imgmain", $context) ? $context["imgmain"] : (function () { throw new RuntimeError('Variable "imgmain" does not exist.', 94, $this->source); })()), "thumbnail", ["seiko_productDetails"], "method", false, false, true, 94), "getHtml", [["imgAttributes" => ["alt" => twig_get_attribute($this->env, $this->source, // line 96
(isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 96, $this->source); })()), "getSku", [], "method", false, false, true, 96), "class" => "img-fluid"]]], "method", false, false, true, 94), 94, $this->source);
// line 99
echo "
";
}
// line 101
echo " </a>
</div>
";
}
// line 104
echo " ";
if ((isset($context["imgright"]) || array_key_exists("imgright", $context) ? $context["imgright"] : (function () { throw new RuntimeError('Variable "imgright" does not exist.', 104, $this->source); })())) {
// line 105
echo " <div class=\"col gallery-right-side-image\">
";
// line 106
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["imgright"]) || array_key_exists("imgright", $context) ? $context["imgright"] : (function () { throw new RuntimeError('Variable "imgright" does not exist.', 106, $this->source); })()));
$context['loop'] = [
'parent' => $context['_parent'],
'index0' => 0,
'index' => 1,
'first' => true,
];
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["_key"] => $context["asset"]) {
// line 107
echo " ";
$this->loadTemplate("@CoreShopFrontend/Product/_asset_item.html.twig", "@CoreShopFrontend/Product/detail.html.twig", 107)->display(twig_array_merge($context, ["fancyId" => "gallery"]));
// line 108
echo " ";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['length'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['asset'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 109
echo " </div>
";
}
// line 111
echo "
";
// line 112
if (((isset($context["imgleft"]) || array_key_exists("imgleft", $context) ? $context["imgleft"] : (function () { throw new RuntimeError('Variable "imgleft" does not exist.', 112, $this->source); })()) || (isset($context["imgright"]) || array_key_exists("imgright", $context) ? $context["imgright"] : (function () { throw new RuntimeError('Variable "imgright" does not exist.', 112, $this->source); })()))) {
// line 113
echo " <div class=\"gallery-small-side-image\">
";
// line 114
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["imgleft"]) || array_key_exists("imgleft", $context) ? $context["imgleft"] : (function () { throw new RuntimeError('Variable "imgleft" does not exist.', 114, $this->source); })()));
$context['loop'] = [
'parent' => $context['_parent'],
'index0' => 0,
'index' => 1,
'first' => true,
];
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["_key"] => $context["asset"]) {
// line 115
echo " ";
$this->loadTemplate("@CoreShopFrontend/Product/_asset_item.html.twig", "@CoreShopFrontend/Product/detail.html.twig", 115)->display(twig_array_merge($context, ["fancyId" => "gallery_small"]));
// line 116
echo " ";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['length'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['asset'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 117
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["imgright"]) || array_key_exists("imgright", $context) ? $context["imgright"] : (function () { throw new RuntimeError('Variable "imgright" does not exist.', 117, $this->source); })()));
$context['loop'] = [
'parent' => $context['_parent'],
'index0' => 0,
'index' => 1,
'first' => true,
];
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["_key"] => $context["asset"]) {
// line 118
echo " ";
$this->loadTemplate("@CoreShopFrontend/Product/_asset_item.html.twig", "@CoreShopFrontend/Product/detail.html.twig", 118)->display(twig_array_merge($context, ["fancyId" => "gallery_small"]));
// line 119
echo " ";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['length'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['asset'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 120
echo " </div>
";
}
// line 122
echo " </div>
";
} else {
// line 124
echo " <div class=\"row gallery-row center\">
<div class=\"default-image-container\">
<img
src=\"";
// line 127
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["default_image_path"]) || array_key_exists("default_image_path", $context) ? $context["default_image_path"] : (function () { throw new RuntimeError('Variable "default_image_path" does not exist.', 127, $this->source); })()), "product", [], "any", false, false, true, 127), 127, $this->source), "html", null, true);
echo "\"
alt=\"";
// line 128
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.', 128, $this->source); })()), "getSku", [], "method", false, false, true, 128), 128, $this->source), "html", null, true);
echo "\"
width=\"300\" height=\"430\" loading=\"lazy\"
/>
</div>
</div>
";
}
// line 134
echo " </div>
";
// line 165
echo "
";
// line 166
if ((twig_length_filter($this->env, 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.', 166, $this->source); })()), "videos", [], "any", false, false, true, 166)) > 0)) {
// line 167
echo " <div class=\"container product-media-container gallery-container\">
";
// line 168
$context["isOneVideo"] = (twig_length_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.', 168, $this->source); })()), "videos", [], "any", false, false, true, 168), 168, $this->source)) == 1);
// line 169
echo " <div class=\"swiper video_swiper\">
";
// line 170
$context["videos"] = [...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.', 170, $this->source); })()), "videos", [], "any", false, false, true, 170)];
// line 171
echo " <div class=\"swiper-wrapper\">
";
// line 172
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["videos"]) || array_key_exists("videos", $context) ? $context["videos"] : (function () { throw new RuntimeError('Variable "videos" does not exist.', 172, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["video"]) {
// line 173
echo " ";
if ($this->env->getTest('instanceof')->getCallable()($context["video"], "Pimcore\\Model\\DataObject\\ExternalMedia")) {
// line 174
echo " <div class=\"swiper-slide flex-center-forced\">
";
// line 175
if ((twig_get_attribute($this->env, $this->source, $context["video"], "source", [], "any", false, false, true, 175) == "youtube")) {
// line 176
echo " <a href=\"";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["video"], "content", [], "any", false, false, true, 176), 176, $this->source), "html", null, true);
echo "\" data-fancybox=\"video_gallery\">
";
// line 177
if ($this->env->getTest('instanceof')->getCallable()(twig_get_attribute($this->env, $this->source, $context["video"], "thumbnail", [], "any", false, false, true, 177), "Pimcore\\Model\\Asset\\Image")) {
// line 178
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, $context["video"], "thumbnail", [], "any", false, false, true, 178), "thumbnail", ["seiko_VideoThumbnail"], "method", false, false, true, 178), "getHtml", [["imgAttributes" => ["alt" => twig_get_attribute($this->env, $this->source, // line 180
(isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 180, $this->source); })()), "getSku", [], "method", false, false, true, 180), "class" => "img-fluid"]]], "method", false, false, true, 178), 178, $this->source);
// line 183
echo "
";
}
// line 185
echo " </a>
";
}
// line 187
echo " </div>
";
}
// line 189
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['video'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 190
echo " </div>
<div class=\"swiper-pagination\"></div>
<div class=\"swiper-button-prev\"></div>
<div class=\"swiper-button-next\"></div>
</div>
</div>
";
}
// line 197
echo "
<div class=\"container\">
<div class=\"row product-grid-template\">
<div class=\"row specification-row\">
<span class=\"row-title\">Specifikáció</span>
<div class=\"row data-row\">
";
// line 203
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["specification"]) || array_key_exists("specification", $context) ? $context["specification"] : (function () { throw new RuntimeError('Variable "specification" does not exist.', 203, $this->source); })()));
foreach ($context['_seq'] as $context["parameter"] => $context["options"]) {
// line 204
echo " ";
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.', 204, $this->source); })()), "get", [$context["parameter"]], "method", false, false, true, 204)) {
// line 205
echo " <div class=\"data-row-element\">
<span>";
// line 206
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(("coreshop.details." . $this->sandbox->ensureToStringAllowed($context["parameter"], 206, $this->source))), "html", null, true);
echo "</span>
<span class=\"end-data\">
";
// line 208
if (twig_get_attribute($this->env, $this->source, $context["options"], "format", [], "any", true, true, true, 208)) {
// line 209
echo " ";
echo twig_escape_filter($this->env, $this->extensions['App\Twig\Extension\FormatAttribute']->callFormatter($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["options"], "format", [], "any", false, false, true, 209), 209, $this->source), $this->sandbox->ensureToStringAllowed((isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 209, $this->source); })()), 209, $this->source)), "html", null, true);
echo "
";
} else {
// line 211
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.', 211, $this->source); })()), "get", [$context["parameter"]], "method", false, false, true, 211), 211, $this->source), "html", null, true);
echo "
";
// line 212
if (twig_get_attribute($this->env, $this->source, $context["options"], "append", [], "any", true, true, true, 212)) {
// line 213
echo " ";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["options"], "append", [], "any", false, false, true, 213), 213, $this->source), "html", null, true);
echo "
";
}
// line 215
echo " ";
}
// line 216
echo " </span>
</div>
";
}
// line 219
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['parameter'], $context['options'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 220
echo " </div>
</div>
<div class=\"row price-row\">
<div class=\"row data-row\">
<div class=\"price-row-top-element\">
";
// line 225
$context["logo"] = $this->extensions['App\Twig\Extension\ProductLogoExtension']->productLogo($this->sandbox->ensureToStringAllowed((isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 225, $this->source); })()), 225, $this->source));
// line 226
echo " ";
if ( !(null === (isset($context["logo"]) || array_key_exists("logo", $context) ? $context["logo"] : (function () { throw new RuntimeError('Variable "logo" does not exist.', 226, $this->source); })()))) {
// line 227
echo " <div class=\"price-row-logo\">
<img src=\"";
// line 228
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(("/themes/frontend/images/productlogo-details/" . $this->sandbox->ensureToStringAllowed((isset($context["logo"]) || array_key_exists("logo", $context) ? $context["logo"] : (function () { throw new RuntimeError('Variable "logo" does not exist.', 228, $this->source); })()), 228, $this->source))), "html", null, true);
echo "\"
alt=\"";
// line 229
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.', 229, $this->source); })()), "getCollection", [], "method", false, false, true, 229), 229, $this->source), "html", null, true);
echo "\">
</div>
";
}
// line 232
echo " <div class=\"price-row-text\">
<ul>
<li><span>Ref: ";
// line 234
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.', 234, $this->source); })()), "sku", [], "any", false, false, true, 234), 234, $this->source), "html", null, true);
echo "</span></li>
<li>Elérhetőség: ";
// line 235
echo twig_escape_filter($this->env, ((twig_get_attribute($this->env, $this->source, ($context["availabilityOptions"] ?? null), 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.', 235, $this->source); })()), "getAvailability", [], "method", false, false, true, 235), [], "array", true, true, true, 235)) ? (_twig_default_filter($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, ($context["availabilityOptions"] ?? null), 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.', 235, $this->source); })()), "getAvailability", [], "method", false, false, true, 235), [], "array", false, false, true, 235), 235, $this->source), "-")) : ("-")), "html", null, true);
echo "<br>
";
// line 236
if ((isset($context["availabilityExtra"]) || array_key_exists("availabilityExtra", $context) ? $context["availabilityExtra"] : (function () { throw new RuntimeError('Variable "availabilityExtra" does not exist.', 236, $this->source); })())) {
echo " ";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed((isset($context["availabilityExtra"]) || array_key_exists("availabilityExtra", $context) ? $context["availabilityExtra"] : (function () { throw new RuntimeError('Variable "availabilityExtra" does not exist.', 236, $this->source); })()), 236, $this->source), "html", null, true);
}
// line 237
echo " </li>
</ul>
</div>
</div>
<div class=\"price-row-bottom-element\">
<div class=\"price-row-logo d-flex\">
";
// line 243
if ((isset($context["discounted"]) || array_key_exists("discounted", $context) ? $context["discounted"] : (function () { throw new RuntimeError('Variable "discounted" does not exist.', 243, $this->source); })())) {
// line 244
echo " <p class=\"crossed-price\">";
echo twig_call_macro($macros["currency"], "macro_getRetailPrice", [(isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 244, $this->source); })())], 244, $context, $this->getSourceContext());
echo "</p>
<p class=\"retail-price\">";
// line 245
echo twig_call_macro($macros["currency"], "macro_getDiscountPrice", [(isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 245, $this->source); })())], 245, $context, $this->getSourceContext());
echo "</p>
";
} else {
// line 247
echo " <p class=\"retail-price\">";
echo twig_call_macro($macros["currency"], "macro_getRetailPrice", [(isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 247, $this->source); })())], 247, $context, $this->getSourceContext());
echo "</p>
";
}
// line 249
echo " </div>
<div class=\"row p-0\" id=\"productSpecs\">
";
// line 251
$this->loadTemplate("@CoreShopFrontend/Product/_manage_buttons.html.twig", "@CoreShopFrontend/Product/detail.html.twig", 251)->display(twig_array_merge($context, ["large" => true]));
// line 252
echo " </div>
</div>
</div>
</div>
";
// line 256
$context["instruction"] = 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.', 256, $this->source); })()), "getInstruction", [], "method", false, false, true, 256);
// line 257
echo " ";
if ( !(null === (isset($context["instruction"]) || array_key_exists("instruction", $context) ? $context["instruction"] : (function () { throw new RuntimeError('Variable "instruction" does not exist.', 257, $this->source); })()))) {
// line 258
echo " <div class=\"row support-row\">
<h5 class=\"row-title\">Támogatás</h5>
<div class=\"row data-row\">
<div class=\"data-row-element\">
<a href=\"";
// line 262
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["instruction"]) || array_key_exists("instruction", $context) ? $context["instruction"] : (function () { throw new RuntimeError('Variable "instruction" does not exist.', 262, $this->source); })()), "getFile", [], "method", false, false, true, 262), 262, $this->source), "html", null, true);
echo "\">
<img src=\"";
// line 263
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("themes/frontend/images/document-icon.svg"), "html", null, true);
echo "\"
alt=\"Használati útmutató\"> Használati útmutató</a>
</div>
</div>
</div>
";
}
// line 269
echo " <div class=\"row attributes-row\">
<span class=\"row-title\">Tulajdonságok</span>
<div class=\"row data-row\">
";
// line 272
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["properties"]) || array_key_exists("properties", $context) ? $context["properties"] : (function () { throw new RuntimeError('Variable "properties" does not exist.', 272, $this->source); })()));
foreach ($context['_seq'] as $context["parameter"] => $context["options"]) {
// line 273
echo " ";
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.', 273, $this->source); })()), "get", [$context["parameter"]], "method", false, false, true, 273)) {
// line 274
echo " <div class=\"data-row-element\">
<span>";
// line 275
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(("coreshop.details." . $this->sandbox->ensureToStringAllowed($context["parameter"], 275, $this->source))), "html", null, true);
echo "</span>
<span class=\"end-data\">
";
// line 277
if (twig_get_attribute($this->env, $this->source, $context["options"], "format", [], "any", true, true, true, 277)) {
// line 278
echo " ";
echo twig_escape_filter($this->env, $this->extensions['App\Twig\Extension\FormatAttribute']->callFormatter($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["options"], "format", [], "any", false, false, true, 278), 278, $this->source), $this->sandbox->ensureToStringAllowed((isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 278, $this->source); })()), 278, $this->source)), "html", null, true);
echo "
";
} else {
// line 280
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.', 280, $this->source); })()), "get", [$context["parameter"]], "method", false, false, true, 280), 280, $this->source), "html", null, true);
echo "
";
// line 281
if (twig_get_attribute($this->env, $this->source, $context["options"], "append", [], "any", true, true, true, 281)) {
// line 282
echo " ";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["options"], "append", [], "any", false, false, true, 282), 282, $this->source), "html", null, true);
echo "
";
}
// line 284
echo " ";
}
// line 285
echo " </span>
</div>
";
}
// line 288
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['parameter'], $context['options'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 289
echo " </div>
</div>
</div>
</div>
<div class=\"modal fade\" id=\"interestModal\" data-backdrop=\"static\" data-keyboard=\"false\" tabindex=\"-1\"
aria-labelledby=\"staticBackdropLabel\" aria-hidden=\"true\">
<div class=\"modal-dialog modal-dialog-centered modal-lg\">
<div class=\"modal-content\">
<div class=\"modal-header\">
<h5 class=\"modal-title\" id=\"staticBackdropLabel\">Érdeklődés</h5>
<button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\">
<span aria-hidden=\"true\">×</span>
</button>
</div>
<div class=\"modal-body\">
...
</div>
</div>
</div>
</div>
";
// line 311
if (array_key_exists("similarWatches", $context)) {
// line 312
echo " <div class=\"container similar-products\">
<div class=\"row\">
<div class=\"col-12 text-center\">
<h3>HASONLÓ MODELLEK</h3>
</div>
</div>
<div class=\"row\">
";
// line 319
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["similarWatches"]) || array_key_exists("similarWatches", $context) ? $context["similarWatches"] : (function () { throw new RuntimeError('Variable "similarWatches" does not exist.', 319, $this->source); })()));
$context['loop'] = [
'parent' => $context['_parent'],
'index0' => 0,
'index' => 1,
'first' => true,
];
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["_key"] => $context["similarWatch"]) {
// line 320
echo " ";
echo twig_include($this->env, $context, "@CoreShopFrontend/Product/_product_item.html.twig", ["product" => twig_get_attribute($this->env, $this->source, // line 321
$context["similarWatch"], "product", [], "array", false, false, true, 321), "isWishListed" => twig_get_attribute($this->env, $this->source, // line 322
$context["similarWatch"], "isWishListed", [], "array", false, false, true, 322)]);
// line 323
echo "
";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['length'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['similarWatch'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 325
echo " </div>
</div>
";
}
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 330
public function block_scripts($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", "scripts"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "scripts"));
// line 331
echo " ";
$this->displayParentBlock("scripts", $context, $blocks);
echo "
";
// line 332
twig_get_attribute($this->env, $this->source, $this->env->getFunction('pimcore_head_script')->getCallable()(), "appendFile", ["https://cdn.jsdelivr.net/npm/swiper@9/swiper-bundle.min.js"], "method", false, false, true, 332);
// line 333
echo " ";
twig_get_attribute($this->env, $this->source, $this->env->getFunction('pimcore_head_script')->getCallable()(), "appendFile", [$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("themes/frontend/vendors/bootstrap/js/bootstrap.min.js")], "method", false, false, true, 333);
// line 334
echo " ";
twig_get_attribute($this->env, $this->source, $this->env->getFunction('pimcore_head_script')->getCallable()(), "appendFile", ["https://cdn.jsdelivr.net/npm/@fancyapps/ui@4.0/dist/fancybox.umd.js"], "method", false, false, true, 334);
// line 335
echo " ";
twig_get_attribute($this->env, $this->source, $this->env->getFunction('pimcore_head_script')->getCallable()(), "appendFile", [$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("themes/frontend/vendors/lightbox/js/lightbox.js")], "method", false, false, true, 335);
// line 336
echo " ";
twig_get_attribute($this->env, $this->source, $this->env->getFunction('pimcore_head_script')->getCallable()(), "appendFile", [$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/js/watches_details.js")], "method", false, false, true, 336);
// line 337
echo " ";
twig_get_attribute($this->env, $this->source, $this->env->getFunction('pimcore_head_script')->getCallable()(), "appendFile", [$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/js/wishlist_manager.js")], "method", false, false, true, 337);
// line 338
echo " <script>
lightbox.option({
'resizeDuration': 200,
'alwaysShowNavOnTouchDevices': true,
'wrapAround': true,
'disableScrolling': true,
'fitImagesInViewport': true,
'albumLabel': \"%1 / %2\"
});
const sku = '";
// line 348
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.', 348, $this->source); })()), "sku", [], "any", false, false, true, 348), 348, $this->source), "html", null, true);
echo "';
</script>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 352
public function block_head_stylesheets($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", "head_stylesheets"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "head_stylesheets"));
// line 353
echo " ";
$this->displayParentBlock("head_stylesheets", $context, $blocks);
echo "
";
// line 354
twig_get_attribute($this->env, $this->source, $this->env->getFunction('pimcore_head_link')->getCallable()(), "appendStylesheet", ["https://cdn.jsdelivr.net/npm/swiper@9/swiper-bundle.min.css"], "method", false, false, true, 354);
// line 355
echo " ";
twig_get_attribute($this->env, $this->source, $this->env->getFunction('pimcore_head_link')->getCallable()(), "appendStylesheet", [$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("themes/frontend/vendors/lightbox/css/lightbox.css")], "method", false, false, true, 355);
// line 356
echo " ";
twig_get_attribute($this->env, $this->source, $this->env->getFunction('pimcore_head_link')->getCallable()(), "appendStylesheet", ["https://cdn.jsdelivr.net/npm/@fancyapps/ui@4.0/dist/fancybox.css"], "method", false, false, true, 356);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "@CoreShopFrontend/Product/detail.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 941 => 356, 938 => 355, 936 => 354, 931 => 353, 921 => 352, 908 => 348, 896 => 338, 893 => 337, 890 => 336, 887 => 335, 884 => 334, 881 => 333, 879 => 332, 874 => 331, 864 => 330, 851 => 325, 836 => 323, 834 => 322, 833 => 321, 831 => 320, 814 => 319, 805 => 312, 803 => 311, 779 => 289, 773 => 288, 768 => 285, 765 => 284, 759 => 282, 757 => 281, 752 => 280, 746 => 278, 744 => 277, 739 => 275, 736 => 274, 733 => 273, 729 => 272, 724 => 269, 715 => 263, 711 => 262, 705 => 258, 702 => 257, 700 => 256, 694 => 252, 692 => 251, 688 => 249, 682 => 247, 677 => 245, 672 => 244, 670 => 243, 662 => 237, 657 => 236, 653 => 235, 649 => 234, 645 => 232, 639 => 229, 635 => 228, 632 => 227, 629 => 226, 627 => 225, 620 => 220, 614 => 219, 609 => 216, 606 => 215, 600 => 213, 598 => 212, 593 => 211, 587 => 209, 585 => 208, 580 => 206, 577 => 205, 574 => 204, 570 => 203, 562 => 197, 553 => 190, 547 => 189, 543 => 187, 539 => 185, 535 => 183, 533 => 180, 531 => 178, 529 => 177, 524 => 176, 522 => 175, 519 => 174, 516 => 173, 512 => 172, 509 => 171, 507 => 170, 504 => 169, 502 => 168, 499 => 167, 497 => 166, 494 => 165, 490 => 134, 481 => 128, 477 => 127, 472 => 124, 468 => 122, 464 => 120, 450 => 119, 447 => 118, 429 => 117, 415 => 116, 412 => 115, 395 => 114, 392 => 113, 390 => 112, 387 => 111, 383 => 109, 369 => 108, 366 => 107, 349 => 106, 346 => 105, 343 => 104, 338 => 101, 334 => 99, 332 => 96, 330 => 94, 328 => 93, 324 => 92, 321 => 91, 319 => 90, 316 => 89, 312 => 87, 298 => 86, 295 => 85, 278 => 84, 275 => 83, 273 => 82, 270 => 81, 264 => 80, 261 => 79, 258 => 78, 255 => 77, 252 => 76, 249 => 75, 246 => 74, 243 => 73, 240 => 72, 235 => 71, 232 => 70, 229 => 69, 226 => 68, 224 => 67, 221 => 66, 219 => 65, 211 => 60, 206 => 57, 204 => 56, 200 => 54, 194 => 52, 189 => 50, 184 => 49, 182 => 48, 170 => 42, 167 => 41, 162 => 38, 158 => 36, 155 => 35, 149 => 33, 147 => 32, 143 => 31, 140 => 30, 133 => 26, 130 => 25, 128 => 24, 125 => 23, 119 => 21, 111 => 19, 109 => 18, 106 => 17, 101 => 15, 96 => 14, 93 => 13, 91 => 12, 86 => 9, 83 => 8, 80 => 7, 77 => 6, 67 => 5, 56 => 1, 54 => 3, 52 => 2, 39 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends '@CoreShopFrontend/layout.html.twig' %}
{% import '@CoreShopFrontend/Common/Macro/product_price.html.twig' as product_price %}
{% import '@CoreShopFrontend/Common/Macro/currency.html.twig' as currency %}
{% block content %}
{% set cart_allowed = is_granted('CORESHOP_CART_ADD_ITEM') %}
{% set wishlist_allowed = is_granted('CORESHOP_WISHLIST_ADD_ITEM') %}
{% set discounted = product|coreshop_product_discount_price(coreshop.context) %}
<div class=\"container\" id=\"productPageHeader\">
<div class=\"row product-page-row\">
<div class=\"col-12 col-md-8\">
{% set logo = productLogo(product) %}
{% if logo is not null %}
<img src=\"{{ asset('/themes/frontend/images/productlogo-details/' ~ logo) }}\"
alt=\"{{ product.getCollection() }}\">
{% endif %}
<h2>
{% if product.getBrand() | lower == 'grand seiko' %}
{{ product.getCollection() }} {{ product.getSubCollection() }}
{% else %}
{{ product.getSubCollection() }}
{% endif %}
</h2>
{% if product.uniqueName %}
<ul class=\"prod_unique_name\">
<li>{{ product.uniqueName }}</li>
</ul>
{% endif %}
<ul class=\"prodIds\">
<li class=\"first\"><span>Referenciaszám:</span> {{ product.sku }}</li>
{% if product.getCaliberNumber() %}
<li><span>Szerkezet:</span> {{ product.getCalibernumber().getName() }}</li>
{% endif %}
{% if product.businessClass == \"Seiko Boutique\" %}
<li class=\"color-golden\"> Boutique Exkluzív</li>
{% endif %}
</ul>
<ul class=\"prodIds\">
<li class=\"first\">
<span>Elérhetőség:</span> {{ availabilityOptions[product.getAvailability()] | default('-') }}{% if availabilityExtra %}
<span>{{ availabilityExtra }}</span>{% endif %}</li>
</ul>
<h3><span></span></h3>
</div>
<div class=\"col-12 col-md-4 text-right\">
<div class=\"price-row-logo d-flex justify-content-end upper-row\">
{% if discounted %}
<p class=\"crossed-price\">{{ currency.getRetailPrice(product) }}</p>
<p class=\"retail-price\">{{ currency.getDiscountPrice(product) }}</p>
{% else %}
<p class=\"retail-price\">{{ currency.getRetailPrice(product) }}</p>
{% endif %}
</div>
<div class=\"row p-0 rowmobview\">
{% include '@CoreShopFrontend/Product/_manage_buttons.html.twig' with {large: false} %}
</div>
</div>
<div class=\"col-12\" id=\"product-page-text\">
<p>{{ product.shortDescription() }}</p>
</div>
</div>
</div>
<div class=\"container gallery-container\">
{% if product.getImages()|length > 0 %}
<div class=\"row gallery-row\">
{% set imgmain = null %}
{% set imgleft = [] %}
{% set imgright = [] %}
{% set i = 0 %}
{% for image in product.getImages() %}
{% if i == 0 %}
{% set imgmain = image %}
{% elseif i % 2 == 0 %}
{% set imgleft = imgleft|merge([image]) %}
{% else %}
{% set imgright = imgright|merge([image]) %}
{% endif %}
{% set i = i + 1 %}
{% endfor %}
{% if imgleft %}
<div class=\"col gallery-left-side-image\">
{% for asset in imgleft %}
{% include '@CoreShopFrontend/Product/_asset_item.html.twig' with {fancyId: \"gallery\"} %}
{% endfor %}
</div>
{% endif %}
{% if imgmain %}
{# d-block d-sm-none ??? #}
<div class=\"col gallery-main-image\">
<a href=\"{{ imgmain.fullPath }}\" data-fancybox=\"gallery_small\">
{% if imgmain is instanceof('Pimcore\\\\Model\\\\Asset\\\\Image') %}
{{ imgmain.thumbnail('seiko_productDetails').getHtml({
'imgAttributes': {
'alt': product.getSku(),
'class': 'img-fluid'
}
}) | raw }}
{% endif %}
</a>
</div>
{% endif %}
{% if imgright %}
<div class=\"col gallery-right-side-image\">
{% for asset in imgright %}
{% include '@CoreShopFrontend/Product/_asset_item.html.twig' with {fancyId: \"gallery\"} %}
{% endfor %}
</div>
{% endif %}
{% if imgleft or imgright %}
<div class=\"gallery-small-side-image\">
{% for asset in imgleft %}
{% include '@CoreShopFrontend/Product/_asset_item.html.twig' with {fancyId: \"gallery_small\"} %}
{% endfor %}
{% for asset in imgright %}
{% include '@CoreShopFrontend/Product/_asset_item.html.twig' with {fancyId: \"gallery_small\"} %}
{% endfor %}
</div>
{% endif %}
</div>
{% else %}
<div class=\"row gallery-row center\">
<div class=\"default-image-container\">
<img
src=\"{{ default_image_path.product }}\"
alt=\"{{ product.getSku() }}\"
width=\"300\" height=\"430\" loading=\"lazy\"
/>
</div>
</div>
{% endif %}
</div>
{#
<div class=\"container product-media-container\">
{% for video in product.videos %}
<div class=\"product-media-row\">
{% if video.source == \"youtube\" %}
{% set parts = video.content|split('/') %}
{% set videoId = parts|last %}
<div class=\"youtube-start-trigger responsive-image-container clickable\">
{{ video.thumbnail.getThumbnail(\"seiko_VideoThumbnail\").getHtml()|raw }}
</div>
<div class=\"video-container hidden-file\">
<iframe
src=\"https://www.youtube.com/embed/{{ videoId }}\"
allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\"
referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen>
</iframe>
</div>
{% else %}
<div class=\"responsive-image-container clickable\">
<a href=\"{{ video.content }}\" target=\"_blank\">
{{ video.thumbnail.getThumbnail(\"seiko_VideoThumbnail\").getHtml()|raw }}
</a>
</div>
{% endif %}
</div>
{% endfor %}
</div>
#}
{% if product.videos|length > 0 %}
<div class=\"container product-media-container gallery-container\">
{% set isOneVideo = product.videos|length == 1 %}
<div class=\"swiper video_swiper\">
{% set videos = [...product.videos ] %}
<div class=\"swiper-wrapper\">
{% for video in videos %}
{% if video is instanceof('Pimcore\\\\Model\\\\DataObject\\\\ExternalMedia') %}
<div class=\"swiper-slide flex-center-forced\">
{% if video.source == \"youtube\" %}
<a href=\"{{ video.content }}\" data-fancybox=\"video_gallery\">
{% if video.thumbnail is instanceof('Pimcore\\\\Model\\\\Asset\\\\Image') %}
{{ video.thumbnail.thumbnail('seiko_VideoThumbnail').getHtml({
'imgAttributes': {
'alt': product.getSku(),
'class': 'img-fluid',
}
}) | raw }}
{% endif %}
</a>
{% endif %}
</div>
{% endif %}
{% endfor %}
</div>
<div class=\"swiper-pagination\"></div>
<div class=\"swiper-button-prev\"></div>
<div class=\"swiper-button-next\"></div>
</div>
</div>
{% endif %}
<div class=\"container\">
<div class=\"row product-grid-template\">
<div class=\"row specification-row\">
<span class=\"row-title\">Specifikáció</span>
<div class=\"row data-row\">
{% for parameter, options in specification %}
{% if (product.get(parameter)) %}
<div class=\"data-row-element\">
<span>{{ ('coreshop.details.'~parameter) | trans }}</span>
<span class=\"end-data\">
{% if options.format is defined %}
{{ formatAttribute(options.format,product) }}
{% else %}
{{ product.get(parameter) }}
{% if options.append is defined %}
{{ options.append }}
{% endif %}
{% endif %}
</span>
</div>
{% endif %}
{% endfor %}
</div>
</div>
<div class=\"row price-row\">
<div class=\"row data-row\">
<div class=\"price-row-top-element\">
{% set logo = productLogo(product) %}
{% if logo is not null %}
<div class=\"price-row-logo\">
<img src=\"{{ asset('/themes/frontend/images/productlogo-details/' ~ logo) }}\"
alt=\"{{ product.getCollection() }}\">
</div>
{% endif %}
<div class=\"price-row-text\">
<ul>
<li><span>Ref: {{ product.sku }}</span></li>
<li>Elérhetőség: {{ availabilityOptions[product.getAvailability()] | default('-') }}<br>
{% if availabilityExtra %} {{ availabilityExtra }}{% endif %}
</li>
</ul>
</div>
</div>
<div class=\"price-row-bottom-element\">
<div class=\"price-row-logo d-flex\">
{% if discounted %}
<p class=\"crossed-price\">{{ currency.getRetailPrice(product) }}</p>
<p class=\"retail-price\">{{ currency.getDiscountPrice(product) }}</p>
{% else %}
<p class=\"retail-price\">{{ currency.getRetailPrice(product) }}</p>
{% endif %}
</div>
<div class=\"row p-0\" id=\"productSpecs\">
{% include '@CoreShopFrontend/Product/_manage_buttons.html.twig' with {large: true} %}
</div>
</div>
</div>
</div>
{% set instruction = product.getInstruction() %}
{% if instruction is not null %}
<div class=\"row support-row\">
<h5 class=\"row-title\">Támogatás</h5>
<div class=\"row data-row\">
<div class=\"data-row-element\">
<a href=\"{{ instruction.getFile() }}\">
<img src=\"{{ asset('themes/frontend/images/document-icon.svg') }}\"
alt=\"Használati útmutató\"> Használati útmutató</a>
</div>
</div>
</div>
{% endif %}
<div class=\"row attributes-row\">
<span class=\"row-title\">Tulajdonságok</span>
<div class=\"row data-row\">
{% for parameter, options in properties %}
{% if (product.get(parameter)) %}
<div class=\"data-row-element\">
<span>{{ ('coreshop.details.'~parameter) | trans }}</span>
<span class=\"end-data\">
{% if options.format is defined %}
{{ formatAttribute(options.format,product) }}
{% else %}
{{ product.get(parameter) }}
{% if options.append is defined %}
{{ options.append }}
{% endif %}
{% endif %}
</span>
</div>
{% endif %}
{% endfor %}
</div>
</div>
</div>
</div>
<div class=\"modal fade\" id=\"interestModal\" data-backdrop=\"static\" data-keyboard=\"false\" tabindex=\"-1\"
aria-labelledby=\"staticBackdropLabel\" aria-hidden=\"true\">
<div class=\"modal-dialog modal-dialog-centered modal-lg\">
<div class=\"modal-content\">
<div class=\"modal-header\">
<h5 class=\"modal-title\" id=\"staticBackdropLabel\">Érdeklődés</h5>
<button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\">
<span aria-hidden=\"true\">×</span>
</button>
</div>
<div class=\"modal-body\">
...
</div>
</div>
</div>
</div>
{% if similarWatches is defined %}
<div class=\"container similar-products\">
<div class=\"row\">
<div class=\"col-12 text-center\">
<h3>HASONLÓ MODELLEK</h3>
</div>
</div>
<div class=\"row\">
{% for similarWatch in similarWatches %}
{{ include('@CoreShopFrontend/Product/_product_item.html.twig', {
product: similarWatch['product'],
isWishListed: similarWatch['isWishListed'],
}) }}
{% endfor %}
</div>
</div>
{% endif %}
{% endblock %}
{% block scripts %}
{{ parent() }}
{% do pimcore_head_script().appendFile('https://cdn.jsdelivr.net/npm/swiper@9/swiper-bundle.min.js') %}
{% do pimcore_head_script().appendFile(asset('themes/frontend/vendors/bootstrap/js/bootstrap.min.js')) %}
{% do pimcore_head_script().appendFile('https://cdn.jsdelivr.net/npm/@fancyapps/ui@4.0/dist/fancybox.umd.js') %}
{% do pimcore_head_script().appendFile(asset('themes/frontend/vendors/lightbox/js/lightbox.js')) %}
{% do pimcore_head_script().appendFile(asset('/js/watches_details.js')) %}
{% do pimcore_head_script().appendFile(asset('/js/wishlist_manager.js')) %}
<script>
lightbox.option({
'resizeDuration': 200,
'alwaysShowNavOnTouchDevices': true,
'wrapAround': true,
'disableScrolling': true,
'fitImagesInViewport': true,
'albumLabel': \"%1 / %2\"
});
const sku = '{{ product.sku }}';
</script>
{% endblock %}
{% block head_stylesheets %}
{{ parent() }}
{% do pimcore_head_link().appendStylesheet('https://cdn.jsdelivr.net/npm/swiper@9/swiper-bundle.min.css') %}
{% do pimcore_head_link().appendStylesheet(asset('themes/frontend/vendors/lightbox/css/lightbox.css')) %}
{% do pimcore_head_link().appendStylesheet('https://cdn.jsdelivr.net/npm/@fancyapps/ui@4.0/dist/fancybox.css') %}
{% endblock %}
", "@CoreShopFrontend/Product/detail.html.twig", "/home/zoltan/public_html/boutique-v2/templates/seikoboutique/templates/bundles/CoreShopFrontendBundle/Product/detail.html.twig");
}
public function checkSecurity()
{
static $tags = array("import" => 2, "set" => 6, "if" => 13, "include" => 56, "for" => 71, "do" => 332);
static $filters = array("coreshop_product_discount_price" => 8, "escape" => 14, "lower" => 18, "default" => 41, "length" => 65, "merge" => 75, "raw" => 99, "trans" => 206);
static $functions = array("is_granted" => 6, "productLogo" => 12, "asset" => 14, "formatAttribute" => 209, "include" => 320, "pimcore_head_script" => 332, "pimcore_head_link" => 354);
try {
$this->sandbox->checkSecurity(
['import', 'set', 'if', 'include', 'for', 'do'],
['coreshop_product_discount_price', 'escape', 'lower', 'default', 'length', 'merge', 'raw', 'trans'],
['is_granted', 'productLogo', 'asset', 'formatAttribute', 'include', 'pimcore_head_script', 'pimcore_head_link']
);
} 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;
}
}
}