Update Template7 to latest version
Rename isFirst -> isBeginning, isLast -> isEnd