parent = array();
$this->blocks = array(
'toolbar' => array($this, 'block_toolbar'),
'menu' => array($this, 'block_menu'),
'panel' => array($this, 'block_panel'),
);
}
public function getParent(array $context)
{
$parent = "WebProfilerBundle:Profiler:layout.html.twig";
if ($parent instanceof Twig_Template) {
$name = $parent->getTemplateName();
$this->parent[$name] = $parent;
$parent = $name;
} elseif (!isset($this->parent[$parent])) {
$this->parent[$parent] = $this->env->loadTemplate($parent);
}
return $this->parent[$parent];
}
protected function doDisplay(array $context, array $blocks = array())
{
$context = array_merge($this->env->getGlobals(), $context);
$this->getParent($context)->display($context, array_merge($this->blocks, $blocks));
}
// line 3
public function block_toolbar($context, array $blocks = array())
{
// line 4
echo " ";
if ($this->getAttribute($this->getContext($context, 'collector'), "counterrors", array(), "any", false)) {
// line 5
echo " ";
ob_start();
// line 6
echo "
";
$context['icon'] = new Twig_Markup(ob_get_clean());
// line 8
echo " ";
ob_start();
// line 9
echo " ";
echo twig_escape_filter($this->env, $this->getAttribute($this->getContext($context, 'collector'), "counterrors", array(), "any", false), "html");
echo "
";
$context['text'] = new Twig_Markup(ob_get_clean());
// line 11
echo " ";
$this->env->loadTemplate("WebProfilerBundle:Profiler:toolbar_item.html.twig")->display(array_merge($context, array("link" => $this->getContext($context, 'profiler_url'))));
// line 12
echo " ";
}
}
// line 15
public function block_menu($context, array $blocks = array())
{
// line 16
echo "
env, $this->env->getExtension('assets')->getAssetUrl("bundles/webprofiler/images/profiler/logger.png"), "html");
echo "\" alt=\"Logger\" />
Logs
";
// line 19
if ($this->getAttribute($this->getContext($context, 'collector'), "counterrors", array(), "any", false)) {
// line 20
echo "
";
// line 21
echo twig_escape_filter($this->env, $this->getAttribute($this->getContext($context, 'collector'), "counterrors", array(), "any", false), "html");
echo "
";
}
// line 24
echo "
";
}
// line 27
public function block_panel($context, array $blocks = array())
{
// line 28
echo "
No logs available.
"; } } public function getTemplateName() { return "WebProfilerBundle:Collector:logger.html.twig"; } public function isTraitable() { return false; } }