1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586 |
- <?php
- /* partials/metadata.html.twig */
- class __TwigTemplate_a8d15f81421c187a7f2bffc843220859dcf19f1cfb048f5be8b602715c8d2d06 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/r2c.net/system/templates/partials/metadata.html.twig");
- }
- }
|