- Simple optimization, echo now uses multiple variables instead of str. concatenation...
[haanga.git] / tests / tmp / assert_templates / nested_block.tpl.php
blobb0fd8ba46e1db42167922132ebda67034e089b58
1 <?php
2 $HAANGA_VERSION = '1.1.3';
3 /* Generated from /home/crodas/projects/playground/haanga/tests/assert_templates/nested_block.tpl */
4 function haanga_57c4ad33715ae7aa88250c99f9339224979afde7($vars, $return=FALSE, $blocks=array())
6 global $test_global;
7 extract($vars);
8 if ($return == TRUE) {
9 ob_start();
11 $buffer1 = '
13 $buffer2 = '
14 this is inner1
16 $buffer1 .= (isset($blocks['inner1']) ? (strpos($blocks['inner1'], '{{block.1b3231655cebb7a1f783eddf27d254ca}}') === FALSE ? $blocks['inner1'] : str_replace('{{block.1b3231655cebb7a1f783eddf27d254ca}}', $buffer2, $blocks['inner1'])) : $buffer2).'
18 $buffer2 = '
19 this is inner2
21 $buffer1 .= (isset($blocks['inner2']) ? (strpos($blocks['inner2'], '{{block.1b3231655cebb7a1f783eddf27d254ca}}') === FALSE ? $blocks['inner2'] : str_replace('{{block.1b3231655cebb7a1f783eddf27d254ca}}', $buffer2, $blocks['inner2'])) : $buffer2).'
23 echo (isset($blocks['outer']) ? (strpos($blocks['outer'], '{{block.1b3231655cebb7a1f783eddf27d254ca}}') === FALSE ? $blocks['outer'] : str_replace('{{block.1b3231655cebb7a1f783eddf27d254ca}}', $buffer1, $blocks['outer'])) : $buffer1),'
25 if ($return == TRUE) {
26 return ob_get_clean();