Looks like WordPress replaces “normal quotes” like ” and ‘ with “curly quotes”. When you copy and paste the above code into your template, Smarty won’t understand them.
Replace the quotes with shift-2 and the character between ; and # (on a UK/Ireland keyboard anyway!)
Not sure if the above quotes are going to be replaced either which is why I’m spelling out the characters!