Migrate "shorten" to SMarty3