Elemental Theme - why no closing PHP bracket in default.php?

Out of curiousity, why is there no closing php bracket in default.php?


In elements/footer.php brackets are closed, so in footer_bottom.php same in header.php and header_top.php

In PHP, a closing ?> tag is unnecessary, and is implied by the end of the file.
It’s often good practice to have it this way in included, as it will avoid accidentally having whitespace output.

1 Like