var/cache/dev/twig/7e/7e426ac5a36f90c9e918e21854b2f8ee.php line 36

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. /* @PimcorePortalEngine/shared/layout/head.html.twig */
  14. class __TwigTemplate_a76e52c2a604e70036f023e872d04175 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.             'title' => [$this'block_title'],
  25.             'description' => [$this'block_description'],
  26.             'stylesheets' => [$this'block_stylesheets'],
  27.         ];
  28.     }
  29.     protected function doDisplay(array $context, array $blocks = [])
  30.     {
  31.         $macros $this->macros;
  32.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  33.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@PimcorePortalEngine/shared/layout/head.html.twig"));
  34.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  35.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@PimcorePortalEngine/shared/layout/head.html.twig"));
  36.         // line 2
  37.         echo "
  38. <meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\">
  39. <meta charset=\"UTF-8\">
  40. <meta name=\"format-detection\" content=\"telephone=no\"/>
  41. ";
  42.         // line 7
  43.         echo call_user_func_array($this->env->getFunction('pimcore_head_link')->getCallable(), []);
  44.         echo "
  45. ";
  46.         // line 8
  47.         echo call_user_func_array($this->env->getFunction('pimcore_head_style')->getCallable(), []);
  48.         echo "
  49. ";
  50.         // line 9
  51.         echo call_user_func_array($this->env->getFunction('pimcore_head_script')->getCallable(), []);
  52.         echo "
  53. ";
  54.         // line 11
  55.         if ( !(isset($context["editmode"]) || array_key_exists("editmode"$context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.'11$this->source); })())) {
  56.             // line 12
  57.             echo "    <title>";
  58.             $this->displayBlock('title'$context$blocks);
  59.             echo "</title>
  60.     ";
  61.             // line 14
  62.             $this->displayBlock('description'$context$blocks);
  63.         }
  64.         // line 20
  65.         echo "
  66. ";
  67.         // line 21
  68.         $this->displayBlock('stylesheets'$context$blocks);
  69.         // line 28
  70.         echo "
  71. <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">
  72. ";
  73.         
  74.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  75.         
  76.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  77.     }
  78.     // line 12
  79.     public function block_title($context, array $blocks = [])
  80.     {
  81.         $macros $this->macros;
  82.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  83.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  84.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  85.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  86.         echo twig_escape_filter($this->env$this->extensions['Pimcore\Bundle\PortalEngineBundle\Twig\HeadTitleExtension']->getTitle(), "html"nulltrue);
  87.         
  88.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  89.         
  90.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  91.     }
  92.     // line 14
  93.     public function block_description($context, array $blocks = [])
  94.     {
  95.         $macros $this->macros;
  96.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  97.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""description"));
  98.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  99.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""description"));
  100.         // line 15
  101.         echo "        ";
  102.         if (twig_get_attribute($this->env$this->source, (isset($context["document"]) || array_key_exists("document"$context) ? $context["document"] : (function () { throw new RuntimeError('Variable "document" does not exist.'15$this->source); })()), "description", [], "any"falsefalsefalse15)) {
  103.             // line 16
  104.             echo "            <meta name=\"description\" content=\"";
  105.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["document"]) || array_key_exists("document"$context) ? $context["document"] : (function () { throw new RuntimeError('Variable "document" does not exist.'16$this->source); })()), "description", [], "any"falsefalsefalse16), "html"nulltrue);
  106.             echo "\">
  107.         ";
  108.         }
  109.         // line 18
  110.         echo "    ";
  111.         
  112.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  113.         
  114.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  115.     }
  116.     // line 21
  117.     public function block_stylesheets($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""stylesheets"));
  122.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  123.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheets"));
  124.         // line 22
  125.         echo "    ";
  126.         echo $this->extensions['Symfony\WebpackEncoreBundle\Twig\EntryFilesTwigExtension']->renderWebpackLinkTags("portal-engine-style"null$this->extensions['Pimcore\Bundle\PortalEngineBundle\Twig\WebpackExtension']->webpackBuild());
  127.         echo "
  128.     ";
  129.         // line 24
  130.         if ((isset($context["editmode"]) || array_key_exists("editmode"$context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.'24$this->source); })())) {
  131.             // line 25
  132.             echo "        ";
  133.             echo $this->extensions['Symfony\WebpackEncoreBundle\Twig\EntryFilesTwigExtension']->renderWebpackLinkTags("portal-engine-editmode"null$this->extensions['Pimcore\Bundle\PortalEngineBundle\Twig\WebpackExtension']->webpackBuild());
  134.             echo "
  135.     ";
  136.         }
  137.         
  138.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  139.         
  140.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  141.     }
  142.     public function getTemplateName()
  143.     {
  144.         return "@PimcorePortalEngine/shared/layout/head.html.twig";
  145.     }
  146.     public function isTraitable()
  147.     {
  148.         return false;
  149.     }
  150.     public function getDebugInfo()
  151.     {
  152.         return array (  160 => 25,  158 => 24,  152 => 22,  142 => 21,  132 => 18,  126 => 16,  123 => 15,  113 => 14,  94 => 12,  82 => 28,  80 => 21,  77 => 20,  74 => 14,  68 => 12,  66 => 11,  61 => 9,  57 => 8,  53 => 7,  46 => 2,);
  153.     }
  154.     public function getSourceContext()
  155.     {
  156.         return new Source("{# @var document \\Pimcore\\Model\\Document\\Page #}
  157. <meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\">
  158. <meta charset=\"UTF-8\">
  159. <meta name=\"format-detection\" content=\"telephone=no\"/>
  160. {{ pimcore_head_link() }}
  161. {{ pimcore_head_style() }}
  162. {{ pimcore_head_script() }}
  163. {% if not editmode %}
  164.     <title>{% block title %}{{ portalEngine_head_title() }}{% endblock %}</title>
  165.     {% block description %}
  166.         {% if document.description %}
  167.             <meta name=\"description\" content=\"{{ document.description }}\">
  168.         {% endif %}
  169.     {% endblock %}
  170. {% endif %}
  171. {% block stylesheets %}
  172.     {{ encore_entry_link_tags('portal-engine-style', null, webpack_build()) }}
  173.     {% if editmode %}
  174.         {{ encore_entry_link_tags('portal-engine-editmode', null, webpack_build()) }}
  175.     {% endif %}
  176. {% endblock %}
  177. <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">
  178. ""@PimcorePortalEngine/shared/layout/head.html.twig""/var/www/html/siteone/vendor/pimcore/portal-engine/src/Resources/views/shared/layout/head.html.twig");
  179.     }
  180. }