<?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;
/* main/default/urun_gruplari.html.twig */
class __TwigTemplate_7774e6fbcc07e28e9cd69bb6b46dcb37 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'title' => [$this, 'block_title'],
'description' => [$this, 'block_description'],
'content' => [$this, 'block_content'],
'body_js' => [$this, 'block_body_js'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "main_base.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", "main/default/urun_gruplari.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "main/default/urun_gruplari.html.twig"));
$this->parent = $this->loadTemplate("main_base.html.twig", "main/default/urun_gruplari.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 2
public function block_title($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", "title"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
// line 3
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.', 3, $this->source); })()), "request", [], "any", false, false, false, 3), "get", [0 => "link"], "method", false, false, false, 3) == "") && (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.', 3, $this->source); })()), "request", [], "any", false, false, false, 3), "get", [0 => "link2"], "method", false, false, false, 3) == ""))) {
// line 4
echo " ";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("anasayfa.urungruplarikucuk"), "html", null, true);
echo "
";
} elseif ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, // line 5
(isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 5, $this->source); })()), "request", [], "any", false, false, false, 5), "get", [0 => "link2"], "method", false, false, false, 5) != "")) {
// line 6
echo " ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["urunGruplariDil"]) || array_key_exists("urunGruplariDil", $context) ? $context["urunGruplariDil"] : (function () { throw new RuntimeError('Variable "urunGruplariDil" does not exist.', 6, $this->source); })()), "baslik", [], "any", false, false, false, 6), "html", null, true);
echo "
";
} elseif ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, // line 7
(isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 7, $this->source); })()), "request", [], "any", false, false, false, 7), "get", [0 => "link"], "method", false, false, false, 7) != "")) {
// line 8
echo " ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["urunKategorileriDil"]) || array_key_exists("urunKategorileriDil", $context) ? $context["urunKategorileriDil"] : (function () { throw new RuntimeError('Variable "urunKategorileriDil" does not exist.', 8, $this->source); })()), "baslik", [], "any", false, false, false, 8), "html", null, true);
echo "
";
}
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 11
public function block_description($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", "description"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "description"));
// line 12
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.', 12, $this->source); })()), "request", [], "any", false, false, false, 12), "get", [0 => "link"], "method", false, false, false, 12) == "") && (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.', 12, $this->source); })()), "request", [], "any", false, false, false, 12), "get", [0 => "link2"], "method", false, false, false, 12) == ""))) {
// line 13
echo " ";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("anasayfa.urungruplarikucuk"), "html", null, true);
echo "
";
} elseif ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, // line 14
(isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 14, $this->source); })()), "request", [], "any", false, false, false, 14), "get", [0 => "link2"], "method", false, false, false, 14) != "")) {
// line 15
echo " ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["urunGruplariDil"]) || array_key_exists("urunGruplariDil", $context) ? $context["urunGruplariDil"] : (function () { throw new RuntimeError('Variable "urunGruplariDil" does not exist.', 15, $this->source); })()), "baslik", [], "any", false, false, false, 15), "html", null, true);
echo "
";
} elseif ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, // line 16
(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, false, 16), "get", [0 => "link"], "method", false, false, false, 16) != "")) {
// line 17
echo " ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["urunKategorileriDil"]) || array_key_exists("urunKategorileriDil", $context) ? $context["urunKategorileriDil"] : (function () { throw new RuntimeError('Variable "urunKategorileriDil" does not exist.', 17, $this->source); })()), "baslik", [], "any", false, false, false, 17), "html", null, true);
echo "
";
}
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 20
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 21
echo " <style>
.navbar__section-links__wrapper :not(.PRODUCTS) {
opacity: 0.4 !important;
}
.navbar__section-logo__wrapper-img {
filter: brightness(0) invert(1) !important;
}
.navbar__section::before {
content: \"\";
position: absolute;
top: 0;
right: 0;
left: 0;
bottom: 0;
background: rgba(0, 0, 0, 0.4);
z-index: -1;
}
.navbar__section::after {
content: \"\";
background-image: url(\"../../../public/assets/main/images/navbar/navbar-bg-products.jpg\");
background-position: center;
background-size: cover;
position: absolute;
top: 0;
right: 0;
left: 0;
bottom: 0;
z-index: -2;
}
</style>
<style>
";
// line 62
echo " ";
// line 63
echo " ";
// line 64
echo " ";
// line 65
echo " ";
// line 66
echo " ";
// line 67
echo " ";
// line 68
echo " ";
// line 69
echo " ";
// line 70
echo " ";
// line 71
echo " ";
// line 72
echo " ";
// line 73
echo " ";
// line 74
echo "
";
// line 76
echo " ";
// line 77
echo " ";
// line 78
echo " ";
// line 79
echo " ";
// line 80
echo " ";
// line 81
echo " ";
// line 82
echo " ";
// line 83
echo " ";
// line 84
echo " ";
// line 85
echo " ";
// line 86
echo " ";
// line 87
echo " ";
// line 88
echo " ";
// line 89
echo "
";
// line 91
echo " ";
// line 92
echo " ";
// line 93
echo " ";
// line 94
echo " ";
// line 95
echo " ";
// line 96
echo " ";
// line 97
echo " ";
// line 98
echo " ";
// line 99
echo " ";
// line 100
echo " ";
// line 101
echo " ";
// line 102
echo " ";
// line 103
echo " ";
// line 104
echo " ";
// line 105
echo " ";
// line 106
echo " ";
// line 107
echo " ";
// line 108
echo " ";
// line 109
echo " ";
// line 110
echo " ";
// line 111
echo " ";
// line 112
echo " ";
// line 113
echo " ";
// line 114
echo " ";
// line 115
echo " ";
// line 116
echo " ";
// line 117
echo " ";
// line 118
echo " ";
// line 119
echo " ";
// line 120
echo " ";
// line 121
echo " ";
// line 122
echo " ";
// line 123
echo " ";
// line 124
echo " ";
// line 125
echo " ";
// line 126
echo " ";
// line 127
echo " ";
// line 128
echo " ";
// line 129
echo " ";
// line 130
echo " ";
// line 131
echo " ";
// line 132
echo " ";
// line 133
echo " ";
// line 134
echo " ";
// line 135
echo " ";
// line 136
echo " ";
// line 137
echo " ";
// line 138
echo " ";
// line 139
echo " ";
// line 140
echo " ";
// line 141
echo " ";
// line 142
echo " ";
// line 143
echo " ";
// line 144
echo " ";
// line 145
echo " ";
// line 146
echo " ";
// line 147
echo " ";
// line 148
echo "
";
// line 150
echo " ";
// line 151
echo " ";
// line 152
echo " ";
// line 153
echo " ";
// line 154
echo " ";
// line 155
echo " ";
// line 156
echo " ";
// line 157
echo " ";
// line 158
echo " ";
// line 159
echo " ";
// line 160
echo " ";
// line 161
echo " ";
// line 162
echo " ";
// line 163
echo " ";
// line 164
echo " ";
// line 165
echo " ";
// line 166
echo " ";
// line 167
echo " ";
// line 168
echo " ";
// line 169
echo " ";
// line 170
echo " ";
// line 171
echo " ";
echo "</style>
<div id=\"products\">
";
// line 173
$this->loadTemplate("main/default/loader.html.twig", "main/default/urun_gruplari.html.twig", 173)->display($context);
// line 174
echo " ";
$this->loadTemplate("main/default/cookie.html.twig", "main/default/urun_gruplari.html.twig", 174)->display($context);
// line 175
echo " <div class=\"main-container\">
<div class=\"products__section\">
<div class=\"products__section-active__page\">
<p><a href=\"https://technoone.net/elefante/\">Elefante </a> / <a class=\"active\"
href=\"https://technoone.net/elefante/products\">Products</a>
</p>
</div>
<div class=\"products__section-description\">
";
// line 186
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["sayfa"]) || array_key_exists("sayfa", $context) ? $context["sayfa"] : (function () { throw new RuntimeError('Variable "sayfa" does not exist.', 186, $this->source); })()), 0, [], "array", false, false, false, 186), "sayfabaslikDilleri", [], "any", false, false, false, 186));
foreach ($context['_seq'] as $context["_key"] => $context["urunsayfasi"]) {
// line 187
echo "
<h2>";
// line 188
echo twig_get_attribute($this->env, $this->source, $context["urunsayfasi"], "baslik", [], "any", false, false, false, 188);
echo "</h2>
<p>";
// line 189
echo twig_get_attribute($this->env, $this->source, $context["urunsayfasi"], "title", [], "any", false, false, false, 189);
echo "</p>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['urunsayfasi'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 192
echo " </div>
<div class=\"products__section-navbar__products\">
<div class=\"products__section-navbar__products-navbar\">
<ul class=\"controls\">
<button class=\"filter-1 active All\" onclick=\"kategoryClicked(this)\" data-filter=\"all\">ALL
</button>
";
// line 200
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_sort_filter($this->env, twig_array_filter($this->env, (isset($context["urunkategorileri"]) || array_key_exists("urunkategorileri", $context) ? $context["urunkategorileri"] : (function () { throw new RuntimeError('Variable "urunkategorileri" does not exist.', 200, $this->source); })()), function ($__r__) use ($context, $macros) { $context["r"] = $__r__; return (twig_get_attribute($this->env, $this->source, (isset($context["r"]) || array_key_exists("r", $context) ? $context["r"] : (function () { throw new RuntimeError('Variable "r" does not exist.', 200, $this->source); })()), "del", [], "any", false, false, false, 200) == 0); }), function ($__a__, $__b__) use ($context, $macros) { $context["a"] = $__a__; $context["b"] = $__b__; return (twig_get_attribute($this->env, $this->source, (isset($context["a"]) || array_key_exists("a", $context) ? $context["a"] : (function () { throw new RuntimeError('Variable "a" does not exist.', 200, $this->source); })()), "sira", [], "any", false, false, false, 200) > twig_get_attribute($this->env, $this->source, (isset($context["b"]) || array_key_exists("b", $context) ? $context["b"] : (function () { throw new RuntimeError('Variable "b" does not exist.', 200, $this->source); })()), "sira", [], "any", false, false, false, 200)); }));
foreach ($context['_seq'] as $context["_key"] => $context["kategori"]) {
// line 201
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, $context["kategori"], "diller", [], "any", false, false, false, 201));
foreach ($context['_seq'] as $context["_key"] => $context["kategoriler"]) {
// line 202
echo " <button class=\"filter-1\" onclick=\"kategoryClicked(this)\"
data-filter=\".";
// line 203
echo twig_escape_filter($this->env, twig_replace_filter(twig_upper_filter($this->env, twig_get_attribute($this->env, $this->source, $context["kategoriler"], "baslik", [], "any", false, false, false, 203)), ["½" => "-", "/" => "-", "%" => "-", "&" => "-", " " => "-", "/W+/" => "-"]), "html", null, true);
echo "\">
";
// line 204
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["kategoriler"], "baslik", [], "any", false, false, false, 204), "html", null, true);
echo "
</button>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['kategoriler'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 207
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['kategori'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 208
echo " </ul>
</div>
<div class=\"products__section-navbar__products-products container\" id=\"MixItUp1\">
";
// line 211
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_sort_filter($this->env, twig_array_filter($this->env, (isset($context["urunkategorileri"]) || array_key_exists("urunkategorileri", $context) ? $context["urunkategorileri"] : (function () { throw new RuntimeError('Variable "urunkategorileri" does not exist.', 211, $this->source); })()), function ($__r__) use ($context, $macros) { $context["r"] = $__r__; return (twig_get_attribute($this->env, $this->source, (isset($context["r"]) || array_key_exists("r", $context) ? $context["r"] : (function () { throw new RuntimeError('Variable "r" does not exist.', 211, $this->source); })()), "del", [], "any", false, false, false, 211) == 0); }), function ($__a__, $__b__) use ($context, $macros) { $context["a"] = $__a__; $context["b"] = $__b__; return (twig_get_attribute($this->env, $this->source, (isset($context["a"]) || array_key_exists("a", $context) ? $context["a"] : (function () { throw new RuntimeError('Variable "a" does not exist.', 211, $this->source); })()), "sira", [], "any", false, false, false, 211) > twig_get_attribute($this->env, $this->source, (isset($context["b"]) || array_key_exists("b", $context) ? $context["b"] : (function () { throw new RuntimeError('Variable "b" does not exist.', 211, $this->source); })()), "sira", [], "any", false, false, false, 211)); }));
foreach ($context['_seq'] as $context["_key"] => $context["kategori"]) {
// line 212
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_sort_filter($this->env, twig_array_filter($this->env, twig_get_attribute($this->env, $this->source, $context["kategori"], "diller", [], "any", false, false, false, 212), function ($__r__) use ($context, $macros) { $context["r"] = $__r__; return (twig_get_attribute($this->env, $this->source, (isset($context["r"]) || array_key_exists("r", $context) ? $context["r"] : (function () { throw new RuntimeError('Variable "r" does not exist.', 212, $this->source); })()), "del", [], "any", false, false, false, 212) == 0); }), function ($__a__, $__b__) use ($context, $macros) { $context["a"] = $__a__; $context["b"] = $__b__; return (twig_get_attribute($this->env, $this->source, (isset($context["a"]) || array_key_exists("a", $context) ? $context["a"] : (function () { throw new RuntimeError('Variable "a" does not exist.', 212, $this->source); })()), "sira", [], "any", false, false, false, 212) > twig_get_attribute($this->env, $this->source, (isset($context["b"]) || array_key_exists("b", $context) ? $context["b"] : (function () { throw new RuntimeError('Variable "b" does not exist.', 212, $this->source); })()), "sira", [], "any", false, false, false, 212)); }));
foreach ($context['_seq'] as $context["_key"] => $context["kategoriDil"]) {
// line 213
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_sort_filter($this->env, twig_array_filter($this->env, twig_get_attribute($this->env, $this->source, $context["kategori"], "gruplar", [], "any", false, false, false, 213), function ($__r__) use ($context, $macros) { $context["r"] = $__r__; return (twig_get_attribute($this->env, $this->source, (isset($context["r"]) || array_key_exists("r", $context) ? $context["r"] : (function () { throw new RuntimeError('Variable "r" does not exist.', 213, $this->source); })()), "del", [], "any", false, false, false, 213) == 0); }), function ($__a__, $__b__) use ($context, $macros) { $context["a"] = $__a__; $context["b"] = $__b__; return (twig_get_attribute($this->env, $this->source, (isset($context["a"]) || array_key_exists("a", $context) ? $context["a"] : (function () { throw new RuntimeError('Variable "a" does not exist.', 213, $this->source); })()), "sira", [], "any", false, false, false, 213) > twig_get_attribute($this->env, $this->source, (isset($context["b"]) || array_key_exists("b", $context) ? $context["b"] : (function () { throw new RuntimeError('Variable "b" does not exist.', 213, $this->source); })()), "sira", [], "any", false, false, false, 213)); }));
foreach ($context['_seq'] as $context["_key"] => $context["grup"]) {
// line 214
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_sort_filter($this->env, twig_array_filter($this->env, twig_get_attribute($this->env, $this->source, $context["grup"], "urunler", [], "any", false, false, false, 214), function ($__r__) use ($context, $macros) { $context["r"] = $__r__; return (twig_get_attribute($this->env, $this->source, (isset($context["r"]) || array_key_exists("r", $context) ? $context["r"] : (function () { throw new RuntimeError('Variable "r" does not exist.', 214, $this->source); })()), "del", [], "any", false, false, false, 214) == 0); }), function ($__a__, $__b__) use ($context, $macros) { $context["a"] = $__a__; $context["b"] = $__b__; return (twig_get_attribute($this->env, $this->source, (isset($context["a"]) || array_key_exists("a", $context) ? $context["a"] : (function () { throw new RuntimeError('Variable "a" does not exist.', 214, $this->source); })()), "sira", [], "any", false, false, false, 214) > twig_get_attribute($this->env, $this->source, (isset($context["b"]) || array_key_exists("b", $context) ? $context["b"] : (function () { throw new RuntimeError('Variable "b" does not exist.', 214, $this->source); })()), "sira", [], "any", false, false, false, 214)); }));
foreach ($context['_seq'] as $context["_key"] => $context["urunler"]) {
// line 215
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_sort_filter($this->env, twig_array_filter($this->env, twig_get_attribute($this->env, $this->source, $context["urunler"], "diller", [], "any", false, false, false, 215), function ($__r__) use ($context, $macros) { $context["r"] = $__r__; return (twig_get_attribute($this->env, $this->source, (isset($context["r"]) || array_key_exists("r", $context) ? $context["r"] : (function () { throw new RuntimeError('Variable "r" does not exist.', 215, $this->source); })()), "del", [], "any", false, false, false, 215) == 0); }), function ($__a__, $__b__) use ($context, $macros) { $context["a"] = $__a__; $context["b"] = $__b__; return (twig_get_attribute($this->env, $this->source, (isset($context["a"]) || array_key_exists("a", $context) ? $context["a"] : (function () { throw new RuntimeError('Variable "a" does not exist.', 215, $this->source); })()), "sira", [], "any", false, false, false, 215) > twig_get_attribute($this->env, $this->source, (isset($context["b"]) || array_key_exists("b", $context) ? $context["b"] : (function () { throw new RuntimeError('Variable "b" does not exist.', 215, $this->source); })()), "sira", [], "any", false, false, false, 215)); }));
foreach ($context['_seq'] as $context["_key"] => $context["urunlerDil"]) {
// line 216
echo " <div class=\"products__section-navbar__products-products-product mix ";
echo twig_escape_filter($this->env, twig_replace_filter(twig_upper_filter($this->env, twig_get_attribute($this->env, $this->source, $context["kategoriDil"], "baslik", [], "any", false, false, false, 216)), ["½" => "-", "%" => "-", "&" => "-", " " => "-", "/W+/" => "-"]), "html", null, true);
echo "\">
<div class=\"products__section-navbar__products-products-product-img__wrapper\">
";
// line 218
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_slice($this->env, twig_sort_filter($this->env, twig_array_filter($this->env, twig_get_attribute($this->env, $this->source, $context["urunler"], "resimler", [], "any", false, false, false, 218), function ($__r__) use ($context, $macros) { $context["r"] = $__r__; return (twig_get_attribute($this->env, $this->source, (isset($context["r"]) || array_key_exists("r", $context) ? $context["r"] : (function () { throw new RuntimeError('Variable "r" does not exist.', 218, $this->source); })()), "del", [], "any", false, false, false, 218) == 0); }), function ($__a__, $__b__) use ($context, $macros) { $context["a"] = $__a__; $context["b"] = $__b__; return (twig_get_attribute($this->env, $this->source, (isset($context["a"]) || array_key_exists("a", $context) ? $context["a"] : (function () { throw new RuntimeError('Variable "a" does not exist.', 218, $this->source); })()), "sira", [], "any", false, false, false, 218) > twig_get_attribute($this->env, $this->source, (isset($context["b"]) || array_key_exists("b", $context) ? $context["b"] : (function () { throw new RuntimeError('Variable "b" does not exist.', 218, $this->source); })()), "sira", [], "any", false, false, false, 218)); }), 0, 2));
foreach ($context['_seq'] as $context["_key"] => $context["resim"]) {
// line 219
echo " <img src=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(("uploads/urungruplari/urunler/" . twig_get_attribute($this->env, $this->source, $context["resim"], "resim", [], "any", false, false, false, 219))), "html", null, true);
echo "\"
alt=\"product-img\">
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['resim'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 222
echo " <div class=\"products__section-navbar__products-products-product-mousetracker\">
<div class=\"products__section-navbar__products-products-product-mousetracker-x\"></div>
<div class=\"products__section-navbar__products-products-product-mousetracker-y\"></div>
</div>
<template class=\"template\">
";
// line 227
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_array_filter($this->env, twig_get_attribute($this->env, $this->source, $context["urunler"], "resimler", [], "any", false, false, false, 227), function ($__r__) use ($context, $macros) { $context["r"] = $__r__; return (twig_get_attribute($this->env, $this->source, (isset($context["r"]) || array_key_exists("r", $context) ? $context["r"] : (function () { throw new RuntimeError('Variable "r" does not exist.', 227, $this->source); })()), "del", [], "any", false, false, false, 227) == 0); }));
foreach ($context['_seq'] as $context["_key"] => $context["resim"]) {
// line 228
echo " <img class=\"imgs\"
src=\"";
// line 229
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(("uploads/urungruplari/urunler/" . twig_get_attribute($this->env, $this->source, $context["resim"], "resim", [], "any", false, false, false, 229))), "html", null, true);
echo "\"
alt=\"product__img\">
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['resim'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 232
echo " <h4 class=\"mini__title\">";
echo twig_escape_filter($this->env, ((twig_get_attribute($this->env, $this->source, $context["urunlerDil"], "baslik2", [], "any", true, true, false, 232)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, $context["urunlerDil"], "baslik2", [], "any", false, false, false, 232))) : ("")), "html", null, true);
echo "</h4>
<h3 class=\"title\">";
// line 233
echo twig_escape_filter($this->env, ((twig_get_attribute($this->env, $this->source, $context["urunlerDil"], "baslik2", [], "any", true, true, false, 233)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, $context["urunlerDil"], "baslik2", [], "any", false, false, false, 233))) : ("")), "html", null, true);
echo "</h3>
<span class=\"size\">";
// line 234
echo twig_escape_filter($this->env, ((twig_get_attribute($this->env, $this->source, $context["urunlerDil"], "boyut", [], "any", true, true, false, 234)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, $context["urunlerDil"], "boyut", [], "any", false, false, false, 234))) : ("")), "html", null, true);
echo "</span>
<span class=\"weight\">";
// line 235
echo twig_escape_filter($this->env, ((twig_get_attribute($this->env, $this->source, $context["urunlerDil"], "agirlik", [], "any", true, true, false, 235)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, $context["urunlerDil"], "agirlik", [], "any", false, false, false, 235))) : ("")), "html", null, true);
echo "</span>
<span class=\"metin\">";
// line 236
echo ((twig_get_attribute($this->env, $this->source, $context["urunlerDil"], "metin", [], "any", true, true, false, 236)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, $context["urunlerDil"], "metin", [], "any", false, false, false, 236))) : (""));
echo "</span>
<span class=\"material\">";
// line 237
echo twig_escape_filter($this->env, ((twig_get_attribute($this->env, $this->source, $context["urunlerDil"], "materyal", [], "any", true, true, false, 237)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, $context["urunlerDil"], "materyal", [], "any", false, false, false, 237))) : ("")), "html", null, true);
echo "</span>
<span class=\"colorname1\">";
// line 238
echo twig_escape_filter($this->env, ((twig_get_attribute($this->env, $this->source, $context["urunlerDil"], "renkAd1", [], "any", true, true, false, 238)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, $context["urunlerDil"], "renkAd1", [], "any", false, false, false, 238))) : ("")), "html", null, true);
echo "</span>
<span class=\"colorkod1\">";
// line 239
echo twig_escape_filter($this->env, ((twig_get_attribute($this->env, $this->source, $context["urunlerDil"], "renkKod1", [], "any", true, true, false, 239)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, $context["urunlerDil"], "renkKod1", [], "any", false, false, false, 239))) : ("")), "html", null, true);
echo "</span>
<span class=\"colorname2\">";
// line 240
echo twig_escape_filter($this->env, ((twig_get_attribute($this->env, $this->source, $context["urunlerDil"], "renkAd2", [], "any", true, true, false, 240)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, $context["urunlerDil"], "renkAd2", [], "any", false, false, false, 240))) : ("")), "html", null, true);
echo "</span>
<span class=\"colorkod2\">";
// line 241
echo twig_escape_filter($this->env, ((twig_get_attribute($this->env, $this->source, $context["urunlerDil"], "renkKod2", [], "any", true, true, false, 241)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, $context["urunlerDil"], "renkKod2", [], "any", false, false, false, 241))) : ("")), "html", null, true);
echo "</span>
<span class=\"colorname3\">";
// line 242
echo twig_escape_filter($this->env, ((twig_get_attribute($this->env, $this->source, $context["urunlerDil"], "renkAd3", [], "any", true, true, false, 242)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, $context["urunlerDil"], "renkAd3", [], "any", false, false, false, 242))) : ("")), "html", null, true);
echo "</span>
<span class=\"colorkod3\">";
// line 243
echo twig_escape_filter($this->env, ((twig_get_attribute($this->env, $this->source, $context["urunlerDil"], "renkKod3", [], "any", true, true, false, 243)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, $context["urunlerDil"], "renkKod3", [], "any", false, false, false, 243))) : ("")), "html", null, true);
echo "</span>
<span class=\"colorname4\">";
// line 244
echo twig_escape_filter($this->env, ((twig_get_attribute($this->env, $this->source, $context["urunlerDil"], "renkAd4", [], "any", true, true, false, 244)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, $context["urunlerDil"], "renkAd4", [], "any", false, false, false, 244))) : ("")), "html", null, true);
echo "</span>
<span class=\"colorkod4\">";
// line 245
echo twig_escape_filter($this->env, ((twig_get_attribute($this->env, $this->source, $context["urunlerDil"], "renkKod4", [], "any", true, true, false, 245)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, $context["urunlerDil"], "renkKod4", [], "any", false, false, false, 245))) : ("")), "html", null, true);
echo "</span>
<span class=\"colorname5\">";
// line 246
echo twig_escape_filter($this->env, ((twig_get_attribute($this->env, $this->source, $context["urunlerDil"], "renkAd5", [], "any", true, true, false, 246)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, $context["urunlerDil"], "renkAd5", [], "any", false, false, false, 246))) : ("")), "html", null, true);
echo "</span>
<span class=\"colorkod5\">";
// line 247
echo twig_escape_filter($this->env, ((twig_get_attribute($this->env, $this->source, $context["urunlerDil"], "renkKod5", [], "any", true, true, false, 247)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, $context["urunlerDil"], "renkKod5", [], "any", false, false, false, 247))) : ("")), "html", null, true);
echo "</span>
<span class=\"colorname6\">";
// line 248
echo twig_escape_filter($this->env, ((twig_get_attribute($this->env, $this->source, $context["urunlerDil"], "renkAd6", [], "any", true, true, false, 248)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, $context["urunlerDil"], "renkAd6", [], "any", false, false, false, 248))) : ("")), "html", null, true);
echo "</span>
<span class=\"colorkod6\">";
// line 249
echo twig_escape_filter($this->env, ((twig_get_attribute($this->env, $this->source, $context["urunlerDil"], "renkKod6", [], "any", true, true, false, 249)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, $context["urunlerDil"], "renkKod6", [], "any", false, false, false, 249))) : ("")), "html", null, true);
echo "</span>
</template>
</div>
<h4>";
// line 252
echo twig_escape_filter($this->env, twig_upper_filter($this->env, twig_get_attribute($this->env, $this->source, $context["kategoriDil"], "baslik", [], "any", false, false, false, 252)), "html", null, true);
echo "</h4>
<h3>";
// line 253
echo twig_escape_filter($this->env, ((twig_get_attribute($this->env, $this->source, $context["urunlerDil"], "baslik", [], "any", true, true, false, 253)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, $context["urunlerDil"], "baslik", [], "any", false, false, false, 253))) : ("")), "html", null, true);
echo "</h3>
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['urunlerDil'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 259
echo "
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['urunler'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 261
echo "
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['grup'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 263
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['kategoriDil'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 264
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['kategori'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 265
echo "
</div>
<div class=\"products__section-navbar__products-button__wrapper\">
<button class=\"products__section-navbar__products-button__wrapper-button\"
onclick=\"AllProducts()\" class=\"filter-1\"
data-filter=\"all\">All Products
</button>
</div>
</div>
</div>
</div>
";
// line 278
$this->loadTemplate("main/default/new-catalogue.html.twig", "main/default/urun_gruplari.html.twig", 278)->display($context);
// line 279
echo " <div class=\"products__msayfabaslikl__wrapper\">
<div class=\"products__msayfabaslikl-bg\">
<div class=\"products__msayfabaslikl__wrapper-title\">
<h3>White Maya Top Smocked Waist, Yoga/Harem Pants</h3>
<div class=\"products__msayfabaslikl__wrapper-title-crossed__out\" id=\"products__prossed__out\">
<div class=\"crossed__out-1\"></div>
<div class=\"crossed__out-2\"></div>
</div>
</div>
<div class=\"products__msayfabaslikl__wrapper-product__description\">
<div class=\"products__msayfabaslikl__wrapper-product__description-img__wrapper\">
<div class=\"swiper myProductsSwiper\">
<div class=\"swiper-wrapper\">
</div>
<div class=\"products-msayfabaslikl-swiper-button-next\">
<svg xmlns=\"http://www.w3.org/2000/svg\" height=\"16\" width=\"10\" viewBox=\"0 0 320 512\">
<path d=\"M310.6 233.4c12.5 12.5 12.5 32.8 0 45.3l-192 192c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L242.7 256 73.4 86.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l192 192z\"/>
</svg>
</div>
<div class=\"products-msayfabaslikl-swiper-button-prev\">
<svg xmlns=\"http://www.w3.org/2000/svg\" height=\"16\" width=\"10\" viewBox=\"0 0 320 512\">
<path d=\"M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l192 192c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L77.3 256 246.6 86.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-192 192z\"/>
</svg>
</div>
</div>
</div>
<div class=\"products__msayfabaslikl__wrapper-product__description-about__product\">
<div class=\"products__msayfabaslikl__wrapper-product__description-about__product-colors_wrapper\">
<h4>Colours</h4>
<div class=\"products__msayfabaslikl__wrapper-product__description-about__product-colors\">
</div>
</div>
<div class=\"products__msayfabaslikl__wrapper-product__description-about__product-dimensions\">
<p>Size:<span class=\"msayfabaslikl-size\"></span></p>
<p>Weight:<span class=\"msayfabaslikl-weight\"></span></p>
<p>Material:<span class=\"msayfabaslikl-material\"></span></p>
<p>Description:<span class=\"msayfabaslikl-metin\"></span></p>
</div>
<div class=\"products__msayfabaslikl__wrapper-product__description-about__product-logos\">
<img src=\"";
// line 320
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(("uploads/ayarlar/referans/" . twig_get_attribute($this->env, $this->source, (isset($context["ayarlar"]) || array_key_exists("ayarlar", $context) ? $context["ayarlar"] : (function () { throw new RuntimeError('Variable "ayarlar" does not exist.', 320, $this->source); })()), "referans", [], "any", false, false, false, 320))), "html", null, true);
echo "\"
alt=\"references-logo\">
</div>
</div>
</div>
</div>
</div>
</div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 333
public function block_body_js($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", "body_js"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body_js"));
// line 334
echo " ";
$this->loadTemplate("main/default/scripts.html.twig", "main/default/urun_gruplari.html.twig", 334)->display($context);
// line 335
echo " <script>
const products = document.querySelectorAll(\".products__section-navbar__products-products-product-img__wrapper\");
const productsMsayfabaslikl = document.querySelector(\".products__msayfabaslikl__wrapper\");
const prossedOut = document.querySelector(\"#products__prossed__out\");
const swiperWrapper = document.querySelector(\".products__msayfabaslikl__wrapper-product__description-img__wrapper .swiper .swiper-wrapper\");
function initializeSwiper() {
swiper = new Swiper(\".myProductsSwiper\", {
navigation: {
nextEl: \".products-msayfabaslikl-swiper-button-next\",
prevEl: \".products-msayfabaslikl-swiper-button-prev\",
},
autoplay: {
delay: 4000,
disableOnInteraction: false,
},
loop: true,
});
}
initializeSwiper();
products.forEach((item, index) => {
item.addEventListener(\"click\", () => {
swiperWrapper.innerHTML = \"\";
productsMsayfabaslikl.classList.add(\"active\");
document.body.style.overflow = \"hidden\";
const templateEl = item.closest('.products__section-navbar__products-products-product-img__wrapper').querySelector('.template');
if (templateEl) {
const templateClone = document.importNode(templateEl.content, true);
const titleEl = templateClone.querySelector(\".title\").textContent;
const sizeEl = templateClone.querySelector(\".size\").textContent;
const weightEl = templateClone.querySelector(\".weight\").textContent;
const materialEl = templateClone.querySelector(\".material\").textContent;
const metinlEl = templateClone.querySelector(\".metin\").textContent;
const imgs = templateClone.querySelectorAll(\".imgs\");
imgs.forEach((imgItem) => {
let swiperSlide = document.createElement(\"div\");
swiperSlide.classList.add(\"swiper-slide\");
let imgClone = imgItem.cloneNode(true);
swiperSlide.appendChild(imgClone);
swiperWrapper.appendChild(swiperSlide);
});
const msayfabasliklTitle = document.querySelector(\".products__msayfabaslikl__wrapper-title h3\");
const msayfabasliklSize = document.querySelectorAll(\".products__msayfabaslikl__wrapper-product__description-about__product-dimensions span\")[0];
const msayfabasliklWeight = document.querySelectorAll(\".products__msayfabaslikl__wrapper-product__description-about__product-dimensions span\")[1];
const msayfabasliklMaterial = document.querySelectorAll(\".products__msayfabaslikl__wrapper-product__description-about__product-dimensions span\")[2];
const msayfabasliklMetin = document.querySelectorAll(\".products__msayfabaslikl__wrapper-product__description-about__product-dimensions span\")[3];
msayfabasliklTitle.textContent = titleEl;
msayfabasliklSize.textContent = sizeEl;
msayfabasliklWeight.textContent = weightEl;
msayfabasliklMaterial.textContent = materialEl;
msayfabasliklMetin.textContent = metinlEl;
// Renkleri aktar
const colorsModal = document.querySelector(\".products__msayfabaslikl__wrapper-product__description-about__product-colors\");
colorsModal.innerHTML = ''; // Önceki renkleri temizle
const colorNames = templateClone.querySelectorAll(\"[class^='colorname']\");
const colorCodes = templateClone.querySelectorAll(\"[class^='colorkod']\");
colorNames.forEach((colorName, index) => {
const colorNameText = colorName.textContent;
const colorCodeText = colorCodes[index].textContent;
const colorItem = document.createElement(\"div\");
colorItem.classList.add(\"products__msayfabaslikl__wrapper-product__description-about__product-colors-color\");
const colorCircle = document.createElement(\"div\");
colorCircle.classList.add(\"products__msayfabaslikl__wrapper-product__description-about__product-colors-color-circle\");
colorCircle.style.backgroundColor = colorCodeText;
const colorDescription = document.createElement(\"p\");
colorDescription.classList.add(\"products__modal__wrapper-product__description-about__product-colors-color-description\");
colorDescription.textContent = colorNameText;
colorItem.appendChild(colorCircle);
colorItem.appendChild(colorDescription);
colorsModal.appendChild(colorItem);
});
} else {
console.error(\"Template element not found!\");
}
swiper.destroy();
initializeSwiper();
swiper.update();
swiper.slideTo(0);
swiper.autoplay.start();
});
});
prossedOut.addEventListener(\"click\", () => {
productsMsayfabaslikl.classList.remove(\"active\");
document.body.style.overflow = \"auto\";
})
const productImgMainWrapper = document.querySelectorAll(\".products__section-navbar__products-products-product-img__wrapper\")
const productimgsWrapper = document.querySelectorAll(\".products__section-navbar__products-products-product .products__section-navbar__products-products-product-img__wrapper img\")
productImgMainWrapper.forEach((item) => {
item.addEventListener(\"mouseover\", () => {
const secondaryImgs = item.getElementsByTagName('img');
const specificSecondaryImg = secondaryImgs[1];
const specificFirstImg = secondaryImgs[0];
if (specificSecondaryImg) {
specificSecondaryImg.classList.add(\"active\");
}
if (specificSecondaryImg) {
specificFirstImg.classList.add(\"remove\");
}
})
item.addEventListener(\"mouseleave\", () => {
const secondaryImgs = item.getElementsByTagName('img');
const specificSecondaryImg = secondaryImgs[1];
const specificFirstImg = secondaryImgs[0];
if (specificSecondaryImg) {
specificSecondaryImg.classList.remove(\"active\");
}
if (specificFirstImg) {
specificFirstImg.classList.remove(\"remove\");
}
})
});
</script>
<script>
document.addEventListener(\"DOMContentLoaded\", function () {
const pageHeight = window.innerHeight;
const msayfabasliklEl = document.querySelector(\".products__msayfabaslikl-bg\");
if (pageHeight < 816) {
msayfabasliklEl.classList.add(\"small\")
} else {
msayfabasliklEl.classList.remove(\"small\")
}
const contentEl = document.querySelector(\".products__msayfabaslikl__wrapper-product__description-about__product\");
const containerEl = document.querySelector(\".products__msayfabaslikl__wrapper-product__description\");
/* if (pageHeight < 800) {
contentEl.style.overflowY = 'scroll';
} else {
contentEl.style.overflowY = 'hidden';
} */
})
</script>
<script>
const controllerBtn = document.querySelectorAll(\".products__section-navbar__products-navbar .controls button\");
controllerBtn.forEach((item) => {
item.addEventListener(\"mouseover\", () => {
item.click();
})
})
const kategoryClicked = (button) => {
const controllerBtn = document.querySelectorAll(\".products__section-navbar__products-navbar .controls button\");
controllerBtn.forEach((item) => {
item.classList.remove(\"active\");
})
button.classList.add(\"active\");
}
var mixer = mixitup('#MixItUp1');
</script>
<script>
function AllProducts() {
document.querySelectorAll('.filter-1').forEach(item => {
item.classList.remove('active');
});
document.querySelector('.All').classList.add('active');
}
</script>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "main/default/urun_gruplari.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 778 => 335, 775 => 334, 765 => 333, 743 => 320, 700 => 279, 698 => 278, 683 => 265, 677 => 264, 671 => 263, 664 => 261, 657 => 259, 645 => 253, 641 => 252, 635 => 249, 631 => 248, 627 => 247, 623 => 246, 619 => 245, 615 => 244, 611 => 243, 607 => 242, 603 => 241, 599 => 240, 595 => 239, 591 => 238, 587 => 237, 583 => 236, 579 => 235, 575 => 234, 571 => 233, 566 => 232, 557 => 229, 554 => 228, 550 => 227, 543 => 222, 533 => 219, 529 => 218, 523 => 216, 518 => 215, 513 => 214, 508 => 213, 503 => 212, 499 => 211, 494 => 208, 488 => 207, 479 => 204, 475 => 203, 472 => 202, 467 => 201, 463 => 200, 453 => 192, 444 => 189, 440 => 188, 437 => 187, 433 => 186, 420 => 175, 417 => 174, 415 => 173, 410 => 171, 408 => 170, 406 => 169, 404 => 168, 402 => 167, 400 => 166, 398 => 165, 396 => 164, 394 => 163, 392 => 162, 390 => 161, 388 => 160, 386 => 159, 384 => 158, 382 => 157, 380 => 156, 378 => 155, 376 => 154, 374 => 153, 372 => 152, 370 => 151, 368 => 150, 365 => 148, 363 => 147, 361 => 146, 359 => 145, 357 => 144, 355 => 143, 353 => 142, 351 => 141, 349 => 140, 347 => 139, 345 => 138, 343 => 137, 341 => 136, 339 => 135, 337 => 134, 335 => 133, 333 => 132, 331 => 131, 329 => 130, 327 => 129, 325 => 128, 323 => 127, 321 => 126, 319 => 125, 317 => 124, 315 => 123, 313 => 122, 311 => 121, 309 => 120, 307 => 119, 305 => 118, 303 => 117, 301 => 116, 299 => 115, 297 => 114, 295 => 113, 293 => 112, 291 => 111, 289 => 110, 287 => 109, 285 => 108, 283 => 107, 281 => 106, 279 => 105, 277 => 104, 275 => 103, 273 => 102, 271 => 101, 269 => 100, 267 => 99, 265 => 98, 263 => 97, 261 => 96, 259 => 95, 257 => 94, 255 => 93, 253 => 92, 251 => 91, 248 => 89, 246 => 88, 244 => 87, 242 => 86, 240 => 85, 238 => 84, 236 => 83, 234 => 82, 232 => 81, 230 => 80, 228 => 79, 226 => 78, 224 => 77, 222 => 76, 219 => 74, 217 => 73, 215 => 72, 213 => 71, 211 => 70, 209 => 69, 207 => 68, 205 => 67, 203 => 66, 201 => 65, 199 => 64, 197 => 63, 195 => 62, 153 => 21, 143 => 20, 129 => 17, 127 => 16, 122 => 15, 120 => 14, 115 => 13, 112 => 12, 102 => 11, 88 => 8, 86 => 7, 81 => 6, 79 => 5, 74 => 4, 71 => 3, 61 => 2, 38 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends 'main_base.html.twig' %}
{% block title %}
{% if app.request.get('link') == '' and app.request.get('link2') == '' %}
{{ 'anasayfa.urungruplarikucuk'|trans }}
{% elseif app.request.get('link2') != '' %}
{{ urunGruplariDil.baslik }}
{% elseif app.request.get('link') != '' %}
{{ urunKategorileriDil.baslik }}
{% endif %}
{% endblock %}
{% block description %}
{% if app.request.get('link') == '' and app.request.get('link2') == '' %}
{{ 'anasayfa.urungruplarikucuk'|trans }}
{% elseif app.request.get('link2') != '' %}
{{ urunGruplariDil.baslik }}
{% elseif app.request.get('link') != '' %}
{{ urunKategorileriDil.baslik }}
{% endif %}
{% endblock %}
{% block content %}
<style>
.navbar__section-links__wrapper :not(.PRODUCTS) {
opacity: 0.4 !important;
}
.navbar__section-logo__wrapper-img {
filter: brightness(0) invert(1) !important;
}
.navbar__section::before {
content: \"\";
position: absolute;
top: 0;
right: 0;
left: 0;
bottom: 0;
background: rgba(0, 0, 0, 0.4);
z-index: -1;
}
.navbar__section::after {
content: \"\";
background-image: url(\"../../../public/assets/main/images/navbar/navbar-bg-products.jpg\");
background-position: center;
background-size: cover;
position: absolute;
top: 0;
right: 0;
left: 0;
bottom: 0;
z-index: -2;
}
</style>
<style>
{# <header>#}
{# <div class=\"header-image\"><img src=\"{{ asset('assets/main/images/productGroups.webp') }}\" alt=\"\"></div>#}
{# <div class=\"header-text\">#}
{# <a href=\"{{ path('app_main_default') }}\">#}
{# <div class=\"header-logo\"><img src=\"{{ asset('assets/main/images/elefante.svg') }}\" alt=\"\"></div>#}
{# </a>#}
{# <div class=\"header-name\"><span>{{ 'anasayfa.urungruplarikucuk'|trans }}</span></div>#}
{# <div class=\"header-text-line\">#}
{# <span>SINCE</span>#}
{# <span>1995</span>#}
{# </div>#}
{# </div>#}
{# </header>#}
{# <div id=\"container\">#}
{# <div class=\"content\">#}
{# <div class=\"router-url\">#}
{# <a href=\"{{ path('app_main_default') }}\">{{ 'anasayfa'|trans }}</a> /#}
{# <a href=\"{{ path('app_main_urun_gruplari') }}\">{{ 'anasayfa.urungruplarikucuk'|trans }}</a>#}
{# {% if app.request.get('link') != '' %}#}
{# / <a#}
{# href=\"{{ path('app_main_urun_gruplari', {'link': urunKategorileriDil.link}) }}\">{{ urunKategorileriDil.baslik }}</a>#}
{# {% endif %}#}
{# {% if app.request.get('link2') != '' %}#}
{# / <a#}
{# href=\"{{ path('app_main_urun_gruplari', {'link': urunKategorileriDil.link, 'link2': urunGruplariDil.link}) }}\">{{ urunGruplariDil.baslik }}</a>#}
{# {% endif %}#}
{# </div>#}
{# <div class=\"product-groups-wrapper\">#}
{# <div class=\"productgroups-nav\">#}
{# {% for uk in urunkategorileri %}#}
{# {% set ukDil = uk.diller|filter(d => d.dil.kisaBaslik == app.request.locale)|first %}#}
{# <div class=\"productgroups-nav-item\">#}
{# <div class=\"productgroups-nav-item-header border {% if app.request.get('link') == ukDil.link %}active{% endif %}\">#}
{# <h1>{{ ukDil.baslik }} <span>({{ uk.gruplar|filter(r => r.del == 0)|length }})</span></h1>#}
{# <i class=\"rotate-i active fas fa-chevron-down\"></i>#}
{# </div>#}
{# <ul class=\"productgroups-nav-item-content {% if app.request.get('link') == ukDil.link %}productgroups-nav-item-content-all{% endif %}\">#}
{# {% for grup in uk.gruplar|filter(r => r.del == 0) %}#}
{# {% set grupDil = grup.diller|filter(d => d.dil.kisaBaslik == app.request.locale)|first %}#}
{# <li>#}
{# <a href=\"{{ path('app_main_urun_gruplari', {'link': ukDil.link, 'link2': grupDil.link}) }}\"#}
{# style=\"color: inherit;\"><p>{{ grupDil.baslik }}#}
{# <span>({{ grup.urunler|filter(r => r.del == 0)|length }})</span>#}
{# </p>#}
{# </a>#}
{# </li>#}
{# {% endfor %}#}
{# </ul>#}
{# </div>#}
{# {% endfor %}#}
{# </div>#}
{# <div class=\"productgroups\">#}
{# {% for urun in urunler %}#}
{# {% set urunDil = urun.diller|filter(d => d.dil.kisaBaslik == app.request.locale)|first %}#}
{# <div class=\"productgroup-item\">#}
{# <div class=\"productgroups-drop-items\">#}
{# <div class=\"productgroups-drop-item-off\"><i class=\"bx bx-x\"></i></div>#}
{# <div class=\"productgroups-drop-item\">#}
{# <div class=\"productgroups-drop-item-logo\">#}
{# <img src=\"{{ asset('assets/main/images/elefante.svg') }}\" alt=\"\">#}
{# </div>#}
{# <svg xmlns=\"http://www.w3.org/2000/svg\" style=\"display: none\">#}
{# <symbol id=\"ei-arrow-left-icon\" viewBox=\"0 0 50 50\">#}
{# <path d=\"M25 42c-9.4 0-17-7.6-17-17S15.6 8 25 8s17 7.6 17 17-7.6 17-17 17zm0-32c-8.3 0-15 6.7-15 15s6.7 15 15 15 15-6.7 15-15-6.7-15-15-15z\"></path>#}
{# <path d=\"M25.3 34.7L15.6 25l9.7-9.7 1.4 1.4-8.3 8.3 8.3 8.3z\"></path>#}
{# <path d=\"M17 24h17v2H17z\"></path>#}
{# </symbol>#}
{# <symbol id=\"ei-arrow-right-icon\" viewBox=\"0 0 50 50\">#}
{# <path d=\"M25 42c-9.4 0-17-7.6-17-17S15.6 8 25 8s17 7.6 17 17-7.6 17-17 17zm0-32c-8.3 0-15 6.7-15 15s6.7 15 15 15 15-6.7 15-15-6.7-15-15-15z\"></path>#}
{# <path d=\"M24.7 34.7l-1.4-1.4 8.3-8.3-8.3-8.3 1.4-1.4 9.7 9.7z\"></path>#}
{# <path d=\"M16 24h17v2H16z\"></path>#}
{# </symbol>#}
{# </svg>#}
{# <div class=\"layout\">#}
{# <ul class=\"slider\">#}
{# {% for resim in urun.resimler|filter(r => r.del == 0) %}#}
{# <li>#}
{# <div data-zoom=\"{{ asset('uploads/urungruplari/urunler/' ~ resim.resim) }}\" class=\"zoom\">#}
{# <img src=\"{{ asset('uploads/urungruplari/urunler/' ~ resim.resim) }}\" />#}
{# </div>#}
{# </li>#}
{# {% endfor %}#}
{# </ul>#}
{# </div>#}
{# </div>#}
{# <div class=\"productgroups-drop-item-content\">#}
{# <h2 class=\"productgroups-drop-item-content-header\">{{ urunDil.baslik }}</h2>#}
{# <h3 class=\"productgroups-drop-item-content-header-small\">{{ urunDil.baslik }}</h3>#}
{# <div class=\"productgroups-drop-item-content-text\">#}
{# {{ urunDil.metin|raw }}#}
{# </div>#}
{# </div>#}
{# </div>#}
{# <div class=\"productgroup-item-image\">#}
{# {% if urun.resimler|length > 0 %}#}
{# <img src=\"{{ asset('uploads/urungruplari/urunler/' ~ urun.resimler|sort((a,b) => a.sira > b.sira)|first.resim) }}\" alt=\"\">#}
{# {% endif %}#}
{# </div>#}
{# <div class=\"productgroup-item-content\">#}
{# <h3>{{ urunDil.baslik }}</h3>#}
{# <p>{{ urunDil.baslik2 }}</p>#}
{# </div>#}
{# </div>#}
{# {% endfor %}#}
{# </div>#}
{# </div>#}
{# </div>#}
{# </div> #}</style>
<div id=\"products\">
{% include 'main/default/loader.html.twig' %}
{% include 'main/default/cookie.html.twig' %}
<div class=\"main-container\">
<div class=\"products__section\">
<div class=\"products__section-active__page\">
<p><a href=\"https://technoone.net/elefante/\">Elefante </a> / <a class=\"active\"
href=\"https://technoone.net/elefante/products\">Products</a>
</p>
</div>
<div class=\"products__section-description\">
{% for urunsayfasi in sayfa[0].sayfabaslikDilleri %}
<h2>{{ urunsayfasi.baslik|raw }}</h2>
<p>{{ urunsayfasi.title|raw }}</p>
{% endfor %}
</div>
<div class=\"products__section-navbar__products\">
<div class=\"products__section-navbar__products-navbar\">
<ul class=\"controls\">
<button class=\"filter-1 active All\" onclick=\"kategoryClicked(this)\" data-filter=\"all\">ALL
</button>
{% for kategori in urunkategorileri|filter(r => r.del == 0)|sort((a,b) => a.sira > b.sira) %}
{% for kategoriler in kategori.diller %}
<button class=\"filter-1\" onclick=\"kategoryClicked(this)\"
data-filter=\".{{ kategoriler.baslik|upper|replace({ '½': '-', '/': '-', '%': '-','&': '-', ' ': '-', '/\\W+/': '-' }) }}\">
{{ kategoriler.baslik }}
</button>
{% endfor %}
{% endfor %}
</ul>
</div>
<div class=\"products__section-navbar__products-products container\" id=\"MixItUp1\">
{% for kategori in urunkategorileri|filter(r => r.del == 0)|sort((a,b) => a.sira > b.sira) %}
{% for kategoriDil in kategori.diller|filter(r => r.del == 0)|sort((a,b) => a.sira > b.sira) %}
{% for grup in kategori.gruplar|filter(r => r.del == 0)|sort((a,b) => a.sira > b.sira) %}
{% for urunler in grup.urunler|filter(r => r.del == 0)|sort((a,b) => a.sira > b.sira) %}
{% for urunlerDil in urunler.diller|filter(r => r.del == 0)|sort((a,b) => a.sira > b.sira) %}
<div class=\"products__section-navbar__products-products-product mix {{ kategoriDil.baslik|upper|replace({ '½': '-', '%': '-','&': '-', ' ': '-', '/\\W+/': '-' }) }}\">
<div class=\"products__section-navbar__products-products-product-img__wrapper\">
{% for resim in urunler.resimler|filter(r => r.del == 0)|sort((a,b) => a.sira > b.sira)|slice(0, 2) %}
<img src=\"{{ asset('uploads/urungruplari/urunler/' ~ resim.resim) }}\"
alt=\"product-img\">
{% endfor %}
<div class=\"products__section-navbar__products-products-product-mousetracker\">
<div class=\"products__section-navbar__products-products-product-mousetracker-x\"></div>
<div class=\"products__section-navbar__products-products-product-mousetracker-y\"></div>
</div>
<template class=\"template\">
{% for resim in urunler.resimler|filter(r => r.del == 0) %}
<img class=\"imgs\"
src=\"{{ asset('uploads/urungruplari/urunler/' ~ resim.resim) }}\"
alt=\"product__img\">
{% endfor %}
<h4 class=\"mini__title\">{{ urunlerDil.baslik2|default }}</h4>
<h3 class=\"title\">{{ urunlerDil.baslik2|default }}</h3>
<span class=\"size\">{{ urunlerDil.boyut|default }}</span>
<span class=\"weight\">{{ urunlerDil.agirlik|default }}</span>
<span class=\"metin\">{{ urunlerDil.metin|default|raw }}</span>
<span class=\"material\">{{ urunlerDil.materyal|default }}</span>
<span class=\"colorname1\">{{ urunlerDil.renkAd1|default }}</span>
<span class=\"colorkod1\">{{ urunlerDil.renkKod1|default }}</span>
<span class=\"colorname2\">{{ urunlerDil.renkAd2|default }}</span>
<span class=\"colorkod2\">{{ urunlerDil.renkKod2|default }}</span>
<span class=\"colorname3\">{{ urunlerDil.renkAd3|default }}</span>
<span class=\"colorkod3\">{{ urunlerDil.renkKod3|default }}</span>
<span class=\"colorname4\">{{ urunlerDil.renkAd4|default }}</span>
<span class=\"colorkod4\">{{ urunlerDil.renkKod4|default }}</span>
<span class=\"colorname5\">{{ urunlerDil.renkAd5|default }}</span>
<span class=\"colorkod5\">{{ urunlerDil.renkKod5|default }}</span>
<span class=\"colorname6\">{{ urunlerDil.renkAd6|default }}</span>
<span class=\"colorkod6\">{{ urunlerDil.renkKod6|default }}</span>
</template>
</div>
<h4>{{ kategoriDil.baslik|upper }}</h4>
<h3>{{ urunlerDil.baslik|default }}</h3>
</div>
{% endfor %}
{% endfor %}
{% endfor %}
{% endfor %}
{% endfor %}
</div>
<div class=\"products__section-navbar__products-button__wrapper\">
<button class=\"products__section-navbar__products-button__wrapper-button\"
onclick=\"AllProducts()\" class=\"filter-1\"
data-filter=\"all\">All Products
</button>
</div>
</div>
</div>
</div>
{% include 'main/default/new-catalogue.html.twig' %}
<div class=\"products__msayfabaslikl__wrapper\">
<div class=\"products__msayfabaslikl-bg\">
<div class=\"products__msayfabaslikl__wrapper-title\">
<h3>White Maya Top Smocked Waist, Yoga/Harem Pants</h3>
<div class=\"products__msayfabaslikl__wrapper-title-crossed__out\" id=\"products__prossed__out\">
<div class=\"crossed__out-1\"></div>
<div class=\"crossed__out-2\"></div>
</div>
</div>
<div class=\"products__msayfabaslikl__wrapper-product__description\">
<div class=\"products__msayfabaslikl__wrapper-product__description-img__wrapper\">
<div class=\"swiper myProductsSwiper\">
<div class=\"swiper-wrapper\">
</div>
<div class=\"products-msayfabaslikl-swiper-button-next\">
<svg xmlns=\"http://www.w3.org/2000/svg\" height=\"16\" width=\"10\" viewBox=\"0 0 320 512\">
<path d=\"M310.6 233.4c12.5 12.5 12.5 32.8 0 45.3l-192 192c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L242.7 256 73.4 86.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l192 192z\"/>
</svg>
</div>
<div class=\"products-msayfabaslikl-swiper-button-prev\">
<svg xmlns=\"http://www.w3.org/2000/svg\" height=\"16\" width=\"10\" viewBox=\"0 0 320 512\">
<path d=\"M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l192 192c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L77.3 256 246.6 86.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-192 192z\"/>
</svg>
</div>
</div>
</div>
<div class=\"products__msayfabaslikl__wrapper-product__description-about__product\">
<div class=\"products__msayfabaslikl__wrapper-product__description-about__product-colors_wrapper\">
<h4>Colours</h4>
<div class=\"products__msayfabaslikl__wrapper-product__description-about__product-colors\">
</div>
</div>
<div class=\"products__msayfabaslikl__wrapper-product__description-about__product-dimensions\">
<p>Size:<span class=\"msayfabaslikl-size\"></span></p>
<p>Weight:<span class=\"msayfabaslikl-weight\"></span></p>
<p>Material:<span class=\"msayfabaslikl-material\"></span></p>
<p>Description:<span class=\"msayfabaslikl-metin\"></span></p>
</div>
<div class=\"products__msayfabaslikl__wrapper-product__description-about__product-logos\">
<img src=\"{{ asset('uploads/ayarlar/referans/' ~ ayarlar.referans) }}\"
alt=\"references-logo\">
</div>
</div>
</div>
</div>
</div>
</div>
{% endblock %}
{% block body_js %}
{% include 'main/default/scripts.html.twig' %}
<script>
const products = document.querySelectorAll(\".products__section-navbar__products-products-product-img__wrapper\");
const productsMsayfabaslikl = document.querySelector(\".products__msayfabaslikl__wrapper\");
const prossedOut = document.querySelector(\"#products__prossed__out\");
const swiperWrapper = document.querySelector(\".products__msayfabaslikl__wrapper-product__description-img__wrapper .swiper .swiper-wrapper\");
function initializeSwiper() {
swiper = new Swiper(\".myProductsSwiper\", {
navigation: {
nextEl: \".products-msayfabaslikl-swiper-button-next\",
prevEl: \".products-msayfabaslikl-swiper-button-prev\",
},
autoplay: {
delay: 4000,
disableOnInteraction: false,
},
loop: true,
});
}
initializeSwiper();
products.forEach((item, index) => {
item.addEventListener(\"click\", () => {
swiperWrapper.innerHTML = \"\";
productsMsayfabaslikl.classList.add(\"active\");
document.body.style.overflow = \"hidden\";
const templateEl = item.closest('.products__section-navbar__products-products-product-img__wrapper').querySelector('.template');
if (templateEl) {
const templateClone = document.importNode(templateEl.content, true);
const titleEl = templateClone.querySelector(\".title\").textContent;
const sizeEl = templateClone.querySelector(\".size\").textContent;
const weightEl = templateClone.querySelector(\".weight\").textContent;
const materialEl = templateClone.querySelector(\".material\").textContent;
const metinlEl = templateClone.querySelector(\".metin\").textContent;
const imgs = templateClone.querySelectorAll(\".imgs\");
imgs.forEach((imgItem) => {
let swiperSlide = document.createElement(\"div\");
swiperSlide.classList.add(\"swiper-slide\");
let imgClone = imgItem.cloneNode(true);
swiperSlide.appendChild(imgClone);
swiperWrapper.appendChild(swiperSlide);
});
const msayfabasliklTitle = document.querySelector(\".products__msayfabaslikl__wrapper-title h3\");
const msayfabasliklSize = document.querySelectorAll(\".products__msayfabaslikl__wrapper-product__description-about__product-dimensions span\")[0];
const msayfabasliklWeight = document.querySelectorAll(\".products__msayfabaslikl__wrapper-product__description-about__product-dimensions span\")[1];
const msayfabasliklMaterial = document.querySelectorAll(\".products__msayfabaslikl__wrapper-product__description-about__product-dimensions span\")[2];
const msayfabasliklMetin = document.querySelectorAll(\".products__msayfabaslikl__wrapper-product__description-about__product-dimensions span\")[3];
msayfabasliklTitle.textContent = titleEl;
msayfabasliklSize.textContent = sizeEl;
msayfabasliklWeight.textContent = weightEl;
msayfabasliklMaterial.textContent = materialEl;
msayfabasliklMetin.textContent = metinlEl;
// Renkleri aktar
const colorsModal = document.querySelector(\".products__msayfabaslikl__wrapper-product__description-about__product-colors\");
colorsModal.innerHTML = ''; // Önceki renkleri temizle
const colorNames = templateClone.querySelectorAll(\"[class^='colorname']\");
const colorCodes = templateClone.querySelectorAll(\"[class^='colorkod']\");
colorNames.forEach((colorName, index) => {
const colorNameText = colorName.textContent;
const colorCodeText = colorCodes[index].textContent;
const colorItem = document.createElement(\"div\");
colorItem.classList.add(\"products__msayfabaslikl__wrapper-product__description-about__product-colors-color\");
const colorCircle = document.createElement(\"div\");
colorCircle.classList.add(\"products__msayfabaslikl__wrapper-product__description-about__product-colors-color-circle\");
colorCircle.style.backgroundColor = colorCodeText;
const colorDescription = document.createElement(\"p\");
colorDescription.classList.add(\"products__modal__wrapper-product__description-about__product-colors-color-description\");
colorDescription.textContent = colorNameText;
colorItem.appendChild(colorCircle);
colorItem.appendChild(colorDescription);
colorsModal.appendChild(colorItem);
});
} else {
console.error(\"Template element not found!\");
}
swiper.destroy();
initializeSwiper();
swiper.update();
swiper.slideTo(0);
swiper.autoplay.start();
});
});
prossedOut.addEventListener(\"click\", () => {
productsMsayfabaslikl.classList.remove(\"active\");
document.body.style.overflow = \"auto\";
})
const productImgMainWrapper = document.querySelectorAll(\".products__section-navbar__products-products-product-img__wrapper\")
const productimgsWrapper = document.querySelectorAll(\".products__section-navbar__products-products-product .products__section-navbar__products-products-product-img__wrapper img\")
productImgMainWrapper.forEach((item) => {
item.addEventListener(\"mouseover\", () => {
const secondaryImgs = item.getElementsByTagName('img');
const specificSecondaryImg = secondaryImgs[1];
const specificFirstImg = secondaryImgs[0];
if (specificSecondaryImg) {
specificSecondaryImg.classList.add(\"active\");
}
if (specificSecondaryImg) {
specificFirstImg.classList.add(\"remove\");
}
})
item.addEventListener(\"mouseleave\", () => {
const secondaryImgs = item.getElementsByTagName('img');
const specificSecondaryImg = secondaryImgs[1];
const specificFirstImg = secondaryImgs[0];
if (specificSecondaryImg) {
specificSecondaryImg.classList.remove(\"active\");
}
if (specificFirstImg) {
specificFirstImg.classList.remove(\"remove\");
}
})
});
</script>
<script>
document.addEventListener(\"DOMContentLoaded\", function () {
const pageHeight = window.innerHeight;
const msayfabasliklEl = document.querySelector(\".products__msayfabaslikl-bg\");
if (pageHeight < 816) {
msayfabasliklEl.classList.add(\"small\")
} else {
msayfabasliklEl.classList.remove(\"small\")
}
const contentEl = document.querySelector(\".products__msayfabaslikl__wrapper-product__description-about__product\");
const containerEl = document.querySelector(\".products__msayfabaslikl__wrapper-product__description\");
/* if (pageHeight < 800) {
contentEl.style.overflowY = 'scroll';
} else {
contentEl.style.overflowY = 'hidden';
} */
})
</script>
<script>
const controllerBtn = document.querySelectorAll(\".products__section-navbar__products-navbar .controls button\");
controllerBtn.forEach((item) => {
item.addEventListener(\"mouseover\", () => {
item.click();
})
})
const kategoryClicked = (button) => {
const controllerBtn = document.querySelectorAll(\".products__section-navbar__products-navbar .controls button\");
controllerBtn.forEach((item) => {
item.classList.remove(\"active\");
})
button.classList.add(\"active\");
}
var mixer = mixitup('#MixItUp1');
</script>
<script>
function AllProducts() {
document.querySelectorAll('.filter-1').forEach(item => {
item.classList.remove('active');
});
document.querySelector('.All').classList.add('active');
}
</script>
{% endblock %}", "main/default/urun_gruplari.html.twig", "/home/technoon/public_html/elefante/templates/main/default/urun_gruplari.html.twig");
}
}