<?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;
/* areas/quote/includes/quote.html.twig */
class __TwigTemplate_30d09074393e025e13568cfa8b1f838d 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", "areas/quote/includes/quote.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "areas/quote/includes/quote.html.twig"));
// line 6
echo "<div class=\"area quote\">
\t<div class=\"quote__ornament quote__ornament--top\">
\t\t";
// line 8
echo $this->extensions['App\Twig\Extension\SvgExtension']->getInline("ornament-6-top");
echo "
\t</div>
\t<div class=\"quote__content\">
\t\t";
// line 13
if (((isset($context["editmode"]) || array_key_exists("editmode", $context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.', 13, $this->source); })()) || !twig_get_attribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "input", "headline"), "isEmpty", [], "method", false, false, true, 13))) {
// line 14
echo "\t\t\t<div class=\"quote__title quote__title--headline\">";
echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "input", "headline", ["placeholder" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("brick.quote.placeholder.headline", [], "admin")]);
echo "</div>
\t\t";
}
// line 16
echo "
\t\t<div class=\"quote__text\">
\t\t\t";
// line 18
echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "textarea", "text", ["nl2br" => true, "placeholder" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("brick.quote.placeholder.text", [], "admin")]);
// line 23
echo "
\t\t</div>
\t</div>
\t<div class=\"quote__ornament quote__ornament--bottom\">
\t\t";
// line 28
echo $this->extensions['App\Twig\Extension\SvgExtension']->getInline("ornament-6-bottom");
echo "
\t</div>
\t";
// line 31
if (((isset($context["editmode"]) || array_key_exists("editmode", $context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.', 31, $this->source); })()) || !twig_get_attribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "input", "subline"), "isEmpty", [], "method", false, false, true, 31))) {
// line 32
echo "\t\t<div class=\"quote__title quote__title--subline\">";
echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "input", "subline", ["placeholder" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("brick.quote.placeholder.subline", [], "admin")]);
echo "</div>
\t";
}
// line 34
echo "</div>";
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
public function getTemplateName()
{
return "areas/quote/includes/quote.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 92 => 34, 86 => 32, 84 => 31, 78 => 28, 71 => 23, 69 => 18, 65 => 16, 59 => 14, 57 => 13, 49 => 8, 45 => 6,);
}
public function getSourceContext()
{
return new Source("{#
project: Pimcore - Schutzverband Nuernberg Rostbratwuerste
User: erikb
Year: 2023
#}
<div class=\"area quote\">
\t<div class=\"quote__ornament quote__ornament--top\">
\t\t{{ get_svg_inline('ornament-6-top') }}
\t</div>
\t<div class=\"quote__content\">
\t\t{% if editmode or not pimcore_input('headline').isEmpty() %}
\t\t\t<div class=\"quote__title quote__title--headline\">{{ pimcore_input('headline', { placeholder: 'brick.quote.placeholder.headline'|trans({}, 'admin') }) }}</div>
\t\t{% endif %}
\t\t<div class=\"quote__text\">
\t\t\t{{
\t\t\tpimcore_textarea('text', {
\t\t\t\tnl2br: true,
\t\t\t\tplaceholder: 'brick.quote.placeholder.text'|trans({}, 'admin')
\t\t\t})
\t\t\t}}
\t\t</div>
\t</div>
\t<div class=\"quote__ornament quote__ornament--bottom\">
\t\t{{ get_svg_inline('ornament-6-bottom') }}
\t</div>
\t{% if editmode or not pimcore_input('subline').isEmpty() %}
\t\t<div class=\"quote__title quote__title--subline\">{{ pimcore_input('subline', { placeholder: 'brick.quote.placeholder.subline'|trans({}, 'admin') }) }}</div>
\t{% endif %}
</div>", "areas/quote/includes/quote.html.twig", "/var/www/snr/staging.nuernberger-bratwuerste.de/templates/areas/quote/includes/quote.html.twig");
}
public function checkSecurity()
{
static $tags = array("if" => 13);
static $filters = array("trans" => 14);
static $functions = array("get_svg_inline" => 8, "pimcore_input" => 13, "pimcore_textarea" => 19);
try {
$this->sandbox->checkSecurity(
['if'],
['trans'],
['get_svg_inline', '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;
}
}
}