<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* front_otacos/promo.html.twig */
class __TwigTemplate_c25f3f0d952a1d3bda44e8b2bf3531b17fd1099903a8478ffc1f4d1b3f8401e7 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'title' => [$this, 'block_title'],
'body' => [$this, 'block_body'],
'javascripts' => [$this, 'block_javascripts'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "base.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "front_otacos/promo.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "front_otacos/promo.html.twig"));
$this->parent = $this->loadTemplate("base.html.twig", "front_otacos/promo.html.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
// line 3
public function block_title($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("menu.promodumoment"), "html", null, true);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 5
public function block_body($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
// line 6
echo "<style>
.example-wrapper { margin: 1em auto; max-width: 800px; width: 95%; font: 18px/1.5 sans-serif; }
.example-wrapper code { background: #F5F5F5; padding: 2px 6px; }
.styledMap {
padding: 5px 10px;
}
.gm-style-iw {
border: 2px solid #ff7200;
}
.styledMap h1{
color: #ff7200;
font-size: 1.4em;
text-transform: uppercase;
font-family: 'heavitas';
font-weight:normal;
}
.styledMap p{
font-size: 1.2em;
margin:0;
font-family: 'Josefin Sans',sans-serif;
}
</style>
<div class=\"promo\">
<div class=\"wrapper\">
<ul class=\"breadcrumb\">
<li><a href=\"";
// line 36
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("home");
echo "\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("accueil"), "html", null, true);
echo "</a></li>
<li>";
// line 37
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("menu.promodumoment"), "html", null, true);
echo "</li>
</ul>
<h1 class=\"titreDualFont\"><div><span>Promo</span> du moment</div></h1>
<p class=\"chapo\">
<b>";
// line 43
echo twig_escape_filter($this->env, 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.', 43, $this->source); })()), "titre", [], "any", false, false, false, 43), "html", null, true);
echo "</b>
</p>
<div class=\"stand2col\">
<div class=\"promo-visuel\">
<img src=\"/img/promo-moment.png\" />
</div>
<div class=\"promo-description\">
<p>";
// line 51
echo twig_nl2br(twig_escape_filter($this->env, 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.', 51, $this->source); })()), "chapo", [], "any", false, false, false, 51), "html", null, true));
echo "</p>
<h3>";
// line 53
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("promo.1"), "html", null, true);
echo " :</h3>
";
// line 54
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", false, false, false, 54);
echo "
<p class=\"promo-description-mentions\">
";
// line 57
echo twig_nl2br(twig_escape_filter($this->env, 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.', 57, $this->source); })()), "mentions", [], "any", false, false, false, 57), "html", null, true));
echo "
</p>
</div>
</div>
<h2>";
// line 63
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("promo.2"), "html", null, true);
echo "</h2>
<div class=\"map\">
<div id=\"map\" style=\"width:100%;height:100%;\"></div>
</div>
</div>
</div>
<script src=\"https://maps.googleapis.com/maps/api/js?key=AIzaSyDdDbL-0mCap-U8hE8UrIktLcvdxYOXWVg&callback=initMap&v=weekly\"
async
></script>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 82
public function block_javascripts($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
// line 83
echo " <script>
let map;
const image = \"";
// line 85
echo twig_escape_filter($this->env, (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 85, $this->source); })()), "request", [], "any", false, false, false, 85), "schemeAndHttpHost", [], "any", false, false, false, 85) . twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 85, $this->source); })()), "request", [], "any", false, false, false, 85), "baseUrl", [], "any", false, false, false, 85)), "html", null, true);
echo "/img/markermap.svg\";
function initMap() {
map = new google.maps.Map(document.getElementById(\"map\"), {
mapId: \"2262022a4ce1b38\",
center: { lat: 48.85596, lng: 2.35452 },
zoom: 14,
});
let infowindow;
";
// line 96
$context['_parent'] = $context;
$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); })()));
$context['loop'] = [
'parent' => $context['_parent'],
'index0' => 0,
'index' => 1,
'first' => true,
];
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["_key"] => $context["resto"]) {
// line 97
echo " let marker";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["loop"], "index0", [], "any", false, false, false, 97), "html", null, true);
echo " = new google.maps.Marker({
position: { lat: ";
// line 98
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["resto"], "lat", [], "any", false, false, false, 98), "html", null, true);
echo ", lng: ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["resto"], "lng", [], "any", false, false, false, 98), "html", null, true);
echo "},
map,
title: '";
// line 100
echo twig_escape_filter($this->env, twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["resto"], "name", [], "any", false, false, false, 100), "js"), "html", null, true);
echo "',
icon: image,
});
marker";
// line 105
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["loop"], "index0", [], "any", false, false, false, 105), "html", null, true);
echo ".addListener(\"click\", () => {
if(infowindow) infowindow.close();
let contentInfo = \"<div class=\\\"styledMap\\\">\";
contentInfo+= \"<h1>";
// line 109
echo twig_escape_filter($this->env, twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["resto"], "name", [], "any", false, false, false, 109), "js"), "html", null, true);
echo "</h1>\";
contentInfo+= \"<p><b>";
// line 110
echo twig_escape_filter($this->env, twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["resto"], "address", [], "any", false, false, false, 110), "js"), "html", null, true);
echo "</b></p>\";
";
// line 111
if ( !twig_test_empty(twig_get_attribute($this->env, $this->source, $context["resto"], "address2", [], "any", false, false, false, 111))) {
// line 112
echo " contentInfo+= \"<p><b>";
echo twig_escape_filter($this->env, twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["resto"], "address2", [], "any", false, false, false, 112), "js"), "html", null, true);
echo "</b></p>\";
";
}
// line 114
echo " contentInfo+= \"<p><b>";
echo twig_escape_filter($this->env, twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["resto"], "zipcode", [], "any", false, false, false, 114), "js"), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["resto"], "city", [], "any", false, false, false, 114), "js"), "html", null, true);
echo "</b></p>\";
";
// line 116
if ( !(null === twig_get_attribute($this->env, $this->source, $context["resto"], "phone", [], "any", false, false, false, 116))) {
// line 117
echo " contentInfo+= \"<p>Tél. <a href=\\\"tel:";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["resto"], "phone", [], "any", false, false, false, 117), "html", null, true);
echo "\\\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["resto"], "phone", [], "any", false, false, false, 117), "html", null, true);
echo "</a></p>\";
";
}
// line 119
echo "
contentInfo+= \"<br/><p>Lundi : \";
";
// line 121
if (( !(null === twig_get_attribute($this->env, $this->source, $context["resto"], "mondayOpen", [], "any", false, false, false, 121)) && !(null === twig_get_attribute($this->env, $this->source, $context["resto"], "mondayClose", [], "any", false, false, false, 121)))) {
// line 122
echo " contentInfo+= \"";
echo twig_escape_filter($this->env, twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, $context["resto"], "mondayOpen", [], "any", false, false, false, 122), "H"), "html", null, true);
echo "h";
echo twig_escape_filter($this->env, twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, $context["resto"], "mondayOpen", [], "any", false, false, false, 122), "i"), "html", null, true);
echo " - ";
echo twig_escape_filter($this->env, twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, $context["resto"], "mondayClose", [], "any", false, false, false, 122), "H"), "html", null, true);
echo "h";
echo twig_escape_filter($this->env, twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, $context["resto"], "mondayClose", [], "any", false, false, false, 122), "i"), "html", null, true);
echo "</p>\";
";
} else {
// line 124
echo " contentInfo+= \" FERMÉ\";
";
}
// line 126
echo "
contentInfo+= \"<p>Mardi : \";
";
// line 129
if (( !(null === twig_get_attribute($this->env, $this->source, $context["resto"], "tuesdayOpen", [], "any", false, false, false, 129)) && !(null === twig_get_attribute($this->env, $this->source, $context["resto"], "tuesdayClose", [], "any", false, false, false, 129)))) {
// line 130
echo " contentInfo+= \"";
echo twig_escape_filter($this->env, twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, $context["resto"], "tuesdayOpen", [], "any", false, false, false, 130), "H"), "html", null, true);
echo "h";
echo twig_escape_filter($this->env, twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, $context["resto"], "tuesdayOpen", [], "any", false, false, false, 130), "i"), "html", null, true);
echo " - ";
echo twig_escape_filter($this->env, twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, $context["resto"], "tuesdayClose", [], "any", false, false, false, 130), "H"), "html", null, true);
echo "h";
echo twig_escape_filter($this->env, twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, $context["resto"], "tuesdayClose", [], "any", false, false, false, 130), "i"), "html", null, true);
echo "</p>\";
";
} else {
// line 132
echo " contentInfo+= \" FERMÉ\";
";
}
// line 134
echo "
contentInfo+= \"<p>Mercredi : \";
";
// line 136
if (( !(null === twig_get_attribute($this->env, $this->source, $context["resto"], "wednesdayOpen", [], "any", false, false, false, 136)) && !(null === twig_get_attribute($this->env, $this->source, $context["resto"], "wednesdayClose", [], "any", false, false, false, 136)))) {
// line 137
echo " contentInfo+= \"";
echo twig_escape_filter($this->env, twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, $context["resto"], "wednesdayOpen", [], "any", false, false, false, 137), "H"), "html", null, true);
echo "h";
echo twig_escape_filter($this->env, twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, $context["resto"], "wednesdayOpen", [], "any", false, false, false, 137), "i"), "html", null, true);
echo " - ";
echo twig_escape_filter($this->env, twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, $context["resto"], "wednesdayClose", [], "any", false, false, false, 137), "H"), "html", null, true);
echo "h";
echo twig_escape_filter($this->env, twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, $context["resto"], "wednesdayClose", [], "any", false, false, false, 137), "i"), "html", null, true);
echo "</p>\";
";
} else {
// line 139
echo " contentInfo+= \" FERMÉ\";
";
}
// line 141
echo "
contentInfo+= \"<p>Jeudi : \";
";
// line 143
if (( !(null === twig_get_attribute($this->env, $this->source, $context["resto"], "thursdayOpen", [], "any", false, false, false, 143)) && !(null === twig_get_attribute($this->env, $this->source, $context["resto"], "thursdayClose", [], "any", false, false, false, 143)))) {
// line 144
echo " contentInfo+= \"";
echo twig_escape_filter($this->env, twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, $context["resto"], "thursdayOpen", [], "any", false, false, false, 144), "H"), "html", null, true);
echo "h";
echo twig_escape_filter($this->env, twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, $context["resto"], "thursdayOpen", [], "any", false, false, false, 144), "i"), "html", null, true);
echo " - ";
echo twig_escape_filter($this->env, twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, $context["resto"], "thursdayClose", [], "any", false, false, false, 144), "H"), "html", null, true);
echo "h";
echo twig_escape_filter($this->env, twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, $context["resto"], "thursdayClose", [], "any", false, false, false, 144), "i"), "html", null, true);
echo "</p>\";
";
} else {
// line 146
echo " contentInfo+= \" FERMÉ\";
";
}
// line 148
echo "
contentInfo+= \"<p>Vendredi : \";
";
// line 150
if (( !(null === twig_get_attribute($this->env, $this->source, $context["resto"], "fridayOpen", [], "any", false, false, false, 150)) && !(null === twig_get_attribute($this->env, $this->source, $context["resto"], "fridayClose", [], "any", false, false, false, 150)))) {
// line 151
echo " contentInfo+= \"";
echo twig_escape_filter($this->env, twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, $context["resto"], "fridayOpen", [], "any", false, false, false, 151), "H"), "html", null, true);
echo "h";
echo twig_escape_filter($this->env, twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, $context["resto"], "fridayOpen", [], "any", false, false, false, 151), "i"), "html", null, true);
echo " - ";
echo twig_escape_filter($this->env, twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, $context["resto"], "fridayClose", [], "any", false, false, false, 151), "H"), "html", null, true);
echo "h";
echo twig_escape_filter($this->env, twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, $context["resto"], "fridayClose", [], "any", false, false, false, 151), "i"), "html", null, true);
echo "</p>\";
";
} else {
// line 153
echo " contentInfo+= \" FERMÉ\";
";
}
// line 155
echo "
contentInfo+= \"<p>Samedi : \";
";
// line 157
if (( !(null === twig_get_attribute($this->env, $this->source, $context["resto"], "saturdayOpen", [], "any", false, false, false, 157)) && !(null === twig_get_attribute($this->env, $this->source, $context["resto"], "saturdayClose", [], "any", false, false, false, 157)))) {
// line 158
echo " contentInfo+= \"";
echo twig_escape_filter($this->env, twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, $context["resto"], "saturdayOpen", [], "any", false, false, false, 158), "H"), "html", null, true);
echo "h";
echo twig_escape_filter($this->env, twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, $context["resto"], "saturdayOpen", [], "any", false, false, false, 158), "i"), "html", null, true);
echo " - ";
echo twig_escape_filter($this->env, twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, $context["resto"], "saturdayClose", [], "any", false, false, false, 158), "H"), "html", null, true);
echo "h";
echo twig_escape_filter($this->env, twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, $context["resto"], "saturdayClose", [], "any", false, false, false, 158), "i"), "html", null, true);
echo "</p>\";
";
} else {
// line 160
echo " contentInfo+= \" FERMÉ\";
";
}
// line 162
echo "
contentInfo+= \"<p>Dimanche : \";
";
// line 164
if (( !(null === twig_get_attribute($this->env, $this->source, $context["resto"], "sundayOpen", [], "any", false, false, false, 164)) && !(null === twig_get_attribute($this->env, $this->source, $context["resto"], "sundayClose", [], "any", false, false, false, 164)))) {
// line 165
echo " contentInfo+= \"";
echo twig_escape_filter($this->env, twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, $context["resto"], "sundayOpen", [], "any", false, false, false, 165), "H"), "html", null, true);
echo "h";
echo twig_escape_filter($this->env, twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, $context["resto"], "sundayOpen", [], "any", false, false, false, 165), "i"), "html", null, true);
echo " - ";
echo twig_escape_filter($this->env, twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, $context["resto"], "sundayClose", [], "any", false, false, false, 165), "H"), "html", null, true);
echo "h";
echo twig_escape_filter($this->env, twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, $context["resto"], "sundayClose", [], "any", false, false, false, 165), "i"), "html", null, true);
echo "</p>\";
";
} else {
// line 167
echo " contentInfo+= \" FERMÉ\";
";
}
// line 169
echo "
contentInfo+= \"</div>\";
infowindow = new google.maps.InfoWindow({
content: contentInfo,
});
infowindow.open({
anchor: marker";
// line 178
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["loop"], "index0", [], "any", false, false, false, 178), "html", null, true);
echo ",
map,
shouldFocus: false,
});
});
";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['length'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['resto'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 186
echo "
}
</script>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "front_otacos/promo.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
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,);
}
public function getSourceContext()
{
return new Source("{% extends 'base.html.twig' %}
{% block title %}{{'menu.promodumoment'|trans}}{% endblock %}
{% block body %}
<style>
.example-wrapper { margin: 1em auto; max-width: 800px; width: 95%; font: 18px/1.5 sans-serif; }
.example-wrapper code { background: #F5F5F5; padding: 2px 6px; }
.styledMap {
padding: 5px 10px;
}
.gm-style-iw {
border: 2px solid #ff7200;
}
.styledMap h1{
color: #ff7200;
font-size: 1.4em;
text-transform: uppercase;
font-family: 'heavitas';
font-weight:normal;
}
.styledMap p{
font-size: 1.2em;
margin:0;
font-family: 'Josefin Sans',sans-serif;
}
</style>
<div class=\"promo\">
<div class=\"wrapper\">
<ul class=\"breadcrumb\">
<li><a href=\"{{path('home')}}\">{{'accueil'|trans}}</a></li>
<li>{{'menu.promodumoment'|trans}}</li>
</ul>
<h1 class=\"titreDualFont\"><div><span>Promo</span> du moment</div></h1>
<p class=\"chapo\">
<b>{{promo.titre}}</b>
</p>
<div class=\"stand2col\">
<div class=\"promo-visuel\">
<img src=\"/img/promo-moment.png\" />
</div>
<div class=\"promo-description\">
<p>{{promo.chapo|nl2br}}</p>
<h3>{{'promo.1'|trans}} :</h3>
{{promo.texte|raw}}
<p class=\"promo-description-mentions\">
{{promo.mentions|nl2br}}
</p>
</div>
</div>
<h2>{{'promo.2'|trans}}</h2>
<div class=\"map\">
<div id=\"map\" style=\"width:100%;height:100%;\"></div>
</div>
</div>
</div>
<script src=\"https://maps.googleapis.com/maps/api/js?key=AIzaSyDdDbL-0mCap-U8hE8UrIktLcvdxYOXWVg&callback=initMap&v=weekly\"
async
></script>
{% endblock %}
{% block javascripts %}
<script>
let map;
const image = \"{{ app.request.schemeAndHttpHost ~ app.request.baseUrl }}/img/markermap.svg\";
function initMap() {
map = new google.maps.Map(document.getElementById(\"map\"), {
mapId: \"2262022a4ce1b38\",
center: { lat: 48.85596, lng: 2.35452 },
zoom: 14,
});
let infowindow;
{% for resto in restos %}
let marker{{loop.index0}} = new google.maps.Marker({
position: { lat: {{resto.lat}}, lng: {{resto.lng}}},
map,
title: '{{resto.name|escape('js')}}',
icon: image,
});
marker{{loop.index0}}.addListener(\"click\", () => {
if(infowindow) infowindow.close();
let contentInfo = \"<div class=\\\"styledMap\\\">\";
contentInfo+= \"<h1>{{resto.name|escape('js')}}</h1>\";
contentInfo+= \"<p><b>{{resto.address|escape('js')}}</b></p>\";
{% if resto.address2 is not empty %}
contentInfo+= \"<p><b>{{resto.address2|escape('js')}}</b></p>\";
{% endif %}
contentInfo+= \"<p><b>{{resto.zipcode|escape('js')}} {{resto.city|escape('js')}}</b></p>\";
{% if resto.phone is not null %}
contentInfo+= \"<p>Tél. <a href=\\\"tel:{{resto.phone}}\\\">{{resto.phone}}</a></p>\";
{% endif %}
contentInfo+= \"<br/><p>Lundi : \";
{% if resto.mondayOpen is not null and resto.mondayClose is not null %}
contentInfo+= \"{{resto.mondayOpen|date('H')}}h{{resto.mondayOpen|date('i')}} - {{resto.mondayClose|date('H')}}h{{resto.mondayClose|date('i')}}</p>\";
{% else %}
contentInfo+= \" FERMÉ\";
{% endif %}
contentInfo+= \"<p>Mardi : \";
{% if resto.tuesdayOpen is not null and resto.tuesdayClose is not null %}
contentInfo+= \"{{resto.tuesdayOpen|date('H')}}h{{resto.tuesdayOpen|date('i')}} - {{resto.tuesdayClose|date('H')}}h{{resto.tuesdayClose|date('i')}}</p>\";
{% else %}
contentInfo+= \" FERMÉ\";
{% endif %}
contentInfo+= \"<p>Mercredi : \";
{% if resto.wednesdayOpen is not null and resto.wednesdayClose is not null %}
contentInfo+= \"{{resto.wednesdayOpen|date('H')}}h{{resto.wednesdayOpen|date('i')}} - {{resto.wednesdayClose|date('H')}}h{{resto.wednesdayClose|date('i')}}</p>\";
{% else %}
contentInfo+= \" FERMÉ\";
{% endif %}
contentInfo+= \"<p>Jeudi : \";
{% if resto.thursdayOpen is not null and resto.thursdayClose is not null %}
contentInfo+= \"{{resto.thursdayOpen|date('H')}}h{{resto.thursdayOpen|date('i')}} - {{resto.thursdayClose|date('H')}}h{{resto.thursdayClose|date('i')}}</p>\";
{% else %}
contentInfo+= \" FERMÉ\";
{% endif %}
contentInfo+= \"<p>Vendredi : \";
{% if resto.fridayOpen is not null and resto.fridayClose is not null %}
contentInfo+= \"{{resto.fridayOpen|date('H')}}h{{resto.fridayOpen|date('i')}} - {{resto.fridayClose|date('H')}}h{{resto.fridayClose|date('i')}}</p>\";
{% else %}
contentInfo+= \" FERMÉ\";
{% endif %}
contentInfo+= \"<p>Samedi : \";
{% if resto.saturdayOpen is not null and resto.saturdayClose is not null %}
contentInfo+= \"{{resto.saturdayOpen|date('H')}}h{{resto.saturdayOpen|date('i')}} - {{resto.saturdayClose|date('H')}}h{{resto.saturdayClose|date('i')}}</p>\";
{% else %}
contentInfo+= \" FERMÉ\";
{% endif %}
contentInfo+= \"<p>Dimanche : \";
{% if resto.sundayOpen is not null and resto.sundayClose is not null %}
contentInfo+= \"{{resto.sundayOpen|date('H')}}h{{resto.sundayOpen|date('i')}} - {{resto.sundayClose|date('H')}}h{{resto.sundayClose|date('i')}}</p>\";
{% else %}
contentInfo+= \" FERMÉ\";
{% endif %}
contentInfo+= \"</div>\";
infowindow = new google.maps.InfoWindow({
content: contentInfo,
});
infowindow.open({
anchor: marker{{loop.index0}},
map,
shouldFocus: false,
});
});
{% endfor %}
}
</script>
{% endblock %}
", "front_otacos/promo.html.twig", "/home/otacostest/www/templates/front_otacos/promo.html.twig");
}
}