@@ -2,261 +2,261 @@ discard block |
||
2 | 2 | /* THIS IS A GENERATED FILE. DO NOT EDIT DIRECTLY. */ |
3 | 3 | $generated_i18n_strings = array( |
4 | 4 | // Reference: packages/adapters/src/Pagination/constants.ts:6 |
5 | - __( '2', 'event_espresso' ), |
|
5 | + __('2', 'event_espresso'), |
|
6 | 6 | |
7 | 7 | // Reference: packages/adapters/src/Pagination/constants.ts:7 |
8 | - __( '6', 'event_espresso' ), |
|
8 | + __('6', 'event_espresso'), |
|
9 | 9 | |
10 | 10 | // Reference: packages/adapters/src/Pagination/constants.ts:8 |
11 | - __( '12', 'event_espresso' ), |
|
11 | + __('12', 'event_espresso'), |
|
12 | 12 | |
13 | 13 | // Reference: packages/adapters/src/Pagination/constants.ts:9 |
14 | - __( '24', 'event_espresso' ), |
|
14 | + __('24', 'event_espresso'), |
|
15 | 15 | |
16 | 16 | // Reference: packages/adapters/src/Pagination/constants.ts:10 |
17 | - __( '48', 'event_espresso' ), |
|
17 | + __('48', 'event_espresso'), |
|
18 | 18 | |
19 | 19 | // Reference: domains/blocks/src/components/AvatarImage.tsx:27 |
20 | - __( 'contact avatar', 'event_espresso' ), |
|
20 | + __('contact avatar', 'event_espresso'), |
|
21 | 21 | |
22 | 22 | // Reference: domains/blocks/src/components/OrderByControl.tsx:13 |
23 | - __( 'Order by', 'event_espresso' ), |
|
23 | + __('Order by', 'event_espresso'), |
|
24 | 24 | |
25 | 25 | // Reference: domains/blocks/src/components/RegStatusControl.tsx:18 |
26 | 26 | // Reference: domains/blocks/src/event-attendees/controls/SelectStatus.tsx:12 |
27 | - __( 'Select Registration Status', 'event_espresso' ), |
|
27 | + __('Select Registration Status', 'event_espresso'), |
|
28 | 28 | |
29 | 29 | // Reference: domains/blocks/src/components/SortOrderControl.tsx:15 |
30 | - __( 'Ascending', 'event_espresso' ), |
|
30 | + __('Ascending', 'event_espresso'), |
|
31 | 31 | |
32 | 32 | // Reference: domains/blocks/src/components/SortOrderControl.tsx:19 |
33 | - __( 'Descending', 'event_espresso' ), |
|
33 | + __('Descending', 'event_espresso'), |
|
34 | 34 | |
35 | 35 | // Reference: domains/blocks/src/components/SortOrderControl.tsx:25 |
36 | - __( 'Sort order:', 'event_espresso' ), |
|
36 | + __('Sort order:', 'event_espresso'), |
|
37 | 37 | |
38 | 38 | // Reference: domains/blocks/src/event-attendees/AttendeesDisplay.tsx:40 |
39 | - __( 'There was some error fetching attendees list', 'event_espresso' ), |
|
39 | + __('There was some error fetching attendees list', 'event_espresso'), |
|
40 | 40 | |
41 | 41 | // Reference: domains/blocks/src/event-attendees/AttendeesDisplay.tsx:46 |
42 | - __( 'To get started, select what event you want to show attendees from in the block settings.', 'event_espresso' ), |
|
42 | + __('To get started, select what event you want to show attendees from in the block settings.', 'event_espresso'), |
|
43 | 43 | |
44 | 44 | // Reference: domains/blocks/src/event-attendees/AttendeesDisplay.tsx:52 |
45 | - __( 'There are no attendees for selected options.', 'event_espresso' ), |
|
45 | + __('There are no attendees for selected options.', 'event_espresso'), |
|
46 | 46 | |
47 | 47 | // Reference: domains/blocks/src/event-attendees/controls/ArchiveSettings.tsx:11 |
48 | - __( 'Display on Archives', 'event_espresso' ), |
|
48 | + __('Display on Archives', 'event_espresso'), |
|
49 | 49 | |
50 | 50 | // Reference: domains/blocks/src/event-attendees/controls/ArchiveSettings.tsx:16 |
51 | - __( 'Attendees are shown whenever this post is listed in an archive view.', 'event_espresso' ), |
|
51 | + __('Attendees are shown whenever this post is listed in an archive view.', 'event_espresso'), |
|
52 | 52 | |
53 | 53 | // Reference: domains/blocks/src/event-attendees/controls/ArchiveSettings.tsx:17 |
54 | - __( 'Attendees are hidden whenever this post is listed in an archive view.', 'event_espresso' ), |
|
54 | + __('Attendees are hidden whenever this post is listed in an archive view.', 'event_espresso'), |
|
55 | 55 | |
56 | 56 | // Reference: domains/blocks/src/event-attendees/controls/AttendeeLimit.tsx:28 |
57 | - __( 'Number of Attendees to Display:', 'event_espresso' ), |
|
57 | + __('Number of Attendees to Display:', 'event_espresso'), |
|
58 | 58 | |
59 | 59 | // Reference: domains/blocks/src/event-attendees/controls/AttendeeLimit.tsx:33 |
60 | 60 | /* translators: %d attendees count */ |
61 | - _n_noop( 'Used to adjust the number of attendees displayed (There is %d total attendee for the current filter settings).', 'Used to adjust the number of attendees displayed (There are %d total attendees for the current filter settings).', 'event_espresso' ), |
|
61 | + _n_noop('Used to adjust the number of attendees displayed (There is %d total attendee for the current filter settings).', 'Used to adjust the number of attendees displayed (There are %d total attendees for the current filter settings).', 'event_espresso'), |
|
62 | 62 | |
63 | 63 | // Reference: domains/blocks/src/event-attendees/controls/GravatarSettings.tsx:26 |
64 | - __( 'Display Gravatar', 'event_espresso' ), |
|
64 | + __('Display Gravatar', 'event_espresso'), |
|
65 | 65 | |
66 | 66 | // Reference: domains/blocks/src/event-attendees/controls/GravatarSettings.tsx:31 |
67 | - __( 'Gravatar images are shown for each attendee.', 'event_espresso' ), |
|
67 | + __('Gravatar images are shown for each attendee.', 'event_espresso'), |
|
68 | 68 | |
69 | 69 | // Reference: domains/blocks/src/event-attendees/controls/GravatarSettings.tsx:32 |
70 | - __( 'No gravatar images are shown for each attendee.', 'event_espresso' ), |
|
70 | + __('No gravatar images are shown for each attendee.', 'event_espresso'), |
|
71 | 71 | |
72 | 72 | // Reference: domains/blocks/src/event-attendees/controls/GravatarSettings.tsx:37 |
73 | - __( 'Size of Gravatar', 'event_espresso' ), |
|
73 | + __('Size of Gravatar', 'event_espresso'), |
|
74 | 74 | |
75 | 75 | // Reference: domains/blocks/src/event-attendees/controls/SelectDatetime.tsx:21 |
76 | - __( 'Select Datetime', 'event_espresso' ), |
|
76 | + __('Select Datetime', 'event_espresso'), |
|
77 | 77 | |
78 | 78 | // Reference: domains/blocks/src/event-attendees/controls/SelectEvent.tsx:21 |
79 | - __( 'Select Event', 'event_espresso' ), |
|
79 | + __('Select Event', 'event_espresso'), |
|
80 | 80 | |
81 | 81 | // Reference: domains/blocks/src/event-attendees/controls/SelectOrderBy.tsx:10 |
82 | - __( 'Attendee id', 'event_espresso' ), |
|
82 | + __('Attendee id', 'event_espresso'), |
|
83 | 83 | |
84 | 84 | // Reference: domains/blocks/src/event-attendees/controls/SelectOrderBy.tsx:14 |
85 | - __( 'Last name only', 'event_espresso' ), |
|
85 | + __('Last name only', 'event_espresso'), |
|
86 | 86 | |
87 | 87 | // Reference: domains/blocks/src/event-attendees/controls/SelectOrderBy.tsx:18 |
88 | - __( 'First name only', 'event_espresso' ), |
|
88 | + __('First name only', 'event_espresso'), |
|
89 | 89 | |
90 | 90 | // Reference: domains/blocks/src/event-attendees/controls/SelectOrderBy.tsx:22 |
91 | - __( 'First, then Last name', 'event_espresso' ), |
|
91 | + __('First, then Last name', 'event_espresso'), |
|
92 | 92 | |
93 | 93 | // Reference: domains/blocks/src/event-attendees/controls/SelectOrderBy.tsx:26 |
94 | - __( 'Last, then First name', 'event_espresso' ), |
|
94 | + __('Last, then First name', 'event_espresso'), |
|
95 | 95 | |
96 | 96 | // Reference: domains/blocks/src/event-attendees/controls/SelectOrderBy.tsx:40 |
97 | - __( 'Order Attendees by:', 'event_espresso' ), |
|
97 | + __('Order Attendees by:', 'event_espresso'), |
|
98 | 98 | |
99 | 99 | // Reference: domains/blocks/src/event-attendees/controls/SelectTicket.tsx:21 |
100 | - __( 'Select Ticket', 'event_espresso' ), |
|
100 | + __('Select Ticket', 'event_espresso'), |
|
101 | 101 | |
102 | 102 | // Reference: domains/blocks/src/event-attendees/controls/index.tsx:22 |
103 | - __( 'Filter By Settings', 'event_espresso' ), |
|
103 | + __('Filter By Settings', 'event_espresso'), |
|
104 | 104 | |
105 | 105 | // Reference: domains/blocks/src/event-attendees/controls/index.tsx:37 |
106 | - __( 'Gravatar Setttings', 'event_espresso' ), |
|
106 | + __('Gravatar Setttings', 'event_espresso'), |
|
107 | 107 | |
108 | 108 | // Reference: domains/blocks/src/event-attendees/controls/index.tsx:40 |
109 | - __( 'Archive Settings', 'event_espresso' ), |
|
109 | + __('Archive Settings', 'event_espresso'), |
|
110 | 110 | |
111 | 111 | // Reference: domains/blocks/src/event-attendees/index.tsx:10 |
112 | - __( 'Event Attendees', 'event_espresso' ), |
|
112 | + __('Event Attendees', 'event_espresso'), |
|
113 | 113 | |
114 | 114 | // Reference: domains/blocks/src/event-attendees/index.tsx:11 |
115 | - __( 'Displays a list of people that have registered for the specified event', 'event_espresso' ), |
|
115 | + __('Displays a list of people that have registered for the specified event', 'event_espresso'), |
|
116 | 116 | |
117 | 117 | // Reference: domains/blocks/src/event-attendees/index.tsx:14 |
118 | - __( 'event', 'event_espresso' ), |
|
118 | + __('event', 'event_espresso'), |
|
119 | 119 | |
120 | 120 | // Reference: domains/blocks/src/event-attendees/index.tsx:14 |
121 | - __( 'attendees', 'event_espresso' ), |
|
121 | + __('attendees', 'event_espresso'), |
|
122 | 122 | |
123 | 123 | // Reference: domains/blocks/src/event-attendees/index.tsx:14 |
124 | - __( 'list', 'event_espresso' ), |
|
124 | + __('list', 'event_espresso'), |
|
125 | 125 | |
126 | 126 | // Reference: domains/blocks/src/services/utils.ts:11 |
127 | - __( 'Loading…', 'event_espresso' ), |
|
127 | + __('Loading…', 'event_espresso'), |
|
128 | 128 | |
129 | 129 | // Reference: domains/blocks/src/services/utils.ts:19 |
130 | 130 | // Reference: domains/eventEditor/src/ui/ticketAssignmentsManager/components/ErrorMessage.tsx:32 |
131 | - __( 'Error', 'event_espresso' ), |
|
131 | + __('Error', 'event_espresso'), |
|
132 | 132 | |
133 | 133 | // Reference: domains/blocks/src/services/utils.ts:26 |
134 | - __( 'Select…', 'event_espresso' ), |
|
134 | + __('Select…', 'event_espresso'), |
|
135 | 135 | |
136 | 136 | // Reference: domains/eventEditor/src/ui/EventRegistrationOptions/ActiveStatus.tsx:11 |
137 | 137 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/config.ts:13 |
138 | - __( 'Active', 'event_espresso' ), |
|
138 | + __('Active', 'event_espresso'), |
|
139 | 139 | |
140 | 140 | // Reference: domains/eventEditor/src/ui/EventRegistrationOptions/ActiveStatus.tsx:12 |
141 | 141 | // Reference: packages/predicates/src/registration/statusOptions.ts:10 |
142 | - __( 'Cancelled', 'event_espresso' ), |
|
142 | + __('Cancelled', 'event_espresso'), |
|
143 | 143 | |
144 | 144 | // Reference: domains/eventEditor/src/ui/EventRegistrationOptions/ActiveStatus.tsx:13 |
145 | 145 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/config.ts:15 |
146 | 146 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/config.ts:14 |
147 | - __( 'Expired', 'event_espresso' ), |
|
147 | + __('Expired', 'event_espresso'), |
|
148 | 148 | |
149 | 149 | // Reference: domains/eventEditor/src/ui/EventRegistrationOptions/ActiveStatus.tsx:14 |
150 | - __( 'Inactive', 'event_espresso' ), |
|
150 | + __('Inactive', 'event_espresso'), |
|
151 | 151 | |
152 | 152 | // Reference: domains/eventEditor/src/ui/EventRegistrationOptions/ActiveStatus.tsx:15 |
153 | - __( 'Postponed', 'event_espresso' ), |
|
153 | + __('Postponed', 'event_espresso'), |
|
154 | 154 | |
155 | 155 | // Reference: domains/eventEditor/src/ui/EventRegistrationOptions/ActiveStatus.tsx:16 |
156 | - __( 'SoldOut', 'event_espresso' ), |
|
156 | + __('SoldOut', 'event_espresso'), |
|
157 | 157 | |
158 | 158 | // Reference: domains/eventEditor/src/ui/EventRegistrationOptions/ActiveStatus.tsx:17 |
159 | 159 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/config.ts:17 |
160 | - __( 'Upcoming', 'event_espresso' ), |
|
160 | + __('Upcoming', 'event_espresso'), |
|
161 | 161 | |
162 | 162 | // Reference: domains/eventEditor/src/ui/EventRegistrationOptions/ActiveStatus.tsx:37 |
163 | - __( 'Active Status', 'event_espresso' ), |
|
163 | + __('Active Status', 'event_espresso'), |
|
164 | 164 | |
165 | 165 | // Reference: domains/eventEditor/src/ui/EventRegistrationOptions/AltRegPage.tsx:36 |
166 | - __( 'Alternative Registration Page', 'event_espresso' ), |
|
166 | + __('Alternative Registration Page', 'event_espresso'), |
|
167 | 167 | |
168 | 168 | // Reference: domains/eventEditor/src/ui/EventRegistrationOptions/DefaultRegistrationStatus.tsx:30 |
169 | - __( 'Default Registration Status', 'event_espresso' ), |
|
169 | + __('Default Registration Status', 'event_espresso'), |
|
170 | 170 | |
171 | 171 | // Reference: domains/eventEditor/src/ui/EventRegistrationOptions/Donations.tsx:21 |
172 | - __( 'Disable Donations', 'event_espresso' ), |
|
172 | + __('Disable Donations', 'event_espresso'), |
|
173 | 173 | |
174 | 174 | // Reference: domains/eventEditor/src/ui/EventRegistrationOptions/Donations.tsx:21 |
175 | - __( 'Enable Donations', 'event_espresso' ), |
|
175 | + __('Enable Donations', 'event_espresso'), |
|
176 | 176 | |
177 | 177 | // Reference: domains/eventEditor/src/ui/EventRegistrationOptions/EventManager.tsx:23 |
178 | - __( 'Event Manager', 'event_espresso' ), |
|
178 | + __('Event Manager', 'event_espresso'), |
|
179 | 179 | |
180 | 180 | // Reference: domains/eventEditor/src/ui/EventRegistrationOptions/EventPhoneNumber.tsx:28 |
181 | - __( 'Event Phone Number', 'event_espresso' ), |
|
181 | + __('Event Phone Number', 'event_espresso'), |
|
182 | 182 | |
183 | 183 | // Reference: domains/eventEditor/src/ui/EventRegistrationOptions/MaxRegistrations.tsx:30 |
184 | - __( 'Maximum Number of Registrations Allowed per Transaction', 'event_espresso' ), |
|
184 | + __('Maximum Number of Registrations Allowed per Transaction', 'event_espresso'), |
|
185 | 185 | |
186 | 186 | // Reference: domains/eventEditor/src/ui/EventRegistrationOptions/TicketSelector.tsx:22 |
187 | - __( 'hide ticket selector', 'event_espresso' ), |
|
187 | + __('hide ticket selector', 'event_espresso'), |
|
188 | 188 | |
189 | 189 | // Reference: domains/eventEditor/src/ui/EventRegistrationOptions/TicketSelector.tsx:22 |
190 | - __( 'show ticket selector', 'event_espresso' ), |
|
190 | + __('show ticket selector', 'event_espresso'), |
|
191 | 191 | |
192 | 192 | // Reference: domains/eventEditor/src/ui/EventRegistrationOptions/TicketSelector.tsx:28 |
193 | - __( 'Display Ticket Selector', 'event_espresso' ), |
|
193 | + __('Display Ticket Selector', 'event_espresso'), |
|
194 | 194 | |
195 | 195 | // Reference: domains/eventEditor/src/ui/EventRegistrationOptions/index.tsx:21 |
196 | - __( 'Registration Options', 'event_espresso' ), |
|
196 | + __('Registration Options', 'event_espresso'), |
|
197 | 197 | |
198 | 198 | // Reference: domains/eventEditor/src/ui/datetimes/DateRegistrationsLink.tsx:17 |
199 | - __( 'view ALL registrations for this date.', 'event_espresso' ), |
|
199 | + __('view ALL registrations for this date.', 'event_espresso'), |
|
200 | 200 | |
201 | 201 | // Reference: domains/eventEditor/src/ui/datetimes/dateForm/formValidation.ts:15 |
202 | 202 | // Reference: domains/eventEditor/src/ui/tickets/ticketForm/formValidation.ts:15 |
203 | - __( 'Name is required', 'event_espresso' ), |
|
203 | + __('Name is required', 'event_espresso'), |
|
204 | 204 | |
205 | 205 | // Reference: domains/eventEditor/src/ui/datetimes/dateForm/formValidation.ts:16 |
206 | 206 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/bulkEdit/details/formValidation.ts:12 |
207 | 207 | // Reference: domains/eventEditor/src/ui/tickets/ticketForm/formValidation.ts:16 |
208 | 208 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/bulkEdit/details/formValidation.ts:12 |
209 | - __( 'Name must be at least three characters', 'event_espresso' ), |
|
209 | + __('Name must be at least three characters', 'event_espresso'), |
|
210 | 210 | |
211 | 211 | // Reference: domains/eventEditor/src/ui/datetimes/dateForm/multiStep/Container.tsx:22 |
212 | 212 | /* translators: %s datetime id */ |
213 | - __( 'Edit datetime %s', 'event_espresso' ), |
|
213 | + __('Edit datetime %s', 'event_espresso'), |
|
214 | 214 | |
215 | 215 | // Reference: domains/eventEditor/src/ui/datetimes/dateForm/multiStep/Container.tsx:25 |
216 | - __( 'New Datetime', 'event_espresso' ), |
|
216 | + __('New Datetime', 'event_espresso'), |
|
217 | 217 | |
218 | 218 | // Reference: domains/eventEditor/src/ui/datetimes/dateForm/multiStep/ContentBody.tsx:40 |
219 | - __( 'Save and assign tickets', 'event_espresso' ), |
|
219 | + __('Save and assign tickets', 'event_espresso'), |
|
220 | 220 | |
221 | 221 | // Reference: domains/eventEditor/src/ui/datetimes/dateForm/multiStep/DateFormSteps.tsx:11 |
222 | - __( 'primary information about the date', 'event_espresso' ), |
|
222 | + __('primary information about the date', 'event_espresso'), |
|
223 | 223 | |
224 | 224 | // Reference: domains/eventEditor/src/ui/datetimes/dateForm/multiStep/DateFormSteps.tsx:11 |
225 | - __( 'Date Details', 'event_espresso' ), |
|
225 | + __('Date Details', 'event_espresso'), |
|
226 | 226 | |
227 | 227 | // Reference: domains/eventEditor/src/ui/datetimes/dateForm/multiStep/DateFormSteps.tsx:12 |
228 | 228 | // Reference: domains/eventEditor/src/ui/tickets/ticketForm/multiStep/TicketFormSteps.tsx:17 |
229 | - __( 'relations between tickets and dates', 'event_espresso' ), |
|
229 | + __('relations between tickets and dates', 'event_espresso'), |
|
230 | 230 | |
231 | 231 | // Reference: domains/eventEditor/src/ui/datetimes/dateForm/multiStep/DateFormSteps.tsx:12 |
232 | - __( 'Assign Tickets', 'event_espresso' ), |
|
232 | + __('Assign Tickets', 'event_espresso'), |
|
233 | 233 | |
234 | 234 | // Reference: domains/eventEditor/src/ui/datetimes/dateForm/useDateFormConfig.ts:107 |
235 | 235 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/bulkEdit/details/useBulkEditFormConfig.ts:108 |
236 | 236 | // Reference: domains/eventEditor/src/ui/tickets/ticketForm/useTicketFormConfig.tsx:119 |
237 | 237 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/bulkEdit/details/useBulkEditFormConfig.ts:108 |
238 | - __( 'Details', 'event_espresso' ), |
|
238 | + __('Details', 'event_espresso'), |
|
239 | 239 | |
240 | 240 | // Reference: domains/eventEditor/src/ui/datetimes/dateForm/useDateFormConfig.ts:111 |
241 | 241 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/bulkEdit/details/useBulkEditFormConfig.ts:112 |
242 | 242 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/tableView/useHeaderRowGenerator.tsx:75 |
243 | - __( 'Capacity', 'event_espresso' ), |
|
243 | + __('Capacity', 'event_espresso'), |
|
244 | 244 | |
245 | 245 | // Reference: domains/eventEditor/src/ui/datetimes/dateForm/useDateFormConfig.ts:116 |
246 | - __( 'The maximum number of registrants that can attend the event at this particular date.', 'event_espresso' ), |
|
246 | + __('The maximum number of registrants that can attend the event at this particular date.', 'event_espresso'), |
|
247 | 247 | |
248 | 248 | // Reference: domains/eventEditor/src/ui/datetimes/dateForm/useDateFormConfig.ts:120 |
249 | - __( 'Set to 0 to close registration or leave blank for no limit.', 'event_espresso' ), |
|
249 | + __('Set to 0 to close registration or leave blank for no limit.', 'event_espresso'), |
|
250 | 250 | |
251 | 251 | // Reference: domains/eventEditor/src/ui/datetimes/dateForm/useDateFormConfig.ts:125 |
252 | 252 | // Reference: domains/eventEditor/src/ui/tickets/ticketForm/useTicketFormConfig.tsx:198 |
253 | - __( 'Trash', 'event_espresso' ), |
|
253 | + __('Trash', 'event_espresso'), |
|
254 | 254 | |
255 | 255 | // Reference: domains/eventEditor/src/ui/datetimes/dateForm/useDateFormConfig.ts:69 |
256 | 256 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/bulkEdit/details/useBulkEditFormConfig.ts:45 |
257 | 257 | // Reference: domains/eventEditor/src/ui/tickets/ticketForm/useTicketFormConfig.tsx:81 |
258 | 258 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/bulkEdit/details/useBulkEditFormConfig.ts:45 |
259 | - __( 'Basics', 'event_espresso' ), |
|
259 | + __('Basics', 'event_espresso'), |
|
260 | 260 | |
261 | 261 | // Reference: domains/eventEditor/src/ui/datetimes/dateForm/useDateFormConfig.ts:73 |
262 | 262 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/bulkEdit/details/useBulkEditFormConfig.ts:49 |
@@ -264,212 +264,212 @@ discard block |
||
264 | 264 | // Reference: domains/eventEditor/src/ui/tickets/ticketForm/useTicketFormConfig.tsx:85 |
265 | 265 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/bulkEdit/details/useBulkEditFormConfig.ts:49 |
266 | 266 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/tableView/useHeaderRowGenerator.tsx:42 |
267 | - __( 'Name', 'event_espresso' ), |
|
267 | + __('Name', 'event_espresso'), |
|
268 | 268 | |
269 | 269 | // Reference: domains/eventEditor/src/ui/datetimes/dateForm/useDateFormConfig.ts:80 |
270 | 270 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/bulkEdit/details/useBulkEditFormConfig.ts:55 |
271 | 271 | // Reference: domains/eventEditor/src/ui/tickets/ticketForm/useTicketFormConfig.tsx:92 |
272 | 272 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/bulkEdit/details/useBulkEditFormConfig.ts:55 |
273 | 273 | // Reference: packages/tpc/src/components/table/useHeaderRowGenerator.ts:41 |
274 | - __( 'Description', 'event_espresso' ), |
|
274 | + __('Description', 'event_espresso'), |
|
275 | 275 | |
276 | 276 | // Reference: domains/eventEditor/src/ui/datetimes/dateForm/useDateFormConfig.ts:88 |
277 | 277 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/bulkEdit/details/useBulkEditFormConfig.ts:63 |
278 | 278 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/bulkEdit/details/useBulkEditFormConfig.ts:63 |
279 | - __( 'Dates', 'event_espresso' ), |
|
279 | + __('Dates', 'event_espresso'), |
|
280 | 280 | |
281 | 281 | // Reference: domains/eventEditor/src/ui/datetimes/dateForm/useDateFormConfig.ts:92 |
282 | 282 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/tableView/useHeaderRowGenerator.tsx:52 |
283 | 283 | // Reference: domains/eventEditor/src/ui/tickets/ticketForm/useTicketFormConfig.tsx:104 |
284 | - __( 'Start Date', 'event_espresso' ), |
|
284 | + __('Start Date', 'event_espresso'), |
|
285 | 285 | |
286 | 286 | // Reference: domains/eventEditor/src/ui/datetimes/dateForm/useDateFormConfig.ts:98 |
287 | 287 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/tableView/useHeaderRowGenerator.tsx:63 |
288 | 288 | // Reference: domains/eventEditor/src/ui/tickets/ticketForm/useTicketFormConfig.tsx:110 |
289 | - __( 'End Date', 'event_espresso' ), |
|
289 | + __('End Date', 'event_espresso'), |
|
290 | 290 | |
291 | 291 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/DatesList.tsx:34 |
292 | 292 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/tableView/TableView.tsx:42 |
293 | - __( 'Event Dates', 'event_espresso' ), |
|
293 | + __('Event Dates', 'event_espresso'), |
|
294 | 294 | |
295 | 295 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/DatesList.tsx:37 |
296 | - __( 'loading event dates…', 'event_espresso' ), |
|
296 | + __('loading event dates…', 'event_espresso'), |
|
297 | 297 | |
298 | 298 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/DatesListButtons.tsx:22 |
299 | - __( 'Ticket Assignments', 'event_espresso' ), |
|
299 | + __('Ticket Assignments', 'event_espresso'), |
|
300 | 300 | |
301 | 301 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/actionsMenu/AssignTicketsButton.tsx:27 |
302 | - __( 'Number of related tickets', 'event_espresso' ), |
|
302 | + __('Number of related tickets', 'event_espresso'), |
|
303 | 303 | |
304 | 304 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/actionsMenu/AssignTicketsButton.tsx:28 |
305 | - __( 'There are no tickets assigned to this datetime. Please click the ticket icon to update the assignments.', 'event_espresso' ), |
|
305 | + __('There are no tickets assigned to this datetime. Please click the ticket icon to update the assignments.', 'event_espresso'), |
|
306 | 306 | |
307 | 307 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/actionsMenu/AssignTicketsButton.tsx:42 |
308 | - __( 'assign tickets', 'event_espresso' ), |
|
308 | + __('assign tickets', 'event_espresso'), |
|
309 | 309 | |
310 | 310 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/actionsMenu/dropdown/DateMainMenu.tsx:18 |
311 | - __( 'Permanently delete Datetime?', 'event_espresso' ), |
|
311 | + __('Permanently delete Datetime?', 'event_espresso'), |
|
312 | 312 | |
313 | 313 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/actionsMenu/dropdown/DateMainMenu.tsx:18 |
314 | - __( 'Move Datetime to Trash?', 'event_espresso' ), |
|
314 | + __('Move Datetime to Trash?', 'event_espresso'), |
|
315 | 315 | |
316 | 316 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/actionsMenu/dropdown/DateMainMenu.tsx:20 |
317 | - __( 'Are you sure you want to permanently delete this datetime? This action is permanent and can not be undone.', 'event_espresso' ), |
|
317 | + __('Are you sure you want to permanently delete this datetime? This action is permanent and can not be undone.', 'event_espresso'), |
|
318 | 318 | |
319 | 319 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/actionsMenu/dropdown/DateMainMenu.tsx:23 |
320 | - __( 'Are you sure you want to move this datetime to the trash? You can "untrash" this datetime later if you need to.', 'event_espresso' ), |
|
320 | + __('Are you sure you want to move this datetime to the trash? You can "untrash" this datetime later if you need to.', 'event_espresso'), |
|
321 | 321 | |
322 | 322 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/actionsMenu/dropdown/DateMainMenu.tsx:33 |
323 | - __( 'event date main menu', 'event_espresso' ), |
|
323 | + __('event date main menu', 'event_espresso'), |
|
324 | 324 | |
325 | 325 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/actionsMenu/dropdown/DateMainMenu.tsx:37 |
326 | 326 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/actionsMenu/dropdown/TicketMainMenu.tsx:33 |
327 | - __( 'delete permanently', 'event_espresso' ), |
|
327 | + __('delete permanently', 'event_espresso'), |
|
328 | 328 | |
329 | 329 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/actionsMenu/dropdown/DateMainMenu.tsx:37 |
330 | - __( 'trash datetime', 'event_espresso' ), |
|
330 | + __('trash datetime', 'event_espresso'), |
|
331 | 331 | |
332 | 332 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/actionsMenu/dropdown/DateMainMenu.tsx:46 |
333 | - __( 'edit datetime', 'event_espresso' ), |
|
333 | + __('edit datetime', 'event_espresso'), |
|
334 | 334 | |
335 | 335 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/actionsMenu/dropdown/DateMainMenu.tsx:47 |
336 | - __( 'copy datetime', 'event_espresso' ), |
|
336 | + __('copy datetime', 'event_espresso'), |
|
337 | 337 | |
338 | 338 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/bulkEdit/actions/Actions.tsx:30 |
339 | - __( 'edit datetime details', 'event_espresso' ), |
|
339 | + __('edit datetime details', 'event_espresso'), |
|
340 | 340 | |
341 | 341 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/bulkEdit/actions/Actions.tsx:34 |
342 | - __( 'delete datetimes', 'event_espresso' ), |
|
342 | + __('delete datetimes', 'event_espresso'), |
|
343 | 343 | |
344 | 344 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/bulkEdit/actions/Actions.tsx:34 |
345 | - __( 'trash datetimes', 'event_espresso' ), |
|
345 | + __('trash datetimes', 'event_espresso'), |
|
346 | 346 | |
347 | 347 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/bulkEdit/delete/Delete.tsx:13 |
348 | - __( 'Are you sure you want to permanently delete these datetimes? This action can NOT be undone!', 'event_espresso' ), |
|
348 | + __('Are you sure you want to permanently delete these datetimes? This action can NOT be undone!', 'event_espresso'), |
|
349 | 349 | |
350 | 350 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/bulkEdit/delete/Delete.tsx:14 |
351 | - __( 'Are you sure you want to trash these datetimes?', 'event_espresso' ), |
|
351 | + __('Are you sure you want to trash these datetimes?', 'event_espresso'), |
|
352 | 352 | |
353 | 353 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/bulkEdit/delete/Delete.tsx:15 |
354 | - __( 'Delete datetimes permanently', 'event_espresso' ), |
|
354 | + __('Delete datetimes permanently', 'event_espresso'), |
|
355 | 355 | |
356 | 356 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/bulkEdit/delete/Delete.tsx:15 |
357 | - __( 'Trash datetimes', 'event_espresso' ), |
|
357 | + __('Trash datetimes', 'event_espresso'), |
|
358 | 358 | |
359 | 359 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/bulkEdit/details/EditDetails.tsx:22 |
360 | - __( 'Bulk edit date details', 'event_espresso' ), |
|
360 | + __('Bulk edit date details', 'event_espresso'), |
|
361 | 361 | |
362 | 362 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/bulkEdit/details/EditDetails.tsx:23 |
363 | - __( 'any changes will be applied to ALL of the selected dates.', 'event_espresso' ), |
|
363 | + __('any changes will be applied to ALL of the selected dates.', 'event_espresso'), |
|
364 | 364 | |
365 | 365 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/bulkEdit/details/useBulkEditFormConfig.ts:67 |
366 | 366 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/bulkEdit/details/useBulkEditFormConfig.ts:67 |
367 | - __( 'Shift dates', 'event_espresso' ), |
|
367 | + __('Shift dates', 'event_espresso'), |
|
368 | 368 | |
369 | 369 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/bulkEdit/details/useBulkEditFormConfig.ts:92 |
370 | 370 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/bulkEdit/details/useBulkEditFormConfig.ts:92 |
371 | - __( 'earlier', 'event_espresso' ), |
|
371 | + __('earlier', 'event_espresso'), |
|
372 | 372 | |
373 | 373 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/bulkEdit/details/useBulkEditFormConfig.ts:96 |
374 | 374 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/bulkEdit/details/useBulkEditFormConfig.ts:96 |
375 | - __( 'later', 'event_espresso' ), |
|
375 | + __('later', 'event_espresso'), |
|
376 | 376 | |
377 | 377 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/cardView/DateCapacity.tsx:35 |
378 | - __( 'edit capacity (registration limit)…', 'event_espresso' ), |
|
378 | + __('edit capacity (registration limit)…', 'event_espresso'), |
|
379 | 379 | |
380 | 380 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/cardView/DateCardSidebar.tsx:37 |
381 | - __( 'Edit Event Date', 'event_espresso' ), |
|
381 | + __('Edit Event Date', 'event_espresso'), |
|
382 | 382 | |
383 | 383 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/cardView/DateCardSidebar.tsx:40 |
384 | - __( 'edit start and end dates', 'event_espresso' ), |
|
384 | + __('edit start and end dates', 'event_espresso'), |
|
385 | 385 | |
386 | 386 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/cardView/DateDetailsPanel.tsx:14 |
387 | 387 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/cardView/TicketDetailsPanel.tsx:14 |
388 | - __( 'sold', 'event_espresso' ), |
|
388 | + __('sold', 'event_espresso'), |
|
389 | 389 | |
390 | 390 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/cardView/DateDetailsPanel.tsx:27 |
391 | - __( 'capacity', 'event_espresso' ), |
|
391 | + __('capacity', 'event_espresso'), |
|
392 | 392 | |
393 | 393 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/cardView/DateDetailsPanel.tsx:33 |
394 | 394 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/cardView/TicketDetailsPanel.tsx:32 |
395 | - __( 'reg list', 'event_espresso' ), |
|
395 | + __('reg list', 'event_espresso'), |
|
396 | 396 | |
397 | 397 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/cardView/Details.tsx:44 |
398 | 398 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/cardView/Details.tsx:40 |
399 | - __( 'Edit description', 'event_espresso' ), |
|
399 | + __('Edit description', 'event_espresso'), |
|
400 | 400 | |
401 | 401 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/cardView/Details.tsx:45 |
402 | 402 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/cardView/Details.tsx:41 |
403 | - __( 'edit description…', 'event_espresso' ), |
|
403 | + __('edit description…', 'event_espresso'), |
|
404 | 404 | |
405 | 405 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/config.ts:14 |
406 | 406 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/config.ts:13 |
407 | - __( 'Trashed', 'event_espresso' ), |
|
407 | + __('Trashed', 'event_espresso'), |
|
408 | 408 | |
409 | 409 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/config.ts:16 |
410 | 410 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/config.ts:16 |
411 | - __( 'Sold Out', 'event_espresso' ), |
|
411 | + __('Sold Out', 'event_espresso'), |
|
412 | 412 | |
413 | 413 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/editable/EditableName.tsx:17 |
414 | 414 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/editable/EditableName.tsx:27 |
415 | - __( 'edit title…', 'event_espresso' ), |
|
415 | + __('edit title…', 'event_espresso'), |
|
416 | 416 | |
417 | 417 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/filterBar/ActiveDatesFilters.tsx:25 |
418 | 418 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/filterBar/ActiveTicketsFilters.tsx:25 |
419 | - __( 'ON', 'event_espresso' ), |
|
419 | + __('ON', 'event_espresso'), |
|
420 | 420 | |
421 | 421 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:10 |
422 | - __( 'end dates only', 'event_espresso' ), |
|
422 | + __('end dates only', 'event_espresso'), |
|
423 | 423 | |
424 | 424 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:11 |
425 | - __( 'start and end dates', 'event_espresso' ), |
|
425 | + __('start and end dates', 'event_espresso'), |
|
426 | 426 | |
427 | 427 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:16 |
428 | - __( 'dates above 90% capacity', 'event_espresso' ), |
|
428 | + __('dates above 90% capacity', 'event_espresso'), |
|
429 | 429 | |
430 | 430 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:17 |
431 | - __( 'dates above 75% capacity', 'event_espresso' ), |
|
431 | + __('dates above 75% capacity', 'event_espresso'), |
|
432 | 432 | |
433 | 433 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:18 |
434 | - __( 'dates above 50% capacity', 'event_espresso' ), |
|
434 | + __('dates above 50% capacity', 'event_espresso'), |
|
435 | 435 | |
436 | 436 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:19 |
437 | - __( 'dates below 50% capacity', 'event_espresso' ), |
|
437 | + __('dates below 50% capacity', 'event_espresso'), |
|
438 | 438 | |
439 | 439 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:23 |
440 | - __( 'all dates', 'event_espresso' ), |
|
440 | + __('all dates', 'event_espresso'), |
|
441 | 441 | |
442 | 442 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:24 |
443 | - __( 'all active and upcoming', 'event_espresso' ), |
|
443 | + __('all active and upcoming', 'event_espresso'), |
|
444 | 444 | |
445 | 445 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:25 |
446 | - __( 'active dates only', 'event_espresso' ), |
|
446 | + __('active dates only', 'event_espresso'), |
|
447 | 447 | |
448 | 448 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:26 |
449 | - __( 'upcoming dates only', 'event_espresso' ), |
|
449 | + __('upcoming dates only', 'event_espresso'), |
|
450 | 450 | |
451 | 451 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:27 |
452 | - __( 'next active or upcoming only', 'event_espresso' ), |
|
452 | + __('next active or upcoming only', 'event_espresso'), |
|
453 | 453 | |
454 | 454 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:28 |
455 | - __( 'sold out dates only', 'event_espresso' ), |
|
455 | + __('sold out dates only', 'event_espresso'), |
|
456 | 456 | |
457 | 457 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:29 |
458 | - __( 'recently expired dates', 'event_espresso' ), |
|
458 | + __('recently expired dates', 'event_espresso'), |
|
459 | 459 | |
460 | 460 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:30 |
461 | - __( 'all expired dates', 'event_espresso' ), |
|
461 | + __('all expired dates', 'event_espresso'), |
|
462 | 462 | |
463 | 463 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:31 |
464 | - __( 'trashed dates only', 'event_espresso' ), |
|
464 | + __('trashed dates only', 'event_espresso'), |
|
465 | 465 | |
466 | 466 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:35 |
467 | 467 | // Reference: packages/dates/src/DateRangePicker/DateRangePickerLegend.tsx:10 |
468 | 468 | // Reference: packages/dates/src/DateRangePicker/index.tsx:41 |
469 | - __( 'start date', 'event_espresso' ), |
|
469 | + __('start date', 'event_espresso'), |
|
470 | 470 | |
471 | 471 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:36 |
472 | - __( 'name', 'event_espresso' ), |
|
472 | + __('name', 'event_espresso'), |
|
473 | 473 | |
474 | 474 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:37 |
475 | 475 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/tableView/useHeaderRowGenerator.tsx:38 |
@@ -477,96 +477,96 @@ discard block |
||
477 | 477 | // Reference: domains/eventEditor/src/ui/ticketAssignmentsManager/components/table/HeaderCell.tsx:20 |
478 | 478 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/tableView/useHeaderRowGenerator.tsx:36 |
479 | 479 | // Reference: packages/tpc/src/components/table/useHeaderRowGenerator.ts:23 |
480 | - __( 'ID', 'event_espresso' ), |
|
480 | + __('ID', 'event_espresso'), |
|
481 | 481 | |
482 | 482 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:38 |
483 | 483 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:47 |
484 | - __( 'custom order', 'event_espresso' ), |
|
484 | + __('custom order', 'event_espresso'), |
|
485 | 485 | |
486 | 486 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:42 |
487 | 487 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:52 |
488 | - __( 'display', 'event_espresso' ), |
|
488 | + __('display', 'event_espresso'), |
|
489 | 489 | |
490 | 490 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:43 |
491 | - __( 'recurrence', 'event_espresso' ), |
|
491 | + __('recurrence', 'event_espresso'), |
|
492 | 492 | |
493 | 493 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:44 |
494 | 494 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:54 |
495 | - __( 'sales', 'event_espresso' ), |
|
495 | + __('sales', 'event_espresso'), |
|
496 | 496 | |
497 | 497 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:45 |
498 | 498 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:56 |
499 | - __( 'sort by', 'event_espresso' ), |
|
499 | + __('sort by', 'event_espresso'), |
|
500 | 500 | |
501 | 501 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:46 |
502 | 502 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:55 |
503 | 503 | // Reference: packages/components/src/EntityList/filterBar/EntityListFilterBar.tsx:73 |
504 | - __( 'search', 'event_espresso' ), |
|
504 | + __('search', 'event_espresso'), |
|
505 | 505 | |
506 | 506 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:47 |
507 | 507 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:57 |
508 | - __( 'status', 'event_espresso' ), |
|
508 | + __('status', 'event_espresso'), |
|
509 | 509 | |
510 | 510 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:9 |
511 | - __( 'start dates only', 'event_espresso' ), |
|
511 | + __('start dates only', 'event_espresso'), |
|
512 | 512 | |
513 | 513 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/newDateOptions/AddSingleDate.tsx:20 |
514 | 514 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/newDateOptions/OptionsPopover.tsx:14 |
515 | 515 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/newDateOptions/OptionsPopoverButton.tsx:11 |
516 | - __( 'Add New Date', 'event_espresso' ), |
|
516 | + __('Add New Date', 'event_espresso'), |
|
517 | 517 | |
518 | 518 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/newDateOptions/AddSingleDate.tsx:20 |
519 | - __( 'Add Single Date', 'event_espresso' ), |
|
519 | + __('Add Single Date', 'event_espresso'), |
|
520 | 520 | |
521 | 521 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/newDateOptions/AddSingleDate.tsx:34 |
522 | - __( 'Add a single date that only occurs once', 'event_espresso' ), |
|
522 | + __('Add a single date that only occurs once', 'event_espresso'), |
|
523 | 523 | |
524 | 524 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/newDateOptions/AddSingleDate.tsx:36 |
525 | - __( 'Single Date', 'event_espresso' ), |
|
525 | + __('Single Date', 'event_espresso'), |
|
526 | 526 | |
527 | 527 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/tableView/useHeaderRowGenerator.tsx:105 |
528 | 528 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/tableView/useHeaderRowGenerator.tsx:103 |
529 | 529 | // Reference: packages/tpc/src/components/table/useHeaderRowGenerator.ts:53 |
530 | - __( 'Actions', 'event_espresso' ), |
|
530 | + __('Actions', 'event_espresso'), |
|
531 | 531 | |
532 | 532 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/tableView/useHeaderRowGenerator.tsx:53 |
533 | - __( 'Start', 'event_espresso' ), |
|
533 | + __('Start', 'event_espresso'), |
|
534 | 534 | |
535 | 535 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/tableView/useHeaderRowGenerator.tsx:64 |
536 | - __( 'End', 'event_espresso' ), |
|
536 | + __('End', 'event_espresso'), |
|
537 | 537 | |
538 | 538 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/tableView/useHeaderRowGenerator.tsx:76 |
539 | - __( 'Cap', 'event_espresso' ), |
|
539 | + __('Cap', 'event_espresso'), |
|
540 | 540 | |
541 | 541 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/tableView/useHeaderRowGenerator.tsx:84 |
542 | 542 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/tableView/useHeaderRowGenerator.tsx:85 |
543 | - __( 'Sold', 'event_espresso' ), |
|
543 | + __('Sold', 'event_espresso'), |
|
544 | 544 | |
545 | 545 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/tableView/useHeaderRowGenerator.tsx:93 |
546 | - __( 'Reg list', 'event_espresso' ), |
|
546 | + __('Reg list', 'event_espresso'), |
|
547 | 547 | |
548 | 548 | // Reference: domains/eventEditor/src/ui/datetimes/datesList/tableView/useHeaderRowGenerator.tsx:94 |
549 | 549 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/tableView/useHeaderRowGenerator.tsx:95 |
550 | - __( 'Regs', 'event_espresso' ), |
|
550 | + __('Regs', 'event_espresso'), |
|
551 | 551 | |
552 | 552 | // Reference: domains/eventEditor/src/ui/ticketAssignmentsManager/components/ErrorMessage.tsx:18 |
553 | - __( 'Tickets must always have at least one date assigned to them but one or more of the tickets below does not have any. Please correct the assignments for the highlighted cells.', 'event_espresso' ), |
|
553 | + __('Tickets must always have at least one date assigned to them but one or more of the tickets below does not have any. Please correct the assignments for the highlighted cells.', 'event_espresso'), |
|
554 | 554 | |
555 | 555 | // Reference: domains/eventEditor/src/ui/ticketAssignmentsManager/components/ErrorMessage.tsx:22 |
556 | - __( 'Event Dates must always have at least one Ticket assigned to them but one or more of the Event Dates below does not have any. Please correct the assignments for the highlighted cells.', 'event_espresso' ), |
|
556 | + __('Event Dates must always have at least one Ticket assigned to them but one or more of the Event Dates below does not have any. Please correct the assignments for the highlighted cells.', 'event_espresso'), |
|
557 | 557 | |
558 | 558 | // Reference: domains/eventEditor/src/ui/ticketAssignmentsManager/components/ModalContainer.tsx:25 |
559 | 559 | /* translators: %d entity id, %s entity name */ |
560 | - __( 'Ticket Assignment Manager for Datetime: %1$d - %2$s', 'event_espresso' ), |
|
560 | + __('Ticket Assignment Manager for Datetime: %1$d - %2$s', 'event_espresso'), |
|
561 | 561 | |
562 | 562 | // Reference: domains/eventEditor/src/ui/ticketAssignmentsManager/components/ModalContainer.tsx:32 |
563 | 563 | /* translators: %d entity id, %s entity name */ |
564 | - __( 'Ticket Assignment Manager for Ticket: %1$d - %2$s', 'event_espresso' ), |
|
564 | + __('Ticket Assignment Manager for Ticket: %1$d - %2$s', 'event_espresso'), |
|
565 | 565 | |
566 | 566 | // Reference: domains/eventEditor/src/ui/ticketAssignmentsManager/components/TicketAssignmentsManagerModal/buttons/useCancelButtonProps.tsx:18 |
567 | 567 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/bulkEdit/prices/buttons/FooterButtons.tsx:16 |
568 | 568 | // Reference: packages/components/src/Modal/useCancelButtonProps.tsx:10 |
569 | - __( 'Cancel', 'event_espresso' ), |
|
569 | + __('Cancel', 'event_espresso'), |
|
570 | 570 | |
571 | 571 | // Reference: domains/eventEditor/src/ui/ticketAssignmentsManager/components/TicketAssignmentsManagerModal/buttons/useSubmitButtonProps.tsx:25 |
572 | 572 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/bulkEdit/prices/buttons/FooterButtons.tsx:17 |
@@ -575,784 +575,784 @@ discard block |
||
575 | 575 | // Reference: packages/components/src/bulkEdit/details/Submit.tsx:38 |
576 | 576 | // Reference: packages/form/src/Submit.tsx:26 |
577 | 577 | // Reference: packages/tpc/src/buttons/useSubmitButtonProps.tsx:25 |
578 | - __( 'Submit', 'event_espresso' ), |
|
578 | + __('Submit', 'event_espresso'), |
|
579 | 579 | |
580 | 580 | // Reference: domains/eventEditor/src/ui/ticketAssignmentsManager/components/TicketAssignmentsManagerModal/index.tsx:32 |
581 | 581 | // Reference: domains/eventEditor/src/ui/ticketAssignmentsManager/components/table/Table.tsx:14 |
582 | - __( 'Ticket Assignment Manager', 'event_espresso' ), |
|
582 | + __('Ticket Assignment Manager', 'event_espresso'), |
|
583 | 583 | |
584 | 584 | // Reference: domains/eventEditor/src/ui/ticketAssignmentsManager/components/table/BodyCell.tsx:24 |
585 | - __( 'assign ticket', 'event_espresso' ), |
|
585 | + __('assign ticket', 'event_espresso'), |
|
586 | 586 | |
587 | 587 | // Reference: domains/eventEditor/src/ui/ticketAssignmentsManager/filters/controls/DatesByMonthControl.tsx:19 |
588 | - __( 'All Dates', 'event_espresso' ), |
|
588 | + __('All Dates', 'event_espresso'), |
|
589 | 589 | |
590 | 590 | // Reference: domains/eventEditor/src/ui/ticketAssignmentsManager/filters/controls/DatesByMonthControl.tsx:26 |
591 | - __( 'dates by month', 'event_espresso' ), |
|
591 | + __('dates by month', 'event_espresso'), |
|
592 | 592 | |
593 | 593 | // Reference: domains/eventEditor/src/ui/ticketAssignmentsManager/filters/controls/ShowExpiredTicketsControl.tsx:15 |
594 | - __( 'show expired tickets', 'event_espresso' ), |
|
594 | + __('show expired tickets', 'event_espresso'), |
|
595 | 595 | |
596 | 596 | // Reference: domains/eventEditor/src/ui/ticketAssignmentsManager/filters/controls/ShowTrashedDatesControl.tsx:12 |
597 | - __( 'show trashed dates', 'event_espresso' ), |
|
597 | + __('show trashed dates', 'event_espresso'), |
|
598 | 598 | |
599 | 599 | // Reference: domains/eventEditor/src/ui/ticketAssignmentsManager/filters/controls/ShowTrashedTicketsControl.tsx:15 |
600 | - __( 'show trashed tickets', 'event_espresso' ), |
|
600 | + __('show trashed tickets', 'event_espresso'), |
|
601 | 601 | |
602 | 602 | // Reference: domains/eventEditor/src/ui/tickets/TicketRegistrationsLink.tsx:17 |
603 | - __( 'total registrations.', 'event_espresso' ), |
|
603 | + __('total registrations.', 'event_espresso'), |
|
604 | 604 | |
605 | 605 | // Reference: domains/eventEditor/src/ui/tickets/TicketRegistrationsLink.tsx:18 |
606 | - __( 'view ALL registrations for this ticket.', 'event_espresso' ), |
|
606 | + __('view ALL registrations for this ticket.', 'event_espresso'), |
|
607 | 607 | |
608 | 608 | // Reference: domains/eventEditor/src/ui/tickets/ticketForm/multiStep/Container.tsx:21 |
609 | 609 | /* translators: %d ticket id */ |
610 | - __( 'Edit ticket %d', 'event_espresso' ), |
|
610 | + __('Edit ticket %d', 'event_espresso'), |
|
611 | 611 | |
612 | 612 | // Reference: domains/eventEditor/src/ui/tickets/ticketForm/multiStep/Container.tsx:24 |
613 | - __( 'New Ticket Details', 'event_espresso' ), |
|
613 | + __('New Ticket Details', 'event_espresso'), |
|
614 | 614 | |
615 | 615 | // Reference: domains/eventEditor/src/ui/tickets/ticketForm/multiStep/ContentBody.tsx:47 |
616 | - __( 'Set ticket prices', 'event_espresso' ), |
|
616 | + __('Set ticket prices', 'event_espresso'), |
|
617 | 617 | |
618 | 618 | // Reference: domains/eventEditor/src/ui/tickets/ticketForm/multiStep/ContentBody.tsx:54 |
619 | - __( 'Skip prices - assign dates', 'event_espresso' ), |
|
619 | + __('Skip prices - assign dates', 'event_espresso'), |
|
620 | 620 | |
621 | 621 | // Reference: domains/eventEditor/src/ui/tickets/ticketForm/multiStep/ContentBody.tsx:70 |
622 | - __( 'Save and assign dates', 'event_espresso' ), |
|
622 | + __('Save and assign dates', 'event_espresso'), |
|
623 | 623 | |
624 | 624 | // Reference: domains/eventEditor/src/ui/tickets/ticketForm/multiStep/ContentBody.tsx:83 |
625 | - __( 'Ticket details', 'event_espresso' ), |
|
625 | + __('Ticket details', 'event_espresso'), |
|
626 | 626 | |
627 | 627 | // Reference: domains/eventEditor/src/ui/tickets/ticketForm/multiStep/TicketFormSteps.tsx:11 |
628 | - __( 'primary information about the ticket', 'event_espresso' ), |
|
628 | + __('primary information about the ticket', 'event_espresso'), |
|
629 | 629 | |
630 | 630 | // Reference: domains/eventEditor/src/ui/tickets/ticketForm/multiStep/TicketFormSteps.tsx:11 |
631 | - __( 'Ticket Details', 'event_espresso' ), |
|
631 | + __('Ticket Details', 'event_espresso'), |
|
632 | 632 | |
633 | 633 | // Reference: domains/eventEditor/src/ui/tickets/ticketForm/multiStep/TicketFormSteps.tsx:13 |
634 | - __( 'apply ticket price modifiers and taxes', 'event_espresso' ), |
|
634 | + __('apply ticket price modifiers and taxes', 'event_espresso'), |
|
635 | 635 | |
636 | 636 | // Reference: domains/eventEditor/src/ui/tickets/ticketForm/multiStep/TicketFormSteps.tsx:15 |
637 | - __( 'Price Calculator', 'event_espresso' ), |
|
637 | + __('Price Calculator', 'event_espresso'), |
|
638 | 638 | |
639 | 639 | // Reference: domains/eventEditor/src/ui/tickets/ticketForm/multiStep/TicketFormSteps.tsx:17 |
640 | - __( 'Assign Dates', 'event_espresso' ), |
|
640 | + __('Assign Dates', 'event_espresso'), |
|
641 | 641 | |
642 | 642 | // Reference: domains/eventEditor/src/ui/tickets/ticketForm/useTicketFormConfig.tsx:100 |
643 | - __( 'Ticket Sales', 'event_espresso' ), |
|
643 | + __('Ticket Sales', 'event_espresso'), |
|
644 | 644 | |
645 | 645 | // Reference: domains/eventEditor/src/ui/tickets/ticketForm/useTicketFormConfig.tsx:123 |
646 | 646 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/bulkEdit/details/useBulkEditFormConfig.ts:112 |
647 | - __( 'Quantity For Sale', 'event_espresso' ), |
|
647 | + __('Quantity For Sale', 'event_espresso'), |
|
648 | 648 | |
649 | 649 | // Reference: domains/eventEditor/src/ui/tickets/ticketForm/useTicketFormConfig.tsx:129 |
650 | - __( 'The maximum number of this ticket available for sale.', 'event_espresso' ), |
|
650 | + __('The maximum number of this ticket available for sale.', 'event_espresso'), |
|
651 | 651 | |
652 | 652 | // Reference: domains/eventEditor/src/ui/tickets/ticketForm/useTicketFormConfig.tsx:131 |
653 | - __( 'Set to 0 to stop sales, or leave blank for no limit.', 'event_espresso' ), |
|
653 | + __('Set to 0 to stop sales, or leave blank for no limit.', 'event_espresso'), |
|
654 | 654 | |
655 | 655 | // Reference: domains/eventEditor/src/ui/tickets/ticketForm/useTicketFormConfig.tsx:136 |
656 | 656 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/bulkEdit/details/useBulkEditFormConfig.ts:121 |
657 | - __( 'Number of Uses', 'event_espresso' ), |
|
657 | + __('Number of Uses', 'event_espresso'), |
|
658 | 658 | |
659 | 659 | // Reference: domains/eventEditor/src/ui/tickets/ticketForm/useTicketFormConfig.tsx:142 |
660 | - __( 'Controls the total number of times this ticket can be used, regardless of the number of dates it is assigned to.', 'event_espresso' ), |
|
660 | + __('Controls the total number of times this ticket can be used, regardless of the number of dates it is assigned to.', 'event_espresso'), |
|
661 | 661 | |
662 | 662 | // Reference: domains/eventEditor/src/ui/tickets/ticketForm/useTicketFormConfig.tsx:146 |
663 | - __( 'Example: A ticket might have access to 4 different dates, but setting this field to 2 would mean that the ticket could only be used twice. Leave blank for no limit.', 'event_espresso' ), |
|
663 | + __('Example: A ticket might have access to 4 different dates, but setting this field to 2 would mean that the ticket could only be used twice. Leave blank for no limit.', 'event_espresso'), |
|
664 | 664 | |
665 | 665 | // Reference: domains/eventEditor/src/ui/tickets/ticketForm/useTicketFormConfig.tsx:153 |
666 | 666 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/bulkEdit/details/useBulkEditFormConfig.ts:129 |
667 | - __( 'Minimum Quantity', 'event_espresso' ), |
|
667 | + __('Minimum Quantity', 'event_espresso'), |
|
668 | 668 | |
669 | 669 | // Reference: domains/eventEditor/src/ui/tickets/ticketForm/useTicketFormConfig.tsx:158 |
670 | - __( 'The minimum quantity that can be selected for this ticket. Use this to create ticket bundles or graduated pricing.', 'event_espresso' ), |
|
670 | + __('The minimum quantity that can be selected for this ticket. Use this to create ticket bundles or graduated pricing.', 'event_espresso'), |
|
671 | 671 | |
672 | 672 | // Reference: domains/eventEditor/src/ui/tickets/ticketForm/useTicketFormConfig.tsx:162 |
673 | - __( 'Leave blank for no minimum.', 'event_espresso' ), |
|
673 | + __('Leave blank for no minimum.', 'event_espresso'), |
|
674 | 674 | |
675 | 675 | // Reference: domains/eventEditor/src/ui/tickets/ticketForm/useTicketFormConfig.tsx:167 |
676 | 676 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/bulkEdit/details/useBulkEditFormConfig.ts:137 |
677 | - __( 'Maximum Quantity', 'event_espresso' ), |
|
677 | + __('Maximum Quantity', 'event_espresso'), |
|
678 | 678 | |
679 | 679 | // Reference: domains/eventEditor/src/ui/tickets/ticketForm/useTicketFormConfig.tsx:173 |
680 | - __( 'The maximum quantity that can be selected for this ticket. Use this to create ticket bundles or graduated pricing.', 'event_espresso' ), |
|
680 | + __('The maximum quantity that can be selected for this ticket. Use this to create ticket bundles or graduated pricing.', 'event_espresso'), |
|
681 | 681 | |
682 | 682 | // Reference: domains/eventEditor/src/ui/tickets/ticketForm/useTicketFormConfig.tsx:177 |
683 | - __( 'Leave blank for no maximum.', 'event_espresso' ), |
|
683 | + __('Leave blank for no maximum.', 'event_espresso'), |
|
684 | 684 | |
685 | 685 | // Reference: domains/eventEditor/src/ui/tickets/ticketForm/useTicketFormConfig.tsx:182 |
686 | 686 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/bulkEdit/details/useBulkEditFormConfig.ts:146 |
687 | - __( 'Required Ticket', 'event_espresso' ), |
|
687 | + __('Required Ticket', 'event_espresso'), |
|
688 | 688 | |
689 | 689 | // Reference: domains/eventEditor/src/ui/tickets/ticketForm/useTicketFormConfig.tsx:184 |
690 | - __( 'If enabled, the ticket must be selected and will appear first in frontend ticket lists.', 'event_espresso' ), |
|
690 | + __('If enabled, the ticket must be selected and will appear first in frontend ticket lists.', 'event_espresso'), |
|
691 | 691 | |
692 | 692 | // Reference: domains/eventEditor/src/ui/tickets/ticketForm/useTicketFormConfig.tsx:191 |
693 | - __( 'Default Ticket', 'event_espresso' ), |
|
693 | + __('Default Ticket', 'event_espresso'), |
|
694 | 694 | |
695 | 695 | // Reference: domains/eventEditor/src/ui/tickets/ticketForm/useTicketFormConfig.tsx:193 |
696 | - __( 'If enabled, the ticket will appear on all new events.', 'event_espresso' ), |
|
696 | + __('If enabled, the ticket will appear on all new events.', 'event_espresso'), |
|
697 | 697 | |
698 | 698 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/TicketsList.tsx:35 |
699 | - __( 'Available Tickets', 'event_espresso' ), |
|
699 | + __('Available Tickets', 'event_espresso'), |
|
700 | 700 | |
701 | 701 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/TicketsList.tsx:38 |
702 | - __( 'loading tickets…', 'event_espresso' ), |
|
702 | + __('loading tickets…', 'event_espresso'), |
|
703 | 703 | |
704 | 704 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/actionsMenu/AssignDatesButton.tsx:27 |
705 | - __( 'Number of related dates', 'event_espresso' ), |
|
705 | + __('Number of related dates', 'event_espresso'), |
|
706 | 706 | |
707 | 707 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/actionsMenu/AssignDatesButton.tsx:28 |
708 | - __( 'There are no event dates assigned to this ticket. Please click the calendar icon to update the assignments.', 'event_espresso' ), |
|
708 | + __('There are no event dates assigned to this ticket. Please click the calendar icon to update the assignments.', 'event_espresso'), |
|
709 | 709 | |
710 | 710 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/actionsMenu/AssignDatesButton.tsx:44 |
711 | - __( 'assign dates', 'event_espresso' ), |
|
711 | + __('assign dates', 'event_espresso'), |
|
712 | 712 | |
713 | 713 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/actionsMenu/dropdown/TicketMainMenu.tsx:17 |
714 | - __( 'Permanently delete Ticket?', 'event_espresso' ), |
|
714 | + __('Permanently delete Ticket?', 'event_espresso'), |
|
715 | 715 | |
716 | 716 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/actionsMenu/dropdown/TicketMainMenu.tsx:17 |
717 | - __( 'Move Ticket to Trash?', 'event_espresso' ), |
|
717 | + __('Move Ticket to Trash?', 'event_espresso'), |
|
718 | 718 | |
719 | 719 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/actionsMenu/dropdown/TicketMainMenu.tsx:19 |
720 | - __( 'Are you sure you want to permanently delete this ticket? This action is permanent and can not be undone.', 'event_espresso' ), |
|
720 | + __('Are you sure you want to permanently delete this ticket? This action is permanent and can not be undone.', 'event_espresso'), |
|
721 | 721 | |
722 | 722 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/actionsMenu/dropdown/TicketMainMenu.tsx:20 |
723 | - __( 'Are you sure you want to move this ticket to the trash? You can "untrash" this ticket later if you need to.', 'event_espresso' ), |
|
723 | + __('Are you sure you want to move this ticket to the trash? You can "untrash" this ticket later if you need to.', 'event_espresso'), |
|
724 | 724 | |
725 | 725 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/actionsMenu/dropdown/TicketMainMenu.tsx:29 |
726 | - __( 'ticket main menu', 'event_espresso' ), |
|
726 | + __('ticket main menu', 'event_espresso'), |
|
727 | 727 | |
728 | 728 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/actionsMenu/dropdown/TicketMainMenu.tsx:33 |
729 | - __( 'trash ticket', 'event_espresso' ), |
|
729 | + __('trash ticket', 'event_espresso'), |
|
730 | 730 | |
731 | 731 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/actionsMenu/dropdown/TicketMainMenu.tsx:42 |
732 | - __( 'edit ticket', 'event_espresso' ), |
|
732 | + __('edit ticket', 'event_espresso'), |
|
733 | 733 | |
734 | 734 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/actionsMenu/dropdown/TicketMainMenu.tsx:43 |
735 | - __( 'copy ticket', 'event_espresso' ), |
|
735 | + __('copy ticket', 'event_espresso'), |
|
736 | 736 | |
737 | 737 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/bulkEdit/actions/Actions.tsx:39 |
738 | 738 | // Reference: packages/components/src/bulkEdit/BulkActions.tsx:44 |
739 | - __( 'bulk actions', 'event_espresso' ), |
|
739 | + __('bulk actions', 'event_espresso'), |
|
740 | 740 | |
741 | 741 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/bulkEdit/actions/Actions.tsx:43 |
742 | - __( 'edit ticket details', 'event_espresso' ), |
|
742 | + __('edit ticket details', 'event_espresso'), |
|
743 | 743 | |
744 | 744 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/bulkEdit/actions/Actions.tsx:47 |
745 | - __( 'delete tickets', 'event_espresso' ), |
|
745 | + __('delete tickets', 'event_espresso'), |
|
746 | 746 | |
747 | 747 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/bulkEdit/actions/Actions.tsx:47 |
748 | - __( 'trash tickets', 'event_espresso' ), |
|
748 | + __('trash tickets', 'event_espresso'), |
|
749 | 749 | |
750 | 750 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/bulkEdit/actions/Actions.tsx:51 |
751 | - __( 'edit ticket prices', 'event_espresso' ), |
|
751 | + __('edit ticket prices', 'event_espresso'), |
|
752 | 752 | |
753 | 753 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/bulkEdit/delete/Delete.tsx:13 |
754 | - __( 'Are you sure you want to permanently delete these tickets? This action can NOT be undone!', 'event_espresso' ), |
|
754 | + __('Are you sure you want to permanently delete these tickets? This action can NOT be undone!', 'event_espresso'), |
|
755 | 755 | |
756 | 756 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/bulkEdit/delete/Delete.tsx:14 |
757 | - __( 'Are you sure you want to trash these tickets?', 'event_espresso' ), |
|
757 | + __('Are you sure you want to trash these tickets?', 'event_espresso'), |
|
758 | 758 | |
759 | 759 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/bulkEdit/delete/Delete.tsx:15 |
760 | - __( 'Delete tickets permanently', 'event_espresso' ), |
|
760 | + __('Delete tickets permanently', 'event_espresso'), |
|
761 | 761 | |
762 | 762 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/bulkEdit/delete/Delete.tsx:15 |
763 | - __( 'Trash tickets', 'event_espresso' ), |
|
763 | + __('Trash tickets', 'event_espresso'), |
|
764 | 764 | |
765 | 765 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/bulkEdit/details/EditDetails.tsx:22 |
766 | - __( 'Bulk edit ticket details', 'event_espresso' ), |
|
766 | + __('Bulk edit ticket details', 'event_espresso'), |
|
767 | 767 | |
768 | 768 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/bulkEdit/details/EditDetails.tsx:23 |
769 | - __( 'any changes will be applied to ALL of the selected tickets.', 'event_espresso' ), |
|
769 | + __('any changes will be applied to ALL of the selected tickets.', 'event_espresso'), |
|
770 | 770 | |
771 | 771 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/bulkEdit/prices/EditPrices.tsx:18 |
772 | - __( 'Bulk edit ticket prices', 'event_espresso' ), |
|
772 | + __('Bulk edit ticket prices', 'event_espresso'), |
|
773 | 773 | |
774 | 774 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/bulkEdit/prices/buttons/EditModeButtons.tsx:19 |
775 | - __( 'Edit all prices together', 'event_espresso' ), |
|
775 | + __('Edit all prices together', 'event_espresso'), |
|
776 | 776 | |
777 | 777 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/bulkEdit/prices/buttons/EditModeButtons.tsx:20 |
778 | - __( 'Edit all the selected ticket prices dynamically', 'event_espresso' ), |
|
778 | + __('Edit all the selected ticket prices dynamically', 'event_espresso'), |
|
779 | 779 | |
780 | 780 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/bulkEdit/prices/buttons/EditModeButtons.tsx:24 |
781 | - __( 'Edit prices individually', 'event_espresso' ), |
|
781 | + __('Edit prices individually', 'event_espresso'), |
|
782 | 782 | |
783 | 783 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/bulkEdit/prices/buttons/EditModeButtons.tsx:25 |
784 | - __( 'Edit prices for each ticket individually', 'event_espresso' ), |
|
784 | + __('Edit prices for each ticket individually', 'event_espresso'), |
|
785 | 785 | |
786 | 786 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/bulkEdit/prices/buttons/FooterButtons.tsx:15 |
787 | 787 | // Reference: packages/components/src/bulkEdit/details/Submit.tsx:45 |
788 | 788 | // Reference: packages/form/src/ResetButton.tsx:17 |
789 | 789 | // Reference: packages/tpc/src/buttons/useResetButtonProps.tsx:12 |
790 | - __( 'Reset', 'event_espresso' ), |
|
790 | + __('Reset', 'event_espresso'), |
|
791 | 791 | |
792 | 792 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/bulkEdit/prices/editSeparately/TPCInstance.tsx:25 |
793 | 793 | /* translators: %s ticket name */ |
794 | - __( 'Edit prices for Ticket: %s', 'event_espresso' ), |
|
794 | + __('Edit prices for Ticket: %s', 'event_espresso'), |
|
795 | 795 | |
796 | 796 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/cardView/TicketCardSidebar.tsx:36 |
797 | - __( 'Edit Ticket Sale Dates', 'event_espresso' ), |
|
797 | + __('Edit Ticket Sale Dates', 'event_espresso'), |
|
798 | 798 | |
799 | 799 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/cardView/TicketCardSidebar.tsx:38 |
800 | - __( 'edit ticket sales start and end dates', 'event_espresso' ), |
|
800 | + __('edit ticket sales start and end dates', 'event_espresso'), |
|
801 | 801 | |
802 | 802 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/cardView/TicketDetailsPanel.tsx:27 |
803 | - __( 'quantity', 'event_espresso' ), |
|
803 | + __('quantity', 'event_espresso'), |
|
804 | 804 | |
805 | 805 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/cardView/TicketQuantity.tsx:26 |
806 | - __( 'edit quantity of tickets available…', 'event_espresso' ), |
|
806 | + __('edit quantity of tickets available…', 'event_espresso'), |
|
807 | 807 | |
808 | 808 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/config.ts:15 |
809 | 809 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/tableView/useHeaderRowGenerator.tsx:51 |
810 | - __( 'On Sale', 'event_espresso' ), |
|
810 | + __('On Sale', 'event_espresso'), |
|
811 | 811 | |
812 | 812 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/config.ts:17 |
813 | - __( 'Pending', 'event_espresso' ), |
|
813 | + __('Pending', 'event_espresso'), |
|
814 | 814 | |
815 | 815 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/editable/EditablePrice.tsx:30 |
816 | - __( 'edit ticket total…', 'event_espresso' ), |
|
816 | + __('edit ticket total…', 'event_espresso'), |
|
817 | 817 | |
818 | 818 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/editable/EditablePrice.tsx:37 |
819 | - __( 'set price…', 'event_espresso' ), |
|
819 | + __('set price…', 'event_espresso'), |
|
820 | 820 | |
821 | 821 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/IsChainedButton.tsx:24 |
822 | - __( 'tickets list is linked to dates list and is showing tickets for above dates only', 'event_espresso' ), |
|
822 | + __('tickets list is linked to dates list and is showing tickets for above dates only', 'event_espresso'), |
|
823 | 823 | |
824 | 824 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/IsChainedButton.tsx:25 |
825 | - __( 'tickets list is unlinked and is showing tickets for all event dates', 'event_espresso' ), |
|
825 | + __('tickets list is unlinked and is showing tickets for all event dates', 'event_espresso'), |
|
826 | 826 | |
827 | 827 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:10 |
828 | - __( 'ticket sales start and end dates', 'event_espresso' ), |
|
828 | + __('ticket sales start and end dates', 'event_espresso'), |
|
829 | 829 | |
830 | 830 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:15 |
831 | - __( 'tickets with 90% or more sold', 'event_espresso' ), |
|
831 | + __('tickets with 90% or more sold', 'event_espresso'), |
|
832 | 832 | |
833 | 833 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:16 |
834 | - __( 'tickets with 75% or more sold', 'event_espresso' ), |
|
834 | + __('tickets with 75% or more sold', 'event_espresso'), |
|
835 | 835 | |
836 | 836 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:17 |
837 | - __( 'tickets with 50% or more sold', 'event_espresso' ), |
|
837 | + __('tickets with 50% or more sold', 'event_espresso'), |
|
838 | 838 | |
839 | 839 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:19 |
840 | - __( 'tickets with less than 50% sold', 'event_espresso' ), |
|
840 | + __('tickets with less than 50% sold', 'event_espresso'), |
|
841 | 841 | |
842 | 842 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:28 |
843 | - __( 'all tickets for all dates', 'event_espresso' ), |
|
843 | + __('all tickets for all dates', 'event_espresso'), |
|
844 | 844 | |
845 | 845 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:29 |
846 | - __( 'all on sale and sale pending', 'event_espresso' ), |
|
846 | + __('all on sale and sale pending', 'event_espresso'), |
|
847 | 847 | |
848 | 848 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:30 |
849 | - __( 'on sale tickets only', 'event_espresso' ), |
|
849 | + __('on sale tickets only', 'event_espresso'), |
|
850 | 850 | |
851 | 851 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:31 |
852 | - __( 'sale pending tickets only', 'event_espresso' ), |
|
852 | + __('sale pending tickets only', 'event_espresso'), |
|
853 | 853 | |
854 | 854 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:32 |
855 | - __( 'next on sale or sale pending only', 'event_espresso' ), |
|
855 | + __('next on sale or sale pending only', 'event_espresso'), |
|
856 | 856 | |
857 | 857 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:33 |
858 | - __( 'sold out tickets only', 'event_espresso' ), |
|
858 | + __('sold out tickets only', 'event_espresso'), |
|
859 | 859 | |
860 | 860 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:34 |
861 | - __( 'expired tickets only', 'event_espresso' ), |
|
861 | + __('expired tickets only', 'event_espresso'), |
|
862 | 862 | |
863 | 863 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:35 |
864 | - __( 'trashed tickets only', 'event_espresso' ), |
|
864 | + __('trashed tickets only', 'event_espresso'), |
|
865 | 865 | |
866 | 866 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:40 |
867 | - __( 'all tickets for above dates', 'event_espresso' ), |
|
867 | + __('all tickets for above dates', 'event_espresso'), |
|
868 | 868 | |
869 | 869 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:44 |
870 | - __( 'ticket sale date', 'event_espresso' ), |
|
870 | + __('ticket sale date', 'event_espresso'), |
|
871 | 871 | |
872 | 872 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:45 |
873 | - __( 'ticket name', 'event_espresso' ), |
|
873 | + __('ticket name', 'event_espresso'), |
|
874 | 874 | |
875 | 875 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:46 |
876 | - __( 'ticket ID', 'event_espresso' ), |
|
876 | + __('ticket ID', 'event_espresso'), |
|
877 | 877 | |
878 | 878 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:53 |
879 | - __( 'link', 'event_espresso' ), |
|
879 | + __('link', 'event_espresso'), |
|
880 | 880 | |
881 | 881 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:8 |
882 | - __( 'ticket sales start date only', 'event_espresso' ), |
|
882 | + __('ticket sales start date only', 'event_espresso'), |
|
883 | 883 | |
884 | 884 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:9 |
885 | - __( 'ticket sales end date only', 'event_espresso' ), |
|
885 | + __('ticket sales end date only', 'event_espresso'), |
|
886 | 886 | |
887 | 887 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/newTicketOptions/AddSingleTicket.tsx:19 |
888 | - __( 'Add New Ticket', 'event_espresso' ), |
|
888 | + __('Add New Ticket', 'event_espresso'), |
|
889 | 889 | |
890 | 890 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/newTicketOptions/AddSingleTicket.tsx:31 |
891 | - __( 'Single Ticket', 'event_espresso' ), |
|
891 | + __('Single Ticket', 'event_espresso'), |
|
892 | 892 | |
893 | 893 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/newTicketOptions/AddSingleTicket.tsx:33 |
894 | - __( 'Add a single ticket and assign the dates to it', 'event_espresso' ), |
|
894 | + __('Add a single ticket and assign the dates to it', 'event_espresso'), |
|
895 | 895 | |
896 | 896 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/tableView/TableView.tsx:40 |
897 | - __( 'Tickets', 'event_espresso' ), |
|
897 | + __('Tickets', 'event_espresso'), |
|
898 | 898 | |
899 | 899 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/tableView/useHeaderRowGenerator.tsx:50 |
900 | - __( 'Goes on Sale', 'event_espresso' ), |
|
900 | + __('Goes on Sale', 'event_espresso'), |
|
901 | 901 | |
902 | 902 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/tableView/useHeaderRowGenerator.tsx:61 |
903 | - __( 'Sale Ends', 'event_espresso' ), |
|
903 | + __('Sale Ends', 'event_espresso'), |
|
904 | 904 | |
905 | 905 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/tableView/useHeaderRowGenerator.tsx:62 |
906 | - __( 'Ends', 'event_espresso' ), |
|
906 | + __('Ends', 'event_espresso'), |
|
907 | 907 | |
908 | 908 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/tableView/useHeaderRowGenerator.tsx:71 |
909 | - __( 'Price', 'event_espresso' ), |
|
909 | + __('Price', 'event_espresso'), |
|
910 | 910 | |
911 | 911 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/tableView/useHeaderRowGenerator.tsx:78 |
912 | - __( 'Quantity', 'event_espresso' ), |
|
912 | + __('Quantity', 'event_espresso'), |
|
913 | 913 | |
914 | 914 | // Reference: domains/eventEditor/src/ui/tickets/ticketsList/tableView/useHeaderRowGenerator.tsx:94 |
915 | - __( 'Registrations', 'event_espresso' ), |
|
915 | + __('Registrations', 'event_espresso'), |
|
916 | 916 | |
917 | 917 | // Reference: domains/wpPluginsPage/src/exitSurvey/Popup.tsx:28 |
918 | - __( 'Do you have a moment to share why you are deactivating Event Espresso?', 'event_espresso' ), |
|
918 | + __('Do you have a moment to share why you are deactivating Event Espresso?', 'event_espresso'), |
|
919 | 919 | |
920 | 920 | // Reference: domains/wpPluginsPage/src/exitSurvey/Popup.tsx:39 |
921 | - __( 'Skip', 'event_espresso' ), |
|
921 | + __('Skip', 'event_espresso'), |
|
922 | 922 | |
923 | 923 | // Reference: domains/wpPluginsPage/src/exitSurvey/Popup.tsx:41 |
924 | - __( 'Sure I\'ll help', 'event_espresso' ), |
|
924 | + __('Sure I\'ll help', 'event_espresso'), |
|
925 | 925 | |
926 | 926 | // Reference: packages/adapters/src/Pagination/ItemRender.tsx:10 |
927 | - __( 'next', 'event_espresso' ), |
|
927 | + __('next', 'event_espresso'), |
|
928 | 928 | |
929 | 929 | // Reference: packages/adapters/src/Pagination/ItemRender.tsx:11 |
930 | - __( 'jump to previous', 'event_espresso' ), |
|
930 | + __('jump to previous', 'event_espresso'), |
|
931 | 931 | |
932 | 932 | // Reference: packages/adapters/src/Pagination/ItemRender.tsx:12 |
933 | - __( 'jump to next', 'event_espresso' ), |
|
933 | + __('jump to next', 'event_espresso'), |
|
934 | 934 | |
935 | 935 | // Reference: packages/adapters/src/Pagination/ItemRender.tsx:13 |
936 | - __( 'page', 'event_espresso' ), |
|
936 | + __('page', 'event_espresso'), |
|
937 | 937 | |
938 | 938 | // Reference: packages/adapters/src/Pagination/ItemRender.tsx:9 |
939 | - __( 'previous', 'event_espresso' ), |
|
939 | + __('previous', 'event_espresso'), |
|
940 | 940 | |
941 | 941 | // Reference: packages/adapters/src/Pagination/Pagination.tsx:34 |
942 | - __( 'pagination', 'event_espresso' ), |
|
942 | + __('pagination', 'event_espresso'), |
|
943 | 943 | |
944 | 944 | // Reference: packages/adapters/src/Pagination/PerPage.tsx:36 |
945 | - __( 'items per page', 'event_espresso' ), |
|
945 | + __('items per page', 'event_espresso'), |
|
946 | 946 | |
947 | 947 | // Reference: packages/adapters/src/Pagination/constants.ts:10 |
948 | 948 | /* translators: %s is per page value */ |
949 | - __( '%s / page', 'event_espresso' ), |
|
949 | + __('%s / page', 'event_espresso'), |
|
950 | 950 | |
951 | 951 | // Reference: packages/adapters/src/Pagination/constants.ts:13 |
952 | - __( 'Next Page', 'event_espresso' ), |
|
952 | + __('Next Page', 'event_espresso'), |
|
953 | 953 | |
954 | 954 | // Reference: packages/adapters/src/Pagination/constants.ts:14 |
955 | - __( 'Previous Page', 'event_espresso' ), |
|
955 | + __('Previous Page', 'event_espresso'), |
|
956 | 956 | |
957 | 957 | // Reference: packages/components/src/ActiveFilters/ActiveFilters.tsx:9 |
958 | - __( 'active filters:', 'event_espresso' ), |
|
958 | + __('active filters:', 'event_espresso'), |
|
959 | 959 | |
960 | 960 | // Reference: packages/components/src/ActiveFilters/FilterTag.tsx:11 |
961 | 961 | /* translators: %s filter name */ |
962 | - __( 'remove filter - %s', 'event_espresso' ), |
|
962 | + __('remove filter - %s', 'event_espresso'), |
|
963 | 963 | |
964 | 964 | // Reference: packages/components/src/CalendarDateRange/CalendarDateRange.tsx:39 |
965 | - __( 'to', 'event_espresso' ), |
|
965 | + __('to', 'event_espresso'), |
|
966 | 966 | |
967 | 967 | // Reference: packages/components/src/CalendarDateSwitcher/CalendarDateSwitcher.tsx:33 |
968 | - __( 'starts', 'event_espresso' ), |
|
968 | + __('starts', 'event_espresso'), |
|
969 | 969 | |
970 | 970 | // Reference: packages/components/src/CalendarDateSwitcher/CalendarDateSwitcher.tsx:45 |
971 | - __( 'ends', 'event_espresso' ), |
|
971 | + __('ends', 'event_espresso'), |
|
972 | 972 | |
973 | 973 | // Reference: packages/components/src/CalendarPageDate/CalendarPageDate.tsx:57 |
974 | - __( 'TO', 'event_espresso' ), |
|
974 | + __('TO', 'event_espresso'), |
|
975 | 975 | |
976 | 976 | // Reference: packages/components/src/Confirm/ConfirmClose.tsx:8 |
977 | 977 | // Reference: packages/components/src/Modal/ModalWithAlert.tsx:22 |
978 | - __( 'Are you sure you want to close this?', 'event_espresso' ), |
|
978 | + __('Are you sure you want to close this?', 'event_espresso'), |
|
979 | 979 | |
980 | 980 | // Reference: packages/components/src/Confirm/ConfirmDelete.tsx:8 |
981 | - __( 'Are you sure you want to delete this?', 'event_espresso' ), |
|
981 | + __('Are you sure you want to delete this?', 'event_espresso'), |
|
982 | 982 | |
983 | 983 | // Reference: packages/components/src/Confirm/useConfirmWithButton.tsx:11 |
984 | - __( 'Please confirm this action.', 'event_espresso' ), |
|
984 | + __('Please confirm this action.', 'event_espresso'), |
|
985 | 985 | |
986 | 986 | // Reference: packages/components/src/Confirm/useConfirmationDialog.tsx:35 |
987 | - __( 'No', 'event_espresso' ), |
|
987 | + __('No', 'event_espresso'), |
|
988 | 988 | |
989 | 989 | // Reference: packages/components/src/Confirm/useConfirmationDialog.tsx:36 |
990 | - __( 'Yes', 'event_espresso' ), |
|
990 | + __('Yes', 'event_espresso'), |
|
991 | 991 | |
992 | 992 | // Reference: packages/components/src/DateTimeRangePicker/index.tsx:73 |
993 | - __( 'save', 'event_espresso' ), |
|
993 | + __('save', 'event_espresso'), |
|
994 | 994 | |
995 | 995 | // Reference: packages/components/src/DebugInfo/DebugInfo.tsx:38 |
996 | - __( 'Hide Debug Info', 'event_espresso' ), |
|
996 | + __('Hide Debug Info', 'event_espresso'), |
|
997 | 997 | |
998 | 998 | // Reference: packages/components/src/DebugInfo/DebugInfo.tsx:38 |
999 | - __( 'Show Debug Info', 'event_espresso' ), |
|
999 | + __('Show Debug Info', 'event_espresso'), |
|
1000 | 1000 | |
1001 | 1001 | // Reference: packages/components/src/EditDateRangeButton/index.tsx:41 |
1002 | - __( 'Edit Start and End Dates and Times', 'event_espresso' ), |
|
1002 | + __('Edit Start and End Dates and Times', 'event_espresso'), |
|
1003 | 1003 | |
1004 | 1004 | // Reference: packages/components/src/EntityActionsMenu/entityMenuItems/Copy.tsx:9 |
1005 | - __( 'copy', 'event_espresso' ), |
|
1005 | + __('copy', 'event_espresso'), |
|
1006 | 1006 | |
1007 | 1007 | // Reference: packages/components/src/EntityActionsMenu/entityMenuItems/Edit.tsx:9 |
1008 | - __( 'edit', 'event_espresso' ), |
|
1008 | + __('edit', 'event_espresso'), |
|
1009 | 1009 | |
1010 | 1010 | // Reference: packages/components/src/EntityActionsMenu/entityMenuItems/Trash.tsx:9 |
1011 | - __( 'trash', 'event_espresso' ), |
|
1011 | + __('trash', 'event_espresso'), |
|
1012 | 1012 | |
1013 | 1013 | // Reference: packages/components/src/EntityDetailsPanel/EntityDetailsPanelSold.tsx:36 |
1014 | - __( 'view approved registrations for this date.', 'event_espresso' ), |
|
1014 | + __('view approved registrations for this date.', 'event_espresso'), |
|
1015 | 1015 | |
1016 | 1016 | // Reference: packages/components/src/EntityDetailsPanel/EntityDetailsPanelSold.tsx:37 |
1017 | - __( 'view approved registrations for this ticket.', 'event_espresso' ), |
|
1017 | + __('view approved registrations for this ticket.', 'event_espresso'), |
|
1018 | 1018 | |
1019 | 1019 | // Reference: packages/components/src/EntityList/EntityList.tsx:37 |
1020 | - __( 'no results found', 'event_espresso' ), |
|
1020 | + __('no results found', 'event_espresso'), |
|
1021 | 1021 | |
1022 | 1022 | // Reference: packages/components/src/EntityList/EntityList.tsx:38 |
1023 | - __( 'try changing filter settings', 'event_espresso' ), |
|
1023 | + __('try changing filter settings', 'event_espresso'), |
|
1024 | 1024 | |
1025 | 1025 | // Reference: packages/components/src/EntityList/filterBar/buttons/CardViewFilterButton.tsx:22 |
1026 | - __( 'card view', 'event_espresso' ), |
|
1026 | + __('card view', 'event_espresso'), |
|
1027 | 1027 | |
1028 | 1028 | // Reference: packages/components/src/EntityList/filterBar/buttons/TableViewFilterButton.tsx:22 |
1029 | - __( 'table view', 'event_espresso' ), |
|
1029 | + __('table view', 'event_espresso'), |
|
1030 | 1030 | |
1031 | 1031 | // Reference: packages/components/src/EntityList/filterBar/buttons/ToggleFiltersButton.tsx:11 |
1032 | - __( 'hide filters', 'event_espresso' ), |
|
1032 | + __('hide filters', 'event_espresso'), |
|
1033 | 1033 | |
1034 | 1034 | // Reference: packages/components/src/EntityList/filterBar/buttons/ToggleFiltersButton.tsx:11 |
1035 | - __( 'show filters', 'event_espresso' ), |
|
1035 | + __('show filters', 'event_espresso'), |
|
1036 | 1036 | |
1037 | 1037 | // Reference: packages/components/src/EntityList/filterBar/buttons/ToggleSortingButton.tsx:28 |
1038 | - __( 'disable sorting', 'event_espresso' ), |
|
1038 | + __('disable sorting', 'event_espresso'), |
|
1039 | 1039 | |
1040 | 1040 | // Reference: packages/components/src/EntityList/filterBar/buttons/ToggleSortingButton.tsx:28 |
1041 | - __( 'enable sorting', 'event_espresso' ), |
|
1041 | + __('enable sorting', 'event_espresso'), |
|
1042 | 1042 | |
1043 | 1043 | // Reference: packages/components/src/Legend/ToggleLegendButton.tsx:27 |
1044 | - __( 'hide legend', 'event_espresso' ), |
|
1044 | + __('hide legend', 'event_espresso'), |
|
1045 | 1045 | |
1046 | 1046 | // Reference: packages/components/src/Legend/ToggleLegendButton.tsx:27 |
1047 | - __( 'show legend', 'event_espresso' ), |
|
1047 | + __('show legend', 'event_espresso'), |
|
1048 | 1048 | |
1049 | 1049 | // Reference: packages/components/src/LoadingIndicator/LoadingIndicator.tsx:7 |
1050 | - __( 'loading …', 'event_espresso' ), |
|
1050 | + __('loading …', 'event_espresso'), |
|
1051 | 1051 | |
1052 | 1052 | // Reference: packages/components/src/LoadingNotice/LoadingNotice.tsx:16 |
1053 | - __( 'loading…', 'event_espresso' ), |
|
1053 | + __('loading…', 'event_espresso'), |
|
1054 | 1054 | |
1055 | 1055 | // Reference: packages/components/src/Modal/modalCloseButtonProps/index.ts:8 |
1056 | - __( 'close modal', 'event_espresso' ), |
|
1056 | + __('close modal', 'event_espresso'), |
|
1057 | 1057 | |
1058 | 1058 | // Reference: packages/components/src/PercentSign/index.tsx:11 |
1059 | - __( '%', 'event_espresso' ), |
|
1059 | + __('%', 'event_espresso'), |
|
1060 | 1060 | |
1061 | 1061 | // Reference: packages/components/src/Stepper/buttons/Next.tsx:12 |
1062 | - __( 'Next', 'event_espresso' ), |
|
1062 | + __('Next', 'event_espresso'), |
|
1063 | 1063 | |
1064 | 1064 | // Reference: packages/components/src/Stepper/buttons/Previous.tsx:12 |
1065 | - __( 'Previous', 'event_espresso' ), |
|
1065 | + __('Previous', 'event_espresso'), |
|
1066 | 1066 | |
1067 | 1067 | // Reference: packages/components/src/Steps/Steps.tsx:30 |
1068 | - __( 'Steps', 'event_espresso' ), |
|
1068 | + __('Steps', 'event_espresso'), |
|
1069 | 1069 | |
1070 | 1070 | // Reference: packages/components/src/TabbableText/index.tsx:19 |
1071 | - __( 'Click to edit…', 'event_espresso' ), |
|
1071 | + __('Click to edit…', 'event_espresso'), |
|
1072 | 1072 | |
1073 | 1073 | // Reference: packages/components/src/TimezoneTimeInfo/Content.tsx:16 |
1074 | - __( 'Your Local Time Zone', 'event_espresso' ), |
|
1074 | + __('Your Local Time Zone', 'event_espresso'), |
|
1075 | 1075 | |
1076 | 1076 | // Reference: packages/components/src/TimezoneTimeInfo/Content.tsx:21 |
1077 | - __( 'The Website\'s Time Zone', 'event_espresso' ), |
|
1077 | + __('The Website\'s Time Zone', 'event_espresso'), |
|
1078 | 1078 | |
1079 | 1079 | // Reference: packages/components/src/TimezoneTimeInfo/Content.tsx:26 |
1080 | - __( 'UTC (Greenwich Mean Time)', 'event_espresso' ), |
|
1080 | + __('UTC (Greenwich Mean Time)', 'event_espresso'), |
|
1081 | 1081 | |
1082 | 1082 | // Reference: packages/components/src/TimezoneTimeInfo/TimezoneTimeInfo.tsx:23 |
1083 | - __( 'This Date Converted To:', 'event_espresso' ), |
|
1083 | + __('This Date Converted To:', 'event_espresso'), |
|
1084 | 1084 | |
1085 | 1085 | // Reference: packages/components/src/TimezoneTimeInfo/TimezoneTimeInfo.tsx:24 |
1086 | - __( 'click for timezone information', 'event_espresso' ), |
|
1086 | + __('click for timezone information', 'event_espresso'), |
|
1087 | 1087 | |
1088 | 1088 | // Reference: packages/components/src/bulkEdit/ActionCheckbox.tsx:38 |
1089 | 1089 | /* translators: %d entity id */ |
1090 | - __( 'select entity with id %d', 'event_espresso' ), |
|
1090 | + __('select entity with id %d', 'event_espresso'), |
|
1091 | 1091 | |
1092 | 1092 | // Reference: packages/components/src/bulkEdit/ActionCheckbox.tsx:41 |
1093 | - __( 'select all entities', 'event_espresso' ), |
|
1093 | + __('select all entities', 'event_espresso'), |
|
1094 | 1094 | |
1095 | 1095 | // Reference: packages/components/src/bulkEdit/BulkActions.tsx:52 |
1096 | - __( 'select all', 'event_espresso' ), |
|
1096 | + __('select all', 'event_espresso'), |
|
1097 | 1097 | |
1098 | 1098 | // Reference: packages/components/src/bulkEdit/BulkActions.tsx:54 |
1099 | - __( 'apply', 'event_espresso' ), |
|
1099 | + __('apply', 'event_espresso'), |
|
1100 | 1100 | |
1101 | 1101 | // Reference: packages/components/src/bulkEdit/details/BulkEditDetailsProps.tsx:20 |
1102 | - __( 'Note: ', 'event_espresso' ), |
|
1102 | + __('Note: ', 'event_espresso'), |
|
1103 | 1103 | |
1104 | 1104 | // Reference: packages/components/src/bulkEdit/details/BulkEditDetailsProps.tsx:20 |
1105 | - __( 'any changes will be applied to ALL of the selected entities.', 'event_espresso' ), |
|
1105 | + __('any changes will be applied to ALL of the selected entities.', 'event_espresso'), |
|
1106 | 1106 | |
1107 | 1107 | // Reference: packages/components/src/bulkEdit/details/BulkEditDetailsProps.tsx:26 |
1108 | - __( 'Bulk edit details', 'event_espresso' ), |
|
1108 | + __('Bulk edit details', 'event_espresso'), |
|
1109 | 1109 | |
1110 | 1110 | // Reference: packages/components/src/bulkEdit/details/Submit.tsx:28 |
1111 | - __( 'Are you sure you want to bulk update the details?', 'event_espresso' ), |
|
1111 | + __('Are you sure you want to bulk update the details?', 'event_espresso'), |
|
1112 | 1112 | |
1113 | 1113 | // Reference: packages/components/src/bulkEdit/details/Submit.tsx:29 |
1114 | - __( 'Bulk update details', 'event_espresso' ), |
|
1114 | + __('Bulk update details', 'event_espresso'), |
|
1115 | 1115 | |
1116 | 1116 | // Reference: packages/dates/src/DateRangePicker/DateRangePickerLegend.tsx:14 |
1117 | - __( 'day in range', 'event_espresso' ), |
|
1117 | + __('day in range', 'event_espresso'), |
|
1118 | 1118 | |
1119 | 1119 | // Reference: packages/dates/src/DateRangePicker/DateRangePickerLegend.tsx:18 |
1120 | 1120 | // Reference: packages/dates/src/DateRangePicker/index.tsx:59 |
1121 | - __( 'end date', 'event_espresso' ), |
|
1121 | + __('end date', 'event_espresso'), |
|
1122 | 1122 | |
1123 | 1123 | // Reference: packages/dates/src/DateTimePicker.tsx:13 |
1124 | 1124 | // Reference: packages/dates/src/TimePicker.tsx:14 |
1125 | - __( 'time', 'event_espresso' ), |
|
1125 | + __('time', 'event_espresso'), |
|
1126 | 1126 | |
1127 | 1127 | // Reference: packages/dates/src/constants.ts:7 |
1128 | - __( 'End Date & Time must be set later than the Start Date & Time', 'event_espresso' ), |
|
1128 | + __('End Date & Time must be set later than the Start Date & Time', 'event_espresso'), |
|
1129 | 1129 | |
1130 | 1130 | // Reference: packages/dates/src/constants.ts:9 |
1131 | - __( 'Start Date & Time must be set before the End Date & Time', 'event_espresso' ), |
|
1131 | + __('Start Date & Time must be set before the End Date & Time', 'event_espresso'), |
|
1132 | 1132 | |
1133 | 1133 | // Reference: packages/dates/src/utils/misc.ts:13 |
1134 | - __( 'month(s)', 'event_espresso' ), |
|
1134 | + __('month(s)', 'event_espresso'), |
|
1135 | 1135 | |
1136 | 1136 | // Reference: packages/dates/src/utils/misc.ts:14 |
1137 | - __( 'week(s)', 'event_espresso' ), |
|
1137 | + __('week(s)', 'event_espresso'), |
|
1138 | 1138 | |
1139 | 1139 | // Reference: packages/dates/src/utils/misc.ts:15 |
1140 | - __( 'day(s)', 'event_espresso' ), |
|
1140 | + __('day(s)', 'event_espresso'), |
|
1141 | 1141 | |
1142 | 1142 | // Reference: packages/dates/src/utils/misc.ts:16 |
1143 | - __( 'hour(s)', 'event_espresso' ), |
|
1143 | + __('hour(s)', 'event_espresso'), |
|
1144 | 1144 | |
1145 | 1145 | // Reference: packages/dates/src/utils/misc.ts:17 |
1146 | - __( 'minute(s)', 'event_espresso' ), |
|
1146 | + __('minute(s)', 'event_espresso'), |
|
1147 | 1147 | |
1148 | 1148 | // Reference: packages/edtr-services/src/apollo/initialization/useCacheRehydration.ts:104 |
1149 | - __( 'price types initialized', 'event_espresso' ), |
|
1149 | + __('price types initialized', 'event_espresso'), |
|
1150 | 1150 | |
1151 | 1151 | // Reference: packages/edtr-services/src/apollo/initialization/useCacheRehydration.ts:114 |
1152 | - __( 'datetimes initialized', 'event_espresso' ), |
|
1152 | + __('datetimes initialized', 'event_espresso'), |
|
1153 | 1153 | |
1154 | 1154 | // Reference: packages/edtr-services/src/apollo/initialization/useCacheRehydration.ts:124 |
1155 | - __( 'tickets initialized', 'event_espresso' ), |
|
1155 | + __('tickets initialized', 'event_espresso'), |
|
1156 | 1156 | |
1157 | 1157 | // Reference: packages/edtr-services/src/apollo/initialization/useCacheRehydration.ts:134 |
1158 | - __( 'prices initialized', 'event_espresso' ), |
|
1158 | + __('prices initialized', 'event_espresso'), |
|
1159 | 1159 | |
1160 | 1160 | // Reference: packages/edtr-services/src/utils/dateAndTime.ts:12 |
1161 | - __( 'Start Date is required', 'event_espresso' ), |
|
1161 | + __('Start Date is required', 'event_espresso'), |
|
1162 | 1162 | |
1163 | 1163 | // Reference: packages/edtr-services/src/utils/dateAndTime.ts:16 |
1164 | - __( 'End Date is required', 'event_espresso' ), |
|
1164 | + __('End Date is required', 'event_espresso'), |
|
1165 | 1165 | |
1166 | 1166 | // Reference: packages/edtr-services/src/utils/dateAndTime.ts:7 |
1167 | - __( 'Required', 'event_espresso' ), |
|
1167 | + __('Required', 'event_espresso'), |
|
1168 | 1168 | |
1169 | 1169 | // Reference: packages/form/src/renderers/RepeatableRenderer.tsx:35 |
1170 | 1170 | /* translators: %d the entry number */ |
1171 | - __( 'Entry %d', 'event_espresso' ), |
|
1171 | + __('Entry %d', 'event_espresso'), |
|
1172 | 1172 | |
1173 | 1173 | // Reference: packages/form/src/renderers/RepeatableRenderer.tsx:51 |
1174 | - __( 'Add', 'event_espresso' ), |
|
1174 | + __('Add', 'event_espresso'), |
|
1175 | 1175 | |
1176 | 1176 | // Reference: packages/helpers/src/datetimes/getStatusTextLabel.ts:11 |
1177 | 1177 | // Reference: packages/helpers/src/tickets/getStatusTextLabel.ts:17 |
1178 | - __( 'sold out', 'event_espresso' ), |
|
1178 | + __('sold out', 'event_espresso'), |
|
1179 | 1179 | |
1180 | 1180 | // Reference: packages/helpers/src/datetimes/getStatusTextLabel.ts:14 |
1181 | 1181 | // Reference: packages/helpers/src/tickets/getStatusTextLabel.ts:14 |
1182 | - __( 'expired', 'event_espresso' ), |
|
1182 | + __('expired', 'event_espresso'), |
|
1183 | 1183 | |
1184 | 1184 | // Reference: packages/helpers/src/datetimes/getStatusTextLabel.ts:17 |
1185 | - __( 'upcoming', 'event_espresso' ), |
|
1185 | + __('upcoming', 'event_espresso'), |
|
1186 | 1186 | |
1187 | 1187 | // Reference: packages/helpers/src/datetimes/getStatusTextLabel.ts:20 |
1188 | - __( 'active', 'event_espresso' ), |
|
1188 | + __('active', 'event_espresso'), |
|
1189 | 1189 | |
1190 | 1190 | // Reference: packages/helpers/src/datetimes/getStatusTextLabel.ts:23 |
1191 | 1191 | // Reference: packages/helpers/src/tickets/getStatusTextLabel.ts:11 |
1192 | - __( 'trashed', 'event_espresso' ), |
|
1192 | + __('trashed', 'event_espresso'), |
|
1193 | 1193 | |
1194 | 1194 | // Reference: packages/helpers/src/datetimes/getStatusTextLabel.ts:26 |
1195 | - __( 'cancelled', 'event_espresso' ), |
|
1195 | + __('cancelled', 'event_espresso'), |
|
1196 | 1196 | |
1197 | 1197 | // Reference: packages/helpers/src/datetimes/getStatusTextLabel.ts:29 |
1198 | - __( 'postponed', 'event_espresso' ), |
|
1198 | + __('postponed', 'event_espresso'), |
|
1199 | 1199 | |
1200 | 1200 | // Reference: packages/helpers/src/datetimes/getStatusTextLabel.ts:33 |
1201 | - __( 'inactive', 'event_espresso' ), |
|
1201 | + __('inactive', 'event_espresso'), |
|
1202 | 1202 | |
1203 | 1203 | // Reference: packages/helpers/src/tickets/getStatusTextLabel.ts:20 |
1204 | - __( 'pending', 'event_espresso' ), |
|
1204 | + __('pending', 'event_espresso'), |
|
1205 | 1205 | |
1206 | 1206 | // Reference: packages/helpers/src/tickets/getStatusTextLabel.ts:23 |
1207 | - __( 'on sale', 'event_espresso' ), |
|
1207 | + __('on sale', 'event_espresso'), |
|
1208 | 1208 | |
1209 | 1209 | // Reference: packages/predicates/src/registration/statusOptions.ts:14 |
1210 | - __( 'Declined', 'event_espresso' ), |
|
1210 | + __('Declined', 'event_espresso'), |
|
1211 | 1211 | |
1212 | 1212 | // Reference: packages/predicates/src/registration/statusOptions.ts:18 |
1213 | - __( 'Incomplete', 'event_espresso' ), |
|
1213 | + __('Incomplete', 'event_espresso'), |
|
1214 | 1214 | |
1215 | 1215 | // Reference: packages/predicates/src/registration/statusOptions.ts:22 |
1216 | - __( 'Not Approved', 'event_espresso' ), |
|
1216 | + __('Not Approved', 'event_espresso'), |
|
1217 | 1217 | |
1218 | 1218 | // Reference: packages/predicates/src/registration/statusOptions.ts:26 |
1219 | - __( 'Pending Payment', 'event_espresso' ), |
|
1219 | + __('Pending Payment', 'event_espresso'), |
|
1220 | 1220 | |
1221 | 1221 | // Reference: packages/predicates/src/registration/statusOptions.ts:30 |
1222 | - __( 'Wait List', 'event_espresso' ), |
|
1222 | + __('Wait List', 'event_espresso'), |
|
1223 | 1223 | |
1224 | 1224 | // Reference: packages/predicates/src/registration/statusOptions.ts:6 |
1225 | - __( 'Approved', 'event_espresso' ), |
|
1225 | + __('Approved', 'event_espresso'), |
|
1226 | 1226 | |
1227 | 1227 | // Reference: packages/rich-text-editor/src/components/ToolbarControls/HeadingControls.tsx:23 |
1228 | - __( 'heading selector', 'event_espresso' ), |
|
1228 | + __('heading selector', 'event_espresso'), |
|
1229 | 1229 | |
1230 | 1230 | // Reference: packages/rich-text-editor/src/components/constants.ts:12 |
1231 | - __( 'blockquote', 'event_espresso' ), |
|
1231 | + __('blockquote', 'event_espresso'), |
|
1232 | 1232 | |
1233 | 1233 | // Reference: packages/rich-text-editor/src/components/constants.ts:13 |
1234 | - __( 'unordered list', 'event_espresso' ), |
|
1234 | + __('unordered list', 'event_espresso'), |
|
1235 | 1235 | |
1236 | 1236 | // Reference: packages/rich-text-editor/src/components/constants.ts:14 |
1237 | - __( 'ordered list', 'event_espresso' ), |
|
1237 | + __('ordered list', 'event_espresso'), |
|
1238 | 1238 | |
1239 | 1239 | // Reference: packages/rich-text-editor/src/components/constants.ts:27 |
1240 | - __( 'bold', 'event_espresso' ), |
|
1240 | + __('bold', 'event_espresso'), |
|
1241 | 1241 | |
1242 | 1242 | // Reference: packages/rich-text-editor/src/components/constants.ts:28 |
1243 | - __( 'italic', 'event_espresso' ), |
|
1243 | + __('italic', 'event_espresso'), |
|
1244 | 1244 | |
1245 | 1245 | // Reference: packages/rich-text-editor/src/components/constants.ts:29 |
1246 | - __( 'underline', 'event_espresso' ), |
|
1246 | + __('underline', 'event_espresso'), |
|
1247 | 1247 | |
1248 | 1248 | // Reference: packages/tpc/src/buttons/AddPriceModifierButton.tsx:15 |
1249 | - __( 'add new price modifier after this row', 'event_espresso' ), |
|
1249 | + __('add new price modifier after this row', 'event_espresso'), |
|
1250 | 1250 | |
1251 | 1251 | // Reference: packages/tpc/src/buttons/DeleteAllPricesButton.tsx:13 |
1252 | - __( 'Delete all prices', 'event_espresso' ), |
|
1252 | + __('Delete all prices', 'event_espresso'), |
|
1253 | 1253 | |
1254 | 1254 | // Reference: packages/tpc/src/buttons/DeleteAllPricesButton.tsx:26 |
1255 | - __( 'Are you sure you want to delete all of this ticket\'s prices and make it free? This action is permanent and can not be undone.', 'event_espresso' ), |
|
1255 | + __('Are you sure you want to delete all of this ticket\'s prices and make it free? This action is permanent and can not be undone.', 'event_espresso'), |
|
1256 | 1256 | |
1257 | 1257 | // Reference: packages/tpc/src/buttons/DeleteAllPricesButton.tsx:30 |
1258 | - __( 'Delete all prices?', 'event_espresso' ), |
|
1258 | + __('Delete all prices?', 'event_espresso'), |
|
1259 | 1259 | |
1260 | 1260 | // Reference: packages/tpc/src/buttons/DeletePriceModifierButton.tsx:12 |
1261 | - __( 'delete price modifier', 'event_espresso' ), |
|
1261 | + __('delete price modifier', 'event_espresso'), |
|
1262 | 1262 | |
1263 | 1263 | // Reference: packages/tpc/src/buttons/ReverseCalculateButton.tsx:15 |
1264 | - __( 'Ticket base price is being reverse calculated from bottom to top starting with the ticket total. Entering a new ticket total will reverse calculate the ticket base price after applying all price modifiers in reverse. Click to turn off reverse calculations', 'event_espresso' ), |
|
1264 | + __('Ticket base price is being reverse calculated from bottom to top starting with the ticket total. Entering a new ticket total will reverse calculate the ticket base price after applying all price modifiers in reverse. Click to turn off reverse calculations', 'event_espresso'), |
|
1265 | 1265 | |
1266 | 1266 | // Reference: packages/tpc/src/buttons/ReverseCalculateButton.tsx:18 |
1267 | - __( 'Ticket total is being calculated normally from top to bottom starting from the base price. Entering a new ticket base price will recalculate the ticket total after applying all price modifiers. Click to turn on reverse calculations', 'event_espresso' ), |
|
1267 | + __('Ticket total is being calculated normally from top to bottom starting from the base price. Entering a new ticket base price will recalculate the ticket total after applying all price modifiers. Click to turn on reverse calculations', 'event_espresso'), |
|
1268 | 1268 | |
1269 | 1269 | // Reference: packages/tpc/src/buttons/TicketPriceCalculatorButton.tsx:29 |
1270 | - __( 'ticket price calculator', 'event_espresso' ), |
|
1270 | + __('ticket price calculator', 'event_espresso'), |
|
1271 | 1271 | |
1272 | 1272 | // Reference: packages/tpc/src/buttons/taxes/AddDefaultTaxesButton.tsx:10 |
1273 | - __( 'Add default taxes', 'event_espresso' ), |
|
1273 | + __('Add default taxes', 'event_espresso'), |
|
1274 | 1274 | |
1275 | 1275 | // Reference: packages/tpc/src/buttons/taxes/RemoveTaxesButton.tsx:11 |
1276 | - __( 'Are you sure you want to remove all of this ticket\'s taxes?', 'event_espresso' ), |
|
1276 | + __('Are you sure you want to remove all of this ticket\'s taxes?', 'event_espresso'), |
|
1277 | 1277 | |
1278 | 1278 | // Reference: packages/tpc/src/buttons/taxes/RemoveTaxesButton.tsx:15 |
1279 | - __( 'Remove all taxes?', 'event_espresso' ), |
|
1279 | + __('Remove all taxes?', 'event_espresso'), |
|
1280 | 1280 | |
1281 | 1281 | // Reference: packages/tpc/src/buttons/taxes/RemoveTaxesButton.tsx:8 |
1282 | - __( 'Remove taxes', 'event_espresso' ), |
|
1282 | + __('Remove taxes', 'event_espresso'), |
|
1283 | 1283 | |
1284 | 1284 | // Reference: packages/tpc/src/components/DefaultPricesInfo.tsx:28 |
1285 | - __( 'Modify default prices.', 'event_espresso' ), |
|
1285 | + __('Modify default prices.', 'event_espresso'), |
|
1286 | 1286 | |
1287 | 1287 | // Reference: packages/tpc/src/components/DefaultTaxesInfo.tsx:28 |
1288 | - __( 'New default taxes are available. Click the - Add default taxes - button to add them now.', 'event_espresso' ), |
|
1288 | + __('New default taxes are available. Click the - Add default taxes - button to add them now.', 'event_espresso'), |
|
1289 | 1289 | |
1290 | 1290 | // Reference: packages/tpc/src/components/NoPricesBanner/AddDefaultPricesButton.tsx:10 |
1291 | - __( 'Add default prices', 'event_espresso' ), |
|
1291 | + __('Add default prices', 'event_espresso'), |
|
1292 | 1292 | |
1293 | 1293 | // Reference: packages/tpc/src/components/NoPricesBanner/index.tsx:14 |
1294 | - __( 'This Ticket is Currently Free', 'event_espresso' ), |
|
1294 | + __('This Ticket is Currently Free', 'event_espresso'), |
|
1295 | 1295 | |
1296 | 1296 | // Reference: packages/tpc/src/components/NoPricesBanner/index.tsx:22 |
1297 | 1297 | /* translators: %s default prices */ |
1298 | - __( 'Click the button below to load your %s into the calculator.', 'event_espresso' ), |
|
1298 | + __('Click the button below to load your %s into the calculator.', 'event_espresso'), |
|
1299 | 1299 | |
1300 | 1300 | // Reference: packages/tpc/src/components/NoPricesBanner/index.tsx:23 |
1301 | - __( 'default prices', 'event_espresso' ), |
|
1301 | + __('default prices', 'event_espresso'), |
|
1302 | 1302 | |
1303 | 1303 | // Reference: packages/tpc/src/components/NoPricesBanner/index.tsx:30 |
1304 | - __( 'Additional ticket price modifiers can be added or removed.', 'event_espresso' ), |
|
1304 | + __('Additional ticket price modifiers can be added or removed.', 'event_espresso'), |
|
1305 | 1305 | |
1306 | 1306 | // Reference: packages/tpc/src/components/NoPricesBanner/index.tsx:33 |
1307 | - __( 'Click the save button below to assign which dates this ticket will be available for purchase on.', 'event_espresso' ), |
|
1307 | + __('Click the save button below to assign which dates this ticket will be available for purchase on.', 'event_espresso'), |
|
1308 | 1308 | |
1309 | 1309 | // Reference: packages/tpc/src/components/TicketPriceCalculatorModal.tsx:32 |
1310 | 1310 | /* translators: %s ticket name */ |
1311 | - __( 'Price Calculator for Ticket: %s', 'event_espresso' ), |
|
1311 | + __('Price Calculator for Ticket: %s', 'event_espresso'), |
|
1312 | 1312 | |
1313 | 1313 | // Reference: packages/tpc/src/components/table/Table.tsx:43 |
1314 | - __( 'Ticket Price Calculator', 'event_espresso' ), |
|
1314 | + __('Ticket Price Calculator', 'event_espresso'), |
|
1315 | 1315 | |
1316 | 1316 | // Reference: packages/tpc/src/components/table/useFooterRowGenerator.tsx:41 |
1317 | - __( 'Total', 'event_espresso' ), |
|
1317 | + __('Total', 'event_espresso'), |
|
1318 | 1318 | |
1319 | 1319 | // Reference: packages/tpc/src/components/table/useFooterRowGenerator.tsx:50 |
1320 | - __( 'ticket total', 'event_espresso' ), |
|
1320 | + __('ticket total', 'event_espresso'), |
|
1321 | 1321 | |
1322 | 1322 | // Reference: packages/tpc/src/components/table/useHeaderRowGenerator.ts:29 |
1323 | - __( 'Price Type', 'event_espresso' ), |
|
1323 | + __('Price Type', 'event_espresso'), |
|
1324 | 1324 | |
1325 | 1325 | // Reference: packages/tpc/src/components/table/useHeaderRowGenerator.ts:35 |
1326 | - __( 'Label', 'event_espresso' ), |
|
1326 | + __('Label', 'event_espresso'), |
|
1327 | 1327 | |
1328 | 1328 | // Reference: packages/tpc/src/components/table/useHeaderRowGenerator.ts:47 |
1329 | - __( 'Amount', 'event_espresso' ), |
|
1329 | + __('Amount', 'event_espresso'), |
|
1330 | 1330 | |
1331 | 1331 | // Reference: packages/tpc/src/inputs/PriceAmountInput.tsx:34 |
1332 | - __( 'amount', 'event_espresso' ), |
|
1332 | + __('amount', 'event_espresso'), |
|
1333 | 1333 | |
1334 | 1334 | // Reference: packages/tpc/src/inputs/PriceAmountInput.tsx:45 |
1335 | - __( 'amount…', 'event_espresso' ), |
|
1335 | + __('amount…', 'event_espresso'), |
|
1336 | 1336 | |
1337 | 1337 | // Reference: packages/tpc/src/inputs/PriceDescriptionInput.tsx:10 |
1338 | - __( 'price description', 'event_espresso' ), |
|
1338 | + __('price description', 'event_espresso'), |
|
1339 | 1339 | |
1340 | 1340 | // Reference: packages/tpc/src/inputs/PriceDescriptionInput.tsx:15 |
1341 | - __( 'description…', 'event_espresso' ), |
|
1341 | + __('description…', 'event_espresso'), |
|
1342 | 1342 | |
1343 | 1343 | // Reference: packages/tpc/src/inputs/PriceIdInput.tsx:9 |
1344 | - __( 'price id', 'event_espresso' ), |
|
1344 | + __('price id', 'event_espresso'), |
|
1345 | 1345 | |
1346 | 1346 | // Reference: packages/tpc/src/inputs/PriceNameInput.tsx:10 |
1347 | - __( 'price name', 'event_espresso' ), |
|
1347 | + __('price name', 'event_espresso'), |
|
1348 | 1348 | |
1349 | 1349 | // Reference: packages/tpc/src/inputs/PriceNameInput.tsx:15 |
1350 | - __( 'label…', 'event_espresso' ), |
|
1350 | + __('label…', 'event_espresso'), |
|
1351 | 1351 | |
1352 | 1352 | // Reference: packages/tpc/src/inputs/PriceTypeInput.tsx:16 |
1353 | - __( 'price type', 'event_espresso' ), |
|
1353 | + __('price type', 'event_espresso'), |
|
1354 | 1354 | |
1355 | 1355 | // Reference: packages/tpc/src/utils/constants.ts:13 |
1356 | - __( 'Ticket price modifications are blocked for Tickets that have already been sold to registrants, because doing so would negatively affect internal accounting for the event. If you still need to modify ticket prices, then create a copy of those tickets, edit the prices for the new tickets, and then archive the old tickets.', 'event_espresso' ) |
|
1356 | + __('Ticket price modifications are blocked for Tickets that have already been sold to registrants, because doing so would negatively affect internal accounting for the event. If you still need to modify ticket prices, then create a copy of those tickets, edit the prices for the new tickets, and then archive the old tickets.', 'event_espresso') |
|
1357 | 1357 | ); |
1358 | 1358 | /* THIS IS THE END OF THE GENERATED FILE */ |
@@ -12,1420 +12,1420 @@ |
||
12 | 12 | class Pricing_Admin_Page extends EE_Admin_Page |
13 | 13 | { |
14 | 14 | |
15 | - /** |
|
16 | - * constructor |
|
17 | - * |
|
18 | - * @Constructor |
|
19 | - * @access public |
|
20 | - * @param bool $routing |
|
21 | - * @return Pricing_Admin_Page |
|
22 | - */ |
|
23 | - public function __construct($routing = true) |
|
24 | - { |
|
25 | - parent::__construct($routing); |
|
26 | - } |
|
27 | - |
|
28 | - |
|
29 | - protected function _init_page_props() |
|
30 | - { |
|
31 | - $this->page_slug = PRICING_PG_SLUG; |
|
32 | - $this->page_label = PRICING_LABEL; |
|
33 | - $this->_admin_base_url = PRICING_ADMIN_URL; |
|
34 | - $this->_admin_base_path = PRICING_ADMIN; |
|
35 | - } |
|
36 | - |
|
37 | - |
|
38 | - protected function _ajax_hooks() |
|
39 | - { |
|
40 | - add_action('wp_ajax_espresso_update_prices_order', array($this, 'update_price_order')); |
|
41 | - } |
|
42 | - |
|
43 | - |
|
44 | - protected function _define_page_props() |
|
45 | - { |
|
46 | - $this->_admin_page_title = PRICING_LABEL; |
|
47 | - $this->_labels = array( |
|
48 | - 'buttons' => array( |
|
49 | - 'add' => __('Add New Default Price', 'event_espresso'), |
|
50 | - 'edit' => __('Edit Default Price', 'event_espresso'), |
|
51 | - 'delete' => __('Delete Default Price', 'event_espresso'), |
|
52 | - 'add_type' => __('Add New Default Price Type', 'event_espresso'), |
|
53 | - 'edit_type' => __('Edit Price Type', 'event_espresso'), |
|
54 | - 'delete_type' => __('Delete Price Type', 'event_espresso'), |
|
55 | - ), |
|
56 | - ); |
|
57 | - } |
|
58 | - |
|
59 | - |
|
60 | - /** |
|
61 | - * an array for storing request actions and their corresponding methods |
|
62 | - * |
|
63 | - * @access private |
|
64 | - * @return void |
|
65 | - */ |
|
66 | - protected function _set_page_routes() |
|
67 | - { |
|
68 | - $prc_id = ! empty($this->_req_data['PRC_ID']) && ! is_array($this->_req_data['PRC_ID']) |
|
69 | - ? $this->_req_data['PRC_ID'] : 0; |
|
70 | - $prt_id = ! empty($this->_req_data['PRT_ID']) && ! is_array($this->_req_data['PRT_ID']) |
|
71 | - ? $this->_req_data['PRT_ID'] : 0; |
|
72 | - $this->_page_routes = array( |
|
73 | - 'default' => array( |
|
74 | - 'func' => '_price_overview_list_table', |
|
75 | - 'capability' => 'ee_read_default_prices', |
|
76 | - ), |
|
77 | - 'add_new_price' => array( |
|
78 | - 'func' => '_edit_price_details', |
|
79 | - 'args' => array('new_price' => true), |
|
80 | - 'capability' => 'ee_edit_default_prices', |
|
81 | - ), |
|
82 | - 'edit_price' => array( |
|
83 | - 'func' => '_edit_price_details', |
|
84 | - 'args' => array('new_price' => false), |
|
85 | - 'capability' => 'ee_edit_default_price', |
|
86 | - 'obj_id' => $prc_id, |
|
87 | - ), |
|
88 | - 'insert_price' => array( |
|
89 | - 'func' => '_insert_or_update_price', |
|
90 | - 'args' => array('new_price' => true), |
|
91 | - 'noheader' => true, |
|
92 | - 'capability' => 'ee_edit_default_prices', |
|
93 | - ), |
|
94 | - 'update_price' => array( |
|
95 | - 'func' => '_insert_or_update_price', |
|
96 | - 'args' => array('new_price' => false), |
|
97 | - 'noheader' => true, |
|
98 | - 'capability' => 'ee_edit_default_price', |
|
99 | - 'obj_id' => $prc_id, |
|
100 | - ), |
|
101 | - 'trash_price' => array( |
|
102 | - 'func' => '_trash_or_restore_price', |
|
103 | - 'args' => array('trash' => true), |
|
104 | - 'noheader' => true, |
|
105 | - 'capability' => 'ee_delete_default_price', |
|
106 | - 'obj_id' => $prc_id, |
|
107 | - ), |
|
108 | - 'restore_price' => array( |
|
109 | - 'func' => '_trash_or_restore_price', |
|
110 | - 'args' => array('trash' => false), |
|
111 | - 'noheader' => true, |
|
112 | - 'capability' => 'ee_delete_default_price', |
|
113 | - 'obj_id' => $prc_id, |
|
114 | - ), |
|
115 | - 'delete_price' => array( |
|
116 | - 'func' => '_delete_price', |
|
117 | - 'noheader' => true, |
|
118 | - 'capability' => 'ee_delete_default_price', |
|
119 | - 'obj_id' => $prc_id, |
|
120 | - ), |
|
121 | - 'espresso_update_price_order' => array( |
|
122 | - 'func' => 'update_price_order', |
|
123 | - 'noheader' => true, |
|
124 | - 'capability' => 'ee_edit_default_prices', |
|
125 | - ), |
|
126 | - // price types |
|
127 | - 'price_types' => array( |
|
128 | - 'func' => '_price_types_overview_list_table', |
|
129 | - 'capability' => 'ee_read_default_price_types', |
|
130 | - ), |
|
131 | - 'add_new_price_type' => array( |
|
132 | - 'func' => '_edit_price_type_details', |
|
133 | - 'capability' => 'ee_edit_default_price_types', |
|
134 | - ), |
|
135 | - 'edit_price_type' => array( |
|
136 | - 'func' => '_edit_price_type_details', |
|
137 | - 'capability' => 'ee_edit_default_price_type', |
|
138 | - 'obj_id' => $prt_id, |
|
139 | - ), |
|
140 | - 'insert_price_type' => array( |
|
141 | - 'func' => '_insert_or_update_price_type', |
|
142 | - 'args' => array('new_price_type' => true), |
|
143 | - 'noheader' => true, |
|
144 | - 'capability' => 'ee_edit_default_price_types', |
|
145 | - ), |
|
146 | - 'update_price_type' => array( |
|
147 | - 'func' => '_insert_or_update_price_type', |
|
148 | - 'args' => array('new_price_type' => false), |
|
149 | - 'noheader' => true, |
|
150 | - 'capability' => 'ee_edit_default_price_type', |
|
151 | - 'obj_id' => $prt_id, |
|
152 | - ), |
|
153 | - 'trash_price_type' => array( |
|
154 | - 'func' => '_trash_or_restore_price_type', |
|
155 | - 'args' => array('trash' => true), |
|
156 | - 'noheader' => true, |
|
157 | - 'capability' => 'ee_delete_default_price_type', |
|
158 | - 'obj_id' => $prt_id, |
|
159 | - ), |
|
160 | - 'restore_price_type' => array( |
|
161 | - 'func' => '_trash_or_restore_price_type', |
|
162 | - 'args' => array('trash' => false), |
|
163 | - 'noheader' => true, |
|
164 | - 'capability' => 'ee_delete_default_price_type', |
|
165 | - 'obj_id' => $prt_id, |
|
166 | - ), |
|
167 | - 'delete_price_type' => array( |
|
168 | - 'func' => '_delete_price_type', |
|
169 | - 'noheader' => true, |
|
170 | - 'capability' => 'ee_delete_default_price_type', |
|
171 | - 'obj_id' => $prt_id, |
|
172 | - ), |
|
173 | - 'tax_settings' => array( |
|
174 | - 'func' => '_tax_settings', |
|
175 | - 'capability' => 'manage_options', |
|
176 | - ), |
|
177 | - 'update_tax_settings' => array( |
|
178 | - 'func' => '_update_tax_settings', |
|
179 | - 'capability' => 'manage_options', |
|
180 | - 'noheader' => true, |
|
181 | - ), |
|
182 | - ); |
|
183 | - } |
|
184 | - |
|
185 | - |
|
186 | - protected function _set_page_config() |
|
187 | - { |
|
188 | - |
|
189 | - $this->_page_config = array( |
|
190 | - 'default' => array( |
|
191 | - 'nav' => array( |
|
192 | - 'label' => __('Default Pricing', 'event_espresso'), |
|
193 | - 'order' => 10, |
|
194 | - ), |
|
195 | - 'list_table' => 'Prices_List_Table', |
|
196 | - 'help_tabs' => array( |
|
197 | - 'pricing_default_pricing_help_tab' => array( |
|
198 | - 'title' => __('Default Pricing', 'event_espresso'), |
|
199 | - 'filename' => 'pricing_default_pricing', |
|
200 | - ), |
|
201 | - 'pricing_default_pricing_table_column_headings_help_tab' => array( |
|
202 | - 'title' => __('Default Pricing Table Column Headings', 'event_espresso'), |
|
203 | - 'filename' => 'pricing_default_pricing_table_column_headings', |
|
204 | - ), |
|
205 | - 'pricing_default_pricing_views_bulk_actions_search_help_tab' => array( |
|
206 | - 'title' => __('Default Pricing Views & Bulk Actions & Search', 'event_espresso'), |
|
207 | - 'filename' => 'pricing_default_pricing_views_bulk_actions_search', |
|
208 | - ), |
|
209 | - ), |
|
210 | - 'help_tour' => array('Pricing_Default_Prices_Help_Tour'), |
|
211 | - 'require_nonce' => false, |
|
212 | - ), |
|
213 | - 'add_new_price' => array( |
|
214 | - 'nav' => array( |
|
215 | - 'label' => __('Add New Default Price', 'event_espresso'), |
|
216 | - 'order' => 20, |
|
217 | - 'persistent' => false, |
|
218 | - ), |
|
219 | - 'help_tabs' => array( |
|
220 | - 'add_new_default_price_help_tab' => array( |
|
221 | - 'title' => __('Add New Default Price', 'event_espresso'), |
|
222 | - 'filename' => 'pricing_add_new_default_price', |
|
223 | - ), |
|
224 | - ), |
|
225 | - 'help_tour' => array('Pricing_Add_New_Default_Price_Help_Tour'), |
|
226 | - 'metaboxes' => array('_publish_post_box', '_espresso_news_post_box', '_price_details_meta_boxes'), |
|
227 | - 'require_nonce' => false, |
|
228 | - ), |
|
229 | - 'edit_price' => array( |
|
230 | - 'nav' => array( |
|
231 | - 'label' => __('Edit Default Price', 'event_espresso'), |
|
232 | - 'order' => 20, |
|
233 | - 'url' => isset($this->_req_data['id']) ? add_query_arg( |
|
234 | - array('id' => $this->_req_data['id']), |
|
235 | - $this->_current_page_view_url |
|
236 | - ) : $this->_admin_base_url, |
|
237 | - 'persistent' => false, |
|
238 | - ), |
|
239 | - 'metaboxes' => array('_publish_post_box', '_espresso_news_post_box', '_price_details_meta_boxes'), |
|
240 | - 'help_tabs' => array( |
|
241 | - 'edit_default_price_help_tab' => array( |
|
242 | - 'title' => __('Edit Default Price', 'event_espresso'), |
|
243 | - 'filename' => 'pricing_edit_default_price', |
|
244 | - ), |
|
245 | - ), |
|
246 | - 'help_tour' => array('Pricing_Edit_Default_Price_Help_Tour'), |
|
247 | - 'require_nonce' => false, |
|
248 | - ), |
|
249 | - 'price_types' => array( |
|
250 | - 'nav' => array( |
|
251 | - 'label' => __('Price Types', 'event_espresso'), |
|
252 | - 'order' => 30, |
|
253 | - ), |
|
254 | - 'list_table' => 'Price_Types_List_Table', |
|
255 | - 'help_tabs' => array( |
|
256 | - 'pricing_price_types_help_tab' => array( |
|
257 | - 'title' => __('Price Types', 'event_espresso'), |
|
258 | - 'filename' => 'pricing_price_types', |
|
259 | - ), |
|
260 | - 'pricing_price_types_table_column_headings_help_tab' => array( |
|
261 | - 'title' => __('Price Types Table Column Headings', 'event_espresso'), |
|
262 | - 'filename' => 'pricing_price_types_table_column_headings', |
|
263 | - ), |
|
264 | - 'pricing_price_types_views_bulk_actions_search_help_tab' => array( |
|
265 | - 'title' => __('Price Types Views & Bulk Actions & Search', 'event_espresso'), |
|
266 | - 'filename' => 'pricing_price_types_views_bulk_actions_search', |
|
267 | - ), |
|
268 | - ), |
|
269 | - 'help_tour' => array('Pricing_Price_Types_Default_Help_Tour'), |
|
270 | - 'metaboxes' => array('_espresso_news_post_box', '_espresso_links_post_box'), |
|
271 | - 'require_nonce' => false, |
|
272 | - ), |
|
273 | - 'add_new_price_type' => array( |
|
274 | - 'nav' => array( |
|
275 | - 'label' => __('Add New Price Type', 'event_espresso'), |
|
276 | - 'order' => 40, |
|
277 | - 'persistent' => false, |
|
278 | - ), |
|
279 | - 'help_tabs' => array( |
|
280 | - 'add_new_price_type_help_tab' => array( |
|
281 | - 'title' => __('Add New Price Type', 'event_espresso'), |
|
282 | - 'filename' => 'pricing_add_new_price_type', |
|
283 | - ), |
|
284 | - ), |
|
285 | - 'help_tour' => array('Pricing_Add_New_Price_Type_Help_Tour'), |
|
286 | - 'metaboxes' => array( |
|
287 | - '_publish_post_box', |
|
288 | - '_espresso_news_post_box', |
|
289 | - '_price_type_details_meta_boxes', |
|
290 | - ), |
|
291 | - 'require_nonce' => false, |
|
292 | - ), |
|
293 | - 'edit_price_type' => array( |
|
294 | - 'nav' => array( |
|
295 | - 'label' => __('Edit Price Type', 'event_espresso'), |
|
296 | - 'order' => 40, |
|
297 | - 'persistent' => false, |
|
298 | - ), |
|
299 | - 'help_tabs' => array( |
|
300 | - 'edit_price_type_help_tab' => array( |
|
301 | - 'title' => __('Edit Price Type', 'event_espresso'), |
|
302 | - 'filename' => 'pricing_edit_price_type', |
|
303 | - ), |
|
304 | - ), |
|
305 | - 'help_tour' => array('Pricing_Edit_Price_Type_Help_Tour'), |
|
306 | - 'metaboxes' => array('_publish_post_box', '_espresso_news_post_box', '_price_type_details_meta_boxes'), |
|
307 | - |
|
308 | - 'require_nonce' => false, |
|
309 | - ), |
|
310 | - 'tax_settings' => array( |
|
311 | - 'nav' => array( |
|
312 | - 'label' => esc_html__('Tax Settings', 'event_espresso'), |
|
313 | - 'order' => 40, |
|
314 | - ), |
|
315 | - 'labels' => array( |
|
316 | - 'publishbox' => esc_html__('Update Tax Settings', 'event_espresso'), |
|
317 | - ), |
|
318 | - 'metaboxes' => array_merge($this->_default_espresso_metaboxes, array('_publish_post_box')), |
|
319 | - // 'help_tabs' => array( |
|
320 | - // 'registration_form_reg_form_settings_help_tab' => array( |
|
321 | - // 'title' => esc_html__('Registration Form Settings', 'event_espresso'), |
|
322 | - // 'filename' => 'registration_form_reg_form_settings' |
|
323 | - // ), |
|
324 | - // ), |
|
325 | - // 'help_tour' => array('Registration_Form_Settings_Help_Tour'), |
|
326 | - 'require_nonce' => true, |
|
327 | - ), |
|
328 | - ); |
|
329 | - } |
|
330 | - |
|
331 | - |
|
332 | - protected function _add_screen_options() |
|
333 | - { |
|
334 | - // todo |
|
335 | - } |
|
336 | - |
|
337 | - |
|
338 | - protected function _add_screen_options_default() |
|
339 | - { |
|
340 | - $this->_per_page_screen_option(); |
|
341 | - } |
|
342 | - |
|
343 | - |
|
344 | - protected function _add_screen_options_price_types() |
|
345 | - { |
|
346 | - $page_title = $this->_admin_page_title; |
|
347 | - $this->_admin_page_title = __('Price Types', 'event_espresso'); |
|
348 | - $this->_per_page_screen_option(); |
|
349 | - $this->_admin_page_title = $page_title; |
|
350 | - } |
|
351 | - |
|
352 | - |
|
353 | - protected function _add_feature_pointers() |
|
354 | - { |
|
355 | - } |
|
356 | - |
|
357 | - |
|
358 | - public function load_scripts_styles() |
|
359 | - { |
|
360 | - // styles |
|
361 | - wp_enqueue_style('espresso-ui-theme'); |
|
362 | - wp_register_style( |
|
363 | - 'espresso_PRICING', |
|
364 | - PRICING_ASSETS_URL . 'espresso_pricing_admin.css', |
|
365 | - array(), |
|
366 | - EVENT_ESPRESSO_VERSION |
|
367 | - ); |
|
368 | - wp_enqueue_style('espresso_PRICING'); |
|
369 | - |
|
370 | - // scripts |
|
371 | - wp_enqueue_script('ee_admin_js'); |
|
372 | - wp_enqueue_script('jquery-ui-position'); |
|
373 | - wp_enqueue_script('jquery-ui-widget'); |
|
374 | - // wp_enqueue_script('jquery-ui-dialog'); |
|
375 | - // wp_enqueue_script('jquery-ui-draggable'); |
|
376 | - // wp_enqueue_script('jquery-ui-datepicker'); |
|
377 | - wp_register_script( |
|
378 | - 'espresso_PRICING', |
|
379 | - PRICING_ASSETS_URL . 'espresso_pricing_admin.js', |
|
380 | - array('jquery'), |
|
381 | - EVENT_ESPRESSO_VERSION, |
|
382 | - true |
|
383 | - ); |
|
384 | - wp_enqueue_script('espresso_PRICING'); |
|
385 | - } |
|
386 | - |
|
387 | - |
|
388 | - public function load_scripts_styles_default() |
|
389 | - { |
|
390 | - wp_enqueue_script('espresso_ajax_table_sorting'); |
|
391 | - } |
|
392 | - |
|
393 | - |
|
394 | - public function admin_footer_scripts() |
|
395 | - { |
|
396 | - } |
|
397 | - |
|
398 | - public function admin_init() |
|
399 | - { |
|
400 | - } |
|
401 | - |
|
402 | - public function admin_notices() |
|
403 | - { |
|
404 | - } |
|
405 | - |
|
406 | - |
|
407 | - protected function _set_list_table_views_default() |
|
408 | - { |
|
409 | - $this->_views = array( |
|
410 | - 'all' => array( |
|
411 | - 'slug' => 'all', |
|
412 | - 'label' => __('View All Default Pricing', 'event_espresso'), |
|
413 | - 'count' => 0, |
|
414 | - 'bulk_action' => array( |
|
415 | - 'trash_price' => __('Move to Trash', 'event_espresso'), |
|
416 | - ), |
|
417 | - ), |
|
418 | - ); |
|
419 | - |
|
420 | - if (EE_Registry::instance()->CAP->current_user_can('ee_delete_default_prices', 'pricing_trash_price')) { |
|
421 | - $this->_views['trashed'] = array( |
|
422 | - 'slug' => 'trashed', |
|
423 | - 'label' => __('Trash', 'event_espresso'), |
|
424 | - 'count' => 0, |
|
425 | - 'bulk_action' => array( |
|
426 | - 'restore_price' => __('Restore from Trash', 'event_espresso'), |
|
427 | - 'delete_price' => __('Delete Permanently', 'event_espresso'), |
|
428 | - ), |
|
429 | - ); |
|
430 | - } |
|
431 | - } |
|
432 | - |
|
433 | - |
|
434 | - protected function _set_list_table_views_price_types() |
|
435 | - { |
|
436 | - $this->_views = array( |
|
437 | - 'all' => array( |
|
438 | - 'slug' => 'all', |
|
439 | - 'label' => __('All', 'event_espresso'), |
|
440 | - 'count' => 0, |
|
441 | - 'bulk_action' => array( |
|
442 | - 'trash_price_type' => __('Move to Trash', 'event_espresso'), |
|
443 | - ), |
|
444 | - ), |
|
445 | - ); |
|
446 | - |
|
447 | - if (EE_Registry::instance()->CAP->current_user_can( |
|
448 | - 'ee_delete_default_price_types', |
|
449 | - 'pricing_trash_price_type' |
|
450 | - )) { |
|
451 | - $this->_views['trashed'] = array( |
|
452 | - 'slug' => 'trashed', |
|
453 | - 'label' => __('Trash', 'event_espresso'), |
|
454 | - 'count' => 0, |
|
455 | - 'bulk_action' => array( |
|
456 | - 'restore_price_type' => __('Restore from Trash', 'event_espresso'), |
|
457 | - 'delete_price_type' => __('Delete Permanently', 'event_espresso'), |
|
458 | - ), |
|
459 | - ); |
|
460 | - } |
|
461 | - } |
|
462 | - |
|
463 | - |
|
464 | - /** |
|
465 | - * generates HTML for main Prices Admin page |
|
466 | - * |
|
467 | - * @access protected |
|
468 | - * @return void |
|
469 | - */ |
|
470 | - protected function _price_overview_list_table() |
|
471 | - { |
|
472 | - $this->_admin_page_title .= ' ' . $this->get_action_link_or_button( |
|
473 | - 'add_new_price', |
|
474 | - 'add', |
|
475 | - array(), |
|
476 | - 'add-new-h2' |
|
477 | - ); |
|
478 | - $this->admin_page_title .= $this->_learn_more_about_pricing_link(); |
|
479 | - $this->_search_btn_label = __('Default Prices', 'event_espresso'); |
|
480 | - $this->display_admin_list_table_page_with_no_sidebar(); |
|
481 | - } |
|
482 | - |
|
483 | - |
|
484 | - /** |
|
485 | - * retrieve data for Prices List table |
|
486 | - * |
|
487 | - * @access public |
|
488 | - * @param int $per_page how many prices displayed per page |
|
489 | - * @param boolean $count return the count or objects |
|
490 | - * @param boolean $trashed whether the current view is of the trash can - eww yuck! |
|
491 | - * @return mixed (int|array) int = count || array of price objects |
|
492 | - */ |
|
493 | - public function get_prices_overview_data($per_page = 10, $count = false, $trashed = false) |
|
494 | - { |
|
495 | - |
|
496 | - do_action('AHEE_log', __FILE__, __FUNCTION__, ''); |
|
497 | - // start with an empty array |
|
498 | - $event_pricing = array(); |
|
499 | - |
|
500 | - require_once(PRICING_ADMIN . 'Prices_List_Table.class.php'); |
|
501 | - require_once(EE_MODELS . 'EEM_Price.model.php'); |
|
502 | - // $PRC = EEM_Price::instance(); |
|
503 | - |
|
504 | - $this->_req_data['orderby'] = empty($this->_req_data['orderby']) ? '' : $this->_req_data['orderby']; |
|
505 | - $order = (isset($this->_req_data['order']) && ! empty($this->_req_data['order'])) ? $this->_req_data['order'] |
|
506 | - : 'ASC'; |
|
507 | - |
|
508 | - switch ($this->_req_data['orderby']) { |
|
509 | - case 'name': |
|
510 | - $orderby = array('PRC_name' => $order); |
|
511 | - break; |
|
512 | - case 'type': |
|
513 | - $orderby = array('Price_Type.PRT_name' => $order); |
|
514 | - break; |
|
515 | - case 'amount': |
|
516 | - $orderby = array('PRC_amount' => $order); |
|
517 | - break; |
|
518 | - default: |
|
519 | - $orderby = array('PRC_order' => $order, 'Price_Type.PRT_order' => $order, 'PRC_ID' => $order); |
|
520 | - } |
|
521 | - |
|
522 | - $current_page = isset($this->_req_data['paged']) && ! empty($this->_req_data['paged']) |
|
523 | - ? $this->_req_data['paged'] : 1; |
|
524 | - $per_page = isset($this->_req_data['perpage']) && ! empty($this->_req_data['perpage']) |
|
525 | - ? $this->_req_data['perpage'] : $per_page; |
|
526 | - |
|
527 | - $_where = array( |
|
528 | - 'PRC_is_default' => 1, |
|
529 | - 'PRC_deleted' => $trashed, |
|
530 | - ); |
|
531 | - |
|
532 | - $offset = ($current_page - 1) * $per_page; |
|
533 | - $limit = array($offset, $per_page); |
|
534 | - |
|
535 | - if (isset($this->_req_data['s'])) { |
|
536 | - $sstr = '%' . $this->_req_data['s'] . '%'; |
|
537 | - $_where['OR'] = array( |
|
538 | - 'PRC_name' => array('LIKE', $sstr), |
|
539 | - 'PRC_desc' => array('LIKE', $sstr), |
|
540 | - 'PRC_amount' => array('LIKE', $sstr), |
|
541 | - 'Price_Type.PRT_name' => array('LIKE', $sstr), |
|
542 | - ); |
|
543 | - } |
|
544 | - |
|
545 | - $query_params = array( |
|
546 | - $_where, |
|
547 | - 'order_by' => $orderby, |
|
548 | - 'limit' => $limit, |
|
549 | - 'group_by' => 'PRC_ID', |
|
550 | - ); |
|
551 | - |
|
552 | - if ($count) { |
|
553 | - return $trashed ? EEM_Price::instance()->count(array($_where)) |
|
554 | - : EEM_Price::instance()->count_deleted_and_undeleted(array($_where)); |
|
555 | - } else { |
|
556 | - return EEM_Price::instance()->get_all_deleted_and_undeleted($query_params); |
|
557 | - } |
|
558 | - } |
|
559 | - |
|
560 | - |
|
561 | - /** |
|
562 | - * _price_details |
|
563 | - * |
|
564 | - * @access protected |
|
565 | - * @return void |
|
566 | - */ |
|
567 | - protected function _edit_price_details() |
|
568 | - { |
|
569 | - do_action('AHEE_log', __FILE__, __FUNCTION__, ''); |
|
570 | - // grab price ID |
|
571 | - $PRC_ID = isset($this->_req_data['id']) && ! empty($this->_req_data['id']) ? absint($this->_req_data['id']) |
|
572 | - : false; |
|
573 | - // change page title based on request action |
|
574 | - switch ($this->_req_action) { |
|
575 | - case 'add_new_price': |
|
576 | - $this->_admin_page_title = esc_html__('Add New Price', 'event_espresso'); |
|
577 | - break; |
|
578 | - case 'edit_price': |
|
579 | - $this->_admin_page_title = esc_html__('Edit Price', 'event_espresso'); |
|
580 | - break; |
|
581 | - default: |
|
582 | - $this->_admin_page_title = ucwords(str_replace('_', ' ', $this->_req_action)); |
|
583 | - } |
|
584 | - // add PRC_ID to title if editing |
|
585 | - $this->_admin_page_title = $PRC_ID ? $this->_admin_page_title . ' # ' . $PRC_ID : $this->_admin_page_title; |
|
586 | - |
|
587 | - // get prices |
|
588 | - require_once(EE_MODELS . 'EEM_Price.model.php'); |
|
589 | - $PRC = EEM_Price::instance(); |
|
590 | - |
|
591 | - if ($PRC_ID) { |
|
592 | - $price = $PRC->get_one_by_ID($PRC_ID); |
|
593 | - $additional_hidden_fields = array( |
|
594 | - 'PRC_ID' => array('type' => 'hidden', 'value' => $PRC_ID), |
|
595 | - ); |
|
596 | - $this->_set_add_edit_form_tags('update_price', $additional_hidden_fields); |
|
597 | - } else { |
|
598 | - $price = $PRC->get_new_price(); |
|
599 | - $this->_set_add_edit_form_tags('insert_price'); |
|
600 | - } |
|
601 | - |
|
602 | - $this->_template_args['PRC_ID'] = $PRC_ID; |
|
603 | - $this->_template_args['price'] = $price; |
|
604 | - |
|
605 | - // get price types |
|
606 | - require_once(EE_MODELS . 'EEM_Price_Type.model.php'); |
|
607 | - $PRT = EEM_Price_Type::instance(); |
|
608 | - $price_types = $PRT->get_all(array(array('PBT_ID' => array('!=', 1)))); |
|
609 | - $price_type_names = array(); |
|
610 | - if (empty($price_types)) { |
|
611 | - $msg = __( |
|
612 | - 'You have no price types defined. Please add a price type before adding a price.', |
|
613 | - 'event_espresso' |
|
614 | - ); |
|
615 | - EE_Error::add_error($msg, __FILE__, __FUNCTION__, __LINE__); |
|
616 | - exit(); |
|
617 | - } else { |
|
618 | - foreach ($price_types as $type) { |
|
619 | - // if ($type->is_global()) { |
|
620 | - $price_type_names[] = array('id' => $type->ID(), 'text' => $type->name()); |
|
621 | - // } |
|
622 | - } |
|
623 | - } |
|
624 | - |
|
625 | - $this->_template_args['price_types'] = $price_type_names; |
|
626 | - $this->_template_args['learn_more_about_pricing_link'] = $this->_learn_more_about_pricing_link(); |
|
627 | - |
|
628 | - $this->_set_publish_post_box_vars('id', $PRC_ID); |
|
629 | - // the details template wrapper |
|
630 | - $this->display_admin_page_with_sidebar(); |
|
631 | - } |
|
632 | - |
|
633 | - |
|
634 | - /** |
|
635 | - * declare price details page metaboxes |
|
636 | - * |
|
637 | - * @access protected |
|
638 | - * @return void |
|
639 | - */ |
|
640 | - protected function _price_details_meta_boxes() |
|
641 | - { |
|
642 | - add_meta_box( |
|
643 | - 'edit-price-details-mbox', |
|
644 | - __('Default Price Details', 'event_espresso'), |
|
645 | - array($this, '_edit_price_details_meta_box'), |
|
646 | - $this->wp_page_slug, |
|
647 | - 'normal', |
|
648 | - 'high' |
|
649 | - ); |
|
650 | - } |
|
651 | - |
|
652 | - |
|
653 | - /** |
|
654 | - * _edit_price_details_meta_box |
|
655 | - * |
|
656 | - * @access public |
|
657 | - * @return void |
|
658 | - */ |
|
659 | - public function _edit_price_details_meta_box() |
|
660 | - { |
|
661 | - echo EEH_Template::display_template( |
|
662 | - PRICING_TEMPLATE_PATH . 'pricing_details_main_meta_box.template.php', |
|
663 | - $this->_template_args, |
|
664 | - true |
|
665 | - ); |
|
666 | - } |
|
667 | - |
|
668 | - |
|
669 | - /** |
|
670 | - * @return array |
|
671 | - * @throws EE_Error |
|
672 | - * @throws ReflectionException |
|
673 | - */ |
|
674 | - protected function set_price_column_values() |
|
675 | - { |
|
676 | - $PRC_order = 0; |
|
677 | - $PRT_ID = absint($this->_req_data['PRT_ID']); |
|
678 | - if ($PRT_ID) { |
|
679 | - /** @var EE_Price_Type $price_type */ |
|
680 | - $price_type = EEM_Price_Type::instance()->get_one_by_ID($PRT_ID); |
|
681 | - if ($price_type instanceof EE_Price_Type) { |
|
682 | - $PRC_order = $price_type->order(); |
|
683 | - } |
|
684 | - } |
|
685 | - return array( |
|
686 | - 'PRT_ID' => $PRT_ID, |
|
687 | - 'PRC_amount' => $this->_req_data['PRC_amount'], |
|
688 | - 'PRC_name' => $this->_req_data['PRC_name'], |
|
689 | - 'PRC_desc' => $this->_req_data['PRC_desc'], |
|
690 | - 'PRC_is_default' => 1, |
|
691 | - 'PRC_overrides' => null, |
|
692 | - 'PRC_order' => $PRC_order, |
|
693 | - 'PRC_deleted' => 0, |
|
694 | - 'PRC_parent' => 0, |
|
695 | - ); |
|
696 | - } |
|
697 | - |
|
698 | - |
|
699 | - /** |
|
700 | - * @param boolean $insert - whether to insert or update |
|
701 | - * @return void |
|
702 | - * @throws EE_Error |
|
703 | - * @throws ReflectionException |
|
704 | - */ |
|
705 | - protected function _insert_or_update_price($insert = false) |
|
706 | - { |
|
707 | - require_once(EE_MODELS . 'EEM_Price.model.php'); |
|
708 | - $PRC = EEM_Price::instance(); |
|
709 | - |
|
710 | - // why be so pessimistic ??? : ( |
|
711 | - $success = 0; |
|
712 | - |
|
713 | - $set_column_values = $this->set_price_column_values(); |
|
714 | - // is this a new Price ? |
|
715 | - if ($insert) { |
|
716 | - // run the insert |
|
717 | - if ($PRC_ID = $PRC->insert($set_column_values)) { |
|
718 | - // make sure this new price modifier is attached to the ticket but ONLY if it is not a tax type |
|
719 | - $PR = EEM_price::instance()->get_one_by_ID($PRC_ID); |
|
720 | - if ($PR instanceof EE_Price && $PR->type_obj()->base_type() !== EEM_Price_Type::base_type_tax) { |
|
721 | - $ticket = EEM_Ticket::instance()->get_one_by_ID(1); |
|
722 | - $ticket->_add_relation_to($PR, 'Price'); |
|
723 | - $ticket->save(); |
|
724 | - } |
|
725 | - $success = 1; |
|
726 | - } else { |
|
727 | - $PRC_ID = false; |
|
728 | - $success = 0; |
|
729 | - } |
|
730 | - $action_desc = 'created'; |
|
731 | - } else { |
|
732 | - $PRC_ID = absint($this->_req_data['PRC_ID']); |
|
733 | - // run the update |
|
734 | - $where_cols_n_values = array('PRC_ID' => $PRC_ID); |
|
735 | - if ($PRC->update($set_column_values, array($where_cols_n_values))) { |
|
736 | - $success = 1; |
|
737 | - } |
|
738 | - |
|
739 | - $PR = EEM_Price::instance()->get_one_by_ID($PRC_ID); |
|
740 | - if ($PR instanceof EE_Price && $PR->type_obj()->base_type() !== EEM_Price_Type::base_type_tax) { |
|
741 | - // if this is $PRC_ID == 1, |
|
742 | - // then we need to update the default ticket attached to this price so the TKT_price value is updated. |
|
743 | - if ($PRC_ID === 1) { |
|
744 | - $ticket = $PR->get_first_related('Ticket'); |
|
745 | - if ($ticket) { |
|
746 | - $ticket->set('TKT_price', $PR->get('PRC_amount')); |
|
747 | - $ticket->set('TKT_name', $PR->get('PRC_name')); |
|
748 | - $ticket->set('TKT_description', $PR->get('PRC_desc')); |
|
749 | - $ticket->save(); |
|
750 | - } |
|
751 | - } else { |
|
752 | - // we make sure this price is attached to base ticket. but ONLY if its not a tax ticket type. |
|
753 | - $ticket = EEM_Ticket::instance()->get_one_by_ID(1); |
|
754 | - $ticket->_add_relation_to($PRC_ID, 'Price'); |
|
755 | - $ticket->save(); |
|
756 | - } |
|
757 | - } |
|
758 | - |
|
759 | - $action_desc = 'updated'; |
|
760 | - } |
|
761 | - |
|
762 | - $query_args = array('action' => 'edit_price', 'id' => $PRC_ID); |
|
763 | - |
|
764 | - $this->_redirect_after_action($success, 'Prices', $action_desc, $query_args); |
|
765 | - } |
|
766 | - |
|
767 | - |
|
768 | - /** |
|
769 | - * _trash_or_restore_price |
|
770 | - * |
|
771 | - * @param boolean $trash - whether to move item to trash (TRUE) or restore it (FALSE) |
|
772 | - * @access protected |
|
773 | - * @return void |
|
774 | - */ |
|
775 | - protected function _trash_or_restore_price($trash = true) |
|
776 | - { |
|
777 | - |
|
778 | - // echo '<h3>'. __CLASS__ . '->' . __FUNCTION__ . ' <br /><span style="font-size:10px;font-weight:normal;">' . __FILE__ . '<br />line no: ' . __LINE__ . '</span></h3>'; |
|
779 | - do_action('AHEE_log', __FILE__, __FUNCTION__, ''); |
|
780 | - |
|
781 | - require_once(EE_MODELS . 'EEM_Price.model.php'); |
|
782 | - $PRC = EEM_Price::instance(); |
|
783 | - |
|
784 | - $success = 1; |
|
785 | - $PRC_deleted = $trash ? true : false; |
|
786 | - |
|
787 | - // get base ticket for updating |
|
788 | - $ticket = EEM_Ticket::instance()->get_one_by_ID(1); |
|
789 | - // Checkboxes |
|
790 | - if (! empty($this->_req_data['checkbox']) && is_array($this->_req_data['checkbox'])) { |
|
791 | - // if array has more than one element than success message should be plural |
|
792 | - $success = count($this->_req_data['checkbox']) > 1 ? 2 : 1; |
|
793 | - // cycle thru checkboxes |
|
794 | - while (list($PRC_ID, $value) = each($this->_req_data['checkbox'])) { |
|
795 | - if (! $PRC->update_by_ID(array('PRC_deleted' => $PRC_deleted), absint($PRC_ID))) { |
|
796 | - $success = 0; |
|
797 | - } else { |
|
798 | - $PR = EEM_Price::instance()->get_one_by_ID($PRC_ID); |
|
799 | - if ($PR->type_obj()->base_type() !== EEM_Price_Type::base_type_tax) { |
|
800 | - // if trashing then remove relations to base default ticket. If restoring then add back to base default ticket |
|
801 | - if ($PRC_deleted) { |
|
802 | - $ticket->_remove_relation_to($PRC_ID, 'Price'); |
|
803 | - } else { |
|
804 | - $ticket->_add_relation_to($PRC_ID, 'Price'); |
|
805 | - } |
|
806 | - $ticket->save(); |
|
807 | - } |
|
808 | - } |
|
809 | - } |
|
810 | - } else { |
|
811 | - // grab single id and delete |
|
812 | - $PRC_ID = isset($this->_req_data['id']) ? absint($this->_req_data['id']) : 0; |
|
813 | - if (empty($PRC_ID) || ! $PRC->update_by_ID(array('PRC_deleted' => $PRC_deleted), $PRC_ID)) { |
|
814 | - $success = 0; |
|
815 | - } else { |
|
816 | - $PR = EEM_Price::instance()->get_one_by_ID($PRC_ID); |
|
817 | - if ($PR->type_obj()->base_type() !== EEM_Price_Type::base_type_tax) { |
|
818 | - // if trashing then remove relations to base default ticket. If restoring then add back to base default ticket |
|
819 | - if ($PRC_deleted) { |
|
820 | - $ticket->_remove_relation_to($PRC_ID, 'Price'); |
|
821 | - } else { |
|
822 | - $ticket->_add_relation_to($PRC_ID, 'Price'); |
|
823 | - } |
|
824 | - $ticket->save(); |
|
825 | - } |
|
826 | - } |
|
827 | - } |
|
828 | - $query_args = array( |
|
829 | - 'action' => 'default', |
|
830 | - ); |
|
831 | - |
|
832 | - if ($success) { |
|
833 | - if ($trash) { |
|
834 | - $msg = $success == 2 |
|
835 | - ? __('The Prices have been trashed.', 'event_espresso') |
|
836 | - : __( |
|
837 | - 'The Price has been trashed.', |
|
838 | - 'event_espresso' |
|
839 | - ); |
|
840 | - } else { |
|
841 | - $msg = $success == 2 |
|
842 | - ? __('The Prices have been restored.', 'event_espresso') |
|
843 | - : __( |
|
844 | - 'The Price has been restored.', |
|
845 | - 'event_espresso' |
|
846 | - ); |
|
847 | - } |
|
848 | - |
|
849 | - EE_Error::add_success($msg); |
|
850 | - } |
|
851 | - |
|
852 | - $this->_redirect_after_action(false, '', '', $query_args, true); |
|
853 | - } |
|
854 | - |
|
855 | - |
|
856 | - /** |
|
857 | - * _delete_price |
|
858 | - * |
|
859 | - * @access protected |
|
860 | - * @return void |
|
861 | - */ |
|
862 | - protected function _delete_price() |
|
863 | - { |
|
864 | - |
|
865 | - // echo '<h3>'. __CLASS__ . '->' . __FUNCTION__ . ' <br /><span style="font-size:10px;font-weight:normal;">' . __FILE__ . '<br />line no: ' . __LINE__ . '</span></h3>'; |
|
866 | - do_action('AHEE_log', __FILE__, __FUNCTION__, ''); |
|
867 | - |
|
868 | - require_once(EE_MODELS . 'EEM_Price.model.php'); |
|
869 | - $PRC = EEM_Price::instance(); |
|
870 | - |
|
871 | - $success = 1; |
|
872 | - // Checkboxes |
|
873 | - if (! empty($this->_req_data['checkbox']) && is_array($this->_req_data['checkbox'])) { |
|
874 | - // if array has more than one element than success message should be plural |
|
875 | - $success = count($this->_req_data['checkbox']) > 1 ? 2 : 1; |
|
876 | - // cycle thru bulk action checkboxes |
|
877 | - while (list($PRC_ID, $value) = each($this->_req_data['checkbox'])) { |
|
878 | - if (! $PRC->delete_permanently_by_ID(absint($PRC_ID))) { |
|
879 | - $success = 0; |
|
880 | - } |
|
881 | - } |
|
882 | - } else { |
|
883 | - // grab single id and delete |
|
884 | - $PRC_ID = absint($this->_req_data['id']); |
|
885 | - if (! $PRC->delete_permanently_by_ID($PRC_ID)) { |
|
886 | - $success = 0; |
|
887 | - } |
|
888 | - } |
|
889 | - |
|
890 | - $this->_redirect_after_action($success, 'Prices', 'deleted', array()); |
|
891 | - } |
|
892 | - |
|
893 | - |
|
894 | - public function update_price_order() |
|
895 | - { |
|
896 | - $success = __('Price order was updated successfully.', 'event_espresso'); |
|
897 | - |
|
898 | - // grab our row IDs |
|
899 | - $row_ids = isset($this->_req_data['row_ids']) && ! empty($this->_req_data['row_ids']) ? explode( |
|
900 | - ',', |
|
901 | - rtrim( |
|
902 | - $this->_req_data['row_ids'], |
|
903 | - ',' |
|
904 | - ) |
|
905 | - ) : false; |
|
906 | - |
|
907 | - if (is_array($row_ids)) { |
|
908 | - for ($i = 0; $i < count($row_ids); $i++) { |
|
909 | - // Update the prices when re-ordering |
|
910 | - $id = absint($row_ids[ $i ]); |
|
911 | - if (EEM_Price::instance()->update( |
|
912 | - array('PRC_order' => $i + 1), |
|
913 | - array(array('PRC_ID' => $id)) |
|
914 | - ) === false) { |
|
915 | - $success = false; |
|
916 | - } |
|
917 | - } |
|
918 | - } else { |
|
919 | - $success = false; |
|
920 | - } |
|
921 | - |
|
922 | - $errors = ! $success ? __('An error occurred. The price order was not updated.', 'event_espresso') : false; |
|
923 | - |
|
924 | - echo wp_json_encode(array('return_data' => false, 'success' => $success, 'errors' => $errors)); |
|
925 | - die(); |
|
926 | - } |
|
927 | - |
|
928 | - |
|
929 | - |
|
930 | - |
|
931 | - |
|
932 | - |
|
933 | - /************************************************************************************************************************************************************** |
|
15 | + /** |
|
16 | + * constructor |
|
17 | + * |
|
18 | + * @Constructor |
|
19 | + * @access public |
|
20 | + * @param bool $routing |
|
21 | + * @return Pricing_Admin_Page |
|
22 | + */ |
|
23 | + public function __construct($routing = true) |
|
24 | + { |
|
25 | + parent::__construct($routing); |
|
26 | + } |
|
27 | + |
|
28 | + |
|
29 | + protected function _init_page_props() |
|
30 | + { |
|
31 | + $this->page_slug = PRICING_PG_SLUG; |
|
32 | + $this->page_label = PRICING_LABEL; |
|
33 | + $this->_admin_base_url = PRICING_ADMIN_URL; |
|
34 | + $this->_admin_base_path = PRICING_ADMIN; |
|
35 | + } |
|
36 | + |
|
37 | + |
|
38 | + protected function _ajax_hooks() |
|
39 | + { |
|
40 | + add_action('wp_ajax_espresso_update_prices_order', array($this, 'update_price_order')); |
|
41 | + } |
|
42 | + |
|
43 | + |
|
44 | + protected function _define_page_props() |
|
45 | + { |
|
46 | + $this->_admin_page_title = PRICING_LABEL; |
|
47 | + $this->_labels = array( |
|
48 | + 'buttons' => array( |
|
49 | + 'add' => __('Add New Default Price', 'event_espresso'), |
|
50 | + 'edit' => __('Edit Default Price', 'event_espresso'), |
|
51 | + 'delete' => __('Delete Default Price', 'event_espresso'), |
|
52 | + 'add_type' => __('Add New Default Price Type', 'event_espresso'), |
|
53 | + 'edit_type' => __('Edit Price Type', 'event_espresso'), |
|
54 | + 'delete_type' => __('Delete Price Type', 'event_espresso'), |
|
55 | + ), |
|
56 | + ); |
|
57 | + } |
|
58 | + |
|
59 | + |
|
60 | + /** |
|
61 | + * an array for storing request actions and their corresponding methods |
|
62 | + * |
|
63 | + * @access private |
|
64 | + * @return void |
|
65 | + */ |
|
66 | + protected function _set_page_routes() |
|
67 | + { |
|
68 | + $prc_id = ! empty($this->_req_data['PRC_ID']) && ! is_array($this->_req_data['PRC_ID']) |
|
69 | + ? $this->_req_data['PRC_ID'] : 0; |
|
70 | + $prt_id = ! empty($this->_req_data['PRT_ID']) && ! is_array($this->_req_data['PRT_ID']) |
|
71 | + ? $this->_req_data['PRT_ID'] : 0; |
|
72 | + $this->_page_routes = array( |
|
73 | + 'default' => array( |
|
74 | + 'func' => '_price_overview_list_table', |
|
75 | + 'capability' => 'ee_read_default_prices', |
|
76 | + ), |
|
77 | + 'add_new_price' => array( |
|
78 | + 'func' => '_edit_price_details', |
|
79 | + 'args' => array('new_price' => true), |
|
80 | + 'capability' => 'ee_edit_default_prices', |
|
81 | + ), |
|
82 | + 'edit_price' => array( |
|
83 | + 'func' => '_edit_price_details', |
|
84 | + 'args' => array('new_price' => false), |
|
85 | + 'capability' => 'ee_edit_default_price', |
|
86 | + 'obj_id' => $prc_id, |
|
87 | + ), |
|
88 | + 'insert_price' => array( |
|
89 | + 'func' => '_insert_or_update_price', |
|
90 | + 'args' => array('new_price' => true), |
|
91 | + 'noheader' => true, |
|
92 | + 'capability' => 'ee_edit_default_prices', |
|
93 | + ), |
|
94 | + 'update_price' => array( |
|
95 | + 'func' => '_insert_or_update_price', |
|
96 | + 'args' => array('new_price' => false), |
|
97 | + 'noheader' => true, |
|
98 | + 'capability' => 'ee_edit_default_price', |
|
99 | + 'obj_id' => $prc_id, |
|
100 | + ), |
|
101 | + 'trash_price' => array( |
|
102 | + 'func' => '_trash_or_restore_price', |
|
103 | + 'args' => array('trash' => true), |
|
104 | + 'noheader' => true, |
|
105 | + 'capability' => 'ee_delete_default_price', |
|
106 | + 'obj_id' => $prc_id, |
|
107 | + ), |
|
108 | + 'restore_price' => array( |
|
109 | + 'func' => '_trash_or_restore_price', |
|
110 | + 'args' => array('trash' => false), |
|
111 | + 'noheader' => true, |
|
112 | + 'capability' => 'ee_delete_default_price', |
|
113 | + 'obj_id' => $prc_id, |
|
114 | + ), |
|
115 | + 'delete_price' => array( |
|
116 | + 'func' => '_delete_price', |
|
117 | + 'noheader' => true, |
|
118 | + 'capability' => 'ee_delete_default_price', |
|
119 | + 'obj_id' => $prc_id, |
|
120 | + ), |
|
121 | + 'espresso_update_price_order' => array( |
|
122 | + 'func' => 'update_price_order', |
|
123 | + 'noheader' => true, |
|
124 | + 'capability' => 'ee_edit_default_prices', |
|
125 | + ), |
|
126 | + // price types |
|
127 | + 'price_types' => array( |
|
128 | + 'func' => '_price_types_overview_list_table', |
|
129 | + 'capability' => 'ee_read_default_price_types', |
|
130 | + ), |
|
131 | + 'add_new_price_type' => array( |
|
132 | + 'func' => '_edit_price_type_details', |
|
133 | + 'capability' => 'ee_edit_default_price_types', |
|
134 | + ), |
|
135 | + 'edit_price_type' => array( |
|
136 | + 'func' => '_edit_price_type_details', |
|
137 | + 'capability' => 'ee_edit_default_price_type', |
|
138 | + 'obj_id' => $prt_id, |
|
139 | + ), |
|
140 | + 'insert_price_type' => array( |
|
141 | + 'func' => '_insert_or_update_price_type', |
|
142 | + 'args' => array('new_price_type' => true), |
|
143 | + 'noheader' => true, |
|
144 | + 'capability' => 'ee_edit_default_price_types', |
|
145 | + ), |
|
146 | + 'update_price_type' => array( |
|
147 | + 'func' => '_insert_or_update_price_type', |
|
148 | + 'args' => array('new_price_type' => false), |
|
149 | + 'noheader' => true, |
|
150 | + 'capability' => 'ee_edit_default_price_type', |
|
151 | + 'obj_id' => $prt_id, |
|
152 | + ), |
|
153 | + 'trash_price_type' => array( |
|
154 | + 'func' => '_trash_or_restore_price_type', |
|
155 | + 'args' => array('trash' => true), |
|
156 | + 'noheader' => true, |
|
157 | + 'capability' => 'ee_delete_default_price_type', |
|
158 | + 'obj_id' => $prt_id, |
|
159 | + ), |
|
160 | + 'restore_price_type' => array( |
|
161 | + 'func' => '_trash_or_restore_price_type', |
|
162 | + 'args' => array('trash' => false), |
|
163 | + 'noheader' => true, |
|
164 | + 'capability' => 'ee_delete_default_price_type', |
|
165 | + 'obj_id' => $prt_id, |
|
166 | + ), |
|
167 | + 'delete_price_type' => array( |
|
168 | + 'func' => '_delete_price_type', |
|
169 | + 'noheader' => true, |
|
170 | + 'capability' => 'ee_delete_default_price_type', |
|
171 | + 'obj_id' => $prt_id, |
|
172 | + ), |
|
173 | + 'tax_settings' => array( |
|
174 | + 'func' => '_tax_settings', |
|
175 | + 'capability' => 'manage_options', |
|
176 | + ), |
|
177 | + 'update_tax_settings' => array( |
|
178 | + 'func' => '_update_tax_settings', |
|
179 | + 'capability' => 'manage_options', |
|
180 | + 'noheader' => true, |
|
181 | + ), |
|
182 | + ); |
|
183 | + } |
|
184 | + |
|
185 | + |
|
186 | + protected function _set_page_config() |
|
187 | + { |
|
188 | + |
|
189 | + $this->_page_config = array( |
|
190 | + 'default' => array( |
|
191 | + 'nav' => array( |
|
192 | + 'label' => __('Default Pricing', 'event_espresso'), |
|
193 | + 'order' => 10, |
|
194 | + ), |
|
195 | + 'list_table' => 'Prices_List_Table', |
|
196 | + 'help_tabs' => array( |
|
197 | + 'pricing_default_pricing_help_tab' => array( |
|
198 | + 'title' => __('Default Pricing', 'event_espresso'), |
|
199 | + 'filename' => 'pricing_default_pricing', |
|
200 | + ), |
|
201 | + 'pricing_default_pricing_table_column_headings_help_tab' => array( |
|
202 | + 'title' => __('Default Pricing Table Column Headings', 'event_espresso'), |
|
203 | + 'filename' => 'pricing_default_pricing_table_column_headings', |
|
204 | + ), |
|
205 | + 'pricing_default_pricing_views_bulk_actions_search_help_tab' => array( |
|
206 | + 'title' => __('Default Pricing Views & Bulk Actions & Search', 'event_espresso'), |
|
207 | + 'filename' => 'pricing_default_pricing_views_bulk_actions_search', |
|
208 | + ), |
|
209 | + ), |
|
210 | + 'help_tour' => array('Pricing_Default_Prices_Help_Tour'), |
|
211 | + 'require_nonce' => false, |
|
212 | + ), |
|
213 | + 'add_new_price' => array( |
|
214 | + 'nav' => array( |
|
215 | + 'label' => __('Add New Default Price', 'event_espresso'), |
|
216 | + 'order' => 20, |
|
217 | + 'persistent' => false, |
|
218 | + ), |
|
219 | + 'help_tabs' => array( |
|
220 | + 'add_new_default_price_help_tab' => array( |
|
221 | + 'title' => __('Add New Default Price', 'event_espresso'), |
|
222 | + 'filename' => 'pricing_add_new_default_price', |
|
223 | + ), |
|
224 | + ), |
|
225 | + 'help_tour' => array('Pricing_Add_New_Default_Price_Help_Tour'), |
|
226 | + 'metaboxes' => array('_publish_post_box', '_espresso_news_post_box', '_price_details_meta_boxes'), |
|
227 | + 'require_nonce' => false, |
|
228 | + ), |
|
229 | + 'edit_price' => array( |
|
230 | + 'nav' => array( |
|
231 | + 'label' => __('Edit Default Price', 'event_espresso'), |
|
232 | + 'order' => 20, |
|
233 | + 'url' => isset($this->_req_data['id']) ? add_query_arg( |
|
234 | + array('id' => $this->_req_data['id']), |
|
235 | + $this->_current_page_view_url |
|
236 | + ) : $this->_admin_base_url, |
|
237 | + 'persistent' => false, |
|
238 | + ), |
|
239 | + 'metaboxes' => array('_publish_post_box', '_espresso_news_post_box', '_price_details_meta_boxes'), |
|
240 | + 'help_tabs' => array( |
|
241 | + 'edit_default_price_help_tab' => array( |
|
242 | + 'title' => __('Edit Default Price', 'event_espresso'), |
|
243 | + 'filename' => 'pricing_edit_default_price', |
|
244 | + ), |
|
245 | + ), |
|
246 | + 'help_tour' => array('Pricing_Edit_Default_Price_Help_Tour'), |
|
247 | + 'require_nonce' => false, |
|
248 | + ), |
|
249 | + 'price_types' => array( |
|
250 | + 'nav' => array( |
|
251 | + 'label' => __('Price Types', 'event_espresso'), |
|
252 | + 'order' => 30, |
|
253 | + ), |
|
254 | + 'list_table' => 'Price_Types_List_Table', |
|
255 | + 'help_tabs' => array( |
|
256 | + 'pricing_price_types_help_tab' => array( |
|
257 | + 'title' => __('Price Types', 'event_espresso'), |
|
258 | + 'filename' => 'pricing_price_types', |
|
259 | + ), |
|
260 | + 'pricing_price_types_table_column_headings_help_tab' => array( |
|
261 | + 'title' => __('Price Types Table Column Headings', 'event_espresso'), |
|
262 | + 'filename' => 'pricing_price_types_table_column_headings', |
|
263 | + ), |
|
264 | + 'pricing_price_types_views_bulk_actions_search_help_tab' => array( |
|
265 | + 'title' => __('Price Types Views & Bulk Actions & Search', 'event_espresso'), |
|
266 | + 'filename' => 'pricing_price_types_views_bulk_actions_search', |
|
267 | + ), |
|
268 | + ), |
|
269 | + 'help_tour' => array('Pricing_Price_Types_Default_Help_Tour'), |
|
270 | + 'metaboxes' => array('_espresso_news_post_box', '_espresso_links_post_box'), |
|
271 | + 'require_nonce' => false, |
|
272 | + ), |
|
273 | + 'add_new_price_type' => array( |
|
274 | + 'nav' => array( |
|
275 | + 'label' => __('Add New Price Type', 'event_espresso'), |
|
276 | + 'order' => 40, |
|
277 | + 'persistent' => false, |
|
278 | + ), |
|
279 | + 'help_tabs' => array( |
|
280 | + 'add_new_price_type_help_tab' => array( |
|
281 | + 'title' => __('Add New Price Type', 'event_espresso'), |
|
282 | + 'filename' => 'pricing_add_new_price_type', |
|
283 | + ), |
|
284 | + ), |
|
285 | + 'help_tour' => array('Pricing_Add_New_Price_Type_Help_Tour'), |
|
286 | + 'metaboxes' => array( |
|
287 | + '_publish_post_box', |
|
288 | + '_espresso_news_post_box', |
|
289 | + '_price_type_details_meta_boxes', |
|
290 | + ), |
|
291 | + 'require_nonce' => false, |
|
292 | + ), |
|
293 | + 'edit_price_type' => array( |
|
294 | + 'nav' => array( |
|
295 | + 'label' => __('Edit Price Type', 'event_espresso'), |
|
296 | + 'order' => 40, |
|
297 | + 'persistent' => false, |
|
298 | + ), |
|
299 | + 'help_tabs' => array( |
|
300 | + 'edit_price_type_help_tab' => array( |
|
301 | + 'title' => __('Edit Price Type', 'event_espresso'), |
|
302 | + 'filename' => 'pricing_edit_price_type', |
|
303 | + ), |
|
304 | + ), |
|
305 | + 'help_tour' => array('Pricing_Edit_Price_Type_Help_Tour'), |
|
306 | + 'metaboxes' => array('_publish_post_box', '_espresso_news_post_box', '_price_type_details_meta_boxes'), |
|
307 | + |
|
308 | + 'require_nonce' => false, |
|
309 | + ), |
|
310 | + 'tax_settings' => array( |
|
311 | + 'nav' => array( |
|
312 | + 'label' => esc_html__('Tax Settings', 'event_espresso'), |
|
313 | + 'order' => 40, |
|
314 | + ), |
|
315 | + 'labels' => array( |
|
316 | + 'publishbox' => esc_html__('Update Tax Settings', 'event_espresso'), |
|
317 | + ), |
|
318 | + 'metaboxes' => array_merge($this->_default_espresso_metaboxes, array('_publish_post_box')), |
|
319 | + // 'help_tabs' => array( |
|
320 | + // 'registration_form_reg_form_settings_help_tab' => array( |
|
321 | + // 'title' => esc_html__('Registration Form Settings', 'event_espresso'), |
|
322 | + // 'filename' => 'registration_form_reg_form_settings' |
|
323 | + // ), |
|
324 | + // ), |
|
325 | + // 'help_tour' => array('Registration_Form_Settings_Help_Tour'), |
|
326 | + 'require_nonce' => true, |
|
327 | + ), |
|
328 | + ); |
|
329 | + } |
|
330 | + |
|
331 | + |
|
332 | + protected function _add_screen_options() |
|
333 | + { |
|
334 | + // todo |
|
335 | + } |
|
336 | + |
|
337 | + |
|
338 | + protected function _add_screen_options_default() |
|
339 | + { |
|
340 | + $this->_per_page_screen_option(); |
|
341 | + } |
|
342 | + |
|
343 | + |
|
344 | + protected function _add_screen_options_price_types() |
|
345 | + { |
|
346 | + $page_title = $this->_admin_page_title; |
|
347 | + $this->_admin_page_title = __('Price Types', 'event_espresso'); |
|
348 | + $this->_per_page_screen_option(); |
|
349 | + $this->_admin_page_title = $page_title; |
|
350 | + } |
|
351 | + |
|
352 | + |
|
353 | + protected function _add_feature_pointers() |
|
354 | + { |
|
355 | + } |
|
356 | + |
|
357 | + |
|
358 | + public function load_scripts_styles() |
|
359 | + { |
|
360 | + // styles |
|
361 | + wp_enqueue_style('espresso-ui-theme'); |
|
362 | + wp_register_style( |
|
363 | + 'espresso_PRICING', |
|
364 | + PRICING_ASSETS_URL . 'espresso_pricing_admin.css', |
|
365 | + array(), |
|
366 | + EVENT_ESPRESSO_VERSION |
|
367 | + ); |
|
368 | + wp_enqueue_style('espresso_PRICING'); |
|
369 | + |
|
370 | + // scripts |
|
371 | + wp_enqueue_script('ee_admin_js'); |
|
372 | + wp_enqueue_script('jquery-ui-position'); |
|
373 | + wp_enqueue_script('jquery-ui-widget'); |
|
374 | + // wp_enqueue_script('jquery-ui-dialog'); |
|
375 | + // wp_enqueue_script('jquery-ui-draggable'); |
|
376 | + // wp_enqueue_script('jquery-ui-datepicker'); |
|
377 | + wp_register_script( |
|
378 | + 'espresso_PRICING', |
|
379 | + PRICING_ASSETS_URL . 'espresso_pricing_admin.js', |
|
380 | + array('jquery'), |
|
381 | + EVENT_ESPRESSO_VERSION, |
|
382 | + true |
|
383 | + ); |
|
384 | + wp_enqueue_script('espresso_PRICING'); |
|
385 | + } |
|
386 | + |
|
387 | + |
|
388 | + public function load_scripts_styles_default() |
|
389 | + { |
|
390 | + wp_enqueue_script('espresso_ajax_table_sorting'); |
|
391 | + } |
|
392 | + |
|
393 | + |
|
394 | + public function admin_footer_scripts() |
|
395 | + { |
|
396 | + } |
|
397 | + |
|
398 | + public function admin_init() |
|
399 | + { |
|
400 | + } |
|
401 | + |
|
402 | + public function admin_notices() |
|
403 | + { |
|
404 | + } |
|
405 | + |
|
406 | + |
|
407 | + protected function _set_list_table_views_default() |
|
408 | + { |
|
409 | + $this->_views = array( |
|
410 | + 'all' => array( |
|
411 | + 'slug' => 'all', |
|
412 | + 'label' => __('View All Default Pricing', 'event_espresso'), |
|
413 | + 'count' => 0, |
|
414 | + 'bulk_action' => array( |
|
415 | + 'trash_price' => __('Move to Trash', 'event_espresso'), |
|
416 | + ), |
|
417 | + ), |
|
418 | + ); |
|
419 | + |
|
420 | + if (EE_Registry::instance()->CAP->current_user_can('ee_delete_default_prices', 'pricing_trash_price')) { |
|
421 | + $this->_views['trashed'] = array( |
|
422 | + 'slug' => 'trashed', |
|
423 | + 'label' => __('Trash', 'event_espresso'), |
|
424 | + 'count' => 0, |
|
425 | + 'bulk_action' => array( |
|
426 | + 'restore_price' => __('Restore from Trash', 'event_espresso'), |
|
427 | + 'delete_price' => __('Delete Permanently', 'event_espresso'), |
|
428 | + ), |
|
429 | + ); |
|
430 | + } |
|
431 | + } |
|
432 | + |
|
433 | + |
|
434 | + protected function _set_list_table_views_price_types() |
|
435 | + { |
|
436 | + $this->_views = array( |
|
437 | + 'all' => array( |
|
438 | + 'slug' => 'all', |
|
439 | + 'label' => __('All', 'event_espresso'), |
|
440 | + 'count' => 0, |
|
441 | + 'bulk_action' => array( |
|
442 | + 'trash_price_type' => __('Move to Trash', 'event_espresso'), |
|
443 | + ), |
|
444 | + ), |
|
445 | + ); |
|
446 | + |
|
447 | + if (EE_Registry::instance()->CAP->current_user_can( |
|
448 | + 'ee_delete_default_price_types', |
|
449 | + 'pricing_trash_price_type' |
|
450 | + )) { |
|
451 | + $this->_views['trashed'] = array( |
|
452 | + 'slug' => 'trashed', |
|
453 | + 'label' => __('Trash', 'event_espresso'), |
|
454 | + 'count' => 0, |
|
455 | + 'bulk_action' => array( |
|
456 | + 'restore_price_type' => __('Restore from Trash', 'event_espresso'), |
|
457 | + 'delete_price_type' => __('Delete Permanently', 'event_espresso'), |
|
458 | + ), |
|
459 | + ); |
|
460 | + } |
|
461 | + } |
|
462 | + |
|
463 | + |
|
464 | + /** |
|
465 | + * generates HTML for main Prices Admin page |
|
466 | + * |
|
467 | + * @access protected |
|
468 | + * @return void |
|
469 | + */ |
|
470 | + protected function _price_overview_list_table() |
|
471 | + { |
|
472 | + $this->_admin_page_title .= ' ' . $this->get_action_link_or_button( |
|
473 | + 'add_new_price', |
|
474 | + 'add', |
|
475 | + array(), |
|
476 | + 'add-new-h2' |
|
477 | + ); |
|
478 | + $this->admin_page_title .= $this->_learn_more_about_pricing_link(); |
|
479 | + $this->_search_btn_label = __('Default Prices', 'event_espresso'); |
|
480 | + $this->display_admin_list_table_page_with_no_sidebar(); |
|
481 | + } |
|
482 | + |
|
483 | + |
|
484 | + /** |
|
485 | + * retrieve data for Prices List table |
|
486 | + * |
|
487 | + * @access public |
|
488 | + * @param int $per_page how many prices displayed per page |
|
489 | + * @param boolean $count return the count or objects |
|
490 | + * @param boolean $trashed whether the current view is of the trash can - eww yuck! |
|
491 | + * @return mixed (int|array) int = count || array of price objects |
|
492 | + */ |
|
493 | + public function get_prices_overview_data($per_page = 10, $count = false, $trashed = false) |
|
494 | + { |
|
495 | + |
|
496 | + do_action('AHEE_log', __FILE__, __FUNCTION__, ''); |
|
497 | + // start with an empty array |
|
498 | + $event_pricing = array(); |
|
499 | + |
|
500 | + require_once(PRICING_ADMIN . 'Prices_List_Table.class.php'); |
|
501 | + require_once(EE_MODELS . 'EEM_Price.model.php'); |
|
502 | + // $PRC = EEM_Price::instance(); |
|
503 | + |
|
504 | + $this->_req_data['orderby'] = empty($this->_req_data['orderby']) ? '' : $this->_req_data['orderby']; |
|
505 | + $order = (isset($this->_req_data['order']) && ! empty($this->_req_data['order'])) ? $this->_req_data['order'] |
|
506 | + : 'ASC'; |
|
507 | + |
|
508 | + switch ($this->_req_data['orderby']) { |
|
509 | + case 'name': |
|
510 | + $orderby = array('PRC_name' => $order); |
|
511 | + break; |
|
512 | + case 'type': |
|
513 | + $orderby = array('Price_Type.PRT_name' => $order); |
|
514 | + break; |
|
515 | + case 'amount': |
|
516 | + $orderby = array('PRC_amount' => $order); |
|
517 | + break; |
|
518 | + default: |
|
519 | + $orderby = array('PRC_order' => $order, 'Price_Type.PRT_order' => $order, 'PRC_ID' => $order); |
|
520 | + } |
|
521 | + |
|
522 | + $current_page = isset($this->_req_data['paged']) && ! empty($this->_req_data['paged']) |
|
523 | + ? $this->_req_data['paged'] : 1; |
|
524 | + $per_page = isset($this->_req_data['perpage']) && ! empty($this->_req_data['perpage']) |
|
525 | + ? $this->_req_data['perpage'] : $per_page; |
|
526 | + |
|
527 | + $_where = array( |
|
528 | + 'PRC_is_default' => 1, |
|
529 | + 'PRC_deleted' => $trashed, |
|
530 | + ); |
|
531 | + |
|
532 | + $offset = ($current_page - 1) * $per_page; |
|
533 | + $limit = array($offset, $per_page); |
|
534 | + |
|
535 | + if (isset($this->_req_data['s'])) { |
|
536 | + $sstr = '%' . $this->_req_data['s'] . '%'; |
|
537 | + $_where['OR'] = array( |
|
538 | + 'PRC_name' => array('LIKE', $sstr), |
|
539 | + 'PRC_desc' => array('LIKE', $sstr), |
|
540 | + 'PRC_amount' => array('LIKE', $sstr), |
|
541 | + 'Price_Type.PRT_name' => array('LIKE', $sstr), |
|
542 | + ); |
|
543 | + } |
|
544 | + |
|
545 | + $query_params = array( |
|
546 | + $_where, |
|
547 | + 'order_by' => $orderby, |
|
548 | + 'limit' => $limit, |
|
549 | + 'group_by' => 'PRC_ID', |
|
550 | + ); |
|
551 | + |
|
552 | + if ($count) { |
|
553 | + return $trashed ? EEM_Price::instance()->count(array($_where)) |
|
554 | + : EEM_Price::instance()->count_deleted_and_undeleted(array($_where)); |
|
555 | + } else { |
|
556 | + return EEM_Price::instance()->get_all_deleted_and_undeleted($query_params); |
|
557 | + } |
|
558 | + } |
|
559 | + |
|
560 | + |
|
561 | + /** |
|
562 | + * _price_details |
|
563 | + * |
|
564 | + * @access protected |
|
565 | + * @return void |
|
566 | + */ |
|
567 | + protected function _edit_price_details() |
|
568 | + { |
|
569 | + do_action('AHEE_log', __FILE__, __FUNCTION__, ''); |
|
570 | + // grab price ID |
|
571 | + $PRC_ID = isset($this->_req_data['id']) && ! empty($this->_req_data['id']) ? absint($this->_req_data['id']) |
|
572 | + : false; |
|
573 | + // change page title based on request action |
|
574 | + switch ($this->_req_action) { |
|
575 | + case 'add_new_price': |
|
576 | + $this->_admin_page_title = esc_html__('Add New Price', 'event_espresso'); |
|
577 | + break; |
|
578 | + case 'edit_price': |
|
579 | + $this->_admin_page_title = esc_html__('Edit Price', 'event_espresso'); |
|
580 | + break; |
|
581 | + default: |
|
582 | + $this->_admin_page_title = ucwords(str_replace('_', ' ', $this->_req_action)); |
|
583 | + } |
|
584 | + // add PRC_ID to title if editing |
|
585 | + $this->_admin_page_title = $PRC_ID ? $this->_admin_page_title . ' # ' . $PRC_ID : $this->_admin_page_title; |
|
586 | + |
|
587 | + // get prices |
|
588 | + require_once(EE_MODELS . 'EEM_Price.model.php'); |
|
589 | + $PRC = EEM_Price::instance(); |
|
590 | + |
|
591 | + if ($PRC_ID) { |
|
592 | + $price = $PRC->get_one_by_ID($PRC_ID); |
|
593 | + $additional_hidden_fields = array( |
|
594 | + 'PRC_ID' => array('type' => 'hidden', 'value' => $PRC_ID), |
|
595 | + ); |
|
596 | + $this->_set_add_edit_form_tags('update_price', $additional_hidden_fields); |
|
597 | + } else { |
|
598 | + $price = $PRC->get_new_price(); |
|
599 | + $this->_set_add_edit_form_tags('insert_price'); |
|
600 | + } |
|
601 | + |
|
602 | + $this->_template_args['PRC_ID'] = $PRC_ID; |
|
603 | + $this->_template_args['price'] = $price; |
|
604 | + |
|
605 | + // get price types |
|
606 | + require_once(EE_MODELS . 'EEM_Price_Type.model.php'); |
|
607 | + $PRT = EEM_Price_Type::instance(); |
|
608 | + $price_types = $PRT->get_all(array(array('PBT_ID' => array('!=', 1)))); |
|
609 | + $price_type_names = array(); |
|
610 | + if (empty($price_types)) { |
|
611 | + $msg = __( |
|
612 | + 'You have no price types defined. Please add a price type before adding a price.', |
|
613 | + 'event_espresso' |
|
614 | + ); |
|
615 | + EE_Error::add_error($msg, __FILE__, __FUNCTION__, __LINE__); |
|
616 | + exit(); |
|
617 | + } else { |
|
618 | + foreach ($price_types as $type) { |
|
619 | + // if ($type->is_global()) { |
|
620 | + $price_type_names[] = array('id' => $type->ID(), 'text' => $type->name()); |
|
621 | + // } |
|
622 | + } |
|
623 | + } |
|
624 | + |
|
625 | + $this->_template_args['price_types'] = $price_type_names; |
|
626 | + $this->_template_args['learn_more_about_pricing_link'] = $this->_learn_more_about_pricing_link(); |
|
627 | + |
|
628 | + $this->_set_publish_post_box_vars('id', $PRC_ID); |
|
629 | + // the details template wrapper |
|
630 | + $this->display_admin_page_with_sidebar(); |
|
631 | + } |
|
632 | + |
|
633 | + |
|
634 | + /** |
|
635 | + * declare price details page metaboxes |
|
636 | + * |
|
637 | + * @access protected |
|
638 | + * @return void |
|
639 | + */ |
|
640 | + protected function _price_details_meta_boxes() |
|
641 | + { |
|
642 | + add_meta_box( |
|
643 | + 'edit-price-details-mbox', |
|
644 | + __('Default Price Details', 'event_espresso'), |
|
645 | + array($this, '_edit_price_details_meta_box'), |
|
646 | + $this->wp_page_slug, |
|
647 | + 'normal', |
|
648 | + 'high' |
|
649 | + ); |
|
650 | + } |
|
651 | + |
|
652 | + |
|
653 | + /** |
|
654 | + * _edit_price_details_meta_box |
|
655 | + * |
|
656 | + * @access public |
|
657 | + * @return void |
|
658 | + */ |
|
659 | + public function _edit_price_details_meta_box() |
|
660 | + { |
|
661 | + echo EEH_Template::display_template( |
|
662 | + PRICING_TEMPLATE_PATH . 'pricing_details_main_meta_box.template.php', |
|
663 | + $this->_template_args, |
|
664 | + true |
|
665 | + ); |
|
666 | + } |
|
667 | + |
|
668 | + |
|
669 | + /** |
|
670 | + * @return array |
|
671 | + * @throws EE_Error |
|
672 | + * @throws ReflectionException |
|
673 | + */ |
|
674 | + protected function set_price_column_values() |
|
675 | + { |
|
676 | + $PRC_order = 0; |
|
677 | + $PRT_ID = absint($this->_req_data['PRT_ID']); |
|
678 | + if ($PRT_ID) { |
|
679 | + /** @var EE_Price_Type $price_type */ |
|
680 | + $price_type = EEM_Price_Type::instance()->get_one_by_ID($PRT_ID); |
|
681 | + if ($price_type instanceof EE_Price_Type) { |
|
682 | + $PRC_order = $price_type->order(); |
|
683 | + } |
|
684 | + } |
|
685 | + return array( |
|
686 | + 'PRT_ID' => $PRT_ID, |
|
687 | + 'PRC_amount' => $this->_req_data['PRC_amount'], |
|
688 | + 'PRC_name' => $this->_req_data['PRC_name'], |
|
689 | + 'PRC_desc' => $this->_req_data['PRC_desc'], |
|
690 | + 'PRC_is_default' => 1, |
|
691 | + 'PRC_overrides' => null, |
|
692 | + 'PRC_order' => $PRC_order, |
|
693 | + 'PRC_deleted' => 0, |
|
694 | + 'PRC_parent' => 0, |
|
695 | + ); |
|
696 | + } |
|
697 | + |
|
698 | + |
|
699 | + /** |
|
700 | + * @param boolean $insert - whether to insert or update |
|
701 | + * @return void |
|
702 | + * @throws EE_Error |
|
703 | + * @throws ReflectionException |
|
704 | + */ |
|
705 | + protected function _insert_or_update_price($insert = false) |
|
706 | + { |
|
707 | + require_once(EE_MODELS . 'EEM_Price.model.php'); |
|
708 | + $PRC = EEM_Price::instance(); |
|
709 | + |
|
710 | + // why be so pessimistic ??? : ( |
|
711 | + $success = 0; |
|
712 | + |
|
713 | + $set_column_values = $this->set_price_column_values(); |
|
714 | + // is this a new Price ? |
|
715 | + if ($insert) { |
|
716 | + // run the insert |
|
717 | + if ($PRC_ID = $PRC->insert($set_column_values)) { |
|
718 | + // make sure this new price modifier is attached to the ticket but ONLY if it is not a tax type |
|
719 | + $PR = EEM_price::instance()->get_one_by_ID($PRC_ID); |
|
720 | + if ($PR instanceof EE_Price && $PR->type_obj()->base_type() !== EEM_Price_Type::base_type_tax) { |
|
721 | + $ticket = EEM_Ticket::instance()->get_one_by_ID(1); |
|
722 | + $ticket->_add_relation_to($PR, 'Price'); |
|
723 | + $ticket->save(); |
|
724 | + } |
|
725 | + $success = 1; |
|
726 | + } else { |
|
727 | + $PRC_ID = false; |
|
728 | + $success = 0; |
|
729 | + } |
|
730 | + $action_desc = 'created'; |
|
731 | + } else { |
|
732 | + $PRC_ID = absint($this->_req_data['PRC_ID']); |
|
733 | + // run the update |
|
734 | + $where_cols_n_values = array('PRC_ID' => $PRC_ID); |
|
735 | + if ($PRC->update($set_column_values, array($where_cols_n_values))) { |
|
736 | + $success = 1; |
|
737 | + } |
|
738 | + |
|
739 | + $PR = EEM_Price::instance()->get_one_by_ID($PRC_ID); |
|
740 | + if ($PR instanceof EE_Price && $PR->type_obj()->base_type() !== EEM_Price_Type::base_type_tax) { |
|
741 | + // if this is $PRC_ID == 1, |
|
742 | + // then we need to update the default ticket attached to this price so the TKT_price value is updated. |
|
743 | + if ($PRC_ID === 1) { |
|
744 | + $ticket = $PR->get_first_related('Ticket'); |
|
745 | + if ($ticket) { |
|
746 | + $ticket->set('TKT_price', $PR->get('PRC_amount')); |
|
747 | + $ticket->set('TKT_name', $PR->get('PRC_name')); |
|
748 | + $ticket->set('TKT_description', $PR->get('PRC_desc')); |
|
749 | + $ticket->save(); |
|
750 | + } |
|
751 | + } else { |
|
752 | + // we make sure this price is attached to base ticket. but ONLY if its not a tax ticket type. |
|
753 | + $ticket = EEM_Ticket::instance()->get_one_by_ID(1); |
|
754 | + $ticket->_add_relation_to($PRC_ID, 'Price'); |
|
755 | + $ticket->save(); |
|
756 | + } |
|
757 | + } |
|
758 | + |
|
759 | + $action_desc = 'updated'; |
|
760 | + } |
|
761 | + |
|
762 | + $query_args = array('action' => 'edit_price', 'id' => $PRC_ID); |
|
763 | + |
|
764 | + $this->_redirect_after_action($success, 'Prices', $action_desc, $query_args); |
|
765 | + } |
|
766 | + |
|
767 | + |
|
768 | + /** |
|
769 | + * _trash_or_restore_price |
|
770 | + * |
|
771 | + * @param boolean $trash - whether to move item to trash (TRUE) or restore it (FALSE) |
|
772 | + * @access protected |
|
773 | + * @return void |
|
774 | + */ |
|
775 | + protected function _trash_or_restore_price($trash = true) |
|
776 | + { |
|
777 | + |
|
778 | + // echo '<h3>'. __CLASS__ . '->' . __FUNCTION__ . ' <br /><span style="font-size:10px;font-weight:normal;">' . __FILE__ . '<br />line no: ' . __LINE__ . '</span></h3>'; |
|
779 | + do_action('AHEE_log', __FILE__, __FUNCTION__, ''); |
|
780 | + |
|
781 | + require_once(EE_MODELS . 'EEM_Price.model.php'); |
|
782 | + $PRC = EEM_Price::instance(); |
|
783 | + |
|
784 | + $success = 1; |
|
785 | + $PRC_deleted = $trash ? true : false; |
|
786 | + |
|
787 | + // get base ticket for updating |
|
788 | + $ticket = EEM_Ticket::instance()->get_one_by_ID(1); |
|
789 | + // Checkboxes |
|
790 | + if (! empty($this->_req_data['checkbox']) && is_array($this->_req_data['checkbox'])) { |
|
791 | + // if array has more than one element than success message should be plural |
|
792 | + $success = count($this->_req_data['checkbox']) > 1 ? 2 : 1; |
|
793 | + // cycle thru checkboxes |
|
794 | + while (list($PRC_ID, $value) = each($this->_req_data['checkbox'])) { |
|
795 | + if (! $PRC->update_by_ID(array('PRC_deleted' => $PRC_deleted), absint($PRC_ID))) { |
|
796 | + $success = 0; |
|
797 | + } else { |
|
798 | + $PR = EEM_Price::instance()->get_one_by_ID($PRC_ID); |
|
799 | + if ($PR->type_obj()->base_type() !== EEM_Price_Type::base_type_tax) { |
|
800 | + // if trashing then remove relations to base default ticket. If restoring then add back to base default ticket |
|
801 | + if ($PRC_deleted) { |
|
802 | + $ticket->_remove_relation_to($PRC_ID, 'Price'); |
|
803 | + } else { |
|
804 | + $ticket->_add_relation_to($PRC_ID, 'Price'); |
|
805 | + } |
|
806 | + $ticket->save(); |
|
807 | + } |
|
808 | + } |
|
809 | + } |
|
810 | + } else { |
|
811 | + // grab single id and delete |
|
812 | + $PRC_ID = isset($this->_req_data['id']) ? absint($this->_req_data['id']) : 0; |
|
813 | + if (empty($PRC_ID) || ! $PRC->update_by_ID(array('PRC_deleted' => $PRC_deleted), $PRC_ID)) { |
|
814 | + $success = 0; |
|
815 | + } else { |
|
816 | + $PR = EEM_Price::instance()->get_one_by_ID($PRC_ID); |
|
817 | + if ($PR->type_obj()->base_type() !== EEM_Price_Type::base_type_tax) { |
|
818 | + // if trashing then remove relations to base default ticket. If restoring then add back to base default ticket |
|
819 | + if ($PRC_deleted) { |
|
820 | + $ticket->_remove_relation_to($PRC_ID, 'Price'); |
|
821 | + } else { |
|
822 | + $ticket->_add_relation_to($PRC_ID, 'Price'); |
|
823 | + } |
|
824 | + $ticket->save(); |
|
825 | + } |
|
826 | + } |
|
827 | + } |
|
828 | + $query_args = array( |
|
829 | + 'action' => 'default', |
|
830 | + ); |
|
831 | + |
|
832 | + if ($success) { |
|
833 | + if ($trash) { |
|
834 | + $msg = $success == 2 |
|
835 | + ? __('The Prices have been trashed.', 'event_espresso') |
|
836 | + : __( |
|
837 | + 'The Price has been trashed.', |
|
838 | + 'event_espresso' |
|
839 | + ); |
|
840 | + } else { |
|
841 | + $msg = $success == 2 |
|
842 | + ? __('The Prices have been restored.', 'event_espresso') |
|
843 | + : __( |
|
844 | + 'The Price has been restored.', |
|
845 | + 'event_espresso' |
|
846 | + ); |
|
847 | + } |
|
848 | + |
|
849 | + EE_Error::add_success($msg); |
|
850 | + } |
|
851 | + |
|
852 | + $this->_redirect_after_action(false, '', '', $query_args, true); |
|
853 | + } |
|
854 | + |
|
855 | + |
|
856 | + /** |
|
857 | + * _delete_price |
|
858 | + * |
|
859 | + * @access protected |
|
860 | + * @return void |
|
861 | + */ |
|
862 | + protected function _delete_price() |
|
863 | + { |
|
864 | + |
|
865 | + // echo '<h3>'. __CLASS__ . '->' . __FUNCTION__ . ' <br /><span style="font-size:10px;font-weight:normal;">' . __FILE__ . '<br />line no: ' . __LINE__ . '</span></h3>'; |
|
866 | + do_action('AHEE_log', __FILE__, __FUNCTION__, ''); |
|
867 | + |
|
868 | + require_once(EE_MODELS . 'EEM_Price.model.php'); |
|
869 | + $PRC = EEM_Price::instance(); |
|
870 | + |
|
871 | + $success = 1; |
|
872 | + // Checkboxes |
|
873 | + if (! empty($this->_req_data['checkbox']) && is_array($this->_req_data['checkbox'])) { |
|
874 | + // if array has more than one element than success message should be plural |
|
875 | + $success = count($this->_req_data['checkbox']) > 1 ? 2 : 1; |
|
876 | + // cycle thru bulk action checkboxes |
|
877 | + while (list($PRC_ID, $value) = each($this->_req_data['checkbox'])) { |
|
878 | + if (! $PRC->delete_permanently_by_ID(absint($PRC_ID))) { |
|
879 | + $success = 0; |
|
880 | + } |
|
881 | + } |
|
882 | + } else { |
|
883 | + // grab single id and delete |
|
884 | + $PRC_ID = absint($this->_req_data['id']); |
|
885 | + if (! $PRC->delete_permanently_by_ID($PRC_ID)) { |
|
886 | + $success = 0; |
|
887 | + } |
|
888 | + } |
|
889 | + |
|
890 | + $this->_redirect_after_action($success, 'Prices', 'deleted', array()); |
|
891 | + } |
|
892 | + |
|
893 | + |
|
894 | + public function update_price_order() |
|
895 | + { |
|
896 | + $success = __('Price order was updated successfully.', 'event_espresso'); |
|
897 | + |
|
898 | + // grab our row IDs |
|
899 | + $row_ids = isset($this->_req_data['row_ids']) && ! empty($this->_req_data['row_ids']) ? explode( |
|
900 | + ',', |
|
901 | + rtrim( |
|
902 | + $this->_req_data['row_ids'], |
|
903 | + ',' |
|
904 | + ) |
|
905 | + ) : false; |
|
906 | + |
|
907 | + if (is_array($row_ids)) { |
|
908 | + for ($i = 0; $i < count($row_ids); $i++) { |
|
909 | + // Update the prices when re-ordering |
|
910 | + $id = absint($row_ids[ $i ]); |
|
911 | + if (EEM_Price::instance()->update( |
|
912 | + array('PRC_order' => $i + 1), |
|
913 | + array(array('PRC_ID' => $id)) |
|
914 | + ) === false) { |
|
915 | + $success = false; |
|
916 | + } |
|
917 | + } |
|
918 | + } else { |
|
919 | + $success = false; |
|
920 | + } |
|
921 | + |
|
922 | + $errors = ! $success ? __('An error occurred. The price order was not updated.', 'event_espresso') : false; |
|
923 | + |
|
924 | + echo wp_json_encode(array('return_data' => false, 'success' => $success, 'errors' => $errors)); |
|
925 | + die(); |
|
926 | + } |
|
927 | + |
|
928 | + |
|
929 | + |
|
930 | + |
|
931 | + |
|
932 | + |
|
933 | + /************************************************************************************************************************************************************** |
|
934 | 934 | ******************************************************************** TICKET PRICE TYPES ****************************************************************** |
935 | 935 | **************************************************************************************************************************************************************/ |
936 | 936 | |
937 | 937 | |
938 | - /** |
|
939 | - * generates HTML for main Prices Admin page |
|
940 | - * |
|
941 | - * @access protected |
|
942 | - * @return void |
|
943 | - */ |
|
944 | - protected function _price_types_overview_list_table() |
|
945 | - { |
|
946 | - $this->_admin_page_title .= ' ' . $this->get_action_link_or_button( |
|
947 | - 'add_new_price_type', |
|
948 | - 'add_type', |
|
949 | - array(), |
|
950 | - 'add-new-h2' |
|
951 | - ); |
|
952 | - $this->admin_page_title .= $this->_learn_more_about_pricing_link(); |
|
953 | - $this->_search_btn_label = __('Price Types', 'event_espresso'); |
|
954 | - $this->display_admin_list_table_page_with_no_sidebar(); |
|
955 | - } |
|
956 | - |
|
957 | - |
|
958 | - /** |
|
959 | - * retrieve data for Price Types List table |
|
960 | - * |
|
961 | - * @access public |
|
962 | - * @param int $per_page how many prices displayed per page |
|
963 | - * @param boolean $count return the count or objects |
|
964 | - * @param boolean $trashed whether the current view is of the trash can - eww yuck! |
|
965 | - * @return mixed (int|array) int = count || array of price objects |
|
966 | - */ |
|
967 | - public function get_price_types_overview_data($per_page = 10, $count = false, $trashed = false) |
|
968 | - { |
|
969 | - |
|
970 | - do_action('AHEE_log', __FILE__, __FUNCTION__, ''); |
|
971 | - // start with an empty array |
|
972 | - |
|
973 | - require_once(PRICING_ADMIN . 'Price_Types_List_Table.class.php'); |
|
974 | - require_once(EE_MODELS . 'EEM_Price_Type.model.php'); |
|
975 | - |
|
976 | - $this->_req_data['orderby'] = empty($this->_req_data['orderby']) ? '' : $this->_req_data['orderby']; |
|
977 | - $order = (isset($this->_req_data['order']) && ! empty($this->_req_data['order'])) ? $this->_req_data['order'] |
|
978 | - : 'ASC'; |
|
979 | - switch ($this->_req_data['orderby']) { |
|
980 | - case 'name': |
|
981 | - $orderby = array('PRT_name' => $order); |
|
982 | - break; |
|
983 | - default: |
|
984 | - $orderby = array('PRT_order' => $order); |
|
985 | - } |
|
986 | - |
|
987 | - |
|
988 | - $current_page = isset($this->_req_data['paged']) && ! empty($this->_req_data['paged']) |
|
989 | - ? $this->_req_data['paged'] : 1; |
|
990 | - $per_page = isset($this->_req_data['perpage']) && ! empty($this->_req_data['perpage']) |
|
991 | - ? $this->_req_data['perpage'] : $per_page; |
|
992 | - |
|
993 | - $offset = ($current_page - 1) * $per_page; |
|
994 | - $limit = array($offset, $per_page); |
|
995 | - |
|
996 | - $_where = array('PRT_deleted' => $trashed, 'PBT_ID' => array('!=', 1)); |
|
997 | - |
|
998 | - if (isset($this->_req_data['s'])) { |
|
999 | - $sstr = '%' . $this->_req_data['s'] . '%'; |
|
1000 | - $_where['OR'] = array( |
|
1001 | - 'PRT_name' => array('LIKE', $sstr), |
|
1002 | - ); |
|
1003 | - } |
|
1004 | - $query_params = array( |
|
1005 | - $_where, |
|
1006 | - 'order_by' => $orderby, |
|
1007 | - 'limit' => $limit, |
|
1008 | - ); |
|
1009 | - if ($count) { |
|
1010 | - return EEM_Price_Type::instance()->count_deleted_and_undeleted($query_params); |
|
1011 | - } else { |
|
1012 | - return EEM_Price_Type::instance()->get_all_deleted_and_undeleted($query_params); |
|
1013 | - } |
|
1014 | - |
|
1015 | - // EEH_Debug_Tools::printr( $price_types, '$price_types <br /><span style="font-size:10px;font-weight:normal;">' . __FILE__ . '<br />line no: ' . __LINE__ . '</span>', 'auto' ); |
|
1016 | - } |
|
1017 | - |
|
1018 | - |
|
1019 | - /** |
|
1020 | - * _edit_price_type_details |
|
1021 | - * |
|
1022 | - * @access protected |
|
1023 | - * @return void |
|
1024 | - */ |
|
1025 | - protected function _edit_price_type_details() |
|
1026 | - { |
|
1027 | - |
|
1028 | - do_action('AHEE_log', __FILE__, __FUNCTION__, ''); |
|
1029 | - |
|
1030 | - |
|
1031 | - // grab price type ID |
|
1032 | - $PRT_ID = isset($this->_req_data['id']) && ! empty($this->_req_data['id']) ? absint($this->_req_data['id']) |
|
1033 | - : false; |
|
1034 | - // change page title based on request action |
|
1035 | - switch ($this->_req_action) { |
|
1036 | - case 'add_new_price_type': |
|
1037 | - $this->_admin_page_title = esc_html__('Add New Price Type', 'event_espresso'); |
|
1038 | - break; |
|
1039 | - case 'edit_price_type': |
|
1040 | - $this->_admin_page_title = esc_html__('Edit Price Type', 'event_espresso'); |
|
1041 | - break; |
|
1042 | - default: |
|
1043 | - $this->_admin_page_title = ucwords(str_replace('_', ' ', $this->_req_action)); |
|
1044 | - } |
|
1045 | - // add PRT_ID to title if editing |
|
1046 | - $this->_admin_page_title = $PRT_ID ? $this->_admin_page_title . ' # ' . $PRT_ID : $this->_admin_page_title; |
|
1047 | - |
|
1048 | - if ($PRT_ID) { |
|
1049 | - $price_type = EEM_Price_Type::instance()->get_one_by_ID($PRT_ID); |
|
1050 | - $additional_hidden_fields = array('PRT_ID' => array('type' => 'hidden', 'value' => $PRT_ID)); |
|
1051 | - $this->_set_add_edit_form_tags('update_price_type', $additional_hidden_fields); |
|
1052 | - } else { |
|
1053 | - $price_type = EEM_Price_Type::instance()->get_new_price_type(); |
|
1054 | - $this->_set_add_edit_form_tags('insert_price_type'); |
|
1055 | - } |
|
1056 | - |
|
1057 | - $this->_template_args['PRT_ID'] = $PRT_ID; |
|
1058 | - $this->_template_args['price_type'] = $price_type; |
|
1059 | - |
|
1060 | - |
|
1061 | - $base_types = EEM_Price_Type::instance()->get_base_types(); |
|
1062 | - $select_values = array(); |
|
1063 | - foreach ($base_types as $ref => $text) { |
|
1064 | - if ($ref == EEM_Price_Type::base_type_base_price) { |
|
1065 | - // do not allow creation of base_type_base_prices because that's a system only base type. |
|
1066 | - continue; |
|
1067 | - } |
|
1068 | - $values[] = array('id' => $ref, 'text' => $text); |
|
1069 | - } |
|
1070 | - |
|
1071 | - |
|
1072 | - $this->_template_args['base_type_select'] = EEH_Form_Fields::select_input( |
|
1073 | - 'base_type', |
|
1074 | - $values, |
|
1075 | - $price_type->base_type(), |
|
1076 | - 'id="price-type-base-type-slct"' |
|
1077 | - ); |
|
1078 | - $this->_template_args['learn_more_about_pricing_link'] = $this->_learn_more_about_pricing_link(); |
|
1079 | - $redirect_URL = add_query_arg(array('action' => 'price_types'), $this->_admin_base_url); |
|
1080 | - $this->_set_publish_post_box_vars('id', $PRT_ID, false, $redirect_URL); |
|
1081 | - // the details template wrapper |
|
1082 | - $this->display_admin_page_with_sidebar(); |
|
1083 | - } |
|
1084 | - |
|
1085 | - |
|
1086 | - /** |
|
1087 | - * declare price type details page metaboxes |
|
1088 | - * |
|
1089 | - * @access protected |
|
1090 | - * @return void |
|
1091 | - */ |
|
1092 | - protected function _price_type_details_meta_boxes() |
|
1093 | - { |
|
1094 | - add_meta_box( |
|
1095 | - 'edit-price-details-mbox', |
|
1096 | - __('Price Type Details', 'event_espresso'), |
|
1097 | - array($this, '_edit_price_type_details_meta_box'), |
|
1098 | - $this->wp_page_slug, |
|
1099 | - 'normal', |
|
1100 | - 'high' |
|
1101 | - ); |
|
1102 | - } |
|
1103 | - |
|
1104 | - |
|
1105 | - /** |
|
1106 | - * _edit_price_type_details_meta_box |
|
1107 | - * |
|
1108 | - * @access public |
|
1109 | - * @return void |
|
1110 | - */ |
|
1111 | - public function _edit_price_type_details_meta_box() |
|
1112 | - { |
|
1113 | - echo EEH_Template::display_template( |
|
1114 | - PRICING_TEMPLATE_PATH . 'pricing_type_details_main_meta_box.template.php', |
|
1115 | - $this->_template_args, |
|
1116 | - true |
|
1117 | - ); |
|
1118 | - } |
|
1119 | - |
|
1120 | - |
|
1121 | - /** |
|
1122 | - * set_price_type_column_values |
|
1123 | - * |
|
1124 | - * @access protected |
|
1125 | - * @return void |
|
1126 | - */ |
|
1127 | - protected function set_price_type_column_values() |
|
1128 | - { |
|
1129 | - |
|
1130 | - do_action('AHEE_log', __FILE__, __FUNCTION__, ''); |
|
1131 | - |
|
1132 | - $base_type = ! empty($this->_req_data['base_type']) ? $this->_req_data['base_type'] |
|
1133 | - : EEM_Price_Type::base_type_base_price; |
|
1134 | - |
|
1135 | - switch ($base_type) { |
|
1136 | - case EEM_Price_Type::base_type_base_price: |
|
1137 | - $this->_req_data['PBT_ID'] = EEM_Price_Type::base_type_base_price; |
|
1138 | - $this->_req_data['PRT_is_percent'] = 0; |
|
1139 | - $this->_req_data['PRT_order'] = 0; |
|
1140 | - break; |
|
1141 | - |
|
1142 | - case EEM_Price_Type::base_type_discount: |
|
1143 | - $this->_req_data['PBT_ID'] = EEM_Price_Type::base_type_discount; |
|
1144 | - break; |
|
1145 | - |
|
1146 | - case EEM_Price_Type::base_type_surcharge: |
|
1147 | - $this->_req_data['PBT_ID'] = EEM_Price_Type::base_type_surcharge; |
|
1148 | - break; |
|
1149 | - |
|
1150 | - case EEM_Price_Type::base_type_tax: |
|
1151 | - $this->_req_data['PBT_ID'] = EEM_Price_Type::base_type_tax; |
|
1152 | - $this->_req_data['PRT_is_percent'] = 1; |
|
1153 | - break; |
|
1154 | - }/**/ |
|
1155 | - |
|
1156 | - $set_column_values = array( |
|
1157 | - 'PRT_name' => $this->_req_data['PRT_name'], |
|
1158 | - 'PBT_ID' => absint($this->_req_data['PBT_ID']), |
|
1159 | - 'PRT_is_percent' => absint($this->_req_data['PRT_is_percent']), |
|
1160 | - 'PRT_order' => absint($this->_req_data['PRT_order']), |
|
1161 | - 'PRT_deleted' => 0, |
|
1162 | - ); |
|
1163 | - |
|
1164 | - return $set_column_values; |
|
1165 | - } |
|
1166 | - |
|
1167 | - |
|
1168 | - /** |
|
1169 | - * _insert_or_update_price_type |
|
1170 | - * |
|
1171 | - * @param boolean $new_price_type - whether to insert or update |
|
1172 | - * @access protected |
|
1173 | - * @return void |
|
1174 | - */ |
|
1175 | - protected function _insert_or_update_price_type($new_price_type = false) |
|
1176 | - { |
|
1177 | - do_action('AHEE_log', __FILE__, __FUNCTION__, ''); |
|
1178 | - |
|
1179 | - require_once(EE_MODELS . 'EEM_Price_Type.model.php'); |
|
1180 | - $PRT = EEM_Price_Type::instance(); |
|
1181 | - |
|
1182 | - // why be so pessimistic ??? : ( |
|
1183 | - $success = 0; |
|
1184 | - |
|
1185 | - $set_column_values = $this->set_price_type_column_values(); |
|
1186 | - // is this a new Price ? |
|
1187 | - if ($new_price_type) { |
|
1188 | - // run the insert |
|
1189 | - if ($PRT_ID = $PRT->insert($set_column_values)) { |
|
1190 | - $success = 1; |
|
1191 | - } |
|
1192 | - $action_desc = 'created'; |
|
1193 | - } else { |
|
1194 | - $PRT_ID = absint($this->_req_data['PRT_ID']); |
|
1195 | - // run the update |
|
1196 | - $where_cols_n_values = array('PRT_ID' => $PRT_ID); |
|
1197 | - if ($PRT->update($set_column_values, array($where_cols_n_values))) { |
|
1198 | - $success = 1; |
|
1199 | - } |
|
1200 | - $action_desc = 'updated'; |
|
1201 | - } |
|
1202 | - |
|
1203 | - $query_args = array('action' => 'edit_price_type', 'id' => $PRT_ID); |
|
1204 | - $this->_redirect_after_action($success, 'Price Type', $action_desc, $query_args); |
|
1205 | - } |
|
1206 | - |
|
1207 | - |
|
1208 | - /** |
|
1209 | - * _trash_or_restore_price_type |
|
1210 | - * |
|
1211 | - * @param boolean $trash - whether to move item to trash (TRUE) or restore it (FALSE) |
|
1212 | - * @access protected |
|
1213 | - * @return void |
|
1214 | - */ |
|
1215 | - protected function _trash_or_restore_price_type($trash = true) |
|
1216 | - { |
|
1217 | - do_action('AHEE_log', __FILE__, __FUNCTION__, ''); |
|
1218 | - |
|
1219 | - require_once(EE_MODELS . 'EEM_Price_Type.model.php'); |
|
1220 | - $PRT = EEM_Price_Type::instance(); |
|
1221 | - |
|
1222 | - $success = 1; |
|
1223 | - $PRT_deleted = $trash ? true : false; |
|
1224 | - // Checkboxes |
|
1225 | - if (! empty($this->_req_data['checkbox']) && is_array($this->_req_data['checkbox'])) { |
|
1226 | - // if array has more than one element than success message should be plural |
|
1227 | - $success = count($this->_req_data['checkbox']) > 1 ? 2 : 1; |
|
1228 | - $what = count($this->_req_data['checkbox']) > 1 ? 'Price Types' : 'Price Type'; |
|
1229 | - // cycle thru checkboxes |
|
1230 | - while (list($PRT_ID, $value) = each($this->_req_data['checkbox'])) { |
|
1231 | - if (! $PRT->update_by_ID(array('PRT_deleted' => $PRT_deleted), $PRT_ID)) { |
|
1232 | - $success = 0; |
|
1233 | - } |
|
1234 | - } |
|
1235 | - } else { |
|
1236 | - // grab single id and delete |
|
1237 | - $PRT_ID = isset($this->_req_data['id']) ? absint($this->_req_data['id']) : 0; |
|
1238 | - if (empty($PRT_ID) || ! $PRT->update_by_ID(array('PRT_deleted' => $PRT_deleted), $PRT_ID)) { |
|
1239 | - $success = 0; |
|
1240 | - } |
|
1241 | - $what = 'Price Type'; |
|
1242 | - } |
|
1243 | - |
|
1244 | - $query_args = array('action' => 'price_types'); |
|
1245 | - if ($success) { |
|
1246 | - if ($trash) { |
|
1247 | - $msg = $success > 1 |
|
1248 | - ? __('The Price Types have been trashed.', 'event_espresso') |
|
1249 | - : __( |
|
1250 | - 'The Price Type has been trashed.', |
|
1251 | - 'event_espresso' |
|
1252 | - ); |
|
1253 | - } else { |
|
1254 | - $msg = $success > 1 |
|
1255 | - ? __('The Price Types have been restored.', 'event_espresso') |
|
1256 | - : __( |
|
1257 | - 'The Price Type has been restored.', |
|
1258 | - 'event_espresso' |
|
1259 | - ); |
|
1260 | - } |
|
1261 | - EE_Error::add_success($msg); |
|
1262 | - } |
|
1263 | - |
|
1264 | - $this->_redirect_after_action(false, '', '', $query_args, true); |
|
1265 | - } |
|
1266 | - |
|
1267 | - |
|
1268 | - /** |
|
1269 | - * _delete_price_type |
|
1270 | - * |
|
1271 | - * @access protected |
|
1272 | - * @return void |
|
1273 | - */ |
|
1274 | - protected function _delete_price_type() |
|
1275 | - { |
|
1276 | - do_action('AHEE_log', __FILE__, __FUNCTION__, ''); |
|
1277 | - |
|
1278 | - $PRT = EEM_Price_Type::instance(); |
|
1279 | - |
|
1280 | - $success = 1; |
|
1281 | - // Checkboxes |
|
1282 | - if (! empty($this->_req_data['checkbox'])) { |
|
1283 | - // if array has more than one element than success message should be plural |
|
1284 | - $success = count($this->_req_data['checkbox']) > 1 ? 2 : 1; |
|
1285 | - $what = $PRT->item_name($success); |
|
1286 | - // cycle thru bulk action checkboxes |
|
1287 | - while (list($PRT_ID, $value) = each($this->_req_data['checkbox'])) { |
|
1288 | - if (! $PRT->delete_permanently_by_ID($PRT_ID)) { |
|
1289 | - $success = 0; |
|
1290 | - } |
|
1291 | - } |
|
1292 | - } |
|
1293 | - |
|
1294 | - |
|
1295 | - $query_args = array('action' => 'price_types'); |
|
1296 | - $this->_redirect_after_action($success, $what, 'deleted', $query_args); |
|
1297 | - } |
|
1298 | - |
|
1299 | - |
|
1300 | - /** |
|
1301 | - * _learn_more_about_pricing_link |
|
1302 | - * |
|
1303 | - * @access protected |
|
1304 | - * @return string |
|
1305 | - */ |
|
1306 | - protected function _learn_more_about_pricing_link() |
|
1307 | - { |
|
1308 | - return '<a class="hidden" style="margin:0 20px; cursor:pointer; font-size:12px;" >' . __( |
|
1309 | - 'learn more about how pricing works', |
|
1310 | - 'event_espresso' |
|
1311 | - ) . '</a>'; |
|
1312 | - } |
|
1313 | - |
|
1314 | - |
|
1315 | - protected function _tax_settings() |
|
1316 | - { |
|
1317 | - $this->_set_add_edit_form_tags('update_tax_settings'); |
|
1318 | - $this->_set_publish_post_box_vars(null, false, false, null, false); |
|
1319 | - $this->_template_args['admin_page_content'] = $this->tax_settings_form()->get_html(); |
|
1320 | - $this->display_admin_page_with_sidebar(); |
|
1321 | - } |
|
1322 | - |
|
1323 | - |
|
1324 | - /** |
|
1325 | - * @return \EE_Form_Section_Proper |
|
1326 | - * @throws \EE_Error |
|
1327 | - */ |
|
1328 | - protected function tax_settings_form() |
|
1329 | - { |
|
1330 | - return new EE_Form_Section_Proper( |
|
1331 | - array( |
|
1332 | - 'name' => 'tax_settings_form', |
|
1333 | - 'html_id' => 'tax_settings_form', |
|
1334 | - 'layout_strategy' => new EE_Div_Per_Section_Layout(), |
|
1335 | - 'subsections' => apply_filters( |
|
1336 | - 'FHEE__Pricing_Admin_Page__tax_settings_form__form_subsections', |
|
1337 | - array( |
|
1338 | - 'tax_settings' => new EE_Form_Section_Proper( |
|
1339 | - array( |
|
1340 | - 'name' => 'tax_settings_tbl', |
|
1341 | - 'html_id' => 'tax_settings_tbl', |
|
1342 | - 'html_class' => 'form-table', |
|
1343 | - 'layout_strategy' => new EE_Admin_Two_Column_Layout(), |
|
1344 | - 'subsections' => array( |
|
1345 | - 'prices_displayed_including_taxes' => new EE_Yes_No_Input( |
|
1346 | - array( |
|
1347 | - 'html_label_text' => __( |
|
1348 | - "Show Prices With Taxes Included?", |
|
1349 | - 'event_espresso' |
|
1350 | - ), |
|
1351 | - 'html_help_text' => __( |
|
1352 | - 'Indicates whether or not to display prices with the taxes included', |
|
1353 | - 'event_espresso' |
|
1354 | - ), |
|
1355 | - 'default' => isset( |
|
1356 | - EE_Registry::instance() |
|
1357 | - ->CFG |
|
1358 | - ->tax_settings |
|
1359 | - ->prices_displayed_including_taxes |
|
1360 | - ) |
|
1361 | - ? EE_Registry::instance() |
|
1362 | - ->CFG |
|
1363 | - ->tax_settings |
|
1364 | - ->prices_displayed_including_taxes |
|
1365 | - : true, |
|
1366 | - 'display_html_label_text' => false, |
|
1367 | - ) |
|
1368 | - ), |
|
1369 | - ), |
|
1370 | - ) |
|
1371 | - ), |
|
1372 | - ) |
|
1373 | - ), |
|
1374 | - ) |
|
1375 | - ); |
|
1376 | - } |
|
1377 | - |
|
1378 | - |
|
1379 | - /** |
|
1380 | - * _update_tax_settings |
|
1381 | - * |
|
1382 | - * @since 4.9.13 |
|
1383 | - * @return void |
|
1384 | - */ |
|
1385 | - public function _update_tax_settings() |
|
1386 | - { |
|
1387 | - if (! isset(EE_Registry::instance()->CFG->tax_settings)) { |
|
1388 | - EE_Registry::instance()->CFG->tax_settings = new EE_Tax_Config(); |
|
1389 | - } |
|
1390 | - try { |
|
1391 | - $tax_form = $this->tax_settings_form(); |
|
1392 | - // check for form submission |
|
1393 | - if ($tax_form->was_submitted()) { |
|
1394 | - // capture form data |
|
1395 | - $tax_form->receive_form_submission(); |
|
1396 | - // validate form data |
|
1397 | - if ($tax_form->is_valid()) { |
|
1398 | - // grab validated data from form |
|
1399 | - $valid_data = $tax_form->valid_data(); |
|
1400 | - // set data on config |
|
1401 | - EE_Registry::instance() |
|
1402 | - ->CFG |
|
1403 | - ->tax_settings |
|
1404 | - ->prices_displayed_including_taxes |
|
1405 | - = $valid_data['tax_settings']['prices_displayed_including_taxes']; |
|
1406 | - } else { |
|
1407 | - if ($tax_form->submission_error_message() !== '') { |
|
1408 | - EE_Error::add_error( |
|
1409 | - $tax_form->submission_error_message(), |
|
1410 | - __FILE__, |
|
1411 | - __FUNCTION__, |
|
1412 | - __LINE__ |
|
1413 | - ); |
|
1414 | - } |
|
1415 | - } |
|
1416 | - } |
|
1417 | - } catch (EE_Error $e) { |
|
1418 | - EE_Error::add_error($e->get_error(), __FILE__, __FUNCTION__, __LINE__); |
|
1419 | - } |
|
1420 | - |
|
1421 | - $what = 'Tax Settings'; |
|
1422 | - $success = $this->_update_espresso_configuration( |
|
1423 | - $what, |
|
1424 | - EE_Registry::instance()->CFG->tax_settings, |
|
1425 | - __FILE__, |
|
1426 | - __FUNCTION__, |
|
1427 | - __LINE__ |
|
1428 | - ); |
|
1429 | - $this->_redirect_after_action($success, $what, 'updated', array('action' => 'tax_settings')); |
|
1430 | - } |
|
938 | + /** |
|
939 | + * generates HTML for main Prices Admin page |
|
940 | + * |
|
941 | + * @access protected |
|
942 | + * @return void |
|
943 | + */ |
|
944 | + protected function _price_types_overview_list_table() |
|
945 | + { |
|
946 | + $this->_admin_page_title .= ' ' . $this->get_action_link_or_button( |
|
947 | + 'add_new_price_type', |
|
948 | + 'add_type', |
|
949 | + array(), |
|
950 | + 'add-new-h2' |
|
951 | + ); |
|
952 | + $this->admin_page_title .= $this->_learn_more_about_pricing_link(); |
|
953 | + $this->_search_btn_label = __('Price Types', 'event_espresso'); |
|
954 | + $this->display_admin_list_table_page_with_no_sidebar(); |
|
955 | + } |
|
956 | + |
|
957 | + |
|
958 | + /** |
|
959 | + * retrieve data for Price Types List table |
|
960 | + * |
|
961 | + * @access public |
|
962 | + * @param int $per_page how many prices displayed per page |
|
963 | + * @param boolean $count return the count or objects |
|
964 | + * @param boolean $trashed whether the current view is of the trash can - eww yuck! |
|
965 | + * @return mixed (int|array) int = count || array of price objects |
|
966 | + */ |
|
967 | + public function get_price_types_overview_data($per_page = 10, $count = false, $trashed = false) |
|
968 | + { |
|
969 | + |
|
970 | + do_action('AHEE_log', __FILE__, __FUNCTION__, ''); |
|
971 | + // start with an empty array |
|
972 | + |
|
973 | + require_once(PRICING_ADMIN . 'Price_Types_List_Table.class.php'); |
|
974 | + require_once(EE_MODELS . 'EEM_Price_Type.model.php'); |
|
975 | + |
|
976 | + $this->_req_data['orderby'] = empty($this->_req_data['orderby']) ? '' : $this->_req_data['orderby']; |
|
977 | + $order = (isset($this->_req_data['order']) && ! empty($this->_req_data['order'])) ? $this->_req_data['order'] |
|
978 | + : 'ASC'; |
|
979 | + switch ($this->_req_data['orderby']) { |
|
980 | + case 'name': |
|
981 | + $orderby = array('PRT_name' => $order); |
|
982 | + break; |
|
983 | + default: |
|
984 | + $orderby = array('PRT_order' => $order); |
|
985 | + } |
|
986 | + |
|
987 | + |
|
988 | + $current_page = isset($this->_req_data['paged']) && ! empty($this->_req_data['paged']) |
|
989 | + ? $this->_req_data['paged'] : 1; |
|
990 | + $per_page = isset($this->_req_data['perpage']) && ! empty($this->_req_data['perpage']) |
|
991 | + ? $this->_req_data['perpage'] : $per_page; |
|
992 | + |
|
993 | + $offset = ($current_page - 1) * $per_page; |
|
994 | + $limit = array($offset, $per_page); |
|
995 | + |
|
996 | + $_where = array('PRT_deleted' => $trashed, 'PBT_ID' => array('!=', 1)); |
|
997 | + |
|
998 | + if (isset($this->_req_data['s'])) { |
|
999 | + $sstr = '%' . $this->_req_data['s'] . '%'; |
|
1000 | + $_where['OR'] = array( |
|
1001 | + 'PRT_name' => array('LIKE', $sstr), |
|
1002 | + ); |
|
1003 | + } |
|
1004 | + $query_params = array( |
|
1005 | + $_where, |
|
1006 | + 'order_by' => $orderby, |
|
1007 | + 'limit' => $limit, |
|
1008 | + ); |
|
1009 | + if ($count) { |
|
1010 | + return EEM_Price_Type::instance()->count_deleted_and_undeleted($query_params); |
|
1011 | + } else { |
|
1012 | + return EEM_Price_Type::instance()->get_all_deleted_and_undeleted($query_params); |
|
1013 | + } |
|
1014 | + |
|
1015 | + // EEH_Debug_Tools::printr( $price_types, '$price_types <br /><span style="font-size:10px;font-weight:normal;">' . __FILE__ . '<br />line no: ' . __LINE__ . '</span>', 'auto' ); |
|
1016 | + } |
|
1017 | + |
|
1018 | + |
|
1019 | + /** |
|
1020 | + * _edit_price_type_details |
|
1021 | + * |
|
1022 | + * @access protected |
|
1023 | + * @return void |
|
1024 | + */ |
|
1025 | + protected function _edit_price_type_details() |
|
1026 | + { |
|
1027 | + |
|
1028 | + do_action('AHEE_log', __FILE__, __FUNCTION__, ''); |
|
1029 | + |
|
1030 | + |
|
1031 | + // grab price type ID |
|
1032 | + $PRT_ID = isset($this->_req_data['id']) && ! empty($this->_req_data['id']) ? absint($this->_req_data['id']) |
|
1033 | + : false; |
|
1034 | + // change page title based on request action |
|
1035 | + switch ($this->_req_action) { |
|
1036 | + case 'add_new_price_type': |
|
1037 | + $this->_admin_page_title = esc_html__('Add New Price Type', 'event_espresso'); |
|
1038 | + break; |
|
1039 | + case 'edit_price_type': |
|
1040 | + $this->_admin_page_title = esc_html__('Edit Price Type', 'event_espresso'); |
|
1041 | + break; |
|
1042 | + default: |
|
1043 | + $this->_admin_page_title = ucwords(str_replace('_', ' ', $this->_req_action)); |
|
1044 | + } |
|
1045 | + // add PRT_ID to title if editing |
|
1046 | + $this->_admin_page_title = $PRT_ID ? $this->_admin_page_title . ' # ' . $PRT_ID : $this->_admin_page_title; |
|
1047 | + |
|
1048 | + if ($PRT_ID) { |
|
1049 | + $price_type = EEM_Price_Type::instance()->get_one_by_ID($PRT_ID); |
|
1050 | + $additional_hidden_fields = array('PRT_ID' => array('type' => 'hidden', 'value' => $PRT_ID)); |
|
1051 | + $this->_set_add_edit_form_tags('update_price_type', $additional_hidden_fields); |
|
1052 | + } else { |
|
1053 | + $price_type = EEM_Price_Type::instance()->get_new_price_type(); |
|
1054 | + $this->_set_add_edit_form_tags('insert_price_type'); |
|
1055 | + } |
|
1056 | + |
|
1057 | + $this->_template_args['PRT_ID'] = $PRT_ID; |
|
1058 | + $this->_template_args['price_type'] = $price_type; |
|
1059 | + |
|
1060 | + |
|
1061 | + $base_types = EEM_Price_Type::instance()->get_base_types(); |
|
1062 | + $select_values = array(); |
|
1063 | + foreach ($base_types as $ref => $text) { |
|
1064 | + if ($ref == EEM_Price_Type::base_type_base_price) { |
|
1065 | + // do not allow creation of base_type_base_prices because that's a system only base type. |
|
1066 | + continue; |
|
1067 | + } |
|
1068 | + $values[] = array('id' => $ref, 'text' => $text); |
|
1069 | + } |
|
1070 | + |
|
1071 | + |
|
1072 | + $this->_template_args['base_type_select'] = EEH_Form_Fields::select_input( |
|
1073 | + 'base_type', |
|
1074 | + $values, |
|
1075 | + $price_type->base_type(), |
|
1076 | + 'id="price-type-base-type-slct"' |
|
1077 | + ); |
|
1078 | + $this->_template_args['learn_more_about_pricing_link'] = $this->_learn_more_about_pricing_link(); |
|
1079 | + $redirect_URL = add_query_arg(array('action' => 'price_types'), $this->_admin_base_url); |
|
1080 | + $this->_set_publish_post_box_vars('id', $PRT_ID, false, $redirect_URL); |
|
1081 | + // the details template wrapper |
|
1082 | + $this->display_admin_page_with_sidebar(); |
|
1083 | + } |
|
1084 | + |
|
1085 | + |
|
1086 | + /** |
|
1087 | + * declare price type details page metaboxes |
|
1088 | + * |
|
1089 | + * @access protected |
|
1090 | + * @return void |
|
1091 | + */ |
|
1092 | + protected function _price_type_details_meta_boxes() |
|
1093 | + { |
|
1094 | + add_meta_box( |
|
1095 | + 'edit-price-details-mbox', |
|
1096 | + __('Price Type Details', 'event_espresso'), |
|
1097 | + array($this, '_edit_price_type_details_meta_box'), |
|
1098 | + $this->wp_page_slug, |
|
1099 | + 'normal', |
|
1100 | + 'high' |
|
1101 | + ); |
|
1102 | + } |
|
1103 | + |
|
1104 | + |
|
1105 | + /** |
|
1106 | + * _edit_price_type_details_meta_box |
|
1107 | + * |
|
1108 | + * @access public |
|
1109 | + * @return void |
|
1110 | + */ |
|
1111 | + public function _edit_price_type_details_meta_box() |
|
1112 | + { |
|
1113 | + echo EEH_Template::display_template( |
|
1114 | + PRICING_TEMPLATE_PATH . 'pricing_type_details_main_meta_box.template.php', |
|
1115 | + $this->_template_args, |
|
1116 | + true |
|
1117 | + ); |
|
1118 | + } |
|
1119 | + |
|
1120 | + |
|
1121 | + /** |
|
1122 | + * set_price_type_column_values |
|
1123 | + * |
|
1124 | + * @access protected |
|
1125 | + * @return void |
|
1126 | + */ |
|
1127 | + protected function set_price_type_column_values() |
|
1128 | + { |
|
1129 | + |
|
1130 | + do_action('AHEE_log', __FILE__, __FUNCTION__, ''); |
|
1131 | + |
|
1132 | + $base_type = ! empty($this->_req_data['base_type']) ? $this->_req_data['base_type'] |
|
1133 | + : EEM_Price_Type::base_type_base_price; |
|
1134 | + |
|
1135 | + switch ($base_type) { |
|
1136 | + case EEM_Price_Type::base_type_base_price: |
|
1137 | + $this->_req_data['PBT_ID'] = EEM_Price_Type::base_type_base_price; |
|
1138 | + $this->_req_data['PRT_is_percent'] = 0; |
|
1139 | + $this->_req_data['PRT_order'] = 0; |
|
1140 | + break; |
|
1141 | + |
|
1142 | + case EEM_Price_Type::base_type_discount: |
|
1143 | + $this->_req_data['PBT_ID'] = EEM_Price_Type::base_type_discount; |
|
1144 | + break; |
|
1145 | + |
|
1146 | + case EEM_Price_Type::base_type_surcharge: |
|
1147 | + $this->_req_data['PBT_ID'] = EEM_Price_Type::base_type_surcharge; |
|
1148 | + break; |
|
1149 | + |
|
1150 | + case EEM_Price_Type::base_type_tax: |
|
1151 | + $this->_req_data['PBT_ID'] = EEM_Price_Type::base_type_tax; |
|
1152 | + $this->_req_data['PRT_is_percent'] = 1; |
|
1153 | + break; |
|
1154 | + }/**/ |
|
1155 | + |
|
1156 | + $set_column_values = array( |
|
1157 | + 'PRT_name' => $this->_req_data['PRT_name'], |
|
1158 | + 'PBT_ID' => absint($this->_req_data['PBT_ID']), |
|
1159 | + 'PRT_is_percent' => absint($this->_req_data['PRT_is_percent']), |
|
1160 | + 'PRT_order' => absint($this->_req_data['PRT_order']), |
|
1161 | + 'PRT_deleted' => 0, |
|
1162 | + ); |
|
1163 | + |
|
1164 | + return $set_column_values; |
|
1165 | + } |
|
1166 | + |
|
1167 | + |
|
1168 | + /** |
|
1169 | + * _insert_or_update_price_type |
|
1170 | + * |
|
1171 | + * @param boolean $new_price_type - whether to insert or update |
|
1172 | + * @access protected |
|
1173 | + * @return void |
|
1174 | + */ |
|
1175 | + protected function _insert_or_update_price_type($new_price_type = false) |
|
1176 | + { |
|
1177 | + do_action('AHEE_log', __FILE__, __FUNCTION__, ''); |
|
1178 | + |
|
1179 | + require_once(EE_MODELS . 'EEM_Price_Type.model.php'); |
|
1180 | + $PRT = EEM_Price_Type::instance(); |
|
1181 | + |
|
1182 | + // why be so pessimistic ??? : ( |
|
1183 | + $success = 0; |
|
1184 | + |
|
1185 | + $set_column_values = $this->set_price_type_column_values(); |
|
1186 | + // is this a new Price ? |
|
1187 | + if ($new_price_type) { |
|
1188 | + // run the insert |
|
1189 | + if ($PRT_ID = $PRT->insert($set_column_values)) { |
|
1190 | + $success = 1; |
|
1191 | + } |
|
1192 | + $action_desc = 'created'; |
|
1193 | + } else { |
|
1194 | + $PRT_ID = absint($this->_req_data['PRT_ID']); |
|
1195 | + // run the update |
|
1196 | + $where_cols_n_values = array('PRT_ID' => $PRT_ID); |
|
1197 | + if ($PRT->update($set_column_values, array($where_cols_n_values))) { |
|
1198 | + $success = 1; |
|
1199 | + } |
|
1200 | + $action_desc = 'updated'; |
|
1201 | + } |
|
1202 | + |
|
1203 | + $query_args = array('action' => 'edit_price_type', 'id' => $PRT_ID); |
|
1204 | + $this->_redirect_after_action($success, 'Price Type', $action_desc, $query_args); |
|
1205 | + } |
|
1206 | + |
|
1207 | + |
|
1208 | + /** |
|
1209 | + * _trash_or_restore_price_type |
|
1210 | + * |
|
1211 | + * @param boolean $trash - whether to move item to trash (TRUE) or restore it (FALSE) |
|
1212 | + * @access protected |
|
1213 | + * @return void |
|
1214 | + */ |
|
1215 | + protected function _trash_or_restore_price_type($trash = true) |
|
1216 | + { |
|
1217 | + do_action('AHEE_log', __FILE__, __FUNCTION__, ''); |
|
1218 | + |
|
1219 | + require_once(EE_MODELS . 'EEM_Price_Type.model.php'); |
|
1220 | + $PRT = EEM_Price_Type::instance(); |
|
1221 | + |
|
1222 | + $success = 1; |
|
1223 | + $PRT_deleted = $trash ? true : false; |
|
1224 | + // Checkboxes |
|
1225 | + if (! empty($this->_req_data['checkbox']) && is_array($this->_req_data['checkbox'])) { |
|
1226 | + // if array has more than one element than success message should be plural |
|
1227 | + $success = count($this->_req_data['checkbox']) > 1 ? 2 : 1; |
|
1228 | + $what = count($this->_req_data['checkbox']) > 1 ? 'Price Types' : 'Price Type'; |
|
1229 | + // cycle thru checkboxes |
|
1230 | + while (list($PRT_ID, $value) = each($this->_req_data['checkbox'])) { |
|
1231 | + if (! $PRT->update_by_ID(array('PRT_deleted' => $PRT_deleted), $PRT_ID)) { |
|
1232 | + $success = 0; |
|
1233 | + } |
|
1234 | + } |
|
1235 | + } else { |
|
1236 | + // grab single id and delete |
|
1237 | + $PRT_ID = isset($this->_req_data['id']) ? absint($this->_req_data['id']) : 0; |
|
1238 | + if (empty($PRT_ID) || ! $PRT->update_by_ID(array('PRT_deleted' => $PRT_deleted), $PRT_ID)) { |
|
1239 | + $success = 0; |
|
1240 | + } |
|
1241 | + $what = 'Price Type'; |
|
1242 | + } |
|
1243 | + |
|
1244 | + $query_args = array('action' => 'price_types'); |
|
1245 | + if ($success) { |
|
1246 | + if ($trash) { |
|
1247 | + $msg = $success > 1 |
|
1248 | + ? __('The Price Types have been trashed.', 'event_espresso') |
|
1249 | + : __( |
|
1250 | + 'The Price Type has been trashed.', |
|
1251 | + 'event_espresso' |
|
1252 | + ); |
|
1253 | + } else { |
|
1254 | + $msg = $success > 1 |
|
1255 | + ? __('The Price Types have been restored.', 'event_espresso') |
|
1256 | + : __( |
|
1257 | + 'The Price Type has been restored.', |
|
1258 | + 'event_espresso' |
|
1259 | + ); |
|
1260 | + } |
|
1261 | + EE_Error::add_success($msg); |
|
1262 | + } |
|
1263 | + |
|
1264 | + $this->_redirect_after_action(false, '', '', $query_args, true); |
|
1265 | + } |
|
1266 | + |
|
1267 | + |
|
1268 | + /** |
|
1269 | + * _delete_price_type |
|
1270 | + * |
|
1271 | + * @access protected |
|
1272 | + * @return void |
|
1273 | + */ |
|
1274 | + protected function _delete_price_type() |
|
1275 | + { |
|
1276 | + do_action('AHEE_log', __FILE__, __FUNCTION__, ''); |
|
1277 | + |
|
1278 | + $PRT = EEM_Price_Type::instance(); |
|
1279 | + |
|
1280 | + $success = 1; |
|
1281 | + // Checkboxes |
|
1282 | + if (! empty($this->_req_data['checkbox'])) { |
|
1283 | + // if array has more than one element than success message should be plural |
|
1284 | + $success = count($this->_req_data['checkbox']) > 1 ? 2 : 1; |
|
1285 | + $what = $PRT->item_name($success); |
|
1286 | + // cycle thru bulk action checkboxes |
|
1287 | + while (list($PRT_ID, $value) = each($this->_req_data['checkbox'])) { |
|
1288 | + if (! $PRT->delete_permanently_by_ID($PRT_ID)) { |
|
1289 | + $success = 0; |
|
1290 | + } |
|
1291 | + } |
|
1292 | + } |
|
1293 | + |
|
1294 | + |
|
1295 | + $query_args = array('action' => 'price_types'); |
|
1296 | + $this->_redirect_after_action($success, $what, 'deleted', $query_args); |
|
1297 | + } |
|
1298 | + |
|
1299 | + |
|
1300 | + /** |
|
1301 | + * _learn_more_about_pricing_link |
|
1302 | + * |
|
1303 | + * @access protected |
|
1304 | + * @return string |
|
1305 | + */ |
|
1306 | + protected function _learn_more_about_pricing_link() |
|
1307 | + { |
|
1308 | + return '<a class="hidden" style="margin:0 20px; cursor:pointer; font-size:12px;" >' . __( |
|
1309 | + 'learn more about how pricing works', |
|
1310 | + 'event_espresso' |
|
1311 | + ) . '</a>'; |
|
1312 | + } |
|
1313 | + |
|
1314 | + |
|
1315 | + protected function _tax_settings() |
|
1316 | + { |
|
1317 | + $this->_set_add_edit_form_tags('update_tax_settings'); |
|
1318 | + $this->_set_publish_post_box_vars(null, false, false, null, false); |
|
1319 | + $this->_template_args['admin_page_content'] = $this->tax_settings_form()->get_html(); |
|
1320 | + $this->display_admin_page_with_sidebar(); |
|
1321 | + } |
|
1322 | + |
|
1323 | + |
|
1324 | + /** |
|
1325 | + * @return \EE_Form_Section_Proper |
|
1326 | + * @throws \EE_Error |
|
1327 | + */ |
|
1328 | + protected function tax_settings_form() |
|
1329 | + { |
|
1330 | + return new EE_Form_Section_Proper( |
|
1331 | + array( |
|
1332 | + 'name' => 'tax_settings_form', |
|
1333 | + 'html_id' => 'tax_settings_form', |
|
1334 | + 'layout_strategy' => new EE_Div_Per_Section_Layout(), |
|
1335 | + 'subsections' => apply_filters( |
|
1336 | + 'FHEE__Pricing_Admin_Page__tax_settings_form__form_subsections', |
|
1337 | + array( |
|
1338 | + 'tax_settings' => new EE_Form_Section_Proper( |
|
1339 | + array( |
|
1340 | + 'name' => 'tax_settings_tbl', |
|
1341 | + 'html_id' => 'tax_settings_tbl', |
|
1342 | + 'html_class' => 'form-table', |
|
1343 | + 'layout_strategy' => new EE_Admin_Two_Column_Layout(), |
|
1344 | + 'subsections' => array( |
|
1345 | + 'prices_displayed_including_taxes' => new EE_Yes_No_Input( |
|
1346 | + array( |
|
1347 | + 'html_label_text' => __( |
|
1348 | + "Show Prices With Taxes Included?", |
|
1349 | + 'event_espresso' |
|
1350 | + ), |
|
1351 | + 'html_help_text' => __( |
|
1352 | + 'Indicates whether or not to display prices with the taxes included', |
|
1353 | + 'event_espresso' |
|
1354 | + ), |
|
1355 | + 'default' => isset( |
|
1356 | + EE_Registry::instance() |
|
1357 | + ->CFG |
|
1358 | + ->tax_settings |
|
1359 | + ->prices_displayed_including_taxes |
|
1360 | + ) |
|
1361 | + ? EE_Registry::instance() |
|
1362 | + ->CFG |
|
1363 | + ->tax_settings |
|
1364 | + ->prices_displayed_including_taxes |
|
1365 | + : true, |
|
1366 | + 'display_html_label_text' => false, |
|
1367 | + ) |
|
1368 | + ), |
|
1369 | + ), |
|
1370 | + ) |
|
1371 | + ), |
|
1372 | + ) |
|
1373 | + ), |
|
1374 | + ) |
|
1375 | + ); |
|
1376 | + } |
|
1377 | + |
|
1378 | + |
|
1379 | + /** |
|
1380 | + * _update_tax_settings |
|
1381 | + * |
|
1382 | + * @since 4.9.13 |
|
1383 | + * @return void |
|
1384 | + */ |
|
1385 | + public function _update_tax_settings() |
|
1386 | + { |
|
1387 | + if (! isset(EE_Registry::instance()->CFG->tax_settings)) { |
|
1388 | + EE_Registry::instance()->CFG->tax_settings = new EE_Tax_Config(); |
|
1389 | + } |
|
1390 | + try { |
|
1391 | + $tax_form = $this->tax_settings_form(); |
|
1392 | + // check for form submission |
|
1393 | + if ($tax_form->was_submitted()) { |
|
1394 | + // capture form data |
|
1395 | + $tax_form->receive_form_submission(); |
|
1396 | + // validate form data |
|
1397 | + if ($tax_form->is_valid()) { |
|
1398 | + // grab validated data from form |
|
1399 | + $valid_data = $tax_form->valid_data(); |
|
1400 | + // set data on config |
|
1401 | + EE_Registry::instance() |
|
1402 | + ->CFG |
|
1403 | + ->tax_settings |
|
1404 | + ->prices_displayed_including_taxes |
|
1405 | + = $valid_data['tax_settings']['prices_displayed_including_taxes']; |
|
1406 | + } else { |
|
1407 | + if ($tax_form->submission_error_message() !== '') { |
|
1408 | + EE_Error::add_error( |
|
1409 | + $tax_form->submission_error_message(), |
|
1410 | + __FILE__, |
|
1411 | + __FUNCTION__, |
|
1412 | + __LINE__ |
|
1413 | + ); |
|
1414 | + } |
|
1415 | + } |
|
1416 | + } |
|
1417 | + } catch (EE_Error $e) { |
|
1418 | + EE_Error::add_error($e->get_error(), __FILE__, __FUNCTION__, __LINE__); |
|
1419 | + } |
|
1420 | + |
|
1421 | + $what = 'Tax Settings'; |
|
1422 | + $success = $this->_update_espresso_configuration( |
|
1423 | + $what, |
|
1424 | + EE_Registry::instance()->CFG->tax_settings, |
|
1425 | + __FILE__, |
|
1426 | + __FUNCTION__, |
|
1427 | + __LINE__ |
|
1428 | + ); |
|
1429 | + $this->_redirect_after_action($success, $what, 'updated', array('action' => 'tax_settings')); |
|
1430 | + } |
|
1431 | 1431 | } |
@@ -361,7 +361,7 @@ discard block |
||
361 | 361 | wp_enqueue_style('espresso-ui-theme'); |
362 | 362 | wp_register_style( |
363 | 363 | 'espresso_PRICING', |
364 | - PRICING_ASSETS_URL . 'espresso_pricing_admin.css', |
|
364 | + PRICING_ASSETS_URL.'espresso_pricing_admin.css', |
|
365 | 365 | array(), |
366 | 366 | EVENT_ESPRESSO_VERSION |
367 | 367 | ); |
@@ -376,7 +376,7 @@ discard block |
||
376 | 376 | // wp_enqueue_script('jquery-ui-datepicker'); |
377 | 377 | wp_register_script( |
378 | 378 | 'espresso_PRICING', |
379 | - PRICING_ASSETS_URL . 'espresso_pricing_admin.js', |
|
379 | + PRICING_ASSETS_URL.'espresso_pricing_admin.js', |
|
380 | 380 | array('jquery'), |
381 | 381 | EVENT_ESPRESSO_VERSION, |
382 | 382 | true |
@@ -469,7 +469,7 @@ discard block |
||
469 | 469 | */ |
470 | 470 | protected function _price_overview_list_table() |
471 | 471 | { |
472 | - $this->_admin_page_title .= ' ' . $this->get_action_link_or_button( |
|
472 | + $this->_admin_page_title .= ' '.$this->get_action_link_or_button( |
|
473 | 473 | 'add_new_price', |
474 | 474 | 'add', |
475 | 475 | array(), |
@@ -497,8 +497,8 @@ discard block |
||
497 | 497 | // start with an empty array |
498 | 498 | $event_pricing = array(); |
499 | 499 | |
500 | - require_once(PRICING_ADMIN . 'Prices_List_Table.class.php'); |
|
501 | - require_once(EE_MODELS . 'EEM_Price.model.php'); |
|
500 | + require_once(PRICING_ADMIN.'Prices_List_Table.class.php'); |
|
501 | + require_once(EE_MODELS.'EEM_Price.model.php'); |
|
502 | 502 | // $PRC = EEM_Price::instance(); |
503 | 503 | |
504 | 504 | $this->_req_data['orderby'] = empty($this->_req_data['orderby']) ? '' : $this->_req_data['orderby']; |
@@ -533,7 +533,7 @@ discard block |
||
533 | 533 | $limit = array($offset, $per_page); |
534 | 534 | |
535 | 535 | if (isset($this->_req_data['s'])) { |
536 | - $sstr = '%' . $this->_req_data['s'] . '%'; |
|
536 | + $sstr = '%'.$this->_req_data['s'].'%'; |
|
537 | 537 | $_where['OR'] = array( |
538 | 538 | 'PRC_name' => array('LIKE', $sstr), |
539 | 539 | 'PRC_desc' => array('LIKE', $sstr), |
@@ -582,10 +582,10 @@ discard block |
||
582 | 582 | $this->_admin_page_title = ucwords(str_replace('_', ' ', $this->_req_action)); |
583 | 583 | } |
584 | 584 | // add PRC_ID to title if editing |
585 | - $this->_admin_page_title = $PRC_ID ? $this->_admin_page_title . ' # ' . $PRC_ID : $this->_admin_page_title; |
|
585 | + $this->_admin_page_title = $PRC_ID ? $this->_admin_page_title.' # '.$PRC_ID : $this->_admin_page_title; |
|
586 | 586 | |
587 | 587 | // get prices |
588 | - require_once(EE_MODELS . 'EEM_Price.model.php'); |
|
588 | + require_once(EE_MODELS.'EEM_Price.model.php'); |
|
589 | 589 | $PRC = EEM_Price::instance(); |
590 | 590 | |
591 | 591 | if ($PRC_ID) { |
@@ -603,7 +603,7 @@ discard block |
||
603 | 603 | $this->_template_args['price'] = $price; |
604 | 604 | |
605 | 605 | // get price types |
606 | - require_once(EE_MODELS . 'EEM_Price_Type.model.php'); |
|
606 | + require_once(EE_MODELS.'EEM_Price_Type.model.php'); |
|
607 | 607 | $PRT = EEM_Price_Type::instance(); |
608 | 608 | $price_types = $PRT->get_all(array(array('PBT_ID' => array('!=', 1)))); |
609 | 609 | $price_type_names = array(); |
@@ -659,7 +659,7 @@ discard block |
||
659 | 659 | public function _edit_price_details_meta_box() |
660 | 660 | { |
661 | 661 | echo EEH_Template::display_template( |
662 | - PRICING_TEMPLATE_PATH . 'pricing_details_main_meta_box.template.php', |
|
662 | + PRICING_TEMPLATE_PATH.'pricing_details_main_meta_box.template.php', |
|
663 | 663 | $this->_template_args, |
664 | 664 | true |
665 | 665 | ); |
@@ -704,7 +704,7 @@ discard block |
||
704 | 704 | */ |
705 | 705 | protected function _insert_or_update_price($insert = false) |
706 | 706 | { |
707 | - require_once(EE_MODELS . 'EEM_Price.model.php'); |
|
707 | + require_once(EE_MODELS.'EEM_Price.model.php'); |
|
708 | 708 | $PRC = EEM_Price::instance(); |
709 | 709 | |
710 | 710 | // why be so pessimistic ??? : ( |
@@ -778,7 +778,7 @@ discard block |
||
778 | 778 | // echo '<h3>'. __CLASS__ . '->' . __FUNCTION__ . ' <br /><span style="font-size:10px;font-weight:normal;">' . __FILE__ . '<br />line no: ' . __LINE__ . '</span></h3>'; |
779 | 779 | do_action('AHEE_log', __FILE__, __FUNCTION__, ''); |
780 | 780 | |
781 | - require_once(EE_MODELS . 'EEM_Price.model.php'); |
|
781 | + require_once(EE_MODELS.'EEM_Price.model.php'); |
|
782 | 782 | $PRC = EEM_Price::instance(); |
783 | 783 | |
784 | 784 | $success = 1; |
@@ -787,12 +787,12 @@ discard block |
||
787 | 787 | // get base ticket for updating |
788 | 788 | $ticket = EEM_Ticket::instance()->get_one_by_ID(1); |
789 | 789 | // Checkboxes |
790 | - if (! empty($this->_req_data['checkbox']) && is_array($this->_req_data['checkbox'])) { |
|
790 | + if ( ! empty($this->_req_data['checkbox']) && is_array($this->_req_data['checkbox'])) { |
|
791 | 791 | // if array has more than one element than success message should be plural |
792 | 792 | $success = count($this->_req_data['checkbox']) > 1 ? 2 : 1; |
793 | 793 | // cycle thru checkboxes |
794 | 794 | while (list($PRC_ID, $value) = each($this->_req_data['checkbox'])) { |
795 | - if (! $PRC->update_by_ID(array('PRC_deleted' => $PRC_deleted), absint($PRC_ID))) { |
|
795 | + if ( ! $PRC->update_by_ID(array('PRC_deleted' => $PRC_deleted), absint($PRC_ID))) { |
|
796 | 796 | $success = 0; |
797 | 797 | } else { |
798 | 798 | $PR = EEM_Price::instance()->get_one_by_ID($PRC_ID); |
@@ -865,24 +865,24 @@ discard block |
||
865 | 865 | // echo '<h3>'. __CLASS__ . '->' . __FUNCTION__ . ' <br /><span style="font-size:10px;font-weight:normal;">' . __FILE__ . '<br />line no: ' . __LINE__ . '</span></h3>'; |
866 | 866 | do_action('AHEE_log', __FILE__, __FUNCTION__, ''); |
867 | 867 | |
868 | - require_once(EE_MODELS . 'EEM_Price.model.php'); |
|
868 | + require_once(EE_MODELS.'EEM_Price.model.php'); |
|
869 | 869 | $PRC = EEM_Price::instance(); |
870 | 870 | |
871 | 871 | $success = 1; |
872 | 872 | // Checkboxes |
873 | - if (! empty($this->_req_data['checkbox']) && is_array($this->_req_data['checkbox'])) { |
|
873 | + if ( ! empty($this->_req_data['checkbox']) && is_array($this->_req_data['checkbox'])) { |
|
874 | 874 | // if array has more than one element than success message should be plural |
875 | 875 | $success = count($this->_req_data['checkbox']) > 1 ? 2 : 1; |
876 | 876 | // cycle thru bulk action checkboxes |
877 | 877 | while (list($PRC_ID, $value) = each($this->_req_data['checkbox'])) { |
878 | - if (! $PRC->delete_permanently_by_ID(absint($PRC_ID))) { |
|
878 | + if ( ! $PRC->delete_permanently_by_ID(absint($PRC_ID))) { |
|
879 | 879 | $success = 0; |
880 | 880 | } |
881 | 881 | } |
882 | 882 | } else { |
883 | 883 | // grab single id and delete |
884 | 884 | $PRC_ID = absint($this->_req_data['id']); |
885 | - if (! $PRC->delete_permanently_by_ID($PRC_ID)) { |
|
885 | + if ( ! $PRC->delete_permanently_by_ID($PRC_ID)) { |
|
886 | 886 | $success = 0; |
887 | 887 | } |
888 | 888 | } |
@@ -907,7 +907,7 @@ discard block |
||
907 | 907 | if (is_array($row_ids)) { |
908 | 908 | for ($i = 0; $i < count($row_ids); $i++) { |
909 | 909 | // Update the prices when re-ordering |
910 | - $id = absint($row_ids[ $i ]); |
|
910 | + $id = absint($row_ids[$i]); |
|
911 | 911 | if (EEM_Price::instance()->update( |
912 | 912 | array('PRC_order' => $i + 1), |
913 | 913 | array(array('PRC_ID' => $id)) |
@@ -943,7 +943,7 @@ discard block |
||
943 | 943 | */ |
944 | 944 | protected function _price_types_overview_list_table() |
945 | 945 | { |
946 | - $this->_admin_page_title .= ' ' . $this->get_action_link_or_button( |
|
946 | + $this->_admin_page_title .= ' '.$this->get_action_link_or_button( |
|
947 | 947 | 'add_new_price_type', |
948 | 948 | 'add_type', |
949 | 949 | array(), |
@@ -970,8 +970,8 @@ discard block |
||
970 | 970 | do_action('AHEE_log', __FILE__, __FUNCTION__, ''); |
971 | 971 | // start with an empty array |
972 | 972 | |
973 | - require_once(PRICING_ADMIN . 'Price_Types_List_Table.class.php'); |
|
974 | - require_once(EE_MODELS . 'EEM_Price_Type.model.php'); |
|
973 | + require_once(PRICING_ADMIN.'Price_Types_List_Table.class.php'); |
|
974 | + require_once(EE_MODELS.'EEM_Price_Type.model.php'); |
|
975 | 975 | |
976 | 976 | $this->_req_data['orderby'] = empty($this->_req_data['orderby']) ? '' : $this->_req_data['orderby']; |
977 | 977 | $order = (isset($this->_req_data['order']) && ! empty($this->_req_data['order'])) ? $this->_req_data['order'] |
@@ -996,7 +996,7 @@ discard block |
||
996 | 996 | $_where = array('PRT_deleted' => $trashed, 'PBT_ID' => array('!=', 1)); |
997 | 997 | |
998 | 998 | if (isset($this->_req_data['s'])) { |
999 | - $sstr = '%' . $this->_req_data['s'] . '%'; |
|
999 | + $sstr = '%'.$this->_req_data['s'].'%'; |
|
1000 | 1000 | $_where['OR'] = array( |
1001 | 1001 | 'PRT_name' => array('LIKE', $sstr), |
1002 | 1002 | ); |
@@ -1043,7 +1043,7 @@ discard block |
||
1043 | 1043 | $this->_admin_page_title = ucwords(str_replace('_', ' ', $this->_req_action)); |
1044 | 1044 | } |
1045 | 1045 | // add PRT_ID to title if editing |
1046 | - $this->_admin_page_title = $PRT_ID ? $this->_admin_page_title . ' # ' . $PRT_ID : $this->_admin_page_title; |
|
1046 | + $this->_admin_page_title = $PRT_ID ? $this->_admin_page_title.' # '.$PRT_ID : $this->_admin_page_title; |
|
1047 | 1047 | |
1048 | 1048 | if ($PRT_ID) { |
1049 | 1049 | $price_type = EEM_Price_Type::instance()->get_one_by_ID($PRT_ID); |
@@ -1111,7 +1111,7 @@ discard block |
||
1111 | 1111 | public function _edit_price_type_details_meta_box() |
1112 | 1112 | { |
1113 | 1113 | echo EEH_Template::display_template( |
1114 | - PRICING_TEMPLATE_PATH . 'pricing_type_details_main_meta_box.template.php', |
|
1114 | + PRICING_TEMPLATE_PATH.'pricing_type_details_main_meta_box.template.php', |
|
1115 | 1115 | $this->_template_args, |
1116 | 1116 | true |
1117 | 1117 | ); |
@@ -1176,7 +1176,7 @@ discard block |
||
1176 | 1176 | { |
1177 | 1177 | do_action('AHEE_log', __FILE__, __FUNCTION__, ''); |
1178 | 1178 | |
1179 | - require_once(EE_MODELS . 'EEM_Price_Type.model.php'); |
|
1179 | + require_once(EE_MODELS.'EEM_Price_Type.model.php'); |
|
1180 | 1180 | $PRT = EEM_Price_Type::instance(); |
1181 | 1181 | |
1182 | 1182 | // why be so pessimistic ??? : ( |
@@ -1216,19 +1216,19 @@ discard block |
||
1216 | 1216 | { |
1217 | 1217 | do_action('AHEE_log', __FILE__, __FUNCTION__, ''); |
1218 | 1218 | |
1219 | - require_once(EE_MODELS . 'EEM_Price_Type.model.php'); |
|
1219 | + require_once(EE_MODELS.'EEM_Price_Type.model.php'); |
|
1220 | 1220 | $PRT = EEM_Price_Type::instance(); |
1221 | 1221 | |
1222 | 1222 | $success = 1; |
1223 | 1223 | $PRT_deleted = $trash ? true : false; |
1224 | 1224 | // Checkboxes |
1225 | - if (! empty($this->_req_data['checkbox']) && is_array($this->_req_data['checkbox'])) { |
|
1225 | + if ( ! empty($this->_req_data['checkbox']) && is_array($this->_req_data['checkbox'])) { |
|
1226 | 1226 | // if array has more than one element than success message should be plural |
1227 | 1227 | $success = count($this->_req_data['checkbox']) > 1 ? 2 : 1; |
1228 | 1228 | $what = count($this->_req_data['checkbox']) > 1 ? 'Price Types' : 'Price Type'; |
1229 | 1229 | // cycle thru checkboxes |
1230 | 1230 | while (list($PRT_ID, $value) = each($this->_req_data['checkbox'])) { |
1231 | - if (! $PRT->update_by_ID(array('PRT_deleted' => $PRT_deleted), $PRT_ID)) { |
|
1231 | + if ( ! $PRT->update_by_ID(array('PRT_deleted' => $PRT_deleted), $PRT_ID)) { |
|
1232 | 1232 | $success = 0; |
1233 | 1233 | } |
1234 | 1234 | } |
@@ -1279,13 +1279,13 @@ discard block |
||
1279 | 1279 | |
1280 | 1280 | $success = 1; |
1281 | 1281 | // Checkboxes |
1282 | - if (! empty($this->_req_data['checkbox'])) { |
|
1282 | + if ( ! empty($this->_req_data['checkbox'])) { |
|
1283 | 1283 | // if array has more than one element than success message should be plural |
1284 | 1284 | $success = count($this->_req_data['checkbox']) > 1 ? 2 : 1; |
1285 | 1285 | $what = $PRT->item_name($success); |
1286 | 1286 | // cycle thru bulk action checkboxes |
1287 | 1287 | while (list($PRT_ID, $value) = each($this->_req_data['checkbox'])) { |
1288 | - if (! $PRT->delete_permanently_by_ID($PRT_ID)) { |
|
1288 | + if ( ! $PRT->delete_permanently_by_ID($PRT_ID)) { |
|
1289 | 1289 | $success = 0; |
1290 | 1290 | } |
1291 | 1291 | } |
@@ -1305,10 +1305,10 @@ discard block |
||
1305 | 1305 | */ |
1306 | 1306 | protected function _learn_more_about_pricing_link() |
1307 | 1307 | { |
1308 | - return '<a class="hidden" style="margin:0 20px; cursor:pointer; font-size:12px;" >' . __( |
|
1308 | + return '<a class="hidden" style="margin:0 20px; cursor:pointer; font-size:12px;" >'.__( |
|
1309 | 1309 | 'learn more about how pricing works', |
1310 | 1310 | 'event_espresso' |
1311 | - ) . '</a>'; |
|
1311 | + ).'</a>'; |
|
1312 | 1312 | } |
1313 | 1313 | |
1314 | 1314 | |
@@ -1384,7 +1384,7 @@ discard block |
||
1384 | 1384 | */ |
1385 | 1385 | public function _update_tax_settings() |
1386 | 1386 | { |
1387 | - if (! isset(EE_Registry::instance()->CFG->tax_settings)) { |
|
1387 | + if ( ! isset(EE_Registry::instance()->CFG->tax_settings)) { |
|
1388 | 1388 | EE_Registry::instance()->CFG->tax_settings = new EE_Tax_Config(); |
1389 | 1389 | } |
1390 | 1390 | try { |
@@ -37,122 +37,122 @@ |
||
37 | 37 | * @since 4.0 |
38 | 38 | */ |
39 | 39 | if (function_exists('espresso_version')) { |
40 | - if (! function_exists('espresso_duplicate_plugin_error')) { |
|
41 | - /** |
|
42 | - * espresso_duplicate_plugin_error |
|
43 | - * displays if more than one version of EE is activated at the same time |
|
44 | - */ |
|
45 | - function espresso_duplicate_plugin_error() |
|
46 | - { |
|
47 | - ?> |
|
40 | + if (! function_exists('espresso_duplicate_plugin_error')) { |
|
41 | + /** |
|
42 | + * espresso_duplicate_plugin_error |
|
43 | + * displays if more than one version of EE is activated at the same time |
|
44 | + */ |
|
45 | + function espresso_duplicate_plugin_error() |
|
46 | + { |
|
47 | + ?> |
|
48 | 48 | <div class="error"> |
49 | 49 | <p> |
50 | 50 | <?php |
51 | - echo esc_html__( |
|
52 | - 'Can not run multiple versions of Event Espresso! One version has been automatically deactivated. Please verify that you have the correct version you want still active.', |
|
53 | - 'event_espresso' |
|
54 | - ); ?> |
|
51 | + echo esc_html__( |
|
52 | + 'Can not run multiple versions of Event Espresso! One version has been automatically deactivated. Please verify that you have the correct version you want still active.', |
|
53 | + 'event_espresso' |
|
54 | + ); ?> |
|
55 | 55 | </p> |
56 | 56 | </div> |
57 | 57 | <?php |
58 | - espresso_deactivate_plugin(plugin_basename(__FILE__)); |
|
59 | - } |
|
60 | - } |
|
61 | - add_action('admin_notices', 'espresso_duplicate_plugin_error', 1); |
|
58 | + espresso_deactivate_plugin(plugin_basename(__FILE__)); |
|
59 | + } |
|
60 | + } |
|
61 | + add_action('admin_notices', 'espresso_duplicate_plugin_error', 1); |
|
62 | 62 | } else { |
63 | - define('EE_MIN_PHP_VER_REQUIRED', '7.1.0'); |
|
64 | - if (! version_compare(PHP_VERSION, EE_MIN_PHP_VER_REQUIRED, '>=')) { |
|
65 | - /** |
|
66 | - * espresso_minimum_php_version_error |
|
67 | - * |
|
68 | - * @return void |
|
69 | - */ |
|
70 | - function espresso_minimum_php_version_error() |
|
71 | - { |
|
72 | - ?> |
|
63 | + define('EE_MIN_PHP_VER_REQUIRED', '7.1.0'); |
|
64 | + if (! version_compare(PHP_VERSION, EE_MIN_PHP_VER_REQUIRED, '>=')) { |
|
65 | + /** |
|
66 | + * espresso_minimum_php_version_error |
|
67 | + * |
|
68 | + * @return void |
|
69 | + */ |
|
70 | + function espresso_minimum_php_version_error() |
|
71 | + { |
|
72 | + ?> |
|
73 | 73 | <div class="error"> |
74 | 74 | <p> |
75 | 75 | <?php |
76 | - printf( |
|
77 | - esc_html__( |
|
78 | - 'We\'re sorry, but Event Espresso requires PHP version %1$s or greater in order to operate. You are currently running version %2$s.%3$sIn order to update your version of PHP, you will need to contact your current hosting provider.%3$sFor information on stable PHP versions, please go to %4$s.', |
|
79 | - 'event_espresso' |
|
80 | - ), |
|
81 | - EE_MIN_PHP_VER_REQUIRED, |
|
82 | - PHP_VERSION, |
|
83 | - '<br/>', |
|
84 | - '<a href="http://php.net/downloads.php">http://php.net/downloads.php</a>' |
|
85 | - ); |
|
86 | - ?> |
|
76 | + printf( |
|
77 | + esc_html__( |
|
78 | + 'We\'re sorry, but Event Espresso requires PHP version %1$s or greater in order to operate. You are currently running version %2$s.%3$sIn order to update your version of PHP, you will need to contact your current hosting provider.%3$sFor information on stable PHP versions, please go to %4$s.', |
|
79 | + 'event_espresso' |
|
80 | + ), |
|
81 | + EE_MIN_PHP_VER_REQUIRED, |
|
82 | + PHP_VERSION, |
|
83 | + '<br/>', |
|
84 | + '<a href="http://php.net/downloads.php">http://php.net/downloads.php</a>' |
|
85 | + ); |
|
86 | + ?> |
|
87 | 87 | </p> |
88 | 88 | </div> |
89 | 89 | <?php |
90 | - espresso_deactivate_plugin(plugin_basename(__FILE__)); |
|
91 | - } |
|
90 | + espresso_deactivate_plugin(plugin_basename(__FILE__)); |
|
91 | + } |
|
92 | 92 | |
93 | - add_action('admin_notices', 'espresso_minimum_php_version_error', 1); |
|
94 | - } else { |
|
95 | - define('EVENT_ESPRESSO_MAIN_FILE', __FILE__); |
|
96 | - /** |
|
97 | - * espresso_version |
|
98 | - * Returns the plugin version |
|
99 | - * |
|
100 | - * @return string |
|
101 | - */ |
|
102 | - function espresso_version() |
|
103 | - { |
|
104 | - return apply_filters('FHEE__espresso__espresso_version', '4.10.9.rc.011'); |
|
105 | - } |
|
93 | + add_action('admin_notices', 'espresso_minimum_php_version_error', 1); |
|
94 | + } else { |
|
95 | + define('EVENT_ESPRESSO_MAIN_FILE', __FILE__); |
|
96 | + /** |
|
97 | + * espresso_version |
|
98 | + * Returns the plugin version |
|
99 | + * |
|
100 | + * @return string |
|
101 | + */ |
|
102 | + function espresso_version() |
|
103 | + { |
|
104 | + return apply_filters('FHEE__espresso__espresso_version', '4.10.9.rc.011'); |
|
105 | + } |
|
106 | 106 | |
107 | - /** |
|
108 | - * espresso_plugin_activation |
|
109 | - * adds a wp-option to indicate that EE has been activated via the WP admin plugins page |
|
110 | - */ |
|
111 | - function espresso_plugin_activation() |
|
112 | - { |
|
113 | - update_option('ee_espresso_activation', true); |
|
107 | + /** |
|
108 | + * espresso_plugin_activation |
|
109 | + * adds a wp-option to indicate that EE has been activated via the WP admin plugins page |
|
110 | + */ |
|
111 | + function espresso_plugin_activation() |
|
112 | + { |
|
113 | + update_option('ee_espresso_activation', true); |
|
114 | 114 | |
115 | - // Run WP GraphQL activation callback |
|
116 | - if (! class_exists('WPGraphQL')) { |
|
117 | - require_once EE_THIRD_PARTY . 'wp-graphql/wp-graphql.php'; |
|
118 | - } |
|
119 | - graphql_init()->activate(); |
|
120 | - } |
|
115 | + // Run WP GraphQL activation callback |
|
116 | + if (! class_exists('WPGraphQL')) { |
|
117 | + require_once EE_THIRD_PARTY . 'wp-graphql/wp-graphql.php'; |
|
118 | + } |
|
119 | + graphql_init()->activate(); |
|
120 | + } |
|
121 | 121 | |
122 | - register_activation_hook(EVENT_ESPRESSO_MAIN_FILE, 'espresso_plugin_activation'); |
|
122 | + register_activation_hook(EVENT_ESPRESSO_MAIN_FILE, 'espresso_plugin_activation'); |
|
123 | 123 | |
124 | - /** |
|
125 | - * espresso_plugin_deactivation |
|
126 | - */ |
|
127 | - function espresso_plugin_deactivation() |
|
128 | - { |
|
129 | - // Run WP GraphQL deactivation callback |
|
130 | - if (! class_exists('WPGraphQL')) { |
|
131 | - require_once EE_THIRD_PARTY . 'wp-graphql/wp-graphql.php'; |
|
132 | - } |
|
133 | - graphql_init()->deactivate(); |
|
134 | - } |
|
135 | - register_deactivation_hook(EVENT_ESPRESSO_MAIN_FILE, 'espresso_plugin_deactivation'); |
|
124 | + /** |
|
125 | + * espresso_plugin_deactivation |
|
126 | + */ |
|
127 | + function espresso_plugin_deactivation() |
|
128 | + { |
|
129 | + // Run WP GraphQL deactivation callback |
|
130 | + if (! class_exists('WPGraphQL')) { |
|
131 | + require_once EE_THIRD_PARTY . 'wp-graphql/wp-graphql.php'; |
|
132 | + } |
|
133 | + graphql_init()->deactivate(); |
|
134 | + } |
|
135 | + register_deactivation_hook(EVENT_ESPRESSO_MAIN_FILE, 'espresso_plugin_deactivation'); |
|
136 | 136 | |
137 | - require_once __DIR__ . '/core/bootstrap_espresso.php'; |
|
138 | - bootstrap_espresso(); |
|
139 | - } |
|
137 | + require_once __DIR__ . '/core/bootstrap_espresso.php'; |
|
138 | + bootstrap_espresso(); |
|
139 | + } |
|
140 | 140 | } |
141 | 141 | if (! function_exists('espresso_deactivate_plugin')) { |
142 | - /** |
|
143 | - * deactivate_plugin |
|
144 | - * usage: espresso_deactivate_plugin( plugin_basename( __FILE__ )); |
|
145 | - * |
|
146 | - * @access public |
|
147 | - * @param string $plugin_basename - the results of plugin_basename( __FILE__ ) for the plugin's main file |
|
148 | - * @return void |
|
149 | - */ |
|
150 | - function espresso_deactivate_plugin($plugin_basename = '') |
|
151 | - { |
|
152 | - if (! function_exists('deactivate_plugins')) { |
|
153 | - require_once ABSPATH . 'wp-admin/includes/plugin.php'; |
|
154 | - } |
|
155 | - unset($_GET['activate'], $_REQUEST['activate']); |
|
156 | - deactivate_plugins($plugin_basename); |
|
157 | - } |
|
142 | + /** |
|
143 | + * deactivate_plugin |
|
144 | + * usage: espresso_deactivate_plugin( plugin_basename( __FILE__ )); |
|
145 | + * |
|
146 | + * @access public |
|
147 | + * @param string $plugin_basename - the results of plugin_basename( __FILE__ ) for the plugin's main file |
|
148 | + * @return void |
|
149 | + */ |
|
150 | + function espresso_deactivate_plugin($plugin_basename = '') |
|
151 | + { |
|
152 | + if (! function_exists('deactivate_plugins')) { |
|
153 | + require_once ABSPATH . 'wp-admin/includes/plugin.php'; |
|
154 | + } |
|
155 | + unset($_GET['activate'], $_REQUEST['activate']); |
|
156 | + deactivate_plugins($plugin_basename); |
|
157 | + } |
|
158 | 158 | } |