Update template.php

Alter and improve the lt3_excerpt function