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