2 /* Generated from /home/crodas/projects/playground/haanga/tests/assert_templates/base.tpl */
3 function haanga_d2f931b3242b3187b9a3d407f38c7d9d691df84f($vars, $return=FALSE, $blocks=array())
9 echo "<html>\n<head>\n <title>";
10 $buffer1 = "Default Title";
11 echo (isset($blocks["title"]) ?
(strpos($blocks["title"], "{{block.1b3231655cebb7a1f783eddf27d254ca}}") === FALSE ?
$blocks["title"] : str_replace("{{block.1b3231655cebb7a1f783eddf27d254ca}}", $buffer1, $blocks["title"])) : $buffer1)."</title>\n</head>\n\n<body>\n <h1>Menu</h1>\n ";
12 $buffer1 = "\n <ul>\n ";
13 foreach ($menu as $item) {
14 $buffer1 .= "\n <li><a href=\"".$item["url"]."\">".htmlentities($item["name"])."</a></li>\n ";
16 $buffer1 .= "\n </ul>\n ";
17 echo (isset($blocks["main.menu"]) ?
(strpos($blocks["main.menu"], "{{block.1b3231655cebb7a1f783eddf27d254ca}}") === FALSE ?
$blocks["main.menu"] : str_replace("{{block.1b3231655cebb7a1f783eddf27d254ca}}", $buffer1, $blocks["main.menu"])) : $buffer1)."\n ";
18 $buffer1 = "".Haanga
::Load("assert_templates/partial.tpl", $vars, TRUE, $blocks);
19 echo (isset($blocks["main.include-end"]) ?
(strpos($blocks["main.include-end"], "{{block.1b3231655cebb7a1f783eddf27d254ca}}") === FALSE ?
$blocks["main.include-end"] : str_replace("{{block.1b3231655cebb7a1f783eddf27d254ca}}", $buffer1, $blocks["main.include-end"])) : $buffer1)."\n</body>\n</html>\n";
20 if ($return == TRUE) {
21 return ob_get_clean();