var/cache/dev/twig/fe/feb5a6201985c029c9de6f1392fcd6795678a757751c724a9b396fc0b9d4fe4d.php line 43

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/show.html.twig */
  14. class __TwigTemplate_d95ac25713768b94d094ed1f9d6f3e7baba289d9b1b263823a6582a5e403d0ba 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.             'title' => [$this'block_title'],
  24.             'head' => [$this'block_head'],
  25.             'stylesheets' => [$this'block_stylesheets'],
  26.             'metatags' => [$this'block_metatags'],
  27.             'content' => [$this'block_content'],
  28.             'javascripts' => [$this'block_javascripts'],
  29.         ];
  30.     }
  31.     protected function doGetParent(array $context)
  32.     {
  33.         // line 1
  34.         return "@SyliusShop/layout-large.html.twig";
  35.     }
  36.     protected function doDisplay(array $context, array $blocks = [])
  37.     {
  38.         $macros $this->macros;
  39.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  40.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""mons/stores/show.html.twig"));
  41.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  42.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""mons/stores/show.html.twig"));
  43.         $this->parent $this->loadTemplate("@SyliusShop/layout-large.html.twig""mons/stores/show.html.twig"1);
  44.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  45.         
  46.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  47.         
  48.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  49.     }
  50.     // line 3
  51.     public function block_title($context, array $blocks = [])
  52.     {
  53.         $macros $this->macros;
  54.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  55.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  56.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  57.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  58.         // line 4
  59.         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.'4$this->source); })()), "title", [], "any"falsefalsefalse4))) {
  60.             // line 5
  61.             echo "        ";
  62.             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.'5$this->source); })()), "title", [], "any"falsefalsefalse5), "html"nulltrue);
  63.             echo "
  64.     ";
  65.         } else {
  66.             // line 7
  67.             echo "        ";
  68.             $this->displayParentBlock("title"$context$blocks);
  69.             echo "
  70.     ";
  71.         }
  72.         
  73.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  74.         
  75.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  76.     }
  77.     // line 11
  78.     public function block_head($context, array $blocks = [])
  79.     {
  80.         $macros $this->macros;
  81.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  82.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""head"));
  83.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  84.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""head"));
  85.         // line 12
  86.         echo "    ";
  87.         $this->displayParentBlock("head"$context$blocks);
  88.         echo "
  89.     ";
  90.         // line 14
  91.         $this->displayBlock('stylesheets'$context$blocks);
  92.         // line 19
  93.         echo "
  94.     ";
  95.         // line 20
  96.         $this->displayBlock('metatags'$context$blocks);
  97.         
  98.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  99.         
  100.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  101.     }
  102.     // line 14
  103.     public function block_stylesheets($context, array $blocks = [])
  104.     {
  105.         $macros $this->macros;
  106.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  107.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheets"));
  108.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  109.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheets"));
  110.         // line 15
  111.         echo "        ";
  112.         $this->displayParentBlock("stylesheets"$context$blocks);
  113.         echo "
  114.         <link href='https://api.mapbox.com/mapbox-gl-js/v2.3.1/mapbox-gl.css' rel='stylesheet' />
  115.     ";
  116.         
  117.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  118.         
  119.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  120.     }
  121.     // line 20
  122.     public function block_metatags($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""metatags"));
  127.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  128.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""metatags"));
  129.         // line 21
  130.         echo "        ";
  131.         $this->displayParentBlock("metatags"$context$blocks);
  132.         echo "
  133.         <meta name=\"keywords\" content=\"";
  134.         // line 23
  135.         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); })()), "metaKeywords", [], "any"falsefalsefalse23), "html"nulltrue);
  136.         echo "\"/>
  137.         <meta name=\"description\" content=\"";
  138.         // line 24
  139.         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.'24$this->source); })()), "metaDescription", [], "any"falsefalsefalse24), "html"nulltrue);
  140.         echo "\"/>
  141.     ";
  142.         
  143.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  144.         
  145.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  146.     }
  147.     // line 29
  148.     public function block_content($context, array $blocks = [])
  149.     {
  150.         $macros $this->macros;
  151.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  152.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  153.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  154.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  155.         // line 30
  156.         echo "    <div class=\"store-details\">
  157.         <div class=\"container\">
  158.             ";
  159.         // line 32
  160.         $this->loadTemplate("common/_breadcrumb-store.html.twig""mons/stores/show.html.twig"32)->display($context);
  161.         // line 33
  162.         echo "
  163.             <div class=\"store-details__columns\">
  164.                 ";
  165.         // line 35
  166.         if ( !twig_test_empty(twig_get_attribute($this->env$this->source, (isset($context["store"]) || array_key_exists("store"$context) ? $context["store"] : (function () { throw new RuntimeError('Variable "store" does not exist.'35$this->source); })()), "image", [], "any"falsefalsefalse35))) {
  167.             // line 36
  168.             echo "                    <img class=\"store-details__image\" src=\"";
  169.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["store"]) || array_key_exists("store"$context) ? $context["store"] : (function () { throw new RuntimeError('Variable "store" does not exist.'36$this->source); })()), "image", [], "any"falsefalsefalse36), "path", [], "any"falsefalsefalse36), "html"nulltrue);
  170.             echo "\" alt=\"";
  171.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["store"]) || array_key_exists("store"$context) ? $context["store"] : (function () { throw new RuntimeError('Variable "store" does not exist.'36$this->source); })()), "title", [], "any"falsefalsefalse36), "html_attr");
  172.             echo "\" data-aos=\"fade-right\">
  173.                 ";
  174.         }
  175.         // line 38
  176.         echo "                <div class=\"store-details__content\" data-aos=\"fade-left\">
  177.                     <h1 class=\"page__title\">
  178.                         <span class=\"page__tagline\">";
  179.         // line 40
  180.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["store"]) || array_key_exists("store"$context) ? $context["store"] : (function () { throw new RuntimeError('Variable "store" does not exist.'40$this->source); })()), "location", [], "any"falsefalsefalse40), "html"nulltrue);
  181.         echo "</span>
  182.                         ";
  183.         // line 41
  184.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["store"]) || array_key_exists("store"$context) ? $context["store"] : (function () { throw new RuntimeError('Variable "store" does not exist.'41$this->source); })()), "name", [], "any"falsefalsefalse41), "html"nulltrue);
  185.         echo "
  186.                     </h1>
  187.                     <div class=\"store-details__text\">
  188.                         ";
  189.         // line 44
  190.         echo twig_get_attribute($this->env$this->source, (isset($context["store"]) || array_key_exists("store"$context) ? $context["store"] : (function () { throw new RuntimeError('Variable "store" does not exist.'44$this->source); })()), "content", [], "any"falsefalsefalse44);
  191.         echo "
  192.                     </div>
  193.                 </div>
  194.             </div>
  195.         </div>
  196.         <div class=\"bg-dark store-details__deco\">
  197.             <div class=\"container\">
  198.                 <div class=\"store-details__infos\">
  199.                     <div class=\"store-details__infos-left\" data-aos=\"fade-right\">
  200.                         <h3 class=\"c-red bold h4 store-details__infos-title\">";
  201.         // line 53
  202.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["store"]) || array_key_exists("store"$context) ? $context["store"] : (function () { throw new RuntimeError('Variable "store" does not exist.'53$this->source); })()), "name", [], "any"falsefalsefalse53), "html"nulltrue);
  203.         echo "</h3><br>
  204.                         <div class=\"store-details__infos-section\">
  205.                             ";
  206.         // line 55
  207.         if (((twig_get_attribute($this->env$this->source, (isset($context["store"]) || array_key_exists("store"$context) ? $context["store"] : (function () { throw new RuntimeError('Variable "store" does not exist.'55$this->source); })()), "address", [], "any"falsefalsefalse55) != "") &&  !(null === twig_get_attribute($this->env$this->source, (isset($context["store"]) || array_key_exists("store"$context) ? $context["store"] : (function () { throw new RuntimeError('Variable "store" does not exist.'55$this->source); })()), "address", [], "any"falsefalsefalse55)))) {
  208.             // line 56
  209.             echo "                                <div class=\"store-details__icon-block\">
  210.                                     <i class=\"fas fa-map-marker-alt\"></i>
  211.                                     <div>
  212.                                         ";
  213.             // line 59
  214.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["store"]) || array_key_exists("store"$context) ? $context["store"] : (function () { throw new RuntimeError('Variable "store" does not exist.'59$this->source); })()), "address", [], "any"falsefalsefalse59), "html"nulltrue);
  215.             echo "<br>
  216.                                         <a href=\"https://www.google.com/maps/place/";
  217.             // line 60
  218.             echo twig_escape_filter($this->env$this->extensions['App\Twig\AppExtension']->formatForGmaps(twig_get_attribute($this->env$this->source, (isset($context["store"]) || array_key_exists("store"$context) ? $context["store"] : (function () { throw new RuntimeError('Variable "store" does not exist.'60$this->source); })()), "address", [], "any"falsefalsefalse60)), "html"nulltrue);
  219.             echo "/@";
  220.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["store"]) || array_key_exists("store"$context) ? $context["store"] : (function () { throw new RuntimeError('Variable "store" does not exist.'60$this->source); })()), "gpsLat", [], "any"falsefalsefalse60), "html"nulltrue);
  221.             echo ",";
  222.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["store"]) || array_key_exists("store"$context) ? $context["store"] : (function () { throw new RuntimeError('Variable "store" does not exist.'60$this->source); })()), "gpsLng", [], "any"falsefalsefalse60), "html"nulltrue);
  223.             echo ",17z\" title=\"";
  224.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.structures.link.see_on_gmaps"), "html"nulltrue);
  225.             echo "\" target=\"_blank\">";
  226.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.stores.access_map"), "html"nulltrue);
  227.             echo "</a>
  228.                                     </div>
  229.                                 </div>
  230.                             ";
  231.         }
  232.         // line 64
  233.         echo "                            ";
  234.         if (((twig_get_attribute($this->env$this->source, (isset($context["store"]) || array_key_exists("store"$context) ? $context["store"] : (function () { throw new RuntimeError('Variable "store" does not exist.'64$this->source); })()), "email", [], "any"falsefalsefalse64) != "") &&  !(null === twig_get_attribute($this->env$this->source, (isset($context["store"]) || array_key_exists("store"$context) ? $context["store"] : (function () { throw new RuntimeError('Variable "store" does not exist.'64$this->source); })()), "email", [], "any"falsefalsefalse64)))) {
  235.             // line 65
  236.             echo "                                <div class=\"store-details__icon-block\">
  237.                                     <i class=\"fas fa-envelope\"></i>
  238.                                     <div><a href=\"mailto:";
  239.             // line 67
  240.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["store"]) || array_key_exists("store"$context) ? $context["store"] : (function () { throw new RuntimeError('Variable "store" does not exist.'67$this->source); })()), "email", [], "any"falsefalsefalse67), "html"nulltrue);
  241.             echo "\" title=\"";
  242.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.stores.write_to_the_store"), "html_attr");
  243.             echo "\">";
  244.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["store"]) || array_key_exists("store"$context) ? $context["store"] : (function () { throw new RuntimeError('Variable "store" does not exist.'67$this->source); })()), "email", [], "any"falsefalsefalse67), "html"nulltrue);
  245.             echo "</a></div>
  246.                                 </div>
  247.                             ";
  248.         }
  249.         // line 70
  250.         echo "                            ";
  251.         if (((twig_get_attribute($this->env$this->source, (isset($context["store"]) || array_key_exists("store"$context) ? $context["store"] : (function () { throw new RuntimeError('Variable "store" does not exist.'70$this->source); })()), "phone", [], "any"falsefalsefalse70) != "") &&  !(null === twig_get_attribute($this->env$this->source, (isset($context["store"]) || array_key_exists("store"$context) ? $context["store"] : (function () { throw new RuntimeError('Variable "store" does not exist.'70$this->source); })()), "phone", [], "any"falsefalsefalse70)))) {
  252.             // line 71
  253.             echo "                                <div class=\"store-details__icon-block\">
  254.                                     <i class=\"fas fa-phone\"></i>
  255.                                     <div>";
  256.             // line 73
  257.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.stores.phone"), "html"nulltrue);
  258.             echo " <a href=\"tel:";
  259.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["store"]) || array_key_exists("store"$context) ? $context["store"] : (function () { throw new RuntimeError('Variable "store" does not exist.'73$this->source); })()), "phone", [], "any"falsefalsefalse73), "html"nulltrue);
  260.             echo "\" target=\"_blank\" title=\"";
  261.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.stores.call_the_store"), "html_attr");
  262.             echo "\">";
  263.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["store"]) || array_key_exists("store"$context) ? $context["store"] : (function () { throw new RuntimeError('Variable "store" does not exist.'73$this->source); })()), "phone", [], "any"falsefalsefalse73), "html"nulltrue);
  264.             echo "</a></div>
  265.                                 </div>
  266.                             ";
  267.         }
  268.         // line 76
  269.         echo "                            ";
  270.         if (((twig_get_attribute($this->env$this->source, (isset($context["store"]) || array_key_exists("store"$context) ? $context["store"] : (function () { throw new RuntimeError('Variable "store" does not exist.'76$this->source); })()), "fax", [], "any"falsefalsefalse76) != "") &&  !(null === twig_get_attribute($this->env$this->source, (isset($context["store"]) || array_key_exists("store"$context) ? $context["store"] : (function () { throw new RuntimeError('Variable "store" does not exist.'76$this->source); })()), "fax", [], "any"falsefalsefalse76)))) {
  271.             // line 77
  272.             echo "                                <div class=\"store-details__icon-block\">
  273.                                     <i class=\"fas fa-fax\"></i>
  274.                                     <div>";
  275.             // line 79
  276.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.stores.fax"), "html"nulltrue);
  277.             echo " ";
  278.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["store"]) || array_key_exists("store"$context) ? $context["store"] : (function () { throw new RuntimeError('Variable "store" does not exist.'79$this->source); })()), "fax", [], "any"falsefalsefalse79), "html"nulltrue);
  279.             echo "</div>
  280.                                 </div>
  281.                             ";
  282.         }
  283.         // line 82
  284.         echo "                        </div>
  285.                         <div class=\"store-details__infos-section\">
  286.                             ";
  287.         // line 84
  288.         if (((twig_get_attribute($this->env$this->source, (isset($context["store"]) || array_key_exists("store"$context) ? $context["store"] : (function () { throw new RuntimeError('Variable "store" does not exist.'84$this->source); })()), "openingTimes", [], "any"falsefalsefalse84) != "") &&  !(null === twig_get_attribute($this->env$this->source, (isset($context["store"]) || array_key_exists("store"$context) ? $context["store"] : (function () { throw new RuntimeError('Variable "store" does not exist.'84$this->source); })()), "openingTimes", [], "any"falsefalsefalse84)))) {
  289.             // line 85
  290.             echo "                                <div class=\"store-details__icon-block\">
  291.                                     <i class=\"fas fa-clock\"></i>
  292.                                     <div>
  293.                                         <strong>";
  294.             // line 88
  295.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.stores.opening_times"), "html"nulltrue);
  296.             echo "</strong>
  297.                                         <br>
  298.                                         ";
  299.             // line 90
  300.             echo twig_get_attribute($this->env$this->source, (isset($context["store"]) || array_key_exists("store"$context) ? $context["store"] : (function () { throw new RuntimeError('Variable "store" does not exist.'90$this->source); })()), "openingTimes", [], "any"falsefalsefalse90);
  301.             echo "
  302.                                     </div>
  303.                                 </div>
  304.                             ";
  305.         }
  306.         // line 94
  307.         echo "                            <br>
  308.                             <br>
  309.                             ";
  310.         // line 96
  311.         if ( !(null === twig_get_attribute($this->env$this->source, (isset($context["store"]) || array_key_exists("store"$context) ? $context["store"] : (function () { throw new RuntimeError('Variable "store" does not exist.'96$this->source); })()), "googleBusinessUrl", [], "any"falsefalsefalse96))) {
  312.             // line 97
  313.             echo "                                <a href=\"";
  314.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["store"]) || array_key_exists("store"$context) ? $context["store"] : (function () { throw new RuntimeError('Variable "store" does not exist.'97$this->source); })()), "googleBusinessUrl", [], "any"falsefalsefalse97), "html"nulltrue);
  315.             echo "\" class=\"button button--medium button--outline-red button--outline-thin\" target=\"_blank\" title=\"";
  316.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.stores.leave_a_comment"), "html_attr");
  317.             echo "\"><i class=\"fas fa-comments\"></i>";
  318.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.stores.leave_a_comment"), "html"nulltrue);
  319.             echo "</a>
  320.                             ";
  321.         }
  322.         // line 99
  323.         echo "                        </div>
  324.                     </div>
  325.                     <div class=\"store-details__infos-right\" data-aos=\"fade-left\">
  326.                         <div class=\"store-details__infos-map\">
  327.                             <div id=\"map\"></div>
  328.                         </div>
  329.                         <a href=\"";
  330.         // line 105
  331.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_shop_store_index");
  332.         echo "\" class=\"button button--outline button--medium button--outline-thin\" title=\"";
  333.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.stores.back_to_the_list"), "html_attr");
  334.         echo "\">";
  335.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.stores.back_to_the_list"), "html"nulltrue);
  336.         echo "</a>
  337.                     </div>
  338.                 </div>
  339.             </div>
  340.         </div>
  341.         <div class=\"citation\" data-aos=\"fade-up\">
  342.             <div class=\"container\">
  343.                 <p>";
  344.         // line 112
  345.         echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.stores.order_online");
  346.         echo "</p>
  347.                 <a class=\"button button--secondary button--medium\" href=\"";
  348.         // line 113
  349.         echo twig_escape_filter($this->env$this->env->getRuntime('BitBag\SyliusCmsPlugin\Twig\Runtime\RenderLinkRuntime')->getLinkForCode("contact"), "html"nulltrue);
  350.         echo "\" title=\"";
  351.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.stores.info_request"), "html_attr");
  352.         echo "\">";
  353.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.stores.info_request"), "html"nulltrue);
  354.         echo "</a>
  355.             </div>
  356.         </div>
  357.     </div>
  358. ";
  359.         
  360.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  361.         
  362.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  363.     }
  364.     // line 120
  365.     public function block_javascripts($context, array $blocks = [])
  366.     {
  367.         $macros $this->macros;
  368.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  369.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  370.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  371.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  372.         // line 121
  373.         echo "    ";
  374.         $this->displayParentBlock("javascripts"$context$blocks);
  375.         echo "
  376.     <script src='https://api.mapbox.com/mapbox-gl-js/v2.3.1/mapbox-gl.js'></script>
  377.     <script type=\"text/javascript\">
  378.         // Display the map
  379.         mapboxgl.accessToken = '";
  380.         // line 126
  381.         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.'126$this->source); })()), "html"nulltrue);
  382.         echo "';
  383.         var map = new mapboxgl.Map({
  384.             container: 'map',
  385.             style: 'mapbox://styles/mapbox/light-v10',
  386.             center: [";
  387.         // line 131
  388.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["store"]) || array_key_exists("store"$context) ? $context["store"] : (function () { throw new RuntimeError('Variable "store" does not exist.'131$this->source); })()), "gpsLng", [], "any"falsefalsefalse131), "html"nulltrue);
  389.         echo ", ";
  390.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["store"]) || array_key_exists("store"$context) ? $context["store"] : (function () { throw new RuntimeError('Variable "store" does not exist.'131$this->source); })()), "gpsLat", [], "any"falsefalsefalse131), "html"nulltrue);
  391.         echo "],
  392.             zoom: 13
  393.         });
  394.         var marker = new mapboxgl.Marker({
  395.             color: '#883412'
  396.         })
  397.             .setLngLat([";
  398.         // line 138
  399.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["store"]) || array_key_exists("store"$context) ? $context["store"] : (function () { throw new RuntimeError('Variable "store" does not exist.'138$this->source); })()), "gpsLng", [], "any"falsefalsefalse138), "html"nulltrue);
  400.         echo ", ";
  401.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["store"]) || array_key_exists("store"$context) ? $context["store"] : (function () { throw new RuntimeError('Variable "store" does not exist.'138$this->source); })()), "gpsLat", [], "any"falsefalsefalse138), "html"nulltrue);
  402.         echo "])
  403.             .addTo(map);
  404.         var nav = new mapboxgl.NavigationControl();
  405.         map.addControl(nav, 'top-left');
  406.     </script>
  407. ";
  408.         
  409.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  410.         
  411.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  412.     }
  413.     public function getTemplateName()
  414.     {
  415.         return "mons/stores/show.html.twig";
  416.     }
  417.     public function isTraitable()
  418.     {
  419.         return false;
  420.     }
  421.     public function getDebugInfo()
  422.     {
  423.         return array (  444 => 138,  432 => 131,  424 => 126,  415 => 121,  405 => 120,  386 => 113,  382 => 112,  368 => 105,  360 => 99,  350 => 97,  348 => 96,  344 => 94,  337 => 90,  332 => 88,  327 => 85,  325 => 84,  321 => 82,  313 => 79,  309 => 77,  306 => 76,  294 => 73,  290 => 71,  287 => 70,  277 => 67,  273 => 65,  270 => 64,  255 => 60,  251 => 59,  246 => 56,  244 => 55,  239 => 53,  227 => 44,  221 => 41,  217 => 40,  213 => 38,  205 => 36,  203 => 35,  199 => 33,  197 => 32,  193 => 30,  183 => 29,  171 => 24,  167 => 23,  161 => 21,  151 => 20,  136 => 15,  126 => 14,  116 => 20,  113 => 19,  111 => 14,  105 => 12,  95 => 11,  81 => 7,  75 => 5,  73 => 4,  63 => 3,  40 => 1,);
  424.     }
  425.     public function getSourceContext()
  426.     {
  427.         return new Source("{% extends '@SyliusShop/layout-large.html.twig' %}
  428. {%- block title -%}
  429.     {% if page.title is not empty %}
  430.         {{ page.title }}
  431.     {% else %}
  432.         {{ parent() }}
  433.     {% endif %}
  434. {%- endblock -%}
  435. {% block head %}
  436.     {{ parent() }}
  437.     {% block stylesheets %}
  438.         {{ parent() }}
  439.         <link href='https://api.mapbox.com/mapbox-gl-js/v2.3.1/mapbox-gl.css' rel='stylesheet' />
  440.     {% endblock %}
  441.     {% block metatags %}
  442.         {{ parent() }}
  443.         <meta name=\"keywords\" content=\"{{ page.metaKeywords }}\"/>
  444.         <meta name=\"description\" content=\"{{ page.metaDescription }}\"/>
  445.     {% endblock %}
  446. {% endblock %}
  447. {% block content %}
  448.     <div class=\"store-details\">
  449.         <div class=\"container\">
  450.             {% include 'common/_breadcrumb-store.html.twig' %}
  451.             <div class=\"store-details__columns\">
  452.                 {% if store.image is not empty %}
  453.                     <img class=\"store-details__image\" src=\"{{ store.image.path }}\" alt=\"{{ store.title|e('html_attr') }}\" data-aos=\"fade-right\">
  454.                 {% endif %}
  455.                 <div class=\"store-details__content\" data-aos=\"fade-left\">
  456.                     <h1 class=\"page__title\">
  457.                         <span class=\"page__tagline\">{{ store.location }}</span>
  458.                         {{ store.name }}
  459.                     </h1>
  460.                     <div class=\"store-details__text\">
  461.                         {{ store.content|raw }}
  462.                     </div>
  463.                 </div>
  464.             </div>
  465.         </div>
  466.         <div class=\"bg-dark store-details__deco\">
  467.             <div class=\"container\">
  468.                 <div class=\"store-details__infos\">
  469.                     <div class=\"store-details__infos-left\" data-aos=\"fade-right\">
  470.                         <h3 class=\"c-red bold h4 store-details__infos-title\">{{ store.name }}</h3><br>
  471.                         <div class=\"store-details__infos-section\">
  472.                             {% if store.address != \"\" and store.address is not null %}
  473.                                 <div class=\"store-details__icon-block\">
  474.                                     <i class=\"fas fa-map-marker-alt\"></i>
  475.                                     <div>
  476.                                         {{ store.address }}<br>
  477.                                         <a href=\"https://www.google.com/maps/place/{{ store.address|format_for_gmaps }}/@{{ store.gpsLat }},{{ store.gpsLng }},17z\" title=\"{{ 'sylius.structures.link.see_on_gmaps'|trans }}\" target=\"_blank\">{{ 'sylius.stores.access_map'|trans }}</a>
  478.                                     </div>
  479.                                 </div>
  480.                             {% endif %}
  481.                             {% if store.email != \"\" and store.email is not null %}
  482.                                 <div class=\"store-details__icon-block\">
  483.                                     <i class=\"fas fa-envelope\"></i>
  484.                                     <div><a href=\"mailto:{{ store.email }}\" title=\"{{ 'sylius.stores.write_to_the_store'|trans|e('html_attr') }}\">{{ store.email }}</a></div>
  485.                                 </div>
  486.                             {% endif %}
  487.                             {% if store.phone != \"\" and store.phone is not null %}
  488.                                 <div class=\"store-details__icon-block\">
  489.                                     <i class=\"fas fa-phone\"></i>
  490.                                     <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>
  491.                                 </div>
  492.                             {% endif %}
  493.                             {% if store.fax != \"\" and store.fax is not null %}
  494.                                 <div class=\"store-details__icon-block\">
  495.                                     <i class=\"fas fa-fax\"></i>
  496.                                     <div>{{ 'sylius.stores.fax'|trans }} {{ store.fax }}</div>
  497.                                 </div>
  498.                             {% endif %}
  499.                         </div>
  500.                         <div class=\"store-details__infos-section\">
  501.                             {% if store.openingTimes != \"\" and store.openingTimes is not null %}
  502.                                 <div class=\"store-details__icon-block\">
  503.                                     <i class=\"fas fa-clock\"></i>
  504.                                     <div>
  505.                                         <strong>{{ 'sylius.stores.opening_times'|trans }}</strong>
  506.                                         <br>
  507.                                         {{ store.openingTimes|raw }}
  508.                                     </div>
  509.                                 </div>
  510.                             {% endif %}
  511.                             <br>
  512.                             <br>
  513.                             {% if store.googleBusinessUrl is not null %}
  514.                                 <a href=\"{{ store.googleBusinessUrl }}\" class=\"button button--medium button--outline-red button--outline-thin\" target=\"_blank\" title=\"{{ 'sylius.stores.leave_a_comment'|trans|e('html_attr') }}\"><i class=\"fas fa-comments\"></i>{{ 'sylius.stores.leave_a_comment'|trans }}</a>
  515.                             {% endif %}
  516.                         </div>
  517.                     </div>
  518.                     <div class=\"store-details__infos-right\" data-aos=\"fade-left\">
  519.                         <div class=\"store-details__infos-map\">
  520.                             <div id=\"map\"></div>
  521.                         </div>
  522.                         <a href=\"{{ path('app_shop_store_index') }}\" class=\"button button--outline button--medium button--outline-thin\" title=\"{{ 'sylius.stores.back_to_the_list'|trans|e('html_attr') }}\">{{ 'sylius.stores.back_to_the_list'|trans }}</a>
  523.                     </div>
  524.                 </div>
  525.             </div>
  526.         </div>
  527.         <div class=\"citation\" data-aos=\"fade-up\">
  528.             <div class=\"container\">
  529.                 <p>{{ 'sylius.stores.order_online'|trans|raw }}</p>
  530.                 <a class=\"button button--secondary button--medium\" href=\"{{ bitbag_cms_get_link_for_code('contact') }}\" title=\"{{ 'sylius.stores.info_request'|trans|e('html_attr') }}\">{{ 'sylius.stores.info_request'|trans }}</a>
  531.             </div>
  532.         </div>
  533.     </div>
  534. {% endblock %}
  535. {% block javascripts %}
  536.     {{ parent() }}
  537.     <script src='https://api.mapbox.com/mapbox-gl-js/v2.3.1/mapbox-gl.js'></script>
  538.     <script type=\"text/javascript\">
  539.         // Display the map
  540.         mapboxgl.accessToken = '{{ mapbox_key }}';
  541.         var map = new mapboxgl.Map({
  542.             container: 'map',
  543.             style: 'mapbox://styles/mapbox/light-v10',
  544.             center: [{{ store.gpsLng }}, {{ store.gpsLat }}],
  545.             zoom: 13
  546.         });
  547.         var marker = new mapboxgl.Marker({
  548.             color: '#883412'
  549.         })
  550.             .setLngLat([{{ store.gpsLng }}, {{ store.gpsLat }}])
  551.             .addTo(map);
  552.         var nav = new mapboxgl.NavigationControl();
  553.         map.addControl(nav, 'top-left');
  554.     </script>
  555. {% endblock %}
  556. ""mons/stores/show.html.twig""/home/mons/site/www/templates/mons/stores/show.html.twig");
  557.     }
  558. }