Adds 'name' param to icon smarty function to allow for scriptaction reference to an id
(cherry picked from commit 0e998b7)