Fix smarty template filter and smarten slide template quotes