| 1 |
<?php |
| 2 |
namespace Hurrytimer; |
| 3 |
?> |
| 4 |
<div id="hurrytimer-tabcontent-general" class="hurrytimer-tabcontent active"> |
| 5 |
<table class="form-table"> |
| 6 |
<tr class="form-field hurrytimer-field-mode"> |
| 7 |
<td> |
| 8 |
<label for="hurrytimer-mode"><?php _e("Mode", "hurrytimer") ?></label> |
| 9 |
</td> |
| 10 |
<td> |
| 11 |
<label> |
| 12 |
<input |
| 13 |
type="radio" |
| 14 |
name="mode" |
| 15 |
class="hurrytimer-mode" |
| 16 |
value="<?php echo C::MODE_EVERGREEN ?>" |
| 17 |
<?php checked($campaign->mode, C::MODE_EVERGREEN) ?> |
| 18 |
> |
| 19 |
<?php _e("Evergreen", "hurrytimer") ?> |
| 20 |
</label> |
| 21 |
<label> |
| 22 |
<input type="radio" |
| 23 |
name="mode" |
| 24 |
class="hurrytimer-mode" |
| 25 |
value="<?php echo C::MODE_REGULAR ?>" |
| 26 |
<?php checked($campaign->mode, C::MODE_REGULAR) ?> |
| 27 |
> |
| 28 |
<?php _e("Regular", "hurrytimer") ?> |
| 29 |
</label> |
| 30 |
</td> |
| 31 |
</tr> |
| 32 |
<tr class="form-field hurryt-evergreen-mode-subfields hurrytimer-field-duration-wrap hidden"> |
| 33 |
<td> |
| 34 |
<label><?php _e('Ends After', "hurrytimer") ?></label> |
| 35 |
</td> |
| 36 |
<td> |
| 37 |
<div class="hurrytimer-field-duration"> |
| 38 |
|
| 39 |
<label> |
| 40 |
<?php _e("Days", "hurrytimer") ?> |
| 41 |
|
| 42 |
<input type="number" |
| 43 |
class="hurrytimer-duration" |
| 44 |
name="duration[]" |
| 45 |
min="0" |
| 46 |
data-index="0" |
| 47 |
value="<?php echo $campaign->duration[0] ?>"> |
| 48 |
</label> |
| 49 |
<label> |
| 50 |
<?php _e("Hours", "hurrytimer") ?> |
| 51 |
<input type="number" |
| 52 |
class="hurrytimer-duration" |
| 53 |
name="duration[]" |
| 54 |
min="0" |
| 55 |
data-index="1" |
| 56 |
value="<?php echo $campaign->duration[1] ?>" |
| 57 |
> |
| 58 |
|
| 59 |
</label> |
| 60 |
<label> |
| 61 |
<?php _e("Minutes", "hurrytimer") ?> |
| 62 |
<input type="number" |
| 63 |
class="hurrytimer-duration" |
| 64 |
name="duration[]" |
| 65 |
min="0" |
| 66 |
data-index="2" |
| 67 |
value="<?php echo $campaign->duration[2] ?>" |
| 68 |
> |
| 69 |
|
| 70 |
</label> |
| 71 |
<label> |
| 72 |
<?php _e("seconds", "hurrytimer") ?> |
| 73 |
<input type="number" |
| 74 |
class="hurrytimer-duration" |
| 75 |
name="duration[]" |
| 76 |
data-index="3" |
| 77 |
value="<?php echo $campaign->duration[3] ?>" |
| 78 |
> |
| 79 |
|
| 80 |
</label> |
| 81 |
</div> |
| 82 |
</td> |
| 83 |
</tr> |
| 84 |
<tr class="form-field hidden hurryt-regular-mode-subfields"> |
| 85 |
<td><label><?php _e("End Date & Time", "hurrytimer") ?></label></td> |
| 86 |
<td> |
| 87 |
<label for="hurrytimer-end-datetime" class="date"> |
| 88 |
<input type="text" name="end_datetime" autocomplete="off" id="hurrytimer-end-datetime" |
| 89 |
class="hurrytimer-datepicker" |
| 90 |
value="<?php echo $campaign->endDatetime ?>" |
| 91 |
> |
| 92 |
</label> |
| 93 |
</td> |
| 94 |
</tr> |
| 95 |
<tr class="form-field hidden hurryt-evergreen-mode-subfields"> |
| 96 |
<td><label for="active"><?php _e("Restart when expired", "hurrytimer")?></label></td> |
| 97 |
<td> |
| 98 |
<select name="restart" id="js-hurrytimer-restart-coundown" class="htmr-form__field--m"> |
| 99 |
<option value="<?php echo C::RESTART_NONE ?>" <?php echo selected($campaign->restart, C::RESTART_NONE) ?>> |
| 100 |
<?php _e("No", "hurrytimer")?> |
| 101 |
</option> |
| 102 |
<option value="<?php echo C::RESTART_IMMEDIATELY ?>" <?php echo selected($campaign->restart, C::RESTART_IMMEDIATELY) ?>> |
| 103 |
<?php _e("Restart immediately", "hurrytimer")?> |
| 104 |
</option> |
| 105 |
<option value="<?php echo C::RESTART_AFTER_RELOAD ?>" <?php echo selected($campaign->restart, C::RESTART_AFTER_RELOAD) ?>> |
| 106 |
<?php _e("Restart after page reload", "hurrytimer")?> |
| 107 |
</option> |
| 108 |
</select> |
| 109 |
</td> |
| 110 |
</tr> |
| 111 |
</table> |
| 112 |
</div> |