var/cache/dev_h709f23ac6750a26dad7ce174fa60cb15/twig/e3/e3a242ed46228753d37b3583162a005c6000411ee561932c405333dd1e9b9ee6.php line 41

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. /* @H1webBlog/storefront/page/h1web_blog/meta.html.twig */
  16. class __TwigTemplate_4b5a859cebf29ed4a34e4c6db03ed7e3 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.             'layout_head_meta_tags_opengraph' => [$this'block_layout_head_meta_tags_opengraph'],
  26.             'layout_head_canonical' => [$this'block_layout_head_canonical'],
  27.         ];
  28.     }
  29.     protected function doGetParent(array $context)
  30.     {
  31.         // line 2
  32.         return "@FuerstenbergPorzellan/storefront/layout/meta.html.twig";
  33.     }
  34.     protected function doDisplay(array $context, array $blocks = [])
  35.     {
  36.         $macros $this->macros;
  37.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  38.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@H1webBlog/storefront/page/h1web_blog/meta.html.twig"));
  39.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  40.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@H1webBlog/storefront/page/h1web_blog/meta.html.twig"));
  41.         $this->parent $this->loadTemplate("@FuerstenbergPorzellan/storefront/layout/meta.html.twig""@H1webBlog/storefront/page/h1web_blog/meta.html.twig"2);
  42.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  43.         
  44.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  45.         
  46.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  47.     }
  48.     // line 3
  49.     public function block_layout_head_meta_tags_opengraph($context, array $blocks = [])
  50.     {
  51.         $macros $this->macros;
  52.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  53.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""layout_head_meta_tags_opengraph"));
  54.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  55.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""layout_head_meta_tags_opengraph"));
  56.         // line 4
  57.         echo "    <meta property=\"og:type\"
  58.           content=\"article\"/>
  59.     <meta property=\"og:site_name\"
  60.           content=\"";
  61.         // line 7
  62.         echo sw_escape_filter($this->envsw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["shopware"] ?? null), "config", [], "any"falsefalsefalse7), "core", [], "any"falsefalsefalse7), "basicInformation", [], "any"falsefalsefalse7), "shopName", [], "any"falsefalsefalse7), "html"nulltrue);
  63.         echo "\"/>
  64.     <meta property=\"og:url\"
  65.           content=\"";
  66.         // line 9
  67.         echo sw_escape_filter($this->env$this->extensions['Shopware\Core\Framework\Adapter\Twig\Extension\SeoUrlFunctionExtension']->seoUrl("frontend.h1webblog.blog", ["id" => sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["page"] ?? null), "blog", [], "any"falsefalsefalse9), "id", [], "any"falsefalsefalse9)]), "html"nulltrue);
  68.         echo "\"/>
  69.     <meta property=\"og:title\"
  70.           content=\"";
  71.         // line 11
  72.         echo sw_escape_filter($this->env, ($context["metaTitle"] ?? null), "html"nulltrue);
  73.         echo "\"/>
  74.     <meta property=\"og:description\"
  75.           content=\"";
  76.         // line 13
  77.         echo sw_escape_filter($this->env, ($context["metaDescription"] ?? null), "html"nulltrue);
  78.         echo "\"/>
  79.     <meta property=\"og:image\"
  80.           content=\"";
  81.         // line 15
  82.         if (sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["page"] ?? null), "blog", [], "any"falsefalsefalse15), "media", [], "any"falsefalsefalse15), "url", [], "any"falsefalsefalse15)) {
  83.             echo sw_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(((sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["page"] ?? null), "blog", [], "any"falsetruefalse15), "media", [], "any"falsetruefalse15), "url", [], "any"truetruefalse15)) ? (_twig_default_filter(sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["page"] ?? null), "blog", [], "any"falsetruefalse15), "media", [], "any"falsetruefalse15), "url", [], "any"falsefalsefalse15), "")) : ("")), "@Storefront"), "html"nulltrue);
  84.         }
  85.         echo "\"/>
  86.     <meta name=\"twitter:card\"
  87.         content=\"summary_large_image\"/>
  88.     <meta name=\"twitter:site\"
  89.           content=\"";
  90.         // line 19
  91.         echo sw_escape_filter($this->envsw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["shopware"] ?? null), "config", [], "any"falsefalsefalse19), "core", [], "any"falsefalsefalse19), "basicInformation", [], "any"falsefalsefalse19), "shopName", [], "any"falsefalsefalse19), "html"nulltrue);
  92.         echo "\"/>
  93.     <meta name=\"twitter:title\"
  94.           content=\"";
  95.         // line 21
  96.         echo sw_escape_filter($this->env, ($context["metaTitle"] ?? null), "html"nulltrue);
  97.         echo "\"/>
  98.     <meta name=\"twitter:description\"
  99.           content=\"";
  100.         // line 23
  101.         echo sw_escape_filter($this->env, ($context["metaDescription"] ?? null), "html"nulltrue);
  102.         echo "\"/>
  103.     <meta name=\"twitter:image\"
  104.           content=\"";
  105.         // line 25
  106.         if (sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["page"] ?? null), "blog", [], "any"falsefalsefalse25), "media", [], "any"falsefalsefalse25), "url", [], "any"falsefalsefalse25)) {
  107.             echo sw_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(((sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["page"] ?? null), "blog", [], "any"falsetruefalse25), "media", [], "any"falsetruefalse25), "url", [], "any"truetruefalse25)) ? (_twig_default_filter(sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["page"] ?? null), "blog", [], "any"falsetruefalse25), "media", [], "any"falsetruefalse25), "url", [], "any"falsefalsefalse25), "")) : ("")), "@Storefront"), "html"nulltrue);
  108.         }
  109.         echo "\"/>
  110. ";
  111.         
  112.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  113.         
  114.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  115.     }
  116.     // line 28
  117.     public function block_layout_head_canonical($context, array $blocks = [])
  118.     {
  119.         $macros $this->macros;
  120.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  121.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""layout_head_canonical"));
  122.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  123.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""layout_head_canonical"));
  124.         // line 29
  125.         echo "    <link rel=\"canonical\" href=\"";
  126.         echo sw_escape_filter($this->env$this->extensions['Shopware\Core\Framework\Adapter\Twig\Extension\SeoUrlFunctionExtension']->seoUrl("frontend.h1webblog.blog", ["id" => sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["page"] ?? null), "blog", [], "any"falsefalsefalse29), "id", [], "any"falsefalsefalse29)]), "html"nulltrue);
  127.         echo "\" />
  128. ";
  129.         
  130.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  131.         
  132.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  133.     }
  134.     public function getTemplateName()
  135.     {
  136.         return "@H1webBlog/storefront/page/h1web_blog/meta.html.twig";
  137.     }
  138.     public function isTraitable()
  139.     {
  140.         return false;
  141.     }
  142.     public function getDebugInfo()
  143.     {
  144.         return array (  142 => 29,  132 => 28,  118 => 25,  113 => 23,  108 => 21,  103 => 19,  94 => 15,  89 => 13,  84 => 11,  79 => 9,  74 => 7,  69 => 4,  59 => 3,  36 => 2,);
  145.     }
  146.     public function getSourceContext()
  147.     {
  148.         return new Source("{% sw_extends '@Storefront/storefront/layout/meta.html.twig' %}
  149. {% block layout_head_meta_tags_opengraph %}
  150.     <meta property=\"og:type\"
  151.           content=\"article\"/>
  152.     <meta property=\"og:site_name\"
  153.           content=\"{{ shopware.config.core.basicInformation.shopName }}\"/>
  154.     <meta property=\"og:url\"
  155.           content=\"{{ seoUrl('frontend.h1webblog.blog', { id: page.blog.id }) }}\"/>
  156.     <meta property=\"og:title\"
  157.           content=\"{{ metaTitle }}\"/>
  158.     <meta property=\"og:description\"
  159.           content=\"{{ metaDescription }}\"/>
  160.     <meta property=\"og:image\"
  161.           content=\"{%  if page.blog.media.url %}{{ asset(page.blog.media.url|default(''), '@Storefront') }}{% endif %}\"/>
  162.     <meta name=\"twitter:card\"
  163.         content=\"summary_large_image\"/>
  164.     <meta name=\"twitter:site\"
  165.           content=\"{{ shopware.config.core.basicInformation.shopName }}\"/>
  166.     <meta name=\"twitter:title\"
  167.           content=\"{{ metaTitle }}\"/>
  168.     <meta name=\"twitter:description\"
  169.           content=\"{{ metaDescription }}\"/>
  170.     <meta name=\"twitter:image\"
  171.           content=\"{%  if page.blog.media.url %}{{ asset(page.blog.media.url|default(''), '@Storefront') }}{% endif %}\"/>
  172. {% endblock %}
  173. {% block layout_head_canonical %}
  174.     <link rel=\"canonical\" href=\"{{ seoUrl('frontend.h1webblog.blog', { id: page.blog.id }) }}\" />
  175. {% endblock %}
  176. ""@H1webBlog/storefront/page/h1web_blog/meta.html.twig""/var/customers/webs/fporzellan/htdocs/vendor/store.shopware.com/h1webblog/src/Resources/views/storefront/page/h1web_blog/meta.html.twig");
  177.     }
  178. }