<th scope="row" class="interval_th"> <label for="interval_type"><?php _e('Interval', 'wc_followup_emails'); ?> </label> </th> <td class="interval_td"> <span class="hide-if-date interval_span hideable"> <input type="text" name="interval" id="interval" value="<?php echo esc_attr($defaults['interval']); ?> " size="2" /> </span> <select name="interval_duration" id="interval_duration" class="interval_duration hideable"> <?php $durations = SFN_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; ?>