var/cache/dev/twig/a9/a9b071bd50d88c0e9e7eade40fa73063.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/portfolio-grid/view.html.twig */
  14. class __TwigTemplate_ec79e996f6dd04bcb539dbb5727451ba 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/portfolio-grid/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/portfolio-grid/view.html.twig"));
  35.         // line 1
  36.         echo "<div class=\"row gx-0 gx-md-40\">
  37.     ";
  38.         // line 2
  39.         $context['_parent'] = $context;
  40.         $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source$this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"block""myBlock"), "iterator", [], "any"falsefalsetrue2));
  41.         foreach ($context['_seq'] as $context["_key"] => $context["i"]) {
  42.             // line 3
  43.             echo "        ";
  44.             if ((isset($context["editmode"]) || array_key_exists("editmode"$context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.'3$this->source); })())) {
  45.                 // line 4
  46.                 echo "            ";
  47.                 echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"link""link");
  48.                 echo "
  49.         ";
  50.             }
  51.             // line 6
  52.             echo "        ";
  53.             $context["link"] = $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"link""link");
  54.             // line 7
  55.             echo "        ";
  56.             if (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.'7$this->source); })()), "getHref", [], "method"falsefalsetrue7)) {
  57.                 // line 8
  58.                 echo "            <a href=\"";
  59.                 ((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.'8$this->source); })()), "getHref", [], "method"falsefalsetrue8)) ? (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.'8$this->source); })()), "getHref", [], "method"falsefalsetrue8), "html"nulltrue))) : (print ("#")));
  60.                 echo "\" class=\"col-12 col-md-6 mb-40 mb-lg-80\">
  61.         ";
  62.             } else {
  63.                 // line 10
  64.                 echo "            <div class=\"col-12 col-md-6 mb-40 mb-lg-80\">
  65.         ";
  66.             }
  67.             // line 12
  68.             echo "                ";
  69.             if ((isset($context["editmode"]) || array_key_exists("editmode"$context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.'12$this->source); })())) {
  70.                 // line 13
  71.                 echo "                    ";
  72.                 echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"image""image");
  73.                 echo "
  74.                 ";
  75.             } else {
  76.                 // line 15
  77.                 echo "                    <img src=\"";
  78.                 echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"image""image"), "getSrc", [], "method"falsefalsetrue15), 15$this->source), "html"nulltrue);
  79.                 echo "\" alt=\"";
  80.                 echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"image""image"), "getAlt", [], "method"falsefalsetrue15), 15$this->source), "html"nulltrue);
  81.                 echo "\" class=\"w-100\"/>
  82.                 ";
  83.             }
  84.             // line 17
  85.             echo "                <p class=\"fs-30 mt-10 mb-0\">
  86.                     ";
  87.             // line 18
  88.             echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"input""name", ["width" => "100%""placeholder" => "Nome progetto"]);
  89.             // line 21
  90.             echo "
  91.                 </p>
  92.                 <p class=\"fs-20\">
  93.                     ";
  94.             // line 24
  95.             echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"textarea""location", ["width" => "100%""placeholder" => "Location"]);
  96.             // line 27
  97.             echo "
  98.                 </p>
  99.         ";
  100.             // line 29
  101.             if (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.'29$this->source); })()), "getHref", [], "method"falsefalsetrue29)) {
  102.                 // line 30
  103.                 echo "            </a>
  104.         ";
  105.             } else {
  106.                 // line 32
  107.                 echo "            </div>
  108.         ";
  109.             }
  110.             // line 34
  111.             echo "    ";
  112.         }
  113.         $_parent $context['_parent'];
  114.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['i'], $context['_parent'], $context['loop']);
  115.         $context array_intersect_key($context$_parent) + $_parent;
  116.         // line 35
  117.         echo "</div>
  118. ";
  119.         
  120.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  121.         
  122.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  123.     }
  124.     public function getTemplateName()
  125.     {
  126.         return "@AleaAreabricks/areas/portfolio-grid/view.html.twig";
  127.     }
  128.     public function isTraitable()
  129.     {
  130.         return false;
  131.     }
  132.     public function getDebugInfo()
  133.     {
  134.         return array (  126 => 35,  120 => 34,  116 => 32,  112 => 30,  110 => 29,  106 => 27,  104 => 24,  99 => 21,  97 => 18,  94 => 17,  86 => 15,  80 => 13,  77 => 12,  73 => 10,  67 => 8,  64 => 7,  61 => 6,  55 => 4,  52 => 3,  48 => 2,  45 => 1,);
  135.     }
  136.     public function getSourceContext()
  137.     {
  138.         return new Source("<div class=\"row gx-0 gx-md-40\">
  139.     {% for i in pimcore_block('myBlock').iterator %}
  140.         {% if editmode %}
  141.             {{ pimcore_link('link') }}
  142.         {% endif %}
  143.         {%  set link = pimcore_link('link') %}
  144.         {% if link.getHref() %}
  145.             <a href=\"{{ link.getHref() ?: '#' }}\" class=\"col-12 col-md-6 mb-40 mb-lg-80\">
  146.         {% else %}
  147.             <div class=\"col-12 col-md-6 mb-40 mb-lg-80\">
  148.         {% endif %}
  149.                 {% if editmode %}
  150.                     {{ pimcore_image(\"image\") }}
  151.                 {% else %}
  152.                     <img src=\"{{ pimcore_image(\"image\").getSrc() }}\" alt=\"{{ pimcore_image(\"image\").getAlt() }}\" class=\"w-100\"/>
  153.                 {% endif %}
  154.                 <p class=\"fs-30 mt-10 mb-0\">
  155.                     {{ pimcore_input(\"name\",{
  156.                         \"width\": '100%',
  157.                         \"placeholder\": \"Nome progetto\"
  158.                     }) }}
  159.                 </p>
  160.                 <p class=\"fs-20\">
  161.                     {{ pimcore_textarea(\"location\",{
  162.                         \"width\": '100%',
  163.                         \"placeholder\": \"Location\"
  164.                     }) }}
  165.                 </p>
  166.         {% if link.getHref() %}
  167.             </a>
  168.         {% else %}
  169.             </div>
  170.         {% endif %}
  171.     {% endfor %}
  172. </div>
  173. ""@AleaAreabricks/areas/portfolio-grid/view.html.twig""/var/www/html/bundles/Alea/AreabricksBundle/Resources/views/areas/portfolio-grid/view.html.twig");
  174.     }
  175.     
  176.     public function checkSecurity()
  177.     {
  178.         static $tags = array("for" => 2"if" => 3"set" => 6);
  179.         static $filters = array("escape" => 8);
  180.         static $functions = array("pimcore_block" => 2"pimcore_link" => 4"pimcore_image" => 13"pimcore_input" => 18"pimcore_textarea" => 24);
  181.         try {
  182.             $this->sandbox->checkSecurity(
  183.                 ['for''if''set'],
  184.                 ['escape'],
  185.                 ['pimcore_block''pimcore_link''pimcore_image''pimcore_input''pimcore_textarea']
  186.             );
  187.         } catch (SecurityError $e) {
  188.             $e->setSourceContext($this->source);
  189.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  190.                 $e->setTemplateLine($tags[$e->getTagName()]);
  191.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  192.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  193.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  194.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  195.             }
  196.             throw $e;
  197.         }
  198.     }
  199. }