Update template.php

Added wrapper class for time.