@@ -18,97 +18,97 @@ |
||
18 | 18 | </h2> |
19 | 19 | <h3> |
20 | 20 | <?php echo esc_html( |
21 | - sprintf( |
|
22 | - // translators: 1: number of events |
|
23 | - _n('%1$d Event', '%1$d Events', count($events), 'event_espresso'), |
|
24 | - count($events) |
|
25 | - ) |
|
26 | - ); |
|
21 | + sprintf( |
|
22 | + // translators: 1: number of events |
|
23 | + _n('%1$d Event', '%1$d Events', count($events), 'event_espresso'), |
|
24 | + count($events) |
|
25 | + ) |
|
26 | + ); |
|
27 | 27 | ?> |
28 | 28 | </h3> |
29 | 29 | <ul> |
30 | 30 | <?php |
31 | - foreach ($events as $event) { |
|
32 | - ?> |
|
31 | + foreach ($events as $event) { |
|
32 | + ?> |
|
33 | 33 | <li> |
34 | 34 | <?php echo esc_html($event->name()); ?> |
35 | 35 | </li> |
36 | 36 | <?php |
37 | - } |
|
38 | - ?> |
|
37 | + } |
|
38 | + ?> |
|
39 | 39 | </ul> |
40 | 40 | <h3> |
41 | 41 | <?php echo esc_html( |
42 | - sprintf( |
|
43 | - // translators: 1: number of datetimes |
|
44 | - _n('%1$d Datetime', '%1$d Datetimes', count($datetimes), 'event_espresso'), |
|
45 | - count($datetimes) |
|
46 | - ) |
|
47 | - ); |
|
42 | + sprintf( |
|
43 | + // translators: 1: number of datetimes |
|
44 | + _n('%1$d Datetime', '%1$d Datetimes', count($datetimes), 'event_espresso'), |
|
45 | + count($datetimes) |
|
46 | + ) |
|
47 | + ); |
|
48 | 48 | ?> |
49 | 49 | </h3> |
50 | 50 | <ul> |
51 | 51 | <?php |
52 | - foreach ($datetimes as $datetime) { |
|
53 | - ?> |
|
52 | + foreach ($datetimes as $datetime) { |
|
53 | + ?> |
|
54 | 54 | <li> |
55 | 55 | <?php echo esc_html($datetime->get_dtt_display_name(true)); ?> |
56 | 56 | </li> |
57 | 57 | <?php |
58 | - } |
|
59 | - ?> |
|
58 | + } |
|
59 | + ?> |
|
60 | 60 | </ul> |
61 | 61 | <h3> |
62 | 62 | <?php echo esc_html( |
63 | - sprintf( |
|
64 | - _n('%1$d Registration', '%1$d Registrations', $reg_count, 'event_espresso'), |
|
65 | - $reg_count |
|
66 | - ) |
|
67 | - ); |
|
63 | + sprintf( |
|
64 | + _n('%1$d Registration', '%1$d Registrations', $reg_count, 'event_espresso'), |
|
65 | + $reg_count |
|
66 | + ) |
|
67 | + ); |
|
68 | 68 | ?> |
69 | 69 | </h3> |
70 | 70 | <?php |
71 | 71 | if ($reg_count > count($registrations)) { |
72 | - ?> |
|
72 | + ?> |
|
73 | 73 | <p class="notice"> |
74 | 74 | <?php printf( |
75 | - esc_html__('Only showing first %1$d.', 'event_espresso'), |
|
76 | - count($registrations) |
|
77 | - ); |
|
78 | - ?> |
|
75 | + esc_html__('Only showing first %1$d.', 'event_espresso'), |
|
76 | + count($registrations) |
|
77 | + ); |
|
78 | + ?> |
|
79 | 79 | </p> |
80 | 80 | <?php |
81 | 81 | } |
82 | 82 | ?> |
83 | 83 | <?php |
84 | 84 | if ($reg_count > 0) { |
85 | - ?> |
|
85 | + ?> |
|
86 | 86 | <p> |
87 | 87 | <?php esc_html_e( |
88 | - 'Note: contacts will not be deleted, only their registrations for the enumerated events.', |
|
89 | - 'event_espresso' |
|
90 | - ); ?> |
|
88 | + 'Note: contacts will not be deleted, only their registrations for the enumerated events.', |
|
89 | + 'event_espresso' |
|
90 | + ); ?> |
|
91 | 91 | </p> |
92 | 92 | <?php |
93 | 93 | } |
94 | 94 | ?> |
95 | 95 | <ul> |
96 | 96 | <?php |
97 | - foreach ($registrations as $registration) { |
|
98 | - ?> |
|
97 | + foreach ($registrations as $registration) { |
|
98 | + ?> |
|
99 | 99 | <li> |
100 | 100 | <?php echo esc_html( |
101 | - sprintf( |
|
102 | - _x('%1$s (%2$d of %3$d)', 'Registration name (number of count)', 'event_espresso'), |
|
103 | - $registration->attendeeName(true), |
|
104 | - $registration->count(), |
|
105 | - $registration->group_size() |
|
106 | - ) |
|
107 | - ); ?> |
|
101 | + sprintf( |
|
102 | + _x('%1$s (%2$d of %3$d)', 'Registration name (number of count)', 'event_espresso'), |
|
103 | + $registration->attendeeName(true), |
|
104 | + $registration->count(), |
|
105 | + $registration->group_size() |
|
106 | + ) |
|
107 | + ); ?> |
|
108 | 108 | </li> |
109 | 109 | <?php |
110 | - } |
|
111 | - ?> |
|
110 | + } |
|
111 | + ?> |
|
112 | 112 | </ul> |
113 | 113 | <form action="<?php echo esc_url_raw($form_url); ?>" method="POST"> |
114 | 114 | <?php echo wp_kses($form->get_html_and_js(), AllowedTags::getWithFormTags()); ?> |
@@ -18,20 +18,20 @@ |
||
18 | 18 | <?php esc_html_e('Select from Venue Manager List', 'event_espresso'); ?> |
19 | 19 | </label> |
20 | 20 | <?php |
21 | - echo wp_kses($venue_selector, AllowedTags::getWithFormTags()); |
|
22 | - echo wp_kses($new_venue_link, AllowedTags::getWithFormTags()); |
|
23 | - foreach ($venues as $venue) : |
|
24 | - if (! $venue instanceof EE_Venue) { |
|
25 | - continue; |
|
26 | - } |
|
27 | - $selected = $evt_venue_id === $venue->ID() ? 'ee-venue-selected' : 'ee-venue-not-selected'; |
|
28 | - $edit_url = EE_Admin_Page::add_query_args_and_nonce( |
|
29 | - ['action' => 'edit', 'post' => $venue->ID()], |
|
30 | - EE_VENUES_ADMIN_URL |
|
31 | - ); |
|
32 | - $state_name = is_object($venue->state_obj()) ? $venue->state_obj()->name() : null; |
|
33 | - $country_name = is_object($venue->country_obj()) ? $venue->country_obj()->name() : null; |
|
34 | - ?> |
|
21 | + echo wp_kses($venue_selector, AllowedTags::getWithFormTags()); |
|
22 | + echo wp_kses($new_venue_link, AllowedTags::getWithFormTags()); |
|
23 | + foreach ($venues as $venue) : |
|
24 | + if (! $venue instanceof EE_Venue) { |
|
25 | + continue; |
|
26 | + } |
|
27 | + $selected = $evt_venue_id === $venue->ID() ? 'ee-venue-selected' : 'ee-venue-not-selected'; |
|
28 | + $edit_url = EE_Admin_Page::add_query_args_and_nonce( |
|
29 | + ['action' => 'edit', 'post' => $venue->ID()], |
|
30 | + EE_VENUES_ADMIN_URL |
|
31 | + ); |
|
32 | + $state_name = is_object($venue->state_obj()) ? $venue->state_obj()->name() : null; |
|
33 | + $country_name = is_object($venue->country_obj()) ? $venue->country_obj()->name() : null; |
|
34 | + ?> |
|
35 | 35 | <div class='eebox <?php echo sanitize_html_class($selected); ?>' id="eebox_<?php echo absint($venue->ID()); ?>"> |
36 | 36 | <p class='address-view'> |
37 | 37 | <span><?php esc_html_e('Address:', 'event_espresso'); ?> </span> |
@@ -21,7 +21,7 @@ discard block |
||
21 | 21 | echo wp_kses($venue_selector, AllowedTags::getWithFormTags()); |
22 | 22 | echo wp_kses($new_venue_link, AllowedTags::getWithFormTags()); |
23 | 23 | foreach ($venues as $venue) : |
24 | - if (! $venue instanceof EE_Venue) { |
|
24 | + if ( ! $venue instanceof EE_Venue) { |
|
25 | 25 | continue; |
26 | 26 | } |
27 | 27 | $selected = $evt_venue_id === $venue->ID() ? 'ee-venue-selected' : 'ee-venue-not-selected'; |
@@ -36,7 +36,7 @@ discard block |
||
36 | 36 | <p class='address-view'> |
37 | 37 | <span><?php esc_html_e('Address:', 'event_espresso'); ?> </span> |
38 | 38 | <?php echo esc_html($venue->address()); ?> |
39 | - <?php echo ($venue->address2() ? '<br />' . esc_html($venue->address2()) : ''); ?> |
|
39 | + <?php echo ($venue->address2() ? '<br />'.esc_html($venue->address2()) : ''); ?> |
|
40 | 40 | <br /> |
41 | 41 | <span><?php esc_html_e('City:', 'event_espresso'); ?> </span> |
42 | 42 | <?php echo esc_html($venue->city()); ?> |