<?php
use Twig\Environment;
use function Shopware\Core\Framework\Adapter\Twig\sw_get_attribute;
use function Shopware\Core\Framework\Adapter\Twig\sw_escape_filter;
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;
/* @LaudertFriendlyCaptcha/storefront/layout/meta.html.twig */
class __TwigTemplate_52d7360004934b7d1c741f69138bc0f2 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'layout_head_meta_tags' => [$this, 'block_layout_head_meta_tags'],
'layout_head_meta_tags_friendly_captcha' => [$this, 'block_layout_head_meta_tags_friendly_captcha'],
'layout_head_meta_tags_friendly_captcha_delivery_methods' => [$this, 'block_layout_head_meta_tags_friendly_captcha_delivery_methods'],
'layout_head_meta_tags_friendly_captcha_delivery_method_jsdelivr' => [$this, 'block_layout_head_meta_tags_friendly_captcha_delivery_method_jsdelivr'],
'layout_head_meta_tags_friendly_captcha_delivery_method_unpkg' => [$this, 'block_layout_head_meta_tags_friendly_captcha_delivery_method_unpkg'],
'layout_head_meta_tags_friendly_captcha_custom_style_file' => [$this, 'block_layout_head_meta_tags_friendly_captcha_custom_style_file'],
];
}
protected function doGetParent(array $context)
{
// line 2
return "@DreiscSeoPro/storefront/layout/meta.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@LaudertFriendlyCaptcha/storefront/layout/meta.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@LaudertFriendlyCaptcha/storefront/layout/meta.html.twig"));
$this->parent = $this->loadTemplate("@DreiscSeoPro/storefront/layout/meta.html.twig", "@LaudertFriendlyCaptcha/storefront/layout/meta.html.twig", 2);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 3
public function block_layout_head_meta_tags($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "layout_head_meta_tags"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "layout_head_meta_tags"));
// line 4
echo " ";
$this->displayBlock('layout_head_meta_tags_friendly_captcha', $context, $blocks);
// line 69
echo "
";
// line 70
$this->displayParentBlock("layout_head_meta_tags", $context, $blocks);
echo "
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 4
public function block_layout_head_meta_tags_friendly_captcha($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "layout_head_meta_tags_friendly_captcha"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "layout_head_meta_tags_friendly_captcha"));
// line 5
echo " ";
$context["configNamespace"] = twig_constant("Laudert\\FriendlyCaptcha\\LaudertFriendlyCaptcha::CONFIG_KEY");
// line 6
echo " ";
$context["active"] = $this->extensions['Shopware\Storefront\Framework\Twig\Extension\ConfigExtension']->config($context, twig_sprintf("%s.isActive", ($context["configNamespace"] ?? null)));
// line 7
echo " ";
$context["siteKey"] = $this->extensions['Shopware\Storefront\Framework\Twig\Extension\ConfigExtension']->config($context, twig_sprintf("%s.config.siteKey", ($context["configNamespace"] ?? null)));
// line 8
echo " ";
$context["secretKey"] = $this->extensions['Shopware\Storefront\Framework\Twig\Extension\ConfigExtension']->config($context, twig_sprintf("%s.config.secretKey", ($context["configNamespace"] ?? null)));
// line 9
echo "
";
// line 10
if (((($context["active"] ?? null) && ($context["siteKey"] ?? null)) && ($context["secretKey"] ?? null))) {
// line 11
echo " ";
$context["deliveryMethod"] = $this->extensions['Shopware\Storefront\Framework\Twig\Extension\ConfigExtension']->config($context, twig_sprintf("%s.config.deliveryMethod", ($context["configNamespace"] ?? null)));
// line 12
echo " ";
$context["version"] = $this->extensions['Shopware\Storefront\Framework\Twig\Extension\ConfigExtension']->config($context, twig_sprintf("%s.version", ($context["configNamespace"] ?? null)));
// line 13
echo " ";
$context["polyfill"] = $this->extensions['Shopware\Storefront\Framework\Twig\Extension\ConfigExtension']->config($context, twig_sprintf("%s.polyfill", ($context["configNamespace"] ?? null)));
// line 14
echo "
";
// line 15
if (($context["polyfill"] ?? null)) {
// line 16
echo " ";
$context["widget"] = "widget.polyfilled.min.js";
// line 17
echo " ";
} else {
// line 18
echo " ";
$context["widget"] = "widget.min.js";
// line 19
echo " ";
}
// line 20
echo "
";
// line 21
$this->displayBlock('layout_head_meta_tags_friendly_captcha_delivery_methods', $context, $blocks);
// line 54
echo "
";
// line 55
$this->displayBlock('layout_head_meta_tags_friendly_captcha_custom_style_file', $context, $blocks);
// line 67
echo " ";
}
// line 68
echo " ";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 21
public function block_layout_head_meta_tags_friendly_captcha_delivery_methods($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "layout_head_meta_tags_friendly_captcha_delivery_methods"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "layout_head_meta_tags_friendly_captcha_delivery_methods"));
// line 22
echo " ";
if (("jsdelivr" == ($context["deliveryMethod"] ?? null))) {
// line 23
echo " ";
$this->displayBlock('layout_head_meta_tags_friendly_captcha_delivery_method_jsdelivr', $context, $blocks);
// line 37
echo " ";
} elseif (("unpkg" == ($context["deliveryMethod"] ?? null))) {
// line 38
echo " ";
$this->displayBlock('layout_head_meta_tags_friendly_captcha_delivery_method_unpkg', $context, $blocks);
// line 52
echo " ";
}
// line 53
echo " ";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 23
public function block_layout_head_meta_tags_friendly_captcha_delivery_method_jsdelivr($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "layout_head_meta_tags_friendly_captcha_delivery_method_jsdelivr"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "layout_head_meta_tags_friendly_captcha_delivery_method_jsdelivr"));
// line 24
echo " <script
type=\"module\"
src=\"";
// line 26
echo sw_escape_filter($this->env, twig_sprintf("https://cdn.jsdelivr.net/npm/friendly-challenge@%s/widget.module.min.js", ($context["version"] ?? null)), "html", null, true);
echo "\"
async
defer
></script>
<script
nomodule
src=\"";
// line 32
echo sw_escape_filter($this->env, twig_sprintf("https://cdn.jsdelivr.net/npm/friendly-challenge@%s/%s", ($context["version"] ?? null), ($context["widget"] ?? null)), "html", null, true);
echo "\"
async
defer
></script>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 38
public function block_layout_head_meta_tags_friendly_captcha_delivery_method_unpkg($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "layout_head_meta_tags_friendly_captcha_delivery_method_unpkg"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "layout_head_meta_tags_friendly_captcha_delivery_method_unpkg"));
// line 39
echo " <script
type=\"module\"
src=\"";
// line 41
echo sw_escape_filter($this->env, twig_sprintf("https://unpkg.com/friendly-challenge@%s/widget.module.min.js", ($context["version"] ?? null)), "html", null, true);
echo "\"
async
defer
></script>
<script
nomodule
src=\"";
// line 47
echo sw_escape_filter($this->env, twig_sprintf("https://unpkg.com/friendly-challenge@%s/%s", ($context["version"] ?? null), ($context["widget"] ?? null)), "html", null, true);
echo "\"
async
defer
></script>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 55
public function block_layout_head_meta_tags_friendly_captcha_custom_style_file($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "layout_head_meta_tags_friendly_captcha_custom_style_file"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "layout_head_meta_tags_friendly_captcha_custom_style_file"));
// line 56
echo " ";
$context["themeName"] = $this->extensions['Shopware\Storefront\Framework\Twig\Extension\ConfigExtension']->config($context, twig_sprintf("%s.config.theme.name", ($context["configNamespace"] ?? null)));
// line 57
echo "
";
// line 58
if (("custom" === ($context["themeName"] ?? null))) {
// line 59
echo " ";
$context["customStyleFile"] = $this->extensions['Shopware\Storefront\Framework\Twig\Extension\ConfigExtension']->config($context, twig_sprintf("%s.config.theme.customStyleFile", ($context["configNamespace"] ?? null)));
// line 60
echo "
";
// line 61
if (($context["customStyleFile"] ?? null)) {
// line 62
echo " ";
// line 63
echo " <link rel=\"stylesheet\" id=\"frc-style\" href=\"";
echo sw_escape_filter($this->env, ($context["customStyleFile"] ?? null));
echo "\">
";
}
// line 65
echo " ";
}
// line 66
echo " ";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "@LaudertFriendlyCaptcha/storefront/layout/meta.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 315 => 66, 312 => 65, 306 => 63, 304 => 62, 302 => 61, 299 => 60, 296 => 59, 294 => 58, 291 => 57, 288 => 56, 278 => 55, 263 => 47, 254 => 41, 250 => 39, 240 => 38, 225 => 32, 216 => 26, 212 => 24, 202 => 23, 192 => 53, 189 => 52, 186 => 38, 183 => 37, 180 => 23, 177 => 22, 167 => 21, 157 => 68, 154 => 67, 152 => 55, 149 => 54, 147 => 21, 144 => 20, 141 => 19, 138 => 18, 135 => 17, 132 => 16, 130 => 15, 127 => 14, 124 => 13, 121 => 12, 118 => 11, 116 => 10, 113 => 9, 110 => 8, 107 => 7, 104 => 6, 101 => 5, 91 => 4, 79 => 70, 76 => 69, 73 => 4, 63 => 3, 40 => 2,);
}
public function getSourceContext()
{
return new Source("{% sw_extends '@Storefront/storefront/layout/meta.html.twig' %}
{% block layout_head_meta_tags %}
{% block layout_head_meta_tags_friendly_captcha %}
{% set configNamespace = constant('Laudert\\\\FriendlyCaptcha\\\\LaudertFriendlyCaptcha::CONFIG_KEY') %}
{% set active = config('%s.isActive'|format(configNamespace)) %}
{% set siteKey = config('%s.config.siteKey'|format(configNamespace)) %}
{% set secretKey = config('%s.config.secretKey'|format(configNamespace)) %}
{% if active and siteKey and secretKey %}
{% set deliveryMethod = config('%s.config.deliveryMethod'|format(configNamespace)) %}
{% set version = config('%s.version'|format(configNamespace)) %}
{% set polyfill = config('%s.polyfill'|format(configNamespace)) %}
{% if polyfill %}
{% set widget = 'widget.polyfilled.min.js' %}
{% else %}
{% set widget = 'widget.min.js' %}
{% endif %}
{% block layout_head_meta_tags_friendly_captcha_delivery_methods %}
{% if 'jsdelivr' == deliveryMethod %}
{% block layout_head_meta_tags_friendly_captcha_delivery_method_jsdelivr %}
<script
type=\"module\"
src=\"{{ 'https://cdn.jsdelivr.net/npm/friendly-challenge@%s/widget.module.min.js'|format(version) }}\"
async
defer
></script>
<script
nomodule
src=\"{{ 'https://cdn.jsdelivr.net/npm/friendly-challenge@%s/%s'|format(version, widget) }}\"
async
defer
></script>
{% endblock %}
{% elseif 'unpkg' == deliveryMethod %}
{% block layout_head_meta_tags_friendly_captcha_delivery_method_unpkg %}
<script
type=\"module\"
src=\"{{ 'https://unpkg.com/friendly-challenge@%s/widget.module.min.js'|format(version) }}\"
async
defer
></script>
<script
nomodule
src=\"{{ 'https://unpkg.com/friendly-challenge@%s/%s'|format(version, widget) }}\"
async
defer
></script>
{% endblock %}
{% endif %}
{% endblock %}
{% block layout_head_meta_tags_friendly_captcha_custom_style_file %}
{% set themeName = config('%s.config.theme.name'|format(configNamespace)) %}
{% if 'custom' === themeName %}
{% set customStyleFile = config('%s.config.theme.customStyleFile'|format(configNamespace)) %}
{% if customStyleFile %}
{# @see https://docs.friendlycaptcha.com/#/theme?id=using-your-own-stylesheet #}
<link rel=\"stylesheet\" id=\"frc-style\" href=\"{{ customStyleFile|escape }}\">
{% endif %}
{% endif %}
{% endblock %}
{% endif %}
{% endblock %}
{{ parent() }}
{% endblock %}
", "@LaudertFriendlyCaptcha/storefront/layout/meta.html.twig", "/var/www/share/efb-elektronik.dev.mc.emzcustomers.de/shopware6/vendor/store.shopware.com/laudertfriendlycaptcha/src/Resources/views/storefront/layout/meta.html.twig");
}
}