<?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_001aa1dc82a0f1b15f0dc4961eb72a4e8d0a7da8b868b92593baa6fd09957d7e extends \Twig\Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'metatags' => [$this, 'block_metatags'],
'title' => [$this, 'block_title'],
'content' => [$this, 'block_content'],
'breadcrumb' => [$this, 'block_breadcrumb'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "@SyliusShop/layout.html.twig";
}
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 3
$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); })()), [0 => "@SyliusShop/Form/theme.html.twig"], true);
// line 5
if ( !twig_test_empty($this->extensions['App\Twig\Extensions\PageMeta\PageMetaExtension']->getPageMetaByCode("login"))) {
// line 6
$context["meta"] = $this->extensions['App\Twig\Extensions\PageMeta\PageMetaExtension']->getPageMetaByCode("login");
} else {
// line 8
$context["meta"] = null;
}
// line 1
$this->parent = $this->loadTemplate("@SyliusShop/layout.html.twig", "@SyliusShop/login.html.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
// line 11
public function block_metatags($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", "metatags"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "metatags"));
// line 12
echo " ";
if ( !(null === (isset($context["meta"]) || array_key_exists("meta", $context) ? $context["meta"] : (function () { throw new RuntimeError('Variable "meta" does not exist.', 12, $this->source); })()))) {
// line 13
echo " ";
if ( !twig_test_empty(twig_get_attribute($this->env, $this->source, (isset($context["meta"]) || array_key_exists("meta", $context) ? $context["meta"] : (function () { throw new RuntimeError('Variable "meta" does not exist.', 13, $this->source); })()), "metaKeyword", [], "any", false, false, false, 13))) {
// line 14
echo " <meta name=\"keywords\" content=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["meta"]) || array_key_exists("meta", $context) ? $context["meta"] : (function () { throw new RuntimeError('Variable "meta" does not exist.', 14, $this->source); })()), "metaKeyword", [], "any", false, false, false, 14), "html", null, true);
echo "\">
";
}
// line 16
echo " ";
if ( !twig_test_empty(twig_get_attribute($this->env, $this->source, (isset($context["meta"]) || array_key_exists("meta", $context) ? $context["meta"] : (function () { throw new RuntimeError('Variable "meta" does not exist.', 16, $this->source); })()), "metaDescription", [], "any", false, false, false, 16))) {
// line 17
echo " <meta name=\"description\" content=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["meta"]) || array_key_exists("meta", $context) ? $context["meta"] : (function () { throw new RuntimeError('Variable "meta" does not exist.', 17, $this->source); })()), "metaDescription", [], "any", false, false, false, 17), "html", null, true);
echo "\">
";
}
// line 19
echo " ";
if ((twig_get_attribute($this->env, $this->source, (isset($context["meta"]) || array_key_exists("meta", $context) ? $context["meta"] : (function () { throw new RuntimeError('Variable "meta" does not exist.', 19, $this->source); })()), "metaRobotIndex", [], "any", false, false, false, 19) == true)) {
// line 20
echo " ";
$context["metaRobotIndex"] = "index, follow";
// line 21
echo " ";
} elseif ((twig_get_attribute($this->env, $this->source, (isset($context["meta"]) || array_key_exists("meta", $context) ? $context["meta"] : (function () { throw new RuntimeError('Variable "meta" does not exist.', 21, $this->source); })()), "metaRobotIndex", [], "any", false, false, false, 21) == false)) {
// line 22
echo " ";
$context["metaRobotIndex"] = "noindex, nofollow";
// line 23
echo " ";
}
// line 24
echo " <meta name=\"robots\" content=\"";
echo twig_escape_filter($this->env, (isset($context["metaRobotIndex"]) || array_key_exists("metaRobotIndex", $context) ? $context["metaRobotIndex"] : (function () { throw new RuntimeError('Variable "metaRobotIndex" does not exist.', 24, $this->source); })()), "html", null, true);
echo "\"/>
";
} else {
// line 26
echo " ";
$this->displayParentBlock("metatags", $context, $blocks);
echo "
";
}
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 30
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"));
// line 31
echo " ";
if ( !(null === (isset($context["meta"]) || array_key_exists("meta", $context) ? $context["meta"] : (function () { throw new RuntimeError('Variable "meta" does not exist.', 31, $this->source); })()))) {
// line 32
echo " ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["meta"]) || array_key_exists("meta", $context) ? $context["meta"] : (function () { throw new RuntimeError('Variable "meta" does not exist.', 32, $this->source); })()), "title", [], "any", false, false, false, 32), "html", null, true);
echo "
";
} else {
// line 34
echo " ";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.ui.customer_login"), "html", null, true);
echo " | ";
$this->displayParentBlock("title", $context, $blocks);
echo "
";
}
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 38
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 39
echo " <div class=\"commun-logging bg-perso-point pt-0 pt-md-3\">
<div class=\"max-container-3 px-xl-0\">
";
// line 41
$this->displayBlock('breadcrumb', $context, $blocks);
// line 49
echo " <div class=\"py-2 py-md-3 px-0\">
<div class=\"text-center\">";
// line 50
$this->loadTemplate("@SyliusShop/Login/_header.html.twig", "@SyliusShop/login.html.twig", 50)->display($context);
echo "</div>
";
// line 52
echo $this->extensions['Sylius\Bundle\UiBundle\Twig\TemplateEventExtension']->render("sylius.shop.login.after_content_header");
echo "
<div class=\"py-md-4 px-md-0 p-2 mb-md-5 my-3\" >
<div class=\"row\">
<div class=\"col-12 col-md-6 mb-3 \">
<div class=\"card table-perso bg-white shadow-box-white-all h-100 d-flex flex-column\">
<h2 class=\"card-header m-0 text-center border-0 perso-account\">";
// line 57
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.ui.registered_customers"), "html", null, true);
echo "</h2>
";
// line 58
echo $this->extensions['Sylius\Bundle\UiBundle\Twig\TemplateEventExtension']->render("sylius.shop.login.main_column", $context);
echo "
</div>
</div>
<div class=\"col-12 col-md-6 mb-3\">
<div class=\"card table-perso bg-white shadow-box-white-all h-100 d-flex flex-column\">
<h2 class=\"card-header m-0 text-center border-0 perso-account\" >";
// line 64
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.ui.new_customers"), "html", null, true);
echo "</h2>
";
// line 65
echo $this->extensions['Sylius\Bundle\UiBundle\Twig\TemplateEventExtension']->render("sylius.shop.login.register_column", $context);
echo "
</div>
</div>
</div>
</div>
</div>
</div>
</div>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 41
public function block_breadcrumb($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", "breadcrumb"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "breadcrumb"));
// line 42
echo " <nav>
<ol class=\"breadcrumb m-0 ariane-box\">
<li class=\"breadcrumb-item\"><a href=\"";
// line 44
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("sylius_shop_homepage");
echo "\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.ui.home"), "html", null, true);
echo "</a></li>
<li class=\"breadcrumb-item\"><a href=\"";
// line 45
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("sylius_shop_login");
echo "\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.ui.sign_in"), "html", null, true);
echo "</a></li>
</ol>
</nav>
";
$__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 ( 261 => 45, 255 => 44, 251 => 42, 241 => 41, 222 => 65, 218 => 64, 209 => 58, 205 => 57, 197 => 52, 192 => 50, 189 => 49, 187 => 41, 183 => 39, 173 => 38, 157 => 34, 151 => 32, 148 => 31, 138 => 30, 124 => 26, 118 => 24, 115 => 23, 112 => 22, 109 => 21, 106 => 20, 103 => 19, 97 => 17, 94 => 16, 88 => 14, 85 => 13, 82 => 12, 72 => 11, 61 => 1, 58 => 8, 55 => 6, 53 => 5, 51 => 3, 38 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends '@SyliusShop/layout.html.twig' %}
{% form_theme form '@SyliusShop/Form/theme.html.twig' %}
{% if app_get_page_meta_by_code(\"login\") is not empty %}
{% set meta = app_get_page_meta_by_code(\"login\") %}
{% else %}
{% set meta = null %}
{% endif %}
{% block metatags %}
{% if meta is not null %}
{% if meta.metaKeyword is not empty %}
<meta name=\"keywords\" content=\"{{ meta.metaKeyword }}\">
{% endif %}
{% if meta.metaDescription is not empty %}
<meta name=\"description\" content=\"{{ meta.metaDescription }}\">
{% endif %}
{% if meta.metaRobotIndex == true %}
{% set metaRobotIndex = 'index, follow' %}
{% elseif meta.metaRobotIndex == false %}
{% set metaRobotIndex = 'noindex, nofollow' %}
{% endif %}
<meta name=\"robots\" content=\"{{ metaRobotIndex }}\"/>
{% else %}
{{ parent() }}
{% endif %}
{% endblock %}
{% block title %}
{% if meta is not null %}
{{ meta.title }}
{% else %}
{{ 'sylius.ui.customer_login'|trans }} | {{ parent() }}
{% endif %}
{% endblock %}
{% block content %}
<div class=\"commun-logging bg-perso-point pt-0 pt-md-3\">
<div class=\"max-container-3 px-xl-0\">
{% block breadcrumb %}
<nav>
<ol class=\"breadcrumb m-0 ariane-box\">
<li class=\"breadcrumb-item\"><a href=\"{{ path('sylius_shop_homepage') }}\">{{ 'sylius.ui.home'|trans }}</a></li>
<li class=\"breadcrumb-item\"><a href=\"{{ path('sylius_shop_login') }}\">{{ 'sylius.ui.sign_in'|trans }}</a></li>
</ol>
</nav>
{% endblock %}
<div class=\"py-2 py-md-3 px-0\">
<div class=\"text-center\">{% include '@SyliusShop/Login/_header.html.twig' %}</div>
{{ sylius_template_event('sylius.shop.login.after_content_header') }}
<div class=\"py-md-4 px-md-0 p-2 mb-md-5 my-3\" >
<div class=\"row\">
<div class=\"col-12 col-md-6 mb-3 \">
<div class=\"card table-perso bg-white shadow-box-white-all h-100 d-flex flex-column\">
<h2 class=\"card-header m-0 text-center border-0 perso-account\">{{ 'sylius.ui.registered_customers'|trans }}</h2>
{{ sylius_template_event('sylius.shop.login.main_column', _context) }}
</div>
</div>
<div class=\"col-12 col-md-6 mb-3\">
<div class=\"card table-perso bg-white shadow-box-white-all h-100 d-flex flex-column\">
<h2 class=\"card-header m-0 text-center border-0 perso-account\" >{{ 'sylius.ui.new_customers'|trans }}</h2>
{{ sylius_template_event('sylius.shop.login.register_column', _context) }}
</div>
</div>
</div>
</div>
</div>
</div>
</div>
{% endblock %}
", "@SyliusShop/login.html.twig", "/home/chouettemauve/preprod/sylius/themes/BootstrapTheme/templates/bundles/SyliusShopBundle/login.html.twig");
}
}