var/cache/dev/twig/19/195a086528a522d1b0c95f333caed6b9.php line 93

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. /* @SyliusShop/register.html.twig */
  14. class __TwigTemplate_a0a5c0cb4dcc5bed1ea2f7f469f219b8 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->blocks = [
  23.             'stylesheets' => [$this'block_stylesheets'],
  24.             'javascripts' => [$this'block_javascripts'],
  25.             'title' => [$this'block_title'],
  26.             'content' => [$this'block_content'],
  27.         ];
  28.     }
  29.     protected function doGetParent(array $context)
  30.     {
  31.         // line 1
  32.         return "@SyliusShop/layout.html.twig";
  33.     }
  34.     protected function doDisplay(array $context, array $blocks = [])
  35.     {
  36.         $macros $this->macros;
  37.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  38.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@SyliusShop/register.html.twig"));
  39.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  40.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@SyliusShop/register.html.twig"));
  41.         // line 3
  42.         $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.'3$this->source); })()), [=> "@SyliusShop/Form/theme.html.twig"], true);
  43.         // line 5
  44.         $macros["headers"] = $this->macros["headers"] = $this->loadTemplate("@SyliusShop/Common/Macro/headers.html.twig""@SyliusShop/register.html.twig"5)->unwrap();
  45.         // line 1
  46.         $this->parent $this->loadTemplate("@SyliusShop/layout.html.twig""@SyliusShop/register.html.twig"1);
  47.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  48.         
  49.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  50.         
  51.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  52.     }
  53.     // line 7
  54.     public function block_stylesheets($context, array $blocks = [])
  55.     {
  56.         $macros $this->macros;
  57.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  58.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheets"));
  59.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  60.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheets"));
  61.         // line 8
  62.         echo "    ";
  63.         $this->displayParentBlock("stylesheets"$context$blocks);
  64.         echo "
  65.     ";
  66.         // line 9
  67.         echo $this->extensions['Symfony\WebpackEncoreBundle\Twig\EntryFilesTwigExtension']->renderWebpackLinkTags("shop-app"null"bootstrapTheme");
  68.         echo "
  69. ";
  70.         
  71.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  72.         
  73.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  74.     }
  75.     // line 12
  76.     public function block_javascripts($context, array $blocks = [])
  77.     {
  78.         $macros $this->macros;
  79.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  80.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  81.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  82.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  83.         // line 13
  84.         echo "    ";
  85.         $this->displayParentBlock("javascripts"$context$blocks);
  86.         echo "
  87.     ";
  88.         // line 14
  89.         echo $this->extensions['Symfony\WebpackEncoreBundle\Twig\EntryFilesTwigExtension']->renderWebpackScriptTags("shop-app"null"bootstrapTheme");
  90.         echo "
  91. ";
  92.         
  93.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  94.         
  95.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  96.     }
  97.     // line 17
  98.     public function block_title($context, array $blocks = [])
  99.     {
  100.         $macros $this->macros;
  101.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  102.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  103.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  104.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  105.         // line 18
  106.         echo "    ";
  107.         echo $this->extensions['Sylius\Bundle\UiBundle\Twig\TemplateEventExtension']->render("dedi_sylius_seo_plugin.title", ["resource" => (($context["product"]) ?? (twig_get_attribute($this->env$this->source, (isset($context["sylius"]) || array_key_exists("sylius"$context) ? $context["sylius"] : (function () { throw new RuntimeError('Variable "sylius" does not exist.'18$this->source); })()), "channel", [], "any"falsefalsefalse18))), "title" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.ui.register_in_the_store")]);
  108.         echo "
  109. ";
  110.         
  111.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  112.         
  113.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  114.     }
  115.     // line 21
  116.     public function block_content($context, array $blocks = [])
  117.     {
  118.         $macros $this->macros;
  119.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  120.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  121.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  122.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  123.         // line 22
  124.         echo "    <div class=\"row\">
  125.         <div class=\"col-md-10 mx-md-auto col-lg-9 col-xl-8\">
  126.             ";
  127.         // line 24
  128.         $this->loadTemplate("@SyliusShop/Register/_header.html.twig""@SyliusShop/register.html.twig"24)->display($context);
  129.         // line 25
  130.         echo "
  131.             ";
  132.         // line 26
  133.         echo $this->extensions['Sylius\Bundle\UiBundle\Twig\TemplateEventExtension']->render("sylius.shop.register.after_content_header");
  134.         echo "
  135.             <div class=\"card\">
  136.                 <div class=\"card-body\">
  137.                     ";
  138.         // line 29
  139.         echo $this->extensions['Sylius\Bundle\UiBundle\Twig\TemplateEventExtension']->render("sylius.shop.register.before_form");
  140.         echo "
  141.                     ";
  142.         // line 31
  143.         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.'31$this->source); })()), 'form_start', ["action" => $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("sylius_shop_register"), "attr" => ["class" => "loadable""novalidate" => "novalidate"]]);
  144.         echo "
  145.                     ";
  146.         // line 32
  147.         $this->loadTemplate("@SyliusShop/Register/_form.html.twig""@SyliusShop/register.html.twig"32)->display($context);
  148.         // line 33
  149.         echo "
  150.                     ";
  151.         // line 34
  152.         echo $this->extensions['Sylius\Bundle\UiBundle\Twig\TemplateEventExtension']->render("sylius.shop.register.form", ["form" => (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'34$this->source); })())]);
  153.         echo "
  154.                     <button type=\"submit\" class=\"btn btn-primary\" ";
  155.         // line 36
  156.         echo $this->env->getFunction('sylius_test_html_attribute')->getCallable()("register-button");
  157.         echo " aria-label=\"";
  158.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.ui.create_an_account"), "html"nulltrue);
  159.         echo "\">
  160.                         ";
  161.         // line 37
  162.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.ui.create_an_account"), "html"nulltrue);
  163.         echo "
  164.                     </button>
  165.                     ";
  166.         // line 39
  167.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'39$this->source); })()), "_token", [], "any"falsefalsefalse39), 'row');
  168.         echo "
  169.                     ";
  170.         // line 40
  171.         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.'40$this->source); })()), 'form_end', ["render_rest" => false]);
  172.         echo "
  173.                 </div>
  174.             </div>
  175.         </div>
  176.     </div>
  177. ";
  178.         
  179.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  180.         
  181.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  182.     }
  183.     public function getTemplateName()
  184.     {
  185.         return "@SyliusShop/register.html.twig";
  186.     }
  187.     public function isTraitable()
  188.     {
  189.         return false;
  190.     }
  191.     public function getDebugInfo()
  192.     {
  193.         return array (  202 => 40,  198 => 39,  193 => 37,  187 => 36,  182 => 34,  179 => 33,  177 => 32,  173 => 31,  168 => 29,  162 => 26,  159 => 25,  157 => 24,  153 => 22,  143 => 21,  130 => 18,  120 => 17,  108 => 14,  103 => 13,  93 => 12,  81 => 9,  76 => 8,  66 => 7,  55 => 1,  53 => 5,  51 => 3,  38 => 1,);
  194.     }
  195.     public function getSourceContext()
  196.     {
  197.         return new Source("{% extends '@SyliusShop/layout.html.twig' %}
  198. {% form_theme form '@SyliusShop/Form/theme.html.twig' %}
  199. {% import '@SyliusShop/Common/Macro/headers.html.twig' as headers %}
  200. {% block stylesheets %}
  201.     {{ parent() }}
  202.     {{ encore_entry_link_tags('shop-app', null, 'bootstrapTheme') }}
  203. {% endblock %}
  204. {% block javascripts %}
  205.     {{ parent() }}
  206.     {{ encore_entry_script_tags('shop-app', null, 'bootstrapTheme') }}
  207. {% endblock %}
  208. {% block title %}
  209.     {{ sylius_template_event('dedi_sylius_seo_plugin.title', { resource: product ?? sylius.channel, title: 'sylius.ui.register_in_the_store'|trans }) }}
  210. {% endblock %}
  211. {% block content %}
  212.     <div class=\"row\">
  213.         <div class=\"col-md-10 mx-md-auto col-lg-9 col-xl-8\">
  214.             {% include '@SyliusShop/Register/_header.html.twig' %}
  215.             {{ sylius_template_event('sylius.shop.register.after_content_header') }}
  216.             <div class=\"card\">
  217.                 <div class=\"card-body\">
  218.                     {{ sylius_template_event('sylius.shop.register.before_form') }}
  219.                     {{ form_start(form, {'action': path('sylius_shop_register'), 'attr': {'class': 'loadable', 'novalidate': 'novalidate'}}) }}
  220.                     {% include '@SyliusShop/Register/_form.html.twig' %}
  221.                     {{ sylius_template_event('sylius.shop.register.form', {'form': form}) }}
  222.                     <button type=\"submit\" class=\"btn btn-primary\" {{ sylius_test_html_attribute('register-button') }} aria-label=\"{{ 'sylius.ui.create_an_account'|trans }}\">
  223.                         {{ 'sylius.ui.create_an_account'|trans }}
  224.                     </button>
  225.                     {{ form_row(form._token) }}
  226.                     {{ form_end(form, {'render_rest': false}) }}
  227.                 </div>
  228.             </div>
  229.         </div>
  230.     </div>
  231. {% endblock %}
  232. ""@SyliusShop/register.html.twig""/var/www/sudekusa-shop-test/themes/BootstrapChildTheme/SyliusShopBundle/views/register.html.twig");
  233.     }
  234. }