var/cache/dev/twig/59/596779c0a5ac004d03a8ad326f8e8b15e84559fe0e5ed3b8f01e7dbb0b71a4d3.php line 41

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_001aa1dc82a0f1b15f0dc4961eb72a4e8d0a7da8b868b92593baa6fd09957d7e 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.             'metatags' => [$this'block_metatags'],
  24.             'title' => [$this'block_title'],
  25.             'content' => [$this'block_content'],
  26.             'breadcrumb' => [$this'block_breadcrumb'],
  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_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  38.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@SyliusShop/login.html.twig"));
  39.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  40.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@SyliusShop/login.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.         if ( !twig_test_empty($this->extensions['App\Twig\Extensions\PageMeta\PageMetaExtension']->getPageMetaByCode("login"))) {
  45.             // line 6
  46.             $context["meta"] = $this->extensions['App\Twig\Extensions\PageMeta\PageMetaExtension']->getPageMetaByCode("login");
  47.         } else {
  48.             // line 8
  49.             $context["meta"] = null;
  50.         }
  51.         // line 1
  52.         $this->parent $this->loadTemplate("@SyliusShop/layout.html.twig""@SyliusShop/login.html.twig"1);
  53.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  54.         
  55.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  56.         
  57.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  58.     }
  59.     // line 11
  60.     public function block_metatags($context, array $blocks = [])
  61.     {
  62.         $macros $this->macros;
  63.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  64.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""metatags"));
  65.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  66.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""metatags"));
  67.         // line 12
  68.         echo "    ";
  69.         if ( !(null === (isset($context["meta"]) || array_key_exists("meta"$context) ? $context["meta"] : (function () { throw new RuntimeError('Variable "meta" does not exist.'12$this->source); })()))) {
  70.             // line 13
  71.             echo "        ";
  72.             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"falsefalsefalse13))) {
  73.                 // line 14
  74.                 echo "            <meta name=\"keywords\" content=\"";
  75.                 echo twig_escape_filter($this->envtwig_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"falsefalsefalse14), "html"nulltrue);
  76.                 echo "\">
  77.         ";
  78.             }
  79.             // line 16
  80.             echo "        ";
  81.             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"falsefalsefalse16))) {
  82.                 // line 17
  83.                 echo "            <meta name=\"description\" content=\"";
  84.                 echo twig_escape_filter($this->envtwig_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"falsefalsefalse17), "html"nulltrue);
  85.                 echo "\">
  86.         ";
  87.             }
  88.             // line 19
  89.             echo "        ";
  90.             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"falsefalsefalse19) == true)) {
  91.                 // line 20
  92.                 echo "            ";
  93.                 $context["metaRobotIndex"] = "index, follow";
  94.                 // line 21
  95.                 echo "        ";
  96.             } 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"falsefalsefalse21) == false)) {
  97.                 // line 22
  98.                 echo "            ";
  99.                 $context["metaRobotIndex"] = "noindex, nofollow";
  100.                 // line 23
  101.                 echo "        ";
  102.             }
  103.             // line 24
  104.             echo "        <meta name=\"robots\" content=\"";
  105.             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"nulltrue);
  106.             echo "\"/>
  107.     ";
  108.         } else {
  109.             // line 26
  110.             echo "        ";
  111.             $this->displayParentBlock("metatags"$context$blocks);
  112.             echo "
  113.     ";
  114.         }
  115.         
  116.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  117.         
  118.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  119.     }
  120.     // line 30
  121.     public function block_title($context, array $blocks = [])
  122.     {
  123.         $macros $this->macros;
  124.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  125.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  126.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  127.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  128.         // line 31
  129.         echo "    ";
  130.         if ( !(null === (isset($context["meta"]) || array_key_exists("meta"$context) ? $context["meta"] : (function () { throw new RuntimeError('Variable "meta" does not exist.'31$this->source); })()))) {
  131.             // line 32
  132.             echo "        ";
  133.             echo twig_escape_filter($this->envtwig_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"falsefalsefalse32), "html"nulltrue);
  134.             echo "
  135.     ";
  136.         } else {
  137.             // line 34
  138.             echo "        ";
  139.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.ui.customer_login"), "html"nulltrue);
  140.             echo " | ";
  141.             $this->displayParentBlock("title"$context$blocks);
  142.             echo "
  143.     ";
  144.         }
  145.         
  146.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  147.         
  148.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  149.     }
  150.     // line 38
  151.     public function block_content($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""content"));
  156.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  157.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  158.         // line 39
  159.         echo "    <div class=\"commun-logging  bg-perso-point pt-0 pt-md-3\">
  160.         <div class=\"max-container-3 px-xl-0\">
  161.             ";
  162.         // line 41
  163.         $this->displayBlock('breadcrumb'$context$blocks);
  164.         // line 49
  165.         echo "            <div class=\"py-2 py-md-3 px-0\">
  166.                 <div class=\"text-center\">";
  167.         // line 50
  168.         $this->loadTemplate("@SyliusShop/Login/_header.html.twig""@SyliusShop/login.html.twig"50)->display($context);
  169.         echo "</div>
  170.                 ";
  171.         // line 52
  172.         echo $this->extensions['Sylius\Bundle\UiBundle\Twig\TemplateEventExtension']->render("sylius.shop.login.after_content_header");
  173.         echo "
  174.                 <div class=\"py-md-4 px-md-0 p-2 mb-md-5 my-3\" >
  175.                     <div class=\"row\">
  176.                         <div class=\"col-12 col-md-6 mb-3 \">
  177.                             <div class=\"card table-perso   bg-white shadow-box-white-all h-100 d-flex flex-column\">
  178.                                 <h2 class=\"card-header m-0  text-center border-0 perso-account\">";
  179.         // line 57
  180.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.ui.registered_customers"), "html"nulltrue);
  181.         echo "</h2>
  182.                                 ";
  183.         // line 58
  184.         echo $this->extensions['Sylius\Bundle\UiBundle\Twig\TemplateEventExtension']->render("sylius.shop.login.main_column"$context);
  185.         echo "
  186.                             </div>
  187.                         </div>
  188.                         <div class=\"col-12 col-md-6 mb-3\">
  189.                             <div class=\"card  table-perso   bg-white  shadow-box-white-all h-100 d-flex flex-column\">
  190.                                 <h2 class=\"card-header m-0  text-center  border-0  perso-account\" >";
  191.         // line 64
  192.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.ui.new_customers"), "html"nulltrue);
  193.         echo "</h2>
  194.                                 ";
  195.         // line 65
  196.         echo $this->extensions['Sylius\Bundle\UiBundle\Twig\TemplateEventExtension']->render("sylius.shop.login.register_column"$context);
  197.         echo "
  198.                             </div>
  199.                         </div>
  200.                     </div>
  201.                 </div>
  202.             </div>
  203.         </div>
  204.     </div>
  205. ";
  206.         
  207.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  208.         
  209.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  210.     }
  211.     // line 41
  212.     public function block_breadcrumb($context, array $blocks = [])
  213.     {
  214.         $macros $this->macros;
  215.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  216.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""breadcrumb"));
  217.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  218.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""breadcrumb"));
  219.         // line 42
  220.         echo "                <nav>
  221.                     <ol class=\"breadcrumb m-0 ariane-box\">
  222.                         <li class=\"breadcrumb-item\"><a href=\"";
  223.         // line 44
  224.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("sylius_shop_homepage");
  225.         echo "\">";
  226.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.ui.home"), "html"nulltrue);
  227.         echo "</a></li>
  228.                         <li class=\"breadcrumb-item\"><a href=\"";
  229.         // line 45
  230.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("sylius_shop_login");
  231.         echo "\">";
  232.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.ui.sign_in"), "html"nulltrue);
  233.         echo "</a></li>
  234.                     </ol>
  235.                 </nav>
  236.             ";
  237.         
  238.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  239.         
  240.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  241.     }
  242.     public function getTemplateName()
  243.     {
  244.         return "@SyliusShop/login.html.twig";
  245.     }
  246.     public function isTraitable()
  247.     {
  248.         return false;
  249.     }
  250.     public function getDebugInfo()
  251.     {
  252.         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,);
  253.     }
  254.     public function getSourceContext()
  255.     {
  256.         return new Source("{% extends '@SyliusShop/layout.html.twig' %}
  257. {% form_theme form '@SyliusShop/Form/theme.html.twig' %}
  258. {% if app_get_page_meta_by_code(\"login\") is not empty %}
  259.     {% set meta = app_get_page_meta_by_code(\"login\") %}
  260. {% else %}
  261.     {% set meta = null %}
  262. {% endif %}
  263. {% block metatags %}
  264.     {% if meta is not null  %}
  265.         {% if meta.metaKeyword is not empty %}
  266.             <meta name=\"keywords\" content=\"{{ meta.metaKeyword }}\">
  267.         {% endif %}
  268.         {% if meta.metaDescription is not empty %}
  269.             <meta name=\"description\" content=\"{{ meta.metaDescription }}\">
  270.         {% endif %}
  271.         {% if meta.metaRobotIndex == true %}
  272.             {% set metaRobotIndex = 'index, follow' %}
  273.         {% elseif meta.metaRobotIndex == false %}
  274.             {% set metaRobotIndex = 'noindex, nofollow' %}
  275.         {% endif %}
  276.         <meta name=\"robots\" content=\"{{ metaRobotIndex }}\"/>
  277.     {% else %}
  278.         {{ parent() }}
  279.     {% endif %}
  280. {% endblock %}
  281. {% block title %}
  282.     {% if meta is not null %}
  283.         {{ meta.title }}
  284.     {% else %}
  285.         {{ 'sylius.ui.customer_login'|trans }} | {{ parent() }}
  286.     {% endif %}
  287. {% endblock %}
  288. {% block content %}
  289.     <div class=\"commun-logging  bg-perso-point pt-0 pt-md-3\">
  290.         <div class=\"max-container-3 px-xl-0\">
  291.             {% block breadcrumb %}
  292.                 <nav>
  293.                     <ol class=\"breadcrumb m-0 ariane-box\">
  294.                         <li class=\"breadcrumb-item\"><a href=\"{{ path('sylius_shop_homepage') }}\">{{ 'sylius.ui.home'|trans }}</a></li>
  295.                         <li class=\"breadcrumb-item\"><a href=\"{{ path('sylius_shop_login') }}\">{{ 'sylius.ui.sign_in'|trans }}</a></li>
  296.                     </ol>
  297.                 </nav>
  298.             {% endblock %}
  299.             <div class=\"py-2 py-md-3 px-0\">
  300.                 <div class=\"text-center\">{% include '@SyliusShop/Login/_header.html.twig' %}</div>
  301.                 {{ sylius_template_event('sylius.shop.login.after_content_header') }}
  302.                 <div class=\"py-md-4 px-md-0 p-2 mb-md-5 my-3\" >
  303.                     <div class=\"row\">
  304.                         <div class=\"col-12 col-md-6 mb-3 \">
  305.                             <div class=\"card table-perso   bg-white shadow-box-white-all h-100 d-flex flex-column\">
  306.                                 <h2 class=\"card-header m-0  text-center border-0 perso-account\">{{ 'sylius.ui.registered_customers'|trans }}</h2>
  307.                                 {{ sylius_template_event('sylius.shop.login.main_column', _context) }}
  308.                             </div>
  309.                         </div>
  310.                         <div class=\"col-12 col-md-6 mb-3\">
  311.                             <div class=\"card  table-perso   bg-white  shadow-box-white-all h-100 d-flex flex-column\">
  312.                                 <h2 class=\"card-header m-0  text-center  border-0  perso-account\" >{{ 'sylius.ui.new_customers'|trans }}</h2>
  313.                                 {{ sylius_template_event('sylius.shop.login.register_column', _context) }}
  314.                             </div>
  315.                         </div>
  316.                     </div>
  317.                 </div>
  318.             </div>
  319.         </div>
  320.     </div>
  321. {% endblock %}
  322. ""@SyliusShop/login.html.twig""/home/chouettemauve/preprod/sylius/themes/BootstrapTheme/templates/bundles/SyliusShopBundle/login.html.twig");
  323.     }
  324. }