| 1 |
<?php |
| 2 |
/** |
| 3 |
* Location custombox |
| 4 |
* |
| 5 |
* @package event-post |
| 6 |
* @version 5.10.3 |
| 7 |
* @since 5.3.1 |
| 8 |
*/ |
| 9 |
?> |
| 10 |
<div> |
| 11 |
<label for="<?php esc_attr_e($this->META_ATTENDANCE_MODE); ?>"> |
| 12 |
<?php esc_attr_e('Attendance Mode:', 'event-post') ?> |
| 13 |
<select name="<?php esc_attr_e($this->META_ATTENDANCE_MODE); ?>" id="<?php esc_attr_e($this->META_ATTENDANCE_MODE); ?>"> |
| 14 |
<option value=""></option> |
| 15 |
<?php foreach ($this->attendance_modes as $mode_name => $mode_label): ?> |
| 16 |
<option value="<?php esc_attr_e($mode_name); ?>" <?php selected($mode_name, $event->attendance_mode, true); ?>><?php esc_attr_e($mode_label); ?></option> |
| 17 |
<?php endforeach; ?> |
| 18 |
</select> |
| 19 |
</label> |
| 20 |
</div> |
| 21 |
<div class="eventpost-misc-pub-section eventpost-location-type-online"> |
| 22 |
<p> |
| 23 |
<label for="<?php esc_attr_e($this->META_VIRTUAL_LOCATION); ?>"> |
| 24 |
<?php esc_attr_e('Virtual Location:', 'event-post') ?> |
| 25 |
<input type="url" value ="<?php esc_attr_e($event->virtual_location); ?>" name="<?php esc_attr_e($this->META_VIRTUAL_LOCATION); ?>" id="<?php esc_attr_e($this->META_VIRTUAL_LOCATION); ?>" class="widefat"/> |
| 26 |
</label> |
| 27 |
</p> |
| 28 |
</div> |
| 29 |
|
| 30 |
<div class="eventpost-misc-pub-section eventpost-location-type-offline"> |
| 31 |
<label for="<?php esc_attr_e($this->META_ADD); ?>"> |
| 32 |
<?php esc_attr_e('Address, as it will be displayed:', 'event-post') ?> |
| 33 |
<textarea name="<?php esc_attr_e($this->META_ADD); ?>" id="<?php esc_attr_e($this->META_ADD); ?>" class="widefat"><?php esc_attr_e($event->address); ?></textarea> |
| 34 |
</label> |
| 35 |
</div> |
| 36 |
|
| 37 |
<div id="event_address_searchwrap" class="eventpost-location-type-offline"> |
| 38 |
<span class="dashicons dashicons-location eventpost-edit-icon"></span> |
| 39 |
<?php esc_attr_e('GPS coordinates:', 'event-post') ?> |
| 40 |
<a id="event_address_search" title="<?php _e('Search or fill exact coordinates', 'event-post') ?>"> |
| 41 |
<?php _e('Search / Edit', 'event-post') ?> |
| 42 |
</a> |
| 43 |
|
| 44 |
<div class="misc-pub-section" id="event_address_coords"> |
| 45 |
<p> |
| 46 |
<span id="eventaddress_result"></span> |
| 47 |
</p> |
| 48 |
<label for="<?php esc_attr_e($this->META_LAT); ?>"> |
| 49 |
<?php esc_attr_e('Latitude:', 'event-post') ?> |
| 50 |
<input type="text" value ="<?php esc_attr_e($event->lat); ?>" name="<?php esc_attr_e($this->META_LAT); ?>" id="<?php esc_attr_e($this->META_LAT); ?>" class="widefat"/> |
| 51 |
</label> |
| 52 |
|
| 53 |
<label for="<?php esc_attr_e($this->META_LONG); ?>"> |
| 54 |
<?php esc_attr_e('Longitude:', 'event-post') ?> |
| 55 |
<input type="text" value ="<?php esc_attr_e($event->long); ?>" name="<?php esc_attr_e($this->META_LONG); ?>" id="<?php esc_attr_e($this->META_LONG); ?>" class="widefat"/> |
| 56 |
</label> |
| 57 |
<p> |
| 58 |
<a id="event_address_unsearch" class="button button-small"> |
| 59 |
<span class="dashicons dashicons-yes"></span> |
| 60 |
<?php esc_attr_e('Done', 'event-post') ?> |
| 61 |
</a> |
| 62 |
</p> |
| 63 |
</div> |
| 64 |
</div> |
| 65 |
|
| 66 |
<div class="eventpost-misc-pub-section eventpost-location-type-offline" id="event-post-map-preview-wrapper"> |
| 67 |
<div id="event-post-map-preview" data-marker="<?php esc_attr_e($this->get_marker($event->color)); ?>"></div> |
| 68 |
</div> |
| 69 |
|