$plugins_string .= "?>/*/%%SmartyNocache:{
$compiler->template->properties
['nocache_hash'
]}%%*/';?>\n";
} // remove last line break from function definition
$last =
count($compiler->parser->current_buffer->subtrees
) - 1;
if ($compiler->parser->current_buffer->subtrees
[$last] instanceof _smarty_linebreak
) { unset($compiler->parser->current_buffer->subtrees
[$last]);
} // if caching save template function for possible nocache call
if ($compiler->template->caching
) { $compiler->template->properties
['function'
][$_name]['compiled'
] .=
$plugins_string .
$compiler->parser->current_buffer->
to_smarty_php();
$compiler->template->properties
['function'
][$_name]['nocache_hash'
] =
$compiler->template->properties
['nocache_hash'
];
$compiler->template->properties
['function'
][$_name]['has_nocache_code'
] =
$compiler->template->has_nocache_code;
$compiler->template->properties
['function'
][$_name]['called_functions'
] =
$compiler->called_functions;
$compiler->called_functions = array
();
$compiler->smarty->template_functions
[$_name] =
$compiler->template->properties
['function'
][$_name];
$compiler->has_code = false;
$output = true;
} else { $output =
$plugins_string .
$compiler->parser->current_buffer->
to_smarty_php() . "<?php \$_smarty_tpl->tpl_vars = \$saved_tpl_vars;}}?>\n";
} // reset flag that we are compiling a template function