var/cache/dev/twig/9b/9b986fd15f0e9874a45f85b1165f4be34d1e948998c06d9e3cc10ff5affb6db5.php line 64

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. /* mons/stores/index.html.twig */
  14. class __TwigTemplate_b2a30e5243ab26203f9bd290234692aad3bd6b0ded090eddaa5efe07eb981fd9 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->blocks = [
  23.             'banner' => [$this'block_banner'],
  24.             'title' => [$this'block_title'],
  25.             'head' => [$this'block_head'],
  26.             'stylesheets' => [$this'block_stylesheets'],
  27.             'metatags' => [$this'block_metatags'],
  28.             'content' => [$this'block_content'],
  29.             'javascripts' => [$this'block_javascripts'],
  30.         ];
  31.     }
  32.     protected function doGetParent(array $context)
  33.     {
  34.         // line 1
  35.         return "@SyliusShop/layout-large.html.twig";
  36.     }
  37.     protected function doDisplay(array $context, array $blocks = [])
  38.     {
  39.         $macros $this->macros;
  40.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  41.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""mons/stores/index.html.twig"));
  42.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  43.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""mons/stores/index.html.twig"));
  44.         $this->parent $this->loadTemplate("@SyliusShop/layout-large.html.twig""mons/stores/index.html.twig"1);
  45.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  46.         
  47.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  48.         
  49.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  50.     }
  51.     // line 3
  52.     public function block_banner($context, array $blocks = [])
  53.     {
  54.         $macros $this->macros;
  55.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  56.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""banner"));
  57.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  58.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""banner"));
  59.         // line 4
  60.         echo "    ";
  61.         echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("odiseo_sylius_banner_plugin_shop_partial_banner", ["template" => "@SyliusShop/Banner/_banner-nos-boutiques.html.twig"]));
  62.         echo "
  63. ";
  64.         
  65.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  66.         
  67.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  68.     }
  69.     // line 7
  70.     public function block_title($context, array $blocks = [])
  71.     {
  72.         $macros $this->macros;
  73.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  74.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  75.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  76.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  77.         // line 8
  78.         if ( !twig_test_empty(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.'8$this->source); })()), "title", [], "any"falsefalsefalse8))) {
  79.             // line 9
  80.             echo "        ";
  81.             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.'9$this->source); })()), "title", [], "any"falsefalsefalse9), "html"nulltrue);
  82.             echo "
  83.     ";
  84.         } else {
  85.             // line 11
  86.             echo "        ";
  87.             $this->displayParentBlock("title"$context$blocks);
  88.             echo "
  89.     ";
  90.         }
  91.         
  92.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  93.         
  94.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  95.     }
  96.     // line 16
  97.     public function block_head($context, array $blocks = [])
  98.     {
  99.         $macros $this->macros;
  100.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  101.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""head"));
  102.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  103.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""head"));
  104.         // line 17
  105.         echo "    ";
  106.         $this->displayParentBlock("head"$context$blocks);
  107.         echo "
  108.     ";
  109.         // line 19
  110.         $this->displayBlock('stylesheets'$context$blocks);
  111.         // line 24
  112.         echo "
  113.     ";
  114.         // line 25
  115.         $this->displayBlock('metatags'$context$blocks);
  116.         
  117.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  118.         
  119.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  120.     }
  121.     // line 19
  122.     public function block_stylesheets($context, array $blocks = [])
  123.     {
  124.         $macros $this->macros;
  125.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  126.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheets"));
  127.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  128.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheets"));
  129.         // line 20
  130.         echo "        ";
  131.         $this->displayParentBlock("stylesheets"$context$blocks);
  132.         echo "
  133.         <link href='https://api.mapbox.com/mapbox-gl-js/v2.3.1/mapbox-gl.css' rel='stylesheet' />
  134.     ";
  135.         
  136.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  137.         
  138.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  139.     }
  140.     // line 25
  141.     public function block_metatags($context, array $blocks = [])
  142.     {
  143.         $macros $this->macros;
  144.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  145.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""metatags"));
  146.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  147.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""metatags"));
  148.         // line 26
  149.         echo "        ";
  150.         $this->displayParentBlock("metatags"$context$blocks);
  151.         echo "
  152.         <meta name=\"keywords\" content=\"";
  153.         // line 28
  154.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.stores.meta_keywords"), "html_attr");
  155.         echo "\"/>
  156.         <meta name=\"description\" content=\"";
  157.         // line 29
  158.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.stores.discover_our_stores"), "html_attr");
  159.         echo "\"/>
  160.     ";
  161.         
  162.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  163.         
  164.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  165.     }
  166.     // line 34
  167.     public function block_content($context, array $blocks = [])
  168.     {
  169.         $macros $this->macros;
  170.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  171.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  172.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  173.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  174.         // line 35
  175.         echo "    <div class=\"store-list\">
  176.         <div class=\"container\">
  177.             ";
  178.         // line 37
  179.         $this->loadTemplate("common/_breadcrumb.html.twig""mons/stores/index.html.twig"37)->display($context);
  180.         // line 38
  181.         echo "
  182.             <div class=\"store-list__intro\">";
  183.         // line 39
  184.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.stores.discover_our_stores"), "html"nulltrue);
  185.         echo "</div>
  186.         </div>
  187.         <div class=\"store-list__columns\">
  188.             <div class=\"store-list__map-block\" data-aos=\"fade-right\">
  189.                 <div id='map'></div>
  190.             </div>
  191.             <div class=\"store-list__list\" data-aos=\"fade-left\">
  192.                 <h1 class=\"store-list__title\">";
  193.         // line 46
  194.         echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.stores.title_discover_our_stores");
  195.         echo "</h1>
  196.                 <div class=\"store-list__legend\">
  197.                     <span>";
  198.         // line 48
  199.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.stores.mons_store"), "html"nulltrue);
  200.         echo "</span>
  201.                     <span>";
  202.         // line 49
  203.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.stores.reseller"), "html"nulltrue);
  204.         echo "</span>
  205.                 </div>
  206.                 <div class=\"store-list__items\">
  207.                     ";
  208.         // line 52
  209.         $context['_parent'] = $context;
  210.         $context['_seq'] = twig_ensure_traversable((isset($context["stores"]) || array_key_exists("stores"$context) ? $context["stores"] : (function () { throw new RuntimeError('Variable "stores" does not exist.'52$this->source); })()));
  211.         $context['loop'] = [
  212.           'parent' => $context['_parent'],
  213.           'index0' => 0,
  214.           'index'  => 1,
  215.           'first'  => true,
  216.         ];
  217.         if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  218.             $length count($context['_seq']);
  219.             $context['loop']['revindex0'] = $length 1;
  220.             $context['loop']['revindex'] = $length;
  221.             $context['loop']['length'] = $length;
  222.             $context['loop']['last'] = === $length;
  223.         }
  224.         foreach ($context['_seq'] as $context["_key"] => $context["store"]) {
  225.             // line 53
  226.             echo "                        <div class=\"store-list__item\">
  227.                             <a href=\"";
  228.             // line 54
  229.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_shop_store_show", ["code" => twig_get_attribute($this->env$this->source$context["store"], "code", [], "any"falsefalsefalse54)]), "html"nulltrue);
  230.             echo "\" title=\"";
  231.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["store"], "nameWhenLinked", [], "any"falsefalsefalse54), "html_attr");
  232.             echo "\"><h2 class=\"store-list__item-title ";
  233.             if (twig_get_attribute($this->env$this->source$context["store"], "isReseller", [], "any"falsefalsefalse54)) {
  234.                 echo "reseller";
  235.             }
  236.             echo "\"><span class=\"store-list__badge ";
  237.             if (twig_get_attribute($this->env$this->source$context["store"], "isReseller", [], "any"falsefalsefalse54)) {
  238.                 echo "reseller";
  239.             }
  240.             echo "\">";
  241.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["loop"], "index", [], "any"falsefalsefalse54), "html"nulltrue);
  242.             echo "</span>";
  243.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["store"], "name", [], "any"falsefalsefalse54), "html"nulltrue);
  244.             echo "</h2></a>
  245.                             <div class=\"store-list__infos-section\">
  246.                                 ";
  247.             // line 56
  248.             if (((twig_get_attribute($this->env$this->source$context["store"], "address", [], "any"falsefalsefalse56) != "") &&  !(null === twig_get_attribute($this->env$this->source$context["store"], "address", [], "any"falsefalsefalse56)))) {
  249.                 // line 57
  250.                 echo "                                    <div class=\"store-list__icon-block\">
  251.                                         <i class=\"fas fa-map-marker-alt\"></i>
  252.                                         <div>";
  253.                 // line 59
  254.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["store"], "address", [], "any"falsefalsefalse59), "html"nulltrue);
  255.                 echo "</div>
  256.                                     </div>
  257.                                 ";
  258.             }
  259.             // line 62
  260.             echo "                                ";
  261.             if (((twig_get_attribute($this->env$this->source$context["store"], "email", [], "any"falsefalsefalse62) != "") &&  !(null === twig_get_attribute($this->env$this->source$context["store"], "email", [], "any"falsefalsefalse62)))) {
  262.                 // line 63
  263.                 echo "                                    <div class=\"store-list__icon-block\">
  264.                                         <i class=\"fas fa-envelope\"></i>
  265.                                         <div><a href=\"mailto:";
  266.                 // line 65
  267.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["store"], "email", [], "any"falsefalsefalse65), "html"nulltrue);
  268.                 echo "\" title=\"";
  269.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.stores.write_to_the_store"), "html_attr");
  270.                 echo "\">";
  271.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["store"], "email", [], "any"falsefalsefalse65), "html"nulltrue);
  272.                 echo "</a></div>
  273.                                     </div>
  274.                                 ";
  275.             }
  276.             // line 68
  277.             echo "                                ";
  278.             if (((twig_get_attribute($this->env$this->source$context["store"], "phone", [], "any"falsefalsefalse68) != "") &&  !(null === twig_get_attribute($this->env$this->source$context["store"], "phone", [], "any"falsefalsefalse68)))) {
  279.                 // line 69
  280.                 echo "                                    <div class=\"store-list__icon-block\">
  281.                                         <i class=\"fas fa-phone\"></i>
  282.                                         <div>";
  283.                 // line 71
  284.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.stores.phone"), "html"nulltrue);
  285.                 echo " <a href=\"tel:";
  286.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["store"], "phone", [], "any"falsefalsefalse71), "html"nulltrue);
  287.                 echo "\" target=\"_blank\" title=\"";
  288.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.stores.call_the_store"), "html_attr");
  289.                 echo "\">";
  290.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["store"], "phone", [], "any"falsefalsefalse71), "html"nulltrue);
  291.                 echo "</a></div>
  292.                                     </div>
  293.                                 ";
  294.             }
  295.             // line 74
  296.             echo "                                ";
  297.             if (((twig_get_attribute($this->env$this->source$context["store"], "fax", [], "any"falsefalsefalse74) != "") &&  !(null === twig_get_attribute($this->env$this->source$context["store"], "fax", [], "any"falsefalsefalse74)))) {
  298.                 // line 75
  299.                 echo "                                    <div class=\"store-list__icon-block\">
  300.                                         <i class=\"fas fa-fax\"></i>
  301.                                         <div>";
  302.                 // line 77
  303.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.stores.fax"), "html"nulltrue);
  304.                 echo " ";
  305.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["store"], "fax", [], "any"falsefalsefalse77), "html"nulltrue);
  306.                 echo "</div>
  307.                                     </div>
  308.                                 ";
  309.             }
  310.             // line 80
  311.             echo "                                ";
  312.             if (((twig_get_attribute($this->env$this->source$context["store"], "openingTimes", [], "any"falsefalsefalse80) != "") &&  !(null === twig_get_attribute($this->env$this->source$context["store"], "openingTimes", [], "any"falsefalsefalse80)))) {
  313.                 // line 81
  314.                 echo "                                    <div class=\"store-list__icon-block store-list__icon-block--opening\">
  315.                                         <i class=\"fas fa-clock\"></i>
  316.                                         <div>
  317.                                             <strong>";
  318.                 // line 84
  319.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.stores.opening_times"), "html"nulltrue);
  320.                 echo "</strong>
  321.                                             <br>
  322.                                             ";
  323.                 // line 86
  324.                 echo twig_get_attribute($this->env$this->source$context["store"], "openingTimes", [], "any"falsefalsefalse86);
  325.                 echo "
  326.                                         </div>
  327.                                     </div>
  328.                                 ";
  329.             }
  330.             // line 90
  331.             echo "                            </div>
  332.                         </div>
  333.                     ";
  334.             ++$context['loop']['index0'];
  335.             ++$context['loop']['index'];
  336.             $context['loop']['first'] = false;
  337.             if (isset($context['loop']['length'])) {
  338.                 --$context['loop']['revindex0'];
  339.                 --$context['loop']['revindex'];
  340.                 $context['loop']['last'] = === $context['loop']['revindex0'];
  341.             }
  342.         }
  343.         $_parent $context['_parent'];
  344.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['store'], $context['_parent'], $context['loop']);
  345.         $context array_intersect_key($context$_parent) + $_parent;
  346.         // line 93
  347.         echo "                </div>
  348.             </div>
  349.         </div>
  350.         <div class=\"citation\" data-aos=\"fade-up\">
  351.             <div class=\"container\">
  352.                 <p>";
  353.         // line 98
  354.         echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.stores.discover_our_events");
  355.         echo "</p>
  356.                 <a href=\"/";
  357.         // line 99
  358.         echo twig_escape_filter($this->envtwig_slice($this->envtwig_get_attribute($this->env$this->sourcetwig_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.'99$this->source); })()), "request", [], "any"falsefalsefalse99), "locale", [], "any"falsefalsefalse99), 02), "html"nulltrue);
  359.         echo "/blog/articles\" class=\"button button--secondary\" title=\"";
  360.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.stores.discover_our_news"), "html_attr");
  361.         echo "\">";
  362.         echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.stores.discover_our_news");
  363.         echo "</a>
  364.             </div>
  365.         </div>
  366.     </div>
  367. ";
  368.         
  369.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  370.         
  371.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  372.     }
  373.     // line 106
  374.     public function block_javascripts($context, array $blocks = [])
  375.     {
  376.         $macros $this->macros;
  377.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  378.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  379.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  380.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  381.         // line 107
  382.         echo "    ";
  383.         $this->displayParentBlock("javascripts"$context$blocks);
  384.         echo "
  385.     <script src='https://api.mapbox.com/mapbox-gl-js/v2.3.1/mapbox-gl.js'></script>
  386.     <script type=\"text/javascript\">
  387.         // Display the map
  388.         mapboxgl.accessToken = '";
  389.         // line 112
  390.         echo twig_escape_filter($this->env, (isset($context["mapbox_key"]) || array_key_exists("mapbox_key"$context) ? $context["mapbox_key"] : (function () { throw new RuntimeError('Variable "mapbox_key" does not exist.'112$this->source); })()), "html"nulltrue);
  391.         echo "';
  392.         var map = new mapboxgl.Map({
  393.             container: 'map',
  394.             style: 'mapbox://styles/mapbox/light-v10',
  395.             center: [10, 47.8],
  396.             zoom: 3
  397.         });
  398.         var geojson = {
  399.             'type': 'FeatureCollection',
  400.             'features': [
  401.                 ";
  402.         // line 124
  403.         $context['_parent'] = $context;
  404.         $context['_seq'] = twig_ensure_traversable((isset($context["stores"]) || array_key_exists("stores"$context) ? $context["stores"] : (function () { throw new RuntimeError('Variable "stores" does not exist.'124$this->source); })()));
  405.         $context['loop'] = [
  406.           'parent' => $context['_parent'],
  407.           'index0' => 0,
  408.           'index'  => 1,
  409.           'first'  => true,
  410.         ];
  411.         if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  412.             $length count($context['_seq']);
  413.             $context['loop']['revindex0'] = $length 1;
  414.             $context['loop']['revindex'] = $length;
  415.             $context['loop']['length'] = $length;
  416.             $context['loop']['last'] = === $length;
  417.         }
  418.         foreach ($context['_seq'] as $context["_key"] => $context["store"]) {
  419.             // line 125
  420.             echo "                    ";
  421.             if ((twig_get_attribute($this->env$this->source$context["loop"], "index0", [], "any"falsefalsefalse125) > 0)) {
  422.                 // line 126
  423.                 echo "                        ,
  424.                     ";
  425.             }
  426.             // line 128
  427.             echo "                    {
  428.                         'type': 'Feature',
  429.                          'geometry': {
  430.                             'type': 'Point',
  431.                             'coordinates': [";
  432.             // line 132
  433.             if (((twig_get_attribute($this->env$this->source$context["store"], "gpsLng", [], "any"falsefalsefalse132) != "") &&  !(null === twig_get_attribute($this->env$this->source$context["store"], "gpsLng", [], "any"falsefalsefalse132)))) {
  434.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["store"], "gpsLng", [], "any"falsefalsefalse132), "html"nulltrue);
  435.             } else {
  436.                 echo "0";
  437.             }
  438.             echo ", ";
  439.             if (((twig_get_attribute($this->env$this->source$context["store"], "gpsLat", [], "any"falsefalsefalse132) != "") &&  !(null === twig_get_attribute($this->env$this->source$context["store"], "gpsLat", [], "any"falsefalsefalse132)))) {
  440.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["store"], "gpsLat", [], "any"falsefalsefalse132), "html"nulltrue);
  441.             } else {
  442.                 echo "0";
  443.             }
  444.             echo "]
  445.                         },
  446.                         'properties': {
  447.                             'reseller': ";
  448.             // line 135
  449.             if (twig_get_attribute($this->env$this->source$context["store"], "isReseller", [], "any"falsefalsefalse135)) {
  450.                 echo "true";
  451.             } else {
  452.                 echo "false";
  453.             }
  454.             echo ",
  455.                             'title': '";
  456.             // line 136
  457.             echo twig_escape_filter($this->envtwig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["store"], "name", [], "any"falsefalsefalse136), "js"), "html"nulltrue);
  458.             echo "',
  459.                             'description': `
  460.                                             <div class=\"store-list__infos-section\">
  461.                                                 <div class=\"store-list__icon-block\">
  462.                                                     <i class=\"fas fa-map-marker-alt\"></i>
  463.                                                     <div>";
  464.             // line 141
  465.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["store"], "address", [], "any"falsefalsefalse141), "html"nulltrue);
  466.             echo "</div>
  467.                                                 </div>
  468.                                                 ";
  469.             // line 143
  470.             if (((twig_get_attribute($this->env$this->source$context["store"], "email", [], "any"falsefalsefalse143) != "") &&  !(null === twig_get_attribute($this->env$this->source$context["store"], "email", [], "any"falsefalsefalse143)))) {
  471.                 // line 144
  472.                 echo "                                                    <div class=\"store-list__icon-block\">
  473.                                                         <i class=\"fas fa-envelope\"></i>
  474.                                                         <div><a href=\"mailto:";
  475.                 // line 146
  476.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["store"], "email", [], "any"falsefalsefalse146), "html"nulltrue);
  477.                 echo "\" target=\"_blank\" title=\"";
  478.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.stores.write_to_the_store"), "html_attr");
  479.                 echo "\">";
  480.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["store"], "email", [], "any"falsefalsefalse146), "html"nulltrue);
  481.                 echo "</a></div>
  482.                                                     </div>
  483.                                                 ";
  484.             }
  485.             // line 149
  486.             echo "                                                ";
  487.             if (((twig_get_attribute($this->env$this->source$context["store"], "phone", [], "any"falsefalsefalse149) != "") &&  !(null === twig_get_attribute($this->env$this->source$context["store"], "phone", [], "any"falsefalsefalse149)))) {
  488.                 // line 150
  489.                 echo "                                                    <div class=\"store-list__icon-block\">
  490.                                                         <i class=\"fas fa-phone\"></i>
  491.                                                         <div>";
  492.                 // line 152
  493.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.stores.phone"), "html_attr");
  494.                 echo " <a href=\"tel:";
  495.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["store"], "phone", [], "any"falsefalsefalse152), "html"nulltrue);
  496.                 echo "\" target=\"_blank\" title=\"";
  497.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.stores.call_the_store"), "html_attr");
  498.                 echo "\">";
  499.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["store"], "phone", [], "any"falsefalsefalse152), "html"nulltrue);
  500.                 echo "</div>
  501.                                                     </div>
  502.                                                 ";
  503.             }
  504.             // line 155
  505.             echo "                                                ";
  506.             if (((twig_get_attribute($this->env$this->source$context["store"], "fax", [], "any"falsefalsefalse155) != "") &&  !(null === twig_get_attribute($this->env$this->source$context["store"], "fax", [], "any"falsefalsefalse155)))) {
  507.                 // line 156
  508.                 echo "                                                    <div class=\"store-list__icon-block\">
  509.                                                         <i class=\"fas fa-fax\"></i>
  510.                                                         <div>";
  511.                 // line 158
  512.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.stores.fax"), "html_attr");
  513.                 echo " ";
  514.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["store"], "fax", [], "any"falsefalsefalse158), "html"nulltrue);
  515.                 echo "</div>
  516.                                                     </div>
  517.                                                 ";
  518.             }
  519.             // line 161
  520.             echo "                                            </div>
  521.                                         `
  522.                         }
  523.                     }
  524.                 ";
  525.             ++$context['loop']['index0'];
  526.             ++$context['loop']['index'];
  527.             $context['loop']['first'] = false;
  528.             if (isset($context['loop']['length'])) {
  529.                 --$context['loop']['revindex0'];
  530.                 --$context['loop']['revindex'];
  531.                 $context['loop']['last'] = === $context['loop']['revindex0'];
  532.             }
  533.         }
  534.         $_parent $context['_parent'];
  535.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['store'], $context['_parent'], $context['loop']);
  536.         $context array_intersect_key($context$_parent) + $_parent;
  537.         // line 166
  538.         echo "            ]
  539.         };
  540.         // add markers to map
  541.         geojson.features.forEach(function (marker) {
  542.             // create a HTML element for each feature
  543.             var el = document.createElement('div');
  544.             el.className = marker.properties.reseller ? 'marker reseller' : 'marker';
  545.             // make a marker for each feature and add it to the map
  546.             new mapboxgl.Marker(el)
  547.                 .setLngLat(marker.geometry.coordinates)
  548.                 .setPopup(
  549.                     new mapboxgl.Popup({ offset: 25 }) // add popups
  550.                         .setHTML(
  551.                             '<h3>' +
  552.                             marker.properties.title +
  553.                             '</h3><p>' +
  554.                             marker.properties.description +
  555.                             '</p>'
  556.                         )
  557.                 )
  558.                 .addTo(map);
  559.         });
  560.         var nav = new mapboxgl.NavigationControl();
  561.         map.addControl(nav, 'top-left');
  562.     </script>
  563. ";
  564.         
  565.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  566.         
  567.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  568.     }
  569.     public function getTemplateName()
  570.     {
  571.         return "mons/stores/index.html.twig";
  572.     }
  573.     public function isTraitable()
  574.     {
  575.         return false;
  576.     }
  577.     public function getDebugInfo()
  578.     {
  579.         return array (  588 => 166,  570 => 161,  562 => 158,  558 => 156,  555 => 155,  543 => 152,  539 => 150,  536 => 149,  526 => 146,  522 => 144,  520 => 143,  515 => 141,  507 => 136,  499 => 135,  483 => 132,  477 => 128,  473 => 126,  470 => 125,  453 => 124,  438 => 112,  429 => 107,  419 => 106,  400 => 99,  396 => 98,  389 => 93,  373 => 90,  366 => 86,  361 => 84,  356 => 81,  353 => 80,  345 => 77,  341 => 75,  338 => 74,  326 => 71,  322 => 69,  319 => 68,  309 => 65,  305 => 63,  302 => 62,  296 => 59,  292 => 57,  290 => 56,  271 => 54,  268 => 53,  251 => 52,  245 => 49,  241 => 48,  236 => 46,  226 => 39,  223 => 38,  221 => 37,  217 => 35,  207 => 34,  195 => 29,  191 => 28,  185 => 26,  175 => 25,  160 => 20,  150 => 19,  140 => 25,  137 => 24,  135 => 19,  129 => 17,  119 => 16,  105 => 11,  99 => 9,  97 => 8,  87 => 7,  74 => 4,  64 => 3,  41 => 1,);
  580.     }
  581.     public function getSourceContext()
  582.     {
  583.         return new Source("{% extends '@SyliusShop/layout-large.html.twig' %}
  584. {% block banner %}
  585.     {{ render(url('odiseo_sylius_banner_plugin_shop_partial_banner', {'template': '@SyliusShop/Banner/_banner-nos-boutiques.html.twig'})) }}
  586. {% endblock %}
  587. {%- block title -%}
  588.     {% if page.title is not empty %}
  589.         {{ page.title }}
  590.     {% else %}
  591.         {{ parent() }}
  592.     {% endif %}
  593. {%- endblock -%}
  594. {% block head %}
  595.     {{ parent() }}
  596.     {% block stylesheets %}
  597.         {{ parent() }}
  598.         <link href='https://api.mapbox.com/mapbox-gl-js/v2.3.1/mapbox-gl.css' rel='stylesheet' />
  599.     {% endblock %}
  600.     {% block metatags %}
  601.         {{ parent() }}
  602.         <meta name=\"keywords\" content=\"{{ 'sylius.stores.meta_keywords'|trans|e('html_attr') }}\"/>
  603.         <meta name=\"description\" content=\"{{ 'sylius.stores.discover_our_stores'|trans|e('html_attr') }}\"/>
  604.     {% endblock %}
  605. {% endblock %}
  606. {% block content %}
  607.     <div class=\"store-list\">
  608.         <div class=\"container\">
  609.             {% include 'common/_breadcrumb.html.twig' %}
  610.             <div class=\"store-list__intro\">{{ 'sylius.stores.discover_our_stores'|trans }}</div>
  611.         </div>
  612.         <div class=\"store-list__columns\">
  613.             <div class=\"store-list__map-block\" data-aos=\"fade-right\">
  614.                 <div id='map'></div>
  615.             </div>
  616.             <div class=\"store-list__list\" data-aos=\"fade-left\">
  617.                 <h1 class=\"store-list__title\">{{ 'sylius.stores.title_discover_our_stores'|trans|raw }}</h1>
  618.                 <div class=\"store-list__legend\">
  619.                     <span>{{ 'sylius.stores.mons_store'|trans }}</span>
  620.                     <span>{{ 'sylius.stores.reseller'|trans }}</span>
  621.                 </div>
  622.                 <div class=\"store-list__items\">
  623.                     {% for store in stores %}
  624.                         <div class=\"store-list__item\">
  625.                             <a href=\"{{ path('app_shop_store_show', {code: store.code}) }}\" title=\"{{ store.nameWhenLinked|e('html_attr') }}\"><h2 class=\"store-list__item-title {% if store.isReseller %}reseller{% endif %}\"><span class=\"store-list__badge {% if store.isReseller %}reseller{% endif %}\">{{ loop.index }}</span>{{ store.name }}</h2></a>
  626.                             <div class=\"store-list__infos-section\">
  627.                                 {% if store.address != \"\" and store.address is not null %}
  628.                                     <div class=\"store-list__icon-block\">
  629.                                         <i class=\"fas fa-map-marker-alt\"></i>
  630.                                         <div>{{ store.address }}</div>
  631.                                     </div>
  632.                                 {% endif %}
  633.                                 {% if store.email != \"\" and store.email is not null %}
  634.                                     <div class=\"store-list__icon-block\">
  635.                                         <i class=\"fas fa-envelope\"></i>
  636.                                         <div><a href=\"mailto:{{ store.email }}\" title=\"{{ 'sylius.stores.write_to_the_store'|trans|e('html_attr') }}\">{{ store.email }}</a></div>
  637.                                     </div>
  638.                                 {% endif %}
  639.                                 {% if store.phone != \"\" and store.phone is not null %}
  640.                                     <div class=\"store-list__icon-block\">
  641.                                         <i class=\"fas fa-phone\"></i>
  642.                                         <div>{{ 'sylius.stores.phone'|trans }} <a href=\"tel:{{ store.phone }}\" target=\"_blank\" title=\"{{ 'sylius.stores.call_the_store'|trans|e('html_attr') }}\">{{ store.phone }}</a></div>
  643.                                     </div>
  644.                                 {% endif %}
  645.                                 {% if store.fax != \"\" and store.fax is not null %}
  646.                                     <div class=\"store-list__icon-block\">
  647.                                         <i class=\"fas fa-fax\"></i>
  648.                                         <div>{{ 'sylius.stores.fax'|trans }} {{ store.fax }}</div>
  649.                                     </div>
  650.                                 {% endif %}
  651.                                 {% if store.openingTimes != \"\" and store.openingTimes is not null %}
  652.                                     <div class=\"store-list__icon-block store-list__icon-block--opening\">
  653.                                         <i class=\"fas fa-clock\"></i>
  654.                                         <div>
  655.                                             <strong>{{ 'sylius.stores.opening_times'|trans }}</strong>
  656.                                             <br>
  657.                                             {{ store.openingTimes|raw }}
  658.                                         </div>
  659.                                     </div>
  660.                                 {% endif %}
  661.                             </div>
  662.                         </div>
  663.                     {% endfor %}
  664.                 </div>
  665.             </div>
  666.         </div>
  667.         <div class=\"citation\" data-aos=\"fade-up\">
  668.             <div class=\"container\">
  669.                 <p>{{ 'sylius.stores.discover_our_events'|trans|raw }}</p>
  670.                 <a href=\"/{{ app.request.locale|slice(0, 2) }}/blog/articles\" class=\"button button--secondary\" title=\"{{ 'sylius.stores.discover_our_news'|trans|e('html_attr') }}\">{{ 'sylius.stores.discover_our_news'|trans|raw }}</a>
  671.             </div>
  672.         </div>
  673.     </div>
  674. {% endblock %}
  675. {% block javascripts %}
  676.     {{ parent() }}
  677.     <script src='https://api.mapbox.com/mapbox-gl-js/v2.3.1/mapbox-gl.js'></script>
  678.     <script type=\"text/javascript\">
  679.         // Display the map
  680.         mapboxgl.accessToken = '{{ mapbox_key }}';
  681.         var map = new mapboxgl.Map({
  682.             container: 'map',
  683.             style: 'mapbox://styles/mapbox/light-v10',
  684.             center: [10, 47.8],
  685.             zoom: 3
  686.         });
  687.         var geojson = {
  688.             'type': 'FeatureCollection',
  689.             'features': [
  690.                 {% for store in stores %}
  691.                     {% if loop.index0 > 0 %}
  692.                         ,
  693.                     {% endif %}
  694.                     {
  695.                         'type': 'Feature',
  696.                          'geometry': {
  697.                             'type': 'Point',
  698.                             'coordinates': [{% if store.gpsLng != \"\" and store.gpsLng is not null %}{{ store.gpsLng }}{% else %}0{% endif %}, {% if store.gpsLat != \"\" and store.gpsLat is not null %}{{ store.gpsLat }}{% else %}0{% endif %}]
  699.                         },
  700.                         'properties': {
  701.                             'reseller': {% if store.isReseller %}true{% else %}false{% endif %},
  702.                             'title': '{{ store.name|e('js') }}',
  703.                             'description': `
  704.                                             <div class=\"store-list__infos-section\">
  705.                                                 <div class=\"store-list__icon-block\">
  706.                                                     <i class=\"fas fa-map-marker-alt\"></i>
  707.                                                     <div>{{ store.address }}</div>
  708.                                                 </div>
  709.                                                 {% if store.email != \"\" and store.email is not null %}
  710.                                                     <div class=\"store-list__icon-block\">
  711.                                                         <i class=\"fas fa-envelope\"></i>
  712.                                                         <div><a href=\"mailto:{{ store.email }}\" target=\"_blank\" title=\"{{ 'sylius.stores.write_to_the_store'|trans|e('html_attr') }}\">{{ store.email }}</a></div>
  713.                                                     </div>
  714.                                                 {% endif %}
  715.                                                 {% if store.phone != \"\" and store.phone is not null %}
  716.                                                     <div class=\"store-list__icon-block\">
  717.                                                         <i class=\"fas fa-phone\"></i>
  718.                                                         <div>{{ 'sylius.stores.phone'|trans|e('html_attr') }} <a href=\"tel:{{ store.phone }}\" target=\"_blank\" title=\"{{ 'sylius.stores.call_the_store'|trans|e('html_attr') }}\">{{ store.phone }}</div>
  719.                                                     </div>
  720.                                                 {% endif %}
  721.                                                 {% if store.fax != \"\" and store.fax is not null %}
  722.                                                     <div class=\"store-list__icon-block\">
  723.                                                         <i class=\"fas fa-fax\"></i>
  724.                                                         <div>{{ 'sylius.stores.fax'|trans|e('html_attr') }} {{ store.fax }}</div>
  725.                                                     </div>
  726.                                                 {% endif %}
  727.                                             </div>
  728.                                         `
  729.                         }
  730.                     }
  731.                 {% endfor %}
  732.             ]
  733.         };
  734.         // add markers to map
  735.         geojson.features.forEach(function (marker) {
  736.             // create a HTML element for each feature
  737.             var el = document.createElement('div');
  738.             el.className = marker.properties.reseller ? 'marker reseller' : 'marker';
  739.             // make a marker for each feature and add it to the map
  740.             new mapboxgl.Marker(el)
  741.                 .setLngLat(marker.geometry.coordinates)
  742.                 .setPopup(
  743.                     new mapboxgl.Popup({ offset: 25 }) // add popups
  744.                         .setHTML(
  745.                             '<h3>' +
  746.                             marker.properties.title +
  747.                             '</h3><p>' +
  748.                             marker.properties.description +
  749.                             '</p>'
  750.                         )
  751.                 )
  752.                 .addTo(map);
  753.         });
  754.         var nav = new mapboxgl.NavigationControl();
  755.         map.addControl(nav, 'top-left');
  756.     </script>
  757. {% endblock %}
  758. ""mons/stores/index.html.twig""/home/mons/site/www/templates/mons/stores/index.html.twig");
  759.     }
  760. }