9cf7229bdaf28d29ce0602e6d758a5ec9ccf5e685af4690ef719a5c4a16b0e92.php 3.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. <?php
  2. /* partials/metadata.html.twig */
  3. class __TwigTemplate_a8d15f81421c187a7f2bffc843220859dcf19f1cfb048f5be8b602715c8d2d06 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 %}", "partials/metadata.html.twig", "/mnt/data/Sites/r2c.net/system/templates/partials/metadata.html.twig");
  75. }
  76. }