<?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;
/* @SyliusShop/login.html.twig */
class __TwigTemplate_e4f20e5b1141b6cc4616b12bd75606d036165f9ff1cdf2ec7071c8d076d0ec0e extends \Twig\Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'title' => [$this, 'block_title'],
'content' => [$this, 'block_content'],
];
}
protected function doGetParent(array $context)
{
// line 1
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", false, false, false, 1)) ? ("@templates/Mobile/Shop/layout.html.twig") : ("@templates/Front/Shop/layout.html.twig")), "@SyliusShop/login.html.twig", 1);
}
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", "@SyliusShop/login.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@SyliusShop/login.html.twig"));
// line 5
$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); })()), [0 => "@SyliusShop/Form/theme.html.twig"], true);
// line 1
$this->getParent($context)->display($context, array_merge($this->blocks, $blocks));
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
// line 3
public function block_title($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", "title"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
echo " ";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.login"), "html", null, true);
echo " | Roviniete.ro";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 7
public function block_content($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", "content"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
// line 8
echo " ";
$this->loadTemplate("@templates/Front/Shop/login_header.html.twig", "@SyliusShop/login.html.twig", 8)->display($context);
// line 9
echo "
";
// line 10
echo call_user_func_array($this->env->getFunction('sonata_block_render_event')->getCallable(), ["sylius.shop.login.after_content_header"]);
echo "
<div class=\"row\">
<div class=\"col-12 col-md-6 mb-3\">
";
// line 14
echo call_user_func_array($this->env->getFunction('sonata_block_render_event')->getCallable(), ["sylius.shop.login.before_login"]);
echo "
<div class=\"card\">
<div class=\"card-body\">
<h4>";
// line 18
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.ui.registered_customers"), "html", null, true);
echo "</h4>
<p>";
// line 19
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", null, true);
echo ".</p>
";
// 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_login_check"), "attr" => ["class" => "loadable", "novalidate" => "novalidate"]]);
echo "
";
// line 21
$this->loadTemplate("@SyliusShop/Login/_form.html.twig", "@SyliusShop/login.html.twig", 21)->display($context);
// line 22
echo "
";
// line 23
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); })())]]);
echo "
<button type=\"submit\" class=\"btn btn-primary\">";
// line 25
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.ui.login"), "html", null, true);
echo "</button>
<a href=\"";
// line 26
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("sylius_shop_request_password_reset_token");
echo "\" class=\"btn btn-link\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.ui.forgot_password"), "html", null, true);
echo "</a>
<input type=\"hidden\" name=\"_csrf_shop_security_token\" value=\"";
// line 27
echo twig_escape_filter($this->env, $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderCsrfToken("shop_authenticate"), "html", null, true);
echo "\">
";
// line 28
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]);
echo "
</div>
</div>
";
// line 32
echo call_user_func_array($this->env->getFunction('sonata_block_render_event')->getCallable(), ["sylius.shop.login.after_login"]);
echo "
</div>
<div class=\"col-12 col-md-6 mb-3\">
";
// line 36
echo call_user_func_array($this->env->getFunction('sonata_block_render_event')->getCallable(), ["sylius.shop.login.before_register"]);
echo "
<div class=\"card\">
<div class=\"card-body\">
";
// line 40
$this->loadTemplate("@SyliusShop/Login/_register.html.twig", "@SyliusShop/login.html.twig", 40)->display($context);
// line 41
echo " </div>
</div>
";
// line 44
echo call_user_func_array($this->env->getFunction('sonata_block_render_event')->getCallable(), ["sylius.shop.login.after_register"]);
echo "
</div>
</div>
<script>
\$(document).ready(function () {
let username = \$('#_username');
let label = \$('label[for=' + username.attr('id') + ']');
label.html('";
// line 52
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.email_address"), "html", null, true);
echo "')
})
</script>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "@SyliusShop/login.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
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,);
}
public function getSourceContext()
{
return new Source("{% extends is_mobile.check ? '@templates/Mobile/Shop/layout.html.twig' : '@templates/Front/Shop/layout.html.twig' %}
{% block title %} {{ 'app.ui.login'|trans }} | Roviniete.ro{% endblock %}
{% form_theme form '@SyliusShop/Form/theme.html.twig' %}
{% block content %}
{% include '@templates/Front/Shop/login_header.html.twig' %}
{{ sonata_block_render_event('sylius.shop.login.after_content_header') }}
<div class=\"row\">
<div class=\"col-12 col-md-6 mb-3\">
{{ sonata_block_render_event('sylius.shop.login.before_login') }}
<div class=\"card\">
<div class=\"card-body\">
<h4>{{ 'sylius.ui.registered_customers'|trans }}</h4>
<p>{{ 'sylius.ui.if_you_have_an_account_sign_in_with_your_email_address'|trans }}.</p>
{{ form_start(form, {'action': path('sylius_shop_login_check'), 'attr': {'class': 'loadable', 'novalidate': 'novalidate'}}) }}
{% include '@SyliusShop/Login/_form.html.twig' %}
{{ sonata_block_render_event('sylius.shop.login.form', {'form': form}) }}
<button type=\"submit\" class=\"btn btn-primary\">{{ 'sylius.ui.login'|trans }}</button>
<a href=\"{{ path('sylius_shop_request_password_reset_token') }}\" class=\"btn btn-link\">{{ 'sylius.ui.forgot_password'|trans }}</a>
<input type=\"hidden\" name=\"_csrf_shop_security_token\" value=\"{{ csrf_token('shop_authenticate') }}\">
{{ form_end(form, {'render_rest': false}) }}
</div>
</div>
{{ sonata_block_render_event('sylius.shop.login.after_login') }}
</div>
<div class=\"col-12 col-md-6 mb-3\">
{{ sonata_block_render_event('sylius.shop.login.before_register') }}
<div class=\"card\">
<div class=\"card-body\">
{% include '@SyliusShop/Login/_register.html.twig' %}
</div>
</div>
{{ sonata_block_render_event('sylius.shop.login.after_register') }}
</div>
</div>
<script>
\$(document).ready(function () {
let username = \$('#_username');
let label = \$('label[for=' + username.attr('id') + ']');
label.html('{{ 'app.ui.email_address'|trans }}')
})
</script>
{% endblock %}
", "@SyliusShop/login.html.twig", "/vhosts/newrca.roviniete.ro/themes/BootstrapExtendTheme/SyliusShopBundle/views/login.html.twig");
}
}