PluginProbe
Event Post / 5.5
Event Post v5.5
6.1.1 6.1.0 6.0.1 6.0.0 5.12.0 trunk 3.9 4.0 4.2 4.3 4.4 4.5 5.0 5.1 5.10.0 5.10.1 5.10.2 5.10.3 5.10.4 5.11.0 5.11.1 5.2 5.5 5.6 5.6.1 All 46 releases
event-post / views / admin / custombox-date.php

custombox-date.php in Event Post 5.5, at views/admin/custombox-date.php

70 lines 3.6 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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 if (sizeof($colors) > 0): ?>
55 <div class="eventpost-misc-pub-section event-color-section">
56 <span class="screen-reader-text"><?php _e('Color:', 'event-post'); ?></span>
57 <p>
58 <img src="<?php echo $this->markurl.$eventcolor.'.png'; ?>" id="eventpost-color-preview" data-url="<?php echo $this->markurl; ?>">
59 <span id="eventpost-color-dropdown">
60 <?php foreach ($colors as $color => $file): ?>
61 <label style="background:#<?php echo $color ?>" for="<?php echo $this->META_COLOR; ?><?php echo $color ?>" title="<?php echo $file; ?>">
62 <img src="<?php echo $this->markurl.$color.'.png'; ?>">
63 <input type="radio" value ="<?php echo $color ?>" name="<?php echo $this->META_COLOR; ?>" id="<?php echo $this->META_COLOR; ?><?php echo $color ?>" <?php checked($eventcolor, $color, true); ?>/>
64 </label>
65 <?php endforeach; ?>
66 </span>
67 </p>
68 </div>
69 <?php endif; ?>
70