var/cache/dev/twig/0c/0c0b39bf5439a96295eb478a1d72894d.php line 271

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\SandboxExtension;
  6. use Twig\Markup;
  7. use Twig\Sandbox\SecurityError;
  8. use Twig\Sandbox\SecurityNotAllowedTagError;
  9. use Twig\Sandbox\SecurityNotAllowedFilterError;
  10. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  11. use Twig\Source;
  12. use Twig\Template;
  13. /* @AleaAreabricks/areas/herohome/view.html.twig */
  14. class __TwigTemplate_bc68e04f8b58365d677572a9d1e53044 extends Template
  15. {
  16.     private $source;
  17.     private $macros = [];
  18.     public function __construct(Environment $env)
  19.     {
  20.         parent::__construct($env);
  21.         $this->source $this->getSourceContext();
  22.         $this->parent false;
  23.         $this->blocks = [
  24.         ];
  25.         $this->sandbox $this->env->getExtension('\Twig\Extension\SandboxExtension');
  26.         $this->checkSecurity();
  27.     }
  28.     protected function doDisplay(array $context, array $blocks = [])
  29.     {
  30.         $macros $this->macros;
  31.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  32.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@AleaAreabricks/areas/herohome/view.html.twig"));
  33.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  34.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@AleaAreabricks/areas/herohome/view.html.twig"));
  35.         // line 1
  36.         $context["blockPositionMob"] = twig_get_attribute($this->env$this->source$this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"select""blockPositionMob"), "getData", [], "method"falsefalsetrue1);
  37.         // line 2
  38.         $context["blockPositionDesk"] = twig_get_attribute($this->env$this->source$this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"select""blockPositionDesk"), "getData", [], "method"falsefalsetrue2);
  39.         // line 3
  40.         $context["blockMaxWidth"] = twig_get_attribute($this->env$this->source$this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"select""blockMaxWidth"), "getData", [], "method"falsefalsetrue3);
  41.         // line 4
  42.         $context["pagDesk"] = $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"checkbox""pagDesk");
  43.         // line 5
  44.         $context["pagMob"] = $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"checkbox""pagMob");
  45.         // line 6
  46.         $context["pagColor"] = twig_get_attribute($this->env$this->source$this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"select""pagColor"), "getData", [], "method"falsefalsetrue6);
  47.         // line 7
  48.         $context["navDesk"] = $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"checkbox""navDesk");
  49.         // line 8
  50.         $context["navMob"] = $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"checkbox""navMob");
  51.         // line 9
  52.         $context["navColor"] = twig_get_attribute($this->env$this->source$this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"select""navColor"), "getData", [], "method"falsefalsetrue9);
  53.         // line 10
  54.         $context["titleColor"] = twig_get_attribute($this->env$this->source$this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"select""titleColor"), "getData", [], "method"falsefalsetrue10);
  55.         // line 11
  56.         $context["descColor"] = twig_get_attribute($this->env$this->source$this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"select""descColor"), "getData", [], "method"falsefalsetrue11);
  57.         // line 12
  58.         $context["linkColor"] = twig_get_attribute($this->env$this->source$this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"select""linkColor"), "getData", [], "method"falsefalsetrue12);
  59.         // line 13
  60.         echo "
  61. ";
  62.         // line 17
  63.         $context["pm"] = twig_get_attribute($this->env$this->source$this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"select""pm"), "getData", [], "method"falsefalsetrue17);
  64.         echo "       ";
  65.         // line 18
  66.         $context["psm"] = twig_get_attribute($this->env$this->source$this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"select""psm"), "getData", [], "method"falsefalsetrue18);
  67.         echo "     ";
  68.         // line 19
  69.         $context["ptm"] = twig_get_attribute($this->env$this->source$this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"select""ptm"), "getData", [], "method"falsefalsetrue19);
  70.         echo "     ";
  71.         // line 20
  72.         $context["pem"] = twig_get_attribute($this->env$this->source$this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"select""pem"), "getData", [], "method"falsefalsetrue20);
  73.         echo "     ";
  74.         // line 21
  75.         $context["pbm"] = twig_get_attribute($this->env$this->source$this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"select""pbm"), "getData", [], "method"falsefalsetrue21);
  76.         echo "     ";
  77.         // line 23
  78.         $context["pd"] = twig_get_attribute($this->env$this->source$this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"select""pd"), "getData", [], "method"falsefalsetrue23);
  79.         // line 24
  80.         $context["psd"] = twig_get_attribute($this->env$this->source$this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"select""psd"), "getData", [], "method"falsefalsetrue24);
  81.         // line 25
  82.         $context["ptd"] = twig_get_attribute($this->env$this->source$this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"select""ptd"), "getData", [], "method"falsefalsetrue25);
  83.         // line 26
  84.         $context["ped"] = twig_get_attribute($this->env$this->source$this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"select""ped"), "getData", [], "method"falsefalsetrue26);
  85.         // line 27
  86.         $context["pbd"] = twig_get_attribute($this->env$this->source$this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"select""pbd"), "getData", [], "method"falsefalsetrue27);
  87.         // line 28
  88.         echo "
  89. ";
  90.         // line 29
  91.         if ((isset($context["editmode"]) || array_key_exists("editmode"$context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.'29$this->source); })())) {
  92.             echo "         
  93. ";
  94.             // line 30
  95.             $context['_parent'] = $context;
  96.             $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source$this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"block""slides"), "iterator", [], "any"falsefalsetrue30));
  97.             foreach ($context['_seq'] as $context["_key"] => $context["b"]) {
  98.                 // line 31
  99.                 echo "    <p><strong>Foto</strong></p>
  100.     ";
  101.                 // line 32
  102.                 echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"image""image", ["height" => 300]);
  103.                 echo "
  104.     <p><strong>Titolo</strong></p>
  105.     ";
  106.                 // line 34
  107.                 echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"textarea""title");
  108.                 echo 
  109.     <p><strong>Paragrafo</strong></p>
  110.     ";
  111.                 // line 36
  112.                 echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"wysiwyg""paragraph");
  113.                 echo "
  114.     <p><strong>Link</strong></p>
  115.     ";
  116.                 // line 38
  117.                 echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"link""link");
  118.                 echo "
  119. ";
  120.             }
  121.             $_parent $context['_parent'];
  122.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['b'], $context['_parent'], $context['loop']);
  123.             $context array_intersect_key($context$_parent) + $_parent;
  124.             // line 40
  125.             echo "
  126. ";
  127.         } else {
  128.             // line 43
  129.             echo "
  130.     <section>
  131.         <div class=\"swiper slider-home\">
  132.             <div class=\"swiper-wrapper\">
  133.                 
  134.                     ";
  135.             // line 49
  136.             $context['_parent'] = $context;
  137.             $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source$this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"block""slides"), "iterator", [], "any"falsefalsetrue49));
  138.             foreach ($context['_seq'] as $context["_key"] => $context["b"]) {
  139.                 // line 50
  140.                 echo "                        ";
  141.                 $context["title"] = $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"textarea""title", ["nl2br" => true]);
  142.                 // line 51
  143.                 echo "                        ";
  144.                 $context["paragraph"] = $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"wysiwyg""paragraph");
  145.                 // line 52
  146.                 echo "                        ";
  147.                 $context["link"] = $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"link""link");
  148.                 // line 53
  149.                 echo "                        ";
  150.                 $context["image"] = $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"image""image");
  151.                 // line 54
  152.                 echo "                        <div class=\"swiper-slide\">
  153.                             <div class=\"d-none position-absolute w-100 h-100 d-flex flex-column
  154.                                 ";
  155.                 // line 56
  156.                 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"nulltrue);
  157.                 echo "    
  158.                                 ";
  159.                 // line 57
  160.                 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"nulltrue);
  161.                 echo "                   
  162.                                 ";
  163.                 // line 58
  164.                 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); })()) != ""))) {
  165.                     echo " p-";
  166.                     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"nulltrue);
  167.                     echo " ";
  168.                 }
  169.                 // line 59
  170.                 echo "                                ";
  171.                 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); })()) != ""))) {
  172.                     echo " p-";
  173.                     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"nulltrue);
  174.                     echo " ";
  175.                 }
  176.                 // line 60
  177.                 echo "                                ";
  178.                 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); })()) != ""))) {
  179.                     echo " ps-";
  180.                     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"nulltrue);
  181.                     echo " ";
  182.                 }
  183.                 // line 61
  184.                 echo "                                ";
  185.                 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); })()) != ""))) {
  186.                     echo " ps-lg-";
  187.                     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"nulltrue);
  188.                     echo " ";
  189.                 }
  190.                 // line 62
  191.                 echo "                                ";
  192.                 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); })()) != ""))) {
  193.                     echo " pt-";
  194.                     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"nulltrue);
  195.                     echo " ";
  196.                 }
  197.                 // line 63
  198.                 echo "                                ";
  199.                 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); })()) != ""))) {
  200.                     echo " pt-lg-";
  201.                     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"nulltrue);
  202.                     echo " ";
  203.                 }
  204.                 // line 64
  205.                 echo "                                ";
  206.                 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); })()) != ""))) {
  207.                     echo " pe-";
  208.                     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"nulltrue);
  209.                     echo " ";
  210.                 }
  211.                 // line 65
  212.                 echo "                                ";
  213.                 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); })()) != ""))) {
  214.                     echo " pe-lg-";
  215.                     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"nulltrue);
  216.                     echo " ";
  217.                 }
  218.                 // line 66
  219.                 echo "                                ";
  220.                 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); })()) != ""))) {
  221.                     echo " pb-";
  222.                     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"nulltrue);
  223.                     echo " ";
  224.                 }
  225.                 // line 67
  226.                 echo "                                ";
  227.                 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); })()) != ""))) {
  228.                     echo " pb-lg-";
  229.                     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"nulltrue);
  230.                     echo " ";
  231.                 }
  232.                 // line 68
  233.                 echo "                            \">
  234.                                 <div class=\"content ";
  235.                 // line 69
  236.                 if ((isset($context["blockMaxWidth"]) || array_key_exists("blockMaxWidth"$context) ? $context["blockMaxWidth"] : (function () { throw new RuntimeError('Variable "blockMaxWidth" does not exist.'69$this->source); })())) {
  237.                     echo "mw-lg-";
  238.                     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"nulltrue);
  239.                 }
  240.                 echo "\">
  241.                                     <h1 class=\"";
  242.                 // line 70
  243.                 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"nulltrue);
  244.                 echo "\">";
  245.                 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);
  246.                 echo "</h1>
  247.                                     ";
  248.                 // line 71
  249.                 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"falsefalsetrue71)) {
  250.                     echo "<div class=\"";
  251.                     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"nulltrue);
  252.                     echo "\">";
  253.                     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"nulltrue);
  254.                     echo "</div>";
  255.                 }
  256.                 // line 72
  257.                 echo "                                    <a href=\"";
  258.                 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"falsefalsetrue72), 72$this->source), "html"nulltrue);
  259.                 echo "\" target=\"";
  260.                 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"falsefalsetrue72), 72$this->source), "html"nulltrue);
  261.                 echo "\" class=\"link text-underline ";
  262.                 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"nulltrue);
  263.                 echo "\">";
  264.                 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"falsefalsetrue72), 72$this->source), "html"nulltrue);
  265.                 echo "</a>
  266.                                 </div>
  267.                             </div>
  268.                             ";
  269.                 // line 78
  270.                 echo "                            <div class=\"image overflow-hidden\" />
  271.                             ";
  272.                 // line 80
  273.                 echo $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_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", [=> "slide_home"], "method"falsefalsetrue80), "html", [=> ["pictureAttributes" => ["class" => "w-100 h-100 d-block"], "imgAttributes" => ["class" => "w-100 h-100 object-fit-cover"]]], "method"falsefalsetrue80), 80$this->source);
  274.                 // line 87
  275.                 echo "
  276.                             
  277.                             </div>
  278.                         </div>
  279.                     ";
  280.             }
  281.             $_parent $context['_parent'];
  282.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['b'], $context['_parent'], $context['loop']);
  283.             $context array_intersect_key($context$_parent) + $_parent;
  284.             // line 92
  285.             echo "                
  286.             </div>
  287.             <div class=\"swiper-pagination\"></div>
  288.             <div class=\"swiper-button-prev text-";
  289.             // line 96
  290.             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"nulltrue);
  291.             echo " ps-20\"></div>
  292.             <div class=\"swiper-button-next text-";
  293.             // line 97
  294.             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"nulltrue);
  295.             echo " pe-20\"></div>
  296.         </div>
  297.     </section>
  298.     
  299.     ";
  300.             // line 101
  301.             twig_get_attribute($this->env$this->source$this->env->getFunction('pimcore_head_script')->getCallable()(), "appendFile", [=> (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"falsefalsetrue101);
  302.             echo "\t
  303.   <script>
  304.     document.addEventListener(\"DOMContentLoaded\", (event) => {
  305.       const swiper = new Swiper('.swiper.slider-home', {
  306.         // Default parameters
  307.         slidesPerView: 1,
  308.         loop: true,
  309.         autoplay: {
  310.           delay:2500,
  311.         },
  312.         speed: 1500,
  313.         pagination: {
  314.           el: '.swiper-pagination',
  315.           type: 'bullets',
  316.           enabled: ";
  317.             // line 115
  318.             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"falsefalsetrue115)) {
  319.                 echo "true";
  320.             } else {
  321.                 echo "false";
  322.             }
  323.             echo ",
  324.         },
  325.         navigation: {
  326.           nextEl: '.swiper-button-next',
  327.           prevEl: '.swiper-button-prev',
  328.           enabled: ";
  329.             // line 120
  330.             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"falsefalsetrue120)) {
  331.                 echo "true";
  332.             } else {
  333.                 echo "false";
  334.             }
  335.             echo ",
  336.         },
  337.         effect: 'fade',
  338.         fadeEffect: {
  339.           crossFade: true
  340.         },
  341.         /*effect: \"creative\",
  342.         creativeEffect: {
  343.           prev: {
  344.             shadow: true,
  345.             translate: [\"-20%\", 0, 0],
  346.             opacity:1,
  347.           },
  348.           next: {
  349.             translate: [\"100%\", 0, 0],
  350.             opacity:0.8,
  351.           },
  352.         },*/
  353.         // Responsive breakpoints
  354.         breakpoints: {
  355.           768: {
  356.             slidesPerView: 1,
  357.             pagination: {
  358.               enabled: ";
  359.             // line 143
  360.             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"falsefalsetrue143)) {
  361.                 echo "true";
  362.             } else {
  363.                 echo "false";
  364.             }
  365.             echo ",
  366.             },
  367.             navigation: {
  368.               enabled: ";
  369.             // line 146
  370.             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"falsefalsetrue146)) {
  371.                 echo "true";
  372.             } else {
  373.                 echo "false";
  374.             }
  375.             echo ",
  376.             }
  377.           }
  378.         }
  379.       });
  380.     });
  381.   </script>
  382. ";
  383.         }
  384.         
  385.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  386.         
  387.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  388.     }
  389.     public function getTemplateName()
  390.     {
  391.         return "@AleaAreabricks/areas/herohome/view.html.twig";
  392.     }
  393.     public function isTraitable()
  394.     {
  395.         return false;
  396.     }
  397.     public function getDebugInfo()
  398.     {
  399.         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,);
  400.     }
  401.     public function getSourceContext()
  402.     {
  403.         return new Source("{% set blockPositionMob = pimcore_select('blockPositionMob').getData() %}
  404. {% set blockPositionDesk = pimcore_select('blockPositionDesk').getData() %}
  405. {% set blockMaxWidth = pimcore_select('blockMaxWidth').getData() %}
  406. {% set pagDesk = pimcore_checkbox('pagDesk') %}
  407. {% set pagMob = pimcore_checkbox('pagMob') %}
  408. {% set pagColor = pimcore_select('pagColor').getData() %}
  409. {% set navDesk = pimcore_checkbox('navDesk') %}
  410. {% set navMob = pimcore_checkbox('navMob') %}
  411. {% set navColor = pimcore_select('navColor').getData() %}
  412. {% set titleColor = pimcore_select('titleColor').getData() %}
  413. {% set descColor = pimcore_select('descColor').getData() %}
  414. {% set linkColor = pimcore_select('linkColor').getData() %}
  415. {# mobile - padding #}
  416. {% set pm = pimcore_select('pm').getData() %}       {# all 4 sides #}
  417. {% set psm = pimcore_select('psm').getData() %}     {# left #}
  418. {% set ptm = pimcore_select('ptm').getData() %}     {# top #}
  419. {% set pem = pimcore_select('pem').getData() %}     {# right #}
  420. {% set pbm = pimcore_select('pbm').getData() %}     {# bottom #}
  421. {# desktop - padding #}
  422. {% set pd = pimcore_select('pd').getData() %}
  423. {% set psd = pimcore_select('psd').getData() %}
  424. {% set ptd = pimcore_select('ptd').getData() %}
  425. {% set ped = pimcore_select('ped').getData() %}
  426. {% set pbd = pimcore_select('pbd').getData() %}
  427. {% if editmode %}         
  428. {% for b in pimcore_block(\"slides\").iterator %}
  429.     <p><strong>Foto</strong></p>
  430.     {{pimcore_image('image', {'height': 300})}}
  431.     <p><strong>Titolo</strong></p>
  432.     {{pimcore_textarea('title')}} 
  433.     <p><strong>Paragrafo</strong></p>
  434.     {{pimcore_wysiwyg('paragraph')}}
  435.     <p><strong>Link</strong></p>
  436.     {{ pimcore_link('link')}}
  437. {% endfor %}
  438. {% else %}
  439.     <section>
  440.         <div class=\"swiper slider-home\">
  441.             <div class=\"swiper-wrapper\">
  442.                 
  443.                     {% for b in pimcore_block(\"slides\").iterator %}
  444.                         {% set title = pimcore_textarea('title',{'nl2br': true }) %}
  445.                         {% set paragraph = pimcore_wysiwyg('paragraph') %}
  446.                         {% set link = pimcore_link('link') %}
  447.                         {% set image = pimcore_image('image') %}
  448.                         <div class=\"swiper-slide\">
  449.                             <div class=\"d-none position-absolute w-100 h-100 d-flex flex-column
  450.                                 {{ blockPositionDesk|default('justify-content-lg-end align-items-lg-start') }}    
  451.                                 {{ blockPositionMob|default('justify-content-end align-items-center') }}                   
  452.                                 {% if pm and pm != '' %} p-{{pm}} {% endif %}
  453.                                 {% if pd and pd != '' %} p-{{pd}} {% endif %}
  454.                                 {% if psm and psm != '' %} ps-{{psm}} {% endif %}
  455.                                 {% if psd and psd != '' %} ps-lg-{{psd}} {% endif %}
  456.                                 {% if ptm and ptm != '' %} pt-{{ptm}} {% endif %}
  457.                                 {% if ptd and ptd != '' %} pt-lg-{{ptd}} {% endif %}
  458.                                 {% if pem and pem != '' %} pe-{{pem}} {% endif %}
  459.                                 {% if ped and ped != '' %} pe-lg-{{ped}} {% endif %}
  460.                                 {% if pbm and pbm != '' %} pb-{{pbm}} {% endif %}
  461.                                 {% if pbd and pbd != '' %} pb-lg-{{pbd}} {% endif %}
  462.                             \">
  463.                                 <div class=\"content {% if blockMaxWidth %}mw-lg-{{blockMaxWidth}}{% endif %}\">
  464.                                     <h1 class=\"{{titleColor|default('text-secondary')}}\">{{ title|raw }}</h1>
  465.                                     {% if not paragraph.isEmpty() %}<div class=\"{{descColor|default('text-secondary')}}\">{{ paragraph }}</div>{% endif %}
  466.                                     <a href=\"{{ link.getHref() }}\" target=\"{{ link.getTarget() }}\" class=\"link text-underline {{linkColor|default('text-secondary')}}\">{{ link.getText() }}</a>
  467.                                 </div>
  468.                             </div>
  469.                             {#<div class=\"image\">
  470.                                 <img src=\"{{ image }}\" class=\"w-100\" />
  471.                             </div>#}
  472.                             <div class=\"image overflow-hidden\" />
  473.                             {{ image.thumbnail('slide_home').html({
  474.                                 'pictureAttributes': {
  475.                                     'class': 'w-100 h-100 d-block'
  476.                                 },
  477.                                 'imgAttributes': {
  478.                                     'class': 'w-100 h-100 object-fit-cover'
  479.                                 }
  480.                             }) | raw  }}
  481.                             
  482.                             </div>
  483.                         </div>
  484.                     {% endfor %}
  485.                 
  486.             </div>
  487.             <div class=\"swiper-pagination\"></div>
  488.             <div class=\"swiper-button-prev text-{{navColor|default('black')}} ps-20\"></div>
  489.             <div class=\"swiper-button-next text-{{navColor|default('black')}} pe-20\"></div>
  490.         </div>
  491.     </section>
  492.     
  493.     {% do pimcore_head_script().appendFile(swiper_js) %}\t
  494.   <script>
  495.     document.addEventListener(\"DOMContentLoaded\", (event) => {
  496.       const swiper = new Swiper('.swiper.slider-home', {
  497.         // Default parameters
  498.         slidesPerView: 1,
  499.         loop: true,
  500.         autoplay: {
  501.           delay:2500,
  502.         },
  503.         speed: 1500,
  504.         pagination: {
  505.           el: '.swiper-pagination',
  506.           type: 'bullets',
  507.           enabled: {% if pagMob.isChecked() %}true{% else %}false{% endif %},
  508.         },
  509.         navigation: {
  510.           nextEl: '.swiper-button-next',
  511.           prevEl: '.swiper-button-prev',
  512.           enabled: {% if navMob.isChecked() %}true{% else %}false{% endif %},
  513.         },
  514.         effect: 'fade',
  515.         fadeEffect: {
  516.           crossFade: true
  517.         },
  518.         /*effect: \"creative\",
  519.         creativeEffect: {
  520.           prev: {
  521.             shadow: true,
  522.             translate: [\"-20%\", 0, 0],
  523.             opacity:1,
  524.           },
  525.           next: {
  526.             translate: [\"100%\", 0, 0],
  527.             opacity:0.8,
  528.           },
  529.         },*/
  530.         // Responsive breakpoints
  531.         breakpoints: {
  532.           768: {
  533.             slidesPerView: 1,
  534.             pagination: {
  535.               enabled: {% if pagDesk.isChecked() %}true{% else %}false{% endif %},
  536.             },
  537.             navigation: {
  538.               enabled: {% if navDesk.isChecked() %}true{% else %}false{% endif %},
  539.             }
  540.           }
  541.         }
  542.       });
  543.     });
  544.   </script>
  545. {% endif %}""@AleaAreabricks/areas/herohome/view.html.twig""/var/www/html/bundles/Alea/AreabricksBundle/Resources/views/areas/herohome/view.html.twig");
  546.     }
  547.     
  548.     public function checkSecurity()
  549.     {
  550.         static $tags = array("set" => 1"if" => 29"for" => 30"do" => 101);
  551.         static $filters = array("escape" => 56"default" => 56"raw" => 70);
  552.         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);
  553.         try {
  554.             $this->sandbox->checkSecurity(
  555.                 ['set''if''for''do'],
  556.                 ['escape''default''raw'],
  557.                 ['pimcore_select''pimcore_checkbox''pimcore_block''pimcore_image''pimcore_textarea''pimcore_wysiwyg''pimcore_link''pimcore_head_script']
  558.             );
  559.         } catch (SecurityError $e) {
  560.             $e->setSourceContext($this->source);
  561.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  562.                 $e->setTemplateLine($tags[$e->getTagName()]);
  563.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  564.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  565.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  566.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  567.             }
  568.             throw $e;
  569.         }
  570.     }
  571. }