var/cache/dev_h566465a63b35a62ac1d86d97313f5abd/twig/d4/d406a404e0e7ee77203fcd382daee1e009b639b33824adceb008dfcb978fccd7.php line 57

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. /* @FlixxSharingBarSW6/storefront/base.html.twig */
  14. class __TwigTemplate_8c3011db9666e6efece267aa583f7aa7739615829160252bb899b0d525c72c8a 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_header' => [$this'block_base_header'],
  24.         ];
  25.     }
  26.     protected function doGetParent(array $context)
  27.     {
  28.         // line 2
  29.         return "@WesioWhatsApp6/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""@FlixxSharingBarSW6/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""@FlixxSharingBarSW6/storefront/base.html.twig"));
  38.         // line 3
  39.         $context["sharingBarNetworks"] = twig_get_attribute($this->env$this->source, (($__internal_f607aeef2c31a95a7bf963452dff024ffaeb6aafbe4603f9ca3bec57be8633f4 twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, ($context["context"] ?? null), "context", [], "any"falsefalsefalse3), "extensions", [], "any"falsefalsefalse3)) && is_array($__internal_f607aeef2c31a95a7bf963452dff024ffaeb6aafbe4603f9ca3bec57be8633f4) || $__internal_f607aeef2c31a95a7bf963452dff024ffaeb6aafbe4603f9ca3bec57be8633f4 instanceof ArrayAccess ? ($__internal_f607aeef2c31a95a7bf963452dff024ffaeb6aafbe4603f9ca3bec57be8633f4["flixSharingBar"] ?? null) : null), "get", [=> "networks"], "method"falsefalsefalse3);
  40.         // line 4
  41.         $context["sharingBarConfig"] = twig_get_attribute($this->env$this->source, (($__internal_62824350bc4502ee19dbc2e99fc6bdd3bd90e7d8dd6e72f42c35efd048542144 twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, ($context["context"] ?? null), "context", [], "any"falsefalsefalse4), "extensions", [], "any"falsefalsefalse4)) && is_array($__internal_62824350bc4502ee19dbc2e99fc6bdd3bd90e7d8dd6e72f42c35efd048542144) || $__internal_62824350bc4502ee19dbc2e99fc6bdd3bd90e7d8dd6e72f42c35efd048542144 instanceof ArrayAccess ? ($__internal_62824350bc4502ee19dbc2e99fc6bdd3bd90e7d8dd6e72f42c35efd048542144["flixSharingBar"] ?? null) : null), "get", [=> "config"], "method"falsefalsefalse4);
  42.         // line 5
  43.         $context["isArticlePage"] = (($context["activeRoute"] ?? null) === "frontend.detail.page");
  44.         // line 6
  45.         $context["renderInBody"] = false;
  46.         // line 2
  47.         $this->parent $this->loadTemplate("@WesioWhatsApp6/storefront/base.html.twig""@FlixxSharingBarSW6/storefront/base.html.twig"2);
  48.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  49.         
  50.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  51.         
  52.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  53.     }
  54.     // line 9
  55.     public function block_base_header($context, array $blocks = [])
  56.     {
  57.         $macros $this->macros;
  58.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  59.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""base_header"));
  60.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  61.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""base_header"));
  62.         // line 10
  63.         echo "
  64.     ";
  65.         // line 11
  66.         if ((($__internal_1cfccaec8dd2e8578ccb026fbe7f2e7e29ac2ed5deb976639c5fc99a6ea8583b = ($context["sharingBarConfig"] ?? null)) && is_array($__internal_1cfccaec8dd2e8578ccb026fbe7f2e7e29ac2ed5deb976639c5fc99a6ea8583b) || $__internal_1cfccaec8dd2e8578ccb026fbe7f2e7e29ac2ed5deb976639c5fc99a6ea8583b instanceof ArrayAccess ? ($__internal_1cfccaec8dd2e8578ccb026fbe7f2e7e29ac2ed5deb976639c5fc99a6ea8583b["flixSbArticleDetailOnly"] ?? null) : null)) {
  67.             // line 12
  68.             echo "        ";
  69.             if (((($context["isArticlePage"] ?? null) && ((($__internal_68aa442c1d43d3410ea8f958ba9090f3eaa9a76f8de8fc9be4d6c7389ba28002 = ($context["sharingBarConfig"] ?? null)) && is_array($__internal_68aa442c1d43d3410ea8f958ba9090f3eaa9a76f8de8fc9be4d6c7389ba28002) || $__internal_68aa442c1d43d3410ea8f958ba9090f3eaa9a76f8de8fc9be4d6c7389ba28002 instanceof ArrayAccess ? ($__internal_68aa442c1d43d3410ea8f958ba9090f3eaa9a76f8de8fc9be4d6c7389ba28002["flixSbPositionArticle"] ?? null) : null) == 1)) && ((($__internal_d7fc55f1a54b629533d60b43063289db62e68921ee7a5f8de562bd9d4a2b7ad4 =             // line 13
  70. ($context["sharingBarConfig"] ?? null)) && is_array($__internal_d7fc55f1a54b629533d60b43063289db62e68921ee7a5f8de562bd9d4a2b7ad4) || $__internal_d7fc55f1a54b629533d60b43063289db62e68921ee7a5f8de562bd9d4a2b7ad4 instanceof ArrayAccess ? ($__internal_d7fc55f1a54b629533d60b43063289db62e68921ee7a5f8de562bd9d4a2b7ad4["flixSbPosition"] ?? null) : null) != 3))) {
  71.                 // line 15
  72.                 echo "            ";
  73.                 $context["renderInBody"] = true;
  74.                 // line 16
  75.                 echo "        ";
  76.             }
  77.             // line 17
  78.             echo "    ";
  79.         } else {
  80.             // line 18
  81.             echo "        ";
  82.             if (($context["isArticlePage"] ?? null)) {
  83.                 // line 19
  84.                 echo "            ";
  85.                 if ((((($__internal_01476f8db28655ee4ee02ea2d17dd5a92599be76304f08cd8bc0e05aced30666 = ($context["sharingBarConfig"] ?? null)) && is_array($__internal_01476f8db28655ee4ee02ea2d17dd5a92599be76304f08cd8bc0e05aced30666) || $__internal_01476f8db28655ee4ee02ea2d17dd5a92599be76304f08cd8bc0e05aced30666 instanceof ArrayAccess ? ($__internal_01476f8db28655ee4ee02ea2d17dd5a92599be76304f08cd8bc0e05aced30666["flixSbPositionArticle"] ?? null) : null) == 1) && ((($__internal_01c35b74bd85735098add188b3f8372ba465b232ab8298cb582c60f493d3c22e =                 // line 20
  86. ($context["sharingBarConfig"] ?? null)) && is_array($__internal_01c35b74bd85735098add188b3f8372ba465b232ab8298cb582c60f493d3c22e) || $__internal_01c35b74bd85735098add188b3f8372ba465b232ab8298cb582c60f493d3c22e instanceof ArrayAccess ? ($__internal_01c35b74bd85735098add188b3f8372ba465b232ab8298cb582c60f493d3c22e["flixSbPosition"] ?? null) : null) != 3))) {
  87.                     // line 21
  88.                     echo "                ";
  89.                     $context["renderInBody"] = true;
  90.                     // line 22
  91.                     echo "            ";
  92.                 }
  93.                 // line 23
  94.                 echo "        ";
  95.             } else {
  96.                 // line 24
  97.                 echo "            ";
  98.                 if (((($__internal_63ad1f9a2bf4db4af64b010785e9665558fdcac0e8db8b5b413ed986c62dbb52 = ($context["sharingBarConfig"] ?? null)) && is_array($__internal_63ad1f9a2bf4db4af64b010785e9665558fdcac0e8db8b5b413ed986c62dbb52) || $__internal_63ad1f9a2bf4db4af64b010785e9665558fdcac0e8db8b5b413ed986c62dbb52 instanceof ArrayAccess ? ($__internal_63ad1f9a2bf4db4af64b010785e9665558fdcac0e8db8b5b413ed986c62dbb52["flixSbPosition"] ?? null) : null) != 3)) {
  99.                     // line 25
  100.                     echo "                ";
  101.                     $context["renderInBody"] = true;
  102.                     // line 26
  103.                     echo "             ";
  104.                 }
  105.                 // line 27
  106.                 echo "        ";
  107.             }
  108.             // line 28
  109.             echo "    ";
  110.         }
  111.         // line 29
  112.         echo "
  113.     ";
  114.         // line 31
  115.         if (($context["renderInBody"] ?? null)) {
  116.             // line 32
  117.             echo "
  118.         ";
  119.             // line 33
  120.             $this->loadTemplate("@FlixxSharingBarSW6/storefront/flixx-sharing-bar-sw6/icons.html.twig""@FlixxSharingBarSW6/storefront/base.html.twig"33)->display(twig_array_merge($context, ["sharingBarNetworks" =>             // line 34
  121. ($context["sharingBarNetworks"] ?? null), "sharingBarConfig" =>             // line 35
  122. ($context["sharingBarConfig"] ?? null), "isArticlePage" =>             // line 36
  123. ($context["isArticlePage"] ?? null)]));
  124.             // line 39
  125.             echo "    ";
  126.         }
  127.         // line 40
  128.         echo "
  129.     ";
  130.         // line 41
  131.         $this->displayParentBlock("base_header"$context$blocks);
  132.         echo "
  133. ";
  134.         
  135.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  136.         
  137.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  138.     }
  139.     public function getTemplateName()
  140.     {
  141.         return "@FlixxSharingBarSW6/storefront/base.html.twig";
  142.     }
  143.     public function isTraitable()
  144.     {
  145.         return false;
  146.     }
  147.     public function getDebugInfo()
  148.     {
  149.         return array (  146 => 41,  143 => 40,  140 => 39,  138 => 36,  137 => 35,  136 => 34,  135 => 33,  132 => 32,  130 => 31,  126 => 29,  123 => 28,  120 => 27,  117 => 26,  114 => 25,  111 => 24,  108 => 23,  105 => 22,  102 => 21,  100 => 20,  98 => 19,  95 => 18,  92 => 17,  89 => 16,  86 => 15,  84 => 13,  82 => 12,  80 => 11,  77 => 10,  67 => 9,  56 => 2,  54 => 6,  52 => 5,  50 => 4,  48 => 3,  35 => 2,);
  150.     }
  151.     public function getSourceContext()
  152.     {
  153.         return new Source("{% sw_extends '@Storefront/storefront/base.html.twig' %}
  154. {% set sharingBarNetworks = context.context.extensions['flixSharingBar'].get('networks') %}
  155. {% set sharingBarConfig = context.context.extensions['flixSharingBar'].get('config') %}
  156. {% set isArticlePage = activeRoute is same as('frontend.detail.page') %}
  157. {% set renderInBody = false %}
  158. {% block base_header %}
  159.     {% if sharingBarConfig['flixSbArticleDetailOnly'] %}
  160.         {% if isArticlePage and (sharingBarConfig['flixSbPositionArticle'] == 1)
  161.             and sharingBarConfig['flixSbPosition'] != 3
  162.         %}
  163.             {% set renderInBody = true %}
  164.         {% endif %}
  165.     {% else %}
  166.         {% if isArticlePage %}
  167.             {% if sharingBarConfig['flixSbPositionArticle'] == 1
  168.             and sharingBarConfig['flixSbPosition'] != 3 %}
  169.                 {% set renderInBody = true %}
  170.             {% endif %}
  171.         {% else %}
  172.             {% if sharingBarConfig['flixSbPosition'] != 3 %}
  173.                 {% set renderInBody = true %}
  174.              {% endif %}
  175.         {% endif %}
  176.     {% endif %}
  177.     {% if renderInBody %}
  178.         {% sw_include '@Storefront/storefront/flixx-sharing-bar-sw6/icons.html.twig' with {
  179.                 sharingBarNetworks: sharingBarNetworks,
  180.                 sharingBarConfig: sharingBarConfig,
  181.                 isArticlePage: isArticlePage
  182.             }
  183.         %}
  184.     {% endif %}
  185.     {{ parent() }}
  186. {% endblock %}
  187. ""@FlixxSharingBarSW6/storefront/base.html.twig""/home/asgsgbnt/www.asg-store.de/custom/plugins/FlixxSharingBarSW6/src/Resources/views/storefront/base.html.twig");
  188.     }
  189. }