Advertisement
Guest User

crodas

a guest
Aug 11th, 2010
181
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.41 KB | None | 0 0
  1. <?php
  2.  
  3. /* index.html */
  4. class __TwigTemplate_fcc6ab0947109b50bf108506f7d6a70f extends Twig_Template
  5. {
  6.     public function display(array $context)
  7.     {
  8.         // line 1
  9.         echo "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01//EN\">
  10. <html lang=\"en\">
  11.  <head>
  12.    <title>My Webpage</title>
  13.  </head>
  14.  <body>
  15.    <ul id=\"navigation\">
  16.    ";
  17.         // line 8
  18.         $context['_parent'] = (array) $context;
  19.         $context['_seq'] = twig_iterator_to_array((isset($context['navigation']) ? $context['navigation'] : null));
  20.         $countable = is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof Countable);
  21.         $length = $countable ? count($context['_seq']) : null;
  22.         $context['loop'] = array(
  23.           'parent' => $context['_parent'],
  24.           'index0' => 0,
  25.           'index'  => 1,
  26.           'first'  => true,
  27.         );
  28.         if ($countable) {
  29.             $context['loop']['revindex0'] = $length - 1;
  30.             $context['loop']['revindex'] = $length;
  31.             $context['loop']['length'] = $length;
  32.             $context['loop']['last'] = 1 === $length;
  33.         }
  34.         foreach ($context['_seq'] as $context['_key'] => $context['item']) {
  35.             echo "
  36.      <li><a href=\"";
  37.             // line 9
  38.             echo $this->getAttribute((isset($context['item']) ? $context['item'] : null), "href", array(), "any");
  39.             echo "\">";
  40.             echo $this->getAttribute((isset($context['item']) ? $context['item'] : null), "caption", array(), "any");
  41.             echo "</a></li>
  42.    ";
  43.             ++$context['loop']['index0'];
  44.             ++$context['loop']['index'];
  45.             $context['loop']['first'] = false;
  46.             if ($countable) {
  47.                 --$context['loop']['revindex0'];
  48.                 --$context['loop']['revindex'];
  49.                 $context['loop']['last'] = 0 === $context['loop']['revindex0'];
  50.             }
  51.         }
  52.         $_parent = $context['_parent'];
  53.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
  54.         $context = array_merge($_parent, array_intersect_key($context, $_parent));
  55.         // line 10
  56.         echo "
  57.    </ul>
  58.  
  59.    <h1>My Webpage</h1>
  60.    ";
  61.         // line 14
  62.         echo (isset($context['a_variable']) ? $context['a_variable'] : null);
  63.         echo "
  64.  </body>
  65. </html>
  66. ";
  67.     }
  68.  
  69. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement