var/cache/dev/twig/5c/5c6856a482c7363386d15511e12b7b5255a58dac291b090519b5fa93da642789.php line 78

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/derniere-ouverture.html.twig */
  14. class __TwigTemplate_455c415736c93311533aec41402f88089760349135a20e33fda16783b96d4d07 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.         ];
  26.     }
  27.     protected function doGetParent(array $context)
  28.     {
  29.         // line 1
  30.         return "base.html.twig";
  31.     }
  32.     protected function doDisplay(array $context, array $blocks = [])
  33.     {
  34.         $macros $this->macros;
  35.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  36.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""front_otacos/derniere-ouverture.html.twig"));
  37.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  38.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""front_otacos/derniere-ouverture.html.twig"));
  39.         $this->parent $this->loadTemplate("base.html.twig""front_otacos/derniere-ouverture.html.twig"1);
  40.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  41.         
  42.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  43.         
  44.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  45.     }
  46.     // line 3
  47.     public function block_title($context, array $blocks = [])
  48.     {
  49.         $macros $this->macros;
  50.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  51.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  52.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  53.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  54.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("menu.derniereouverture"), "html"nulltrue);
  55.         
  56.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  57.         
  58.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  59.     }
  60.     // line 5
  61.     public function block_body($context, array $blocks = [])
  62.     {
  63.         $macros $this->macros;
  64.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  65.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  66.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  67.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  68.         // line 6
  69.         echo "
  70.     <div class=\"ouverture\">
  71.         <div class=\"wrapper\">
  72.             <ul class=\"breadcrumb\">
  73.                 <li><a href=\"";
  74.         // line 10
  75.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("home");
  76.         echo "\">";
  77.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("accueil"), "html"nulltrue);
  78.         echo "</a></li>
  79.                 <li>";
  80.         // line 11
  81.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("menu.derniereouverture"), "html"nulltrue);
  82.         echo "</li>
  83.             </ul>
  84.             <h1 class=\"titreDualFont\"><div>";
  85.         // line 14
  86.         echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("ouverture.titre");
  87.         echo "</h1>
  88.             <p class=\"chapo\">
  89.                 <b>";
  90.         // line 17
  91.         echo twig_escape_filter($this->envtwig_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"falsefalsefalse17), "html"nulltrue);
  92.         echo "</b>
  93.             </p>
  94.             <div class=\"ouverture-fiche\">
  95.                 <div class=\"ouverture-fiche-photo\"><img src=\"/img/";
  96.         // line 21
  97.         echo twig_escape_filter($this->envtwig_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"falsefalsefalse21), "html"nulltrue);
  98.         echo "\"  /></div>
  99.                 
  100.                 <h2>";
  101.         // line 23
  102.         echo twig_nl2br(twig_escape_filter($this->envtwig_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"falsefalsefalse23), "html"nulltrue));
  103.         echo "</h2>
  104.                 ";
  105.         // line 24
  106.         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"falsefalsefalse24);
  107.         echo "
  108.                 <ul class=\"ouverture-fiche-social\">
  109.                     <li class=\"insta\"><a href=\"https://www.instagram.com/";
  110.         // line 27
  111.         echo twig_escape_filter($this->envtwig_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"falsefalsefalse27), "html"nulltrue);
  112.         echo "\" target=\"_blank\">";
  113.         echo twig_escape_filter($this->envtwig_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"falsefalsefalse27), "html"nulltrue);
  114.         echo "</a></li>
  115.                     <li class=\"fb\"><a href=\"\">";
  116.         // line 28
  117.         echo twig_escape_filter($this->envtwig_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"falsefalsefalse28), "html"nulltrue);
  118.         echo "</a></li>
  119.                 </ul>
  120.                 <div>         
  121.                     ";
  122.         // line 31
  123.         if ((=== 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"falsefalsefalse31), true))) {
  124.             // line 32
  125.             echo "                    <img src=\"/img/map-drive.png\" />
  126.                     ";
  127.         }
  128.         // line 34
  129.         echo "                    ";
  130.         if ((=== 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"falsefalsefalse34), true))) {
  131.             // line 35
  132.             echo "                    <img src=\"/img/map-delivery.png\" />
  133.                     ";
  134.         }
  135.         // line 37
  136.         echo "                    ";
  137.         if ((=== 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"falsefalsefalse37), true))) {
  138.             // line 38
  139.             echo "                    <img src=\"/img/map-collect.png\" />
  140.                     ";
  141.         }
  142.         // line 40
  143.         echo "                    ";
  144.         if ((=== 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"falsefalsefalse40), true))) {
  145.             // line 41
  146.             echo "                    <img src=\"/img/map-borne.png\" />
  147.                     ";
  148.         }
  149.         // line 43
  150.         echo "                </div>
  151.             </div>
  152.             
  153.         </div>
  154.         
  155.     </div>
  156. ";
  157.         
  158.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  159.         
  160.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  161.     }
  162.     public function getTemplateName()
  163.     {
  164.         return "front_otacos/derniere-ouverture.html.twig";
  165.     }
  166.     public function isTraitable()
  167.     {
  168.         return false;
  169.     }
  170.     public function getDebugInfo()
  171.     {
  172.         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,);
  173.     }
  174.     public function getSourceContext()
  175.     {
  176.         return new Source("{% extends 'base.html.twig' %}
  177. {% block title %}{{'menu.derniereouverture'|trans}}{% endblock %}
  178. {% block body %}
  179.     <div class=\"ouverture\">
  180.         <div class=\"wrapper\">
  181.             <ul class=\"breadcrumb\">
  182.                 <li><a href=\"{{path('home')}}\">{{'accueil'|trans}}</a></li>
  183.                 <li>{{'menu.derniereouverture'|trans}}</li>
  184.             </ul>
  185.             <h1 class=\"titreDualFont\"><div>{{'ouverture.titre'|trans|raw}}</h1>
  186.             <p class=\"chapo\">
  187.                 <b>{{ouverture.titre}}</b>
  188.             </p>
  189.             <div class=\"ouverture-fiche\">
  190.                 <div class=\"ouverture-fiche-photo\"><img src=\"/img/{{ouverture.media}}\"  /></div>
  191.                 
  192.                 <h2>{{ouverture.accroche|nl2br}}</h2>
  193.                 {{ouverture.texte|raw}}
  194.                 <ul class=\"ouverture-fiche-social\">
  195.                     <li class=\"insta\"><a href=\"https://www.instagram.com/{{ouverture.instagram}}\" target=\"_blank\">{{ouverture.instagram}}</a></li>
  196.                     <li class=\"fb\"><a href=\"\">{{ouverture.facebook}}</a></li>
  197.                 </ul>
  198.                 <div>         
  199.                     {% if ouverture.drive == true %}
  200.                     <img src=\"/img/map-drive.png\" />
  201.                     {% endif %}
  202.                     {% if ouverture.livraison == true %}
  203.                     <img src=\"/img/map-delivery.png\" />
  204.                     {% endif %}
  205.                     {% if ouverture.clickandcollect == true %}
  206.                     <img src=\"/img/map-collect.png\" />
  207.                     {% endif %}
  208.                     {% if ouverture.borne == true %}
  209.                     <img src=\"/img/map-borne.png\" />
  210.                     {% endif %}
  211.                 </div>
  212.             </div>
  213.             
  214.         </div>
  215.         
  216.     </div>
  217. {% endblock %}
  218. ""front_otacos/derniere-ouverture.html.twig""/home/otacostest/www/templates/front_otacos/derniere-ouverture.html.twig");
  219.     }
  220. }