<?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/NoConnected.html.twig */
class __TwigTemplate_6c46191e30233b0266b1221b9330b93f extends \Twig\Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'content' => [$this, 'block_content'],
];
}
protected function doGetParent(array $context)
{
// line 2
return "@SyliusShop/layout.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@SyliusShop/NoConnected.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@SyliusShop/NoConnected.html.twig"));
// line 1
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", false, false, false, 1))) {
}
// line 2
$this->parent = $this->loadTemplate("@SyliusShop/layout.html.twig", "@SyliusShop/NoConnected.html.twig", 2);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 4
public function block_content($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
// line 5
echo " <div class=\"container-h\" id=\"div-not-connected\">
<div>
";
// line 7
if ((twig_get_attribute($this->env, $this->source, 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.', 7, $this->source); })()), "request", [], "any", false, false, false, 7), "pathInfo", [], "any", false, false, false, 7) == "/annonce-not-connected")) {
// line 8
echo " <h1>Déposer votre Annonce</h1>
";
} elseif ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, // line 9
(isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 9, $this->source); })()), "request", [], "any", false, false, false, 9), "pathInfo", [], "any", false, false, false, 9) == "/evenement-not-connected")) {
// line 10
echo " <h1>Créer votre Évènement</h1>
";
}
// line 12
echo "
</div>
<div>
<p>Pour ";
// line 16
if ((twig_get_attribute($this->env, $this->source, 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.', 16, $this->source); })()), "request", [], "any", false, false, false, 16), "pathInfo", [], "any", false, false, false, 16) == "/annonce-not-connected")) {
echo " déposer votre annonce ";
} elseif ((twig_get_attribute($this->env, $this->source, 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.', 16, $this->source); })()), "request", [], "any", false, false, false, 16), "pathInfo", [], "any", false, false, false, 16) == "/evenement-not-connected")) {
echo " créer votre évènement ";
}
echo ", vous devez être connecté.<br><br>
Si vous ne disposez pas d'un compte, <a href=\"";
// line 17
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("sylius_shop_register");
echo "\">créer le vôtre ici</a><br><br>
ou si vous en avez déjà un, <a href=\"";
// line 18
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("sylius_shop_login");
echo "\">connectez-vous</a>.
</p>
</div>
</div>
<style>
/*#div-not-connected{*/
/* display: flex;*/
/* flex-direction: column;*/
/* justify-content: center;*/
/* align-items: center;*/
/* height: 50vh;*/
/*}*/
/*#div-not-connected div:first-of-type{*/
/* margin-bottom: 20px;*/
/*}*/
/*#div-not-connected div:last-of-type{*/
/* !*flex-direction: column;*!*/
/* !*justify-content: center;*!*/
/* !*align-items: center;*!*/
/*}*/
/*#div-not-connected p{*/
/* font-size: var(--sm-fz);*/
/* max-width: 500px;*/
/* text-align: center;*/
/*}*/
/*#div-not-connected a{*/
/* text-decoration: underline;*/
/* color: inherit;*/
/*}*/
</style>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "@SyliusShop/NoConnected.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
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,);
}
public function getSourceContext()
{
return new Source("{% if app.user is null%}
{% extends '@SyliusShop/layout.html.twig' %}
{% block content %}
<div class=\"container-h\" id=\"div-not-connected\">
<div>
{% if app.request.pathInfo == '/annonce-not-connected'%}
<h1>Déposer votre Annonce</h1>
{% elseif app.request.pathInfo == '/evenement-not-connected' %}
<h1>Créer votre Évènement</h1>
{% endif %}
</div>
<div>
<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>
Si vous ne disposez pas d'un compte, <a href=\"{{ path('sylius_shop_register') }}\">créer le vôtre ici</a><br><br>
ou si vous en avez déjà un, <a href=\"{{ path('sylius_shop_login') }}\">connectez-vous</a>.
</p>
</div>
</div>
<style>
/*#div-not-connected{*/
/* display: flex;*/
/* flex-direction: column;*/
/* justify-content: center;*/
/* align-items: center;*/
/* height: 50vh;*/
/*}*/
/*#div-not-connected div:first-of-type{*/
/* margin-bottom: 20px;*/
/*}*/
/*#div-not-connected div:last-of-type{*/
/* !*flex-direction: column;*!*/
/* !*justify-content: center;*!*/
/* !*align-items: center;*!*/
/*}*/
/*#div-not-connected p{*/
/* font-size: var(--sm-fz);*/
/* max-width: 500px;*/
/* text-align: center;*/
/*}*/
/*#div-not-connected a{*/
/* text-decoration: underline;*/
/* color: inherit;*/
/*}*/
</style>
{% endblock %}
{% endif %}
", "@SyliusShop/NoConnected.html.twig", "/var/www/Bikers/templates/bundles/SyliusShopBundle/NoConnected.html.twig");
}
}