var/cache/dev/twig/10/107a8210d179c7a86d4b951a83322bb4.php line 35

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/cta/view.html.twig */
  14. class __TwigTemplate_5b6b75091439d188353d539cbe6b5196 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/cta/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/cta/view.html.twig"));
  35.         // line 1
  36.         $context["iconPos"] = twig_get_attribute($this->env$this->source$this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"select""iconPos"), "getData", [], "method"falsefalsetrue1);
  37.         // line 2
  38.         $context["ctaColor"] = twig_get_attribute($this->env$this->source$this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"select""ctaColor"), "getData", [], "method"falsefalsetrue2);
  39.         // line 3
  40.         echo "
  41. ";
  42.         // line 5
  43.         $context["pm"] = twig_get_attribute($this->env$this->source$this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"select""pm"), "getData", [], "method"falsefalsetrue5);
  44.         echo "       ";
  45.         // line 6
  46.         $context["psm"] = twig_get_attribute($this->env$this->source$this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"select""psm"), "getData", [], "method"falsefalsetrue6);
  47.         echo "     ";
  48.         // line 7
  49.         $context["ptm"] = twig_get_attribute($this->env$this->source$this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"select""ptm"), "getData", [], "method"falsefalsetrue7);
  50.         echo "     ";
  51.         // line 8
  52.         $context["pem"] = twig_get_attribute($this->env$this->source$this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"select""pem"), "getData", [], "method"falsefalsetrue8);
  53.         echo "     ";
  54.         // line 9
  55.         $context["pbm"] = twig_get_attribute($this->env$this->source$this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"select""pbm"), "getData", [], "method"falsefalsetrue9);
  56.         echo "     ";
  57.         // line 11
  58.         $context["pd"] = twig_get_attribute($this->env$this->source$this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"select""pd"), "getData", [], "method"falsefalsetrue11);
  59.         // line 12
  60.         $context["psd"] = twig_get_attribute($this->env$this->source$this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"select""psd"), "getData", [], "method"falsefalsetrue12);
  61.         // line 13
  62.         $context["ptd"] = twig_get_attribute($this->env$this->source$this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"select""ptd"), "getData", [], "method"falsefalsetrue13);
  63.         // line 14
  64.         $context["ped"] = twig_get_attribute($this->env$this->source$this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"select""ped"), "getData", [], "method"falsefalsetrue14);
  65.         // line 15
  66.         $context["pbd"] = twig_get_attribute($this->env$this->source$this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"select""pbd"), "getData", [], "method"falsefalsetrue15);
  67.         // line 16
  68.         echo "
  69. <div class=\"text-center 
  70.                     ";
  71.         // line 18
  72.         if (((isset($context["pm"]) || array_key_exists("pm"$context) ? $context["pm"] : (function () { throw new RuntimeError('Variable "pm" does not exist.'18$this->source); })()) && ((isset($context["pm"]) || array_key_exists("pm"$context) ? $context["pm"] : (function () { throw new RuntimeError('Variable "pm" does not exist.'18$this->source); })()) != ""))) {
  73.             echo " p-";
  74.             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.'18$this->source); })()), 18$this->source), "html"nulltrue);
  75.             echo " ";
  76.         }
  77.         // line 19
  78.         echo "                    ";
  79.         if (((isset($context["pd"]) || array_key_exists("pd"$context) ? $context["pd"] : (function () { throw new RuntimeError('Variable "pd" does not exist.'19$this->source); })()) && ((isset($context["pd"]) || array_key_exists("pd"$context) ? $context["pd"] : (function () { throw new RuntimeError('Variable "pd" does not exist.'19$this->source); })()) != ""))) {
  80.             echo " p-";
  81.             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.'19$this->source); })()), 19$this->source), "html"nulltrue);
  82.             echo " ";
  83.         }
  84.         // line 20
  85.         echo "                    ";
  86.         if (((isset($context["psm"]) || array_key_exists("psm"$context) ? $context["psm"] : (function () { throw new RuntimeError('Variable "psm" does not exist.'20$this->source); })()) && ((isset($context["psm"]) || array_key_exists("psm"$context) ? $context["psm"] : (function () { throw new RuntimeError('Variable "psm" does not exist.'20$this->source); })()) != ""))) {
  87.             echo " ps-";
  88.             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.'20$this->source); })()), 20$this->source), "html"nulltrue);
  89.             echo " ";
  90.         }
  91.         // line 21
  92.         echo "                    ";
  93.         if (((isset($context["psd"]) || array_key_exists("psd"$context) ? $context["psd"] : (function () { throw new RuntimeError('Variable "psd" does not exist.'21$this->source); })()) && ((isset($context["psd"]) || array_key_exists("psd"$context) ? $context["psd"] : (function () { throw new RuntimeError('Variable "psd" does not exist.'21$this->source); })()) != ""))) {
  94.             echo " ps-lg-";
  95.             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.'21$this->source); })()), 21$this->source), "html"nulltrue);
  96.             echo " ";
  97.         }
  98.         // line 22
  99.         echo "                    ";
  100.         if (((isset($context["ptm"]) || array_key_exists("ptm"$context) ? $context["ptm"] : (function () { throw new RuntimeError('Variable "ptm" does not exist.'22$this->source); })()) && ((isset($context["ptm"]) || array_key_exists("ptm"$context) ? $context["ptm"] : (function () { throw new RuntimeError('Variable "ptm" does not exist.'22$this->source); })()) != ""))) {
  101.             echo " pt-";
  102.             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.'22$this->source); })()), 22$this->source), "html"nulltrue);
  103.             echo " ";
  104.         }
  105.         // line 23
  106.         echo "                    ";
  107.         if (((isset($context["ptd"]) || array_key_exists("ptd"$context) ? $context["ptd"] : (function () { throw new RuntimeError('Variable "ptd" does not exist.'23$this->source); })()) && ((isset($context["ptd"]) || array_key_exists("ptd"$context) ? $context["ptd"] : (function () { throw new RuntimeError('Variable "ptd" does not exist.'23$this->source); })()) != ""))) {
  108.             echo " pt-lg-";
  109.             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.'23$this->source); })()), 23$this->source), "html"nulltrue);
  110.             echo " ";
  111.         }
  112.         // line 24
  113.         echo "                    ";
  114.         if (((isset($context["pem"]) || array_key_exists("pem"$context) ? $context["pem"] : (function () { throw new RuntimeError('Variable "pem" does not exist.'24$this->source); })()) && ((isset($context["pem"]) || array_key_exists("pem"$context) ? $context["pem"] : (function () { throw new RuntimeError('Variable "pem" does not exist.'24$this->source); })()) != ""))) {
  115.             echo " pe-";
  116.             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.'24$this->source); })()), 24$this->source), "html"nulltrue);
  117.             echo " ";
  118.         }
  119.         // line 25
  120.         echo "                    ";
  121.         if (((isset($context["ped"]) || array_key_exists("ped"$context) ? $context["ped"] : (function () { throw new RuntimeError('Variable "ped" does not exist.'25$this->source); })()) && ((isset($context["ped"]) || array_key_exists("ped"$context) ? $context["ped"] : (function () { throw new RuntimeError('Variable "ped" does not exist.'25$this->source); })()) != ""))) {
  122.             echo " pe-lg-";
  123.             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.'25$this->source); })()), 25$this->source), "html"nulltrue);
  124.             echo " ";
  125.         }
  126.         // line 26
  127.         echo "                    ";
  128.         if (((isset($context["pbm"]) || array_key_exists("pbm"$context) ? $context["pbm"] : (function () { throw new RuntimeError('Variable "pbm" does not exist.'26$this->source); })()) && ((isset($context["pbm"]) || array_key_exists("pbm"$context) ? $context["pbm"] : (function () { throw new RuntimeError('Variable "pbm" does not exist.'26$this->source); })()) != ""))) {
  129.             echo " pb-";
  130.             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.'26$this->source); })()), 26$this->source), "html"nulltrue);
  131.             echo " ";
  132.         }
  133.         // line 27
  134.         echo "                    ";
  135.         if (((isset($context["pbd"]) || array_key_exists("pbd"$context) ? $context["pbd"] : (function () { throw new RuntimeError('Variable "pbd" does not exist.'27$this->source); })()) && ((isset($context["pbd"]) || array_key_exists("pbd"$context) ? $context["pbd"] : (function () { throw new RuntimeError('Variable "pbd" does not exist.'27$this->source); })()) != ""))) {
  136.             echo " pb-lg-";
  137.             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.'27$this->source); })()), 27$this->source), "html"nulltrue);
  138.         }
  139.         echo "\">
  140.     <h2>
  141.         ";
  142.         // line 29
  143.         echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"input""title", ["width" => "100%""placeholder" => "Titolo"]);
  144.         // line 32
  145.         echo "
  146.     </h2>
  147.     <p class=\"fs-25\">
  148.         ";
  149.         // line 35
  150.         echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"textarea""description", ["width" => "100%""placeholder" => "descrizione"]);
  151.         // line 38
  152.         echo "
  153.     </p>
  154.     ";
  155.         // line 40
  156.         if ((isset($context["editmode"]) || array_key_exists("editmode"$context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.'40$this->source); })())) {
  157.             // line 41
  158.             echo "        ";
  159.             echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"link""link");
  160.             echo "
  161.     ";
  162.         } else {
  163.             // line 43
  164.             echo "        ";
  165.             $context["link"] = $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"link""link");
  166.             // line 44
  167.             echo "        <a href=\"";
  168.             ((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.'44$this->source); })()), "getHref", [], "method"falsefalsetrue44)) ? (print (twig_escape_filter($this->envtwig_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.'44$this->source); })()), "getHref", [], "method"falsefalsetrue44), "html"nulltrue))) : (print ("#")));
  169.             echo "\" class=\"link fw-bold fs-20 text-";
  170.             echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed((isset($context["ctaColor"]) || array_key_exists("ctaColor"$context) ? $context["ctaColor"] : (function () { throw new RuntimeError('Variable "ctaColor" does not exist.'44$this->source); })()), 44$this->source), "html"nulltrue);
  171.             echo "\">";
  172.             if ((((isset($context["iconPos"]) || array_key_exists("iconPos"$context) ? $context["iconPos"] : (function () { throw new RuntimeError('Variable "iconPos" does not exist.'44$this->source); })()) != "none") && ((isset($context["iconPos"]) || array_key_exists("iconPos"$context) ? $context["iconPos"] : (function () { throw new RuntimeError('Variable "iconPos" does not exist.'44$this->source); })()) == "left"))) {
  173.                 echo "<i class=\"fa fa-arrow-left-long\"></i>";
  174.             }
  175.             echo " ";
  176.             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.'44$this->source); })()), "getText", [], "method"falsefalsetrue44), 44$this->source), "html"nulltrue);
  177.             echo " ";
  178.             if ((((isset($context["iconPos"]) || array_key_exists("iconPos"$context) ? $context["iconPos"] : (function () { throw new RuntimeError('Variable "iconPos" does not exist.'44$this->source); })()) != "none") && ((isset($context["iconPos"]) || array_key_exists("iconPos"$context) ? $context["iconPos"] : (function () { throw new RuntimeError('Variable "iconPos" does not exist.'44$this->source); })()) == "right"))) {
  179.                 echo "<i class=\"fa fa-arrow-right-long\"></i>";
  180.             }
  181.             echo "</a>
  182.     ";
  183.         }
  184.         // line 46
  185.         echo "</div>";
  186.         
  187.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  188.         
  189.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  190.     }
  191.     public function getTemplateName()
  192.     {
  193.         return "@AleaAreabricks/areas/cta/view.html.twig";
  194.     }
  195.     public function isTraitable()
  196.     {
  197.         return false;
  198.     }
  199.     public function getDebugInfo()
  200.     {
  201.         return array (  194 => 46,  176 => 44,  173 => 43,  167 => 41,  165 => 40,  161 => 38,  159 => 35,  154 => 32,  152 => 29,  143 => 27,  136 => 26,  129 => 25,  122 => 24,  115 => 23,  108 => 22,  101 => 21,  94 => 20,  87 => 19,  81 => 18,  77 => 16,  75 => 15,  73 => 14,  71 => 13,  69 => 12,  67 => 11,  64 => 9,  61 => 8,  58 => 7,  55 => 6,  52 => 5,  49 => 3,  47 => 2,  45 => 1,);
  202.     }
  203.     public function getSourceContext()
  204.     {
  205.         return new Source("{% set iconPos = pimcore_select('iconPos').getData() %}
  206. {% set ctaColor = pimcore_select('ctaColor').getData() %}
  207. {# mobile - padding #}
  208. {% set pm = pimcore_select('pm').getData() %}       {# all 4 sides #}
  209. {% set psm = pimcore_select('psm').getData() %}     {# left #}
  210. {% set ptm = pimcore_select('ptm').getData() %}     {# top #}
  211. {% set pem = pimcore_select('pem').getData() %}     {# right #}
  212. {% set pbm = pimcore_select('pbm').getData() %}     {# bottom #}
  213. {# desktop - padding #}
  214. {% set pd = pimcore_select('pd').getData() %}
  215. {% set psd = pimcore_select('psd').getData() %}
  216. {% set ptd = pimcore_select('ptd').getData() %}
  217. {% set ped = pimcore_select('ped').getData() %}
  218. {% set pbd = pimcore_select('pbd').getData() %}
  219. <div class=\"text-center 
  220.                     {% if pm and pm != '' %} p-{{pm}} {% endif %}
  221.                     {% if pd and pd != '' %} p-{{pd}} {% endif %}
  222.                     {% if psm and psm != '' %} ps-{{psm}} {% endif %}
  223.                     {% if psd and psd != '' %} ps-lg-{{psd}} {% endif %}
  224.                     {% if ptm and ptm != '' %} pt-{{ptm}} {% endif %}
  225.                     {% if ptd and ptd != '' %} pt-lg-{{ptd}} {% endif %}
  226.                     {% if pem and pem != '' %} pe-{{pem}} {% endif %}
  227.                     {% if ped and ped != '' %} pe-lg-{{ped}} {% endif %}
  228.                     {% if pbm and pbm != '' %} pb-{{pbm}} {% endif %}
  229.                     {% if pbd and pbd != '' %} pb-lg-{{pbd}}{% endif %}\">
  230.     <h2>
  231.         {{ pimcore_input(\"title\",{
  232.             \"width\": '100%',
  233.             \"placeholder\": \"Titolo\"
  234.         }) }}
  235.     </h2>
  236.     <p class=\"fs-25\">
  237.         {{ pimcore_textarea(\"description\",{
  238.             \"width\": '100%',
  239.             \"placeholder\": \"descrizione\"
  240.         }) }}
  241.     </p>
  242.     {% if editmode %}
  243.         {{ pimcore_link('link') }}
  244.     {% else %}
  245.         {%  set link = pimcore_link('link') %}
  246.         <a href=\"{{ link.getHref() ?: '#' }}\" class=\"link fw-bold fs-20 text-{{ ctaColor }}\">{% if iconPos != \"none\" and iconPos ==\"left\" %}<i class=\"fa fa-arrow-left-long\"></i>{% endif %} {{ link.getText() }} {% if iconPos != \"none\" and iconPos ==\"right\" %}<i class=\"fa fa-arrow-right-long\"></i>{% endif %}</a>
  247.     {% endif %}
  248. </div>""@AleaAreabricks/areas/cta/view.html.twig""/var/www/html/bundles/Alea/AreabricksBundle/Resources/views/areas/cta/view.html.twig");
  249.     }
  250.     
  251.     public function checkSecurity()
  252.     {
  253.         static $tags = array("set" => 1"if" => 18);
  254.         static $filters = array("escape" => 18);
  255.         static $functions = array("pimcore_select" => 1"pimcore_input" => 29"pimcore_textarea" => 35"pimcore_link" => 41);
  256.         try {
  257.             $this->sandbox->checkSecurity(
  258.                 ['set''if'],
  259.                 ['escape'],
  260.                 ['pimcore_select''pimcore_input''pimcore_textarea''pimcore_link']
  261.             );
  262.         } catch (SecurityError $e) {
  263.             $e->setSourceContext($this->source);
  264.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  265.                 $e->setTemplateLine($tags[$e->getTagName()]);
  266.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  267.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  268.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  269.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  270.             }
  271.             throw $e;
  272.         }
  273.     }
  274. }