Update single.php

Added missing endif;