It might be better to use the explicit end keywords here now that this is being changed, e.g.:

<? if (condition): ?>
....
<? endif; ?>

This makes it more clear what is finishing when one or more PHP control structures are embedded in HTML.