Need help with recurring timer html file
-
I am trying add another line to the html file of the reoccuring timeer, I tried duplicating the existing line but I am getting syntax errors and I was wondering anyone could offer suggestions on how to best do that. Thanks in advance and god bless.
Existing code
<span id="rt-description"> <?php if(strtotime($event_start) - strtotime($event_start_mid) > 0) { /* MIDWEEK */ ?> <span id="rt-until"><?php echo $instance['event_until_mid']; ?></span> <span id="rt-event"><?php echo $instance['event_name_mid']; ?></span> <span id="rt-on"><?php echo $instance['event_now_mid']; ?></span> <?php } else { ?> <span id="rt-until"><?php echo $instance['event_until']; ?></span> <span id="rt-event"><?php echo $instance['event_name']; ?></span> <span id="rt-on"><?php echo $instance['event_now']; ?></span> <?php } ?>
I would like to duplicate or add another line to the existing statement with slightly different variables.
Example code
<?php if(strtotime($event_start) - strtotime($event_start_mid) > 0) { /* Sunday 830 */ ?> <span id="rt-until"><?php echo $instance['event_until_sun830']; ?></span> <span id="rt-event"><?php echo $instance['event_name_sun830']; ?></span> <span id="rt-on"><?php echo $instance['event_now_sun830']; ?></span> <?php if(strtotime($event_start) - strtotime($event_start_mid) > 0) { /* MIDWEEK */ ?> <span id="rt-until"><?php echo $instance['event_until_mid']; ?></span> <span id="rt-event"><?php echo $instance['event_name_mid']; ?></span> <span id="rt-on"><?php echo $instance['event_now_mid']; ?></span> <?php } else { ?> <span id="rt-until"><?php echo $instance['event_until']; ?></span> <span id="rt-event"><?php echo $instance['event_name']; ?></span> <span id="rt-on"><?php echo $instance['event_now']; ?></span> <?php } ?>
Viewing 9 replies - 1 through 9 (of 9 total)
Viewing 9 replies - 1 through 9 (of 9 total)
- The topic ‘Need help with recurring timer html file’ is closed to new replies.