| 1 |
<div class="eventpost-misc-pub-section"> |
| 2 |
<p> |
| 3 |
<label for="<?php echo $this->META_STATUS; ?>"> |
| 4 |
<?php _e('Status:', 'event-post') ?> |
| 5 |
<select name="<?php echo $this->META_STATUS; ?>" id="<?php echo $this->META_STATUS; ?>"> |
| 6 |
<option value=""></option> |
| 7 |
<?php foreach ($this->statuses as $status_name => $status_label): ?> |
| 8 |
<option value="<?php echo $status_name; ?>" <?php selected($status_name, $event->status, true); ?>><?php echo $status_label; ?></option> |
| 9 |
<?php endforeach; ?> |
| 10 |
</select> |
| 11 |
</label> |
| 12 |
</p> |
| 13 |
<p> |
| 14 |
<label> |
| 15 |
<input type="checkbox" id="event-post-date-all-day" <?php checked( $event->time_start && $event->time_end && date('H:i:s', $event->time_start) == '00:00:00' && date('H:i:s', $event->time_end) == '00:00:00', true, true); ?>> |
| 16 |
<?php _e('All day event', 'event-post') ?> |
| 17 |
</label> |
| 18 |
</p> |
| 19 |
<p> |
| 20 |
<span class="dashicons dashicons-calendar eventpost-edit-icon"></span> |
| 21 |
<label for="<?php echo $this->META_START; ?>_date"> |
| 22 |
<?php _e('Begin:', 'event-post') ?> |
| 23 |
<span id="<?php echo $this->META_START; ?>_date_human" class="human_date"> |
| 24 |
<?php |
| 25 |
if ($event->time_start != '') { |
| 26 |
echo $this->human_date($event->time_start) . (date('H:i', $event->time_start)=='00:00'?'':date(' H:i', $event->time_start)); |
| 27 |
} |
| 28 |
else{ |
| 29 |
_e('Pick a date','event-post'); |
| 30 |
} |
| 31 |
?> |
| 32 |
</span> |
| 33 |
<input type="<?php echo ($this->settings['datepicker']=='browser'?'datetime':''); ?>" class="eventpost-datepicker-<?php echo $this->settings['datepicker']; ?>" data-lang="<?php echo $language; ?>" value="<?php echo substr($start_date,0,16) ?>" name="<?php echo $this->META_START; ?>" id="<?php echo $this->META_START; ?>_date"/> |
| 34 |
</label> |
| 35 |
</p> |
| 36 |
<p> |
| 37 |
<span class="dashicons dashicons-calendar eventpost-edit-icon"></span> |
| 38 |
<label for="<?php echo $this->META_END; ?>_date"> |
| 39 |
<?php _e('End:', 'event-post') ?> |
| 40 |
<span id="<?php echo $this->META_END; ?>_date_human" class="human_date"> |
| 41 |
<?php |
| 42 |
if ($event->time_start != '') { |
| 43 |
echo $this->human_date($event->time_end) . (date('H:i', $event->time_end)=='00:00'?'':date(' H:i', $event->time_end)); |
| 44 |
} |
| 45 |
else{ |
| 46 |
_e('Pick a date','event-post'); |
| 47 |
} |
| 48 |
?> |
| 49 |
</span> |
| 50 |
<input type="<?php echo ($this->settings['datepicker']=='browser'?'datetime':''); ?>" class="eventpost-datepicker-<?php echo $this->settings['datepicker']; ?>" data-lang="<?php echo $language; ?>" value ="<?php echo substr($end_date,0,16) ?>" name="<?php echo $this->META_END; ?>" id="<?php echo $this->META_END; ?>_date"/> |
| 51 |
</label> |
| 52 |
</p> |
| 53 |
</div> |
| 54 |
<?php |
| 55 |
$this->icon_color_fields($event->ID, $this->META_COLOR,$eventcolor,$this->META_ICON,$eventicon ); |
| 56 |
|
| 57 |
?> |
| 58 |
|