?> </em></p> <div class="vbx-full-pane"> <?php foreach ($days as $index => $day) { ?> <div class="timing-timerange-wrap"> <label><?php print $day; ?> </label> <?php $state = AppletInstance::getValue("range_{$index}_from", '') ? 'remove' : 'add'; $default = $index < 5 ? '09:00AM' : ''; echo AppletUI::timeRange("range_{$index}", AppletInstance::getValue("range_{$index}_from", $default), AppletInstance::getValue("range_{$index}_to", '05:00PM'), $day); ?> <a href="#" class="timing-<?php echo $state; ?> "><?php echo $state; ?> </a> <br class="clear"/> </div> <?php } ?> </div>