clean smarty plugins and use smarty global var to link commithash

i tried first to use geturl but its not compatible with modifiers

Signed-off-by: Tanguy Pruvot <tanguy.pruvot@gmail.com>