?> </label> <div> <input type="hidden" name="email_type" id="email_type" value="<?php echo $defaults['type']; ?> " /> <span class="hide-if-date interval_span hideable"> <input type="number" min="1" step="1" name="interval" id="interval" value="<?php echo esc_attr($defaults['interval']); ?> " size="2" style="vertical-align: top; width: 50px;" /> </span> <select name="interval_duration" id="interval_duration" class="interval_duration hideable"> <?php $durations = FollowUpEmails::get_durations(); foreach ($durations as $key => $value) { $selected = $defaults['interval_duration'] == $key ? 'selected' : ''; ?> <option class="interval_duration_<?php echo $key; ?> hideable" value="<?php echo esc_attr($key); ?> " <?php echo $selected; ?> ><?php echo $value; ?>