var/cache/dev/twig/0d/0d91c253300c85556403a144e90c0dae81490f8585ffd6cb535a341ceb0d4b4f.php line 82

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/login.html.twig */
  14. class __TwigTemplate_e4f20e5b1141b6cc4616b12bd75606d036165f9ff1cdf2ec7071c8d076d0ec0e 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.             'title' => [$this'block_title'],
  24.             'content' => [$this'block_content'],
  25.         ];
  26.     }
  27.     protected function doGetParent(array $context)
  28.     {
  29.         // line 1
  30.         return $this->loadTemplate(((twig_get_attribute($this->env$this->source, (isset($context["is_mobile"]) || array_key_exists("is_mobile"$context) ? $context["is_mobile"] : (function () { throw new RuntimeError('Variable "is_mobile" does not exist.'1$this->source); })()), "check", [], "any"falsefalsefalse1)) ? ("@templates/Mobile/Shop/layout.html.twig") : ("@templates/Front/Shop/layout.html.twig")), "@SyliusShop/login.html.twig"1);
  31.     }
  32.     protected function doDisplay(array $context, array $blocks = [])
  33.     {
  34.         $macros $this->macros;
  35.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  36.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@SyliusShop/login.html.twig"));
  37.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  38.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@SyliusShop/login.html.twig"));
  39.         // line 5
  40.         $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.'5$this->source); })()), [=> "@SyliusShop/Form/theme.html.twig"], true);
  41.         // line 1
  42.         $this->getParent($context)->display($contextarray_merge($this->blocks$blocks));
  43.         
  44.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  45.         
  46.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  47.     }
  48.     // line 3
  49.     public function block_title($context, array $blocks = [])
  50.     {
  51.         $macros $this->macros;
  52.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  53.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  54.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  55.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  56.         echo " ";
  57.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.login"), "html"nulltrue);
  58.         echo " | Roviniete.ro";
  59.         
  60.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  61.         
  62.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  63.     }
  64.     // line 7
  65.     public function block_content($context, array $blocks = [])
  66.     {
  67.         $macros $this->macros;
  68.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  69.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  70.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  71.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  72.         // line 8
  73.         echo "    ";
  74.         $this->loadTemplate("@templates/Front/Shop/login_header.html.twig""@SyliusShop/login.html.twig"8)->display($context);
  75.         // line 9
  76.         echo "
  77.     ";
  78.         // line 10
  79.         echo call_user_func_array($this->env->getFunction('sonata_block_render_event')->getCallable(), ["sylius.shop.login.after_content_header"]);
  80.         echo "
  81.     <div class=\"row\">
  82.         <div class=\"col-12 col-md-6 mb-3\">
  83.             ";
  84.         // line 14
  85.         echo call_user_func_array($this->env->getFunction('sonata_block_render_event')->getCallable(), ["sylius.shop.login.before_login"]);
  86.         echo "
  87.             <div class=\"card\">
  88.                 <div class=\"card-body\">
  89.                     <h4>";
  90.         // line 18
  91.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.ui.registered_customers"), "html"nulltrue);
  92.         echo "</h4>
  93.                     <p>";
  94.         // line 19
  95.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.ui.if_you_have_an_account_sign_in_with_your_email_address"), "html"nulltrue);
  96.         echo ".</p>
  97.                     ";
  98.         // line 20
  99.         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_login_check"), "attr" => ["class" => "loadable""novalidate" => "novalidate"]]);
  100.         echo "
  101.                         ";
  102.         // line 21
  103.         $this->loadTemplate("@SyliusShop/Login/_form.html.twig""@SyliusShop/login.html.twig"21)->display($context);
  104.         // line 22
  105.         echo "
  106.                         ";
  107.         // line 23
  108.         echo call_user_func_array($this->env->getFunction('sonata_block_render_event')->getCallable(), ["sylius.shop.login.form", ["form" => (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'23$this->source); })())]]);
  109.         echo "
  110.                         <button type=\"submit\" class=\"btn btn-primary\">";
  111.         // line 25
  112.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.ui.login"), "html"nulltrue);
  113.         echo "</button>
  114.                         <a href=\"";
  115.         // line 26
  116.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("sylius_shop_request_password_reset_token");
  117.         echo "\" class=\"btn btn-link\">";
  118.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.ui.forgot_password"), "html"nulltrue);
  119.         echo "</a>
  120.                         <input type=\"hidden\" name=\"_csrf_shop_security_token\" value=\"";
  121.         // line 27
  122.         echo twig_escape_filter($this->env$this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderCsrfToken("shop_authenticate"), "html"nulltrue);
  123.         echo "\">
  124.                     ";
  125.         // line 28
  126.         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.'28$this->source); })()), 'form_end', ["render_rest" => false]);
  127.         echo "
  128.                 </div>
  129.             </div>
  130.             ";
  131.         // line 32
  132.         echo call_user_func_array($this->env->getFunction('sonata_block_render_event')->getCallable(), ["sylius.shop.login.after_login"]);
  133.         echo "
  134.         </div>
  135.         <div class=\"col-12 col-md-6 mb-3\">
  136.             ";
  137.         // line 36
  138.         echo call_user_func_array($this->env->getFunction('sonata_block_render_event')->getCallable(), ["sylius.shop.login.before_register"]);
  139.         echo "
  140.             <div class=\"card\">
  141.                 <div class=\"card-body\">
  142.                     ";
  143.         // line 40
  144.         $this->loadTemplate("@SyliusShop/Login/_register.html.twig""@SyliusShop/login.html.twig"40)->display($context);
  145.         // line 41
  146.         echo "                </div>
  147.             </div>
  148.             ";
  149.         // line 44
  150.         echo call_user_func_array($this->env->getFunction('sonata_block_render_event')->getCallable(), ["sylius.shop.login.after_register"]);
  151.         echo "
  152.         </div>
  153.     </div>
  154.     <script>
  155.         \$(document).ready(function () {
  156.             let username = \$('#_username');
  157.             let label = \$('label[for=' + username.attr('id') + ']');
  158.             label.html('";
  159.         // line 52
  160.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.email_address"), "html"nulltrue);
  161.         echo "')
  162.         })
  163.     </script>
  164. ";
  165.         
  166.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  167.         
  168.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  169.     }
  170.     public function getTemplateName()
  171.     {
  172.         return "@SyliusShop/login.html.twig";
  173.     }
  174.     public function isTraitable()
  175.     {
  176.         return false;
  177.     }
  178.     public function getDebugInfo()
  179.     {
  180.         return array (  187 => 52,  176 => 44,  171 => 41,  169 => 40,  162 => 36,  155 => 32,  148 => 28,  144 => 27,  138 => 26,  134 => 25,  129 => 23,  126 => 22,  124 => 21,  120 => 20,  116 => 19,  112 => 18,  105 => 14,  98 => 10,  95 => 9,  92 => 8,  82 => 7,  61 => 3,  51 => 1,  49 => 5,  36 => 1,);
  181.     }
  182.     public function getSourceContext()
  183.     {
  184.         return new Source("{% extends is_mobile.check ? '@templates/Mobile/Shop/layout.html.twig' : '@templates/Front/Shop/layout.html.twig' %}
  185. {% block title %} {{ 'app.ui.login'|trans }} | Roviniete.ro{% endblock %}
  186. {% form_theme form '@SyliusShop/Form/theme.html.twig' %}
  187. {% block content %}
  188.     {% include '@templates/Front/Shop/login_header.html.twig' %}
  189.     {{ sonata_block_render_event('sylius.shop.login.after_content_header') }}
  190.     <div class=\"row\">
  191.         <div class=\"col-12 col-md-6 mb-3\">
  192.             {{ sonata_block_render_event('sylius.shop.login.before_login') }}
  193.             <div class=\"card\">
  194.                 <div class=\"card-body\">
  195.                     <h4>{{ 'sylius.ui.registered_customers'|trans }}</h4>
  196.                     <p>{{ 'sylius.ui.if_you_have_an_account_sign_in_with_your_email_address'|trans }}.</p>
  197.                     {{ form_start(form, {'action': path('sylius_shop_login_check'), 'attr': {'class': 'loadable', 'novalidate': 'novalidate'}}) }}
  198.                         {% include '@SyliusShop/Login/_form.html.twig' %}
  199.                         {{ sonata_block_render_event('sylius.shop.login.form', {'form': form}) }}
  200.                         <button type=\"submit\" class=\"btn btn-primary\">{{ 'sylius.ui.login'|trans }}</button>
  201.                         <a href=\"{{ path('sylius_shop_request_password_reset_token') }}\" class=\"btn btn-link\">{{ 'sylius.ui.forgot_password'|trans }}</a>
  202.                         <input type=\"hidden\" name=\"_csrf_shop_security_token\" value=\"{{ csrf_token('shop_authenticate') }}\">
  203.                     {{ form_end(form, {'render_rest': false}) }}
  204.                 </div>
  205.             </div>
  206.             {{ sonata_block_render_event('sylius.shop.login.after_login') }}
  207.         </div>
  208.         <div class=\"col-12 col-md-6 mb-3\">
  209.             {{ sonata_block_render_event('sylius.shop.login.before_register') }}
  210.             <div class=\"card\">
  211.                 <div class=\"card-body\">
  212.                     {% include '@SyliusShop/Login/_register.html.twig' %}
  213.                 </div>
  214.             </div>
  215.             {{ sonata_block_render_event('sylius.shop.login.after_register') }}
  216.         </div>
  217.     </div>
  218.     <script>
  219.         \$(document).ready(function () {
  220.             let username = \$('#_username');
  221.             let label = \$('label[for=' + username.attr('id') + ']');
  222.             label.html('{{ 'app.ui.email_address'|trans }}')
  223.         })
  224.     </script>
  225. {% endblock %}
  226. ""@SyliusShop/login.html.twig""/vhosts/newrca.roviniete.ro/themes/BootstrapExtendTheme/SyliusShopBundle/views/login.html.twig");
  227.     }
  228. }