<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\CoreExtension;
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;
use Twig\TemplateWrapper;
/* areas/content-brick/partials/_headline.html.twig */
class __TwigTemplate_0fb01394a13d48a80c0486990d7c18fb2a5adbf65f7bc41298b1e96836075b40 extends Template
{
private Source $source;
/**
* @var array<string, Template>
*/
private array $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
];
$this->sandbox = $this->extensions[SandboxExtension::class];
$this->checkSecurity();
}
protected function doDisplay(array $context, array $blocks = []): iterable
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "areas/content-brick/partials/_headline.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "areas/content-brick/partials/_headline.html.twig"));
// line 1
yield "<span class=\"inline-block mb-1 text-base font-bold md:mb-3 md:text-lg\">
";
// line 3
if ((array_key_exists("preHeadlineIconActive", $context) && !array_key_exists("overrideIcon", $context))) {
// line 4
yield " ";
yield $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "image", "preHeadlineIconActive", ["thumbnail" => "icon"]);
// line 7
yield "
";
}
// line 9
yield "
";
// line 10
if ((array_key_exists("overrideIcon", $context) && !Twig\Extension\CoreExtension::testEmpty((isset($context["overrideIcon"]) || array_key_exists("overrideIcon", $context) ? $context["overrideIcon"] : (function () { throw new RuntimeError('Variable "overrideIcon" does not exist.', 10, $this->source); })())))) {
// line 11
yield " <span class=\"block w-12 h-12 mb-3\">
";
// line 12
yield $this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["overrideIcon"]) || array_key_exists("overrideIcon", $context) ? $context["overrideIcon"] : (function () { throw new RuntimeError('Variable "overrideIcon" does not exist.', 12, $this->source); })()), "thumbnail", ["icon"], "method", false, false, true, 12), "html", [], "any", false, false, true, 12), 12, $this->source);
yield "
</span>
";
}
// line 15
yield "
";
// line 16
if ((isset($context["editmode"]) || array_key_exists("editmode", $context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.', 16, $this->source); })())) {
// line 17
yield " ";
yield $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "input", "headline", ["placeholder" => ($context["defaultHeadline"] ?? "Headline")]);
yield "
";
} else {
// line 19
yield " ";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['App\Twig\RenderOrDefaultExtension']->renderOrDefault($this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "input", "headline"), "getData", [], "method", false, false, true, 19), 19, $this->source), ($context["defaultHeadline"] ?? "")), "html", null, true);
yield "
";
}
// line 21
yield "</span>
";
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
yield from [];
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName(): string
{
return "areas/content-brick/partials/_headline.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable(): bool
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo(): array
{
return array ( 94 => 21, 88 => 19, 82 => 17, 80 => 16, 77 => 15, 71 => 12, 68 => 11, 66 => 10, 63 => 9, 59 => 7, 56 => 4, 54 => 3, 50 => 1,);
}
public function getSourceContext(): Source
{
return new Source("<span class=\"inline-block mb-1 text-base font-bold md:mb-3 md:text-lg\">
{% if preHeadlineIconActive is defined and overrideIcon is not defined %}
{{ pimcore_image('preHeadlineIconActive',
{
'thumbnail': 'icon',
}) |raw }}
{% endif %}
{% if overrideIcon is defined and overrideIcon is not empty %}
<span class=\"block w-12 h-12 mb-3\">
{{ overrideIcon.thumbnail('icon').html|raw }}
</span>
{% endif %}
{% if editmode %}
{{ pimcore_input(\"headline\", {'placeholder': defaultHeadline ?? \"Headline\"}) }}
{% else %}
{{ renderOrDefault(pimcore_input(\"headline\").getData(), defaultHeadline ?? \"\") }}
{% endif %}
</span>
", "areas/content-brick/partials/_headline.html.twig", "/home/forge/testing.coolworld.ptchr.dev/templates/areas/content-brick/partials/_headline.html.twig");
}
public function checkSecurity()
{
static $tags = ["if" => 3];
static $filters = ["raw" => 7, "escape" => 19];
static $functions = ["pimcore_image" => 4, "pimcore_input" => 17, "renderOrDefault" => 19];
try {
$this->sandbox->checkSecurity(
['if'],
['raw', 'escape'],
['pimcore_image', 'pimcore_input', 'renderOrDefault'],
$this->source
);
} 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;
}
}
}