var/cache/dev/twig/12/129c453d1659718cc101ceeabbb644f9.php line 50

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. /* @OdiseoSyliusBlogPlugin/Shop/Evenement/show.html.twig */
  14. class __TwigTemplate_707eb88419b1e1cd2f9912750b52eabe 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.             'content' => [$this'block_content'],
  25.             'blog_article' => [$this'block_blog_article'],
  26.         ];
  27.     }
  28.     protected function doGetParent(array $context)
  29.     {
  30.         // line 2
  31.         return "@SyliusShop/layout.html.twig";
  32.     }
  33.     protected function doDisplay(array $context, array $blocks = [])
  34.     {
  35.         $macros $this->macros;
  36.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  37.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@OdiseoSyliusBlogPlugin/Shop/Evenement/show.html.twig"));
  38.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  39.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@OdiseoSyliusBlogPlugin/Shop/Evenement/show.html.twig"));
  40.         $this->parent $this->loadTemplate("@SyliusShop/layout.html.twig""@OdiseoSyliusBlogPlugin/Shop/Evenement/show.html.twig"2);
  41.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  42.         
  43.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  44.         
  45.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  46.     }
  47.     // line 3
  48.     public function block_metatags($context, array $blocks = [])
  49.     {
  50.         $macros $this->macros;
  51.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  52.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""metatags"));
  53.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  54.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""metatags"));
  55.         // line 4
  56.         echo "    ";
  57.         if ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["article"]) || array_key_exists("article"$context) ? $context["article"] : (function () { throw new RuntimeError('Variable "article" does not exist.'4$this->source); })()), "categories", [], "any"falsefalsefalse4), 0, [], "array"falsefalsefalse4), "code", [], "any"falsefalsefalse4) == "article")) {
  58.             // line 5
  59.             echo "        <script>
  60.           window.location.href = \"";
  61.             // line 6
  62.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("odiseo_sylius_blog_plugin_shop_article_show", ["slug" => twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["article"]) || array_key_exists("article"$context) ? $context["article"] : (function () { throw new RuntimeError('Variable "article" does not exist.'6$this->source); })()), "translations", [], "any"falsefalsefalse6), "toArray", [], "method"falsefalsefalse6), "fr_FR", [], "array"falsefalsefalse6), "slug", [], "any"falsefalsefalse6)]), "html"nulltrue);
  63.             echo "\";
  64.         </script>
  65.     ";
  66.         }
  67.         // line 9
  68.         echo "    ";
  69.         if ( !twig_test_empty(twig_get_attribute($this->env$this->source, (isset($context["article"]) || array_key_exists("article"$context) ? $context["article"] : (function () { throw new RuntimeError('Variable "article" does not exist.'9$this->source); })()), "metaKeywords", [], "any"falsefalsefalse9))) {
  70.             // line 10
  71.             echo "        <meta name=\"keywords\" content=\"";
  72.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["article"]) || array_key_exists("article"$context) ? $context["article"] : (function () { throw new RuntimeError('Variable "article" does not exist.'10$this->source); })()), "metaKeywords", [], "any"falsefalsefalse10), "html"nulltrue);
  73.             echo "\"/>
  74.     ";
  75.         }
  76.         // line 12
  77.         echo "    ";
  78.         if ( !twig_test_empty(twig_get_attribute($this->env$this->source, (isset($context["article"]) || array_key_exists("article"$context) ? $context["article"] : (function () { throw new RuntimeError('Variable "article" does not exist.'12$this->source); })()), "metaDescription", [], "any"falsefalsefalse12))) {
  79.             // line 13
  80.             echo "        <meta name=\"description\" content=\"";
  81.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["article"]) || array_key_exists("article"$context) ? $context["article"] : (function () { throw new RuntimeError('Variable "article" does not exist.'13$this->source); })()), "metaDescription", [], "any"falsefalsefalse13), "html"nulltrue);
  82.             echo "\"/>
  83.     ";
  84.         }
  85.         
  86.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  87.         
  88.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  89.     }
  90.     // line 17
  91.     public function block_content($context, array $blocks = [])
  92.     {
  93.         $macros $this->macros;
  94.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  95.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  96.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  97.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  98.         // line 18
  99.         echo "
  100.     ";
  101.         // line 19
  102.         $this->displayBlock('blog_article'$context$blocks);
  103.         // line 167
  104.         echo "    <style>
  105.         #main-container{
  106.             padding-bottom: 0 !important;
  107.         }
  108.     </style>
  109. ";
  110.         
  111.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  112.         
  113.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  114.     }
  115.     // line 19
  116.     public function block_blog_article($context, array $blocks = [])
  117.     {
  118.         $macros $this->macros;
  119.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  120.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""blog_article"));
  121.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  122.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""blog_article"));
  123.         // line 20
  124.         echo "        <div class=\"container-h\">
  125.             <div class=\"ui grid\" id=\"container-show-evenement\">
  126.                 <div class=\"container-show-event-inside\">
  127.                     <div class=\"container-left\">
  128.                         <div class=\"ui items\">
  129.                             <div class=\"item\">
  130.                                 <div class=\"content\">
  131.                                     <div class=\"image-destock\">
  132.                                         ";
  133.         // line 28
  134.         if ((twig_length_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["article"]) || array_key_exists("article"$context) ? $context["article"] : (function () { throw new RuntimeError('Variable "article" does not exist.'28$this->source); })()), "images", [], "any"falsefalsefalse28)) > 0)) {
  135.             // line 29
  136.             echo "                                            <div class=\"image-div-evenement\">
  137.                                             </div>
  138.                                             <div class=\"container-image-evenement\">
  139.                                                 <div class=\"first-image-evenement\">
  140.                                                     <img src=\"";
  141.             // line 33
  142.             echo twig_escape_filter($this->env$this->extensions['Sylius\Bundle\CoreBundle\Twig\FilterExtension']->filter(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["article"]) || array_key_exists("article"$context) ? $context["article"] : (function () { throw new RuntimeError('Variable "article" does not exist.'33$this->source); })()), "images", [], "any"falsefalsefalse33), 0, [], "array"falsefalsefalse33), "path", [], "any"falsefalsefalse33), ((array_key_exists("filter"$context)) ? (_twig_default_filter((isset($context["filter"]) || array_key_exists("filter"$context) ? $context["filter"] : (function () { throw new RuntimeError('Variable "filter" does not exist.'33$this->source); })()), "sylius_large")) : ("sylius_large"))), "html"nulltrue);
  143.             echo "\" class=\"ui image\" alt=\"";
  144.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["article"]) || array_key_exists("article"$context) ? $context["article"] : (function () { throw new RuntimeError('Variable "article" does not exist.'33$this->source); })()), "images", [], "any"falsefalsefalse33), 0, [], "array"falsefalsefalse33), "path", [], "any"falsefalsefalse33), "html"nulltrue);
  145.             echo "\">
  146.                                                 </div>
  147.                                                 ";
  148.             // line 35
  149.             if ((twig_length_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["article"]) || array_key_exists("article"$context) ? $context["article"] : (function () { throw new RuntimeError('Variable "article" does not exist.'35$this->source); })()), "images", [], "any"falsefalsefalse35)) > 1)) {
  150.                 // line 36
  151.                 echo "                                                    <div class=\"second-image-evenement\">
  152.                                                         <img src=\"";
  153.                 // line 37
  154.                 echo twig_escape_filter($this->env$this->extensions['Sylius\Bundle\CoreBundle\Twig\FilterExtension']->filter(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["article"]) || array_key_exists("article"$context) ? $context["article"] : (function () { throw new RuntimeError('Variable "article" does not exist.'37$this->source); })()), "images", [], "any"falsefalsefalse37), 1, [], "array"falsefalsefalse37), "path", [], "any"falsefalsefalse37), ((array_key_exists("filter"$context)) ? (_twig_default_filter((isset($context["filter"]) || array_key_exists("filter"$context) ? $context["filter"] : (function () { throw new RuntimeError('Variable "filter" does not exist.'37$this->source); })()), "sylius_large")) : ("sylius_large"))), "html"nulltrue);
  155.                 echo "\" class=\"ui image\" alt=\"";
  156.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["article"]) || array_key_exists("article"$context) ? $context["article"] : (function () { throw new RuntimeError('Variable "article" does not exist.'37$this->source); })()), "images", [], "any"falsefalsefalse37), 1, [], "array"falsefalsefalse37), "path", [], "any"falsefalsefalse37), "html"nulltrue);
  157.                 echo "\">
  158.                                                     </div>
  159.                                                     ";
  160.             }
  161.             // line 40
  162.             echo "                                                ";
  163.             if ((twig_length_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["article"]) || array_key_exists("article"$context) ? $context["article"] : (function () { throw new RuntimeError('Variable "article" does not exist.'40$this->source); })()), "images", [], "any"falsefalsefalse40)) > 2)) {
  164.                 // line 41
  165.                 echo "                                                    <div class=\"third-image-evenement\">
  166.                                                         <img src=\"";
  167.                 // line 42
  168.                 echo twig_escape_filter($this->env$this->extensions['Sylius\Bundle\CoreBundle\Twig\FilterExtension']->filter(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["article"]) || array_key_exists("article"$context) ? $context["article"] : (function () { throw new RuntimeError('Variable "article" does not exist.'42$this->source); })()), "images", [], "any"falsefalsefalse42), 2, [], "array"falsefalsefalse42), "path", [], "any"falsefalsefalse42), ((array_key_exists("filter"$context)) ? (_twig_default_filter((isset($context["filter"]) || array_key_exists("filter"$context) ? $context["filter"] : (function () { throw new RuntimeError('Variable "filter" does not exist.'42$this->source); })()), "sylius_large")) : ("sylius_large"))), "html"nulltrue);
  169.                 echo "\" class=\"ui image\" alt=\"";
  170.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["article"]) || array_key_exists("article"$context) ? $context["article"] : (function () { throw new RuntimeError('Variable "article" does not exist.'42$this->source); })()), "images", [], "any"falsefalsefalse42), 2, [], "array"falsefalsefalse42), "path", [], "any"falsefalsefalse42), "html"nulltrue);
  171.                 echo "\">
  172.                                                     </div>
  173.                                                 ";
  174.             }
  175.             // line 45
  176.             echo "                                            </div>
  177.                                         ";
  178.         }
  179.         // line 47
  180.         echo "                                    </div>
  181.                                     <div class=\"image-responsive\">
  182.                                         ";
  183.         // line 50
  184.         if ((twig_length_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["article"]) || array_key_exists("article"$context) ? $context["article"] : (function () { throw new RuntimeError('Variable "article" does not exist.'50$this->source); })()), "images", [], "any"falsefalsefalse50)) > 0)) {
  185.             // line 51
  186.             echo "                                            <script>
  187.                                               function changeImage(index) {
  188.                                                 // Récupérer toutes les images de la galerie
  189.                                                 var images = document.querySelectorAll('.header-image-event-container #card-image-header-event');
  190.                                                 // Réinitialiser la classe \"active\" pour tous les points
  191.                                                 var points = document.querySelectorAll('.point');
  192.                                                 points.forEach(function(point) {
  193.                                                   point.classList.remove('active');
  194.                                                 });
  195.                                                 // Cacher toutes les images de la galerie
  196.                                                 images.forEach(function(image) {
  197.                                                   image.style.display = 'none';
  198.                                                 });
  199.                                                 console.log(images[index - 1])
  200.                                                 // Afficher l'image correspondante à l'index spécifié
  201.                                                 images[index - 1].style.display = 'block';
  202.                                                 // Ajouter la classe \"active\" au point correspondant à l'index spécifié
  203.                                                 points[index - 1].classList.add('active');
  204.                                               }
  205.                                             </script>
  206.                                             <div class=\"header-image-event-container\">
  207.                                             ";
  208.             // line 77
  209.             $context['_parent'] = $context;
  210.             $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, (isset($context["article"]) || array_key_exists("article"$context) ? $context["article"] : (function () { throw new RuntimeError('Variable "article" does not exist.'77$this->source); })()), "images", [], "any"falsefalsefalse77));
  211.             foreach ($context['_seq'] as $context["_key"] => $context["image"]) {
  212.                 // line 78
  213.                 echo "                                                    <img src=\"";
  214.                 echo twig_escape_filter($this->env$this->extensions['Sylius\Bundle\CoreBundle\Twig\FilterExtension']->filter(twig_get_attribute($this->env$this->source$context["image"], "path", [], "any"falsefalsefalse78), ((array_key_exists("filter"$context)) ? (_twig_default_filter((isset($context["filter"]) || array_key_exists("filter"$context) ? $context["filter"] : (function () { throw new RuntimeError('Variable "filter" does not exist.'78$this->source); })()), "sylius_large")) : ("sylius_large"))), "html"nulltrue);
  215.                 echo "\" class=\"ui image\" alt=\"";
  216.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["image"], "path", [], "any"falsefalsefalse78), "html"nulltrue);
  217.                 echo "\" id=\"card-image-header-event\">
  218.                                             ";
  219.             }
  220.             $_parent $context['_parent'];
  221.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['image'], $context['_parent'], $context['loop']);
  222.             $context array_intersect_key($context$_parent) + $_parent;
  223.             // line 80
  224.             echo "                                            </div>
  225.                                             <div class=\"points-header-image-event\">
  226.                                                 <span class=\"point active\" onclick=\"changeImage(1)\"></span>
  227.                                                 <span class=\"point\" onclick=\"changeImage(2)\"></span>
  228.                                                 <span class=\"point\" onclick=\"changeImage(3)\"></span>
  229.                                             </div>
  230.                                         ";
  231.         } else {
  232.             // line 87
  233.             echo "
  234.                                         ";
  235.         }
  236.         // line 89
  237.         echo "                                    </div>
  238.                                         <div class=\"description-evenement\">
  239.                                             <div class=\"description-title\">
  240.                                                 <h1>";
  241.         // line 92
  242.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["article"]) || array_key_exists("article"$context) ? $context["article"] : (function () { throw new RuntimeError('Variable "article" does not exist.'92$this->source); })()), "title", [], "any"falsefalsefalse92), "html"nulltrue);
  243.         echo "</h1>
  244.                                                 ";
  245.         // line 93
  246.         $context["month"] = twig_date_format_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["article"]) || array_key_exists("article"$context) ? $context["article"] : (function () { throw new RuntimeError('Variable "article" does not exist.'93$this->source); })()), "DateEvenement", [], "any"falsefalsefalse93), "F");
  247.         // line 94
  248.         echo "                                                ";
  249.         $context["translation"] = ("sylius.ui." . (isset($context["month"]) || array_key_exists("month"$context) ? $context["month"] : (function () { throw new RuntimeError('Variable "month" does not exist.'94$this->source); })()));
  250.         // line 95
  251.         echo "                                                <div class=\"desc-date\">
  252.                                                     <div class=\"date-product-show\">
  253.                                                         <i class=\"calendar alternate outline icon\"></i>
  254.                                                         <span>
  255.                                                               ";
  256.         // line 99
  257.         echo twig_escape_filter($this->envtwig_date_format_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["article"]) || array_key_exists("article"$context) ? $context["article"] : (function () { throw new RuntimeError('Variable "article" does not exist.'99$this->source); })()), "DateEvenement", [], "any"falsefalsefalse99), "j"), "html"nulltrue);
  258.         echo " ";
  259.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans((isset($context["translation"]) || array_key_exists("translation"$context) ? $context["translation"] : (function () { throw new RuntimeError('Variable "translation" does not exist.'99$this->source); })())), "html"nulltrue);
  260.         echo ", ";
  261.         echo twig_escape_filter($this->envtwig_date_format_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["article"]) || array_key_exists("article"$context) ? $context["article"] : (function () { throw new RuntimeError('Variable "article" does not exist.'99$this->source); })()), "DateEvenement", [], "any"falsefalsefalse99), "Y"), "html"nulltrue);
  262.         echo "
  263.                                                         </span>
  264.                                                     </div>
  265.                                                     <div class=\"place-product-show\">
  266.                                                         <i class=\"map marker alternate icon\"></i>
  267.                                                         <span>";
  268.         // line 104
  269.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["article"]) || array_key_exists("article"$context) ? $context["article"] : (function () { throw new RuntimeError('Variable "article" does not exist.'104$this->source); })()), "articleLocation", [], "any"falsefalsefalse104), "location", [], "any"falsefalsefalse104), "html"nulltrue);
  270.         echo "</span>
  271.                                                     </div>
  272.                                                 </div>
  273.                                             </div>
  274.                                             <div class=\"description-text-and-localisation\">
  275.                                                 <div>
  276.                                                     <h4>Description</h4>
  277.                                                     <div class=\"description-text\">
  278.                                                         ";
  279.         // line 112
  280.         echo twig_get_attribute($this->env$this->source, (isset($context["article"]) || array_key_exists("article"$context) ? $context["article"] : (function () { throw new RuntimeError('Variable "article" does not exist.'112$this->source); })()), "content", [], "any"falsefalsefalse112);
  281.         echo "
  282.                                                     </div>
  283.                                                 </div>
  284.                                                 <div>
  285.                                                     <h4>Localisation</h4>
  286.                                                     <div id='map'></div>
  287.                                                     <script>
  288.                                                       mapboxgl.accessToken = '";
  289.         // line 119
  290.         echo twig_escape_filter($this->env, (isset($context["token_mapbox"]) || array_key_exists("token_mapbox"$context) ? $context["token_mapbox"] : (function () { throw new RuntimeError('Variable "token_mapbox" does not exist.'119$this->source); })()), "html"nulltrue);
  291.         echo "';
  292.                                                       var map = new mapboxgl.Map({
  293.                                                         container: 'map',
  294.                                                         style: 'mapbox://styles/mapbox/streets-v11',
  295.                                                         center: [";
  296.         // line 123
  297.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["article"]) || array_key_exists("article"$context) ? $context["article"] : (function () { throw new RuntimeError('Variable "article" does not exist.'123$this->source); })()), "articleLocation", [], "any"falsefalsefalse123), "latitude", [], "any"falsefalsefalse123), "html"nulltrue);
  298.         echo ", ";
  299.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["article"]) || array_key_exists("article"$context) ? $context["article"] : (function () { throw new RuntimeError('Variable "article" does not exist.'123$this->source); })()), "articleLocation", [], "any"falsefalsefalse123), "longitude", [], "any"falsefalsefalse123), "html"nulltrue);
  300.         echo "], // starting position
  301.                                                         zoom: 9 // starting zoom
  302.                                                       });
  303.                                                       // Ajouter un marqueur au centre de la carte
  304.                                                       new mapboxgl.Marker()
  305.                                                         .setLngLat([";
  306.         // line 129
  307.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["article"]) || array_key_exists("article"$context) ? $context["article"] : (function () { throw new RuntimeError('Variable "article" does not exist.'129$this->source); })()), "articleLocation", [], "any"falsefalsefalse129), "latitude", [], "any"falsefalsefalse129), "html"nulltrue);
  308.         echo ", ";
  309.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["article"]) || array_key_exists("article"$context) ? $context["article"] : (function () { throw new RuntimeError('Variable "article" does not exist.'129$this->source); })()), "articleLocation", [], "any"falsefalsefalse129), "longitude", [], "any"falsefalsefalse129), "html"nulltrue);
  310.         echo "])
  311.                                                         .addTo(map);
  312.                                                     </script>
  313. ";
  314.         // line 152
  315.         echo "                                                </div>
  316.                                             </div>
  317.                                         </div>
  318.                                 </div>
  319.                             </div>
  320.                         </div>
  321.                     </div>
  322.                 </div>
  323.             </div>
  324.         </div>
  325.         <div id=\"div-evenement-similary\">
  326.             ";
  327.         // line 164
  328.         $this->loadTemplate("@OdiseoSyliusBlogPlugin/Shop/_sidebarEvenement.html.twig""@OdiseoSyliusBlogPlugin/Shop/Evenement/show.html.twig"164)->display($context);
  329.         // line 165
  330.         echo "        </div>
  331.     ";
  332.         
  333.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  334.         
  335.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  336.     }
  337.     public function getTemplateName()
  338.     {
  339.         return "@OdiseoSyliusBlogPlugin/Shop/Evenement/show.html.twig";
  340.     }
  341.     public function isTraitable()
  342.     {
  343.         return false;
  344.     }
  345.     public function getDebugInfo()
  346.     {
  347.         return array (  362 => 165,  360 => 164,  346 => 152,  338 => 129,  327 => 123,  320 => 119,  310 => 112,  299 => 104,  287 => 99,  281 => 95,  278 => 94,  276 => 93,  272 => 92,  267 => 89,  263 => 87,  254 => 80,  243 => 78,  239 => 77,  211 => 51,  209 => 50,  204 => 47,  200 => 45,  192 => 42,  189 => 41,  186 => 40,  178 => 37,  175 => 36,  173 => 35,  166 => 33,  160 => 29,  158 => 28,  148 => 20,  138 => 19,  123 => 167,  121 => 19,  118 => 18,  108 => 17,  94 => 13,  91 => 12,  85 => 10,  82 => 9,  76 => 6,  73 => 5,  70 => 4,  60 => 3,  37 => 2,);
  348.     }
  349.     public function getSourceContext()
  350.     {
  351.         return new Source("
  352. {% extends '@SyliusShop/layout.html.twig' %}
  353. {% block metatags %}
  354.     {% if article.categories[0].code == 'article' %}
  355.         <script>
  356.           window.location.href = \"{{ path('odiseo_sylius_blog_plugin_shop_article_show', {'slug': article.translations.toArray()['fr_FR'].slug}) }}\";
  357.         </script>
  358.     {% endif %}
  359.     {% if article.metaKeywords is not empty %}
  360.         <meta name=\"keywords\" content=\"{{ article.metaKeywords }}\"/>
  361.     {% endif %}
  362.     {% if article.metaDescription is not empty %}
  363.         <meta name=\"description\" content=\"{{ article.metaDescription }}\"/>
  364.     {% endif %}
  365. {% endblock %}
  366. {% block content %}
  367.     {% block blog_article %}
  368.         <div class=\"container-h\">
  369.             <div class=\"ui grid\" id=\"container-show-evenement\">
  370.                 <div class=\"container-show-event-inside\">
  371.                     <div class=\"container-left\">
  372.                         <div class=\"ui items\">
  373.                             <div class=\"item\">
  374.                                 <div class=\"content\">
  375.                                     <div class=\"image-destock\">
  376.                                         {% if article.images|length > 0 %}
  377.                                             <div class=\"image-div-evenement\">
  378.                                             </div>
  379.                                             <div class=\"container-image-evenement\">
  380.                                                 <div class=\"first-image-evenement\">
  381.                                                     <img src=\"{{ article.images[0].path|imagine_filter(filter|default('sylius_large')) }}\" class=\"ui image\" alt=\"{{ article.images[0].path }}\">
  382.                                                 </div>
  383.                                                 {% if article.images|length > 1 %}
  384.                                                     <div class=\"second-image-evenement\">
  385.                                                         <img src=\"{{ article.images[1].path|imagine_filter(filter|default('sylius_large')) }}\" class=\"ui image\" alt=\"{{ article.images[1].path }}\">
  386.                                                     </div>
  387.                                                     {% endif %}
  388.                                                 {% if article.images|length > 2  %}
  389.                                                     <div class=\"third-image-evenement\">
  390.                                                         <img src=\"{{ article.images[2].path|imagine_filter(filter|default('sylius_large')) }}\" class=\"ui image\" alt=\"{{ article.images[2].path }}\">
  391.                                                     </div>
  392.                                                 {% endif %}
  393.                                             </div>
  394.                                         {% endif %}
  395.                                     </div>
  396.                                     <div class=\"image-responsive\">
  397.                                         {% if article.images|length > 0 %}
  398.                                             <script>
  399.                                               function changeImage(index) {
  400.                                                 // Récupérer toutes les images de la galerie
  401.                                                 var images = document.querySelectorAll('.header-image-event-container #card-image-header-event');
  402.                                                 // Réinitialiser la classe \"active\" pour tous les points
  403.                                                 var points = document.querySelectorAll('.point');
  404.                                                 points.forEach(function(point) {
  405.                                                   point.classList.remove('active');
  406.                                                 });
  407.                                                 // Cacher toutes les images de la galerie
  408.                                                 images.forEach(function(image) {
  409.                                                   image.style.display = 'none';
  410.                                                 });
  411.                                                 console.log(images[index - 1])
  412.                                                 // Afficher l'image correspondante à l'index spécifié
  413.                                                 images[index - 1].style.display = 'block';
  414.                                                 // Ajouter la classe \"active\" au point correspondant à l'index spécifié
  415.                                                 points[index - 1].classList.add('active');
  416.                                               }
  417.                                             </script>
  418.                                             <div class=\"header-image-event-container\">
  419.                                             {% for image in article.images %}
  420.                                                     <img src=\"{{ image.path|imagine_filter(filter|default('sylius_large')) }}\" class=\"ui image\" alt=\"{{ image.path }}\" id=\"card-image-header-event\">
  421.                                             {% endfor %}
  422.                                             </div>
  423.                                             <div class=\"points-header-image-event\">
  424.                                                 <span class=\"point active\" onclick=\"changeImage(1)\"></span>
  425.                                                 <span class=\"point\" onclick=\"changeImage(2)\"></span>
  426.                                                 <span class=\"point\" onclick=\"changeImage(3)\"></span>
  427.                                             </div>
  428.                                         {% else %}
  429.                                         {% endif %}
  430.                                     </div>
  431.                                         <div class=\"description-evenement\">
  432.                                             <div class=\"description-title\">
  433.                                                 <h1>{{ article.title }}</h1>
  434.                                                 {% set month =  article.DateEvenement|date('F') %}
  435.                                                 {% set translation = 'sylius.ui.' ~ month %}
  436.                                                 <div class=\"desc-date\">
  437.                                                     <div class=\"date-product-show\">
  438.                                                         <i class=\"calendar alternate outline icon\"></i>
  439.                                                         <span>
  440.                                                               {{ article.DateEvenement|date('j') }} {{ translation|trans }}, {{ article.DateEvenement|date('Y') }}
  441.                                                         </span>
  442.                                                     </div>
  443.                                                     <div class=\"place-product-show\">
  444.                                                         <i class=\"map marker alternate icon\"></i>
  445.                                                         <span>{{ article.articleLocation.location }}</span>
  446.                                                     </div>
  447.                                                 </div>
  448.                                             </div>
  449.                                             <div class=\"description-text-and-localisation\">
  450.                                                 <div>
  451.                                                     <h4>Description</h4>
  452.                                                     <div class=\"description-text\">
  453.                                                         {{ article.content|raw }}
  454.                                                     </div>
  455.                                                 </div>
  456.                                                 <div>
  457.                                                     <h4>Localisation</h4>
  458.                                                     <div id='map'></div>
  459.                                                     <script>
  460.                                                       mapboxgl.accessToken = '{{ token_mapbox }}';
  461.                                                       var map = new mapboxgl.Map({
  462.                                                         container: 'map',
  463.                                                         style: 'mapbox://styles/mapbox/streets-v11',
  464.                                                         center: [{{ article.articleLocation.latitude }}, {{ article.articleLocation.longitude }}], // starting position
  465.                                                         zoom: 9 // starting zoom
  466.                                                       });
  467.                                                       // Ajouter un marqueur au centre de la carte
  468.                                                       new mapboxgl.Marker()
  469.                                                         .setLngLat([{{ article.articleLocation.latitude }}, {{ article.articleLocation.longitude }}])
  470.                                                         .addTo(map);
  471.                                                     </script>
  472. {#                                                    <div class=\"share-sm\">#}
  473. {#                                                        <h4>Partager:</h4>#}
  474. {#                                                        <ul>#}
  475. {#                                                            <li>#}
  476. {#                                                                <svg width=\"26\" height=\"26\" viewBox=\"0 0 26 26\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">#}
  477. {#                                                                    <path d=\"M24.9294 8.07328C24.916 7.06344 24.7269 6.06364 24.3708 5.11861C24.0619 4.32148 23.5901 3.59754 22.9857 2.99305C22.3812 2.38856 21.6572 1.91681 20.8601 1.60794C19.9272 1.25775 18.9417 1.0684 17.9454 1.04794C16.6628 0.990609 16.2561 0.974609 13.0001 0.974609C9.74409 0.974609 9.32676 0.974609 8.05343 1.04794C7.05764 1.06855 6.07256 1.2579 5.14009 1.60794C4.34284 1.9166 3.61879 2.38827 3.01427 2.99279C2.40975 3.5973 1.93808 4.32135 1.62943 5.11861C1.27854 6.05079 1.08959 7.03609 1.07076 8.03194C1.01343 9.31594 0.996094 9.72261 0.996094 12.9786C0.996094 16.2346 0.996094 16.6506 1.07076 17.9253C1.09076 18.9226 1.27876 19.9066 1.62943 20.8413C1.9386 21.6383 2.41062 22.362 3.01534 22.9663C3.62006 23.5706 4.34418 24.042 5.14143 24.3506C6.07134 24.7149 7.05659 24.9178 8.05476 24.9506C9.33876 25.0079 9.74543 25.0253 13.0014 25.0253C16.2574 25.0253 16.6748 25.0253 17.9481 24.9506C18.9443 24.931 19.9299 24.7421 20.8628 24.3919C21.6597 24.0827 22.3834 23.6108 22.9879 23.0064C23.5923 22.402 24.0642 21.6782 24.3734 20.8813C24.7241 19.9479 24.9121 18.9639 24.9321 17.9653C24.9894 16.6826 25.0068 16.2759 25.0068 13.0186C25.0041 9.76261 25.0041 9.34928 24.9294 8.07328ZM12.9921 19.1359C9.58676 19.1359 6.82809 16.3773 6.82809 12.9719C6.82809 9.56661 9.58676 6.80794 12.9921 6.80794C14.6269 6.80794 16.1947 7.45736 17.3507 8.61334C18.5067 9.76931 19.1561 11.3371 19.1561 12.9719C19.1561 14.6067 18.5067 16.1746 17.3507 17.3305C16.1947 18.4865 14.6269 19.1359 12.9921 19.1359ZM19.4014 8.01728C19.2126 8.01745 19.0256 7.98039 18.8512 7.90822C18.6767 7.83605 18.5182 7.73019 18.3847 7.59668C18.2512 7.46318 18.1453 7.30466 18.0731 7.13019C18.001 6.95573 17.9639 6.76875 17.9641 6.57994C17.9641 6.39128 18.0013 6.20446 18.0735 6.03015C18.1457 5.85585 18.2515 5.69747 18.3849 5.56407C18.5183 5.43066 18.6767 5.32484 18.851 5.25264C19.0253 5.18044 19.2121 5.14328 19.4008 5.14328C19.5894 5.14328 19.7762 5.18044 19.9506 5.25264C20.1249 5.32484 20.2832 5.43066 20.4166 5.56407C20.55 5.69747 20.6559 5.85585 20.7281 6.03015C20.8003 6.20446 20.8374 6.39128 20.8374 6.57994C20.8374 7.37461 20.1948 8.01728 19.4014 8.01728Z\" fill=\"black\"/>#}
  478. {#                                                                </svg>#}
  479. {#                                                            </li>#}
  480. {#                                                            <li>#}
  481. {#                                                                <svg width=\"28\" height=\"22\" viewBox=\"0 0 28 22\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">#}
  482. {#                                                                    <path d=\"M27.3337 2.73337C26.3314 3.16816 25.2716 3.45559 24.187 3.5867C25.3312 2.90313 26.1887 1.82775 26.6003 0.560035C25.5251 1.20012 24.348 1.6511 23.1203 1.89337C22.2997 1.00346 21.2069 0.411097 20.0134 0.209171C18.8199 0.00724411 17.593 0.20718 16.5254 0.777621C15.4577 1.34806 14.6096 2.25674 14.114 3.36115C13.6184 4.46556 13.5034 5.70322 13.787 6.88003C11.6129 6.77007 9.48625 6.20397 7.5452 5.21852C5.60415 4.23306 3.89212 2.85029 2.52033 1.16004C2.03918 2.00026 1.78635 2.9518 1.78699 3.92004C1.78529 4.81921 2.00595 5.70486 2.42933 6.49812C2.85272 7.29138 3.46568 7.96765 4.21366 8.4667C3.3443 8.44305 2.49351 8.20977 1.73366 7.7867V7.85337C1.74017 9.11322 2.18165 10.3322 2.98341 11.304C3.78517 12.2758 4.898 12.9409 6.13366 13.1867C5.658 13.3315 5.16416 13.4078 4.66699 13.4134C4.32285 13.4093 3.97956 13.3781 3.64033 13.32C3.99221 14.4038 4.67316 15.3509 5.58843 16.0296C6.50369 16.7083 7.60776 17.0848 8.74699 17.1067C6.82326 18.6204 4.44817 19.4465 2.00033 19.4534C1.55464 19.4548 1.10931 19.4281 0.666992 19.3734C3.16623 20.987 6.07874 21.8437 9.05366 21.84C11.1066 21.8614 13.1432 21.4734 15.0445 20.6988C16.9458 19.9242 18.6737 18.7785 20.1273 17.3287C21.5808 15.8788 22.7309 14.1539 23.5104 12.2546C24.2899 10.3553 24.683 8.31967 24.667 6.2667V5.56003C25.7133 4.77978 26.6156 3.82327 27.3337 2.73337Z\" fill=\"black\"/>#}
  483. {#                                                                </svg>#}
  484. {#                                                            </li>#}
  485. {#                                                            <li>#}
  486. {#                                                                <svg width=\"14\" height=\"26\" viewBox=\"0 0 14 26\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">#}
  487. {#                                                                    <path d=\"M3.264 25.6667H8.59733V14.9867H13.4027L13.9307 9.68004H8.59733V7.00004C8.59733 6.64642 8.73781 6.30728 8.98786 6.05723C9.23791 5.80718 9.57705 5.66671 9.93067 5.66671H13.9307V0.333374H9.93067C8.16256 0.333374 6.46687 1.03575 5.21662 2.286C3.96638 3.53624 3.264 5.23193 3.264 7.00004V9.68004H0.597336L0.0693359 14.9867H3.264V25.6667Z\" fill=\"black\"/>#}
  488. {#                                                                </svg>#}
  489. {#                                                            </li>#}
  490. {#                                                        </ul>#}
  491. {#                                                    </div>#}
  492.                                                 </div>
  493.                                             </div>
  494.                                         </div>
  495.                                 </div>
  496.                             </div>
  497.                         </div>
  498.                     </div>
  499.                 </div>
  500.             </div>
  501.         </div>
  502.         <div id=\"div-evenement-similary\">
  503.             {% include '@OdiseoSyliusBlogPlugin/Shop/_sidebarEvenement.html.twig' %}
  504.         </div>
  505.     {% endblock %}
  506.     <style>
  507.         #main-container{
  508.             padding-bottom: 0 !important;
  509.         }
  510.     </style>
  511. {% endblock %}
  512. ""@OdiseoSyliusBlogPlugin/Shop/Evenement/show.html.twig""/var/www/Bikers/templates/bundles/OdiseoSyliusBlogPlugin/Shop/Evenement/show.html.twig");
  513.     }
  514. }