var/cache/dev/twig/13/1396b60428ee9b3e20b10070a5ade47c.php line 69

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. /* layout/head/meta.html.twig */
  14. class __TwigTemplate_f7c13c0b604e7839fc3b86d1406af82c extends 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->parent false;
  23.         $this->blocks = [
  24.         ];
  25.     }
  26.     protected function doDisplay(array $context, array $blocks = [])
  27.     {
  28.         $macros $this->macros;
  29.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  30.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""layout/head/meta.html.twig"));
  31.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  32.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""layout/head/meta.html.twig"));
  33.         // line 2
  34.         $context["pagename"] = $this->extensions['Pimcore\Twig\Extension\WebsiteConfigExtension']->getWebsiteConfig("pageName"nulltwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'2$this->source); })()), "request", [], "any"falsefalsefalse2), "locale", [], "any"falsefalsefalse2));
  35.         // line 3
  36.         echo "
  37. ";
  38.         // line 5
  39.         $context["ogImage"] = $this->extensions['Pimcore\Twig\Extension\WebsiteConfigExtension']->getWebsiteConfig("ogImage"nulltwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'5$this->source); })()), "request", [], "any"falsefalsefalse5), "locale", [], "any"falsefalsefalse5));
  40.         // line 6
  41.         echo "
  42. ";
  43.         // line 8
  44.         echo "<meta name=\"author\" content=\"";
  45.         echo twig_escape_filter($this->env, (isset($context["pagename"]) || array_key_exists("pagename"$context) ? $context["pagename"] : (function () { throw new RuntimeError('Variable "pagename" does not exist.'8$this->source); })()), "html"nulltrue);
  46.         echo "\">
  47. ";
  48.         // line 11
  49.         if ((array_key_exists("blogDetail"$context) && (isset($context["blogDetail"]) || array_key_exists("blogDetail"$context) ? $context["blogDetail"] : (function () { throw new RuntimeError('Variable "blogDetail" does not exist.'11$this->source); })()))) {
  50.             // line 12
  51.             echo "    ";
  52.             echo twig_include($this->env$context"layout/head/meta/blog-detail.html.twig");
  53.             echo "
  54. ";
  55.         } else {
  56.             // line 16
  57.             echo "    ";
  58.             echo twig_include($this->env$context"layout/head/meta/document.html.twig");
  59.             echo "
  60. ";
  61.         }
  62.         
  63.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  64.         
  65.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  66.     }
  67.     public function getTemplateName()
  68.     {
  69.         return "layout/head/meta.html.twig";
  70.     }
  71.     public function isTraitable()
  72.     {
  73.         return false;
  74.     }
  75.     public function getDebugInfo()
  76.     {
  77.         return array (  68 => 16,  61 => 12,  59 => 11,  53 => 8,  50 => 6,  48 => 5,  45 => 3,  43 => 2,);
  78.     }
  79.     public function getSourceContext()
  80.     {
  81.         return new Source("{# pagename #}
  82. {% set pagename = pimcore_website_config('pageName', null, app.request.locale) %}
  83. {# og fallback image #}
  84. {% set ogImage = pimcore_website_config('ogImage', null, app.request.locale) %}
  85. {# author #}
  86. <meta name=\"author\" content=\"{{ pagename }}\">
  87. {# blog detail #}
  88. {% if blogDetail is defined and blogDetail %}
  89.     {{ include('layout/head/meta/blog-detail.html.twig') }}
  90. {# document #}
  91. {% else %}
  92.     {{ include('layout/head/meta/document.html.twig') }}
  93. {% endif %}""layout/head/meta.html.twig""/home/httpd/vhosts/a4interactive.ch/httpdocs/lutisbach.a4interactive.ch/templates/layout/head/meta.html.twig");
  94.     }
  95. }