<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* mons/stores/index.html.twig */
class __TwigTemplate_b2a30e5243ab26203f9bd290234692aad3bd6b0ded090eddaa5efe07eb981fd9 extends \Twig\Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'banner' => [$this, 'block_banner'],
'title' => [$this, 'block_title'],
'head' => [$this, 'block_head'],
'stylesheets' => [$this, 'block_stylesheets'],
'metatags' => [$this, 'block_metatags'],
'content' => [$this, 'block_content'],
'javascripts' => [$this, 'block_javascripts'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "@SyliusShop/layout-large.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "mons/stores/index.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "mons/stores/index.html.twig"));
$this->parent = $this->loadTemplate("@SyliusShop/layout-large.html.twig", "mons/stores/index.html.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
// line 3
public function block_banner($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "banner"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "banner"));
// line 4
echo " ";
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"]));
echo "
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 7
public function block_title($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
// line 8
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", false, false, false, 8))) {
// line 9
echo " ";
echo twig_escape_filter($this->env, 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); })()), "title", [], "any", false, false, false, 9), "html", null, true);
echo "
";
} else {
// line 11
echo " ";
$this->displayParentBlock("title", $context, $blocks);
echo "
";
}
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 16
public function block_head($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "head"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "head"));
// line 17
echo " ";
$this->displayParentBlock("head", $context, $blocks);
echo "
";
// line 19
$this->displayBlock('stylesheets', $context, $blocks);
// line 24
echo "
";
// line 25
$this->displayBlock('metatags', $context, $blocks);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 19
public function block_stylesheets($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheets"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheets"));
// line 20
echo " ";
$this->displayParentBlock("stylesheets", $context, $blocks);
echo "
<link href='https://api.mapbox.com/mapbox-gl-js/v2.3.1/mapbox-gl.css' rel='stylesheet' />
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 25
public function block_metatags($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "metatags"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "metatags"));
// line 26
echo " ";
$this->displayParentBlock("metatags", $context, $blocks);
echo "
<meta name=\"keywords\" content=\"";
// line 28
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.stores.meta_keywords"), "html_attr");
echo "\"/>
<meta name=\"description\" content=\"";
// line 29
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.stores.discover_our_stores"), "html_attr");
echo "\"/>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 34
public function block_content($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
// line 35
echo " <div class=\"store-list\">
<div class=\"container\">
";
// line 37
$this->loadTemplate("common/_breadcrumb.html.twig", "mons/stores/index.html.twig", 37)->display($context);
// line 38
echo "
<div class=\"store-list__intro\">";
// line 39
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.stores.discover_our_stores"), "html", null, true);
echo "</div>
</div>
<div class=\"store-list__columns\">
<div class=\"store-list__map-block\" data-aos=\"fade-right\">
<div id='map'></div>
</div>
<div class=\"store-list__list\" data-aos=\"fade-left\">
<h1 class=\"store-list__title\">";
// line 46
echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.stores.title_discover_our_stores");
echo "</h1>
<div class=\"store-list__legend\">
<span>";
// line 48
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.stores.mons_store"), "html", null, true);
echo "</span>
<span>";
// line 49
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.stores.reseller"), "html", null, true);
echo "</span>
</div>
<div class=\"store-list__items\">
";
// line 52
$context['_parent'] = $context;
$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); })()));
$context['loop'] = [
'parent' => $context['_parent'],
'index0' => 0,
'index' => 1,
'first' => true,
];
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["_key"] => $context["store"]) {
// line 53
echo " <div class=\"store-list__item\">
<a href=\"";
// line 54
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", false, false, false, 54)]), "html", null, true);
echo "\" title=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["store"], "nameWhenLinked", [], "any", false, false, false, 54), "html_attr");
echo "\"><h2 class=\"store-list__item-title ";
if (twig_get_attribute($this->env, $this->source, $context["store"], "isReseller", [], "any", false, false, false, 54)) {
echo "reseller";
}
echo "\"><span class=\"store-list__badge ";
if (twig_get_attribute($this->env, $this->source, $context["store"], "isReseller", [], "any", false, false, false, 54)) {
echo "reseller";
}
echo "\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["loop"], "index", [], "any", false, false, false, 54), "html", null, true);
echo "</span>";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["store"], "name", [], "any", false, false, false, 54), "html", null, true);
echo "</h2></a>
<div class=\"store-list__infos-section\">
";
// line 56
if (((twig_get_attribute($this->env, $this->source, $context["store"], "address", [], "any", false, false, false, 56) != "") && !(null === twig_get_attribute($this->env, $this->source, $context["store"], "address", [], "any", false, false, false, 56)))) {
// line 57
echo " <div class=\"store-list__icon-block\">
<i class=\"fas fa-map-marker-alt\"></i>
<div>";
// line 59
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["store"], "address", [], "any", false, false, false, 59), "html", null, true);
echo "</div>
</div>
";
}
// line 62
echo " ";
if (((twig_get_attribute($this->env, $this->source, $context["store"], "email", [], "any", false, false, false, 62) != "") && !(null === twig_get_attribute($this->env, $this->source, $context["store"], "email", [], "any", false, false, false, 62)))) {
// line 63
echo " <div class=\"store-list__icon-block\">
<i class=\"fas fa-envelope\"></i>
<div><a href=\"mailto:";
// line 65
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["store"], "email", [], "any", false, false, false, 65), "html", null, true);
echo "\" title=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.stores.write_to_the_store"), "html_attr");
echo "\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["store"], "email", [], "any", false, false, false, 65), "html", null, true);
echo "</a></div>
</div>
";
}
// line 68
echo " ";
if (((twig_get_attribute($this->env, $this->source, $context["store"], "phone", [], "any", false, false, false, 68) != "") && !(null === twig_get_attribute($this->env, $this->source, $context["store"], "phone", [], "any", false, false, false, 68)))) {
// line 69
echo " <div class=\"store-list__icon-block\">
<i class=\"fas fa-phone\"></i>
<div>";
// line 71
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.stores.phone"), "html", null, true);
echo " <a href=\"tel:";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["store"], "phone", [], "any", false, false, false, 71), "html", null, true);
echo "\" target=\"_blank\" title=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.stores.call_the_store"), "html_attr");
echo "\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["store"], "phone", [], "any", false, false, false, 71), "html", null, true);
echo "</a></div>
</div>
";
}
// line 74
echo " ";
if (((twig_get_attribute($this->env, $this->source, $context["store"], "fax", [], "any", false, false, false, 74) != "") && !(null === twig_get_attribute($this->env, $this->source, $context["store"], "fax", [], "any", false, false, false, 74)))) {
// line 75
echo " <div class=\"store-list__icon-block\">
<i class=\"fas fa-fax\"></i>
<div>";
// line 77
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.stores.fax"), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["store"], "fax", [], "any", false, false, false, 77), "html", null, true);
echo "</div>
</div>
";
}
// line 80
echo " ";
if (((twig_get_attribute($this->env, $this->source, $context["store"], "openingTimes", [], "any", false, false, false, 80) != "") && !(null === twig_get_attribute($this->env, $this->source, $context["store"], "openingTimes", [], "any", false, false, false, 80)))) {
// line 81
echo " <div class=\"store-list__icon-block store-list__icon-block--opening\">
<i class=\"fas fa-clock\"></i>
<div>
<strong>";
// line 84
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.stores.opening_times"), "html", null, true);
echo "</strong>
<br>
";
// line 86
echo twig_get_attribute($this->env, $this->source, $context["store"], "openingTimes", [], "any", false, false, false, 86);
echo "
</div>
</div>
";
}
// line 90
echo " </div>
</div>
";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['length'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['store'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 93
echo " </div>
</div>
</div>
<div class=\"citation\" data-aos=\"fade-up\">
<div class=\"container\">
<p>";
// line 98
echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.stores.discover_our_events");
echo "</p>
<a href=\"/";
// line 99
echo twig_escape_filter($this->env, twig_slice($this->env, twig_get_attribute($this->env, $this->source, twig_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", false, false, false, 99), "locale", [], "any", false, false, false, 99), 0, 2), "html", null, true);
echo "/blog/articles\" class=\"button button--secondary\" title=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.stores.discover_our_news"), "html_attr");
echo "\">";
echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.stores.discover_our_news");
echo "</a>
</div>
</div>
</div>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 106
public function block_javascripts($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
// line 107
echo " ";
$this->displayParentBlock("javascripts", $context, $blocks);
echo "
<script src='https://api.mapbox.com/mapbox-gl-js/v2.3.1/mapbox-gl.js'></script>
<script type=\"text/javascript\">
// Display the map
mapboxgl.accessToken = '";
// line 112
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", null, true);
echo "';
var map = new mapboxgl.Map({
container: 'map',
style: 'mapbox://styles/mapbox/light-v10',
center: [10, 47.8],
zoom: 3
});
var geojson = {
'type': 'FeatureCollection',
'features': [
";
// line 124
$context['_parent'] = $context;
$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); })()));
$context['loop'] = [
'parent' => $context['_parent'],
'index0' => 0,
'index' => 1,
'first' => true,
];
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["_key"] => $context["store"]) {
// line 125
echo " ";
if ((twig_get_attribute($this->env, $this->source, $context["loop"], "index0", [], "any", false, false, false, 125) > 0)) {
// line 126
echo " ,
";
}
// line 128
echo " {
'type': 'Feature',
'geometry': {
'type': 'Point',
'coordinates': [";
// line 132
if (((twig_get_attribute($this->env, $this->source, $context["store"], "gpsLng", [], "any", false, false, false, 132) != "") && !(null === twig_get_attribute($this->env, $this->source, $context["store"], "gpsLng", [], "any", false, false, false, 132)))) {
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["store"], "gpsLng", [], "any", false, false, false, 132), "html", null, true);
} else {
echo "0";
}
echo ", ";
if (((twig_get_attribute($this->env, $this->source, $context["store"], "gpsLat", [], "any", false, false, false, 132) != "") && !(null === twig_get_attribute($this->env, $this->source, $context["store"], "gpsLat", [], "any", false, false, false, 132)))) {
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["store"], "gpsLat", [], "any", false, false, false, 132), "html", null, true);
} else {
echo "0";
}
echo "]
},
'properties': {
'reseller': ";
// line 135
if (twig_get_attribute($this->env, $this->source, $context["store"], "isReseller", [], "any", false, false, false, 135)) {
echo "true";
} else {
echo "false";
}
echo ",
'title': '";
// line 136
echo twig_escape_filter($this->env, twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["store"], "name", [], "any", false, false, false, 136), "js"), "html", null, true);
echo "',
'description': `
<div class=\"store-list__infos-section\">
<div class=\"store-list__icon-block\">
<i class=\"fas fa-map-marker-alt\"></i>
<div>";
// line 141
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["store"], "address", [], "any", false, false, false, 141), "html", null, true);
echo "</div>
</div>
";
// line 143
if (((twig_get_attribute($this->env, $this->source, $context["store"], "email", [], "any", false, false, false, 143) != "") && !(null === twig_get_attribute($this->env, $this->source, $context["store"], "email", [], "any", false, false, false, 143)))) {
// line 144
echo " <div class=\"store-list__icon-block\">
<i class=\"fas fa-envelope\"></i>
<div><a href=\"mailto:";
// line 146
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["store"], "email", [], "any", false, false, false, 146), "html", null, true);
echo "\" target=\"_blank\" title=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.stores.write_to_the_store"), "html_attr");
echo "\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["store"], "email", [], "any", false, false, false, 146), "html", null, true);
echo "</a></div>
</div>
";
}
// line 149
echo " ";
if (((twig_get_attribute($this->env, $this->source, $context["store"], "phone", [], "any", false, false, false, 149) != "") && !(null === twig_get_attribute($this->env, $this->source, $context["store"], "phone", [], "any", false, false, false, 149)))) {
// line 150
echo " <div class=\"store-list__icon-block\">
<i class=\"fas fa-phone\"></i>
<div>";
// line 152
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.stores.phone"), "html_attr");
echo " <a href=\"tel:";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["store"], "phone", [], "any", false, false, false, 152), "html", null, true);
echo "\" target=\"_blank\" title=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.stores.call_the_store"), "html_attr");
echo "\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["store"], "phone", [], "any", false, false, false, 152), "html", null, true);
echo "</div>
</div>
";
}
// line 155
echo " ";
if (((twig_get_attribute($this->env, $this->source, $context["store"], "fax", [], "any", false, false, false, 155) != "") && !(null === twig_get_attribute($this->env, $this->source, $context["store"], "fax", [], "any", false, false, false, 155)))) {
// line 156
echo " <div class=\"store-list__icon-block\">
<i class=\"fas fa-fax\"></i>
<div>";
// line 158
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.stores.fax"), "html_attr");
echo " ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["store"], "fax", [], "any", false, false, false, 158), "html", null, true);
echo "</div>
</div>
";
}
// line 161
echo " </div>
`
}
}
";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['length'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['store'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 166
echo " ]
};
// add markers to map
geojson.features.forEach(function (marker) {
// create a HTML element for each feature
var el = document.createElement('div');
el.className = marker.properties.reseller ? 'marker reseller' : 'marker';
// make a marker for each feature and add it to the map
new mapboxgl.Marker(el)
.setLngLat(marker.geometry.coordinates)
.setPopup(
new mapboxgl.Popup({ offset: 25 }) // add popups
.setHTML(
'<h3>' +
marker.properties.title +
'</h3><p>' +
marker.properties.description +
'</p>'
)
)
.addTo(map);
});
var nav = new mapboxgl.NavigationControl();
map.addControl(nav, 'top-left');
</script>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "mons/stores/index.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
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,);
}
public function getSourceContext()
{
return new Source("{% extends '@SyliusShop/layout-large.html.twig' %}
{% block banner %}
{{ render(url('odiseo_sylius_banner_plugin_shop_partial_banner', {'template': '@SyliusShop/Banner/_banner-nos-boutiques.html.twig'})) }}
{% endblock %}
{%- block title -%}
{% if page.title is not empty %}
{{ page.title }}
{% else %}
{{ parent() }}
{% endif %}
{%- endblock -%}
{% block head %}
{{ parent() }}
{% block stylesheets %}
{{ parent() }}
<link href='https://api.mapbox.com/mapbox-gl-js/v2.3.1/mapbox-gl.css' rel='stylesheet' />
{% endblock %}
{% block metatags %}
{{ parent() }}
<meta name=\"keywords\" content=\"{{ 'sylius.stores.meta_keywords'|trans|e('html_attr') }}\"/>
<meta name=\"description\" content=\"{{ 'sylius.stores.discover_our_stores'|trans|e('html_attr') }}\"/>
{% endblock %}
{% endblock %}
{% block content %}
<div class=\"store-list\">
<div class=\"container\">
{% include 'common/_breadcrumb.html.twig' %}
<div class=\"store-list__intro\">{{ 'sylius.stores.discover_our_stores'|trans }}</div>
</div>
<div class=\"store-list__columns\">
<div class=\"store-list__map-block\" data-aos=\"fade-right\">
<div id='map'></div>
</div>
<div class=\"store-list__list\" data-aos=\"fade-left\">
<h1 class=\"store-list__title\">{{ 'sylius.stores.title_discover_our_stores'|trans|raw }}</h1>
<div class=\"store-list__legend\">
<span>{{ 'sylius.stores.mons_store'|trans }}</span>
<span>{{ 'sylius.stores.reseller'|trans }}</span>
</div>
<div class=\"store-list__items\">
{% for store in stores %}
<div class=\"store-list__item\">
<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>
<div class=\"store-list__infos-section\">
{% if store.address != \"\" and store.address is not null %}
<div class=\"store-list__icon-block\">
<i class=\"fas fa-map-marker-alt\"></i>
<div>{{ store.address }}</div>
</div>
{% endif %}
{% if store.email != \"\" and store.email is not null %}
<div class=\"store-list__icon-block\">
<i class=\"fas fa-envelope\"></i>
<div><a href=\"mailto:{{ store.email }}\" title=\"{{ 'sylius.stores.write_to_the_store'|trans|e('html_attr') }}\">{{ store.email }}</a></div>
</div>
{% endif %}
{% if store.phone != \"\" and store.phone is not null %}
<div class=\"store-list__icon-block\">
<i class=\"fas fa-phone\"></i>
<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>
</div>
{% endif %}
{% if store.fax != \"\" and store.fax is not null %}
<div class=\"store-list__icon-block\">
<i class=\"fas fa-fax\"></i>
<div>{{ 'sylius.stores.fax'|trans }} {{ store.fax }}</div>
</div>
{% endif %}
{% if store.openingTimes != \"\" and store.openingTimes is not null %}
<div class=\"store-list__icon-block store-list__icon-block--opening\">
<i class=\"fas fa-clock\"></i>
<div>
<strong>{{ 'sylius.stores.opening_times'|trans }}</strong>
<br>
{{ store.openingTimes|raw }}
</div>
</div>
{% endif %}
</div>
</div>
{% endfor %}
</div>
</div>
</div>
<div class=\"citation\" data-aos=\"fade-up\">
<div class=\"container\">
<p>{{ 'sylius.stores.discover_our_events'|trans|raw }}</p>
<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>
</div>
</div>
</div>
{% endblock %}
{% block javascripts %}
{{ parent() }}
<script src='https://api.mapbox.com/mapbox-gl-js/v2.3.1/mapbox-gl.js'></script>
<script type=\"text/javascript\">
// Display the map
mapboxgl.accessToken = '{{ mapbox_key }}';
var map = new mapboxgl.Map({
container: 'map',
style: 'mapbox://styles/mapbox/light-v10',
center: [10, 47.8],
zoom: 3
});
var geojson = {
'type': 'FeatureCollection',
'features': [
{% for store in stores %}
{% if loop.index0 > 0 %}
,
{% endif %}
{
'type': 'Feature',
'geometry': {
'type': 'Point',
'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 %}]
},
'properties': {
'reseller': {% if store.isReseller %}true{% else %}false{% endif %},
'title': '{{ store.name|e('js') }}',
'description': `
<div class=\"store-list__infos-section\">
<div class=\"store-list__icon-block\">
<i class=\"fas fa-map-marker-alt\"></i>
<div>{{ store.address }}</div>
</div>
{% if store.email != \"\" and store.email is not null %}
<div class=\"store-list__icon-block\">
<i class=\"fas fa-envelope\"></i>
<div><a href=\"mailto:{{ store.email }}\" target=\"_blank\" title=\"{{ 'sylius.stores.write_to_the_store'|trans|e('html_attr') }}\">{{ store.email }}</a></div>
</div>
{% endif %}
{% if store.phone != \"\" and store.phone is not null %}
<div class=\"store-list__icon-block\">
<i class=\"fas fa-phone\"></i>
<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>
</div>
{% endif %}
{% if store.fax != \"\" and store.fax is not null %}
<div class=\"store-list__icon-block\">
<i class=\"fas fa-fax\"></i>
<div>{{ 'sylius.stores.fax'|trans|e('html_attr') }} {{ store.fax }}</div>
</div>
{% endif %}
</div>
`
}
}
{% endfor %}
]
};
// add markers to map
geojson.features.forEach(function (marker) {
// create a HTML element for each feature
var el = document.createElement('div');
el.className = marker.properties.reseller ? 'marker reseller' : 'marker';
// make a marker for each feature and add it to the map
new mapboxgl.Marker(el)
.setLngLat(marker.geometry.coordinates)
.setPopup(
new mapboxgl.Popup({ offset: 25 }) // add popups
.setHTML(
'<h3>' +
marker.properties.title +
'</h3><p>' +
marker.properties.description +
'</p>'
)
)
.addTo(map);
});
var nav = new mapboxgl.NavigationControl();
map.addControl(nav, 'top-left');
</script>
{% endblock %}
", "mons/stores/index.html.twig", "/home/mons/site/www/templates/mons/stores/index.html.twig");
}
}