var/cache/dev_h94b6c5d2d84092cf319e762d211cfdb3/twig/9e/9ef6f1e8cd3bd910ce68bf1ae2a64ada9cdcd58559e478e1e623b879f02d5d97.php line 50

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use function Shopware\Core\Framework\Adapter\Twig\sw_get_attribute;
  4. use function Shopware\Core\Framework\Adapter\Twig\sw_escape_filter;
  5. use Twig\Error\LoaderError;
  6. use Twig\Error\RuntimeError;
  7. use Twig\Extension\SandboxExtension;
  8. use Twig\Markup;
  9. use Twig\Sandbox\SecurityError;
  10. use Twig\Sandbox\SecurityNotAllowedTagError;
  11. use Twig\Sandbox\SecurityNotAllowedFilterError;
  12. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  13. use Twig\Source;
  14. use Twig\Template;
  15. /* @SmartsuppChat/storefront/base.html.twig */
  16. class __TwigTemplate_c6f9bc0c0e1a7f55dc8ae3440f70ad1f7be405335f2de5ac321d2e7a36338b0a extends Template
  17. {
  18.     private $source;
  19.     private $macros = [];
  20.     public function __construct(Environment $env)
  21.     {
  22.         parent::__construct($env);
  23.         $this->source $this->getSourceContext();
  24.         $this->blocks = [
  25.             'base_body_script' => [$this'block_base_body_script'],
  26.         ];
  27.     }
  28.     protected function doGetParent(array $context)
  29.     {
  30.         // line 2
  31.         return "@TrustedShops/storefront/base.html.twig";
  32.     }
  33.     protected function doDisplay(array $context, array $blocks = [])
  34.     {
  35.         $macros $this->macros;
  36.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  37.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@SmartsuppChat/storefront/base.html.twig"));
  38.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  39.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@SmartsuppChat/storefront/base.html.twig"));
  40.         $this->parent $this->loadTemplate("@TrustedShops/storefront/base.html.twig""@SmartsuppChat/storefront/base.html.twig"2);
  41.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  42.         
  43.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  44.         
  45.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  46.     }
  47.     // line 3
  48.     public function block_base_body_script($context, array $blocks = [])
  49.     {
  50.         $macros $this->macros;
  51.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  52.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""base_body_script"));
  53.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  54.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""base_body_script"));
  55.         // line 4
  56.         echo "    ";
  57.         $this->displayParentBlock("base_body_script"$context$blocks);
  58.         echo "
  59.     ";
  60.         // line 6
  61.         $context["swCookies"] = (sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["page"] ?? null), "extensions", [], "any"falsefalsefalse6), "smartsuppCookies", [], "any"falsefalsefalse6), "key", [], "any"falsefalsefalse6) == 1);
  62.         // line 7
  63.         echo "    ";
  64.         $context["Key"] = sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["page"] ?? null), "extensions", [], "any"falsefalsefalse7), "smartsuppConfiguration", [], "any"falsefalsefalse7), "key", [], "any"falsefalsefalse7);
  65.         // line 8
  66.         echo "    ";
  67.         $context["hasKey"] = (array_key_exists("Key"$context) && (($context["Key"] ?? null) != ""));
  68.         // line 9
  69.         echo "    ";
  70.         $context["Color"] = sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["page"] ?? null), "extensions", [], "any"falsefalsefalse9), "smartsuppColor", [], "any"falsefalsefalse9), "key", [], "any"falsefalsefalse9);
  71.         // line 10
  72.         echo "    ";
  73.         $context["hasColor"] = (array_key_exists("Color"$context) && (($context["Color"] ?? null) != ""));
  74.         // line 11
  75.         echo "    ";
  76.         $context["Config"] = sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["page"] ?? null), "extensions", [], "any"falsefalsefalse11), "smartsuppConfig", [], "any"falsefalsefalse11), "key", [], "any"falsefalsefalse11);
  77.         // line 12
  78.         echo "    ";
  79.         $context["hasConfig"] = (array_key_exists("Config"$context) && (($context["Config"] ?? null) != ""));
  80.         // line 13
  81.         echo "    ";
  82.         $context["Api"] = sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["page"] ?? null), "extensions", [], "any"falsefalsefalse13), "smartsuppApi", [], "any"falsefalsefalse13), "key", [], "any"falsefalsefalse13);
  83.         // line 14
  84.         echo "    ";
  85.         $context["hasApi"] = (array_key_exists("Api"$context) && (($context["Api"] ?? null) != ""));
  86.         // line 15
  87.         echo "
  88.     ";
  89.         // line 16
  90.         if (($context["hasKey"] ?? null)) {
  91.             // line 17
  92.             echo "        <script id=\"smartsupp_live_chat\" key=\"";
  93.             echo sw_escape_filter($this->env, ($context["Key"] ?? null), "html"nulltrue);
  94.             echo "\"";
  95.             if (($context["hasColor"] ?? null)) {
  96.                 echo " color=\"";
  97.                 echo sw_escape_filter($this->env, ($context["Color"] ?? null), "html"nulltrue);
  98.                 echo "\"";
  99.             }
  100.             if (($context["hasConfig"] ?? null)) {
  101.                 echo " config=\"";
  102.                 echo sw_escape_filter($this->env, ($context["Config"] ?? null), "html"nulltrue);
  103.                 echo "\"";
  104.             }
  105.             if (($context["hasApi"] ?? null)) {
  106.                 echo " api=\"";
  107.                 echo sw_escape_filter($this->env, ($context["Api"] ?? null), "html"nulltrue);
  108.                 echo "\"";
  109.             }
  110.             echo ">
  111.             function getCookie(name) {
  112.                 var cookieMatch = document.cookie.match(name + '=(.*?)(;|\$)');
  113.                 return cookieMatch && decodeURI(cookieMatch[1]);
  114.             }
  115.             var ssCookieFcn = getCookie('cookieSmartsuppFunctional'),
  116.                 ssCookieSts = getCookie('cookieSmartsuppStatistics'),
  117.                 ssCookieMkt = getCookie('cookieSmartsuppMarketing')
  118.             ";
  119.             // line 27
  120.             if (($context["swCookies"] ?? null)) {
  121.                 // line 28
  122.                 echo "                if (ssCookieFcn != null) {
  123.                     var _smartsupp = _smartsupp || {};
  124.                         _smartsupp.key = '";
  125.                 // line 30
  126.                 echo sw_escape_filter($this->envsw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["page"] ?? null), "extensions", [], "any"falsefalsefalse30), "smartsuppConfiguration", [], "any"falsefalsefalse30), "key", [], "any"falsefalsefalse30), "html"nulltrue);
  127.                 echo "';
  128.                         _smartsupp.pluginVersion = '1.0.1';
  129.                         _smartsupp.offsetY = 65;
  130.                     window.smartsupp||(function(d) {
  131.                         var s,c,o=smartsupp=function(){ o._.push(arguments)};o._=[];
  132.                         s=d.getElementsByTagName('script')[0];c=d.createElement('script');
  133.                         c.type='text/javascript';c.charset='utf-8';c.async=true;
  134.                         c.src='//www.smartsuppchat.com/loader.js?';s.parentNode.insertBefore(c,s);
  135.                     })(document);
  136.                     
  137.                     if (ssCookieSts != null) {
  138.                         smartsupp('analyticsConsent', true);
  139.                     } else {
  140.                         smartsupp('analyticsConsent', false);
  141.                     }
  142.                     if (ssCookieMkt != null) {
  143.                         smartsupp('marketingConsent', true);
  144.                     } else {
  145.                         smartsupp('marketingConsent', false);
  146.                     }
  147.                     ";
  148.                 // line 53
  149.                 if (($context["hasColor"] ?? null)) {
  150.                     // line 54
  151.                     echo "                        _smartsupp.color = '";
  152.                     echo sw_escape_filter($this->env, ($context["Color"] ?? null), "html"nulltrue);
  153.                     echo "';
  154.                     ";
  155.                 }
  156.                 // line 56
  157.                 echo "
  158.                     ";
  159.                 // line 57
  160.                 if (($context["hasConfig"] ?? null)) {
  161.                     // line 58
  162.                     echo "                        ";
  163.                     echo sw_escape_filter($this->env, ($context["Config"] ?? null), "html"nulltrue);
  164.                     echo "
  165.                     ";
  166.                 }
  167.                 // line 60
  168.                 echo "
  169.                     ";
  170.                 // line 61
  171.                 if (($context["hasApi"] ?? null)) {
  172.                     // line 62
  173.                     echo "                        ";
  174.                     echo sw_escape_filter($this->env, ($context["Api"] ?? null), "html"nulltrue);
  175.                     echo "
  176.                     ";
  177.                 }
  178.                 // line 64
  179.                 echo "                }
  180.             ";
  181.             } else {
  182.                 // line 66
  183.                 echo "                var _smartsupp = _smartsupp || {};
  184.                     _smartsupp.key = '";
  185.                 // line 67
  186.                 echo sw_escape_filter($this->env, ($context["Key"] ?? null), "html"nulltrue);
  187.                 echo "';
  188.                     _smartsupp.pluginVersion = '1.0.1';
  189.                     _smartsupp.offsetY = 65;
  190.                     ";
  191.                 // line 70
  192.                 if (($context["hasColor"] ?? null)) {
  193.                     // line 71
  194.                     echo "                        _smartsupp.color = '";
  195.                     echo sw_escape_filter($this->env, ($context["Color"] ?? null), "html"nulltrue);
  196.                     echo "';
  197.                     ";
  198.                 }
  199.                 // line 73
  200.                 echo "
  201.                 window.smartsupp||(function(d) {
  202.                     var s,c,o=smartsupp=function(){ o._.push(arguments)};o._=[];
  203.                     s=d.getElementsByTagName('script')[0];c=d.createElement('script');
  204.                     c.type='text/javascript';c.charset='utf-8';c.async=true;
  205.                     c.src='//www.smartsuppchat.com/loader.js?';s.parentNode.insertBefore(c,s);
  206.                 })(document);
  207.                     
  208.                 smartsupp('analyticsConsent', true);
  209.                 smartsupp('marketingConsent', true);
  210.                 ";
  211.                 // line 84
  212.                 if (($context["hasConfig"] ?? null)) {
  213.                     // line 85
  214.                     echo "                    ";
  215.                     echo sw_escape_filter($this->env, ($context["Config"] ?? null), "html"nulltrue);
  216.                     echo "
  217.                 ";
  218.                 }
  219.                 // line 87
  220.                 echo "
  221.                 ";
  222.                 // line 88
  223.                 if (($context["hasApi"] ?? null)) {
  224.                     // line 89
  225.                     echo "                    ";
  226.                     echo sw_escape_filter($this->env, ($context["Api"] ?? null), "html"nulltrue);
  227.                     echo "
  228.                 ";
  229.                 }
  230.                 // line 91
  231.                 echo "            ";
  232.             }
  233.             // line 92
  234.             echo "        </script>
  235.     ";
  236.         }
  237.         // line 94
  238.         echo "
  239. ";
  240.         
  241.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  242.         
  243.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  244.     }
  245.     public function getTemplateName()
  246.     {
  247.         return "@SmartsuppChat/storefront/base.html.twig";
  248.     }
  249.     public function isTraitable()
  250.     {
  251.         return false;
  252.     }
  253.     public function getDebugInfo()
  254.     {
  255.         return array (  257 => 94,  253 => 92,  250 => 91,  244 => 89,  242 => 88,  239 => 87,  233 => 85,  231 => 84,  218 => 73,  212 => 71,  210 => 70,  204 => 67,  201 => 66,  197 => 64,  191 => 62,  189 => 61,  186 => 60,  180 => 58,  178 => 57,  175 => 56,  169 => 54,  167 => 53,  141 => 30,  137 => 28,  135 => 27,  105 => 17,  103 => 16,  100 => 15,  97 => 14,  94 => 13,  91 => 12,  88 => 11,  85 => 10,  82 => 9,  79 => 8,  76 => 7,  74 => 6,  68 => 4,  58 => 3,  35 => 2,);
  256.     }
  257.     public function getSourceContext()
  258.     {
  259.         return new Source("{% sw_extends '@@Storefront/storefront/base.html.twig' %}
  260. {% block base_body_script %}
  261.     {{ parent() }}
  262.     {% set swCookies = page.extensions.smartsuppCookies.key == 1 %}
  263.     {% set Key = page.extensions.smartsuppConfiguration.key %}
  264.     {% set hasKey = Key is defined and Key != '' %}
  265.     {% set Color = page.extensions.smartsuppColor.key %}
  266.     {% set hasColor = Color is defined and Color != '' %}
  267.     {% set Config = page.extensions.smartsuppConfig.key %}
  268.     {% set hasConfig = Config is defined and Config != '' %}
  269.     {% set Api = page.extensions.smartsuppApi.key %}
  270.     {% set hasApi = Api is defined and Api != '' %}
  271.     {% if hasKey %}
  272.         <script id=\"smartsupp_live_chat\" key=\"{{ Key }}\"{% if hasColor %} color=\"{{ Color }}\"{% endif %}{% if hasConfig %} config=\"{{ Config }}\"{% endif %}{% if hasApi %} api=\"{{ Api }}\"{% endif %}>
  273.             function getCookie(name) {
  274.                 var cookieMatch = document.cookie.match(name + '=(.*?)(;|\$)');
  275.                 return cookieMatch && decodeURI(cookieMatch[1]);
  276.             }
  277.             var ssCookieFcn = getCookie('cookieSmartsuppFunctional'),
  278.                 ssCookieSts = getCookie('cookieSmartsuppStatistics'),
  279.                 ssCookieMkt = getCookie('cookieSmartsuppMarketing')
  280.             {% if swCookies %}
  281.                 if (ssCookieFcn != null) {
  282.                     var _smartsupp = _smartsupp || {};
  283.                         _smartsupp.key = '{{ page.extensions.smartsuppConfiguration.key }}';
  284.                         _smartsupp.pluginVersion = '1.0.1';
  285.                         _smartsupp.offsetY = 65;
  286.                     window.smartsupp||(function(d) {
  287.                         var s,c,o=smartsupp=function(){ o._.push(arguments)};o._=[];
  288.                         s=d.getElementsByTagName('script')[0];c=d.createElement('script');
  289.                         c.type='text/javascript';c.charset='utf-8';c.async=true;
  290.                         c.src='//www.smartsuppchat.com/loader.js?';s.parentNode.insertBefore(c,s);
  291.                     })(document);
  292.                     
  293.                     if (ssCookieSts != null) {
  294.                         smartsupp('analyticsConsent', true);
  295.                     } else {
  296.                         smartsupp('analyticsConsent', false);
  297.                     }
  298.                     if (ssCookieMkt != null) {
  299.                         smartsupp('marketingConsent', true);
  300.                     } else {
  301.                         smartsupp('marketingConsent', false);
  302.                     }
  303.                     {% if hasColor %}
  304.                         _smartsupp.color = '{{ Color }}';
  305.                     {% endif %}
  306.                     {% if hasConfig %}
  307.                         {{ Config }}
  308.                     {% endif %}
  309.                     {% if hasApi %}
  310.                         {{ Api }}
  311.                     {% endif %}
  312.                 }
  313.             {% else %}
  314.                 var _smartsupp = _smartsupp || {};
  315.                     _smartsupp.key = '{{ Key }}';
  316.                     _smartsupp.pluginVersion = '1.0.1';
  317.                     _smartsupp.offsetY = 65;
  318.                     {% if hasColor %}
  319.                         _smartsupp.color = '{{ Color }}';
  320.                     {% endif %}
  321.                 window.smartsupp||(function(d) {
  322.                     var s,c,o=smartsupp=function(){ o._.push(arguments)};o._=[];
  323.                     s=d.getElementsByTagName('script')[0];c=d.createElement('script');
  324.                     c.type='text/javascript';c.charset='utf-8';c.async=true;
  325.                     c.src='//www.smartsuppchat.com/loader.js?';s.parentNode.insertBefore(c,s);
  326.                 })(document);
  327.                     
  328.                 smartsupp('analyticsConsent', true);
  329.                 smartsupp('marketingConsent', true);
  330.                 {% if hasConfig %}
  331.                     {{ Config }}
  332.                 {% endif %}
  333.                 {% if hasApi %}
  334.                     {{ Api }}
  335.                 {% endif %}
  336.             {% endif %}
  337.         </script>
  338.     {% endif %}
  339. {% endblock %}
  340. ""@SmartsuppChat/storefront/base.html.twig""/srv/users/liamoriasw6/apps/liamoriasw6/custom/plugins/SmartsuppChat/src/Resources/views/storefront/base.html.twig");
  341.     }
  342. }