This topic is locked

Question on some code formatting in the calendar template

10/22/2025 16:44:06
Calendar Template general questions
D
DealerModules authorDevClub member

I am going through my code and doing some notations and code clean-up maintenance.
I noticed in the Calendar Template, there are several snippets that start with the php closing code and end with the php opening script code.

?>
<script>
<?php
calendar_outputTimeFieldsEdit(-1);
?>
</script>
<?php

Why is this formatted this way? Is it set to close a previous php snippet? Just not understanding and wanted to keep my code clean.
The way it is formatted it will run, just doesn't make sense.

Thanks
Paul