<?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;
/* @EnetSubshop/storefront/base.html.twig */
class __TwigTemplate_5baf0a863e41a7f612e89512713405c93e96f1764ea5d7acfd369415a9f87497 extends \Twig\Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'base_main' => [$this, 'block_base_main'],
];
}
protected function doGetParent(array $context)
{
// line 2
return "@EnetSubshopRequired/storefront/base.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", "@EnetSubshop/storefront/base.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@EnetSubshop/storefront/base.html.twig"));
$this->parent = $this->loadTemplate("@EnetSubshopRequired/storefront/base.html.twig", "@EnetSubshop/storefront/base.html.twig", 2);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
// line 6
public function block_base_main($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", "base_main"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "base_main"));
// line 7
echo " ";
$this->displayParentBlock("base_main", $context, $blocks);
echo "
";
// line 9
if ((($context["controllerAction"] ?? null) == "home")) {
// line 10
echo " ";
if (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["context"] ?? null), "salesChannel", [], "any", false, false, false, 10), "translated", [], "any", false, false, false, 10), "customFields", [], "any", false, false, false, 10), "enet_adress_showasselection", [], "any", false, false, false, 10)) {
// line 11
echo " <div class=\"container\">
<div class=\"row sales-channel-footer-info\">
<div class=\"col-md-6 info-map\">
<div class=\"map-wrapper\" data-storemap=\"true\" data-coords=\"";
// line 14
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["context"] ?? null), "salesChannel", [], "any", false, false, false, 14), "translated", [], "any", false, false, false, 14), "customFields", [], "any", false, false, false, 14), "enet_subshop_gmaps_latlng", [], "any", false, false, false, 14), "html", null, true);
echo "\">
</div>
</div>
<div class=\"col-md-6 info-data\">
";
// line 18
if (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["context"] ?? null), "salesChannel", [], "any", false, false, false, 18), "translated", [], "any", false, false, false, 18), "customFields", [], "any", false, false, false, 18), "enet_frontendname", [], "any", false, false, false, 18)) {
// line 19
echo " ";
$context["name"] = twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["context"] ?? null), "salesChannel", [], "any", false, false, false, 19), "translated", [], "any", false, false, false, 19), "customFields", [], "any", false, false, false, 19), "enet_frontendname", [], "any", false, false, false, 19);
// line 20
echo " ";
} else {
// line 21
echo " ";
$context["name"] = twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["context"] ?? null), "salesChannel", [], "any", false, false, false, 21), "translated", [], "any", false, false, false, 21), "name", [], "any", false, false, false, 21);
// line 22
echo " ";
}
// line 23
echo "
";
// line 24
if (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["context"] ?? null), "salesChannel", [], "any", false, false, false, 24), "translated", [], "any", false, false, false, 24), "customFields", [], "any", false, false, false, 24), "enet_subshop_logo", [], "any", false, false, false, 24)) {
// line 25
echo " <img class=\"info-logo\" src=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["context"] ?? null), "salesChannel", [], "any", false, false, false, 25), "translated", [], "any", false, false, false, 25), "customFields", [], "any", false, false, false, 25), "enet_subshop_logo", [], "any", false, false, false, 25), "html", null, true);
echo "\" alt=\"";
echo twig_escape_filter($this->env, ($context["name"] ?? null), "html", null, true);
echo "\">
";
} else {
// line 27
echo " <img class=\"info-logo\" src=\"";
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", false, false, false, 27)) && is_array($__internal_f607aeef2c31a95a7bf963452dff024ffaeb6aafbe4603f9ca3bec57be8633f4) || $__internal_f607aeef2c31a95a7bf963452dff024ffaeb6aafbe4603f9ca3bec57be8633f4 instanceof ArrayAccess ? ($__internal_f607aeef2c31a95a7bf963452dff024ffaeb6aafbe4603f9ca3bec57be8633f4["sw-logo-desktop"] ?? null) : null)), "html", null, true);
echo "\" alt=\"";
echo twig_escape_filter($this->env, ($context["name"] ?? null), "html", null, true);
echo "\">
";
}
// line 29
echo "
<h4>";
// line 30
echo twig_escape_filter($this->env, ($context["name"] ?? null), "html", null, true);
echo "</h4>
<p>
";
// line 33
echo " ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["context"] ?? null), "salesChannel", [], "any", false, false, false, 33), "translated", [], "any", false, false, false, 33), "customFields", [], "any", false, false, false, 33), "enet_adress_street", [], "any", false, false, false, 33), "html", null, true);
echo "<br>
<br>
";
// line 36
if (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["context"] ?? null), "salesChannel", [], "any", false, false, false, 36), "translated", [], "any", false, false, false, 36), "customFields", [], "any", false, false, false, 36), "enet_adress_opentimes", [], "any", false, false, false, 36)) {
// line 37
echo " <b>Unsere Öffnungszeiten</b><br>
";
// line 38
echo twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["context"] ?? null), "salesChannel", [], "any", false, false, false, 38), "translated", [], "any", false, false, false, 38), "customFields", [], "any", false, false, false, 38), "enet_adress_opentimes", [], "any", false, false, false, 38);
echo "<br>
";
}
// line 40
echo " </p>
</div>
</div>
</div>
";
}
// line 45
echo " ";
}
// line 46
echo "
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "@EnetSubshop/storefront/base.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
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,);
}
public function getSourceContext()
{
return new Source("{% sw_extends '@Storefront/storefront/base.html.twig' %}
{#{% set isHMRMode = app.request.headers.set('hot-reload-mode', true) %}#}
{% block base_main %}
{{ parent() }}
{% if controllerAction == 'home' %}
{% if context.salesChannel.translated.customFields.enet_adress_showasselection %}
<div class=\"container\">
<div class=\"row sales-channel-footer-info\">
<div class=\"col-md-6 info-map\">
<div class=\"map-wrapper\" data-storemap=\"true\" data-coords=\"{{ context.salesChannel.translated.customFields.enet_subshop_gmaps_latlng }}\">
</div>
</div>
<div class=\"col-md-6 info-data\">
{% if context.salesChannel.translated.customFields.enet_frontendname %}
{% set name = context.salesChannel.translated.customFields.enet_frontendname %}
{% else %}
{% set name = context.salesChannel.translated.name %}
{% endif %}
{% if context.salesChannel.translated.customFields.enet_subshop_logo %}
<img class=\"info-logo\" src=\"{{ context.salesChannel.translated.customFields.enet_subshop_logo }}\" alt=\"{{ name }}\">
{% else %}
<img class=\"info-logo\" src=\"{{ shopware.theme['sw-logo-desktop'] |sw_encode_url }}\" alt=\"{{ name }}\">
{% endif %}
<h4>{{ name }}</h4>
<p>
{# {{ channel.translated.customFields.enet_postalcode }}#}
{{ context.salesChannel.translated.customFields.enet_adress_street }}<br>
<br>
{% if context.salesChannel.translated.customFields.enet_adress_opentimes %}
<b>Unsere Öffnungszeiten</b><br>
{{ context.salesChannel.translated.customFields.enet_adress_opentimes |raw }}<br>
{% endif %}
</p>
</div>
</div>
</div>
{% endif %}
{% endif %}
{% endblock %}
", "@EnetSubshop/storefront/base.html.twig", "/var/www/smeasy/html/custom/plugins/EnetSubshop/src/Resources/views/storefront/base.html.twig");
}
}