var/cache/dev_h56d8cfce56627ac02b444166a4282397/twig/6b/6b64cd730e238129f30b361883469608f24dc94f1fcf98b092086c29656f19ca.php line 38

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. /* @EnetSubshop/storefront/base.html.twig */
  14. class __TwigTemplate_5baf0a863e41a7f612e89512713405c93e96f1764ea5d7acfd369415a9f87497 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.             'base_main' => [$this'block_base_main'],
  24.         ];
  25.     }
  26.     protected function doGetParent(array $context)
  27.     {
  28.         // line 2
  29.         return "@EnetSubshopRequired/storefront/base.html.twig";
  30.     }
  31.     protected function doDisplay(array $context, array $blocks = [])
  32.     {
  33.         $macros $this->macros;
  34.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  35.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@EnetSubshop/storefront/base.html.twig"));
  36.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  37.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@EnetSubshop/storefront/base.html.twig"));
  38.         $this->parent $this->loadTemplate("@EnetSubshopRequired/storefront/base.html.twig""@EnetSubshop/storefront/base.html.twig"2);
  39.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  40.         
  41.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  42.         
  43.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  44.     }
  45.     // line 6
  46.     public function block_base_main($context, array $blocks = [])
  47.     {
  48.         $macros $this->macros;
  49.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  50.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""base_main"));
  51.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  52.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""base_main"));
  53.         // line 7
  54.         echo "    ";
  55.         $this->displayParentBlock("base_main"$context$blocks);
  56.         echo "
  57.     ";
  58.         // line 9
  59.         if ((($context["controllerAction"] ?? null) == "home")) {
  60.             // line 10
  61.             echo "        ";
  62.             if (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, ($context["context"] ?? null), "salesChannel", [], "any"falsefalsefalse10), "translated", [], "any"falsefalsefalse10), "customFields", [], "any"falsefalsefalse10), "enet_adress_showasselection", [], "any"falsefalsefalse10)) {
  63.                 // line 11
  64.                 echo "            <div class=\"container\">
  65.                 <div class=\"row sales-channel-footer-info\">
  66.                     <div class=\"col-md-6 info-map\">
  67.                         <div class=\"map-wrapper\" data-storemap=\"true\" data-coords=\"";
  68.                 // line 14
  69.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, ($context["context"] ?? null), "salesChannel", [], "any"falsefalsefalse14), "translated", [], "any"falsefalsefalse14), "customFields", [], "any"falsefalsefalse14), "enet_subshop_gmaps_latlng", [], "any"falsefalsefalse14), "html"nulltrue);
  70.                 echo "\">
  71.                         </div>
  72.                     </div>
  73.                     <div class=\"col-md-6 info-data\">
  74.                         ";
  75.                 // line 18
  76.                 if (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, ($context["context"] ?? null), "salesChannel", [], "any"falsefalsefalse18), "translated", [], "any"falsefalsefalse18), "customFields", [], "any"falsefalsefalse18), "enet_frontendname", [], "any"falsefalsefalse18)) {
  77.                     // line 19
  78.                     echo "                            ";
  79.                     $context["name"] = twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, ($context["context"] ?? null), "salesChannel", [], "any"falsefalsefalse19), "translated", [], "any"falsefalsefalse19), "customFields", [], "any"falsefalsefalse19), "enet_frontendname", [], "any"falsefalsefalse19);
  80.                     // line 20
  81.                     echo "                        ";
  82.                 } else {
  83.                     // line 21
  84.                     echo "                            ";
  85.                     $context["name"] = twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, ($context["context"] ?? null), "salesChannel", [], "any"falsefalsefalse21), "translated", [], "any"falsefalsefalse21), "name", [], "any"falsefalsefalse21);
  86.                     // line 22
  87.                     echo "                        ";
  88.                 }
  89.                 // line 23
  90.                 echo "
  91.                         ";
  92.                 // line 24
  93.                 if (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, ($context["context"] ?? null), "salesChannel", [], "any"falsefalsefalse24), "translated", [], "any"falsefalsefalse24), "customFields", [], "any"falsefalsefalse24), "enet_subshop_logo", [], "any"falsefalsefalse24)) {
  94.                     // line 25
  95.                     echo "                            <img class=\"info-logo\" src=\"";
  96.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, ($context["context"] ?? null), "salesChannel", [], "any"falsefalsefalse25), "translated", [], "any"falsefalsefalse25), "customFields", [], "any"falsefalsefalse25), "enet_subshop_logo", [], "any"falsefalsefalse25), "html"nulltrue);
  97.                     echo "\" alt=\"";
  98.                     echo twig_escape_filter($this->env, ($context["name"] ?? null), "html"nulltrue);
  99.                     echo "\">
  100.                         ";
  101.                 } else {
  102.                     // line 27
  103.                     echo "                            <img class=\"info-logo\" src=\"";
  104.                     echo twig_escape_filter($this->env$this->extensions['Shopware\Storefront\Framework\Twig\Extension\UrlEncodingTwigFilter']->encodeUrl((($__internal_f607aeef2c31a95a7bf963452dff024ffaeb6aafbe4603f9ca3bec57be8633f4 twig_get_attribute($this->env$this->source, ($context["shopware"] ?? null), "theme", [], "any"falsefalsefalse27)) && is_array($__internal_f607aeef2c31a95a7bf963452dff024ffaeb6aafbe4603f9ca3bec57be8633f4) || $__internal_f607aeef2c31a95a7bf963452dff024ffaeb6aafbe4603f9ca3bec57be8633f4 instanceof ArrayAccess ? ($__internal_f607aeef2c31a95a7bf963452dff024ffaeb6aafbe4603f9ca3bec57be8633f4["sw-logo-desktop"] ?? null) : null)), "html"nulltrue);
  105.                     echo "\" alt=\"";
  106.                     echo twig_escape_filter($this->env, ($context["name"] ?? null), "html"nulltrue);
  107.                     echo "\">
  108.                         ";
  109.                 }
  110.                 // line 29
  111.                 echo "
  112.                         <h4>";
  113.                 // line 30
  114.                 echo twig_escape_filter($this->env, ($context["name"] ?? null), "html"nulltrue);
  115.                 echo "</h4>
  116.                         <p>
  117.             ";
  118.                 // line 33
  119.                 echo "                            ";
  120.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, ($context["context"] ?? null), "salesChannel", [], "any"falsefalsefalse33), "translated", [], "any"falsefalsefalse33), "customFields", [], "any"falsefalsefalse33), "enet_adress_street", [], "any"falsefalsefalse33), "html"nulltrue);
  121.                 echo "<br>
  122.                             <br>
  123.                             ";
  124.                 // line 36
  125.                 if (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, ($context["context"] ?? null), "salesChannel", [], "any"falsefalsefalse36), "translated", [], "any"falsefalsefalse36), "customFields", [], "any"falsefalsefalse36), "enet_adress_opentimes", [], "any"falsefalsefalse36)) {
  126.                     // line 37
  127.                     echo "                                <b>Unsere Ã–ffnungszeiten</b><br>
  128.                                 ";
  129.                     // line 38
  130.                     echo twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, ($context["context"] ?? null), "salesChannel", [], "any"falsefalsefalse38), "translated", [], "any"falsefalsefalse38), "customFields", [], "any"falsefalsefalse38), "enet_adress_opentimes", [], "any"falsefalsefalse38);
  131.                     echo "<br>
  132.                             ";
  133.                 }
  134.                 // line 40
  135.                 echo "                        </p>
  136.                     </div>
  137.                 </div>
  138.             </div>
  139.         ";
  140.             }
  141.             // line 45
  142.             echo "    ";
  143.         }
  144.         // line 46
  145.         echo "
  146. ";
  147.         
  148.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  149.         
  150.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  151.     }
  152.     public function getTemplateName()
  153.     {
  154.         return "@EnetSubshop/storefront/base.html.twig";
  155.     }
  156.     public function isTraitable()
  157.     {
  158.         return false;
  159.     }
  160.     public function getDebugInfo()
  161.     {
  162.         return array (  161 => 46,  158 => 45,  151 => 40,  146 => 38,  143 => 37,  141 => 36,  134 => 33,  129 => 30,  126 => 29,  118 => 27,  110 => 25,  108 => 24,  105 => 23,  102 => 22,  99 => 21,  96 => 20,  93 => 19,  91 => 18,  84 => 14,  79 => 11,  76 => 10,  74 => 9,  68 => 7,  58 => 6,  35 => 2,);
  163.     }
  164.     public function getSourceContext()
  165.     {
  166.         return new Source("{% sw_extends '@Storefront/storefront/base.html.twig' %}
  167. {#{% set isHMRMode = app.request.headers.set('hot-reload-mode', true) %}#}
  168. {% block base_main %}
  169.     {{ parent() }}
  170.     {% if controllerAction == 'home' %}
  171.         {% if context.salesChannel.translated.customFields.enet_adress_showasselection %}
  172.             <div class=\"container\">
  173.                 <div class=\"row sales-channel-footer-info\">
  174.                     <div class=\"col-md-6 info-map\">
  175.                         <div class=\"map-wrapper\" data-storemap=\"true\" data-coords=\"{{ context.salesChannel.translated.customFields.enet_subshop_gmaps_latlng }}\">
  176.                         </div>
  177.                     </div>
  178.                     <div class=\"col-md-6 info-data\">
  179.                         {% if context.salesChannel.translated.customFields.enet_frontendname %}
  180.                             {% set name = context.salesChannel.translated.customFields.enet_frontendname %}
  181.                         {% else %}
  182.                             {% set name = context.salesChannel.translated.name %}
  183.                         {% endif %}
  184.                         {% if context.salesChannel.translated.customFields.enet_subshop_logo %}
  185.                             <img class=\"info-logo\" src=\"{{ context.salesChannel.translated.customFields.enet_subshop_logo }}\" alt=\"{{ name }}\">
  186.                         {% else %}
  187.                             <img class=\"info-logo\" src=\"{{ shopware.theme['sw-logo-desktop'] |sw_encode_url }}\" alt=\"{{ name }}\">
  188.                         {% endif %}
  189.                         <h4>{{ name }}</h4>
  190.                         <p>
  191.             {#                {{ channel.translated.customFields.enet_postalcode }}#}
  192.                             {{ context.salesChannel.translated.customFields.enet_adress_street }}<br>
  193.                             <br>
  194.                             {% if context.salesChannel.translated.customFields.enet_adress_opentimes %}
  195.                                 <b>Unsere Ã–ffnungszeiten</b><br>
  196.                                 {{ context.salesChannel.translated.customFields.enet_adress_opentimes |raw }}<br>
  197.                             {% endif %}
  198.                         </p>
  199.                     </div>
  200.                 </div>
  201.             </div>
  202.         {% endif %}
  203.     {% endif %}
  204. {% endblock %}
  205. ""@EnetSubshop/storefront/base.html.twig""/var/www/smeasy/html/custom/plugins/EnetSubshop/src/Resources/views/storefront/base.html.twig");
  206.     }
  207. }