1). Which block have you cloned?
2). You have to make sure that the function
is availble within the specific php file of that block.
3). After you have insert the above needed function you insert the smarty code within the specific template
Hope this helps out!