<?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/Homepage/evenement.html.twig */
class __TwigTemplate_05354a0ccc4ed368f26db4ea84ca6254 extends \Twig\Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
];
}
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/Homepage/evenement.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/Homepage/evenement.html.twig"));
// line 1
echo "<div class=\"\" id=\"div-evenement\">
<div class=\"title-evenement\">
<h2>Evènements à venir</h2>
";
// line 5
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.', 5, $this->source); })()), "user", [], "any", false, false, false, 5))) {
// line 6
echo " <a href=\"";
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("odiseo_sylius_blog_plugin_shop_article_index");
echo "\" id=\"button-add-evenement\">Proposer un évènement</a>
";
} else {
// line 8
echo " <a href=\"";
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("sylius_no_connected_evenement");
echo "\" id=\"button-add-evenement\">Proposer un évènement</a>
";
}
// line 10
echo " </div>
";
// line 11
echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("odiseo_sylius_blog_plugin_shop_partial_evenement_index_latest", ["count" => 3, "template" => "@SyliusShop/Homepage/lastEvent.html.twig"]));
echo "
</div>
<style>
/*#div-evenement h2{*/
/* font-size: var(--md-fz);*/
/* font-weight: bold;*/
/* text-transform: uppercase;*/
/* color: black;*/
/* position: relative;*/
/* width: fit-content;*/
/* padding: 1.5rem 0 !important;*/
/* margin-bottom: 4rem !important;*/
/* margin-top: 2.5rem;*/
/*}*/
/*!*I want a before after to make a border in the left 50% bottom of #div-collection h2*!*/
/*#div-evenement h2::before,*/
/*#div-evenement h2::after*/
/*{*/
/* content: \"\";*/
/* position: absolute;*/
/* width: 50%;*/
/* height: 5px;*/
/* background-color: #E35E31;*/
/* bottom: 0;*/
/* left: 0;*/
/*}*/
/*.title-evenement{*/
/* display: flex;*/
/* justify-content: space-between;*/
/* align-items: flex-start;*/
/*}*/
/*.title-evenement a {*/
/* font-size: var(--sm-fz);*/
/* font-weight: bold;*/
/* text-transform: uppercase;*/
/* width: fit-content;*/
/* padding: 1.5rem;*/
/* margin-top: 2.5rem;*/
/* background-color: #E35E31;*/
/* color: white;*/
/*}*/
/*.title-evenement a:hover, .title-evenement a:active{*/
/* background-color: #E35E31*/
/*}*/
</style>
";
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
public function getTemplateName()
{
return "@SyliusShop/Homepage/evenement.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 66 => 11, 63 => 10, 57 => 8, 51 => 6, 49 => 5, 43 => 1,);
}
public function getSourceContext()
{
return new Source("<div class=\"\" id=\"div-evenement\">
<div class=\"title-evenement\">
<h2>Evènements à venir</h2>
{% if app.user is not null%}
<a href=\"{{ path('odiseo_sylius_blog_plugin_shop_article_index') }}\" id=\"button-add-evenement\">Proposer un évènement</a>
{% else %}
<a href=\"{{ path('sylius_no_connected_evenement') }}\" id=\"button-add-evenement\">Proposer un évènement</a>
{% endif %}
</div>
{{ render(url('odiseo_sylius_blog_plugin_shop_partial_evenement_index_latest', {'count': 3, 'template': '@SyliusShop/Homepage/lastEvent.html.twig'})) }}
</div>
<style>
/*#div-evenement h2{*/
/* font-size: var(--md-fz);*/
/* font-weight: bold;*/
/* text-transform: uppercase;*/
/* color: black;*/
/* position: relative;*/
/* width: fit-content;*/
/* padding: 1.5rem 0 !important;*/
/* margin-bottom: 4rem !important;*/
/* margin-top: 2.5rem;*/
/*}*/
/*!*I want a before after to make a border in the left 50% bottom of #div-collection h2*!*/
/*#div-evenement h2::before,*/
/*#div-evenement h2::after*/
/*{*/
/* content: \"\";*/
/* position: absolute;*/
/* width: 50%;*/
/* height: 5px;*/
/* background-color: #E35E31;*/
/* bottom: 0;*/
/* left: 0;*/
/*}*/
/*.title-evenement{*/
/* display: flex;*/
/* justify-content: space-between;*/
/* align-items: flex-start;*/
/*}*/
/*.title-evenement a {*/
/* font-size: var(--sm-fz);*/
/* font-weight: bold;*/
/* text-transform: uppercase;*/
/* width: fit-content;*/
/* padding: 1.5rem;*/
/* margin-top: 2.5rem;*/
/* background-color: #E35E31;*/
/* color: white;*/
/*}*/
/*.title-evenement a:hover, .title-evenement a:active{*/
/* background-color: #E35E31*/
/*}*/
</style>
", "@SyliusShop/Homepage/evenement.html.twig", "/var/www/Bikers/templates/bundles/SyliusShopBundle/Homepage/evenement.html.twig");
}
}