var/cache/dev/twig/87/8784cbc32647b10d6ea86541d98e796a50154d062ae599309b98a2e0d41b414f.php line 136

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. /* front_otacos/promo.html.twig */
  14. class __TwigTemplate_c25f3f0d952a1d3bda44e8b2bf3531b17fd1099903a8478ffc1f4d1b3f8401e7 extends 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.             'title' => [$this'block_title'],
  24.             'body' => [$this'block_body'],
  25.             'javascripts' => [$this'block_javascripts'],
  26.         ];
  27.     }
  28.     protected function doGetParent(array $context)
  29.     {
  30.         // line 1
  31.         return "base.html.twig";
  32.     }
  33.     protected function doDisplay(array $context, array $blocks = [])
  34.     {
  35.         $macros $this->macros;
  36.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  37.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""front_otacos/promo.html.twig"));
  38.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  39.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""front_otacos/promo.html.twig"));
  40.         $this->parent $this->loadTemplate("base.html.twig""front_otacos/promo.html.twig"1);
  41.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  42.         
  43.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  44.         
  45.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  46.     }
  47.     // line 3
  48.     public function block_title($context, array $blocks = [])
  49.     {
  50.         $macros $this->macros;
  51.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  52.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  53.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  54.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  55.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("menu.promodumoment"), "html"nulltrue);
  56.         
  57.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  58.         
  59.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  60.     }
  61.     // line 5
  62.     public function block_body($context, array $blocks = [])
  63.     {
  64.         $macros $this->macros;
  65.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  66.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  67.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  68.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  69.         // line 6
  70.         echo "<style>
  71.     .example-wrapper { margin: 1em auto; max-width: 800px; width: 95%; font: 18px/1.5 sans-serif; }
  72.     .example-wrapper code { background: #F5F5F5; padding: 2px 6px; }
  73.     .styledMap {
  74.         padding: 5px 10px;
  75.     }
  76.     .gm-style-iw  {
  77.         border: 2px solid #ff7200;
  78.     }
  79.     .styledMap h1{
  80.         color: #ff7200;
  81.         font-size: 1.4em;
  82.         text-transform: uppercase;
  83.         font-family: 'heavitas';
  84.         font-weight:normal;
  85.     }
  86.     .styledMap p{
  87.         font-size: 1.2em;
  88.         margin:0;
  89.         font-family: 'Josefin Sans',sans-serif;
  90.     }
  91. </style>
  92.     <div class=\"promo\">
  93.         <div class=\"wrapper\">
  94.             <ul class=\"breadcrumb\">
  95.                 <li><a href=\"";
  96.         // line 36
  97.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("home");
  98.         echo "\">";
  99.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("accueil"), "html"nulltrue);
  100.         echo "</a></li>
  101.                 <li>";
  102.         // line 37
  103.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("menu.promodumoment"), "html"nulltrue);
  104.         echo "</li>
  105.             </ul>
  106.             <h1 class=\"titreDualFont\"><div><span>Promo</span> du moment</div></h1>
  107.             <p class=\"chapo\">
  108.                 <b>";
  109.         // line 43
  110.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["promo"]) || array_key_exists("promo"$context) ? $context["promo"] : (function () { throw new RuntimeError('Variable "promo" does not exist.'43$this->source); })()), "titre", [], "any"falsefalsefalse43), "html"nulltrue);
  111.         echo "</b>
  112.             </p>
  113.             <div class=\"stand2col\">
  114.                 <div class=\"promo-visuel\">
  115.                     <img src=\"/img/promo-moment.png\" />
  116.                 </div>
  117.                 <div class=\"promo-description\">
  118.                     <p>";
  119.         // line 51
  120.         echo twig_nl2br(twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["promo"]) || array_key_exists("promo"$context) ? $context["promo"] : (function () { throw new RuntimeError('Variable "promo" does not exist.'51$this->source); })()), "chapo", [], "any"falsefalsefalse51), "html"nulltrue));
  121.         echo "</p>
  122.                     <h3>";
  123.         // line 53
  124.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("promo.1"), "html"nulltrue);
  125.         echo " :</h3>
  126.                     ";
  127.         // line 54
  128.         echo twig_get_attribute($this->env$this->source, (isset($context["promo"]) || array_key_exists("promo"$context) ? $context["promo"] : (function () { throw new RuntimeError('Variable "promo" does not exist.'54$this->source); })()), "texte", [], "any"falsefalsefalse54);
  129.         echo "
  130.                     <p class=\"promo-description-mentions\">
  131.                         ";
  132.         // line 57
  133.         echo twig_nl2br(twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["promo"]) || array_key_exists("promo"$context) ? $context["promo"] : (function () { throw new RuntimeError('Variable "promo" does not exist.'57$this->source); })()), "mentions", [], "any"falsefalsefalse57), "html"nulltrue));
  134.         echo "
  135.                     </p>
  136.                 </div>
  137.             </div>
  138.             <h2>";
  139.         // line 63
  140.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("promo.2"), "html"nulltrue);
  141.         echo "</h2>
  142.             <div class=\"map\">
  143.                 <div id=\"map\" style=\"width:100%;height:100%;\"></div>
  144.             </div>
  145.         </div>
  146.         
  147.     </div>
  148.     <script src=\"https://maps.googleapis.com/maps/api/js?key=AIzaSyDdDbL-0mCap-U8hE8UrIktLcvdxYOXWVg&callback=initMap&v=weekly\"
  149.       async
  150.     ></script>
  151. ";
  152.         
  153.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  154.         
  155.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  156.     }
  157.     // line 82
  158.     public function block_javascripts($context, array $blocks = [])
  159.     {
  160.         $macros $this->macros;
  161.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  162.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  163.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  164.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  165.         // line 83
  166.         echo "    <script>
  167.         let map;
  168.         const image = \"";
  169.         // line 85
  170.         echo twig_escape_filter($this->env, (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.'85$this->source); })()), "request", [], "any"falsefalsefalse85), "schemeAndHttpHost", [], "any"falsefalsefalse85) . 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.'85$this->source); })()), "request", [], "any"falsefalsefalse85), "baseUrl", [], "any"falsefalsefalse85)), "html"nulltrue);
  171.         echo "/img/markermap.svg\";
  172.         function initMap() {
  173.             map = new google.maps.Map(document.getElementById(\"map\"), {
  174.                 mapId: \"2262022a4ce1b38\",
  175.                 center: { lat: 48.85596, lng: 2.35452 },
  176.                 zoom: 14,
  177.             });
  178.             let infowindow;
  179.             ";
  180.         // line 96
  181.         $context['_parent'] = $context;
  182.         $context['_seq'] = twig_ensure_traversable((isset($context["restos"]) || array_key_exists("restos"$context) ? $context["restos"] : (function () { throw new RuntimeError('Variable "restos" does not exist.'96$this->source); })()));
  183.         $context['loop'] = [
  184.           'parent' => $context['_parent'],
  185.           'index0' => 0,
  186.           'index'  => 1,
  187.           'first'  => true,
  188.         ];
  189.         if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  190.             $length count($context['_seq']);
  191.             $context['loop']['revindex0'] = $length 1;
  192.             $context['loop']['revindex'] = $length;
  193.             $context['loop']['length'] = $length;
  194.             $context['loop']['last'] = === $length;
  195.         }
  196.         foreach ($context['_seq'] as $context["_key"] => $context["resto"]) {
  197.             // line 97
  198.             echo "                let marker";
  199.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["loop"], "index0", [], "any"falsefalsefalse97), "html"nulltrue);
  200.             echo " = new google.maps.Marker({
  201.                     position: { lat: ";
  202.             // line 98
  203.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["resto"], "lat", [], "any"falsefalsefalse98), "html"nulltrue);
  204.             echo ", lng: ";
  205.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["resto"], "lng", [], "any"falsefalsefalse98), "html"nulltrue);
  206.             echo "},
  207.                     map,
  208.                     title: '";
  209.             // line 100
  210.             echo twig_escape_filter($this->envtwig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["resto"], "name", [], "any"falsefalsefalse100), "js"), "html"nulltrue);
  211.             echo "',
  212.                     icon: image,
  213.                 });
  214.                 marker";
  215.             // line 105
  216.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["loop"], "index0", [], "any"falsefalsefalse105), "html"nulltrue);
  217.             echo ".addListener(\"click\", () => {
  218.                     if(infowindow) infowindow.close();
  219.                     let contentInfo = \"<div class=\\\"styledMap\\\">\";
  220.                     contentInfo+= \"<h1>";
  221.             // line 109
  222.             echo twig_escape_filter($this->envtwig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["resto"], "name", [], "any"falsefalsefalse109), "js"), "html"nulltrue);
  223.             echo "</h1>\";
  224.                     contentInfo+= \"<p><b>";
  225.             // line 110
  226.             echo twig_escape_filter($this->envtwig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["resto"], "address", [], "any"falsefalsefalse110), "js"), "html"nulltrue);
  227.             echo "</b></p>\";
  228.                     ";
  229.             // line 111
  230.             if ( !twig_test_empty(twig_get_attribute($this->env$this->source$context["resto"], "address2", [], "any"falsefalsefalse111))) {
  231.                 // line 112
  232.                 echo "                    contentInfo+= \"<p><b>";
  233.                 echo twig_escape_filter($this->envtwig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["resto"], "address2", [], "any"falsefalsefalse112), "js"), "html"nulltrue);
  234.                 echo "</b></p>\";
  235.                     ";
  236.             }
  237.             // line 114
  238.             echo "                    contentInfo+= \"<p><b>";
  239.             echo twig_escape_filter($this->envtwig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["resto"], "zipcode", [], "any"falsefalsefalse114), "js"), "html"nulltrue);
  240.             echo " ";
  241.             echo twig_escape_filter($this->envtwig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["resto"], "city", [], "any"falsefalsefalse114), "js"), "html"nulltrue);
  242.             echo "</b></p>\";
  243.                     
  244.                     ";
  245.             // line 116
  246.             if ( !(null === twig_get_attribute($this->env$this->source$context["resto"], "phone", [], "any"falsefalsefalse116))) {
  247.                 // line 117
  248.                 echo "                    contentInfo+= \"<p>Tél. <a href=\\\"tel:";
  249.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["resto"], "phone", [], "any"falsefalsefalse117), "html"nulltrue);
  250.                 echo "\\\">";
  251.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["resto"], "phone", [], "any"falsefalsefalse117), "html"nulltrue);
  252.                 echo "</a></p>\";
  253.                     ";
  254.             }
  255.             // line 119
  256.             echo "                    
  257.                     contentInfo+= \"<br/><p>Lundi : \";
  258.                     ";
  259.             // line 121
  260.             if (( !(null === twig_get_attribute($this->env$this->source$context["resto"], "mondayOpen", [], "any"falsefalsefalse121)) &&  !(null === twig_get_attribute($this->env$this->source$context["resto"], "mondayClose", [], "any"falsefalsefalse121)))) {
  261.                 // line 122
  262.                 echo "                        contentInfo+= \"";
  263.                 echo twig_escape_filter($this->envtwig_date_format_filter($this->envtwig_get_attribute($this->env$this->source$context["resto"], "mondayOpen", [], "any"falsefalsefalse122), "H"), "html"nulltrue);
  264.                 echo "h";
  265.                 echo twig_escape_filter($this->envtwig_date_format_filter($this->envtwig_get_attribute($this->env$this->source$context["resto"], "mondayOpen", [], "any"falsefalsefalse122), "i"), "html"nulltrue);
  266.                 echo " - ";
  267.                 echo twig_escape_filter($this->envtwig_date_format_filter($this->envtwig_get_attribute($this->env$this->source$context["resto"], "mondayClose", [], "any"falsefalsefalse122), "H"), "html"nulltrue);
  268.                 echo "h";
  269.                 echo twig_escape_filter($this->envtwig_date_format_filter($this->envtwig_get_attribute($this->env$this->source$context["resto"], "mondayClose", [], "any"falsefalsefalse122), "i"), "html"nulltrue);
  270.                 echo "</p>\"; 
  271.                     ";
  272.             } else {
  273.                 // line 124
  274.                 echo "                        contentInfo+= \" FERMÉ\";
  275.                     ";
  276.             }
  277.             // line 126
  278.             echo "
  279.                     
  280.                     contentInfo+= \"<p>Mardi : \";
  281.                     ";
  282.             // line 129
  283.             if (( !(null === twig_get_attribute($this->env$this->source$context["resto"], "tuesdayOpen", [], "any"falsefalsefalse129)) &&  !(null === twig_get_attribute($this->env$this->source$context["resto"], "tuesdayClose", [], "any"falsefalsefalse129)))) {
  284.                 // line 130
  285.                 echo "                        contentInfo+= \"";
  286.                 echo twig_escape_filter($this->envtwig_date_format_filter($this->envtwig_get_attribute($this->env$this->source$context["resto"], "tuesdayOpen", [], "any"falsefalsefalse130), "H"), "html"nulltrue);
  287.                 echo "h";
  288.                 echo twig_escape_filter($this->envtwig_date_format_filter($this->envtwig_get_attribute($this->env$this->source$context["resto"], "tuesdayOpen", [], "any"falsefalsefalse130), "i"), "html"nulltrue);
  289.                 echo " - ";
  290.                 echo twig_escape_filter($this->envtwig_date_format_filter($this->envtwig_get_attribute($this->env$this->source$context["resto"], "tuesdayClose", [], "any"falsefalsefalse130), "H"), "html"nulltrue);
  291.                 echo "h";
  292.                 echo twig_escape_filter($this->envtwig_date_format_filter($this->envtwig_get_attribute($this->env$this->source$context["resto"], "tuesdayClose", [], "any"falsefalsefalse130), "i"), "html"nulltrue);
  293.                 echo "</p>\"; 
  294.                     ";
  295.             } else {
  296.                 // line 132
  297.                 echo "                        contentInfo+= \" FERMÉ\";
  298.                     ";
  299.             }
  300.             // line 134
  301.             echo "
  302.                     contentInfo+= \"<p>Mercredi : \";
  303.                     ";
  304.             // line 136
  305.             if (( !(null === twig_get_attribute($this->env$this->source$context["resto"], "wednesdayOpen", [], "any"falsefalsefalse136)) &&  !(null === twig_get_attribute($this->env$this->source$context["resto"], "wednesdayClose", [], "any"falsefalsefalse136)))) {
  306.                 // line 137
  307.                 echo "                        contentInfo+= \"";
  308.                 echo twig_escape_filter($this->envtwig_date_format_filter($this->envtwig_get_attribute($this->env$this->source$context["resto"], "wednesdayOpen", [], "any"falsefalsefalse137), "H"), "html"nulltrue);
  309.                 echo "h";
  310.                 echo twig_escape_filter($this->envtwig_date_format_filter($this->envtwig_get_attribute($this->env$this->source$context["resto"], "wednesdayOpen", [], "any"falsefalsefalse137), "i"), "html"nulltrue);
  311.                 echo " - ";
  312.                 echo twig_escape_filter($this->envtwig_date_format_filter($this->envtwig_get_attribute($this->env$this->source$context["resto"], "wednesdayClose", [], "any"falsefalsefalse137), "H"), "html"nulltrue);
  313.                 echo "h";
  314.                 echo twig_escape_filter($this->envtwig_date_format_filter($this->envtwig_get_attribute($this->env$this->source$context["resto"], "wednesdayClose", [], "any"falsefalsefalse137), "i"), "html"nulltrue);
  315.                 echo "</p>\"; 
  316.                     ";
  317.             } else {
  318.                 // line 139
  319.                 echo "                        contentInfo+= \" FERMÉ\";
  320.                     ";
  321.             }
  322.             // line 141
  323.             echo "
  324.                     contentInfo+= \"<p>Jeudi : \";
  325.                     ";
  326.             // line 143
  327.             if (( !(null === twig_get_attribute($this->env$this->source$context["resto"], "thursdayOpen", [], "any"falsefalsefalse143)) &&  !(null === twig_get_attribute($this->env$this->source$context["resto"], "thursdayClose", [], "any"falsefalsefalse143)))) {
  328.                 // line 144
  329.                 echo "                        contentInfo+= \"";
  330.                 echo twig_escape_filter($this->envtwig_date_format_filter($this->envtwig_get_attribute($this->env$this->source$context["resto"], "thursdayOpen", [], "any"falsefalsefalse144), "H"), "html"nulltrue);
  331.                 echo "h";
  332.                 echo twig_escape_filter($this->envtwig_date_format_filter($this->envtwig_get_attribute($this->env$this->source$context["resto"], "thursdayOpen", [], "any"falsefalsefalse144), "i"), "html"nulltrue);
  333.                 echo " - ";
  334.                 echo twig_escape_filter($this->envtwig_date_format_filter($this->envtwig_get_attribute($this->env$this->source$context["resto"], "thursdayClose", [], "any"falsefalsefalse144), "H"), "html"nulltrue);
  335.                 echo "h";
  336.                 echo twig_escape_filter($this->envtwig_date_format_filter($this->envtwig_get_attribute($this->env$this->source$context["resto"], "thursdayClose", [], "any"falsefalsefalse144), "i"), "html"nulltrue);
  337.                 echo "</p>\"; 
  338.                     ";
  339.             } else {
  340.                 // line 146
  341.                 echo "                        contentInfo+= \" FERMÉ\";
  342.                     ";
  343.             }
  344.             // line 148
  345.             echo "
  346.                     contentInfo+= \"<p>Vendredi : \";
  347.                     ";
  348.             // line 150
  349.             if (( !(null === twig_get_attribute($this->env$this->source$context["resto"], "fridayOpen", [], "any"falsefalsefalse150)) &&  !(null === twig_get_attribute($this->env$this->source$context["resto"], "fridayClose", [], "any"falsefalsefalse150)))) {
  350.                 // line 151
  351.                 echo "                        contentInfo+= \"";
  352.                 echo twig_escape_filter($this->envtwig_date_format_filter($this->envtwig_get_attribute($this->env$this->source$context["resto"], "fridayOpen", [], "any"falsefalsefalse151), "H"), "html"nulltrue);
  353.                 echo "h";
  354.                 echo twig_escape_filter($this->envtwig_date_format_filter($this->envtwig_get_attribute($this->env$this->source$context["resto"], "fridayOpen", [], "any"falsefalsefalse151), "i"), "html"nulltrue);
  355.                 echo " - ";
  356.                 echo twig_escape_filter($this->envtwig_date_format_filter($this->envtwig_get_attribute($this->env$this->source$context["resto"], "fridayClose", [], "any"falsefalsefalse151), "H"), "html"nulltrue);
  357.                 echo "h";
  358.                 echo twig_escape_filter($this->envtwig_date_format_filter($this->envtwig_get_attribute($this->env$this->source$context["resto"], "fridayClose", [], "any"falsefalsefalse151), "i"), "html"nulltrue);
  359.                 echo "</p>\"; 
  360.                     ";
  361.             } else {
  362.                 // line 153
  363.                 echo "                        contentInfo+= \" FERMÉ\";
  364.                     ";
  365.             }
  366.             // line 155
  367.             echo "
  368.                     contentInfo+= \"<p>Samedi : \";
  369.                     ";
  370.             // line 157
  371.             if (( !(null === twig_get_attribute($this->env$this->source$context["resto"], "saturdayOpen", [], "any"falsefalsefalse157)) &&  !(null === twig_get_attribute($this->env$this->source$context["resto"], "saturdayClose", [], "any"falsefalsefalse157)))) {
  372.                 // line 158
  373.                 echo "                        contentInfo+= \"";
  374.                 echo twig_escape_filter($this->envtwig_date_format_filter($this->envtwig_get_attribute($this->env$this->source$context["resto"], "saturdayOpen", [], "any"falsefalsefalse158), "H"), "html"nulltrue);
  375.                 echo "h";
  376.                 echo twig_escape_filter($this->envtwig_date_format_filter($this->envtwig_get_attribute($this->env$this->source$context["resto"], "saturdayOpen", [], "any"falsefalsefalse158), "i"), "html"nulltrue);
  377.                 echo " - ";
  378.                 echo twig_escape_filter($this->envtwig_date_format_filter($this->envtwig_get_attribute($this->env$this->source$context["resto"], "saturdayClose", [], "any"falsefalsefalse158), "H"), "html"nulltrue);
  379.                 echo "h";
  380.                 echo twig_escape_filter($this->envtwig_date_format_filter($this->envtwig_get_attribute($this->env$this->source$context["resto"], "saturdayClose", [], "any"falsefalsefalse158), "i"), "html"nulltrue);
  381.                 echo "</p>\"; 
  382.                     ";
  383.             } else {
  384.                 // line 160
  385.                 echo "                        contentInfo+= \" FERMÉ\";
  386.                     ";
  387.             }
  388.             // line 162
  389.             echo "
  390.                     contentInfo+= \"<p>Dimanche : \";
  391.                     ";
  392.             // line 164
  393.             if (( !(null === twig_get_attribute($this->env$this->source$context["resto"], "sundayOpen", [], "any"falsefalsefalse164)) &&  !(null === twig_get_attribute($this->env$this->source$context["resto"], "sundayClose", [], "any"falsefalsefalse164)))) {
  394.                 // line 165
  395.                 echo "                        contentInfo+= \"";
  396.                 echo twig_escape_filter($this->envtwig_date_format_filter($this->envtwig_get_attribute($this->env$this->source$context["resto"], "sundayOpen", [], "any"falsefalsefalse165), "H"), "html"nulltrue);
  397.                 echo "h";
  398.                 echo twig_escape_filter($this->envtwig_date_format_filter($this->envtwig_get_attribute($this->env$this->source$context["resto"], "sundayOpen", [], "any"falsefalsefalse165), "i"), "html"nulltrue);
  399.                 echo " - ";
  400.                 echo twig_escape_filter($this->envtwig_date_format_filter($this->envtwig_get_attribute($this->env$this->source$context["resto"], "sundayClose", [], "any"falsefalsefalse165), "H"), "html"nulltrue);
  401.                 echo "h";
  402.                 echo twig_escape_filter($this->envtwig_date_format_filter($this->envtwig_get_attribute($this->env$this->source$context["resto"], "sundayClose", [], "any"falsefalsefalse165), "i"), "html"nulltrue);
  403.                 echo "</p>\"; 
  404.                     ";
  405.             } else {
  406.                 // line 167
  407.                 echo "                        contentInfo+= \" FERMÉ\";
  408.                     ";
  409.             }
  410.             // line 169
  411.             echo "
  412.                     contentInfo+= \"</div>\";
  413.                     infowindow = new google.maps.InfoWindow({
  414.                         content: contentInfo,
  415.                     });
  416.                     infowindow.open({
  417.                     anchor: marker";
  418.             // line 178
  419.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["loop"], "index0", [], "any"falsefalsefalse178), "html"nulltrue);
  420.             echo ",
  421.                     map,
  422.                     shouldFocus: false,
  423.                     });
  424.                 });
  425.             ";
  426.             ++$context['loop']['index0'];
  427.             ++$context['loop']['index'];
  428.             $context['loop']['first'] = false;
  429.             if (isset($context['loop']['length'])) {
  430.                 --$context['loop']['revindex0'];
  431.                 --$context['loop']['revindex'];
  432.                 $context['loop']['last'] = === $context['loop']['revindex0'];
  433.             }
  434.         }
  435.         $_parent $context['_parent'];
  436.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['resto'], $context['_parent'], $context['loop']);
  437.         $context array_intersect_key($context$_parent) + $_parent;
  438.         // line 186
  439.         echo "            
  440.         }
  441.     </script>
  442. ";
  443.         
  444.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  445.         
  446.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  447.     }
  448.     public function getTemplateName()
  449.     {
  450.         return "front_otacos/promo.html.twig";
  451.     }
  452.     public function isTraitable()
  453.     {
  454.         return false;
  455.     }
  456.     public function getDebugInfo()
  457.     {
  458.         return array (  492 => 186,  470 => 178,  459 => 169,  455 => 167,  443 => 165,  441 => 164,  437 => 162,  433 => 160,  421 => 158,  419 => 157,  415 => 155,  411 => 153,  399 => 151,  397 => 150,  393 => 148,  389 => 146,  377 => 144,  375 => 143,  371 => 141,  367 => 139,  355 => 137,  353 => 136,  349 => 134,  345 => 132,  333 => 130,  331 => 129,  326 => 126,  322 => 124,  310 => 122,  308 => 121,  304 => 119,  296 => 117,  294 => 116,  286 => 114,  280 => 112,  278 => 111,  274 => 110,  270 => 109,  263 => 105,  255 => 100,  248 => 98,  243 => 97,  226 => 96,  212 => 85,  208 => 83,  198 => 82,  171 => 63,  162 => 57,  156 => 54,  152 => 53,  147 => 51,  136 => 43,  127 => 37,  121 => 36,  89 => 6,  79 => 5,  60 => 3,  37 => 1,);
  459.     }
  460.     public function getSourceContext()
  461.     {
  462.         return new Source("{% extends 'base.html.twig' %}
  463. {% block title %}{{'menu.promodumoment'|trans}}{% endblock %}
  464. {% block body %}
  465. <style>
  466.     .example-wrapper { margin: 1em auto; max-width: 800px; width: 95%; font: 18px/1.5 sans-serif; }
  467.     .example-wrapper code { background: #F5F5F5; padding: 2px 6px; }
  468.     .styledMap {
  469.         padding: 5px 10px;
  470.     }
  471.     .gm-style-iw  {
  472.         border: 2px solid #ff7200;
  473.     }
  474.     .styledMap h1{
  475.         color: #ff7200;
  476.         font-size: 1.4em;
  477.         text-transform: uppercase;
  478.         font-family: 'heavitas';
  479.         font-weight:normal;
  480.     }
  481.     .styledMap p{
  482.         font-size: 1.2em;
  483.         margin:0;
  484.         font-family: 'Josefin Sans',sans-serif;
  485.     }
  486. </style>
  487.     <div class=\"promo\">
  488.         <div class=\"wrapper\">
  489.             <ul class=\"breadcrumb\">
  490.                 <li><a href=\"{{path('home')}}\">{{'accueil'|trans}}</a></li>
  491.                 <li>{{'menu.promodumoment'|trans}}</li>
  492.             </ul>
  493.             <h1 class=\"titreDualFont\"><div><span>Promo</span> du moment</div></h1>
  494.             <p class=\"chapo\">
  495.                 <b>{{promo.titre}}</b>
  496.             </p>
  497.             <div class=\"stand2col\">
  498.                 <div class=\"promo-visuel\">
  499.                     <img src=\"/img/promo-moment.png\" />
  500.                 </div>
  501.                 <div class=\"promo-description\">
  502.                     <p>{{promo.chapo|nl2br}}</p>
  503.                     <h3>{{'promo.1'|trans}} :</h3>
  504.                     {{promo.texte|raw}}
  505.                     <p class=\"promo-description-mentions\">
  506.                         {{promo.mentions|nl2br}}
  507.                     </p>
  508.                 </div>
  509.             </div>
  510.             <h2>{{'promo.2'|trans}}</h2>
  511.             <div class=\"map\">
  512.                 <div id=\"map\" style=\"width:100%;height:100%;\"></div>
  513.             </div>
  514.         </div>
  515.         
  516.     </div>
  517.     <script src=\"https://maps.googleapis.com/maps/api/js?key=AIzaSyDdDbL-0mCap-U8hE8UrIktLcvdxYOXWVg&callback=initMap&v=weekly\"
  518.       async
  519.     ></script>
  520. {% endblock %}
  521. {% block javascripts %}
  522.     <script>
  523.         let map;
  524.         const image = \"{{ app.request.schemeAndHttpHost ~ app.request.baseUrl }}/img/markermap.svg\";
  525.         function initMap() {
  526.             map = new google.maps.Map(document.getElementById(\"map\"), {
  527.                 mapId: \"2262022a4ce1b38\",
  528.                 center: { lat: 48.85596, lng: 2.35452 },
  529.                 zoom: 14,
  530.             });
  531.             let infowindow;
  532.             {% for resto in restos %}
  533.                 let marker{{loop.index0}} = new google.maps.Marker({
  534.                     position: { lat: {{resto.lat}}, lng: {{resto.lng}}},
  535.                     map,
  536.                     title: '{{resto.name|escape('js')}}',
  537.                     icon: image,
  538.                 });
  539.                 marker{{loop.index0}}.addListener(\"click\", () => {
  540.                     if(infowindow) infowindow.close();
  541.                     let contentInfo = \"<div class=\\\"styledMap\\\">\";
  542.                     contentInfo+= \"<h1>{{resto.name|escape('js')}}</h1>\";
  543.                     contentInfo+= \"<p><b>{{resto.address|escape('js')}}</b></p>\";
  544.                     {% if resto.address2 is not empty %}
  545.                     contentInfo+= \"<p><b>{{resto.address2|escape('js')}}</b></p>\";
  546.                     {% endif %}
  547.                     contentInfo+= \"<p><b>{{resto.zipcode|escape('js')}} {{resto.city|escape('js')}}</b></p>\";
  548.                     
  549.                     {% if resto.phone is not null %}
  550.                     contentInfo+= \"<p>Tél. <a href=\\\"tel:{{resto.phone}}\\\">{{resto.phone}}</a></p>\";
  551.                     {% endif %}
  552.                     
  553.                     contentInfo+= \"<br/><p>Lundi : \";
  554.                     {% if resto.mondayOpen is not null and resto.mondayClose is not null %}
  555.                         contentInfo+= \"{{resto.mondayOpen|date('H')}}h{{resto.mondayOpen|date('i')}} - {{resto.mondayClose|date('H')}}h{{resto.mondayClose|date('i')}}</p>\"; 
  556.                     {% else %}
  557.                         contentInfo+= \" FERMÉ\";
  558.                     {% endif %}
  559.                     
  560.                     contentInfo+= \"<p>Mardi : \";
  561.                     {% if resto.tuesdayOpen is not null and resto.tuesdayClose is not null %}
  562.                         contentInfo+= \"{{resto.tuesdayOpen|date('H')}}h{{resto.tuesdayOpen|date('i')}} - {{resto.tuesdayClose|date('H')}}h{{resto.tuesdayClose|date('i')}}</p>\"; 
  563.                     {% else %}
  564.                         contentInfo+= \" FERMÉ\";
  565.                     {% endif %}
  566.                     contentInfo+= \"<p>Mercredi : \";
  567.                     {% if resto.wednesdayOpen is not null and resto.wednesdayClose is not null %}
  568.                         contentInfo+= \"{{resto.wednesdayOpen|date('H')}}h{{resto.wednesdayOpen|date('i')}} - {{resto.wednesdayClose|date('H')}}h{{resto.wednesdayClose|date('i')}}</p>\"; 
  569.                     {% else %}
  570.                         contentInfo+= \" FERMÉ\";
  571.                     {% endif %}
  572.                     contentInfo+= \"<p>Jeudi : \";
  573.                     {% if resto.thursdayOpen is not null and resto.thursdayClose is not null %}
  574.                         contentInfo+= \"{{resto.thursdayOpen|date('H')}}h{{resto.thursdayOpen|date('i')}} - {{resto.thursdayClose|date('H')}}h{{resto.thursdayClose|date('i')}}</p>\"; 
  575.                     {% else %}
  576.                         contentInfo+= \" FERMÉ\";
  577.                     {% endif %}
  578.                     contentInfo+= \"<p>Vendredi : \";
  579.                     {% if resto.fridayOpen is not null and resto.fridayClose is not null %}
  580.                         contentInfo+= \"{{resto.fridayOpen|date('H')}}h{{resto.fridayOpen|date('i')}} - {{resto.fridayClose|date('H')}}h{{resto.fridayClose|date('i')}}</p>\"; 
  581.                     {% else %}
  582.                         contentInfo+= \" FERMÉ\";
  583.                     {% endif %}
  584.                     contentInfo+= \"<p>Samedi : \";
  585.                     {% if resto.saturdayOpen is not null and resto.saturdayClose is not null %}
  586.                         contentInfo+= \"{{resto.saturdayOpen|date('H')}}h{{resto.saturdayOpen|date('i')}} - {{resto.saturdayClose|date('H')}}h{{resto.saturdayClose|date('i')}}</p>\"; 
  587.                     {% else %}
  588.                         contentInfo+= \" FERMÉ\";
  589.                     {% endif %}
  590.                     contentInfo+= \"<p>Dimanche : \";
  591.                     {% if resto.sundayOpen is not null and resto.sundayClose is not null %}
  592.                         contentInfo+= \"{{resto.sundayOpen|date('H')}}h{{resto.sundayOpen|date('i')}} - {{resto.sundayClose|date('H')}}h{{resto.sundayClose|date('i')}}</p>\"; 
  593.                     {% else %}
  594.                         contentInfo+= \" FERMÉ\";
  595.                     {% endif %}
  596.                     contentInfo+= \"</div>\";
  597.                     infowindow = new google.maps.InfoWindow({
  598.                         content: contentInfo,
  599.                     });
  600.                     infowindow.open({
  601.                     anchor: marker{{loop.index0}},
  602.                     map,
  603.                     shouldFocus: false,
  604.                     });
  605.                 });
  606.             {% endfor %}
  607.             
  608.         }
  609.     </script>
  610. {% endblock %}
  611. ""front_otacos/promo.html.twig""/home/otacostest/www/templates/front_otacos/promo.html.twig");
  612.     }
  613. }