Skip to content

Instantly share code, notes, and snippets.

@LionsAd
Created October 25, 2012 03:27
Show Gist options
  • Save LionsAd/3950254 to your computer and use it in GitHub Desktop.
Save LionsAd/3950254 to your computer and use it in GitHub Desktop.
Optimized compiled TwigTemplate
<?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-";
if (isset($context["node"])) { $_node_ = $context["node"]; } else { $_node_ = null; }
echo $this->getAttribute($_node_, "nid");
echo "\" class=\"";
if (isset($context["attributes"])) { $_attributes_ = $context["attributes"]; } else { $_attributes_ = null; }
echo $this->getAttribute($_attributes_, "class");
echo " clearfix\"";
if (isset($context["attributes"])) { $_attributes_ = $context["attributes"]; } else { $_attributes_ = null; }
echo $_attributes_;
echo ">
";
// line 84
echo twig_render($this->getContextReference($context, "title_prefix"));
echo "
";
// line 85
if (isset($context["page"])) { $_page_ = $context["page"]; } else { $_page_ = null; }
if (($_page_ != true)) {
// line 86
echo " <h2";
if (isset($context["title_attributes"])) { $_title_attributes_ = $context["title_attributes"]; } else { $_title_attributes_ = null; }
echo $_title_attributes_;
echo ">
<a href=\"";
// line 87
if (isset($context["node_url"])) { $_node_url_ = $context["node_url"]; } else { $_node_url_ = null; }
echo $_node_url_;
echo "\" rel=\"bookmark\">";
if (isset($context["label"])) { $_label_ = $context["label"]; } else { $_label_ = null; }
echo $_label_;
echo "</a>
</h2>
";
}
// line 90
echo " ";
echo twig_render($this->getContextReference($context, "title_suffix"));
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
if (isset($context["user_picture"])) { $_user_picture_ = $context["user_picture"]; } else { $_user_picture_ = null; }
echo $_user_picture_;
echo "
<p class=\"submitted\">";
// line 95
if (isset($context["submitted"])) { $_submitted_ = $context["submitted"]; } else { $_submitted_ = null; }
echo $_submitted_;
echo "</p>
</footer>
";
}
// line 98
echo "
<div class=\"content\"";
// line 99
if (isset($context["content_attributes"])) { $_content_attributes_ = $context["content_attributes"]; } else { $_content_attributes_ = null; }
echo $_content_attributes_;
echo ">
";
// line 101
echo " ";
echo twig_render(twig_hide($this->getAttribute($this->getContextReference($context, "content"), "comments")));
// line 102
echo " ";
echo twig_render(twig_hide($this->getAttribute($this->getContextReference($context, "content"), "links")));
// line 103
echo " ";
echo twig_render($this->getContextReference($context, "content"));
echo "
</div>
";
// line 106
echo twig_render($this->getAttribute($this->getContextReference($context, "content"), "links"));
echo "
";
// line 107
echo twig_render($this->getAttribute($this->getContextReference($context, "content"), "comments"));
echo "
</article>
";
}
public function getTemplateName()
{
return "core/modules/node/templates/node.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 102 => 107, 98 => 106, 91 => 103, 88 => 102, 85 => 101, 80 => 99, 77 => 98, 70 => 95, 65 => 94, 62 => 93, 59 => 92, 53 => 90, 43 => 87, 37 => 86, 34 => 85, 30 => 84, 17 => 82,);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment