<?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;
/* @Web/Slider/index.html.twig */
class __TwigTemplate_0fba8776ae354c8c3e059db92476595ca6333bb1a87c024554898e12f6b0f475 extends \Twig\Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'title' => [$this, 'block_title'],
'extraGoogleTagScript' => [$this, 'block_extraGoogleTagScript'],
'meta' => [$this, 'block_meta'],
'stylesheets' => [$this, 'block_stylesheets'],
'javascripts' => [$this, 'block_javascripts'],
'content' => [$this, 'block_content'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "@Web/layout.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d = $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
$__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d->enter($__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@Web/Slider/index.html.twig"));
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@Web/Slider/index.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@Web/Slider/index.html.twig"));
// line 11
$context["slider"] = twig_get_attribute($this->env, $this->source, (isset($context["initialState"]) || array_key_exists("initialState", $context) ? $context["initialState"] : (function () { throw new RuntimeError('Variable "initialState" does not exist.', 11, $this->source); })()), "slider", [], "any", false, false, false, 11);
// line 1
$this->parent = $this->loadTemplate("@Web/layout.html.twig", "@Web/Slider/index.html.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d->leave($__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
// line 3
public function block_title($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d = $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
$__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d->enter($__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
// line 4
echo " ";
echo twig_get_attribute($this->env, $this->source, (isset($context["metaData"]) || array_key_exists("metaData", $context) ? $context["metaData"] : (function () { throw new RuntimeError('Variable "metaData" does not exist.', 4, $this->source); })()), "title", [], "any", false, false, false, 4);
echo "
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d->leave($__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d_prof);
}
// line 7
public function block_extraGoogleTagScript($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d = $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
$__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d->enter($__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "extraGoogleTagScript"));
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "extraGoogleTagScript"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "extraGoogleTagScript"));
// line 8
echo " ";
echo twig_include($this->env, $context, "@Web/google_gtag.html.twig");
echo "
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d->leave($__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d_prof);
}
// line 12
public function block_meta($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d = $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
$__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d->enter($__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "meta"));
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "meta"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "meta"));
// line 13
echo " ";
if (twig_get_attribute($this->env, $this->source, (isset($context["metaData"]) || array_key_exists("metaData", $context) ? $context["metaData"] : (function () { throw new RuntimeError('Variable "metaData" does not exist.', 13, $this->source); })()), "description", [], "any", false, false, false, 13)) {
// line 14
echo " <meta name=\"description\" content=\"";
echo twig_get_attribute($this->env, $this->source, (isset($context["metaData"]) || array_key_exists("metaData", $context) ? $context["metaData"] : (function () { throw new RuntimeError('Variable "metaData" does not exist.', 14, $this->source); })()), "description", [], "any", false, false, false, 14);
echo "\" />
";
}
// line 16
echo " ";
$context["cId"] = twig_get_attribute($this->env, $this->source, (isset($context["slider"]) || array_key_exists("slider", $context) ? $context["slider"] : (function () { throw new RuntimeError('Variable "slider" does not exist.', 16, $this->source); })()), "elementId", [], "any", false, false, false, 16);
// line 17
echo " ";
$context["cSlide"] = twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["slider"]) || array_key_exists("slider", $context) ? $context["slider"] : (function () { throw new RuntimeError('Variable "slider" does not exist.', 17, $this->source); })()), "elements", [], "any", false, false, false, 17), (isset($context["cId"]) || array_key_exists("cId", $context) ? $context["cId"] : (function () { throw new RuntimeError('Variable "cId" does not exist.', 17, $this->source); })()), [], "array", false, false, false, 17);
// line 18
echo " ";
if ((twig_get_attribute($this->env, $this->source, (isset($context["slider"]) || array_key_exists("slider", $context) ? $context["slider"] : (function () { throw new RuntimeError('Variable "slider" does not exist.', 18, $this->source); })()), "type", [], "any", false, false, false, 18) == "i")) {
// line 19
echo " \t";
$context["tempImgPath"] = twig_get_attribute($this->env, $this->source, (isset($context["cSlide"]) || array_key_exists("cSlide", $context) ? $context["cSlide"] : (function () { throw new RuntimeError('Variable "cSlide" does not exist.', 19, $this->source); })()), "pathImg", [], "any", false, false, false, 19);
// line 20
echo " \t";
$context["imgPathParts"] = twig_split_filter($this->env, (isset($context["tempImgPath"]) || array_key_exists("tempImgPath", $context) ? $context["tempImgPath"] : (function () { throw new RuntimeError('Variable "tempImgPath" does not exist.', 20, $this->source); })()), "/");
// line 21
echo " \t";
$context["imgFileName"] = ("z_" . twig_last($this->env, (isset($context["imgPathParts"]) || array_key_exists("imgPathParts", $context) ? $context["imgPathParts"] : (function () { throw new RuntimeError('Variable "imgPathParts" does not exist.', 21, $this->source); })())));
// line 22
echo " \t";
$context["smallImgPath"] = "";
// line 23
echo " \t";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["imgPathParts"]) || array_key_exists("imgPathParts", $context) ? $context["imgPathParts"] : (function () { throw new RuntimeError('Variable "imgPathParts" does not exist.', 23, $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["part"]) {
// line 24
echo " \t\t";
if ( !twig_get_attribute($this->env, $this->source, $context["loop"], "last", [], "any", false, false, false, 24)) {
// line 25
echo " \t\t\t";
$context["smallImgPath"] = (((isset($context["smallImgPath"]) || array_key_exists("smallImgPath", $context) ? $context["smallImgPath"] : (function () { throw new RuntimeError('Variable "smallImgPath" does not exist.', 25, $this->source); })()) . $context["part"]) . "/");
// line 26
echo " \t\t";
}
// line 27
echo " \t";
++$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['part'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 28
echo " \t";
$context["smallImgPath"] = ((isset($context["smallImgPath"]) || array_key_exists("smallImgPath", $context) ? $context["smallImgPath"] : (function () { throw new RuntimeError('Variable "smallImgPath" does not exist.', 28, $this->source); })()) . (isset($context["imgFileName"]) || array_key_exists("imgFileName", $context) ? $context["imgFileName"] : (function () { throw new RuntimeError('Variable "imgFileName" does not exist.', 28, $this->source); })()));
// line 29
echo " ";
} else {
// line 30
echo " \t";
$context["smallImgPath"] = twig_get_attribute($this->env, $this->source, (isset($context["cSlide"]) || array_key_exists("cSlide", $context) ? $context["cSlide"] : (function () { throw new RuntimeError('Variable "cSlide" does not exist.', 30, $this->source); })()), "artImgSrc", [], "any", false, false, false, 30);
// line 31
echo " ";
}
// line 32
echo " ";
$context["smallImgPath"] = twig_replace_filter((isset($context["smallImgPath"]) || array_key_exists("smallImgPath", $context) ? $context["smallImgPath"] : (function () { throw new RuntimeError('Variable "smallImgPath" does not exist.', 32, $this->source); })()), [".webp" => ".jpg"]);
// line 33
echo " ";
$context["imgWidth"] = 0;
// line 34
echo " ";
if (twig_get_attribute($this->env, $this->source, ($context["cSlide"] ?? null), "width", [], "any", true, true, false, 34)) {
// line 35
echo " ";
$context["imgWidth"] = twig_get_attribute($this->env, $this->source, (isset($context["cSlide"]) || array_key_exists("cSlide", $context) ? $context["cSlide"] : (function () { throw new RuntimeError('Variable "cSlide" does not exist.', 35, $this->source); })()), "width", [], "any", false, false, false, 35);
// line 36
echo " ";
} elseif (twig_get_attribute($this->env, $this->source, ($context["cSlide"] ?? null), "x", [], "any", true, true, false, 36)) {
// line 37
echo " ";
$context["imgWidth"] = twig_get_attribute($this->env, $this->source, (isset($context["cSlide"]) || array_key_exists("cSlide", $context) ? $context["cSlide"] : (function () { throw new RuntimeError('Variable "cSlide" does not exist.', 37, $this->source); })()), "x", [], "any", false, false, false, 37);
// line 38
echo " ";
}
// line 39
echo " ";
$context["imgHeight"] = 0;
// line 40
echo " ";
if (twig_get_attribute($this->env, $this->source, ($context["cSlide"] ?? null), "height", [], "any", true, true, false, 40)) {
// line 41
echo " ";
$context["imgHeight"] = twig_get_attribute($this->env, $this->source, (isset($context["cSlide"]) || array_key_exists("cSlide", $context) ? $context["cSlide"] : (function () { throw new RuntimeError('Variable "cSlide" does not exist.', 41, $this->source); })()), "height", [], "any", false, false, false, 41);
// line 42
echo " ";
} elseif (twig_get_attribute($this->env, $this->source, ($context["cSlide"] ?? null), "y", [], "any", true, true, false, 42)) {
// line 43
echo " ";
$context["imgHeight"] = twig_get_attribute($this->env, $this->source, (isset($context["cSlide"]) || array_key_exists("cSlide", $context) ? $context["cSlide"] : (function () { throw new RuntimeError('Variable "cSlide" does not exist.', 43, $this->source); })()), "y", [], "any", false, false, false, 43);
// line 44
echo " ";
}
// line 45
echo "
<meta property=\"og:type\" content=\"website\" />
<meta property=\"og:title\" content=\"";
// line 47
echo twig_get_attribute($this->env, $this->source, (isset($context["metaData"]) || array_key_exists("metaData", $context) ? $context["metaData"] : (function () { throw new RuntimeError('Variable "metaData" does not exist.', 47, $this->source); })()), "title", [], "any", false, false, false, 47);
echo "\" />
<meta property=\"og:description\" content=\"";
// line 48
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["metaData"]) || array_key_exists("metaData", $context) ? $context["metaData"] : (function () { throw new RuntimeError('Variable "metaData" does not exist.', 48, $this->source); })()), "description", [], "any", false, false, false, 48), "html", null, true);
echo "\" />
<meta property=\"og:image\" content=\"";
// line 49
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["te"]) || array_key_exists("te", $context) ? $context["te"] : (function () { throw new RuntimeError('Variable "te" does not exist.', 49, $this->source); })()), "replaceStr", [0 => "\\", 1 => "/", 2 => (isset($context["smallImgPath"]) || array_key_exists("smallImgPath", $context) ? $context["smallImgPath"] : (function () { throw new RuntimeError('Variable "smallImgPath" does not exist.', 49, $this->source); })())], "method", false, false, false, 49), "html", null, true);
echo "\" />
<meta property=\"og:image:width\" content=\"";
// line 50
echo twig_escape_filter($this->env, (isset($context["imgWidth"]) || array_key_exists("imgWidth", $context) ? $context["imgWidth"] : (function () { throw new RuntimeError('Variable "imgWidth" does not exist.', 50, $this->source); })()), "html", null, true);
echo "\" />
<meta property=\"og:image:height\" content=\"";
// line 51
echo twig_escape_filter($this->env, (isset($context["imgHeight"]) || array_key_exists("imgHeight", $context) ? $context["imgHeight"] : (function () { throw new RuntimeError('Variable "imgHeight" does not exist.', 51, $this->source); })()), "html", null, true);
echo "\" />
<meta property=\"og:image:type\" content=\"image/jpeg\" />
<meta property=\"og:locale\" content=\"";
// line 53
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["te"]) || array_key_exists("te", $context) ? $context["te"] : (function () { throw new RuntimeError('Variable "te" does not exist.', 53, $this->source); })()), "locale", [], "any", false, false, false, 53), "getCurLocaleISO", [], "method", false, false, false, 53), "html", null, true);
echo "\" />
<meta property=\"og:url\" content=\"";
// line 54
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["te"]) || array_key_exists("te", $context) ? $context["te"] : (function () { throw new RuntimeError('Variable "te" does not exist.', 54, $this->source); })()), "request", [], "any", false, false, false, 54), "uri", [], "any", false, false, false, 54), "html", null, true);
echo "\" />
<meta property=\"og:site_name\" content=\"Tile.Expert\" />
<meta name=\"Priority\" content=\"0\" />
<meta name=\"locale\" content=\"";
// line 57
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["te"]) || array_key_exists("te", $context) ? $context["te"] : (function () { throw new RuntimeError('Variable "te" does not exist.', 57, $this->source); })()), "locale", [], "any", false, false, false, 57), "getCurLocaleISO", [], "method", false, false, false, 57), "html", null, true);
echo "\" />
<!--<PageMap>
<DataObject type=\"thumbnail\">
<Attribute name=\"src\" value=\"";
// line 61
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["te"]) || array_key_exists("te", $context) ? $context["te"] : (function () { throw new RuntimeError('Variable "te" does not exist.', 61, $this->source); })()), "replaceStr", [0 => "\\", 1 => "/", 2 => (isset($context["smallImgPath"]) || array_key_exists("smallImgPath", $context) ? $context["smallImgPath"] : (function () { throw new RuntimeError('Variable "smallImgPath" does not exist.', 61, $this->source); })())], "method", false, false, false, 61), "html", null, true);
echo "\" />
<Attribute name=\"width\" value=\"";
// line 62
echo twig_escape_filter($this->env, (isset($context["imgWidth"]) || array_key_exists("imgWidth", $context) ? $context["imgWidth"] : (function () { throw new RuntimeError('Variable "imgWidth" does not exist.', 62, $this->source); })()), "html", null, true);
echo "\" />
<Attribute name=\"height\" value=\"";
// line 63
echo twig_escape_filter($this->env, (isset($context["imgHeight"]) || array_key_exists("imgHeight", $context) ? $context["imgHeight"] : (function () { throw new RuntimeError('Variable "imgHeight" does not exist.', 63, $this->source); })()), "html", null, true);
echo "\" />
</DataObject>
</PageMap>-->
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d->leave($__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d_prof);
}
// line 69
public function block_stylesheets($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d = $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
$__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d->enter($__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheets"));
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheets"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheets"));
// line 70
echo " <link rel=\"stylesheet\" href=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("_css/collection.min.css"), "html", null, true);
echo "\" />
<link href=\"";
// line 71
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("build/stylesheets/common_components.css"), "html", null, true);
echo "\" rel=\"stylesheet\"/>
";
// line 73
if ($this->extensions['SunCat\MobileDetectBundle\Twig\Extension\MobileDetectExtension']->isMobile()) {
// line 74
echo " ";
if ($this->extensions['SunCat\MobileDetectBundle\Twig\Extension\MobileDetectExtension']->isTablet()) {
// line 75
echo " <link rel=\"stylesheet\" href=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("_css/slide-show-tablet.min.css"), "html", null, true);
echo "\" />
";
}
// line 77
echo " ";
if (((twig_get_attribute($this->env, $this->source, (isset($context["slider"]) || array_key_exists("slider", $context) ? $context["slider"] : (function () { throw new RuntimeError('Variable "slider" does not exist.', 77, $this->source); })()), "type", [], "any", false, false, false, 77) == "a") || !$this->extensions['SunCat\MobileDetectBundle\Twig\Extension\MobileDetectExtension']->isTablet())) {
// line 78
echo " <link rel=\"stylesheet\" href=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("_css/slide-show-mobile.min.css"), "html", null, true);
echo "\" />
";
}
// line 80
echo " ";
} else {
// line 81
echo " <link rel=\"stylesheet\" href=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("_css/slide-show.min.css"), "html", null, true);
echo "\" />
";
}
// line 83
echo "
";
// line 84
if ( !twig_get_attribute($this->env, $this->source, (isset($context["slider"]) || array_key_exists("slider", $context) ? $context["slider"] : (function () { throw new RuntimeError('Variable "slider" does not exist.', 84, $this->source); })()), "msg", [], "any", false, false, false, 84)) {
// line 85
echo " ";
$this->loadTemplate("@Web/Slider/ldjson.html.twig", "@Web/Slider/index.html.twig", 85)->display(twig_array_merge($context, ["slider" => (isset($context["slider"]) || array_key_exists("slider", $context) ? $context["slider"] : (function () { throw new RuntimeError('Variable "slider" does not exist.', 85, $this->source); })()), "meta" => (isset($context["metaData"]) || array_key_exists("metaData", $context) ? $context["metaData"] : (function () { throw new RuntimeError('Variable "metaData" does not exist.', 85, $this->source); })())]));
// line 86
echo " ";
}
// line 87
echo "
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d->leave($__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d_prof);
}
// line 90
public function block_javascripts($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d = $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
$__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d->enter($__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
// line 91
echo " ";
$this->displayParentBlock("javascripts", $context, $blocks);
echo "
";
// line 92
if ((twig_get_attribute($this->env, $this->source, (isset($context["slider"]) || array_key_exists("slider", $context) ? $context["slider"] : (function () { throw new RuntimeError('Variable "slider" does not exist.', 92, $this->source); })()), "type", [], "any", false, false, false, 92) == "i")) {
// line 93
echo " <script src=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("_js/slide-show-react.min.js"), "html", null, true);
echo "\"></script>
";
}
// line 95
echo " <script src=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("build/client-bundle.js"), "html", null, true);
echo "\"></script>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d->leave($__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d_prof);
}
// line 98
public function block_content($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d = $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
$__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d->enter($__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
// line 99
echo " ";
if (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["initialState"]) || array_key_exists("initialState", $context) ? $context["initialState"] : (function () { throw new RuntimeError('Variable "initialState" does not exist.', 99, $this->source); })()), "slider", [], "any", false, false, false, 99), "msg", [], "any", false, false, false, 99)) {
// line 100
echo " <div class=\"no-project-msg\">
<h1><b>";
// line 101
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["initialState"]) || array_key_exists("initialState", $context) ? $context["initialState"] : (function () { throw new RuntimeError('Variable "initialState" does not exist.', 101, $this->source); })()), "slider", [], "any", false, false, false, 101), "msg", [], "any", false, false, false, 101), "header", [], "any", false, false, false, 101), "html", null, true);
echo "</b></h1>
<p>
";
// line 103
echo twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["initialState"]) || array_key_exists("initialState", $context) ? $context["initialState"] : (function () { throw new RuntimeError('Variable "initialState" does not exist.', 103, $this->source); })()), "slider", [], "any", false, false, false, 103), "msg", [], "any", false, false, false, 103), "body", [], "any", false, false, false, 103);
echo "
</p>
</div>
";
} else {
// line 107
echo " ";
echo $this->extensions['Limenius\ReactRenderer\Twig\ReactRenderExtension']->reactReduxStore("appStore", (isset($context["initialState"]) || array_key_exists("initialState", $context) ? $context["initialState"] : (function () { throw new RuntimeError('Variable "initialState" does not exist.', 107, $this->source); })()));
echo "
";
// line 108
echo $this->extensions['Limenius\ReactRenderer\Twig\ReactRenderExtension']->reactRenderComponent("App", ["rendering" => twig_get_attribute($this->env, $this->source, (isset($context["te"]) || array_key_exists("te", $context) ? $context["te"] : (function () { throw new RuntimeError('Variable "te" does not exist.', 108, $this->source); })()), "parameter", [0 => "react_rendering"], "method", false, false, false, 108), "props" => $this->extensions['WebBundle\Twig\AppExtension']->baseProps()]);
echo "
";
}
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d->leave($__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d_prof);
}
public function getTemplateName()
{
return "@Web/Slider/index.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 487 => 108, 482 => 107, 475 => 103, 470 => 101, 467 => 100, 464 => 99, 451 => 98, 435 => 95, 429 => 93, 427 => 92, 422 => 91, 409 => 90, 395 => 87, 392 => 86, 389 => 85, 387 => 84, 384 => 83, 378 => 81, 375 => 80, 369 => 78, 366 => 77, 360 => 75, 357 => 74, 355 => 73, 350 => 71, 345 => 70, 332 => 69, 315 => 63, 311 => 62, 307 => 61, 300 => 57, 294 => 54, 290 => 53, 285 => 51, 281 => 50, 277 => 49, 273 => 48, 269 => 47, 265 => 45, 262 => 44, 259 => 43, 256 => 42, 253 => 41, 250 => 40, 247 => 39, 244 => 38, 241 => 37, 238 => 36, 235 => 35, 232 => 34, 229 => 33, 226 => 32, 223 => 31, 220 => 30, 217 => 29, 214 => 28, 200 => 27, 197 => 26, 194 => 25, 191 => 24, 173 => 23, 170 => 22, 167 => 21, 164 => 20, 161 => 19, 158 => 18, 155 => 17, 152 => 16, 146 => 14, 143 => 13, 130 => 12, 114 => 8, 101 => 7, 85 => 4, 72 => 3, 58 => 1, 56 => 11, 40 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends '@Web/layout.html.twig' %}
{% block title %}
{{ metaData.title | raw }}
{% endblock %}
{% block extraGoogleTagScript %}
{{ include('@Web/google_gtag.html.twig') }}
{% endblock %}
{% set slider = initialState.slider %}
{% block meta %}
{% if metaData.description %}
<meta name=\"description\" content=\"{{ metaData.description | raw }}\" />
{% endif %}
{% set cId = slider.elementId %}
{% set cSlide = slider.elements[cId] %}
{% if slider.type == 'i' %}
\t{% set tempImgPath = cSlide.pathImg %}
\t{% set imgPathParts = tempImgPath | split('/') %}
\t{% set imgFileName = 'z_' ~ imgPathParts | last %}
\t{% set smallImgPath = '' %}
\t{% for part in imgPathParts %}
\t\t{% if not loop.last %}
\t\t\t{% set smallImgPath = smallImgPath ~ part ~ '/' %}
\t\t{% endif %}
\t{% endfor %}
\t{% set smallImgPath = smallImgPath ~ imgFileName %}
{% else %}
\t{% set smallImgPath = cSlide.artImgSrc %}
{% endif %}
{% set smallImgPath = smallImgPath | replace({'.webp': '.jpg'}) %}
{% set imgWidth = 0 %}
{% if cSlide.width is defined %}
{% set imgWidth = cSlide.width %}
{% elseif cSlide.x is defined %}
{% set imgWidth = cSlide.x %}
{% endif %}
{% set imgHeight = 0 %}
{% if cSlide.height is defined %}
{% set imgHeight = cSlide.height %}
{% elseif cSlide.y is defined %}
{% set imgHeight = cSlide.y %}
{% endif %}
<meta property=\"og:type\" content=\"website\" />
<meta property=\"og:title\" content=\"{{ metaData.title | raw }}\" />
<meta property=\"og:description\" content=\"{{ metaData.description }}\" />
<meta property=\"og:image\" content=\"{{ te.replaceStr('\\\\', '/', smallImgPath) }}\" />
<meta property=\"og:image:width\" content=\"{{ imgWidth }}\" />
<meta property=\"og:image:height\" content=\"{{ imgHeight }}\" />
<meta property=\"og:image:type\" content=\"image/jpeg\" />
<meta property=\"og:locale\" content=\"{{ te.locale.getCurLocaleISO() }}\" />
<meta property=\"og:url\" content=\"{{ te.request.uri }}\" />
<meta property=\"og:site_name\" content=\"Tile.Expert\" />
<meta name=\"Priority\" content=\"0\" />
<meta name=\"locale\" content=\"{{ te.locale.getCurLocaleISO() }}\" />
<!--<PageMap>
<DataObject type=\"thumbnail\">
<Attribute name=\"src\" value=\"{{ te.replaceStr('\\\\', '/', smallImgPath) }}\" />
<Attribute name=\"width\" value=\"{{ imgWidth }}\" />
<Attribute name=\"height\" value=\"{{ imgHeight }}\" />
</DataObject>
</PageMap>-->
{% endblock %}
{% block stylesheets %}
<link rel=\"stylesheet\" href=\"{{ asset('_css/collection.min.css') }}\" />
<link href=\"{{ asset('build/stylesheets/common_components.css') }}\" rel=\"stylesheet\"/>
{% if is_mobile() %}
{% if is_tablet() %}
<link rel=\"stylesheet\" href=\"{{ asset('_css/slide-show-tablet.min.css') }}\" />
{% endif %}
{% if slider.type == 'a' or not is_tablet() %}
<link rel=\"stylesheet\" href=\"{{ asset('_css/slide-show-mobile.min.css') }}\" />
{% endif %}
{% else %}
<link rel=\"stylesheet\" href=\"{{ asset('_css/slide-show.min.css') }}\" />
{% endif %}
{% if not slider.msg %}
{% include '@Web/Slider/ldjson.html.twig' with { 'slider': slider, 'meta': metaData } %}
{% endif %}
{% endblock %}
{% block javascripts %}
{{ parent() }}
{% if slider.type == 'i' %}
<script src=\"{{ asset('_js/slide-show-react.min.js') }}\"></script>
{% endif %}
<script src=\"{{ asset('build/client-bundle.js') }}\"></script>
{% endblock %}
{% block content %}
{% if initialState.slider.msg %}
<div class=\"no-project-msg\">
<h1><b>{{ initialState.slider.msg.header }}</b></h1>
<p>
{{ initialState.slider.msg.body | raw }}
</p>
</div>
{% else %}
{{ redux_store('appStore', initialState) }}
{{ react_component('App', {'rendering': te.parameter('react_rendering'), 'props': baseProps()}) }}
{% endif %}
{% endblock %}
", "@Web/Slider/index.html.twig", "/var/www/dev5.tile.expert/src/WebBundle/Resources/views/Slider/index.html.twig");
}
}