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'), "messagecount", array(), "any", false)) { // line 5 echo " "; ob_start(); // line 6 echo " \"Swiftmailer\" "; $context['icon'] = new Twig_Markup(ob_get_clean()); // line 8 echo " "; ob_start(); // line 9 echo " env, $this->getAttribute($this->getContext($context, 'collector'), "messagecount", array(), "any", false), "html"); echo " messages\">"; echo twig_escape_filter($this->env, $this->getAttribute($this->getContext($context, 'collector'), "messagecount", 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/mail.png"), "html"); echo "\" alt=\"Configuration\" /> E-Mails "; // line 20 echo twig_escape_filter($this->env, $this->getAttribute($this->getContext($context, 'collector'), "messagecount", array(), "any", false), "html"); echo " "; } // line 25 public function block_panel($context, array $blocks = array()) { // line 26 echo "

Messages "; echo (($this->getAttribute($this->getContext($context, 'collector'), "isSpool", array(), "any", false)) ? ("spooled") : ("sent")); echo "

"; // line 28 if ((!$this->getAttribute($this->getContext($context, 'collector'), "messages", array(), "any", false))) { // line 29 echo "

No message sent.

"; } else { // line 33 echo " "; $context['_parent'] = (array) $context; $context['_seq'] = twig_ensure_traversable($this->getAttribute($this->getContext($context, 'collector'), "messages", array(), "any", false)); foreach ($context['_seq'] as $context['i'] => $context['message']) { // line 34 echo "

Message "; echo twig_escape_filter($this->env, ($this->getContext($context, 'i') + 1), "html"); echo " / "; echo twig_escape_filter($this->env, $this->getAttribute($this->getContext($context, 'collector'), "messagecount", array(), "any", false), "html"); echo "

"; // line 36 $context['_parent'] = (array) $context; $context['_seq'] = twig_ensure_traversable($this->getAttribute($this->getAttribute($this->getContext($context, 'message'), "headers", array(), "any", false), "all", array(), "any", false)); foreach ($context['_seq'] as $context['_key'] => $context['header']) { // line 37 echo "
";
                    echo twig_escape_filter($this->env, $this->getContext($context, 'header'), "html");
                    echo "
"; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['header'], $context['_parent'], $context['loop']); $context = array_merge($_parent, array_intersect_key($context, $_parent)); // line 39 echo "

";
                // line 41
                echo twig_escape_filter($this->env, $this->getAttribute($this->getContext($context, 'message'), "body", array(), "any", false), "html", $this->getAttribute($this->getContext($context, 'message'), "charset", array(), "any", false));
                echo "

"; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['i'], $context['message'], $context['_parent'], $context['loop']); $context = array_merge($_parent, array_intersect_key($context, $_parent)); // line 44 echo " "; } } public function getTemplateName() { return "SwiftmailerBundle:Collector:swiftmailer.html.twig"; } public function isTraitable() { return false; } }