<?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/cta/view.html.twig */
class __TwigTemplate_5b6b75091439d188353d539cbe6b5196 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/cta/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/cta/view.html.twig"));
// line 1
$context["iconPos"] = twig_get_attribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "select", "iconPos"), "getData", [], "method", false, false, true, 1);
// line 2
$context["ctaColor"] = twig_get_attribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "select", "ctaColor"), "getData", [], "method", false, false, true, 2);
// line 3
echo "
";
// line 5
$context["pm"] = twig_get_attribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "select", "pm"), "getData", [], "method", false, false, true, 5);
echo " ";
// line 6
$context["psm"] = twig_get_attribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "select", "psm"), "getData", [], "method", false, false, true, 6);
echo " ";
// line 7
$context["ptm"] = twig_get_attribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "select", "ptm"), "getData", [], "method", false, false, true, 7);
echo " ";
// line 8
$context["pem"] = twig_get_attribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "select", "pem"), "getData", [], "method", false, false, true, 8);
echo " ";
// line 9
$context["pbm"] = twig_get_attribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "select", "pbm"), "getData", [], "method", false, false, true, 9);
echo " ";
// line 11
$context["pd"] = twig_get_attribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "select", "pd"), "getData", [], "method", false, false, true, 11);
// line 12
$context["psd"] = twig_get_attribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "select", "psd"), "getData", [], "method", false, false, true, 12);
// line 13
$context["ptd"] = twig_get_attribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "select", "ptd"), "getData", [], "method", false, false, true, 13);
// line 14
$context["ped"] = twig_get_attribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "select", "ped"), "getData", [], "method", false, false, true, 14);
// line 15
$context["pbd"] = twig_get_attribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "select", "pbd"), "getData", [], "method", false, false, true, 15);
// line 16
echo "
<div class=\"text-center
";
// line 18
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); })()) != ""))) {
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.', 18, $this->source); })()), 18, $this->source), "html", null, true);
echo " ";
}
// line 19
echo " ";
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); })()) != ""))) {
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.', 19, $this->source); })()), 19, $this->source), "html", null, true);
echo " ";
}
// line 20
echo " ";
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); })()) != ""))) {
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.', 20, $this->source); })()), 20, $this->source), "html", null, true);
echo " ";
}
// line 21
echo " ";
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); })()) != ""))) {
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.', 21, $this->source); })()), 21, $this->source), "html", null, true);
echo " ";
}
// line 22
echo " ";
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); })()) != ""))) {
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.', 22, $this->source); })()), 22, $this->source), "html", null, true);
echo " ";
}
// line 23
echo " ";
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); })()) != ""))) {
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.', 23, $this->source); })()), 23, $this->source), "html", null, true);
echo " ";
}
// line 24
echo " ";
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); })()) != ""))) {
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.', 24, $this->source); })()), 24, $this->source), "html", null, true);
echo " ";
}
// line 25
echo " ";
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); })()) != ""))) {
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.', 25, $this->source); })()), 25, $this->source), "html", null, true);
echo " ";
}
// line 26
echo " ";
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); })()) != ""))) {
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.', 26, $this->source); })()), 26, $this->source), "html", null, true);
echo " ";
}
// line 27
echo " ";
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); })()) != ""))) {
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.', 27, $this->source); })()), 27, $this->source), "html", null, true);
}
echo "\">
<h2>
";
// line 29
echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "input", "title", ["width" => "100%", "placeholder" => "Titolo"]);
// line 32
echo "
</h2>
<p class=\"fs-25\">
";
// line 35
echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "textarea", "description", ["width" => "100%", "placeholder" => "descrizione"]);
// line 38
echo "
</p>
";
// line 40
if ((isset($context["editmode"]) || array_key_exists("editmode", $context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.', 40, $this->source); })())) {
// line 41
echo " ";
echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "link", "link");
echo "
";
} else {
// line 43
echo " ";
$context["link"] = $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "link", "link");
// line 44
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.', 44, $this->source); })()), "getHref", [], "method", false, false, true, 44)) ? (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.', 44, $this->source); })()), "getHref", [], "method", false, false, true, 44), "html", null, true))) : (print ("#")));
echo "\" class=\"link fw-bold fs-20 text-";
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", null, true);
echo "\">";
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"))) {
echo "<i class=\"fa fa-arrow-left-long\"></i>";
}
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.', 44, $this->source); })()), "getText", [], "method", false, false, true, 44), 44, $this->source), "html", null, true);
echo " ";
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"))) {
echo "<i class=\"fa fa-arrow-right-long\"></i>";
}
echo "</a>
";
}
// line 46
echo "</div>";
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
public function getTemplateName()
{
return "@AleaAreabricks/areas/cta/view.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
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,);
}
public function getSourceContext()
{
return new Source("{% set iconPos = pimcore_select('iconPos').getData() %}
{% set ctaColor = pimcore_select('ctaColor').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() %}
<div class=\"text-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 %}\">
<h2>
{{ pimcore_input(\"title\",{
\"width\": '100%',
\"placeholder\": \"Titolo\"
}) }}
</h2>
<p class=\"fs-25\">
{{ pimcore_textarea(\"description\",{
\"width\": '100%',
\"placeholder\": \"descrizione\"
}) }}
</p>
{% if editmode %}
{{ pimcore_link('link') }}
{% else %}
{% set link = pimcore_link('link') %}
<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>
{% endif %}
</div>", "@AleaAreabricks/areas/cta/view.html.twig", "/var/www/html/bundles/Alea/AreabricksBundle/Resources/views/areas/cta/view.html.twig");
}
public function checkSecurity()
{
static $tags = array("set" => 1, "if" => 18);
static $filters = array("escape" => 18);
static $functions = array("pimcore_select" => 1, "pimcore_input" => 29, "pimcore_textarea" => 35, "pimcore_link" => 41);
try {
$this->sandbox->checkSecurity(
['set', 'if'],
['escape'],
['pimcore_select', 'pimcore_input', 'pimcore_textarea', 'pimcore_link']
);
} 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;
}
}
}