Added missing <?php endif?>