var/cache/dev/twig/61/61bd27260bf685307b81b7b5bbeeab94.php line 88

  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. /* magasins/details.html.twig */
  14. class __TwigTemplate_f75dbf7ed1c52851cc49c0d245df1ad2 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_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  36.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "magasins/details.html.twig"));
  37.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  38.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "magasins/details.html.twig"));
  39.         $this->parent = $this->loadTemplate("base.html.twig", "magasins/details.html.twig", 1);
  40.         $this->parent->display($context, array_merge($this->blocks, $blocks));
  41.         
  42.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  43.         
  44.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  45.     }
  46.     // line 3
  47.     public function block_title($context, array $blocks = [])
  48.     {
  49.         $macros = $this->macros;
  50.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  51.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
  52.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  53.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
  54.         
  55.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  56.         
  57.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  58.     }
  59.     // line 5
  60.     public function block_body($context, array $blocks = [])
  61.     {
  62.         $macros = $this->macros;
  63.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  64.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
  65.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  66.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
  67.         // line 6
  68.         echo "\t";
  69.         echo twig_include($this->env, $context, "partials/base/_title-section.html.twig", ["name" => twig_get_attribute($this->env, $this->source, (isset($context["magasins"]) || array_key_exists("magasins", $context) ? $context["magasins"] : (function () { throw new RuntimeError('Variable "magasins" does not exist.', 6, $this->source); })()), "title", [], "any", false, false, false, 6)]);
  70.         echo "
  71. \t<section class=\"ec-page-content section-space-p\">
  72. \t\t<div class=\"container\">
  73. \t\t\t<div class=\"row\">
  74. \t\t\t\t<div class=\"ec-common-wrapper\">
  75. \t\t\t\t\t<div class=\"row\">
  76. \t\t\t\t\t\t<div class=\"col-md-6 ec-cms-block ec-abcms-block text-center\">
  77. \t\t\t\t\t\t\t<div class=\"ec-cms-block-inner\">
  78. \t\t\t\t\t\t\t\t<img class=\"a-img\" src=\"";
  79.         // line 14
  80.         echo twig_escape_filter($this->env, $this->env->getRuntime('Vich\UploaderBundle\Twig\Extension\UploaderExtensionRuntime')->asset((isset($context["magasins"]) || array_key_exists("magasins", $context) ? $context["magasins"] : (function () { throw new RuntimeError('Variable "magasins" does not exist.', 14, $this->source); })())), "html", null, true);
  81.         echo "\" alt=\"about\" style=\"width: 50%!important;\">
  82. \t\t\t\t\t\t\t</div>
  83. \t\t\t\t\t\t</div>
  84. \t\t\t\t\t\t<div class=\"col-md-6 ec-cms-block ec-abcms-block\">
  85. \t\t\t\t\t\t\t<div class=\"ec-cms-block-inner\">
  86. \t\t\t\t\t\t\t\t<p>";
  87.         // line 19
  88.         echo twig_get_attribute($this->env, $this->source, (isset($context["magasins"]) || array_key_exists("magasins", $context) ? $context["magasins"] : (function () { throw new RuntimeError('Variable "magasins" does not exist.', 19, $this->source); })()), "description", [], "any", false, false, false, 19);
  89.         echo "</p>
  90. \t\t\t\t\t\t\t\t<p class=\"bold\">Localisation : <span class=\"bold\">";
  91.         // line 20
  92.         echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["magasins"]) || array_key_exists("magasins", $context) ? $context["magasins"] : (function () { throw new RuntimeError('Variable "magasins" does not exist.', 20, $this->source); })()), "localisation", [], "any", false, false, false, 20), "html", null, true);
  93.         echo "</span></p>
  94. \t\t\t\t\t\t\t\t<p>Téléphone : <span class=\"bold\">";
  95.         // line 21
  96.         echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["magasins"]) || array_key_exists("magasins", $context) ? $context["magasins"] : (function () { throw new RuntimeError('Variable "magasins" does not exist.', 21, $this->source); })()), "telephone", [], "any", false, false, false, 21), "html", null, true);
  97.         echo "</span></p>
  98. \t\t\t\t\t\t\t\t<p>Ouvert du lundi à dimanche : <span class=\"bold\">";
  99.         // line 22
  100.         echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["magasins"]) || array_key_exists("magasins", $context) ? $context["magasins"] : (function () { throw new RuntimeError('Variable "magasins" does not exist.', 22, $this->source); })()), "horaire", [], "any", false, false, false, 22), "html", null, true);
  101.         echo "</span></p>
  102. \t\t\t\t\t\t\t</div>
  103. \t\t\t\t\t\t</div>
  104. \t\t\t\t\t</div>
  105. \t\t\t\t</div>
  106. \t\t\t</div>
  107. \t\t\t";
  108.         // line 28
  109.         if (((( !(null === twig_get_attribute($this->env, $this->source, (isset($context["magasins"]) || array_key_exists("magasins", $context) ? $context["magasins"] : (function () { throw new RuntimeError('Variable "magasins" does not exist.', 28, $this->source); })()), "image1", [], "any", false, false, false, 28)) &&  !(null === twig_get_attribute($this->env, $this->source, (isset($context["magasins"]) || array_key_exists("magasins", $context) ? $context["magasins"] : (function () { throw new RuntimeError('Variable "magasins" does not exist.', 28, $this->source); })()), "image2", [], "any", false, false, false, 28))) &&  !(null === twig_get_attribute($this->env, $this->source, (isset($context["magasins"]) || array_key_exists("magasins", $context) ? $context["magasins"] : (function () { throw new RuntimeError('Variable "magasins" does not exist.', 28, $this->source); })()), "image3", [], "any", false, false, false, 28))) &&  !(null === twig_get_attribute($this->env, $this->source, (isset($context["magasins"]) || array_key_exists("magasins", $context) ? $context["magasins"] : (function () { throw new RuntimeError('Variable "magasins" does not exist.', 28, $this->source); })()), "image4", [], "any", false, false, false, 28)))) {
  110.             // line 29
  111.             echo "\t\t\t\t<div class=\"row\" style=\"margin-top: 50px;\">
  112. \t\t\t\t\t<div class=\"col-md-3 ec-cms-block ec-abcms-block text-center\">
  113. \t\t\t\t\t\t<div class=\"ec-cms-block-inner\">
  114. \t\t\t\t\t\t\t<img class=\"a-img\" src=\"/images/magasins/";
  115.             // line 32
  116.             echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["magasins"]) || array_key_exists("magasins", $context) ? $context["magasins"] : (function () { throw new RuntimeError('Variable "magasins" does not exist.', 32, $this->source); })()), "image1", [], "any", false, false, false, 32), "html", null, true);
  117.             echo "\" alt=\"about\">
  118. \t\t\t\t\t\t</div>
  119. \t\t\t\t\t</div>
  120. \t\t\t\t\t<div class=\"col-md-3 ec-cms-block ec-abcms-block text-center\">
  121. \t\t\t\t\t\t<div class=\"ec-cms-block-inner\">
  122. \t\t\t\t\t\t\t<img class=\"a-img\" src=\"/images/magasins/";
  123.             // line 37
  124.             echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["magasins"]) || array_key_exists("magasins", $context) ? $context["magasins"] : (function () { throw new RuntimeError('Variable "magasins" does not exist.', 37, $this->source); })()), "image2", [], "any", false, false, false, 37), "html", null, true);
  125.             echo "\" alt=\"about\">
  126. \t\t\t\t\t\t</div>
  127. \t\t\t\t\t</div>
  128. \t\t\t\t\t<div class=\"col-md-3 ec-cms-block ec-abcms-block text-center\">
  129. \t\t\t\t\t\t<div class=\"ec-cms-block-inner\">
  130. \t\t\t\t\t\t\t<img class=\"a-img\" src=\"/images/magasins/";
  131.             // line 42
  132.             echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["magasins"]) || array_key_exists("magasins", $context) ? $context["magasins"] : (function () { throw new RuntimeError('Variable "magasins" does not exist.', 42, $this->source); })()), "image3", [], "any", false, false, false, 42), "html", null, true);
  133.             echo "\" alt=\"about\">
  134. \t\t\t\t\t\t</div>
  135. \t\t\t\t\t</div>
  136. \t\t\t\t\t<div class=\"col-md-3 ec-cms-block ec-abcms-block text-center\">
  137. \t\t\t\t\t\t<div class=\"ec-cms-block-inner\">
  138. \t\t\t\t\t\t\t<img class=\"a-img\" src=\"/images/magasins/";
  139.             // line 47
  140.             echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["magasins"]) || array_key_exists("magasins", $context) ? $context["magasins"] : (function () { throw new RuntimeError('Variable "magasins" does not exist.', 47, $this->source); })()), "image4", [], "any", false, false, false, 47), "html", null, true);
  141.             echo "\" alt=\"about\">
  142. \t\t\t\t\t\t</div>
  143. \t\t\t\t\t</div>
  144. \t\t\t\t</div>
  145. \t\t\t";
  146.         } else {
  147.             // line 52
  148.             echo "\t\t\t<div class=\"row\" style=\"margin-top: 50px;\">
  149. \t\t\t\t<div class=\"col-md-12\">
  150. \t\t\t\t\t<p style=\"text-align: center;\">Pas d'images dans la gallérie</p>
  151. \t\t\t\t</div>
  152. \t\t\t</div>
  153. \t\t\t";
  154.         }
  155.         // line 58
  156.         echo "\t\t</div>
  157. \t</section>
  158. ";
  159.         
  160.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  161.         
  162.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  163.     }
  164.     /**
  165.      * @codeCoverageIgnore
  166.      */
  167.     public function getTemplateName()
  168.     {
  169.         return "magasins/details.html.twig";
  170.     }
  171.     /**
  172.      * @codeCoverageIgnore
  173.      */
  174.     public function isTraitable()
  175.     {
  176.         return false;
  177.     }
  178.     /**
  179.      * @codeCoverageIgnore
  180.      */
  181.     public function getDebugInfo()
  182.     {
  183.         return array (  175 => 58,  167 => 52,  159 => 47,  151 => 42,  143 => 37,  135 => 32,  130 => 29,  128 => 28,  119 => 22,  115 => 21,  111 => 20,  107 => 19,  99 => 14,  87 => 6,  77 => 5,  59 => 3,  36 => 1,);
  184.     }
  185.     public function getSourceContext()
  186.     {
  187.         return new Source("{% extends 'base.html.twig' %}
  188. {% block title %}{% endblock %}
  189. {% block body %}
  190. \t{{include('partials/base/_title-section.html.twig', {'name': magasins.title})}}
  191. \t<section class=\"ec-page-content section-space-p\">
  192. \t\t<div class=\"container\">
  193. \t\t\t<div class=\"row\">
  194. \t\t\t\t<div class=\"ec-common-wrapper\">
  195. \t\t\t\t\t<div class=\"row\">
  196. \t\t\t\t\t\t<div class=\"col-md-6 ec-cms-block ec-abcms-block text-center\">
  197. \t\t\t\t\t\t\t<div class=\"ec-cms-block-inner\">
  198. \t\t\t\t\t\t\t\t<img class=\"a-img\" src=\"{{ vich_uploader_asset(magasins) }}\" alt=\"about\" style=\"width: 50%!important;\">
  199. \t\t\t\t\t\t\t</div>
  200. \t\t\t\t\t\t</div>
  201. \t\t\t\t\t\t<div class=\"col-md-6 ec-cms-block ec-abcms-block\">
  202. \t\t\t\t\t\t\t<div class=\"ec-cms-block-inner\">
  203. \t\t\t\t\t\t\t\t<p>{{magasins.description | raw}}</p>
  204. \t\t\t\t\t\t\t\t<p class=\"bold\">Localisation : <span class=\"bold\">{{magasins.localisation}}</span></p>
  205. \t\t\t\t\t\t\t\t<p>Téléphone : <span class=\"bold\">{{magasins.telephone}}</span></p>
  206. \t\t\t\t\t\t\t\t<p>Ouvert du lundi à dimanche : <span class=\"bold\">{{magasins.horaire}}</span></p>
  207. \t\t\t\t\t\t\t</div>
  208. \t\t\t\t\t\t</div>
  209. \t\t\t\t\t</div>
  210. \t\t\t\t</div>
  211. \t\t\t</div>
  212. \t\t\t{% if magasins.image1 is not none and magasins.image2 is not none and magasins.image3 is not none and magasins.image4 is not none%}
  213. \t\t\t\t<div class=\"row\" style=\"margin-top: 50px;\">
  214. \t\t\t\t\t<div class=\"col-md-3 ec-cms-block ec-abcms-block text-center\">
  215. \t\t\t\t\t\t<div class=\"ec-cms-block-inner\">
  216. \t\t\t\t\t\t\t<img class=\"a-img\" src=\"/images/magasins/{{magasins.image1}}\" alt=\"about\">
  217. \t\t\t\t\t\t</div>
  218. \t\t\t\t\t</div>
  219. \t\t\t\t\t<div class=\"col-md-3 ec-cms-block ec-abcms-block text-center\">
  220. \t\t\t\t\t\t<div class=\"ec-cms-block-inner\">
  221. \t\t\t\t\t\t\t<img class=\"a-img\" src=\"/images/magasins/{{magasins.image2}}\" alt=\"about\">
  222. \t\t\t\t\t\t</div>
  223. \t\t\t\t\t</div>
  224. \t\t\t\t\t<div class=\"col-md-3 ec-cms-block ec-abcms-block text-center\">
  225. \t\t\t\t\t\t<div class=\"ec-cms-block-inner\">
  226. \t\t\t\t\t\t\t<img class=\"a-img\" src=\"/images/magasins/{{magasins.image3}}\" alt=\"about\">
  227. \t\t\t\t\t\t</div>
  228. \t\t\t\t\t</div>
  229. \t\t\t\t\t<div class=\"col-md-3 ec-cms-block ec-abcms-block text-center\">
  230. \t\t\t\t\t\t<div class=\"ec-cms-block-inner\">
  231. \t\t\t\t\t\t\t<img class=\"a-img\" src=\"/images/magasins/{{magasins.image4}}\" alt=\"about\">
  232. \t\t\t\t\t\t</div>
  233. \t\t\t\t\t</div>
  234. \t\t\t\t</div>
  235. \t\t\t{% else %}
  236. \t\t\t<div class=\"row\" style=\"margin-top: 50px;\">
  237. \t\t\t\t<div class=\"col-md-12\">
  238. \t\t\t\t\t<p style=\"text-align: center;\">Pas d'images dans la gallérie</p>
  239. \t\t\t\t</div>
  240. \t\t\t</div>
  241. \t\t\t{% endif %}
  242. \t\t</div>
  243. \t</section>
  244. {% endblock %}
  245. ", "magasins/details.html.twig", "/home/lode2496/public_html/templates/magasins/details.html.twig");
  246.     }
  247. }