123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687 |
- <?php
- /* partials/metadata.html.twig */
- class __TwigTemplate_0b4e3f6ed152f14a4860d0b7beb3ebf543362ce716dc70000d9fc79150131903 extends Twig_Template
- {
- public function __construct(Twig_Environment $env)
- {
- parent::__construct($env);
- $this->parent = false;
- $this->blocks = array(
- );
- }
- protected function doDisplay(array $context, array $blocks = array())
- {
- // line 1
- $context['_parent'] = $context;
- $context['_seq'] = twig_ensure_traversable($this->getAttribute(($context["page"] ?? null), "metadata", array()));
- foreach ($context['_seq'] as $context["_key"] => $context["meta"]) {
- // line 2
- echo "<meta ";
- if ($this->getAttribute($context["meta"], "name", array())) {
- echo "name=\"";
- echo $this->getAttribute($context["meta"], "name", array());
- echo "\" ";
- }
- if ($this->getAttribute($context["meta"], "http_equiv", array())) {
- echo "http-equiv=\"";
- echo $this->getAttribute($context["meta"], "http_equiv", array());
- echo "\" ";
- }
- if ($this->getAttribute($context["meta"], "charset", array())) {
- echo "charset=\"";
- echo $this->getAttribute($context["meta"], "charset", array());
- echo "\" ";
- }
- if ($this->getAttribute($context["meta"], "property", array())) {
- echo "property=\"";
- echo $this->getAttribute($context["meta"], "property", array());
- echo "\" ";
- }
- if ($this->getAttribute($context["meta"], "content", array())) {
- echo "content=\"";
- echo $this->getAttribute($context["meta"], "content", array());
- echo "\" ";
- }
- echo "/>
- ";
- }
- $_parent = $context['_parent'];
- unset($context['_seq'], $context['_iterated'], $context['_key'], $context['meta'], $context['_parent'], $context['loop']);
- $context = array_intersect_key($context, $_parent) + $_parent;
- }
- public function getTemplateName()
- {
- return "partials/metadata.html.twig";
- }
- public function isTraitable()
- {
- return false;
- }
- public function getDebugInfo()
- {
- return array ( 23 => 2, 19 => 1,);
- }
- /** @deprecated since 1.27 (to be removed in 2.0). Use getSourceContext() instead */
- public function getSource()
- {
- @trigger_error('The '.__METHOD__.' method is deprecated since version 1.27 and will be removed in 2.0. Use getSourceContext() instead.', E_USER_DEPRECATED);
- return $this->getSourceContext()->getCode();
- }
- public function getSourceContext()
- {
- return new Twig_Source("{% for meta in page.metadata %}
- <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 %}/>
- {% endfor %}
- ", "partials/metadata.html.twig", "/mnt/data/Sites/static-ethica.net/user/themes/ethica/templates/partials/metadata.html.twig");
- }
- }
|