set_prefilter('picture', 'stc_on_picture_prefilter');
}
function stc_on_picture_prefilter($template, &$smarty)
{
$search = '';
$replace = '
{footer_script require="jquery"}{literal}
jQuery(document).ready(function() {
$("input[name=stc_check]").change(function() {
if ($(this).is(":checked")) $("#stc_mail").css("display", "");
else $("#stc_mail").css("display", "none");
});
});
{/literal}
{/footer_script}
'.$search;
return str_replace($search, $replace, $template);
}
?>