var/cache/dev/twig/d2/d2fc1a2e9c9667d1e5b2213ec2ac8f81cc5a479d0672ae3392f5020c13c7eab5.php line 33

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. /* bundles/BitBagSyliusCmsPlugin/Shop/Page/templates/_structure.html.twig */
  14. class __TwigTemplate_0b3c6bdbb6c0217973ea8eee942ab9ce13d597b74385a93a867cbaaa83ea08b3 extends \Twig\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->parent false;
  23.         $this->blocks = [
  24.         ];
  25.     }
  26.     protected function doDisplay(array $context, array $blocks = [])
  27.     {
  28.         $macros $this->macros;
  29.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  30.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""bundles/BitBagSyliusCmsPlugin/Shop/Page/templates/_structure.html.twig"));
  31.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  32.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""bundles/BitBagSyliusCmsPlugin/Shop/Page/templates/_structure.html.twig"));
  33.         // line 1
  34.         echo "<div class=\"structure-details\">
  35.     <div class=\"container\">
  36.         ";
  37.         // line 3
  38.         $this->loadTemplate("common/_breadcrumb-structure.html.twig""bundles/BitBagSyliusCmsPlugin/Shop/Page/templates/_structure.html.twig"3)->display($context);
  39.         // line 4
  40.         echo "
  41.         ";
  42.         // line 5
  43.         if (twig_in_filter("Côte Roannaise"twig_get_attribute($this->env$this->source, (isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'5$this->source); })()), "name", [], "any"falsefalsefalse5))) {
  44.             // line 6
  45.             echo "            <img src=\"";
  46.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/shop/images/structures/logo-laiterie-de-la-cote-roanaise.svg"), "html"nulltrue);
  47.             echo "\" alt=\"";
  48.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'6$this->source); })()), "name", [], "any"falsefalsefalse6), "html"nulltrue);
  49.             echo "\" class=\"structure-details__logo\" />
  50.         ";
  51.         }
  52.         // line 8
  53.         echo "
  54.         ";
  55.         // line 9
  56.         if (twig_in_filter("Sauvain"twig_get_attribute($this->env$this->source, (isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'9$this->source); })()), "name", [], "any"falsefalsefalse9))) {
  57.             // line 10
  58.             echo "            <img src=\"";
  59.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/shop/images/structures/logo-fromagerie-de-sauvain.svg"), "html"nulltrue);
  60.             echo "\" alt=\"";
  61.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'10$this->source); })()), "name", [], "any"falsefalsefalse10), "html"nulltrue);
  62.             echo "\" class=\"structure-details__logo\" />
  63.         ";
  64.         }
  65.         // line 12
  66.         echo "
  67.         ";
  68.         // line 13
  69.         if (twig_in_filter("Arvernes"twig_get_attribute($this->env$this->source, (isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'13$this->source); })()), "name", [], "any"falsefalsefalse13))) {
  70.             // line 14
  71.             echo "            <img src=\"";
  72.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/shop/images/structures/logo-cie-arvernes.svg"), "html"nulltrue);
  73.             echo "\" alt=\"";
  74.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'14$this->source); })()), "name", [], "any"falsefalsefalse14), "html"nulltrue);
  75.             echo "\" class=\"structure-details__logo\" />
  76.         ";
  77.         }
  78.         // line 16
  79.         echo "
  80.         ";
  81.         // line 17
  82.         if (twig_in_filter("Collonge"twig_get_attribute($this->env$this->source, (isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'17$this->source); })()), "name", [], "any"falsefalsefalse17))) {
  83.             // line 18
  84.             echo "            <img src=\"";
  85.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/shop/images/structures/logo-tunnel-de-la-collonge.svg"), "html"nulltrue);
  86.             echo "\" alt=\"";
  87.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'18$this->source); })()), "name", [], "any"falsefalsefalse18), "html"nulltrue);
  88.             echo "\" class=\"structure-details__logo\" />
  89.         ";
  90.         }
  91.         // line 20
  92.         echo "
  93.         <h1 class=\"page__title\">
  94.             <span class=\"page__tagline\">";
  95.         // line 22
  96.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'22$this->source); })()), "structureLocalization", [], "any"falsefalsefalse22), "html"nulltrue);
  97.         echo "</span>
  98.             ";
  99.         // line 23
  100.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'23$this->source); })()), "name", [], "any"falsefalsefalse23), "html"nulltrue);
  101.         echo "
  102.         </h1>
  103.         ";
  104.         // line 26
  105.         if ((twig_get_attribute($this->env$this->source, ($context["page"] ?? null), "image", [], "any"truetruefalse26) &&  !(null === twig_get_attribute($this->env$this->source, (isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'26$this->source); })()), "image", [], "any"falsefalsefalse26)))) {
  106.             // line 27
  107.             echo "            <img class=\"structure-details__image\" src=\"";
  108.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'27$this->source); })()), "image", [], "any"falsefalsefalse27), "path", [], "any"falsefalsefalse27), "html"nulltrue);
  109.             echo "\" alt=\"";
  110.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'27$this->source); })()), "nameWhenLinked", [], "any"falsefalsefalse27), "html_attr");
  111.             echo "\" title=\"";
  112.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'27$this->source); })()), "nameWhenLinked", [], "any"falsefalsefalse27), "html_attr");
  113.             echo "\" />
  114.         ";
  115.         }
  116.         // line 29
  117.         echo "        <div class=\"structure-details__intro\">
  118.             ";
  119.         // line 30
  120.         echo twig_get_attribute($this->env$this->source, (isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'30$this->source); })()), "structureIntroExcerpt", [], "any"falsefalsefalse30);
  121.         echo "
  122.         </div>
  123.         <div class=\"structure-details__description\">
  124.             ";
  125.         // line 33
  126.         echo twig_get_attribute($this->env$this->source, (isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'33$this->source); })()), "structureIntroText", [], "any"falsefalsefalse33);
  127.         echo "
  128.         </div>
  129.     </div>
  130.     <div class=\"bg-dark\">
  131.         <div class=\"container\">
  132.             <div class=\"structure-details__infos\">
  133.                 <div class=\"structure-details__infos-left\">
  134.                     <h3 class=\"c-red h4 structure-details__infos-title\"></h3>
  135.                     <div class=\"structure-details__infos-section\">
  136.                         ";
  137.         // line 42
  138.         if (((twig_get_attribute($this->env$this->source, (isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'42$this->source); })()), "structureAddress", [], "any"falsefalsefalse42) != "") &&  !(null === twig_get_attribute($this->env$this->source, (isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'42$this->source); })()), "structureAddress", [], "any"falsefalsefalse42)))) {
  139.             // line 43
  140.             echo "                            <div class=\"structure-details__icon-block\">
  141.                                 <i class=\"fas fa-map-marker-alt\"></i>
  142.                                 <div>
  143.                                     ";
  144.             // line 46
  145.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'46$this->source); })()), "structureAddress", [], "any"falsefalsefalse46), "html"nulltrue);
  146.             echo "<br>
  147.                                     <a href=\"https://www.google.com/maps/place/";
  148.             // line 47
  149.             echo twig_escape_filter($this->env$this->extensions['App\Twig\AppExtension']->formatForGmaps(twig_get_attribute($this->env$this->source, (isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'47$this->source); })()), "structureAddress", [], "any"falsefalsefalse47)), "html"nulltrue);
  150.             echo "/@";
  151.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'47$this->source); })()), "structureGpsLat", [], "any"falsefalsefalse47), "html"nulltrue);
  152.             echo ",";
  153.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'47$this->source); })()), "structureGpsLng", [], "any"falsefalsefalse47), "html"nulltrue);
  154.             echo ",17z\" title=\"";
  155.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.structures.link.see_on_gmaps"), "html"nulltrue);
  156.             echo "\" target=\"_blank\">";
  157.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.structures.title.access_map"), "html"nulltrue);
  158.             echo "</a>
  159.                                 </div>
  160.                             </div>
  161.                         ";
  162.         }
  163.         // line 51
  164.         echo "                        ";
  165.         if (((twig_get_attribute($this->env$this->source, (isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'51$this->source); })()), "structureEmail", [], "any"falsefalsefalse51) != "") &&  !(null === twig_get_attribute($this->env$this->source, (isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'51$this->source); })()), "structureEmail", [], "any"falsefalsefalse51)))) {
  166.             // line 52
  167.             echo "                            <div class=\"structure-details__icon-block\">
  168.                                 <i class=\"fas fa-envelope\"></i>
  169.                                 <div><a href=\"mailto:";
  170.             // line 54
  171.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'54$this->source); })()), "structureEmail", [], "any"falsefalsefalse54), "html"nulltrue);
  172.             echo "\" title=\"";
  173.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.structures.link.write_to_us"), "html_attr");
  174.             echo "\">";
  175.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'54$this->source); })()), "structureEmail", [], "any"falsefalsefalse54), "html"nulltrue);
  176.             echo "</a></div>
  177.                             </div>
  178.                         ";
  179.         }
  180.         // line 57
  181.         echo "                        ";
  182.         if (((twig_get_attribute($this->env$this->source, (isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'57$this->source); })()), "structurePhone", [], "any"falsefalsefalse57) != "") &&  !(null === twig_get_attribute($this->env$this->source, (isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'57$this->source); })()), "structurePhone", [], "any"falsefalsefalse57)))) {
  183.             // line 58
  184.             echo "                            <div class=\"structure-details__icon-block\">
  185.                                 <i class=\"fas fa-phone\"></i>
  186.                                 <div>Tél. ";
  187.             // line 60
  188.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'60$this->source); })()), "structurePhone", [], "any"falsefalsefalse60), "html"nulltrue);
  189.             echo "</div>
  190.                             </div>
  191.                         ";
  192.         }
  193.         // line 64
  194.         echo "                        ";
  195.         if (((twig_get_attribute($this->env$this->source, (isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'64$this->source); })()), "structureFax", [], "any"falsefalsefalse64) != "") &&  !(null === twig_get_attribute($this->env$this->source, (isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'64$this->source); })()), "structureFax", [], "any"falsefalsefalse64)))) {
  196.             // line 65
  197.             echo "                            <div class=\"structure-details__icon-block\">
  198.                                 <i class=\"fas fa-fax\"></i>
  199.                                 <div>Fax. ";
  200.             // line 67
  201.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'67$this->source); })()), "structureFax", [], "any"falsefalsefalse67), "html"nulltrue);
  202.             echo "</div>
  203.                             </div>
  204.                         ";
  205.         }
  206.         // line 70
  207.         echo "
  208.                     </div>
  209.                     ";
  210.         // line 72
  211.         if (((twig_get_attribute($this->env$this->source, (isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'72$this->source); })()), "structureOpeningTimes", [], "any"falsefalsefalse72) != "") &&  !(null === twig_get_attribute($this->env$this->source, (isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'72$this->source); })()), "structureOpeningTimes", [], "any"falsefalsefalse72)))) {
  212.             // line 73
  213.             echo "                        <div class=\"structure-details__infos-section\">
  214.                             <div class=\"structure-details__icon-block\">
  215.                                 <i class=\"fas fa-clock\"></i>
  216.                                 <div>
  217.                                     <strong>";
  218.             // line 77
  219.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.structures.title.opening_times"), "html"nulltrue);
  220.             echo "</strong>
  221.                                     <br>
  222.                                     ";
  223.             // line 79
  224.             echo twig_get_attribute($this->env$this->source, (isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'79$this->source); })()), "structureOpeningTimes", [], "any"falsefalsefalse79);
  225.             echo "
  226.                                 </div>
  227.                             </div>
  228.                         </div>
  229.                     ";
  230.         }
  231.         // line 84
  232.         echo "                    ";
  233.         if ((twig_length_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'84$this->source); })()), "structureEquipments", [], "any"falsefalsefalse84)) > 0)) {
  234.             // line 85
  235.             echo "                        <div class=\"structure-details__infos-section\">
  236.                             <div class=\"structure-details__icon-block\">
  237.                                 <i class=\"fas fa-list\"></i>
  238.                                 <div>
  239.                                     <strong>";
  240.             // line 89
  241.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.structures.title.equipements"), "html"nulltrue);
  242.             echo "</strong><br>
  243.                                     ";
  244.             // line 90
  245.             $context['_parent'] = $context;
  246.             $context['_seq'] = twig_ensure_traversable(twig_split_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'90$this->source); })()), "structureEquipments", [], "any"falsefalsefalse90), ","));
  247.             $context['loop'] = [
  248.               'parent' => $context['_parent'],
  249.               'index0' => 0,
  250.               'index'  => 1,
  251.               'first'  => true,
  252.             ];
  253.             if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  254.                 $length count($context['_seq']);
  255.                 $context['loop']['revindex0'] = $length 1;
  256.                 $context['loop']['revindex'] = $length;
  257.                 $context['loop']['length'] = $length;
  258.                 $context['loop']['last'] = === $length;
  259.             }
  260.             foreach ($context['_seq'] as $context["_key"] => $context["equipment"]) {
  261.                 // line 91
  262.                 echo "                                        ";
  263.                 if ((twig_get_attribute($this->env$this->source$context["loop"], "index0", [], "any"falsefalsefalse91) > 0)) {
  264.                     // line 92
  265.                     echo "                                            |
  266.                                         ";
  267.                 }
  268.                 // line 94
  269.                 echo "                                        ";
  270.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(("sylius.admin.page." $context["equipment"])), "html"nulltrue);
  271.                 echo "
  272.                                     ";
  273.                 ++$context['loop']['index0'];
  274.                 ++$context['loop']['index'];
  275.                 $context['loop']['first'] = false;
  276.                 if (isset($context['loop']['length'])) {
  277.                     --$context['loop']['revindex0'];
  278.                     --$context['loop']['revindex'];
  279.                     $context['loop']['last'] = === $context['loop']['revindex0'];
  280.                 }
  281.             }
  282.             $_parent $context['_parent'];
  283.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['equipment'], $context['_parent'], $context['loop']);
  284.             $context array_intersect_key($context$_parent) + $_parent;
  285.             // line 96
  286.             echo "                                </div>
  287.                             </div>
  288.                         </div>
  289.                     ";
  290.         }
  291.         // line 100
  292.         echo "                    ";
  293.         if ((twig_length_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'100$this->source); })()), "structureServices", [], "any"falsefalsefalse100)) > 0)) {
  294.             // line 101
  295.             echo "                        <div class=\"structure-details__infos-section\">
  296.                             <div class=\"structure-details__icon-block\">
  297.                                 <i class=\"fas fa-list\"></i>
  298.                                 <div>
  299.                                     <strong>";
  300.             // line 105
  301.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.structures.title.services"), "html"nulltrue);
  302.             echo "</strong><br>
  303.                                     ";
  304.             // line 106
  305.             $context['_parent'] = $context;
  306.             $context['_seq'] = twig_ensure_traversable(twig_split_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'106$this->source); })()), "structureServices", [], "any"falsefalsefalse106), ","));
  307.             $context['loop'] = [
  308.               'parent' => $context['_parent'],
  309.               'index0' => 0,
  310.               'index'  => 1,
  311.               'first'  => true,
  312.             ];
  313.             if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  314.                 $length count($context['_seq']);
  315.                 $context['loop']['revindex0'] = $length 1;
  316.                 $context['loop']['revindex'] = $length;
  317.                 $context['loop']['length'] = $length;
  318.                 $context['loop']['last'] = === $length;
  319.             }
  320.             foreach ($context['_seq'] as $context["_key"] => $context["service"]) {
  321.                 // line 107
  322.                 echo "                                        ";
  323.                 if ((twig_get_attribute($this->env$this->source$context["loop"], "index0", [], "any"falsefalsefalse107) > 0)) {
  324.                     // line 108
  325.                     echo "                                            |
  326.                                         ";
  327.                 }
  328.                 // line 110
  329.                 echo "                                        ";
  330.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(("sylius.admin.page." $context["service"])), "html"nulltrue);
  331.                 echo "
  332.                                     ";
  333.                 ++$context['loop']['index0'];
  334.                 ++$context['loop']['index'];
  335.                 $context['loop']['first'] = false;
  336.                 if (isset($context['loop']['length'])) {
  337.                     --$context['loop']['revindex0'];
  338.                     --$context['loop']['revindex'];
  339.                     $context['loop']['last'] = === $context['loop']['revindex0'];
  340.                 }
  341.             }
  342.             $_parent $context['_parent'];
  343.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['service'], $context['_parent'], $context['loop']);
  344.             $context array_intersect_key($context$_parent) + $_parent;
  345.             // line 112
  346.             echo "                                </div>
  347.                             </div>
  348.                         </div>
  349.                     ";
  350.         }
  351.         // line 116
  352.         echo "                </div>
  353.                 <div class=\"structure-details__infos-right\">
  354.                     <div class=\"structure-details__infos-map\">
  355.                         <div id=\"map\"></div>
  356.                     </div>
  357.                     <a href=\"#galerie\" class=\"button button--secondary button--medium\">";
  358.         // line 121
  359.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.structures.title.see_image_gallery"), "html"nulltrue);
  360.         echo "</a>
  361.                 </div>
  362.             </div>
  363.         </div>
  364.     </div>
  365.     <div class=\"galerie-images\" id=\"galerie\">
  366.         <div class=\"container\">
  367.             <div class=\"galerie-images__title h4 bold\">";
  368.         // line 128
  369.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'128$this->source); })()), "name", [], "any"falsefalsefalse128), "html"nulltrue);
  370.         echo " <span class=\"c-red\">";
  371.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.structures.title.in_images"), "html"nulltrue);
  372.         echo "</span></div>
  373.             <div class=\"structure-details__galerie-images galerie-images__images\">
  374.                 ";
  375.         // line 130
  376.         echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("bitbag_sylius_cms_plugin_shop_media_index_by_section_code", ["sectionCode" => ("nos-structures-" twig_get_attribute($this->env$this->source, (isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'130$this->source); })()), "code", [], "any"falsefalsefalse130)), "template" => "@BitBagSyliusCmsPlugin/Shop/Page/blocks/_structure-image.html.twig"]));
  377.         echo "
  378.             </div>
  379.         </div>
  380.     </div>
  381.     <div class=\"structure-details__back\">
  382.         <a href=\"";
  383.         // line 135
  384.         echo twig_escape_filter($this->env$this->env->getRuntime('BitBag\SyliusCmsPlugin\Twig\Runtime\RenderLinkRuntime')->getLinkForCode("nos-structures"), "html"nulltrue);
  385.         echo "\" class=\"button button--outline-red button--medium\">";
  386.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.structures.title.back_to_structures_list"), "html"nulltrue);
  387.         echo "</a>
  388.     </div>
  389. </div>
  390. ";
  391.         
  392.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  393.         
  394.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  395.     }
  396.     public function getTemplateName()
  397.     {
  398.         return "bundles/BitBagSyliusCmsPlugin/Shop/Page/templates/_structure.html.twig";
  399.     }
  400.     public function isTraitable()
  401.     {
  402.         return false;
  403.     }
  404.     public function getDebugInfo()
  405.     {
  406.         return array (  395 => 135,  387 => 130,  380 => 128,  370 => 121,  363 => 116,  357 => 112,  340 => 110,  336 => 108,  333 => 107,  316 => 106,  312 => 105,  306 => 101,  303 => 100,  297 => 96,  280 => 94,  276 => 92,  273 => 91,  256 => 90,  252 => 89,  246 => 85,  243 => 84,  235 => 79,  230 => 77,  224 => 73,  222 => 72,  218 => 70,  212 => 67,  208 => 65,  205 => 64,  198 => 60,  194 => 58,  191 => 57,  181 => 54,  177 => 52,  174 => 51,  159 => 47,  155 => 46,  150 => 43,  148 => 42,  136 => 33,  130 => 30,  127 => 29,  117 => 27,  115 => 26,  109 => 23,  105 => 22,  101 => 20,  93 => 18,  91 => 17,  88 => 16,  80 => 14,  78 => 13,  75 => 12,  67 => 10,  65 => 9,  62 => 8,  54 => 6,  52 => 5,  49 => 4,  47 => 3,  43 => 1,);
  407.     }
  408.     public function getSourceContext()
  409.     {
  410.         return new Source("<div class=\"structure-details\">
  411.     <div class=\"container\">
  412.         {% include 'common/_breadcrumb-structure.html.twig' %}
  413.         {% if 'Côte Roannaise' in page.name %}
  414.             <img src=\"{{ asset('assets/shop/images/structures/logo-laiterie-de-la-cote-roanaise.svg') }}\" alt=\"{{ page.name }}\" class=\"structure-details__logo\" />
  415.         {% endif %}
  416.         {% if 'Sauvain' in page.name %}
  417.             <img src=\"{{ asset('assets/shop/images/structures/logo-fromagerie-de-sauvain.svg') }}\" alt=\"{{ page.name }}\" class=\"structure-details__logo\" />
  418.         {% endif %}
  419.         {% if 'Arvernes' in page.name %}
  420.             <img src=\"{{ asset('assets/shop/images/structures/logo-cie-arvernes.svg') }}\" alt=\"{{ page.name }}\" class=\"structure-details__logo\" />
  421.         {% endif %}
  422.         {% if 'Collonge' in page.name %}
  423.             <img src=\"{{ asset('assets/shop/images/structures/logo-tunnel-de-la-collonge.svg') }}\" alt=\"{{ page.name }}\" class=\"structure-details__logo\" />
  424.         {% endif %}
  425.         <h1 class=\"page__title\">
  426.             <span class=\"page__tagline\">{{ page.structureLocalization }}</span>
  427.             {{ page.name }}
  428.         </h1>
  429.         {% if page.image is defined and page.image is not null %}
  430.             <img class=\"structure-details__image\" src=\"{{ page.image.path }}\" alt=\"{{ page.nameWhenLinked|e('html_attr') }}\" title=\"{{ page.nameWhenLinked|e('html_attr') }}\" />
  431.         {% endif %}
  432.         <div class=\"structure-details__intro\">
  433.             {{ page.structureIntroExcerpt|raw }}
  434.         </div>
  435.         <div class=\"structure-details__description\">
  436.             {{ page.structureIntroText|raw }}
  437.         </div>
  438.     </div>
  439.     <div class=\"bg-dark\">
  440.         <div class=\"container\">
  441.             <div class=\"structure-details__infos\">
  442.                 <div class=\"structure-details__infos-left\">
  443.                     <h3 class=\"c-red h4 structure-details__infos-title\"></h3>
  444.                     <div class=\"structure-details__infos-section\">
  445.                         {% if page.structureAddress != \"\" and page.structureAddress is not null %}
  446.                             <div class=\"structure-details__icon-block\">
  447.                                 <i class=\"fas fa-map-marker-alt\"></i>
  448.                                 <div>
  449.                                     {{ page.structureAddress }}<br>
  450.                                     <a href=\"https://www.google.com/maps/place/{{ page.structureAddress|format_for_gmaps }}/@{{ page.structureGpsLat }},{{ page.structureGpsLng }},17z\" title=\"{{ 'sylius.structures.link.see_on_gmaps'|trans }}\" target=\"_blank\">{{ 'sylius.structures.title.access_map'|trans }}</a>
  451.                                 </div>
  452.                             </div>
  453.                         {% endif %}
  454.                         {% if page.structureEmail != \"\" and page.structureEmail is not null %}
  455.                             <div class=\"structure-details__icon-block\">
  456.                                 <i class=\"fas fa-envelope\"></i>
  457.                                 <div><a href=\"mailto:{{ page.structureEmail }}\" title=\"{{ 'sylius.structures.link.write_to_us'|trans|e('html_attr') }}\">{{ page.structureEmail }}</a></div>
  458.                             </div>
  459.                         {% endif %}
  460.                         {% if page.structurePhone != \"\" and page.structurePhone is not null %}
  461.                             <div class=\"structure-details__icon-block\">
  462.                                 <i class=\"fas fa-phone\"></i>
  463.                                 <div>Tél. {{ page.structurePhone }}</div>
  464.                             </div>
  465.                         {% endif %}
  466.                         {% if page.structureFax != \"\" and page.structureFax is not null %}
  467.                             <div class=\"structure-details__icon-block\">
  468.                                 <i class=\"fas fa-fax\"></i>
  469.                                 <div>Fax. {{ page.structureFax }}</div>
  470.                             </div>
  471.                         {% endif %}
  472.                     </div>
  473.                     {% if page.structureOpeningTimes != \"\" and page.structureOpeningTimes is not null %}
  474.                         <div class=\"structure-details__infos-section\">
  475.                             <div class=\"structure-details__icon-block\">
  476.                                 <i class=\"fas fa-clock\"></i>
  477.                                 <div>
  478.                                     <strong>{{ 'sylius.structures.title.opening_times'|trans }}</strong>
  479.                                     <br>
  480.                                     {{ page.structureOpeningTimes|raw }}
  481.                                 </div>
  482.                             </div>
  483.                         </div>
  484.                     {% endif %}
  485.                     {% if page.structureEquipments|length > 0 %}
  486.                         <div class=\"structure-details__infos-section\">
  487.                             <div class=\"structure-details__icon-block\">
  488.                                 <i class=\"fas fa-list\"></i>
  489.                                 <div>
  490.                                     <strong>{{ 'sylius.structures.title.equipements'|trans }}</strong><br>
  491.                                     {% for equipment in page.structureEquipments|split(',') %}
  492.                                         {% if loop.index0 > 0 %}
  493.                                             |
  494.                                         {% endif %}
  495.                                         {{ ('sylius.admin.page.' ~ equipment)|trans }}
  496.                                     {% endfor %}
  497.                                 </div>
  498.                             </div>
  499.                         </div>
  500.                     {% endif %}
  501.                     {% if page.structureServices|length > 0 %}
  502.                         <div class=\"structure-details__infos-section\">
  503.                             <div class=\"structure-details__icon-block\">
  504.                                 <i class=\"fas fa-list\"></i>
  505.                                 <div>
  506.                                     <strong>{{ 'sylius.structures.title.services'|trans }}</strong><br>
  507.                                     {% for service in page.structureServices|split(',') %}
  508.                                         {% if loop.index0 > 0 %}
  509.                                             |
  510.                                         {% endif %}
  511.                                         {{ ('sylius.admin.page.' ~ service)|trans }}
  512.                                     {% endfor %}
  513.                                 </div>
  514.                             </div>
  515.                         </div>
  516.                     {% endif %}
  517.                 </div>
  518.                 <div class=\"structure-details__infos-right\">
  519.                     <div class=\"structure-details__infos-map\">
  520.                         <div id=\"map\"></div>
  521.                     </div>
  522.                     <a href=\"#galerie\" class=\"button button--secondary button--medium\">{{ 'sylius.structures.title.see_image_gallery'|trans }}</a>
  523.                 </div>
  524.             </div>
  525.         </div>
  526.     </div>
  527.     <div class=\"galerie-images\" id=\"galerie\">
  528.         <div class=\"container\">
  529.             <div class=\"galerie-images__title h4 bold\">{{ page.name }} <span class=\"c-red\">{{ 'sylius.structures.title.in_images'|trans }}</span></div>
  530.             <div class=\"structure-details__galerie-images galerie-images__images\">
  531.                 {{ render(path('bitbag_sylius_cms_plugin_shop_media_index_by_section_code', {'sectionCode' : 'nos-structures-' ~ page.code, 'template' : '@BitBagSyliusCmsPlugin/Shop/Page/blocks/_structure-image.html.twig'})) }}
  532.             </div>
  533.         </div>
  534.     </div>
  535.     <div class=\"structure-details__back\">
  536.         <a href=\"{{ bitbag_cms_get_link_for_code('nos-structures') }}\" class=\"button button--outline-red button--medium\">{{ 'sylius.structures.title.back_to_structures_list'|trans }}</a>
  537.     </div>
  538. </div>
  539. ""bundles/BitBagSyliusCmsPlugin/Shop/Page/templates/_structure.html.twig""/home/mons/site/www/templates/bundles/BitBagSyliusCmsPlugin/Shop/Page/templates/_structure.html.twig");
  540.     }
  541. }