<?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;
/* CHCookieConsentBundle::cookie_consent.html.twig */
class __TwigTemplate_91c4176bcc65b937d186f28bb3ab2111e47aee507ea6bb55b1433a5651ea66d0 extends \Twig\Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
'intro' => [$this, 'block_intro'],
'read_more' => [$this, 'block_read_more'],
'read_more_link' => [$this, 'block_read_more_link'],
'toggle_details' => [$this, 'block_toggle_details'],
];
}
protected function doDisplay(array $context, array $blocks = [])
{
$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", "CHCookieConsentBundle::cookie_consent.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "CHCookieConsentBundle::cookie_consent.html.twig"));
// line 1
$this->env->getRuntime("Symfony\\Component\\Form\\FormRenderer")->setTheme((isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 1, $this->source); })()), [0 => "@CHCookieConsent/form/cookie_consent_theme.html.twig"], true);
// line 2
echo "<div class=\"container position-relative p-2 ch-cookie-consent ch-cookie-consent--";
echo twig_escape_filter($this->env, (isset($context["theme"]) || array_key_exists("theme", $context) ? $context["theme"] : (function () { throw new RuntimeError('Variable "theme" does not exist.', 2, $this->source); })()), "html", null, true);
echo "-theme ch-cookie-consent--";
echo twig_escape_filter($this->env, (isset($context["position"]) || array_key_exists("position", $context) ? $context["position"] : (function () { throw new RuntimeError('Variable "position" does not exist.', 2, $this->source); })()), "html", null, true);
echo " ";
if ((isset($context["simplified"]) || array_key_exists("simplified", $context) ? $context["simplified"] : (function () { throw new RuntimeError('Variable "simplified" does not exist.', 2, $this->source); })())) {
echo "ch-cookie-consent--simplified";
}
echo "\">
<div class=\"text-center pb-md-2 pb-3\">
";
// line 4
$this->displayBlock('intro', $context, $blocks);
// line 18
echo " </div>
";
// line 20
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 20, $this->source); })()), 'form_start', ["action" => $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("sylius_shop_homepage"), "attr" => ["class" => "ch-cookie-consent__form mt-0"]]);
echo "
<div class=\"ch-cookie-consent__category-group mb-3\">
";
// line 22
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 22, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["child"]) {
// line 23
echo " ";
if ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["child"], "vars", [], "any", false, false, false, 23), "block_prefixes", [], "any", false, false, false, 23), 0, [], "array", false, false, false, 23) != "button")) {
// line 24
echo " ";
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($context["child"], 'row');
echo "
";
}
// line 26
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['child'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 27
echo " </div>
<div class=\"ch-cookie-consent__btn-group row align-items-center justify-content-center\">
";
// line 30
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock((isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 30, $this->source); })()), 'rest');
echo "
</div>
";
// line 32
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 32, $this->source); })()), 'form_end');
echo "
</div>";
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
// line 4
public function block_intro($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "intro"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "intro"));
// line 5
echo " <p class=\"text-center pt-2 d-inline-block mb-0\"> ";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("ch_cookie_consent.introduction"), "html", null, true);
echo "</p>
";
// line 6
$this->displayBlock('read_more', $context, $blocks);
// line 9
echo " ";
if ((isset($context["simplified"]) || array_key_exists("simplified", $context) ? $context["simplified"] : (function () { throw new RuntimeError('Variable "simplified" does not exist.', 9, $this->source); })())) {
// line 10
echo " ";
$this->displayBlock('toggle_details', $context, $blocks);
// line 16
echo " ";
}
// line 17
echo " ";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 6
public function block_read_more($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "read_more"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "read_more"));
// line 7
echo " <div class=\"d-inline-block\"><a class=\"ch-cookie-consent__read-more\" href=\"";
$this->displayBlock('read_more_link', $context, $blocks);
echo "\" target=\"_blank\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("ch_cookie_consent.read_more"), "html", null, true);
echo "</a></div>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function block_read_more_link($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "read_more_link"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "read_more_link"));
echo "/page/charte-de-confidentialite";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 10
public function block_toggle_details($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "toggle_details"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "toggle_details"));
// line 11
echo " <div class=\"ch-cookie-consent__toggle-details d-inline-block\">
<span class=\"ch-cookie-consent__toggle-details-show\">";
// line 12
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("ch_cookie_consent.show_details"), "html", null, true);
echo "</span>
<span class=\"ch-cookie-consent__toggle-details-hide\">";
// line 13
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("ch_cookie_consent.hide_details"), "html", null, true);
echo "</span>
</div>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "CHCookieConsentBundle::cookie_consent.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 209 => 13, 205 => 12, 202 => 11, 192 => 10, 159 => 7, 149 => 6, 139 => 17, 136 => 16, 133 => 10, 130 => 9, 128 => 6, 123 => 5, 113 => 4, 101 => 32, 96 => 30, 91 => 27, 85 => 26, 79 => 24, 76 => 23, 72 => 22, 67 => 20, 63 => 18, 61 => 4, 49 => 2, 47 => 1,);
}
public function getSourceContext()
{
return new Source("{% form_theme form '@CHCookieConsent/form/cookie_consent_theme.html.twig' %}
<div class=\"container position-relative p-2 ch-cookie-consent ch-cookie-consent--{{ theme }}-theme ch-cookie-consent--{{ position }} {% if simplified %}ch-cookie-consent--simplified{% endif %}\">
<div class=\"text-center pb-md-2 pb-3\">
{% block intro %}
<p class=\"text-center pt-2 d-inline-block mb-0\"> {{ 'ch_cookie_consent.introduction'|trans }}</p>
{% block read_more %}
<div class=\"d-inline-block\"><a class=\"ch-cookie-consent__read-more\" href=\"{% block read_more_link %}/page/charte-de-confidentialite{% endblock %}\" target=\"_blank\">{{ 'ch_cookie_consent.read_more'|trans }}</a></div>
{% endblock %}
{% if simplified %}
{% block toggle_details %}
<div class=\"ch-cookie-consent__toggle-details d-inline-block\">
<span class=\"ch-cookie-consent__toggle-details-show\">{{ 'ch_cookie_consent.show_details'|trans }}</span>
<span class=\"ch-cookie-consent__toggle-details-hide\">{{ 'ch_cookie_consent.hide_details'|trans }}</span>
</div>
{% endblock %}
{% endif %}
{% endblock %}
</div>
{{ form_start(form, {'action': path('sylius_shop_homepage'), 'attr': {'class': 'ch-cookie-consent__form mt-0'}}) }}
<div class=\"ch-cookie-consent__category-group mb-3\">
{% for child in form %}
{% if child.vars.block_prefixes[0] != 'button' %}
{{ form_row(child) }}
{% endif %}
{% endfor %}
</div>
<div class=\"ch-cookie-consent__btn-group row align-items-center justify-content-center\">
{{ form_rest(form) }}
</div>
{{ form_end(form) }}
</div>", "CHCookieConsentBundle::cookie_consent.html.twig", "/home/rayonnage/preprod/sylius/themes/BootstrapTheme/CHCookieConsentBundle/views/cookie_consent.html.twig");
}
}