Skip to content

Instantly share code, notes, and snippets.

@LionsAd
Created October 25, 2012 04:23
Show Gist options
  • Save LionsAd/3950401 to your computer and use it in GitHub Desktop.
Save LionsAd/3950401 to your computer and use it in GitHub Desktop.
Auto Escaped Twig Compiled Template
<?php
/* core/modules/node/templates/node.twig */
class __TwigTemplate_c2e554eca926f9ac6a6ef9a1b6d96476 extends Drupal\Core\Template\TwigTemplate
{
public function __construct(Twig_Environment $env)
{
parent::__construct($env);
$this->parent = false;
$this->blocks = array(
);
}
protected function doDisplay(array $context, array $blocks = array())
{
// line 82
echo "<article id=\"node-";
echo twig_escape_filter($this->env, twig_render($this->getAttribute($this->getContextReference($context, "node"), "nid")), "html", null, true);
echo "\" class=\"";
echo twig_escape_filter($this->env, twig_render($this->getAttribute($this->getContextReference($context, "attributes"), "class")), "html", null, true);
echo " clearfix\"";
echo twig_escape_filter($this->env, twig_render($this->getContextReference($context, "attributes")), "html", null, true);
echo ">
";
// line 84
echo twig_escape_filter($this->env, twig_render($this->getContextReference($context, "title_prefix")), "html", null, true);
echo "
";
// line 85
if (isset($context["page"])) { $_page_ = $context["page"]; } else { $_page_ = null; }
if (($_page_ != true)) {
// line 86
echo " <h2";
echo twig_escape_filter($this->env, twig_render($this->getContextReference($context, "title_attributes")), "html", null, true);
echo ">
<a href=\"";
// line 87
echo twig_escape_filter($this->env, twig_render($this->getContextReference($context, "node_url")), "html", null, true);
echo "\" rel=\"bookmark\">";
echo twig_escape_filter($this->env, twig_render($this->getContextReference($context, "label")), "html", null, true);
echo "</a>
</h2>
";
}
// line 90
echo " ";
echo twig_escape_filter($this->env, twig_render($this->getContextReference($context, "title_suffix")), "html", null, true);
echo "
";
// line 92
if (isset($context["display_submitted"])) { $_display_submitted_ = $context["display_submitted"]; } else { $_display_submitted_ = null; }
if ($_display_submitted_) {
// line 93
echo " <footer>
";
// line 94
echo twig_escape_filter($this->env, twig_render($this->getContextReference($context, "user_picture")), "html", null, true);
echo "
<p class=\"submitted\">";
// line 95
echo twig_escape_filter($this->env, twig_render($this->getContextReference($context, "submitted")), "html", null, true);
echo "</p>
</footer>
";
}
// line 98
echo "
<div class=\"content\"";
// line 99
echo twig_escape_filter($this->env, twig_render($this->getContextReference($context, "content_attributes")), "html", null, true);
echo ">
";
// line 101
echo " ";
echo twig_escape_filter($this->env, twig_render(twig_hide($this->getAttribute($this->getContextReference($context, "content"), "comments"))), "html", null, true);
// line 102
echo " ";
echo twig_escape_filter($this->env, twig_render(twig_hide($this->getAttribute($this->getContextReference($context, "content"), "links"))), "html", null, true);
// line 103
echo " ";
echo twig_escape_filter($this->env, twig_render($this->getContextReference($context, "content")), "html", null, true);
echo "
</div>
";
// line 106
echo twig_escape_filter($this->env, twig_render($this->getAttribute($this->getContextReference($context, "content"), "links")), "html", null, true);
echo "
";
// line 107
echo twig_escape_filter($this->env, twig_render($this->getAttribute($this->getContextReference($context, "content"), "comments")), "html", null, true);
echo "
</article>
";
}
public function getTemplateName()
{
return "core/modules/node/templates/node.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 93 => 107, 89 => 106, 82 => 103, 79 => 102, 76 => 101, 72 => 99, 69 => 98, 63 => 95, 59 => 94, 56 => 93, 53 => 92, 47 => 90, 39 => 87, 34 => 86, 31 => 85, 27 => 84, 17 => 82,);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment