<?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;
/* @ui2022/modal__content.html.twig */
class __TwigTemplate_c609957a8853f81ef4e1a217861b05c4 extends \Twig\Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
'header' => [$this, 'block_header'],
'body' => [$this, 'block_body'],
];
}
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", "@ui2022/modal__content.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@ui2022/modal__content.html.twig"));
// line 1
$context["title"] = ((twig_get_attribute($this->env, $this->source, ($context["_args"] ?? null), "title", [], "any", true, true, false, 1)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, ($context["_args"] ?? null), "title", [], "any", false, false, false, 1), null)) : (null));
// line 2
$context["subtitle"] = ((twig_get_attribute($this->env, $this->source, ($context["_args"] ?? null), "subtitle", [], "any", true, true, false, 2)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, ($context["_args"] ?? null), "subtitle", [], "any", false, false, false, 2), null)) : (null));
// line 3
$context["styles"] = ((twig_get_attribute($this->env, $this->source, ($context["_args"] ?? null), "styles", [], "any", true, true, false, 3)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, ($context["_args"] ?? null), "styles", [], "any", false, false, false, 3), null)) : (null));
// line 4
$context["close"] = ((twig_get_attribute($this->env, $this->source, ($context["_args"] ?? null), "close", [], "any", true, true, false, 4)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, ($context["_args"] ?? null), "close", [], "any", false, false, false, 4), null)) : (null));
// line 5
echo "
<div class=\"modal-header";
// line 6
if ((isset($context["styles"]) || array_key_exists("styles", $context) ? $context["styles"] : (function () { throw new RuntimeError('Variable "styles" does not exist.', 6, $this->source); })())) {
echo " ";
echo twig_escape_filter($this->env, (isset($context["styles"]) || array_key_exists("styles", $context) ? $context["styles"] : (function () { throw new RuntimeError('Variable "styles" does not exist.', 6, $this->source); })()), "html", null, true);
}
echo "\">
";
// line 7
$this->displayBlock('header', $context, $blocks);
// line 13
echo "</div>
<div class=\"modal-body\">
";
// line 15
$this->displayBlock('body', $context, $blocks);
// line 16
echo "</div>
";
// line 17
if ( $this->hasBlock("footer", $context, $blocks)) {
// line 18
echo " <div class=\"modal-footer\">
";
// line 19
$this->displayBlock("footer", $context, $blocks);
echo "
</div>
";
}
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 7
public function block_header($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(), "block", "header"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "header"));
// line 8
echo " ";
if ( !twig_test_empty((isset($context["title"]) || array_key_exists("title", $context) ? $context["title"] : (function () { throw new RuntimeError('Variable "title" does not exist.', 8, $this->source); })()))) {
// line 9
echo " <h5 class=\"modal-title\">";
echo twig_escape_filter($this->env, (isset($context["title"]) || array_key_exists("title", $context) ? $context["title"] : (function () { throw new RuntimeError('Variable "title" does not exist.', 9, $this->source); })()), "html", null, true);
if ( !twig_test_empty((isset($context["subtitle"]) || array_key_exists("subtitle", $context) ? $context["subtitle"] : (function () { throw new RuntimeError('Variable "subtitle" does not exist.', 9, $this->source); })()))) {
echo " <small>";
echo twig_escape_filter($this->env, (isset($context["subtitle"]) || array_key_exists("subtitle", $context) ? $context["subtitle"] : (function () { throw new RuntimeError('Variable "subtitle" does not exist.', 9, $this->source); })()), "html", null, true);
echo "</small>";
}
echo "</h5>
";
}
// line 11
echo " ";
$this->loadTemplate("@ui2022/modal__close-button.html.twig", "@ui2022/modal__content.html.twig", 11)->display(twig_array_merge(twig_array_merge($context, ["close" => (isset($context["close"]) || array_key_exists("close", $context) ? $context["close"] : (function () { throw new RuntimeError('Variable "close" does not exist.', 11, $this->source); })())]), ['_args' => twig_to_array(["close" => (isset($context["close"]) || array_key_exists("close", $context) ? $context["close"] : (function () { throw new RuntimeError('Variable "close" does not exist.', 11, $this->source); })())])]));
// line 12
echo " ";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 15
public function block_body($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(), "block", "body"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "@ui2022/modal__content.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 130 => 15, 120 => 12, 117 => 11, 106 => 9, 103 => 8, 93 => 7, 79 => 19, 76 => 18, 74 => 17, 71 => 16, 69 => 15, 65 => 13, 63 => 7, 56 => 6, 53 => 5, 51 => 4, 49 => 3, 47 => 2, 45 => 1,);
}
public function getSourceContext()
{
return new Source("{% set title = _args.title|default(null) %}
{% set subtitle = _args.subtitle|default(null) %}
{% set styles = _args.styles|default(null) %}
{% set close = _args.close|default(null) %}
<div class=\"modal-header{% if styles %} {{ styles }}{% endif %}\">
{% block header %}
{% if title is not empty %}
<h5 class=\"modal-title\">{{ title }}{% if subtitle is not empty %} <small>{{ subtitle }}</small>{% endif %}</h5>
{% endif %}
{% include '@ui2022/modal__close-button.html.twig' with { close: close } %}
{% endblock %}
</div>
<div class=\"modal-body\">
{% block body %}{% endblock %}
</div>
{% if block('footer') is defined %}
<div class=\"modal-footer\">
{{ block('footer') }}
</div>
{% endif %}
", "@ui2022/modal__content.html.twig", "/var/www/campussuite/ui2022/modal__content.html.twig");
}
}