275e97ade9e9e94aef903ba06613.php 2.5KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. <?php
  2. /* AcmeDemoBundle:Demo:index.html.twig */
  3. class __TwigTemplate_7862275e97ade9e9e94aef903ba06613 extends Twig_Template
  4. {
  5. protected $parent;
  6. public function __construct(Twig_Environment $env)
  7. {
  8. parent::__construct($env);
  9. $this->parent = array();
  10. $this->blocks = array(
  11. 'title' => array($this, 'block_title'),
  12. 'content_header' => array($this, 'block_content_header'),
  13. 'content' => array($this, 'block_content'),
  14. );
  15. }
  16. public function getParent(array $context)
  17. {
  18. $parent = "AcmeDemoBundle::layout.html.twig";
  19. if ($parent instanceof Twig_Template) {
  20. $name = $parent->getTemplateName();
  21. $this->parent[$name] = $parent;
  22. $parent = $name;
  23. } elseif (!isset($this->parent[$parent])) {
  24. $this->parent[$parent] = $this->env->loadTemplate($parent);
  25. }
  26. return $this->parent[$parent];
  27. }
  28. protected function doDisplay(array $context, array $blocks = array())
  29. {
  30. $context = array_merge($this->env->getGlobals(), $context);
  31. $this->getParent($context)->display($context, array_merge($this->blocks, $blocks));
  32. }
  33. // line 3
  34. public function block_title($context, array $blocks = array())
  35. {
  36. echo "Symfony - Demos";
  37. }
  38. // line 5
  39. public function block_content_header($context, array $blocks = array())
  40. {
  41. echo "";
  42. }
  43. // line 7
  44. public function block_content($context, array $blocks = array())
  45. {
  46. // line 8
  47. echo " <h1>Available demos</h1>
  48. <ul id=\"demo-list\">
  49. <li><a href=\"";
  50. // line 10
  51. echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("_demo_hello", array("name" => "World")), "html");
  52. echo "\">Hello World</a></li>
  53. <li><a href=\"";
  54. // line 11
  55. echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("_demo_secured_hello", array("name" => "World")), "html");
  56. echo "\">Access the secured area</a>&nbsp;&nbsp;&nbsp;&nbsp;<a href=\"";
  57. echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("_demo_login"), "html");
  58. echo "\">Go to the login page</a></li>
  59. ";
  60. // line 13
  61. echo " </ul>
  62. ";
  63. }
  64. public function getTemplateName()
  65. {
  66. return "AcmeDemoBundle:Demo:index.html.twig";
  67. }
  68. public function isTraitable()
  69. {
  70. return false;
  71. }
  72. }