<?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/portfolio-grid/view.html.twig */
class __TwigTemplate_ec79e996f6dd04bcb539dbb5727451ba 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/portfolio-grid/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/portfolio-grid/view.html.twig"));
// line 1
echo "<div class=\"row gx-0 gx-md-40\">
";
// line 2
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "block", "myBlock"), "iterator", [], "any", false, false, true, 2));
foreach ($context['_seq'] as $context["_key"] => $context["i"]) {
// line 3
echo " ";
if ((isset($context["editmode"]) || array_key_exists("editmode", $context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.', 3, $this->source); })())) {
// line 4
echo " ";
echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "link", "link");
echo "
";
}
// line 6
echo " ";
$context["link"] = $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "link", "link");
// line 7
echo " ";
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", false, false, true, 7)) {
// line 8
echo " <a href=\"";
((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", false, false, true, 8)) ? (print (twig_escape_filter($this->env, 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", false, false, true, 8), "html", null, true))) : (print ("#")));
echo "\" class=\"col-12 col-md-6 mb-40 mb-lg-80\">
";
} else {
// line 10
echo " <div class=\"col-12 col-md-6 mb-40 mb-lg-80\">
";
}
// line 12
echo " ";
if ((isset($context["editmode"]) || array_key_exists("editmode", $context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.', 12, $this->source); })())) {
// line 13
echo " ";
echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "image", "image");
echo "
";
} else {
// line 15
echo " <img src=\"";
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", false, false, true, 15), 15, $this->source), "html", null, true);
echo "\" alt=\"";
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", false, false, true, 15), 15, $this->source), "html", null, true);
echo "\" class=\"w-100\"/>
";
}
// line 17
echo " <p class=\"fs-30 mt-10 mb-0\">
";
// line 18
echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "input", "name", ["width" => "100%", "placeholder" => "Nome progetto"]);
// line 21
echo "
</p>
<p class=\"fs-20\">
";
// line 24
echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "textarea", "location", ["width" => "100%", "placeholder" => "Location"]);
// line 27
echo "
</p>
";
// line 29
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", false, false, true, 29)) {
// line 30
echo " </a>
";
} else {
// line 32
echo " </div>
";
}
// line 34
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['i'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 35
echo "</div>
";
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
public function getTemplateName()
{
return "@AleaAreabricks/areas/portfolio-grid/view.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
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,);
}
public function getSourceContext()
{
return new Source("<div class=\"row gx-0 gx-md-40\">
{% for i in pimcore_block('myBlock').iterator %}
{% if editmode %}
{{ pimcore_link('link') }}
{% endif %}
{% set link = pimcore_link('link') %}
{% if link.getHref() %}
<a href=\"{{ link.getHref() ?: '#' }}\" class=\"col-12 col-md-6 mb-40 mb-lg-80\">
{% else %}
<div class=\"col-12 col-md-6 mb-40 mb-lg-80\">
{% endif %}
{% if editmode %}
{{ pimcore_image(\"image\") }}
{% else %}
<img src=\"{{ pimcore_image(\"image\").getSrc() }}\" alt=\"{{ pimcore_image(\"image\").getAlt() }}\" class=\"w-100\"/>
{% endif %}
<p class=\"fs-30 mt-10 mb-0\">
{{ pimcore_input(\"name\",{
\"width\": '100%',
\"placeholder\": \"Nome progetto\"
}) }}
</p>
<p class=\"fs-20\">
{{ pimcore_textarea(\"location\",{
\"width\": '100%',
\"placeholder\": \"Location\"
}) }}
</p>
{% if link.getHref() %}
</a>
{% else %}
</div>
{% endif %}
{% endfor %}
</div>
", "@AleaAreabricks/areas/portfolio-grid/view.html.twig", "/var/www/html/bundles/Alea/AreabricksBundle/Resources/views/areas/portfolio-grid/view.html.twig");
}
public function checkSecurity()
{
static $tags = array("for" => 2, "if" => 3, "set" => 6);
static $filters = array("escape" => 8);
static $functions = array("pimcore_block" => 2, "pimcore_link" => 4, "pimcore_image" => 13, "pimcore_input" => 18, "pimcore_textarea" => 24);
try {
$this->sandbox->checkSecurity(
['for', 'if', 'set'],
['escape'],
['pimcore_block', 'pimcore_link', 'pimcore_image', 'pimcore_input', 'pimcore_textarea']
);
} 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;
}
}
}