<?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;
/* @AleaAreabricks/areas/herohome/view.html.twig */
class __TwigTemplate_bc68e04f8b58365d677572a9d1e53044 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
];
$this->sandbox = $this->env->getExtension('\Twig\Extension\SandboxExtension');
$this->checkSecurity();
}
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", "@AleaAreabricks/areas/herohome/view.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@AleaAreabricks/areas/herohome/view.html.twig"));
// line 1
$context["blockPositionMob"] = twig_get_attribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "select", "blockPositionMob"), "getData", [], "method", false, false, true, 1);
// line 2
$context["blockPositionDesk"] = twig_get_attribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "select", "blockPositionDesk"), "getData", [], "method", false, false, true, 2);
// line 3
$context["blockMaxWidth"] = twig_get_attribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "select", "blockMaxWidth"), "getData", [], "method", false, false, true, 3);
// line 4
$context["pagDesk"] = $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "checkbox", "pagDesk");
// line 5
$context["pagMob"] = $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "checkbox", "pagMob");
// line 6
$context["pagColor"] = twig_get_attribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "select", "pagColor"), "getData", [], "method", false, false, true, 6);
// line 7
$context["navDesk"] = $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "checkbox", "navDesk");
// line 8
$context["navMob"] = $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "checkbox", "navMob");
// line 9
$context["navColor"] = twig_get_attribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "select", "navColor"), "getData", [], "method", false, false, true, 9);
// line 10
$context["titleColor"] = twig_get_attribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "select", "titleColor"), "getData", [], "method", false, false, true, 10);
// line 11
$context["descColor"] = twig_get_attribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "select", "descColor"), "getData", [], "method", false, false, true, 11);
// line 12
$context["linkColor"] = twig_get_attribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "select", "linkColor"), "getData", [], "method", false, false, true, 12);
// line 13
echo "
";
// line 17
$context["pm"] = twig_get_attribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "select", "pm"), "getData", [], "method", false, false, true, 17);
echo " ";
// line 18
$context["psm"] = twig_get_attribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "select", "psm"), "getData", [], "method", false, false, true, 18);
echo " ";
// line 19
$context["ptm"] = twig_get_attribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "select", "ptm"), "getData", [], "method", false, false, true, 19);
echo " ";
// line 20
$context["pem"] = twig_get_attribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "select", "pem"), "getData", [], "method", false, false, true, 20);
echo " ";
// line 21
$context["pbm"] = twig_get_attribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "select", "pbm"), "getData", [], "method", false, false, true, 21);
echo " ";
// line 23
$context["pd"] = twig_get_attribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "select", "pd"), "getData", [], "method", false, false, true, 23);
// line 24
$context["psd"] = twig_get_attribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "select", "psd"), "getData", [], "method", false, false, true, 24);
// line 25
$context["ptd"] = twig_get_attribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "select", "ptd"), "getData", [], "method", false, false, true, 25);
// line 26
$context["ped"] = twig_get_attribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "select", "ped"), "getData", [], "method", false, false, true, 26);
// line 27
$context["pbd"] = twig_get_attribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "select", "pbd"), "getData", [], "method", false, false, true, 27);
// line 28
echo "
";
// line 29
if ((isset($context["editmode"]) || array_key_exists("editmode", $context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.', 29, $this->source); })())) {
echo "
";
// line 30
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "block", "slides"), "iterator", [], "any", false, false, true, 30));
foreach ($context['_seq'] as $context["_key"] => $context["b"]) {
// line 31
echo " <p><strong>Foto</strong></p>
";
// line 32
echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "image", "image", ["height" => 300]);
echo "
<p><strong>Titolo</strong></p>
";
// line 34
echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "textarea", "title");
echo "
<p><strong>Paragrafo</strong></p>
";
// line 36
echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "wysiwyg", "paragraph");
echo "
<p><strong>Link</strong></p>
";
// line 38
echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "link", "link");
echo "
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['b'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 40
echo "
";
} else {
// line 43
echo "
<section>
<div class=\"swiper slider-home\">
<div class=\"swiper-wrapper\">
";
// line 49
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "block", "slides"), "iterator", [], "any", false, false, true, 49));
foreach ($context['_seq'] as $context["_key"] => $context["b"]) {
// line 50
echo " ";
$context["title"] = $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "textarea", "title", ["nl2br" => true]);
// line 51
echo " ";
$context["paragraph"] = $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "wysiwyg", "paragraph");
// line 52
echo " ";
$context["link"] = $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "link", "link");
// line 53
echo " ";
$context["image"] = $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "image", "image");
// line 54
echo " <div class=\"swiper-slide\">
<div class=\"d-none position-absolute w-100 h-100 d-flex flex-column
";
// line 56
echo twig_escape_filter($this->env, ((array_key_exists("blockPositionDesk", $context)) ? (_twig_default_filter($this->sandbox->ensureToStringAllowed((isset($context["blockPositionDesk"]) || array_key_exists("blockPositionDesk", $context) ? $context["blockPositionDesk"] : (function () { throw new RuntimeError('Variable "blockPositionDesk" does not exist.', 56, $this->source); })()), 56, $this->source), "justify-content-lg-end align-items-lg-start")) : ("justify-content-lg-end align-items-lg-start")), "html", null, true);
echo "
";
// line 57
echo twig_escape_filter($this->env, ((array_key_exists("blockPositionMob", $context)) ? (_twig_default_filter($this->sandbox->ensureToStringAllowed((isset($context["blockPositionMob"]) || array_key_exists("blockPositionMob", $context) ? $context["blockPositionMob"] : (function () { throw new RuntimeError('Variable "blockPositionMob" does not exist.', 57, $this->source); })()), 57, $this->source), "justify-content-end align-items-center")) : ("justify-content-end align-items-center")), "html", null, true);
echo "
";
// line 58
if (((isset($context["pm"]) || array_key_exists("pm", $context) ? $context["pm"] : (function () { throw new RuntimeError('Variable "pm" does not exist.', 58, $this->source); })()) && ((isset($context["pm"]) || array_key_exists("pm", $context) ? $context["pm"] : (function () { throw new RuntimeError('Variable "pm" does not exist.', 58, $this->source); })()) != ""))) {
echo " p-";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed((isset($context["pm"]) || array_key_exists("pm", $context) ? $context["pm"] : (function () { throw new RuntimeError('Variable "pm" does not exist.', 58, $this->source); })()), 58, $this->source), "html", null, true);
echo " ";
}
// line 59
echo " ";
if (((isset($context["pd"]) || array_key_exists("pd", $context) ? $context["pd"] : (function () { throw new RuntimeError('Variable "pd" does not exist.', 59, $this->source); })()) && ((isset($context["pd"]) || array_key_exists("pd", $context) ? $context["pd"] : (function () { throw new RuntimeError('Variable "pd" does not exist.', 59, $this->source); })()) != ""))) {
echo " p-";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed((isset($context["pd"]) || array_key_exists("pd", $context) ? $context["pd"] : (function () { throw new RuntimeError('Variable "pd" does not exist.', 59, $this->source); })()), 59, $this->source), "html", null, true);
echo " ";
}
// line 60
echo " ";
if (((isset($context["psm"]) || array_key_exists("psm", $context) ? $context["psm"] : (function () { throw new RuntimeError('Variable "psm" does not exist.', 60, $this->source); })()) && ((isset($context["psm"]) || array_key_exists("psm", $context) ? $context["psm"] : (function () { throw new RuntimeError('Variable "psm" does not exist.', 60, $this->source); })()) != ""))) {
echo " ps-";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed((isset($context["psm"]) || array_key_exists("psm", $context) ? $context["psm"] : (function () { throw new RuntimeError('Variable "psm" does not exist.', 60, $this->source); })()), 60, $this->source), "html", null, true);
echo " ";
}
// line 61
echo " ";
if (((isset($context["psd"]) || array_key_exists("psd", $context) ? $context["psd"] : (function () { throw new RuntimeError('Variable "psd" does not exist.', 61, $this->source); })()) && ((isset($context["psd"]) || array_key_exists("psd", $context) ? $context["psd"] : (function () { throw new RuntimeError('Variable "psd" does not exist.', 61, $this->source); })()) != ""))) {
echo " ps-lg-";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed((isset($context["psd"]) || array_key_exists("psd", $context) ? $context["psd"] : (function () { throw new RuntimeError('Variable "psd" does not exist.', 61, $this->source); })()), 61, $this->source), "html", null, true);
echo " ";
}
// line 62
echo " ";
if (((isset($context["ptm"]) || array_key_exists("ptm", $context) ? $context["ptm"] : (function () { throw new RuntimeError('Variable "ptm" does not exist.', 62, $this->source); })()) && ((isset($context["ptm"]) || array_key_exists("ptm", $context) ? $context["ptm"] : (function () { throw new RuntimeError('Variable "ptm" does not exist.', 62, $this->source); })()) != ""))) {
echo " pt-";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed((isset($context["ptm"]) || array_key_exists("ptm", $context) ? $context["ptm"] : (function () { throw new RuntimeError('Variable "ptm" does not exist.', 62, $this->source); })()), 62, $this->source), "html", null, true);
echo " ";
}
// line 63
echo " ";
if (((isset($context["ptd"]) || array_key_exists("ptd", $context) ? $context["ptd"] : (function () { throw new RuntimeError('Variable "ptd" does not exist.', 63, $this->source); })()) && ((isset($context["ptd"]) || array_key_exists("ptd", $context) ? $context["ptd"] : (function () { throw new RuntimeError('Variable "ptd" does not exist.', 63, $this->source); })()) != ""))) {
echo " pt-lg-";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed((isset($context["ptd"]) || array_key_exists("ptd", $context) ? $context["ptd"] : (function () { throw new RuntimeError('Variable "ptd" does not exist.', 63, $this->source); })()), 63, $this->source), "html", null, true);
echo " ";
}
// line 64
echo " ";
if (((isset($context["pem"]) || array_key_exists("pem", $context) ? $context["pem"] : (function () { throw new RuntimeError('Variable "pem" does not exist.', 64, $this->source); })()) && ((isset($context["pem"]) || array_key_exists("pem", $context) ? $context["pem"] : (function () { throw new RuntimeError('Variable "pem" does not exist.', 64, $this->source); })()) != ""))) {
echo " pe-";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed((isset($context["pem"]) || array_key_exists("pem", $context) ? $context["pem"] : (function () { throw new RuntimeError('Variable "pem" does not exist.', 64, $this->source); })()), 64, $this->source), "html", null, true);
echo " ";
}
// line 65
echo " ";
if (((isset($context["ped"]) || array_key_exists("ped", $context) ? $context["ped"] : (function () { throw new RuntimeError('Variable "ped" does not exist.', 65, $this->source); })()) && ((isset($context["ped"]) || array_key_exists("ped", $context) ? $context["ped"] : (function () { throw new RuntimeError('Variable "ped" does not exist.', 65, $this->source); })()) != ""))) {
echo " pe-lg-";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed((isset($context["ped"]) || array_key_exists("ped", $context) ? $context["ped"] : (function () { throw new RuntimeError('Variable "ped" does not exist.', 65, $this->source); })()), 65, $this->source), "html", null, true);
echo " ";
}
// line 66
echo " ";
if (((isset($context["pbm"]) || array_key_exists("pbm", $context) ? $context["pbm"] : (function () { throw new RuntimeError('Variable "pbm" does not exist.', 66, $this->source); })()) && ((isset($context["pbm"]) || array_key_exists("pbm", $context) ? $context["pbm"] : (function () { throw new RuntimeError('Variable "pbm" does not exist.', 66, $this->source); })()) != ""))) {
echo " pb-";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed((isset($context["pbm"]) || array_key_exists("pbm", $context) ? $context["pbm"] : (function () { throw new RuntimeError('Variable "pbm" does not exist.', 66, $this->source); })()), 66, $this->source), "html", null, true);
echo " ";
}
// line 67
echo " ";
if (((isset($context["pbd"]) || array_key_exists("pbd", $context) ? $context["pbd"] : (function () { throw new RuntimeError('Variable "pbd" does not exist.', 67, $this->source); })()) && ((isset($context["pbd"]) || array_key_exists("pbd", $context) ? $context["pbd"] : (function () { throw new RuntimeError('Variable "pbd" does not exist.', 67, $this->source); })()) != ""))) {
echo " pb-lg-";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed((isset($context["pbd"]) || array_key_exists("pbd", $context) ? $context["pbd"] : (function () { throw new RuntimeError('Variable "pbd" does not exist.', 67, $this->source); })()), 67, $this->source), "html", null, true);
echo " ";
}
// line 68
echo " \">
<div class=\"content ";
// line 69
if ((isset($context["blockMaxWidth"]) || array_key_exists("blockMaxWidth", $context) ? $context["blockMaxWidth"] : (function () { throw new RuntimeError('Variable "blockMaxWidth" does not exist.', 69, $this->source); })())) {
echo "mw-lg-";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed((isset($context["blockMaxWidth"]) || array_key_exists("blockMaxWidth", $context) ? $context["blockMaxWidth"] : (function () { throw new RuntimeError('Variable "blockMaxWidth" does not exist.', 69, $this->source); })()), 69, $this->source), "html", null, true);
}
echo "\">
<h1 class=\"";
// line 70
echo twig_escape_filter($this->env, ((array_key_exists("titleColor", $context)) ? (_twig_default_filter($this->sandbox->ensureToStringAllowed((isset($context["titleColor"]) || array_key_exists("titleColor", $context) ? $context["titleColor"] : (function () { throw new RuntimeError('Variable "titleColor" does not exist.', 70, $this->source); })()), 70, $this->source), "text-secondary")) : ("text-secondary")), "html", null, true);
echo "\">";
echo $this->sandbox->ensureToStringAllowed((isset($context["title"]) || array_key_exists("title", $context) ? $context["title"] : (function () { throw new RuntimeError('Variable "title" does not exist.', 70, $this->source); })()), 70, $this->source);
echo "</h1>
";
// line 71
if ( !twig_get_attribute($this->env, $this->source, (isset($context["paragraph"]) || array_key_exists("paragraph", $context) ? $context["paragraph"] : (function () { throw new RuntimeError('Variable "paragraph" does not exist.', 71, $this->source); })()), "isEmpty", [], "method", false, false, true, 71)) {
echo "<div class=\"";
echo twig_escape_filter($this->env, ((array_key_exists("descColor", $context)) ? (_twig_default_filter($this->sandbox->ensureToStringAllowed((isset($context["descColor"]) || array_key_exists("descColor", $context) ? $context["descColor"] : (function () { throw new RuntimeError('Variable "descColor" does not exist.', 71, $this->source); })()), 71, $this->source), "text-secondary")) : ("text-secondary")), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed((isset($context["paragraph"]) || array_key_exists("paragraph", $context) ? $context["paragraph"] : (function () { throw new RuntimeError('Variable "paragraph" does not exist.', 71, $this->source); })()), 71, $this->source), "html", null, true);
echo "</div>";
}
// line 72
echo " <a href=\"";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["link"]) || array_key_exists("link", $context) ? $context["link"] : (function () { throw new RuntimeError('Variable "link" does not exist.', 72, $this->source); })()), "getHref", [], "method", false, false, true, 72), 72, $this->source), "html", null, true);
echo "\" target=\"";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["link"]) || array_key_exists("link", $context) ? $context["link"] : (function () { throw new RuntimeError('Variable "link" does not exist.', 72, $this->source); })()), "getTarget", [], "method", false, false, true, 72), 72, $this->source), "html", null, true);
echo "\" class=\"link text-underline ";
echo twig_escape_filter($this->env, ((array_key_exists("linkColor", $context)) ? (_twig_default_filter($this->sandbox->ensureToStringAllowed((isset($context["linkColor"]) || array_key_exists("linkColor", $context) ? $context["linkColor"] : (function () { throw new RuntimeError('Variable "linkColor" does not exist.', 72, $this->source); })()), 72, $this->source), "text-secondary")) : ("text-secondary")), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["link"]) || array_key_exists("link", $context) ? $context["link"] : (function () { throw new RuntimeError('Variable "link" does not exist.', 72, $this->source); })()), "getText", [], "method", false, false, true, 72), 72, $this->source), "html", null, true);
echo "</a>
</div>
</div>
";
// line 78
echo " <div class=\"image overflow-hidden\" />
";
// line 80
echo $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["image"]) || array_key_exists("image", $context) ? $context["image"] : (function () { throw new RuntimeError('Variable "image" does not exist.', 80, $this->source); })()), "thumbnail", [0 => "slide_home"], "method", false, false, true, 80), "html", [0 => ["pictureAttributes" => ["class" => "w-100 h-100 d-block"], "imgAttributes" => ["class" => "w-100 h-100 object-fit-cover"]]], "method", false, false, true, 80), 80, $this->source);
// line 87
echo "
</div>
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['b'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 92
echo "
</div>
<div class=\"swiper-pagination\"></div>
<div class=\"swiper-button-prev text-";
// line 96
echo twig_escape_filter($this->env, ((array_key_exists("navColor", $context)) ? (_twig_default_filter($this->sandbox->ensureToStringAllowed((isset($context["navColor"]) || array_key_exists("navColor", $context) ? $context["navColor"] : (function () { throw new RuntimeError('Variable "navColor" does not exist.', 96, $this->source); })()), 96, $this->source), "black")) : ("black")), "html", null, true);
echo " ps-20\"></div>
<div class=\"swiper-button-next text-";
// line 97
echo twig_escape_filter($this->env, ((array_key_exists("navColor", $context)) ? (_twig_default_filter($this->sandbox->ensureToStringAllowed((isset($context["navColor"]) || array_key_exists("navColor", $context) ? $context["navColor"] : (function () { throw new RuntimeError('Variable "navColor" does not exist.', 97, $this->source); })()), 97, $this->source), "black")) : ("black")), "html", null, true);
echo " pe-20\"></div>
</div>
</section>
";
// line 101
twig_get_attribute($this->env, $this->source, $this->env->getFunction('pimcore_head_script')->getCallable()(), "appendFile", [0 => (isset($context["swiper_js"]) || array_key_exists("swiper_js", $context) ? $context["swiper_js"] : (function () { throw new RuntimeError('Variable "swiper_js" does not exist.', 101, $this->source); })())], "method", false, false, true, 101);
echo "\t
<script>
document.addEventListener(\"DOMContentLoaded\", (event) => {
const swiper = new Swiper('.swiper.slider-home', {
// Default parameters
slidesPerView: 1,
loop: true,
autoplay: {
delay:2500,
},
speed: 1500,
pagination: {
el: '.swiper-pagination',
type: 'bullets',
enabled: ";
// line 115
if (twig_get_attribute($this->env, $this->source, (isset($context["pagMob"]) || array_key_exists("pagMob", $context) ? $context["pagMob"] : (function () { throw new RuntimeError('Variable "pagMob" does not exist.', 115, $this->source); })()), "isChecked", [], "method", false, false, true, 115)) {
echo "true";
} else {
echo "false";
}
echo ",
},
navigation: {
nextEl: '.swiper-button-next',
prevEl: '.swiper-button-prev',
enabled: ";
// line 120
if (twig_get_attribute($this->env, $this->source, (isset($context["navMob"]) || array_key_exists("navMob", $context) ? $context["navMob"] : (function () { throw new RuntimeError('Variable "navMob" does not exist.', 120, $this->source); })()), "isChecked", [], "method", false, false, true, 120)) {
echo "true";
} else {
echo "false";
}
echo ",
},
effect: 'fade',
fadeEffect: {
crossFade: true
},
/*effect: \"creative\",
creativeEffect: {
prev: {
shadow: true,
translate: [\"-20%\", 0, 0],
opacity:1,
},
next: {
translate: [\"100%\", 0, 0],
opacity:0.8,
},
},*/
// Responsive breakpoints
breakpoints: {
768: {
slidesPerView: 1,
pagination: {
enabled: ";
// line 143
if (twig_get_attribute($this->env, $this->source, (isset($context["pagDesk"]) || array_key_exists("pagDesk", $context) ? $context["pagDesk"] : (function () { throw new RuntimeError('Variable "pagDesk" does not exist.', 143, $this->source); })()), "isChecked", [], "method", false, false, true, 143)) {
echo "true";
} else {
echo "false";
}
echo ",
},
navigation: {
enabled: ";
// line 146
if (twig_get_attribute($this->env, $this->source, (isset($context["navDesk"]) || array_key_exists("navDesk", $context) ? $context["navDesk"] : (function () { throw new RuntimeError('Variable "navDesk" does not exist.', 146, $this->source); })()), "isChecked", [], "method", false, false, true, 146)) {
echo "true";
} else {
echo "false";
}
echo ",
}
}
}
});
});
</script>
";
}
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
public function getTemplateName()
{
return "@AleaAreabricks/areas/herohome/view.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 385 => 146, 375 => 143, 345 => 120, 333 => 115, 316 => 101, 309 => 97, 305 => 96, 299 => 92, 289 => 87, 287 => 80, 283 => 78, 270 => 72, 262 => 71, 256 => 70, 249 => 69, 246 => 68, 239 => 67, 232 => 66, 225 => 65, 218 => 64, 211 => 63, 204 => 62, 197 => 61, 190 => 60, 183 => 59, 177 => 58, 173 => 57, 169 => 56, 165 => 54, 162 => 53, 159 => 52, 156 => 51, 153 => 50, 149 => 49, 141 => 43, 136 => 40, 128 => 38, 123 => 36, 118 => 34, 113 => 32, 110 => 31, 106 => 30, 102 => 29, 99 => 28, 97 => 27, 95 => 26, 93 => 25, 91 => 24, 89 => 23, 86 => 21, 83 => 20, 80 => 19, 77 => 18, 74 => 17, 69 => 13, 67 => 12, 65 => 11, 63 => 10, 61 => 9, 59 => 8, 57 => 7, 55 => 6, 53 => 5, 51 => 4, 49 => 3, 47 => 2, 45 => 1,);
}
public function getSourceContext()
{
return new Source("{% set blockPositionMob = pimcore_select('blockPositionMob').getData() %}
{% set blockPositionDesk = pimcore_select('blockPositionDesk').getData() %}
{% set blockMaxWidth = pimcore_select('blockMaxWidth').getData() %}
{% set pagDesk = pimcore_checkbox('pagDesk') %}
{% set pagMob = pimcore_checkbox('pagMob') %}
{% set pagColor = pimcore_select('pagColor').getData() %}
{% set navDesk = pimcore_checkbox('navDesk') %}
{% set navMob = pimcore_checkbox('navMob') %}
{% set navColor = pimcore_select('navColor').getData() %}
{% set titleColor = pimcore_select('titleColor').getData() %}
{% set descColor = pimcore_select('descColor').getData() %}
{% set linkColor = pimcore_select('linkColor').getData() %}
{# mobile - padding #}
{% set pm = pimcore_select('pm').getData() %} {# all 4 sides #}
{% set psm = pimcore_select('psm').getData() %} {# left #}
{% set ptm = pimcore_select('ptm').getData() %} {# top #}
{% set pem = pimcore_select('pem').getData() %} {# right #}
{% set pbm = pimcore_select('pbm').getData() %} {# bottom #}
{# desktop - padding #}
{% set pd = pimcore_select('pd').getData() %}
{% set psd = pimcore_select('psd').getData() %}
{% set ptd = pimcore_select('ptd').getData() %}
{% set ped = pimcore_select('ped').getData() %}
{% set pbd = pimcore_select('pbd').getData() %}
{% if editmode %}
{% for b in pimcore_block(\"slides\").iterator %}
<p><strong>Foto</strong></p>
{{pimcore_image('image', {'height': 300})}}
<p><strong>Titolo</strong></p>
{{pimcore_textarea('title')}}
<p><strong>Paragrafo</strong></p>
{{pimcore_wysiwyg('paragraph')}}
<p><strong>Link</strong></p>
{{ pimcore_link('link')}}
{% endfor %}
{% else %}
<section>
<div class=\"swiper slider-home\">
<div class=\"swiper-wrapper\">
{% for b in pimcore_block(\"slides\").iterator %}
{% set title = pimcore_textarea('title',{'nl2br': true }) %}
{% set paragraph = pimcore_wysiwyg('paragraph') %}
{% set link = pimcore_link('link') %}
{% set image = pimcore_image('image') %}
<div class=\"swiper-slide\">
<div class=\"d-none position-absolute w-100 h-100 d-flex flex-column
{{ blockPositionDesk|default('justify-content-lg-end align-items-lg-start') }}
{{ blockPositionMob|default('justify-content-end align-items-center') }}
{% if pm and pm != '' %} p-{{pm}} {% endif %}
{% if pd and pd != '' %} p-{{pd}} {% endif %}
{% if psm and psm != '' %} ps-{{psm}} {% endif %}
{% if psd and psd != '' %} ps-lg-{{psd}} {% endif %}
{% if ptm and ptm != '' %} pt-{{ptm}} {% endif %}
{% if ptd and ptd != '' %} pt-lg-{{ptd}} {% endif %}
{% if pem and pem != '' %} pe-{{pem}} {% endif %}
{% if ped and ped != '' %} pe-lg-{{ped}} {% endif %}
{% if pbm and pbm != '' %} pb-{{pbm}} {% endif %}
{% if pbd and pbd != '' %} pb-lg-{{pbd}} {% endif %}
\">
<div class=\"content {% if blockMaxWidth %}mw-lg-{{blockMaxWidth}}{% endif %}\">
<h1 class=\"{{titleColor|default('text-secondary')}}\">{{ title|raw }}</h1>
{% if not paragraph.isEmpty() %}<div class=\"{{descColor|default('text-secondary')}}\">{{ paragraph }}</div>{% endif %}
<a href=\"{{ link.getHref() }}\" target=\"{{ link.getTarget() }}\" class=\"link text-underline {{linkColor|default('text-secondary')}}\">{{ link.getText() }}</a>
</div>
</div>
{#<div class=\"image\">
<img src=\"{{ image }}\" class=\"w-100\" />
</div>#}
<div class=\"image overflow-hidden\" />
{{ image.thumbnail('slide_home').html({
'pictureAttributes': {
'class': 'w-100 h-100 d-block'
},
'imgAttributes': {
'class': 'w-100 h-100 object-fit-cover'
}
}) | raw }}
</div>
</div>
{% endfor %}
</div>
<div class=\"swiper-pagination\"></div>
<div class=\"swiper-button-prev text-{{navColor|default('black')}} ps-20\"></div>
<div class=\"swiper-button-next text-{{navColor|default('black')}} pe-20\"></div>
</div>
</section>
{% do pimcore_head_script().appendFile(swiper_js) %}\t
<script>
document.addEventListener(\"DOMContentLoaded\", (event) => {
const swiper = new Swiper('.swiper.slider-home', {
// Default parameters
slidesPerView: 1,
loop: true,
autoplay: {
delay:2500,
},
speed: 1500,
pagination: {
el: '.swiper-pagination',
type: 'bullets',
enabled: {% if pagMob.isChecked() %}true{% else %}false{% endif %},
},
navigation: {
nextEl: '.swiper-button-next',
prevEl: '.swiper-button-prev',
enabled: {% if navMob.isChecked() %}true{% else %}false{% endif %},
},
effect: 'fade',
fadeEffect: {
crossFade: true
},
/*effect: \"creative\",
creativeEffect: {
prev: {
shadow: true,
translate: [\"-20%\", 0, 0],
opacity:1,
},
next: {
translate: [\"100%\", 0, 0],
opacity:0.8,
},
},*/
// Responsive breakpoints
breakpoints: {
768: {
slidesPerView: 1,
pagination: {
enabled: {% if pagDesk.isChecked() %}true{% else %}false{% endif %},
},
navigation: {
enabled: {% if navDesk.isChecked() %}true{% else %}false{% endif %},
}
}
}
});
});
</script>
{% endif %}", "@AleaAreabricks/areas/herohome/view.html.twig", "/var/www/html/bundles/Alea/AreabricksBundle/Resources/views/areas/herohome/view.html.twig");
}
public function checkSecurity()
{
static $tags = array("set" => 1, "if" => 29, "for" => 30, "do" => 101);
static $filters = array("escape" => 56, "default" => 56, "raw" => 70);
static $functions = array("pimcore_select" => 1, "pimcore_checkbox" => 4, "pimcore_block" => 30, "pimcore_image" => 32, "pimcore_textarea" => 34, "pimcore_wysiwyg" => 36, "pimcore_link" => 38, "pimcore_head_script" => 101);
try {
$this->sandbox->checkSecurity(
['set', 'if', 'for', 'do'],
['escape', 'default', 'raw'],
['pimcore_select', 'pimcore_checkbox', 'pimcore_block', 'pimcore_image', 'pimcore_textarea', 'pimcore_wysiwyg', 'pimcore_link', 'pimcore_head_script']
);
} catch (SecurityError $e) {
$e->setSourceContext($this->source);
if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
$e->setTemplateLine($tags[$e->getTagName()]);
} elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
$e->setTemplateLine($filters[$e->getFilterName()]);
} elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
$e->setTemplateLine($functions[$e->getFunctionName()]);
}
throw $e;
}
}
}