var/cache/dev/twig/ae/aebf05f6bb0bb9e1aeaf9a74f979ee73.php line 48

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\CoreExtension;
  6. use Twig\Extension\SandboxExtension;
  7. use Twig\Markup;
  8. use Twig\Sandbox\SecurityError;
  9. use Twig\Sandbox\SecurityNotAllowedTagError;
  10. use Twig\Sandbox\SecurityNotAllowedFilterError;
  11. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  12. use Twig\Source;
  13. use Twig\Template;
  14. use Twig\TemplateWrapper;
  15. /* @admin/nglayouts/meta.html.twig */
  16. class __TwigTemplate_0606ba1e90c541c60b354fcc5591844f extends Netgen\Bundle\SiteBundle\Templating\Twig\DebugTemplate
  17. {
  18. private Source $source;
  19. /**
  20. * @var array<string, Template>
  21. */
  22. private array $macros = [];
  23. public function __construct(Environment $env)
  24. {
  25. parent::__construct($env);
  26. $this->source = $this->getSourceContext();
  27. $this->parent = false;
  28. $this->blocks = [
  29. ];
  30. }
  31. protected function doDisplay(array $context, array $blocks = []): iterable
  32. {
  33. $macros = $this->macros;
  34. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  35. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@admin/nglayouts/meta.html.twig"));
  36. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  37. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@admin/nglayouts/meta.html.twig"));
  38. // line 1
  39. yield Twig\Extension\CoreExtension::include($this->env, $context, "@NetgenLayoutsAdmin/admin/head.html.twig");
  40. yield "
  41. <meta name=\"ibexa-admin-base-path\" content=\"";
  42. // line 3
  43. yield $this->extensions['Ibexa\Core\MVC\Symfony\Templating\Twig\Extension\RoutingExtension']->getPath(Netgen\Bundle\IbexaSiteApiBundle\Templating\Twig\Node\GetAttrExpressionDecorator::twigGetAttribute($this->env, $this->source, (isset($context["ibexa"]) || array_key_exists("ibexa", $context) ? $context["ibexa"] : (function () { throw new RuntimeError('Variable "ibexa" does not exist.', 3, $this->source); })()), "rootLocation", [], "any", false, false, false, 3));
  44. yield "\">
  45. ";
  46. // line 5
  47. if ((($tmp = Netgen\Bundle\IbexaSiteApiBundle\Templating\Twig\Node\GetAttrExpressionDecorator::twigGetAttribute($this->env, $this->source, Netgen\Bundle\IbexaSiteApiBundle\Templating\Twig\Node\GetAttrExpressionDecorator::twigGetAttribute($this->env, $this->source, Netgen\Bundle\IbexaSiteApiBundle\Templating\Twig\Node\GetAttrExpressionDecorator::twigGetAttribute($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", false, false, false, 5), "attributes", [], "any", false, false, false, 5), "has", ["content"], "method", false, false, false, 5)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
  48. // line 6
  49. yield " ";
  50. $context["content"] = Netgen\Bundle\IbexaSiteApiBundle\Templating\Twig\Node\GetAttrExpressionDecorator::twigGetAttribute($this->env, $this->source, Netgen\Bundle\IbexaSiteApiBundle\Templating\Twig\Node\GetAttrExpressionDecorator::twigGetAttribute($this->env, $this->source, Netgen\Bundle\IbexaSiteApiBundle\Templating\Twig\Node\GetAttrExpressionDecorator::twigGetAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 6, $this->source); })()), "request", [], "any", false, false, false, 6), "attributes", [], "any", false, false, false, 6), "get", ["content"], "method", false, false, false, 6);
  51. // line 7
  52. yield "
  53. ";
  54. // line 8
  55. if ((($tmp = (isset($context["content"]) || array_key_exists("content", $context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.', 8, $this->source); })())) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
  56. // line 9
  57. yield " <meta name=\"nglayouts-content-id\" content=\"";
  58. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(Netgen\Bundle\IbexaSiteApiBundle\Templating\Twig\Node\GetAttrExpressionDecorator::twigGetAttribute($this->env, $this->source, (isset($context["content"]) || array_key_exists("content", $context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.', 9, $this->source); })()), "id", [], "any", false, false, false, 9), "html", null, true);
  59. yield "\">
  60. <meta name=\"nglayouts-location-id\" content=\"";
  61. // line 10
  62. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(Netgen\Bundle\IbexaSiteApiBundle\Templating\Twig\Node\GetAttrExpressionDecorator::twigGetAttribute($this->env, $this->source, Netgen\Bundle\IbexaSiteApiBundle\Templating\Twig\Node\GetAttrExpressionDecorator::twigGetAttribute($this->env, $this->source, (isset($context["content"]) || array_key_exists("content", $context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.', 10, $this->source); })()), "contentInfo", [], "any", false, false, false, 10), "mainLocationId", [], "any", false, false, false, 10), "html", null, true);
  63. yield "\">
  64. ";
  65. // line 12
  66. if ((Netgen\Bundle\IbexaSiteApiBundle\Templating\Twig\Node\GetAttrExpressionDecorator::twigGetAttribute($this->env, $this->source, Netgen\Bundle\IbexaSiteApiBundle\Templating\Twig\Node\GetAttrExpressionDecorator::twigGetAttribute($this->env, $this->source, (isset($context["content"]) || array_key_exists("content", $context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.', 12, $this->source); })()), "versionInfo", [], "any", false, false, false, 12), "draft", [], "any", false, false, false, 12) && (Netgen\Bundle\IbexaSiteApiBundle\Templating\Twig\Node\GetAttrExpressionDecorator::twigGetAttribute($this->env, $this->source, Netgen\Bundle\IbexaSiteApiBundle\Templating\Twig\Node\GetAttrExpressionDecorator::twigGetAttribute($this->env, $this->source, (isset($context["content"]) || array_key_exists("content", $context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.', 12, $this->source); })()), "versionInfo", [], "any", false, false, false, 12), "versionNo", [], "any", false, false, false, 12) == 1))) {
  67. // line 13
  68. yield " <meta name=\"nglayouts-is-new-draft\" content=\"true\">
  69. ";
  70. }
  71. // line 15
  72. yield " ";
  73. }
  74. }
  75. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  76. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  77. yield from [];
  78. }
  79. /**
  80. * @codeCoverageIgnore
  81. */
  82. public function getTemplateName(): string
  83. {
  84. return "@admin/nglayouts/meta.html.twig";
  85. }
  86. /**
  87. * @codeCoverageIgnore
  88. */
  89. public function isTraitable(): bool
  90. {
  91. return false;
  92. }
  93. /**
  94. * @codeCoverageIgnore
  95. */
  96. public function getDebugInfo(): array
  97. {
  98. return array ( 84 => 15, 80 => 13, 78 => 12, 73 => 10, 68 => 9, 66 => 8, 63 => 7, 60 => 6, 58 => 5, 53 => 3, 48 => 1,);
  99. }
  100. public function getSourceContext(): Source
  101. {
  102. return new Source("{{ include('@NetgenLayoutsAdmin/admin/head.html.twig') }}
  103. <meta name=\"ibexa-admin-base-path\" content=\"{{ ibexa_path(ibexa.rootLocation) }}\">
  104. {% if app.request.attributes.has('content') %}
  105. {% set content = app.request.attributes.get('content') %}
  106. {% if content %}
  107. <meta name=\"nglayouts-content-id\" content=\"{{ content.id }}\">
  108. <meta name=\"nglayouts-location-id\" content=\"{{ content.contentInfo.mainLocationId }}\">
  109. {% if content.versionInfo.draft and content.versionInfo.versionNo == 1 %}
  110. <meta name=\"nglayouts-is-new-draft\" content=\"true\">
  111. {% endif %}
  112. {% endif %}
  113. {% endif %}
  114. ", "@admin/nglayouts/meta.html.twig", "/var/www/vhosts/platformv4.alpha.se7enx.com/httpdocs/platformvlegacy4.alpha.se7enx.com/vendor/netgen/layouts-ibexa/bundle/Resources/views/themes/admin/nglayouts/meta.html.twig");
  115. }
  116. }