var/cache/dev/twig/d6/d657d07b6585b6ef93a939d70fe7ae8a.php line 66

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/Homepage/evenement.html.twig */
  14. class __TwigTemplate_05354a0ccc4ed368f26db4ea84ca6254 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->parent false;
  23.         $this->blocks = [
  24.         ];
  25.     }
  26.     protected function doDisplay(array $context, array $blocks = [])
  27.     {
  28.         $macros $this->macros;
  29.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  30.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@SyliusShop/Homepage/evenement.html.twig"));
  31.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  32.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@SyliusShop/Homepage/evenement.html.twig"));
  33.         // line 1
  34.         echo "<div class=\"\" id=\"div-evenement\">
  35.     <div class=\"title-evenement\">
  36.         <h2>Evènements à venir</h2>
  37.         ";
  38.         // line 5
  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.'5$this->source); })()), "user", [], "any"falsefalsefalse5))) {
  40.             // line 6
  41.             echo "            <a href=\"";
  42.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("odiseo_sylius_blog_plugin_shop_article_index");
  43.             echo "\"  id=\"button-add-evenement\">Proposer un évènement</a>
  44.         ";
  45.         } else {
  46.             // line 8
  47.             echo "            <a href=\"";
  48.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("sylius_no_connected_evenement");
  49.             echo "\"  id=\"button-add-evenement\">Proposer un évènement</a>
  50.         ";
  51.         }
  52.         // line 10
  53.         echo "    </div>
  54.     ";
  55.         // line 11
  56.         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"]));
  57.         echo "
  58. </div>
  59. <style>
  60.     /*#div-evenement h2{*/
  61.     /*    font-size: var(--md-fz);*/
  62.     /*    font-weight: bold;*/
  63.     /*    text-transform: uppercase;*/
  64.     /*    color: black;*/
  65.     /*    position: relative;*/
  66.     /*    width: fit-content;*/
  67.     /*    padding: 1.5rem 0 !important;*/
  68.     /*    margin-bottom: 4rem !important;*/
  69.     /*    margin-top: 2.5rem;*/
  70.     /*}*/
  71.     /*!*I want a before after to make a border in the left 50% bottom of #div-collection h2*!*/
  72.     /*#div-evenement h2::before,*/
  73.     /*#div-evenement h2::after*/
  74.     /*{*/
  75.     /*    content: \"\";*/
  76.     /*    position: absolute;*/
  77.     /*    width: 50%;*/
  78.     /*    height: 5px;*/
  79.     /*    background-color: #E35E31;*/
  80.     /*    bottom: 0;*/
  81.     /*    left: 0;*/
  82.     /*}*/
  83.     /*.title-evenement{*/
  84.     /*    display: flex;*/
  85.     /*    justify-content: space-between;*/
  86.     /*    align-items: flex-start;*/
  87.     /*}*/
  88.     /*.title-evenement a {*/
  89.     /*    font-size: var(--sm-fz);*/
  90.     /*    font-weight: bold;*/
  91.     /*    text-transform: uppercase;*/
  92.     /*    width: fit-content;*/
  93.     /*    padding: 1.5rem;*/
  94.     /*    margin-top: 2.5rem;*/
  95.     /*    background-color: #E35E31;*/
  96.     /*    color: white;*/
  97.     /*}*/
  98.     /*.title-evenement a:hover, .title-evenement a:active{*/
  99.     /*    background-color: #E35E31*/
  100.     /*}*/
  101. </style>
  102. ";
  103.         
  104.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  105.         
  106.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  107.     }
  108.     public function getTemplateName()
  109.     {
  110.         return "@SyliusShop/Homepage/evenement.html.twig";
  111.     }
  112.     public function isTraitable()
  113.     {
  114.         return false;
  115.     }
  116.     public function getDebugInfo()
  117.     {
  118.         return array (  66 => 11,  63 => 10,  57 => 8,  51 => 6,  49 => 5,  43 => 1,);
  119.     }
  120.     public function getSourceContext()
  121.     {
  122.         return new Source("<div class=\"\" id=\"div-evenement\">
  123.     <div class=\"title-evenement\">
  124.         <h2>Evènements à venir</h2>
  125.         {% if app.user is not null%}
  126.             <a href=\"{{ path('odiseo_sylius_blog_plugin_shop_article_index') }}\"  id=\"button-add-evenement\">Proposer un évènement</a>
  127.         {% else %}
  128.             <a href=\"{{ path('sylius_no_connected_evenement') }}\"  id=\"button-add-evenement\">Proposer un évènement</a>
  129.         {% endif %}
  130.     </div>
  131.     {{ render(url('odiseo_sylius_blog_plugin_shop_partial_evenement_index_latest', {'count': 3, 'template': '@SyliusShop/Homepage/lastEvent.html.twig'})) }}
  132. </div>
  133. <style>
  134.     /*#div-evenement h2{*/
  135.     /*    font-size: var(--md-fz);*/
  136.     /*    font-weight: bold;*/
  137.     /*    text-transform: uppercase;*/
  138.     /*    color: black;*/
  139.     /*    position: relative;*/
  140.     /*    width: fit-content;*/
  141.     /*    padding: 1.5rem 0 !important;*/
  142.     /*    margin-bottom: 4rem !important;*/
  143.     /*    margin-top: 2.5rem;*/
  144.     /*}*/
  145.     /*!*I want a before after to make a border in the left 50% bottom of #div-collection h2*!*/
  146.     /*#div-evenement h2::before,*/
  147.     /*#div-evenement h2::after*/
  148.     /*{*/
  149.     /*    content: \"\";*/
  150.     /*    position: absolute;*/
  151.     /*    width: 50%;*/
  152.     /*    height: 5px;*/
  153.     /*    background-color: #E35E31;*/
  154.     /*    bottom: 0;*/
  155.     /*    left: 0;*/
  156.     /*}*/
  157.     /*.title-evenement{*/
  158.     /*    display: flex;*/
  159.     /*    justify-content: space-between;*/
  160.     /*    align-items: flex-start;*/
  161.     /*}*/
  162.     /*.title-evenement a {*/
  163.     /*    font-size: var(--sm-fz);*/
  164.     /*    font-weight: bold;*/
  165.     /*    text-transform: uppercase;*/
  166.     /*    width: fit-content;*/
  167.     /*    padding: 1.5rem;*/
  168.     /*    margin-top: 2.5rem;*/
  169.     /*    background-color: #E35E31;*/
  170.     /*    color: white;*/
  171.     /*}*/
  172.     /*.title-evenement a:hover, .title-evenement a:active{*/
  173.     /*    background-color: #E35E31*/
  174.     /*}*/
  175. </style>
  176. ""@SyliusShop/Homepage/evenement.html.twig""/var/www/Bikers/templates/bundles/SyliusShopBundle/Homepage/evenement.html.twig");
  177.     }
  178. }