53d18a9c1445d63f9fc442e4a7e62f624cc9510839295bfce8606a877f0e83a2.php 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. <?php
  2. /* partials/metadata.html.twig */
  3. class __TwigTemplate_0b4e3f6ed152f14a4860d0b7beb3ebf543362ce716dc70000d9fc79150131903 extends Twig_Template
  4. {
  5. public function __construct(Twig_Environment $env)
  6. {
  7. parent::__construct($env);
  8. $this->parent = false;
  9. $this->blocks = array(
  10. );
  11. }
  12. protected function doDisplay(array $context, array $blocks = array())
  13. {
  14. // line 1
  15. $context['_parent'] = $context;
  16. $context['_seq'] = twig_ensure_traversable($this->getAttribute(($context["page"] ?? null), "metadata", array()));
  17. foreach ($context['_seq'] as $context["_key"] => $context["meta"]) {
  18. // line 2
  19. echo "<meta ";
  20. if ($this->getAttribute($context["meta"], "name", array())) {
  21. echo "name=\"";
  22. echo $this->getAttribute($context["meta"], "name", array());
  23. echo "\" ";
  24. }
  25. if ($this->getAttribute($context["meta"], "http_equiv", array())) {
  26. echo "http-equiv=\"";
  27. echo $this->getAttribute($context["meta"], "http_equiv", array());
  28. echo "\" ";
  29. }
  30. if ($this->getAttribute($context["meta"], "charset", array())) {
  31. echo "charset=\"";
  32. echo $this->getAttribute($context["meta"], "charset", array());
  33. echo "\" ";
  34. }
  35. if ($this->getAttribute($context["meta"], "property", array())) {
  36. echo "property=\"";
  37. echo $this->getAttribute($context["meta"], "property", array());
  38. echo "\" ";
  39. }
  40. if ($this->getAttribute($context["meta"], "content", array())) {
  41. echo "content=\"";
  42. echo $this->getAttribute($context["meta"], "content", array());
  43. echo "\" ";
  44. }
  45. echo "/>
  46. ";
  47. }
  48. $_parent = $context['_parent'];
  49. unset($context['_seq'], $context['_iterated'], $context['_key'], $context['meta'], $context['_parent'], $context['loop']);
  50. $context = array_intersect_key($context, $_parent) + $_parent;
  51. }
  52. public function getTemplateName()
  53. {
  54. return "partials/metadata.html.twig";
  55. }
  56. public function isTraitable()
  57. {
  58. return false;
  59. }
  60. public function getDebugInfo()
  61. {
  62. return array ( 23 => 2, 19 => 1,);
  63. }
  64. /** @deprecated since 1.27 (to be removed in 2.0). Use getSourceContext() instead */
  65. public function getSource()
  66. {
  67. @trigger_error('The '.__METHOD__.' method is deprecated since version 1.27 and will be removed in 2.0. Use getSourceContext() instead.', E_USER_DEPRECATED);
  68. return $this->getSourceContext()->getCode();
  69. }
  70. public function getSourceContext()
  71. {
  72. return new Twig_Source("{% for meta in page.metadata %}
  73. <meta {% if meta.name %}name=\"{{ meta.name }}\" {% endif %}{% if meta.http_equiv %}http-equiv=\"{{ meta.http_equiv }}\" {% endif %}{% if meta.charset %}charset=\"{{ meta.charset }}\" {% endif %}{% if meta.property %}property=\"{{ meta.property }}\" {% endif %}{% if meta.content %}content=\"{{ meta.content }}\" {% endif %}/>
  74. {% endfor %}
  75. ", "partials/metadata.html.twig", "/mnt/data/Sites/static-ethica.net/user/themes/ethica/templates/partials/metadata.html.twig");
  76. }
  77. }