var/cache/dev/twig/3f/3f3a9002aa4e1cece54c39aa6224e6d3.php line 52

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/NoConnected.html.twig */
  14. class __TwigTemplate_6c46191e30233b0266b1221b9330b93f 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.             'content' => [$this'block_content'],
  24.         ];
  25.     }
  26.     protected function doGetParent(array $context)
  27.     {
  28.         // line 2
  29.         return "@SyliusShop/layout.html.twig";
  30.     }
  31.     protected function doDisplay(array $context, array $blocks = [])
  32.     {
  33.         $macros $this->macros;
  34.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  35.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@SyliusShop/NoConnected.html.twig"));
  36.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  37.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@SyliusShop/NoConnected.html.twig"));
  38.         // line 1
  39.         if ((null === twig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'1$this->source); })()), "user", [], "any"falsefalsefalse1))) {
  40.         }
  41.         // line 2
  42.         $this->parent $this->loadTemplate("@SyliusShop/layout.html.twig""@SyliusShop/NoConnected.html.twig"2);
  43.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  44.         
  45.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  46.         
  47.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  48.     }
  49.     // line 4
  50.     public function block_content($context, array $blocks = [])
  51.     {
  52.         $macros $this->macros;
  53.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  54.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  55.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  56.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  57.         // line 5
  58.         echo "    <div class=\"container-h\" id=\"div-not-connected\">
  59.         <div>
  60.             ";
  61.         // line 7
  62.         if ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'7$this->source); })()), "request", [], "any"falsefalsefalse7), "pathInfo", [], "any"falsefalsefalse7) == "/annonce-not-connected")) {
  63.             // line 8
  64.             echo "            <h1>Déposer votre Annonce</h1>
  65.             ";
  66.         } elseif ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source,         // line 9
  67. (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'9$this->source); })()), "request", [], "any"falsefalsefalse9), "pathInfo", [], "any"falsefalsefalse9) == "/evenement-not-connected")) {
  68.             // line 10
  69.             echo "            <h1>Créer votre Évènement</h1>
  70.             ";
  71.         }
  72.         // line 12
  73.         echo "
  74.         </div>
  75.         <div>
  76.             <p>Pour ";
  77.         // line 16
  78.         if ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'16$this->source); })()), "request", [], "any"falsefalsefalse16), "pathInfo", [], "any"falsefalsefalse16) == "/annonce-not-connected")) {
  79.             echo " déposer votre annonce ";
  80.         } elseif ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'16$this->source); })()), "request", [], "any"falsefalsefalse16), "pathInfo", [], "any"falsefalsefalse16) == "/evenement-not-connected")) {
  81.             echo " créer votre évènement ";
  82.         }
  83.         echo ", vous devez être connecté.<br><br>
  84.                 Si vous ne disposez pas d'un compte, <a href=\"";
  85.         // line 17
  86.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("sylius_shop_register");
  87.         echo "\">créer le vôtre ici</a><br><br>
  88.                 ou si vous en avez déjà un, <a href=\"";
  89.         // line 18
  90.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("sylius_shop_login");
  91.         echo "\">connectez-vous</a>.
  92.             </p>
  93.         </div>
  94.     </div>
  95.         <style>
  96.             /*#div-not-connected{*/
  97.             /*    display: flex;*/
  98.             /*    flex-direction: column;*/
  99.             /*    justify-content: center;*/
  100.             /*    align-items: center;*/
  101.             /*    height: 50vh;*/
  102.             /*}*/
  103.             /*#div-not-connected div:first-of-type{*/
  104.             /*    margin-bottom: 20px;*/
  105.             /*}*/
  106.             /*#div-not-connected div:last-of-type{*/
  107.             /*    !*flex-direction: column;*!*/
  108.             /*    !*justify-content: center;*!*/
  109.             /*    !*align-items: center;*!*/
  110.             /*}*/
  111.             /*#div-not-connected p{*/
  112.             /*    font-size: var(--sm-fz);*/
  113.             /*    max-width: 500px;*/
  114.             /*    text-align: center;*/
  115.             /*}*/
  116.             /*#div-not-connected a{*/
  117.             /*    text-decoration: underline;*/
  118.             /*    color: inherit;*/
  119.             /*}*/
  120.         </style>
  121.     ";
  122.         
  123.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  124.         
  125.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  126.     }
  127.     public function getTemplateName()
  128.     {
  129.         return "@SyliusShop/NoConnected.html.twig";
  130.     }
  131.     public function isTraitable()
  132.     {
  133.         return false;
  134.     }
  135.     public function getDebugInfo()
  136.     {
  137.         return array (  105 => 18,  101 => 17,  93 => 16,  87 => 12,  83 => 10,  81 => 9,  78 => 8,  76 => 7,  72 => 5,  62 => 4,  51 => 2,  48 => 1,  35 => 2,);
  138.     }
  139.     public function getSourceContext()
  140.     {
  141.         return new Source("{% if app.user is null%}
  142.     {% extends '@SyliusShop/layout.html.twig' %}
  143.     {% block content %}
  144.     <div class=\"container-h\" id=\"div-not-connected\">
  145.         <div>
  146.             {% if app.request.pathInfo == '/annonce-not-connected'%}
  147.             <h1>Déposer votre Annonce</h1>
  148.             {% elseif app.request.pathInfo == '/evenement-not-connected' %}
  149.             <h1>Créer votre Évènement</h1>
  150.             {% endif %}
  151.         </div>
  152.         <div>
  153.             <p>Pour {% if app.request.pathInfo == '/annonce-not-connected'%} déposer votre annonce {% elseif app.request.pathInfo == '/evenement-not-connected' %} créer votre évènement {% endif %}, vous devez être connecté.<br><br>
  154.                 Si vous ne disposez pas d'un compte, <a href=\"{{ path('sylius_shop_register') }}\">créer le vôtre ici</a><br><br>
  155.                 ou si vous en avez déjà un, <a href=\"{{ path('sylius_shop_login') }}\">connectez-vous</a>.
  156.             </p>
  157.         </div>
  158.     </div>
  159.         <style>
  160.             /*#div-not-connected{*/
  161.             /*    display: flex;*/
  162.             /*    flex-direction: column;*/
  163.             /*    justify-content: center;*/
  164.             /*    align-items: center;*/
  165.             /*    height: 50vh;*/
  166.             /*}*/
  167.             /*#div-not-connected div:first-of-type{*/
  168.             /*    margin-bottom: 20px;*/
  169.             /*}*/
  170.             /*#div-not-connected div:last-of-type{*/
  171.             /*    !*flex-direction: column;*!*/
  172.             /*    !*justify-content: center;*!*/
  173.             /*    !*align-items: center;*!*/
  174.             /*}*/
  175.             /*#div-not-connected p{*/
  176.             /*    font-size: var(--sm-fz);*/
  177.             /*    max-width: 500px;*/
  178.             /*    text-align: center;*/
  179.             /*}*/
  180.             /*#div-not-connected a{*/
  181.             /*    text-decoration: underline;*/
  182.             /*    color: inherit;*/
  183.             /*}*/
  184.         </style>
  185.     {% endblock %}
  186. {% endif %}
  187. ""@SyliusShop/NoConnected.html.twig""/var/www/Bikers/templates/bundles/SyliusShopBundle/NoConnected.html.twig");
  188.     }
  189. }