var/cache/dev/twig/3b/3b35c40660ea2ad3cc08094995105659c53d0f45349298894b4d1a2f6592d948.php line 67

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\SandboxExtension;
  6. use Twig\Markup;
  7. use Twig\Sandbox\SecurityError;
  8. use Twig\Sandbox\SecurityNotAllowedTagError;
  9. use Twig\Sandbox\SecurityNotAllowedFilterError;
  10. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  11. use Twig\Source;
  12. use Twig\Template;
  13. /* CHCookieConsentBundle::cookie_consent.html.twig */
  14. class __TwigTemplate_91c4176bcc65b937d186f28bb3ab2111e47aee507ea6bb55b1433a5651ea66d0 extends \Twig\Template
  15. {
  16.     private $source;
  17.     private $macros = [];
  18.     public function __construct(Environment $env)
  19.     {
  20.         parent::__construct($env);
  21.         $this->source $this->getSourceContext();
  22.         $this->parent false;
  23.         $this->blocks = [
  24.             'intro' => [$this'block_intro'],
  25.             'read_more' => [$this'block_read_more'],
  26.             'read_more_link' => [$this'block_read_more_link'],
  27.             'toggle_details' => [$this'block_toggle_details'],
  28.         ];
  29.     }
  30.     protected function doDisplay(array $context, array $blocks = [])
  31.     {
  32.         $macros $this->macros;
  33.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  34.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""CHCookieConsentBundle::cookie_consent.html.twig"));
  35.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  36.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""CHCookieConsentBundle::cookie_consent.html.twig"));
  37.         // line 1
  38.         $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); })()), [=> "@CHCookieConsent/form/cookie_consent_theme.html.twig"], true);
  39.         // line 2
  40.         echo "<div class=\"container position-relative p-2  ch-cookie-consent ch-cookie-consent--";
  41.         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"nulltrue);
  42.         echo "-theme ch-cookie-consent--";
  43.         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"nulltrue);
  44.         echo " ";
  45.         if ((isset($context["simplified"]) || array_key_exists("simplified"$context) ? $context["simplified"] : (function () { throw new RuntimeError('Variable "simplified" does not exist.'2$this->source); })())) {
  46.             echo "ch-cookie-consent--simplified";
  47.         }
  48.         echo "\">
  49.     <div class=\"text-center pb-md-2 pb-3\">
  50.     ";
  51.         // line 4
  52.         $this->displayBlock('intro'$context$blocks);
  53.         // line 18
  54.         echo "    </div>
  55.    
  56.     ";
  57.         // line 20
  58.         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"]]);
  59.         echo "
  60.     <div class=\"ch-cookie-consent__category-group mb-3\">
  61.         ";
  62.         // line 22
  63.         $context['_parent'] = $context;
  64.         $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); })()));
  65.         foreach ($context['_seq'] as $context["_key"] => $context["child"]) {
  66.             // line 23
  67.             echo "            ";
  68.             if ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["child"], "vars", [], "any"falsefalsefalse23), "block_prefixes", [], "any"falsefalsefalse23), 0, [], "array"falsefalsefalse23) != "button")) {
  69.                 // line 24
  70.                 echo "                ";
  71.                 echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($context["child"], 'row');
  72.                 echo "
  73.             ";
  74.             }
  75.             // line 26
  76.             echo "        ";
  77.         }
  78.         $_parent $context['_parent'];
  79.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['child'], $context['_parent'], $context['loop']);
  80.         $context array_intersect_key($context$_parent) + $_parent;
  81.         // line 27
  82.         echo "    </div>
  83.    
  84.     <div class=\"ch-cookie-consent__btn-group row align-items-center justify-content-center\">
  85.         ";
  86.         // line 30
  87.         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');
  88.         echo "
  89.     </div>
  90.     ";
  91.         // line 32
  92.         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');
  93.         echo "
  94. </div>";
  95.         
  96.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  97.         
  98.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  99.     }
  100.     // line 4
  101.     public function block_intro($context, array $blocks = [])
  102.     {
  103.         $macros $this->macros;
  104.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  105.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""intro"));
  106.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  107.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""intro"));
  108.         // line 5
  109.         echo "        <p class=\"text-center pt-2 d-inline-block mb-0\"> ";
  110.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("ch_cookie_consent.introduction"), "html"nulltrue);
  111.         echo "</p> 
  112.         ";
  113.         // line 6
  114.         $this->displayBlock('read_more'$context$blocks);
  115.         // line 9
  116.         echo "         ";
  117.         if ((isset($context["simplified"]) || array_key_exists("simplified"$context) ? $context["simplified"] : (function () { throw new RuntimeError('Variable "simplified" does not exist.'9$this->source); })())) {
  118.             // line 10
  119.             echo "            ";
  120.             $this->displayBlock('toggle_details'$context$blocks);
  121.             // line 16
  122.             echo "        ";
  123.         }
  124.         // line 17
  125.         echo "    ";
  126.         
  127.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  128.         
  129.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  130.     }
  131.     // line 6
  132.     public function block_read_more($context, array $blocks = [])
  133.     {
  134.         $macros $this->macros;
  135.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  136.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""read_more"));
  137.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  138.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""read_more"));
  139.         // line 7
  140.         echo "            <div class=\"d-inline-block\"><a class=\"ch-cookie-consent__read-more\" href=\"";
  141.         $this->displayBlock('read_more_link'$context$blocks);
  142.         echo "\" target=\"_blank\">";
  143.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("ch_cookie_consent.read_more"), "html"nulltrue);
  144.         echo "</a></div>
  145.         ";
  146.         
  147.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  148.         
  149.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  150.     }
  151.     public function block_read_more_link($context, array $blocks = [])
  152.     {
  153.         $macros $this->macros;
  154.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  155.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""read_more_link"));
  156.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  157.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""read_more_link"));
  158.         echo "/page/charte-de-confidentialite";
  159.         
  160.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  161.         
  162.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  163.     }
  164.     // line 10
  165.     public function block_toggle_details($context, array $blocks = [])
  166.     {
  167.         $macros $this->macros;
  168.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  169.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""toggle_details"));
  170.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  171.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""toggle_details"));
  172.         // line 11
  173.         echo "                <div class=\"ch-cookie-consent__toggle-details d-inline-block\">
  174.                     <span class=\"ch-cookie-consent__toggle-details-show\">";
  175.         // line 12
  176.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("ch_cookie_consent.show_details"), "html"nulltrue);
  177.         echo "</span>
  178.                     <span class=\"ch-cookie-consent__toggle-details-hide\">";
  179.         // line 13
  180.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("ch_cookie_consent.hide_details"), "html"nulltrue);
  181.         echo "</span>
  182.                 </div>
  183.             ";
  184.         
  185.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  186.         
  187.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  188.     }
  189.     public function getTemplateName()
  190.     {
  191.         return "CHCookieConsentBundle::cookie_consent.html.twig";
  192.     }
  193.     public function isTraitable()
  194.     {
  195.         return false;
  196.     }
  197.     public function getDebugInfo()
  198.     {
  199.         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,);
  200.     }
  201.     public function getSourceContext()
  202.     {
  203.         return new Source("{% form_theme form '@CHCookieConsent/form/cookie_consent_theme.html.twig' %}
  204. <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 %}\">
  205.     <div class=\"text-center pb-md-2 pb-3\">
  206.     {% block intro %}
  207.         <p class=\"text-center pt-2 d-inline-block mb-0\"> {{ 'ch_cookie_consent.introduction'|trans }}</p> 
  208.         {% block read_more %}
  209.             <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>
  210.         {% endblock %}
  211.          {% if simplified %}
  212.             {% block toggle_details %}
  213.                 <div class=\"ch-cookie-consent__toggle-details d-inline-block\">
  214.                     <span class=\"ch-cookie-consent__toggle-details-show\">{{ 'ch_cookie_consent.show_details'|trans }}</span>
  215.                     <span class=\"ch-cookie-consent__toggle-details-hide\">{{ 'ch_cookie_consent.hide_details'|trans }}</span>
  216.                 </div>
  217.             {% endblock %}
  218.         {% endif %}
  219.     {% endblock %}
  220.     </div>
  221.    
  222.     {{ form_start(form, {'action': path('sylius_shop_homepage'), 'attr': {'class': 'ch-cookie-consent__form mt-0'}}) }}
  223.     <div class=\"ch-cookie-consent__category-group mb-3\">
  224.         {% for child in form %}
  225.             {% if child.vars.block_prefixes[0] != 'button' %}
  226.                 {{ form_row(child) }}
  227.             {% endif %}
  228.         {% endfor %}
  229.     </div>
  230.    
  231.     <div class=\"ch-cookie-consent__btn-group row align-items-center justify-content-center\">
  232.         {{ form_rest(form) }}
  233.     </div>
  234.     {{ form_end(form) }}
  235. </div>""CHCookieConsentBundle::cookie_consent.html.twig""/home/rayonnage/preprod/sylius/themes/BootstrapTheme/CHCookieConsentBundle/views/cookie_consent.html.twig");
  236.     }
  237. }