$_tpl->source->filepath =
$compiler->template->block_data
[$_name]['file'
];
$_tpl->allow_relative_path = true;
if ($compiler->nocache
) { $_tpl->compiler->forceNocache = 2;
} else { $_tpl->compiler->forceNocache = 1;
} $_tpl->compiler->suppressHeader = true;
$_tpl->compiler->suppressTemplatePropertyHeader = true;
$_tpl->compiler->suppressMergedTemplates = true;
if (strpos($compiler->template->block_data
[$_name]['source'
], '%%%%SMARTY_PARENT%%%%'
) !== false
) { $_output =
str_replace('%%%%SMARTY_PARENT%%%%',
$compiler->parser->current_buffer->
to_smarty_php(),
$_tpl->compiler->
compileTemplate($_tpl));
} elseif ($compiler->template->block_data
[$_name]['mode'
] == 'prepend'
) { $_output =
$_tpl->compiler->
compileTemplate($_tpl) .
$compiler->parser->current_buffer->
to_smarty_php();
} elseif ($compiler->template->block_data
[$_name]['mode'
] == 'append'
) { $_output =
$compiler->parser->current_buffer->
to_smarty_php() .
$_tpl->compiler->
compileTemplate($_tpl);
} elseif (!
empty($compiler->template->block_data
[$_name])) { $_output =
$_tpl->compiler->
compileTemplate($_tpl);
} $compiler->template->properties
['file_dependency'
] =
array_merge($compiler->template->properties
['file_dependency'
],
$_tpl->properties
['file_dependency'
]);
$compiler->template->properties
['function'
] =
array_merge($compiler->template->properties
['function'
],
$_tpl->properties
['function'
]);
$compiler->merged_templates =
array_merge($compiler->merged_templates,
$_tpl->compiler->merged_templates
);
$compiler->template->variable_filters =
$_tpl->variable_filters;