<?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/derniere-ouverture.html.twig */
class __TwigTemplate_455c415736c93311533aec41402f88089760349135a20e33fda16783b96d4d07 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'],
];
}
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/derniere-ouverture.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/derniere-ouverture.html.twig"));
$this->parent = $this->loadTemplate("base.html.twig", "front_otacos/derniere-ouverture.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.derniereouverture"), "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 "
<div class=\"ouverture\">
<div class=\"wrapper\">
<ul class=\"breadcrumb\">
<li><a href=\"";
// line 10
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 11
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("menu.derniereouverture"), "html", null, true);
echo "</li>
</ul>
<h1 class=\"titreDualFont\"><div>";
// line 14
echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("ouverture.titre");
echo "</h1>
<p class=\"chapo\">
<b>";
// line 17
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["ouverture"]) || array_key_exists("ouverture", $context) ? $context["ouverture"] : (function () { throw new RuntimeError('Variable "ouverture" does not exist.', 17, $this->source); })()), "titre", [], "any", false, false, false, 17), "html", null, true);
echo "</b>
</p>
<div class=\"ouverture-fiche\">
<div class=\"ouverture-fiche-photo\"><img src=\"/img/";
// line 21
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["ouverture"]) || array_key_exists("ouverture", $context) ? $context["ouverture"] : (function () { throw new RuntimeError('Variable "ouverture" does not exist.', 21, $this->source); })()), "media", [], "any", false, false, false, 21), "html", null, true);
echo "\" /></div>
<h2>";
// line 23
echo twig_nl2br(twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["ouverture"]) || array_key_exists("ouverture", $context) ? $context["ouverture"] : (function () { throw new RuntimeError('Variable "ouverture" does not exist.', 23, $this->source); })()), "accroche", [], "any", false, false, false, 23), "html", null, true));
echo "</h2>
";
// line 24
echo twig_get_attribute($this->env, $this->source, (isset($context["ouverture"]) || array_key_exists("ouverture", $context) ? $context["ouverture"] : (function () { throw new RuntimeError('Variable "ouverture" does not exist.', 24, $this->source); })()), "texte", [], "any", false, false, false, 24);
echo "
<ul class=\"ouverture-fiche-social\">
<li class=\"insta\"><a href=\"https://www.instagram.com/";
// line 27
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["ouverture"]) || array_key_exists("ouverture", $context) ? $context["ouverture"] : (function () { throw new RuntimeError('Variable "ouverture" does not exist.', 27, $this->source); })()), "instagram", [], "any", false, false, false, 27), "html", null, true);
echo "\" target=\"_blank\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["ouverture"]) || array_key_exists("ouverture", $context) ? $context["ouverture"] : (function () { throw new RuntimeError('Variable "ouverture" does not exist.', 27, $this->source); })()), "instagram", [], "any", false, false, false, 27), "html", null, true);
echo "</a></li>
<li class=\"fb\"><a href=\"\">";
// line 28
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["ouverture"]) || array_key_exists("ouverture", $context) ? $context["ouverture"] : (function () { throw new RuntimeError('Variable "ouverture" does not exist.', 28, $this->source); })()), "facebook", [], "any", false, false, false, 28), "html", null, true);
echo "</a></li>
</ul>
<div>
";
// line 31
if ((0 === twig_compare(twig_get_attribute($this->env, $this->source, (isset($context["ouverture"]) || array_key_exists("ouverture", $context) ? $context["ouverture"] : (function () { throw new RuntimeError('Variable "ouverture" does not exist.', 31, $this->source); })()), "drive", [], "any", false, false, false, 31), true))) {
// line 32
echo " <img src=\"/img/map-drive.png\" />
";
}
// line 34
echo " ";
if ((0 === twig_compare(twig_get_attribute($this->env, $this->source, (isset($context["ouverture"]) || array_key_exists("ouverture", $context) ? $context["ouverture"] : (function () { throw new RuntimeError('Variable "ouverture" does not exist.', 34, $this->source); })()), "livraison", [], "any", false, false, false, 34), true))) {
// line 35
echo " <img src=\"/img/map-delivery.png\" />
";
}
// line 37
echo " ";
if ((0 === twig_compare(twig_get_attribute($this->env, $this->source, (isset($context["ouverture"]) || array_key_exists("ouverture", $context) ? $context["ouverture"] : (function () { throw new RuntimeError('Variable "ouverture" does not exist.', 37, $this->source); })()), "clickandcollect", [], "any", false, false, false, 37), true))) {
// line 38
echo " <img src=\"/img/map-collect.png\" />
";
}
// line 40
echo " ";
if ((0 === twig_compare(twig_get_attribute($this->env, $this->source, (isset($context["ouverture"]) || array_key_exists("ouverture", $context) ? $context["ouverture"] : (function () { throw new RuntimeError('Variable "ouverture" does not exist.', 40, $this->source); })()), "borne", [], "any", false, false, false, 40), true))) {
// line 41
echo " <img src=\"/img/map-borne.png\" />
";
}
// line 43
echo " </div>
</div>
</div>
</div>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "front_otacos/derniere-ouverture.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 173 => 43, 169 => 41, 166 => 40, 162 => 38, 159 => 37, 155 => 35, 152 => 34, 148 => 32, 146 => 31, 140 => 28, 134 => 27, 128 => 24, 124 => 23, 119 => 21, 112 => 17, 106 => 14, 100 => 11, 94 => 10, 88 => 6, 78 => 5, 59 => 3, 36 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends 'base.html.twig' %}
{% block title %}{{'menu.derniereouverture'|trans}}{% endblock %}
{% block body %}
<div class=\"ouverture\">
<div class=\"wrapper\">
<ul class=\"breadcrumb\">
<li><a href=\"{{path('home')}}\">{{'accueil'|trans}}</a></li>
<li>{{'menu.derniereouverture'|trans}}</li>
</ul>
<h1 class=\"titreDualFont\"><div>{{'ouverture.titre'|trans|raw}}</h1>
<p class=\"chapo\">
<b>{{ouverture.titre}}</b>
</p>
<div class=\"ouverture-fiche\">
<div class=\"ouverture-fiche-photo\"><img src=\"/img/{{ouverture.media}}\" /></div>
<h2>{{ouverture.accroche|nl2br}}</h2>
{{ouverture.texte|raw}}
<ul class=\"ouverture-fiche-social\">
<li class=\"insta\"><a href=\"https://www.instagram.com/{{ouverture.instagram}}\" target=\"_blank\">{{ouverture.instagram}}</a></li>
<li class=\"fb\"><a href=\"\">{{ouverture.facebook}}</a></li>
</ul>
<div>
{% if ouverture.drive == true %}
<img src=\"/img/map-drive.png\" />
{% endif %}
{% if ouverture.livraison == true %}
<img src=\"/img/map-delivery.png\" />
{% endif %}
{% if ouverture.clickandcollect == true %}
<img src=\"/img/map-collect.png\" />
{% endif %}
{% if ouverture.borne == true %}
<img src=\"/img/map-borne.png\" />
{% endif %}
</div>
</div>
</div>
</div>
{% endblock %}
", "front_otacos/derniere-ouverture.html.twig", "/home/otacostest/www/templates/front_otacos/derniere-ouverture.html.twig");
}
}