@@ -17,12 +17,12 @@ |
||
17 | 17 | interface DefaultEntityGeneratorInterface |
18 | 18 | { |
19 | 19 | |
20 | - /** |
|
21 | - * @param EE_Base_Class $entity |
|
22 | - * @return EE_Base_Class[] |
|
23 | - * @throws EE_Error |
|
24 | - * @throws ReflectionException |
|
25 | - * @since $VID:$ |
|
26 | - */ |
|
27 | - public function create(EE_Base_Class $entity): array; |
|
20 | + /** |
|
21 | + * @param EE_Base_Class $entity |
|
22 | + * @return EE_Base_Class[] |
|
23 | + * @throws EE_Error |
|
24 | + * @throws ReflectionException |
|
25 | + * @since $VID:$ |
|
26 | + */ |
|
27 | + public function create(EE_Base_Class $entity): array; |
|
28 | 28 | } |
@@ -17,41 +17,41 @@ |
||
17 | 17 | { |
18 | 18 | |
19 | 19 | |
20 | - /** |
|
21 | - * @type Psr4Autoloader |
|
22 | - */ |
|
23 | - protected static $psr4_loader; |
|
24 | - |
|
25 | - |
|
26 | - /** |
|
27 | - * @return void |
|
28 | - * @throws EE_Error |
|
29 | - */ |
|
30 | - public function initializeAutoloader() |
|
31 | - { |
|
32 | - static $initialized = false; |
|
33 | - if (! $initialized) { |
|
34 | - // instantiate PSR4 autoloader |
|
35 | - espresso_load_required('Psr4Autoloader', EE_CORE . 'Psr4Autoloader.php'); |
|
36 | - EE_Psr4AutoloaderInit::$psr4_loader = new Psr4Autoloader(); |
|
37 | - // register the autoloader |
|
38 | - EE_Psr4AutoloaderInit::$psr4_loader->register(); |
|
39 | - // register the base directories for the namespace prefix |
|
40 | - EE_Psr4AutoloaderInit::$psr4_loader->addNamespace('EventEspresso', EE_PLUGIN_DIR_PATH); |
|
41 | - EE_Psr4AutoloaderInit::$psr4_loader->addNamespace('EventEspressoBatchRequest', EE_LIBRARIES . 'batch'); |
|
42 | - EE_Psr4AutoloaderInit::$psr4_loader->addNamespace('EventEspressoVendor', EE_THIRD_PARTY); |
|
43 | - EE_Psr4AutoloaderInit::$psr4_loader->addNamespace('EETests', EE_PLUGIN_DIR_PATH . 'tests'); |
|
44 | - EE_Psr4AutoloaderInit::$psr4_loader->addNamespace('EndyJasmi', EE_THIRD_PARTY . 'cuid'); |
|
45 | - $initialized = true; |
|
46 | - } |
|
47 | - } |
|
48 | - |
|
49 | - |
|
50 | - /** |
|
51 | - * @return Psr4Autoloader |
|
52 | - */ |
|
53 | - public static function psr4_loader(): Psr4Autoloader |
|
54 | - { |
|
55 | - return self::$psr4_loader; |
|
56 | - } |
|
20 | + /** |
|
21 | + * @type Psr4Autoloader |
|
22 | + */ |
|
23 | + protected static $psr4_loader; |
|
24 | + |
|
25 | + |
|
26 | + /** |
|
27 | + * @return void |
|
28 | + * @throws EE_Error |
|
29 | + */ |
|
30 | + public function initializeAutoloader() |
|
31 | + { |
|
32 | + static $initialized = false; |
|
33 | + if (! $initialized) { |
|
34 | + // instantiate PSR4 autoloader |
|
35 | + espresso_load_required('Psr4Autoloader', EE_CORE . 'Psr4Autoloader.php'); |
|
36 | + EE_Psr4AutoloaderInit::$psr4_loader = new Psr4Autoloader(); |
|
37 | + // register the autoloader |
|
38 | + EE_Psr4AutoloaderInit::$psr4_loader->register(); |
|
39 | + // register the base directories for the namespace prefix |
|
40 | + EE_Psr4AutoloaderInit::$psr4_loader->addNamespace('EventEspresso', EE_PLUGIN_DIR_PATH); |
|
41 | + EE_Psr4AutoloaderInit::$psr4_loader->addNamespace('EventEspressoBatchRequest', EE_LIBRARIES . 'batch'); |
|
42 | + EE_Psr4AutoloaderInit::$psr4_loader->addNamespace('EventEspressoVendor', EE_THIRD_PARTY); |
|
43 | + EE_Psr4AutoloaderInit::$psr4_loader->addNamespace('EETests', EE_PLUGIN_DIR_PATH . 'tests'); |
|
44 | + EE_Psr4AutoloaderInit::$psr4_loader->addNamespace('EndyJasmi', EE_THIRD_PARTY . 'cuid'); |
|
45 | + $initialized = true; |
|
46 | + } |
|
47 | + } |
|
48 | + |
|
49 | + |
|
50 | + /** |
|
51 | + * @return Psr4Autoloader |
|
52 | + */ |
|
53 | + public static function psr4_loader(): Psr4Autoloader |
|
54 | + { |
|
55 | + return self::$psr4_loader; |
|
56 | + } |
|
57 | 57 | } |
@@ -30,18 +30,18 @@ |
||
30 | 30 | public function initializeAutoloader() |
31 | 31 | { |
32 | 32 | static $initialized = false; |
33 | - if (! $initialized) { |
|
33 | + if ( ! $initialized) { |
|
34 | 34 | // instantiate PSR4 autoloader |
35 | - espresso_load_required('Psr4Autoloader', EE_CORE . 'Psr4Autoloader.php'); |
|
35 | + espresso_load_required('Psr4Autoloader', EE_CORE.'Psr4Autoloader.php'); |
|
36 | 36 | EE_Psr4AutoloaderInit::$psr4_loader = new Psr4Autoloader(); |
37 | 37 | // register the autoloader |
38 | 38 | EE_Psr4AutoloaderInit::$psr4_loader->register(); |
39 | 39 | // register the base directories for the namespace prefix |
40 | 40 | EE_Psr4AutoloaderInit::$psr4_loader->addNamespace('EventEspresso', EE_PLUGIN_DIR_PATH); |
41 | - EE_Psr4AutoloaderInit::$psr4_loader->addNamespace('EventEspressoBatchRequest', EE_LIBRARIES . 'batch'); |
|
41 | + EE_Psr4AutoloaderInit::$psr4_loader->addNamespace('EventEspressoBatchRequest', EE_LIBRARIES.'batch'); |
|
42 | 42 | EE_Psr4AutoloaderInit::$psr4_loader->addNamespace('EventEspressoVendor', EE_THIRD_PARTY); |
43 | - EE_Psr4AutoloaderInit::$psr4_loader->addNamespace('EETests', EE_PLUGIN_DIR_PATH . 'tests'); |
|
44 | - EE_Psr4AutoloaderInit::$psr4_loader->addNamespace('EndyJasmi', EE_THIRD_PARTY . 'cuid'); |
|
43 | + EE_Psr4AutoloaderInit::$psr4_loader->addNamespace('EETests', EE_PLUGIN_DIR_PATH.'tests'); |
|
44 | + EE_Psr4AutoloaderInit::$psr4_loader->addNamespace('EndyJasmi', EE_THIRD_PARTY.'cuid'); |
|
45 | 45 | $initialized = true; |
46 | 46 | } |
47 | 47 | } |
@@ -2,226 +2,226 @@ discard block |
||
2 | 2 | /* THIS IS A GENERATED FILE. DO NOT EDIT DIRECTLY. */ |
3 | 3 | $generated_i18n_strings = array( |
4 | 4 | // Reference: packages/ui-components/src/Pagination/constants.ts:6 |
5 | - __( '2', 'event_espresso' ), |
|
5 | + __('2', 'event_espresso'), |
|
6 | 6 | |
7 | 7 | // Reference: packages/ui-components/src/Pagination/constants.ts:7 |
8 | - __( '6', 'event_espresso' ), |
|
8 | + __('6', 'event_espresso'), |
|
9 | 9 | |
10 | 10 | // Reference: packages/ui-components/src/Pagination/constants.ts:8 |
11 | - __( '12', 'event_espresso' ), |
|
11 | + __('12', 'event_espresso'), |
|
12 | 12 | |
13 | 13 | // Reference: packages/ui-components/src/Pagination/constants.ts:9 |
14 | - __( '24', 'event_espresso' ), |
|
14 | + __('24', 'event_espresso'), |
|
15 | 15 | |
16 | 16 | // Reference: packages/ui-components/src/Pagination/constants.ts:10 |
17 | - __( '48', 'event_espresso' ), |
|
17 | + __('48', 'event_espresso'), |
|
18 | 18 | |
19 | 19 | // Reference: domains/core/admin/blocks/src/components/AvatarImage.tsx:27 |
20 | - __( 'contact avatar', 'event_espresso' ), |
|
20 | + __('contact avatar', 'event_espresso'), |
|
21 | 21 | |
22 | 22 | // Reference: domains/core/admin/blocks/src/components/OrderByControl.tsx:12 |
23 | - __( 'Order by', 'event_espresso' ), |
|
23 | + __('Order by', 'event_espresso'), |
|
24 | 24 | |
25 | 25 | // Reference: domains/core/admin/blocks/src/components/RegStatusControl.tsx:17 |
26 | 26 | // Reference: domains/core/admin/blocks/src/event-attendees/controls/SelectStatus.tsx:13 |
27 | - __( 'Select Registration Status', 'event_espresso' ), |
|
27 | + __('Select Registration Status', 'event_espresso'), |
|
28 | 28 | |
29 | 29 | // Reference: domains/core/admin/blocks/src/components/SortOrderControl.tsx:14 |
30 | - __( 'Ascending', 'event_espresso' ), |
|
30 | + __('Ascending', 'event_espresso'), |
|
31 | 31 | |
32 | 32 | // Reference: domains/core/admin/blocks/src/components/SortOrderControl.tsx:18 |
33 | - __( 'Descending', 'event_espresso' ), |
|
33 | + __('Descending', 'event_espresso'), |
|
34 | 34 | |
35 | 35 | // Reference: domains/core/admin/blocks/src/components/SortOrderControl.tsx:24 |
36 | - __( 'Sort order:', 'event_espresso' ), |
|
36 | + __('Sort order:', 'event_espresso'), |
|
37 | 37 | |
38 | 38 | // Reference: domains/core/admin/blocks/src/event-attendees/AttendeesDisplay.tsx:41 |
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/core/admin/blocks/src/event-attendees/AttendeesDisplay.tsx:47 |
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/core/admin/blocks/src/event-attendees/AttendeesDisplay.tsx:53 |
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/core/admin/blocks/src/event-attendees/controls/ArchiveSettings.tsx:12 |
48 | - __( 'Display on Archives', 'event_espresso' ), |
|
48 | + __('Display on Archives', 'event_espresso'), |
|
49 | 49 | |
50 | 50 | // Reference: domains/core/admin/blocks/src/event-attendees/controls/ArchiveSettings.tsx:17 |
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/core/admin/blocks/src/event-attendees/controls/ArchiveSettings.tsx:18 |
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/core/admin/blocks/src/event-attendees/controls/AttendeeLimit.tsx:29 |
57 | - __( 'Number of Attendees to Display:', 'event_espresso' ), |
|
57 | + __('Number of Attendees to Display:', 'event_espresso'), |
|
58 | 58 | |
59 | 59 | // Reference: domains/core/admin/blocks/src/event-attendees/controls/AttendeeLimit.tsx:34 |
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/core/admin/blocks/src/event-attendees/controls/GravatarSettings.tsx:27 |
64 | - __( 'Display Gravatar', 'event_espresso' ), |
|
64 | + __('Display Gravatar', 'event_espresso'), |
|
65 | 65 | |
66 | 66 | // Reference: domains/core/admin/blocks/src/event-attendees/controls/GravatarSettings.tsx:32 |
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/core/admin/blocks/src/event-attendees/controls/GravatarSettings.tsx:33 |
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/core/admin/blocks/src/event-attendees/controls/GravatarSettings.tsx:38 |
73 | - __( 'Size of Gravatar', 'event_espresso' ), |
|
73 | + __('Size of Gravatar', 'event_espresso'), |
|
74 | 74 | |
75 | 75 | // Reference: domains/core/admin/blocks/src/event-attendees/controls/SelectDatetime.tsx:22 |
76 | - __( 'Select Datetime', 'event_espresso' ), |
|
76 | + __('Select Datetime', 'event_espresso'), |
|
77 | 77 | |
78 | 78 | // Reference: domains/core/admin/blocks/src/event-attendees/controls/SelectEvent.tsx:22 |
79 | - __( 'Select Event', 'event_espresso' ), |
|
79 | + __('Select Event', 'event_espresso'), |
|
80 | 80 | |
81 | 81 | // Reference: domains/core/admin/blocks/src/event-attendees/controls/SelectOrderBy.tsx:11 |
82 | - __( 'Attendee id', 'event_espresso' ), |
|
82 | + __('Attendee id', 'event_espresso'), |
|
83 | 83 | |
84 | 84 | // Reference: domains/core/admin/blocks/src/event-attendees/controls/SelectOrderBy.tsx:15 |
85 | - __( 'Last name only', 'event_espresso' ), |
|
85 | + __('Last name only', 'event_espresso'), |
|
86 | 86 | |
87 | 87 | // Reference: domains/core/admin/blocks/src/event-attendees/controls/SelectOrderBy.tsx:19 |
88 | - __( 'First name only', 'event_espresso' ), |
|
88 | + __('First name only', 'event_espresso'), |
|
89 | 89 | |
90 | 90 | // Reference: domains/core/admin/blocks/src/event-attendees/controls/SelectOrderBy.tsx:23 |
91 | - __( 'First, then Last name', 'event_espresso' ), |
|
91 | + __('First, then Last name', 'event_espresso'), |
|
92 | 92 | |
93 | 93 | // Reference: domains/core/admin/blocks/src/event-attendees/controls/SelectOrderBy.tsx:27 |
94 | - __( 'Last, then First name', 'event_espresso' ), |
|
94 | + __('Last, then First name', 'event_espresso'), |
|
95 | 95 | |
96 | 96 | // Reference: domains/core/admin/blocks/src/event-attendees/controls/SelectOrderBy.tsx:41 |
97 | - __( 'Order Attendees by:', 'event_espresso' ), |
|
97 | + __('Order Attendees by:', 'event_espresso'), |
|
98 | 98 | |
99 | 99 | // Reference: domains/core/admin/blocks/src/event-attendees/controls/SelectTicket.tsx:22 |
100 | - __( 'Select Ticket', 'event_espresso' ), |
|
100 | + __('Select Ticket', 'event_espresso'), |
|
101 | 101 | |
102 | 102 | // Reference: domains/core/admin/blocks/src/event-attendees/controls/index.tsx:21 |
103 | - __( 'Filter By Settings', 'event_espresso' ), |
|
103 | + __('Filter By Settings', 'event_espresso'), |
|
104 | 104 | |
105 | 105 | // Reference: domains/core/admin/blocks/src/event-attendees/controls/index.tsx:36 |
106 | - __( 'Gravatar Setttings', 'event_espresso' ), |
|
106 | + __('Gravatar Setttings', 'event_espresso'), |
|
107 | 107 | |
108 | 108 | // Reference: domains/core/admin/blocks/src/event-attendees/controls/index.tsx:39 |
109 | - __( 'Archive Settings', 'event_espresso' ), |
|
109 | + __('Archive Settings', 'event_espresso'), |
|
110 | 110 | |
111 | 111 | // Reference: domains/core/admin/blocks/src/event-attendees/index.tsx:10 |
112 | - __( 'Event Attendees', 'event_espresso' ), |
|
112 | + __('Event Attendees', 'event_espresso'), |
|
113 | 113 | |
114 | 114 | // Reference: domains/core/admin/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/core/admin/blocks/src/event-attendees/index.tsx:14 |
118 | - __( 'event', 'event_espresso' ), |
|
118 | + __('event', 'event_espresso'), |
|
119 | 119 | |
120 | 120 | // Reference: domains/core/admin/blocks/src/event-attendees/index.tsx:14 |
121 | - __( 'attendees', 'event_espresso' ), |
|
121 | + __('attendees', 'event_espresso'), |
|
122 | 122 | |
123 | 123 | // Reference: domains/core/admin/blocks/src/event-attendees/index.tsx:14 |
124 | - __( 'list', 'event_espresso' ), |
|
124 | + __('list', 'event_espresso'), |
|
125 | 125 | |
126 | 126 | // Reference: domains/core/admin/blocks/src/services/utils.ts:17 |
127 | - __( 'Error', 'event_espresso' ), |
|
127 | + __('Error', 'event_espresso'), |
|
128 | 128 | |
129 | 129 | // Reference: domains/core/admin/blocks/src/services/utils.ts:24 |
130 | 130 | // Reference: packages/ui-components/src/SimpleEntityList/EntityTemplate.tsx:16 |
131 | - __( 'Select…', 'event_espresso' ), |
|
131 | + __('Select…', 'event_espresso'), |
|
132 | 132 | |
133 | 133 | // Reference: domains/core/admin/blocks/src/services/utils.ts:9 |
134 | - __( 'Loading…', 'event_espresso' ), |
|
134 | + __('Loading…', 'event_espresso'), |
|
135 | 135 | |
136 | 136 | // Reference: domains/core/admin/eventEditor/src/ui/EventDescription.tsx:33 |
137 | - __( 'Event Description', 'event_espresso' ), |
|
137 | + __('Event Description', 'event_espresso'), |
|
138 | 138 | |
139 | 139 | // Reference: domains/core/admin/eventEditor/src/ui/EventRegistrationOptions/ActiveStatus.tsx:22 |
140 | - __( 'Active status', 'event_espresso' ), |
|
140 | + __('Active status', 'event_espresso'), |
|
141 | 141 | |
142 | 142 | // Reference: domains/core/admin/eventEditor/src/ui/EventRegistrationOptions/AltRegPage.tsx:14 |
143 | - __( 'Alternative Registration Page', 'event_espresso' ), |
|
143 | + __('Alternative Registration Page', 'event_espresso'), |
|
144 | 144 | |
145 | 145 | // Reference: domains/core/admin/eventEditor/src/ui/EventRegistrationOptions/DefaultRegistrationStatus.tsx:15 |
146 | - __( 'Default Registration Status', 'event_espresso' ), |
|
146 | + __('Default Registration Status', 'event_espresso'), |
|
147 | 147 | |
148 | 148 | // Reference: domains/core/admin/eventEditor/src/ui/EventRegistrationOptions/Donations.tsx:9 |
149 | - __( 'Donations Enabled', 'event_espresso' ), |
|
149 | + __('Donations Enabled', 'event_espresso'), |
|
150 | 150 | |
151 | 151 | // Reference: domains/core/admin/eventEditor/src/ui/EventRegistrationOptions/Donations.tsx:9 |
152 | - __( 'Donations Disabled', 'event_espresso' ), |
|
152 | + __('Donations Disabled', 'event_espresso'), |
|
153 | 153 | |
154 | 154 | // Reference: domains/core/admin/eventEditor/src/ui/EventRegistrationOptions/EventManager.tsx:16 |
155 | - __( 'Event Manager', 'event_espresso' ), |
|
155 | + __('Event Manager', 'event_espresso'), |
|
156 | 156 | |
157 | 157 | // Reference: domains/core/admin/eventEditor/src/ui/EventRegistrationOptions/EventPhoneNumber.tsx:11 |
158 | - __( 'Event Phone Number', 'event_espresso' ), |
|
158 | + __('Event Phone Number', 'event_espresso'), |
|
159 | 159 | |
160 | 160 | // Reference: domains/core/admin/eventEditor/src/ui/EventRegistrationOptions/MaxRegistrations.tsx:12 |
161 | - __( 'Max Registrations per Transaction', 'event_espresso' ), |
|
161 | + __('Max Registrations per Transaction', 'event_espresso'), |
|
162 | 162 | |
163 | 163 | // Reference: domains/core/admin/eventEditor/src/ui/EventRegistrationOptions/TicketSelector.tsx:9 |
164 | - __( 'Ticket Selector Enabled', 'event_espresso' ), |
|
164 | + __('Ticket Selector Enabled', 'event_espresso'), |
|
165 | 165 | |
166 | 166 | // Reference: domains/core/admin/eventEditor/src/ui/EventRegistrationOptions/TicketSelector.tsx:9 |
167 | - __( 'Ticket Selector Disabled', 'event_espresso' ), |
|
167 | + __('Ticket Selector Disabled', 'event_espresso'), |
|
168 | 168 | |
169 | 169 | // Reference: domains/core/admin/eventEditor/src/ui/EventRegistrationOptions/index.tsx:43 |
170 | - __( 'Registration Options', 'event_espresso' ), |
|
170 | + __('Registration Options', 'event_espresso'), |
|
171 | 171 | |
172 | 172 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/DateRegistrationsLink.tsx:13 |
173 | - __( 'view ALL registrations for this date.', 'event_espresso' ), |
|
173 | + __('view ALL registrations for this date.', 'event_espresso'), |
|
174 | 174 | |
175 | 175 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/dateForm/multiStep/DateFormSteps.tsx:10 |
176 | - __( 'primary information about the date', 'event_espresso' ), |
|
176 | + __('primary information about the date', 'event_espresso'), |
|
177 | 177 | |
178 | 178 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/dateForm/multiStep/DateFormSteps.tsx:10 |
179 | - __( 'Date Details', 'event_espresso' ), |
|
179 | + __('Date Details', 'event_espresso'), |
|
180 | 180 | |
181 | 181 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/dateForm/multiStep/DateFormSteps.tsx:11 |
182 | 182 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/defaultTickets/multiStep/TicketFormSteps.tsx:16 |
183 | 183 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketForm/multiStep/TicketFormSteps.tsx:16 |
184 | - __( 'relations between tickets and dates', 'event_espresso' ), |
|
184 | + __('relations between tickets and dates', 'event_espresso'), |
|
185 | 185 | |
186 | 186 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/dateForm/multiStep/DateFormSteps.tsx:11 |
187 | - __( 'Assign Tickets', 'event_espresso' ), |
|
187 | + __('Assign Tickets', 'event_espresso'), |
|
188 | 188 | |
189 | 189 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/dateForm/multiStep/FooterButtons.tsx:22 |
190 | - __( 'Save and assign tickets', 'event_espresso' ), |
|
190 | + __('Save and assign tickets', 'event_espresso'), |
|
191 | 191 | |
192 | 192 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/dateForm/multiStep/Modal.tsx:27 |
193 | 193 | /* translators: %s datetime id */ |
194 | - __( 'Edit datetime %s', 'event_espresso' ), |
|
194 | + __('Edit datetime %s', 'event_espresso'), |
|
195 | 195 | |
196 | 196 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/dateForm/multiStep/Modal.tsx:30 |
197 | - __( 'New Datetime', 'event_espresso' ), |
|
197 | + __('New Datetime', 'event_espresso'), |
|
198 | 198 | |
199 | 199 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/dateForm/useDateFormConfig.ts:110 |
200 | 200 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/bulkEdit/details/useBulkEditFormConfig.ts:108 |
201 | 201 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketForm/useTicketFormConfig.ts:126 |
202 | 202 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/bulkEdit/details/useBulkEditFormConfig.ts:108 |
203 | - __( 'Details', 'event_espresso' ), |
|
203 | + __('Details', 'event_espresso'), |
|
204 | 204 | |
205 | 205 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/dateForm/useDateFormConfig.ts:114 |
206 | 206 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/bulkEdit/details/useBulkEditFormConfig.ts:112 |
207 | 207 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/tableView/useHeaderRowGenerator.tsx:81 |
208 | - __( 'Capacity', 'event_espresso' ), |
|
208 | + __('Capacity', 'event_espresso'), |
|
209 | 209 | |
210 | 210 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/dateForm/useDateFormConfig.ts:119 |
211 | - __( 'The maximum number of registrants that can attend the event at this particular date.', 'event_espresso' ), |
|
211 | + __('The maximum number of registrants that can attend the event at this particular date.', 'event_espresso'), |
|
212 | 212 | |
213 | 213 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/dateForm/useDateFormConfig.ts:123 |
214 | - __( 'Set to 0 to close registration or leave blank for no limit.', 'event_espresso' ), |
|
214 | + __('Set to 0 to close registration or leave blank for no limit.', 'event_espresso'), |
|
215 | 215 | |
216 | 216 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/dateForm/useDateFormConfig.ts:129 |
217 | 217 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketForm/useTicketFormConfig.ts:203 |
218 | - __( 'Trash', 'event_espresso' ), |
|
218 | + __('Trash', 'event_espresso'), |
|
219 | 219 | |
220 | 220 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/dateForm/useDateFormConfig.ts:71 |
221 | 221 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/bulkEdit/details/useBulkEditFormConfig.ts:45 |
222 | 222 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketForm/useTicketFormConfig.ts:87 |
223 | 223 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/bulkEdit/details/useBulkEditFormConfig.ts:45 |
224 | - __( 'Basics', 'event_espresso' ), |
|
224 | + __('Basics', 'event_espresso'), |
|
225 | 225 | |
226 | 226 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/dateForm/useDateFormConfig.ts:75 |
227 | 227 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/bulkEdit/details/useBulkEditFormConfig.ts:49 |
@@ -229,249 +229,249 @@ discard block |
||
229 | 229 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketForm/useTicketFormConfig.ts:91 |
230 | 230 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/bulkEdit/details/useBulkEditFormConfig.ts:49 |
231 | 231 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/tableView/useHeaderRowGenerator.tsx:40 |
232 | - __( 'Name', 'event_espresso' ), |
|
232 | + __('Name', 'event_espresso'), |
|
233 | 233 | |
234 | 234 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/dateForm/useDateFormConfig.ts:80 |
235 | 235 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/bulkEdit/details/useBulkEditFormConfig.ts:55 |
236 | 236 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketForm/useTicketFormConfig.ts:96 |
237 | 237 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/bulkEdit/details/useBulkEditFormConfig.ts:55 |
238 | 238 | // Reference: packages/tpc/src/components/table/useHeaderRowGenerator.ts:47 |
239 | - __( 'Description', 'event_espresso' ), |
|
239 | + __('Description', 'event_espresso'), |
|
240 | 240 | |
241 | 241 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/dateForm/useDateFormConfig.ts:88 |
242 | 242 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/bulkEdit/details/useBulkEditFormConfig.ts:63 |
243 | 243 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/bulkEdit/details/useBulkEditFormConfig.ts:63 |
244 | - __( 'Dates', 'event_espresso' ), |
|
244 | + __('Dates', 'event_espresso'), |
|
245 | 245 | |
246 | 246 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/dateForm/useDateFormConfig.ts:92 |
247 | 247 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/tableView/useHeaderRowGenerator.tsx:51 |
248 | 248 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketForm/useTicketFormConfig.ts:108 |
249 | - __( 'Start Date', 'event_espresso' ), |
|
249 | + __('Start Date', 'event_espresso'), |
|
250 | 250 | |
251 | 251 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/dateForm/useDateFormConfig.ts:99 |
252 | 252 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/tableView/useHeaderRowGenerator.tsx:65 |
253 | 253 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketForm/useTicketFormConfig.ts:115 |
254 | - __( 'End Date', 'event_espresso' ), |
|
254 | + __('End Date', 'event_espresso'), |
|
255 | 255 | |
256 | 256 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/DatesList.tsx:35 |
257 | 257 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/tableView/TableView.tsx:33 |
258 | - __( 'Event Dates', 'event_espresso' ), |
|
258 | + __('Event Dates', 'event_espresso'), |
|
259 | 259 | |
260 | 260 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/DatesList.tsx:38 |
261 | - __( 'loading event dates…', 'event_espresso' ), |
|
261 | + __('loading event dates…', 'event_espresso'), |
|
262 | 262 | |
263 | 263 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/DatesListButtons.tsx:20 |
264 | - __( 'Add a date or a ticket in order to use Ticket Assignment Manager', 'event_espresso' ), |
|
264 | + __('Add a date or a ticket in order to use Ticket Assignment Manager', 'event_espresso'), |
|
265 | 265 | |
266 | 266 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/DatesListButtons.tsx:30 |
267 | - __( 'Ticket Assignments', 'event_espresso' ), |
|
267 | + __('Ticket Assignments', 'event_espresso'), |
|
268 | 268 | |
269 | 269 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/actionsMenu/AssignTicketsButton.tsx:25 |
270 | - __( 'Number of related tickets', 'event_espresso' ), |
|
270 | + __('Number of related tickets', 'event_espresso'), |
|
271 | 271 | |
272 | 272 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/actionsMenu/AssignTicketsButton.tsx:26 |
273 | - __( 'There are no tickets assigned to this datetime. Please click the ticket icon to update the assignments.', 'event_espresso' ), |
|
273 | + __('There are no tickets assigned to this datetime. Please click the ticket icon to update the assignments.', 'event_espresso'), |
|
274 | 274 | |
275 | 275 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/actionsMenu/AssignTicketsButton.tsx:34 |
276 | - __( 'assign tickets', 'event_espresso' ), |
|
276 | + __('assign tickets', 'event_espresso'), |
|
277 | 277 | |
278 | 278 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/actionsMenu/dropdown/DateMainMenu.tsx:25 |
279 | - __( 'Permanently delete Datetime?', 'event_espresso' ), |
|
279 | + __('Permanently delete Datetime?', 'event_espresso'), |
|
280 | 280 | |
281 | 281 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/actionsMenu/dropdown/DateMainMenu.tsx:25 |
282 | - __( 'Move Datetime to Trash?', 'event_espresso' ), |
|
282 | + __('Move Datetime to Trash?', 'event_espresso'), |
|
283 | 283 | |
284 | 284 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/actionsMenu/dropdown/DateMainMenu.tsx:27 |
285 | - __( 'Are you sure you want to permanently delete this datetime? This action is permanent and can not be undone.', 'event_espresso' ), |
|
285 | + __('Are you sure you want to permanently delete this datetime? This action is permanent and can not be undone.', 'event_espresso'), |
|
286 | 286 | |
287 | 287 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/actionsMenu/dropdown/DateMainMenu.tsx:30 |
288 | - __( 'Are you sure you want to move this datetime to the trash? You can "untrash" this datetime later if you need to.', 'event_espresso' ), |
|
288 | + __('Are you sure you want to move this datetime to the trash? You can "untrash" this datetime later if you need to.', 'event_espresso'), |
|
289 | 289 | |
290 | 290 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/actionsMenu/dropdown/DateMainMenu.tsx:39 |
291 | 291 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/actionsMenu/dropdown/DeleteTicket.tsx:44 |
292 | - __( 'delete permanently', 'event_espresso' ), |
|
292 | + __('delete permanently', 'event_espresso'), |
|
293 | 293 | |
294 | 294 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/actionsMenu/dropdown/DateMainMenu.tsx:39 |
295 | - __( 'trash datetime', 'event_espresso' ), |
|
295 | + __('trash datetime', 'event_espresso'), |
|
296 | 296 | |
297 | 297 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/actionsMenu/dropdown/DateMainMenu.tsx:45 |
298 | - __( 'event date main menu', 'event_espresso' ), |
|
298 | + __('event date main menu', 'event_espresso'), |
|
299 | 299 | |
300 | 300 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/actionsMenu/dropdown/DateMainMenu.tsx:59 |
301 | - __( 'edit datetime', 'event_espresso' ), |
|
301 | + __('edit datetime', 'event_espresso'), |
|
302 | 302 | |
303 | 303 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/actionsMenu/dropdown/DateMainMenu.tsx:60 |
304 | - __( 'copy datetime', 'event_espresso' ), |
|
304 | + __('copy datetime', 'event_espresso'), |
|
305 | 305 | |
306 | 306 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/bulkEdit/actions/Actions.tsx:36 |
307 | 307 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/bulkEdit/actions/Actions.tsx:39 |
308 | 308 | // Reference: packages/ui-components/src/bulkEdit/BulkActions.tsx:43 |
309 | - __( 'bulk actions', 'event_espresso' ), |
|
309 | + __('bulk actions', 'event_espresso'), |
|
310 | 310 | |
311 | 311 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/bulkEdit/actions/Actions.tsx:40 |
312 | - __( 'edit datetime details', 'event_espresso' ), |
|
312 | + __('edit datetime details', 'event_espresso'), |
|
313 | 313 | |
314 | 314 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/bulkEdit/actions/Actions.tsx:44 |
315 | - __( 'delete datetimes', 'event_espresso' ), |
|
315 | + __('delete datetimes', 'event_espresso'), |
|
316 | 316 | |
317 | 317 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/bulkEdit/actions/Actions.tsx:44 |
318 | - __( 'trash datetimes', 'event_espresso' ), |
|
318 | + __('trash datetimes', 'event_espresso'), |
|
319 | 319 | |
320 | 320 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/bulkEdit/delete/Delete.tsx:14 |
321 | - __( 'Are you sure you want to permanently delete these datetimes? This action can NOT be undone!', 'event_espresso' ), |
|
321 | + __('Are you sure you want to permanently delete these datetimes? This action can NOT be undone!', 'event_espresso'), |
|
322 | 322 | |
323 | 323 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/bulkEdit/delete/Delete.tsx:15 |
324 | - __( 'Are you sure you want to trash these datetimes?', 'event_espresso' ), |
|
324 | + __('Are you sure you want to trash these datetimes?', 'event_espresso'), |
|
325 | 325 | |
326 | 326 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/bulkEdit/delete/Delete.tsx:16 |
327 | - __( 'Delete datetimes permanently', 'event_espresso' ), |
|
327 | + __('Delete datetimes permanently', 'event_espresso'), |
|
328 | 328 | |
329 | 329 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/bulkEdit/delete/Delete.tsx:16 |
330 | - __( 'Trash datetimes', 'event_espresso' ), |
|
330 | + __('Trash datetimes', 'event_espresso'), |
|
331 | 331 | |
332 | 332 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/bulkEdit/details/EditDetails.tsx:21 |
333 | - __( 'Bulk edit date details', 'event_espresso' ), |
|
333 | + __('Bulk edit date details', 'event_espresso'), |
|
334 | 334 | |
335 | 335 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/bulkEdit/details/EditDetails.tsx:22 |
336 | - __( 'any changes will be applied to ALL of the selected dates.', 'event_espresso' ), |
|
336 | + __('any changes will be applied to ALL of the selected dates.', 'event_espresso'), |
|
337 | 337 | |
338 | 338 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/bulkEdit/details/formValidation.ts:12 |
339 | 339 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/bulkEdit/details/formValidation.ts:12 |
340 | - __( 'Name must be at least three characters', 'event_espresso' ), |
|
340 | + __('Name must be at least three characters', 'event_espresso'), |
|
341 | 341 | |
342 | 342 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/bulkEdit/details/useBulkEditFormConfig.ts:67 |
343 | 343 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/bulkEdit/details/useBulkEditFormConfig.ts:67 |
344 | - __( 'Shift dates', 'event_espresso' ), |
|
344 | + __('Shift dates', 'event_espresso'), |
|
345 | 345 | |
346 | 346 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/bulkEdit/details/useBulkEditFormConfig.ts:92 |
347 | 347 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/bulkEdit/details/useBulkEditFormConfig.ts:92 |
348 | - __( 'earlier', 'event_espresso' ), |
|
348 | + __('earlier', 'event_espresso'), |
|
349 | 349 | |
350 | 350 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/bulkEdit/details/useBulkEditFormConfig.ts:96 |
351 | 351 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/bulkEdit/details/useBulkEditFormConfig.ts:96 |
352 | - __( 'later', 'event_espresso' ), |
|
352 | + __('later', 'event_espresso'), |
|
353 | 353 | |
354 | 354 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/cardView/DateCapacity.tsx:37 |
355 | - __( 'edit capacity (registration limit)…', 'event_espresso' ), |
|
355 | + __('edit capacity (registration limit)…', 'event_espresso'), |
|
356 | 356 | |
357 | 357 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/cardView/DateCardSidebar.tsx:38 |
358 | - __( 'Edit Event Date', 'event_espresso' ), |
|
358 | + __('Edit Event Date', 'event_espresso'), |
|
359 | 359 | |
360 | 360 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/cardView/DateCardSidebar.tsx:42 |
361 | - __( 'edit start and end dates', 'event_espresso' ), |
|
361 | + __('edit start and end dates', 'event_espresso'), |
|
362 | 362 | |
363 | 363 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/cardView/DateDetailsPanel.tsx:15 |
364 | 364 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/cardView/TicketDetailsPanel.tsx:15 |
365 | - __( 'sold', 'event_espresso' ), |
|
365 | + __('sold', 'event_espresso'), |
|
366 | 366 | |
367 | 367 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/cardView/DateDetailsPanel.tsx:28 |
368 | - __( 'capacity', 'event_espresso' ), |
|
368 | + __('capacity', 'event_espresso'), |
|
369 | 369 | |
370 | 370 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/cardView/DateDetailsPanel.tsx:34 |
371 | 371 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/cardView/TicketDetailsPanel.tsx:33 |
372 | - __( 'reg list', 'event_espresso' ), |
|
372 | + __('reg list', 'event_espresso'), |
|
373 | 373 | |
374 | 374 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/cardView/Details.tsx:46 |
375 | 375 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/cardView/Details.tsx:45 |
376 | - __( 'Edit description', 'event_espresso' ), |
|
376 | + __('Edit description', 'event_espresso'), |
|
377 | 377 | |
378 | 378 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/cardView/Details.tsx:47 |
379 | 379 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/cardView/Details.tsx:46 |
380 | - __( 'edit description…', 'event_espresso' ), |
|
380 | + __('edit description…', 'event_espresso'), |
|
381 | 381 | |
382 | 382 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/config.ts:10 |
383 | - __( 'Move Date to Trash', 'event_espresso' ), |
|
383 | + __('Move Date to Trash', 'event_espresso'), |
|
384 | 384 | |
385 | 385 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/config.ts:13 |
386 | 386 | // Reference: packages/constants/src/datetime.ts:6 |
387 | - __( 'Active', 'event_espresso' ), |
|
387 | + __('Active', 'event_espresso'), |
|
388 | 388 | |
389 | 389 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/config.ts:14 |
390 | 390 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/config.ts:13 |
391 | - __( 'Trashed', 'event_espresso' ), |
|
391 | + __('Trashed', 'event_espresso'), |
|
392 | 392 | |
393 | 393 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/config.ts:15 |
394 | 394 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/config.ts:14 |
395 | 395 | // Reference: packages/constants/src/datetime.ts:8 |
396 | - __( 'Expired', 'event_espresso' ), |
|
396 | + __('Expired', 'event_espresso'), |
|
397 | 397 | |
398 | 398 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/config.ts:16 |
399 | 399 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/config.ts:16 |
400 | - __( 'Sold Out', 'event_espresso' ), |
|
400 | + __('Sold Out', 'event_espresso'), |
|
401 | 401 | |
402 | 402 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/config.ts:17 |
403 | 403 | // Reference: packages/constants/src/datetime.ts:12 |
404 | - __( 'Upcoming', 'event_espresso' ), |
|
404 | + __('Upcoming', 'event_espresso'), |
|
405 | 405 | |
406 | 406 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/config.ts:7 |
407 | - __( 'Edit Event Date Details', 'event_espresso' ), |
|
407 | + __('Edit Event Date Details', 'event_espresso'), |
|
408 | 408 | |
409 | 409 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/config.ts:8 |
410 | - __( 'View Registrations for this Date', 'event_espresso' ), |
|
410 | + __('View Registrations for this Date', 'event_espresso'), |
|
411 | 411 | |
412 | 412 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/config.ts:9 |
413 | - __( 'Manage Ticket Assignments', 'event_espresso' ), |
|
413 | + __('Manage Ticket Assignments', 'event_espresso'), |
|
414 | 414 | |
415 | 415 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/editable/EditableName.tsx:23 |
416 | 416 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/editable/EditableName.tsx:34 |
417 | - __( 'edit title…', 'event_espresso' ), |
|
417 | + __('edit title…', 'event_espresso'), |
|
418 | 418 | |
419 | 419 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/filterBar/ActiveDatesFilters.tsx:17 |
420 | 420 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/filterBar/ActiveTicketsFilters.tsx:17 |
421 | - __( 'ON', 'event_espresso' ), |
|
421 | + __('ON', 'event_espresso'), |
|
422 | 422 | |
423 | 423 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:10 |
424 | - __( 'end dates only', 'event_espresso' ), |
|
424 | + __('end dates only', 'event_espresso'), |
|
425 | 425 | |
426 | 426 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:11 |
427 | - __( 'start and end dates', 'event_espresso' ), |
|
427 | + __('start and end dates', 'event_espresso'), |
|
428 | 428 | |
429 | 429 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:16 |
430 | - __( 'dates above 90% capacity', 'event_espresso' ), |
|
430 | + __('dates above 90% capacity', 'event_espresso'), |
|
431 | 431 | |
432 | 432 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:17 |
433 | - __( 'dates above 75% capacity', 'event_espresso' ), |
|
433 | + __('dates above 75% capacity', 'event_espresso'), |
|
434 | 434 | |
435 | 435 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:18 |
436 | - __( 'dates above 50% capacity', 'event_espresso' ), |
|
436 | + __('dates above 50% capacity', 'event_espresso'), |
|
437 | 437 | |
438 | 438 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:19 |
439 | - __( 'dates below 50% capacity', 'event_espresso' ), |
|
439 | + __('dates below 50% capacity', 'event_espresso'), |
|
440 | 440 | |
441 | 441 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:23 |
442 | - __( 'all dates', 'event_espresso' ), |
|
442 | + __('all dates', 'event_espresso'), |
|
443 | 443 | |
444 | 444 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:24 |
445 | - __( 'all active and upcoming', 'event_espresso' ), |
|
445 | + __('all active and upcoming', 'event_espresso'), |
|
446 | 446 | |
447 | 447 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:25 |
448 | - __( 'active dates only', 'event_espresso' ), |
|
448 | + __('active dates only', 'event_espresso'), |
|
449 | 449 | |
450 | 450 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:26 |
451 | - __( 'upcoming dates only', 'event_espresso' ), |
|
451 | + __('upcoming dates only', 'event_espresso'), |
|
452 | 452 | |
453 | 453 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:27 |
454 | - __( 'next active or upcoming only', 'event_espresso' ), |
|
454 | + __('next active or upcoming only', 'event_espresso'), |
|
455 | 455 | |
456 | 456 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:28 |
457 | - __( 'sold out dates only', 'event_espresso' ), |
|
457 | + __('sold out dates only', 'event_espresso'), |
|
458 | 458 | |
459 | 459 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:29 |
460 | - __( 'recently expired dates', 'event_espresso' ), |
|
460 | + __('recently expired dates', 'event_espresso'), |
|
461 | 461 | |
462 | 462 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:30 |
463 | - __( 'all expired dates', 'event_espresso' ), |
|
463 | + __('all expired dates', 'event_espresso'), |
|
464 | 464 | |
465 | 465 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:31 |
466 | - __( 'trashed dates only', 'event_espresso' ), |
|
466 | + __('trashed dates only', 'event_espresso'), |
|
467 | 467 | |
468 | 468 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:35 |
469 | 469 | // Reference: packages/dates/src/components/DateRangePicker/DateRangePickerLegend.tsx:9 |
470 | 470 | // Reference: packages/dates/src/components/DateRangePicker/index.tsx:61 |
471 | - __( 'start date', 'event_espresso' ), |
|
471 | + __('start date', 'event_espresso'), |
|
472 | 472 | |
473 | 473 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:36 |
474 | - __( 'name', 'event_espresso' ), |
|
474 | + __('name', 'event_espresso'), |
|
475 | 475 | |
476 | 476 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:37 |
477 | 477 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/tableView/useHeaderRowGenerator.tsx:31 |
@@ -479,141 +479,141 @@ discard block |
||
479 | 479 | // Reference: domains/core/admin/eventEditor/src/ui/ticketAssignmentsManager/components/table/HeaderCell.tsx:27 |
480 | 480 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/tableView/useHeaderRowGenerator.tsx:31 |
481 | 481 | // Reference: packages/tpc/src/components/table/useHeaderRowGenerator.ts:23 |
482 | - __( 'ID', 'event_espresso' ), |
|
482 | + __('ID', 'event_espresso'), |
|
483 | 483 | |
484 | 484 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:38 |
485 | 485 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:47 |
486 | - __( 'custom order', 'event_espresso' ), |
|
486 | + __('custom order', 'event_espresso'), |
|
487 | 487 | |
488 | 488 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:42 |
489 | 489 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:51 |
490 | - __( 'display', 'event_espresso' ), |
|
490 | + __('display', 'event_espresso'), |
|
491 | 491 | |
492 | 492 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:43 |
493 | - __( 'recurrence', 'event_espresso' ), |
|
493 | + __('recurrence', 'event_espresso'), |
|
494 | 494 | |
495 | 495 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:44 |
496 | 496 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:53 |
497 | - __( 'sales', 'event_espresso' ), |
|
497 | + __('sales', 'event_espresso'), |
|
498 | 498 | |
499 | 499 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:45 |
500 | 500 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:55 |
501 | - __( 'sort by', 'event_espresso' ), |
|
501 | + __('sort by', 'event_espresso'), |
|
502 | 502 | |
503 | 503 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:46 |
504 | 504 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:54 |
505 | 505 | // Reference: packages/ee-components/src/EntityList/EntityListFilterBar.tsx:46 |
506 | - __( 'search', 'event_espresso' ), |
|
506 | + __('search', 'event_espresso'), |
|
507 | 507 | |
508 | 508 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:47 |
509 | 509 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:56 |
510 | - __( 'status', 'event_espresso' ), |
|
510 | + __('status', 'event_espresso'), |
|
511 | 511 | |
512 | 512 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:9 |
513 | - __( 'start dates only', 'event_espresso' ), |
|
513 | + __('start dates only', 'event_espresso'), |
|
514 | 514 | |
515 | 515 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/newDateOptions/AddSingleDate.tsx:26 |
516 | 516 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/newDateOptions/NewDateModal.tsx:12 |
517 | 517 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/newDateOptions/OptionsModalButton.tsx:16 |
518 | - __( 'Add New Date', 'event_espresso' ), |
|
518 | + __('Add New Date', 'event_espresso'), |
|
519 | 519 | |
520 | 520 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/newDateOptions/AddSingleDate.tsx:26 |
521 | - __( 'Add Single Date', 'event_espresso' ), |
|
521 | + __('Add Single Date', 'event_espresso'), |
|
522 | 522 | |
523 | 523 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/newDateOptions/AddSingleDate.tsx:43 |
524 | - __( 'Add a single date that only occurs once', 'event_espresso' ), |
|
524 | + __('Add a single date that only occurs once', 'event_espresso'), |
|
525 | 525 | |
526 | 526 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/newDateOptions/AddSingleDate.tsx:45 |
527 | - __( 'Single Date', 'event_espresso' ), |
|
527 | + __('Single Date', 'event_espresso'), |
|
528 | 528 | |
529 | 529 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/tableView/useHeaderRowGenerator.tsx:106 |
530 | - __( 'Reg list', 'event_espresso' ), |
|
530 | + __('Reg list', 'event_espresso'), |
|
531 | 531 | |
532 | 532 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/tableView/useHeaderRowGenerator.tsx:107 |
533 | 533 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/tableView/useHeaderRowGenerator.tsx:111 |
534 | - __( 'Regs', 'event_espresso' ), |
|
534 | + __('Regs', 'event_espresso'), |
|
535 | 535 | |
536 | 536 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/tableView/useHeaderRowGenerator.tsx:122 |
537 | 537 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/tableView/useHeaderRowGenerator.tsx:126 |
538 | 538 | // Reference: packages/tpc/src/components/table/useHeaderRowGenerator.ts:59 |
539 | - __( 'Actions', 'event_espresso' ), |
|
539 | + __('Actions', 'event_espresso'), |
|
540 | 540 | |
541 | 541 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/tableView/useHeaderRowGenerator.tsx:52 |
542 | - __( 'Start', 'event_espresso' ), |
|
542 | + __('Start', 'event_espresso'), |
|
543 | 543 | |
544 | 544 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/tableView/useHeaderRowGenerator.tsx:66 |
545 | - __( 'End', 'event_espresso' ), |
|
545 | + __('End', 'event_espresso'), |
|
546 | 546 | |
547 | 547 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/tableView/useHeaderRowGenerator.tsx:82 |
548 | - __( 'Cap', 'event_espresso' ), |
|
548 | + __('Cap', 'event_espresso'), |
|
549 | 549 | |
550 | 550 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/tableView/useHeaderRowGenerator.tsx:94 |
551 | 551 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/tableView/useHeaderRowGenerator.tsx:98 |
552 | - __( 'Sold', 'event_espresso' ), |
|
552 | + __('Sold', 'event_espresso'), |
|
553 | 553 | |
554 | 554 | // Reference: domains/core/admin/eventEditor/src/ui/registrationForm/RegistrationForm.tsx:9 |
555 | - __( 'Registration Form', 'event_espresso' ), |
|
555 | + __('Registration Form', 'event_espresso'), |
|
556 | 556 | |
557 | 557 | // Reference: domains/core/admin/eventEditor/src/ui/ticketAssignmentsManager/components/ErrorMessage.tsx:18 |
558 | - __( 'Tickets must always have at least one date assigned to them but one or more of the tickets below does not have any. |
|
559 | -Please correct the assignments for the highlighted cells.', 'event_espresso' ), |
|
558 | + __('Tickets must always have at least one date assigned to them but one or more of the tickets below does not have any. |
|
559 | +Please correct the assignments for the highlighted cells.', 'event_espresso'), |
|
560 | 560 | |
561 | 561 | // Reference: domains/core/admin/eventEditor/src/ui/ticketAssignmentsManager/components/ErrorMessage.tsx:22 |
562 | - __( '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. |
|
563 | -Please correct the assignments for the highlighted cells.', 'event_espresso' ), |
|
562 | + __('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. |
|
563 | +Please correct the assignments for the highlighted cells.', 'event_espresso'), |
|
564 | 564 | |
565 | 565 | // Reference: domains/core/admin/eventEditor/src/ui/ticketAssignmentsManager/components/ErrorMessage.tsx:32 |
566 | - __( 'Please Update Assignments', 'event_espresso' ), |
|
566 | + __('Please Update Assignments', 'event_espresso'), |
|
567 | 567 | |
568 | 568 | // Reference: domains/core/admin/eventEditor/src/ui/ticketAssignmentsManager/components/ModalContainer.tsx:26 |
569 | - __( 'There seem to be some dates/tickets which have no tickets/dates assigned. Do you want to fix them now?', 'event_espresso' ), |
|
569 | + __('There seem to be some dates/tickets which have no tickets/dates assigned. Do you want to fix them now?', 'event_espresso'), |
|
570 | 570 | |
571 | 571 | // Reference: domains/core/admin/eventEditor/src/ui/ticketAssignmentsManager/components/ModalContainer.tsx:29 |
572 | 572 | // Reference: packages/tpc/src/hooks/useLockedTicketAction.ts:74 |
573 | 573 | // Reference: packages/ui-components/src/Modal/ModalWithAlert.tsx:21 |
574 | - __( 'Alert!', 'event_espresso' ), |
|
574 | + __('Alert!', 'event_espresso'), |
|
575 | 575 | |
576 | 576 | // Reference: domains/core/admin/eventEditor/src/ui/ticketAssignmentsManager/components/ModalContainer.tsx:42 |
577 | 577 | /* translators: 1 entity id, 2 entity name */ |
578 | - __( 'Ticket Assignment Manager for Datetime: %1$s - %2$s', 'event_espresso' ), |
|
578 | + __('Ticket Assignment Manager for Datetime: %1$s - %2$s', 'event_espresso'), |
|
579 | 579 | |
580 | 580 | // Reference: domains/core/admin/eventEditor/src/ui/ticketAssignmentsManager/components/ModalContainer.tsx:49 |
581 | 581 | /* translators: 1 entity id, 2 entity name */ |
582 | - __( 'Ticket Assignment Manager for Ticket: %1$s - %2$s', 'event_espresso' ), |
|
582 | + __('Ticket Assignment Manager for Ticket: %1$s - %2$s', 'event_espresso'), |
|
583 | 583 | |
584 | 584 | // Reference: domains/core/admin/eventEditor/src/ui/ticketAssignmentsManager/components/TicketAssignmentsManagerModal.tsx:28 |
585 | 585 | // Reference: domains/core/admin/eventEditor/src/ui/ticketAssignmentsManager/components/table/Table.tsx:13 |
586 | - __( 'Ticket Assignment Manager', 'event_espresso' ), |
|
586 | + __('Ticket Assignment Manager', 'event_espresso'), |
|
587 | 587 | |
588 | 588 | // Reference: domains/core/admin/eventEditor/src/ui/ticketAssignmentsManager/components/config.ts:10 |
589 | - __( 'existing relation', 'event_espresso' ), |
|
589 | + __('existing relation', 'event_espresso'), |
|
590 | 590 | |
591 | 591 | // Reference: domains/core/admin/eventEditor/src/ui/ticketAssignmentsManager/components/config.ts:15 |
592 | - __( 'remove existing relation', 'event_espresso' ), |
|
592 | + __('remove existing relation', 'event_espresso'), |
|
593 | 593 | |
594 | 594 | // Reference: domains/core/admin/eventEditor/src/ui/ticketAssignmentsManager/components/config.ts:20 |
595 | - __( 'add new relation', 'event_espresso' ), |
|
595 | + __('add new relation', 'event_espresso'), |
|
596 | 596 | |
597 | 597 | // Reference: domains/core/admin/eventEditor/src/ui/ticketAssignmentsManager/components/config.ts:25 |
598 | - __( 'invalid relation', 'event_espresso' ), |
|
598 | + __('invalid relation', 'event_espresso'), |
|
599 | 599 | |
600 | 600 | // Reference: domains/core/admin/eventEditor/src/ui/ticketAssignmentsManager/components/config.ts:29 |
601 | - __( 'no relation', 'event_espresso' ), |
|
601 | + __('no relation', 'event_espresso'), |
|
602 | 602 | |
603 | 603 | // Reference: domains/core/admin/eventEditor/src/ui/ticketAssignmentsManager/components/table/BodyCell.tsx:23 |
604 | - __( 'assign ticket', 'event_espresso' ), |
|
604 | + __('assign ticket', 'event_espresso'), |
|
605 | 605 | |
606 | 606 | // Reference: domains/core/admin/eventEditor/src/ui/ticketAssignmentsManager/components/table/useGetHeaderRows.tsx:15 |
607 | - __( 'Assignments', 'event_espresso' ), |
|
607 | + __('Assignments', 'event_espresso'), |
|
608 | 608 | |
609 | 609 | // Reference: domains/core/admin/eventEditor/src/ui/ticketAssignmentsManager/components/table/useGetHeaderRows.tsx:16 |
610 | - __( 'Event Dates are listed below', 'event_espresso' ), |
|
610 | + __('Event Dates are listed below', 'event_espresso'), |
|
611 | 611 | |
612 | 612 | // Reference: domains/core/admin/eventEditor/src/ui/ticketAssignmentsManager/components/table/useGetHeaderRows.tsx:17 |
613 | - __( 'Tickets are listed along the top', 'event_espresso' ), |
|
613 | + __('Tickets are listed along the top', 'event_espresso'), |
|
614 | 614 | |
615 | 615 | // Reference: domains/core/admin/eventEditor/src/ui/ticketAssignmentsManager/components/table/useGetHeaderRows.tsx:18 |
616 | - __( 'Click the cell buttons to toggle assigments', 'event_espresso' ), |
|
616 | + __('Click the cell buttons to toggle assigments', 'event_espresso'), |
|
617 | 617 | |
618 | 618 | // Reference: domains/core/admin/eventEditor/src/ui/ticketAssignmentsManager/components/useSubmitButtonProps.ts:29 |
619 | 619 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/bulkEdit/prices/buttons/FooterButtons.tsx:16 |
@@ -622,1316 +622,1316 @@ discard block |
||
622 | 622 | // Reference: packages/tpc/src/buttons/useSubmitButtonProps.tsx:29 |
623 | 623 | // Reference: packages/ui-components/src/Modal/useSubmitButtonProps.tsx:13 |
624 | 624 | // Reference: packages/ui-components/src/Stepper/buttons/Submit.tsx:7 |
625 | - __( 'Submit', 'event_espresso' ), |
|
625 | + __('Submit', 'event_espresso'), |
|
626 | 626 | |
627 | 627 | // Reference: domains/core/admin/eventEditor/src/ui/ticketAssignmentsManager/filters/controls/DatesByMonthControl.tsx:20 |
628 | - __( 'All Dates', 'event_espresso' ), |
|
628 | + __('All Dates', 'event_espresso'), |
|
629 | 629 | |
630 | 630 | // Reference: domains/core/admin/eventEditor/src/ui/ticketAssignmentsManager/filters/controls/DatesByMonthControl.tsx:27 |
631 | - __( 'dates by month', 'event_espresso' ), |
|
631 | + __('dates by month', 'event_espresso'), |
|
632 | 632 | |
633 | 633 | // Reference: domains/core/admin/eventEditor/src/ui/ticketAssignmentsManager/filters/controls/ShowExpiredTicketsControl.tsx:16 |
634 | - __( 'show expired tickets', 'event_espresso' ), |
|
634 | + __('show expired tickets', 'event_espresso'), |
|
635 | 635 | |
636 | 636 | // Reference: domains/core/admin/eventEditor/src/ui/ticketAssignmentsManager/filters/controls/ShowTrashedDatesControl.tsx:13 |
637 | - __( 'show trashed dates', 'event_espresso' ), |
|
637 | + __('show trashed dates', 'event_espresso'), |
|
638 | 638 | |
639 | 639 | // Reference: domains/core/admin/eventEditor/src/ui/ticketAssignmentsManager/filters/controls/ShowTrashedTicketsControl.tsx:16 |
640 | - __( 'show trashed tickets', 'event_espresso' ), |
|
640 | + __('show trashed tickets', 'event_espresso'), |
|
641 | 641 | |
642 | 642 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/TicketRegistrationsLink.tsx:13 |
643 | - __( 'total registrations.', 'event_espresso' ), |
|
643 | + __('total registrations.', 'event_espresso'), |
|
644 | 644 | |
645 | 645 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/TicketRegistrationsLink.tsx:14 |
646 | - __( 'view ALL registrations for this ticket.', 'event_espresso' ), |
|
646 | + __('view ALL registrations for this ticket.', 'event_espresso'), |
|
647 | 647 | |
648 | 648 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/defaultTickets/Container.tsx:38 |
649 | 649 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/actions/Actions.tsx:21 |
650 | - __( 'Default tickets', 'event_espresso' ), |
|
650 | + __('Default tickets', 'event_espresso'), |
|
651 | 651 | |
652 | 652 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/defaultTickets/multiStep/FooterButtons.tsx:26 |
653 | 653 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketForm/multiStep/FooterButtons.tsx:33 |
654 | - __( 'Set ticket prices', 'event_espresso' ), |
|
654 | + __('Set ticket prices', 'event_espresso'), |
|
655 | 655 | |
656 | 656 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/defaultTickets/multiStep/FooterButtons.tsx:31 |
657 | - __( 'Skip prices - Save', 'event_espresso' ), |
|
657 | + __('Skip prices - Save', 'event_espresso'), |
|
658 | 658 | |
659 | 659 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/defaultTickets/multiStep/FooterButtons.tsx:37 |
660 | 660 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketForm/multiStep/FooterButtons.tsx:57 |
661 | - __( 'Ticket details', 'event_espresso' ), |
|
661 | + __('Ticket details', 'event_espresso'), |
|
662 | 662 | |
663 | 663 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/defaultTickets/multiStep/FooterButtons.tsx:38 |
664 | - __( 'Save', 'event_espresso' ), |
|
664 | + __('Save', 'event_espresso'), |
|
665 | 665 | |
666 | 666 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/defaultTickets/multiStep/Modal.tsx:22 |
667 | 667 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketForm/multiStep/Modal.tsx:26 |
668 | 668 | /* translators: %s ticket id */ |
669 | - __( 'Edit ticket %s', 'event_espresso' ), |
|
669 | + __('Edit ticket %s', 'event_espresso'), |
|
670 | 670 | |
671 | 671 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/defaultTickets/multiStep/Modal.tsx:25 |
672 | 672 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketForm/multiStep/Modal.tsx:29 |
673 | - __( 'New Ticket Details', 'event_espresso' ), |
|
673 | + __('New Ticket Details', 'event_espresso'), |
|
674 | 674 | |
675 | 675 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/defaultTickets/multiStep/TicketFormSteps.tsx:10 |
676 | 676 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketForm/multiStep/TicketFormSteps.tsx:10 |
677 | - __( 'primary information about the ticket', 'event_espresso' ), |
|
677 | + __('primary information about the ticket', 'event_espresso'), |
|
678 | 678 | |
679 | 679 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/defaultTickets/multiStep/TicketFormSteps.tsx:10 |
680 | 680 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketForm/multiStep/TicketFormSteps.tsx:10 |
681 | - __( 'Ticket Details', 'event_espresso' ), |
|
681 | + __('Ticket Details', 'event_espresso'), |
|
682 | 682 | |
683 | 683 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/defaultTickets/multiStep/TicketFormSteps.tsx:12 |
684 | 684 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketForm/multiStep/TicketFormSteps.tsx:12 |
685 | - __( 'apply ticket price modifiers and taxes', 'event_espresso' ), |
|
685 | + __('apply ticket price modifiers and taxes', 'event_espresso'), |
|
686 | 686 | |
687 | 687 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/defaultTickets/multiStep/TicketFormSteps.tsx:14 |
688 | 688 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketForm/multiStep/TicketFormSteps.tsx:14 |
689 | - __( 'Price Calculator', 'event_espresso' ), |
|
689 | + __('Price Calculator', 'event_espresso'), |
|
690 | 690 | |
691 | 691 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/defaultTickets/multiStep/TicketFormSteps.tsx:16 |
692 | 692 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketForm/multiStep/TicketFormSteps.tsx:16 |
693 | - __( 'Assign Dates', 'event_espresso' ), |
|
693 | + __('Assign Dates', 'event_espresso'), |
|
694 | 694 | |
695 | 695 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketForm/multiStep/FooterButtons.tsx:39 |
696 | - __( 'Skip prices - assign dates', 'event_espresso' ), |
|
696 | + __('Skip prices - assign dates', 'event_espresso'), |
|
697 | 697 | |
698 | 698 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketForm/multiStep/FooterButtons.tsx:50 |
699 | - __( 'Save and assign dates', 'event_espresso' ), |
|
699 | + __('Save and assign dates', 'event_espresso'), |
|
700 | 700 | |
701 | 701 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketForm/useTicketFormConfig.ts:104 |
702 | - __( 'Ticket Sales', 'event_espresso' ), |
|
702 | + __('Ticket Sales', 'event_espresso'), |
|
703 | 703 | |
704 | 704 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketForm/useTicketFormConfig.ts:130 |
705 | 705 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/bulkEdit/details/useBulkEditFormConfig.ts:112 |
706 | - __( 'Quantity For Sale', 'event_espresso' ), |
|
706 | + __('Quantity For Sale', 'event_espresso'), |
|
707 | 707 | |
708 | 708 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketForm/useTicketFormConfig.ts:136 |
709 | - __( 'The maximum number of this ticket available for sale.', 'event_espresso' ), |
|
709 | + __('The maximum number of this ticket available for sale.', 'event_espresso'), |
|
710 | 710 | |
711 | 711 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketForm/useTicketFormConfig.ts:138 |
712 | - __( 'Set to 0 to stop sales, or leave blank for no limit.', 'event_espresso' ), |
|
712 | + __('Set to 0 to stop sales, or leave blank for no limit.', 'event_espresso'), |
|
713 | 713 | |
714 | 714 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketForm/useTicketFormConfig.ts:144 |
715 | 715 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/bulkEdit/details/useBulkEditFormConfig.ts:121 |
716 | - __( 'Number of Uses', 'event_espresso' ), |
|
716 | + __('Number of Uses', 'event_espresso'), |
|
717 | 717 | |
718 | 718 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketForm/useTicketFormConfig.ts:150 |
719 | - __( 'Controls the total number of times this ticket can be used, regardless of the number of dates it is assigned to.', 'event_espresso' ), |
|
719 | + __('Controls the total number of times this ticket can be used, regardless of the number of dates it is assigned to.', 'event_espresso'), |
|
720 | 720 | |
721 | 721 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketForm/useTicketFormConfig.ts:154 |
722 | - __( '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' ), |
|
722 | + __('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'), |
|
723 | 723 | |
724 | 724 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketForm/useTicketFormConfig.ts:162 |
725 | 725 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/bulkEdit/details/useBulkEditFormConfig.ts:129 |
726 | - __( 'Minimum Quantity', 'event_espresso' ), |
|
726 | + __('Minimum Quantity', 'event_espresso'), |
|
727 | 727 | |
728 | 728 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketForm/useTicketFormConfig.ts:167 |
729 | - __( 'The minimum quantity that can be selected for this ticket. Use this to create ticket bundles or graduated pricing.', 'event_espresso' ), |
|
729 | + __('The minimum quantity that can be selected for this ticket. Use this to create ticket bundles or graduated pricing.', 'event_espresso'), |
|
730 | 730 | |
731 | 731 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketForm/useTicketFormConfig.ts:171 |
732 | - __( 'Leave blank for no minimum.', 'event_espresso' ), |
|
732 | + __('Leave blank for no minimum.', 'event_espresso'), |
|
733 | 733 | |
734 | 734 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketForm/useTicketFormConfig.ts:177 |
735 | 735 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/bulkEdit/details/useBulkEditFormConfig.ts:137 |
736 | - __( 'Maximum Quantity', 'event_espresso' ), |
|
736 | + __('Maximum Quantity', 'event_espresso'), |
|
737 | 737 | |
738 | 738 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketForm/useTicketFormConfig.ts:183 |
739 | - __( 'The maximum quantity that can be selected for this ticket. Use this to create ticket bundles or graduated pricing.', 'event_espresso' ), |
|
739 | + __('The maximum quantity that can be selected for this ticket. Use this to create ticket bundles or graduated pricing.', 'event_espresso'), |
|
740 | 740 | |
741 | 741 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketForm/useTicketFormConfig.ts:187 |
742 | - __( 'Leave blank for no maximum.', 'event_espresso' ), |
|
742 | + __('Leave blank for no maximum.', 'event_espresso'), |
|
743 | 743 | |
744 | 744 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketForm/useTicketFormConfig.ts:193 |
745 | 745 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/bulkEdit/details/useBulkEditFormConfig.ts:146 |
746 | - __( 'Required Ticket', 'event_espresso' ), |
|
746 | + __('Required Ticket', 'event_espresso'), |
|
747 | 747 | |
748 | 748 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketForm/useTicketFormConfig.ts:195 |
749 | - __( 'If enabled, the ticket must be selected and will appear first in frontend ticket lists.', 'event_espresso' ), |
|
749 | + __('If enabled, the ticket must be selected and will appear first in frontend ticket lists.', 'event_espresso'), |
|
750 | 750 | |
751 | 751 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketForm/useTicketFormConfig.ts:209 |
752 | - __( 'Visibility', 'event_espresso' ), |
|
752 | + __('Visibility', 'event_espresso'), |
|
753 | 753 | |
754 | 754 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketForm/useTicketFormConfig.ts:211 |
755 | - __( 'Where the ticket can be viewed throughout the UI.', 'event_espresso' ), |
|
755 | + __('Where the ticket can be viewed throughout the UI.', 'event_espresso'), |
|
756 | 756 | |
757 | 757 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/TicketsList.tsx:36 |
758 | - __( 'Available Tickets', 'event_espresso' ), |
|
758 | + __('Available Tickets', 'event_espresso'), |
|
759 | 759 | |
760 | 760 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/TicketsList.tsx:39 |
761 | - __( 'loading tickets…', 'event_espresso' ), |
|
761 | + __('loading tickets…', 'event_espresso'), |
|
762 | 762 | |
763 | 763 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/actionsMenu/AssignDatesButton.tsx:26 |
764 | - __( 'Number of related dates', 'event_espresso' ), |
|
764 | + __('Number of related dates', 'event_espresso'), |
|
765 | 765 | |
766 | 766 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/actionsMenu/AssignDatesButton.tsx:27 |
767 | - __( 'There are no event dates assigned to this ticket. Please click the calendar icon to update the assignments.', 'event_espresso' ), |
|
767 | + __('There are no event dates assigned to this ticket. Please click the calendar icon to update the assignments.', 'event_espresso'), |
|
768 | 768 | |
769 | 769 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/actionsMenu/AssignDatesButton.tsx:37 |
770 | - __( 'assign dates', 'event_espresso' ), |
|
770 | + __('assign dates', 'event_espresso'), |
|
771 | 771 | |
772 | 772 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/actionsMenu/dropdown/DeleteTicket.tsx:18 |
773 | - __( 'Permanently delete Ticket?', 'event_espresso' ), |
|
773 | + __('Permanently delete Ticket?', 'event_espresso'), |
|
774 | 774 | |
775 | 775 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/actionsMenu/dropdown/DeleteTicket.tsx:18 |
776 | - __( 'Move Ticket to Trash?', 'event_espresso' ), |
|
776 | + __('Move Ticket to Trash?', 'event_espresso'), |
|
777 | 777 | |
778 | 778 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/actionsMenu/dropdown/DeleteTicket.tsx:21 |
779 | - __( 'Are you sure you want to permanently delete this ticket? This action is permanent and can not be undone.', 'event_espresso' ), |
|
779 | + __('Are you sure you want to permanently delete this ticket? This action is permanent and can not be undone.', 'event_espresso'), |
|
780 | 780 | |
781 | 781 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/actionsMenu/dropdown/DeleteTicket.tsx:22 |
782 | - __( 'Are you sure you want to move this ticket to the trash? You can "untrash" this ticket later if you need to.', 'event_espresso' ), |
|
782 | + __('Are you sure you want to move this ticket to the trash? You can "untrash" this ticket later if you need to.', 'event_espresso'), |
|
783 | 783 | |
784 | 784 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/actionsMenu/dropdown/DeleteTicket.tsx:44 |
785 | 785 | // Reference: packages/ee-components/src/SimpleTicketCard/actions/Trash.tsx:6 |
786 | - __( 'trash ticket', 'event_espresso' ), |
|
786 | + __('trash ticket', 'event_espresso'), |
|
787 | 787 | |
788 | 788 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/actionsMenu/dropdown/TicketMainMenu.tsx:25 |
789 | - __( 'ticket main menu', 'event_espresso' ), |
|
789 | + __('ticket main menu', 'event_espresso'), |
|
790 | 790 | |
791 | 791 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/actionsMenu/dropdown/TicketMainMenu.tsx:38 |
792 | 792 | // Reference: packages/ee-components/src/SimpleTicketCard/actions/Edit.tsx:15 |
793 | - __( 'edit ticket', 'event_espresso' ), |
|
793 | + __('edit ticket', 'event_espresso'), |
|
794 | 794 | |
795 | 795 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/actionsMenu/dropdown/TicketMainMenu.tsx:39 |
796 | - __( 'copy ticket', 'event_espresso' ), |
|
796 | + __('copy ticket', 'event_espresso'), |
|
797 | 797 | |
798 | 798 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/bulkEdit/actions/Actions.tsx:43 |
799 | - __( 'edit ticket details', 'event_espresso' ), |
|
799 | + __('edit ticket details', 'event_espresso'), |
|
800 | 800 | |
801 | 801 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/bulkEdit/actions/Actions.tsx:47 |
802 | - __( 'delete tickets', 'event_espresso' ), |
|
802 | + __('delete tickets', 'event_espresso'), |
|
803 | 803 | |
804 | 804 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/bulkEdit/actions/Actions.tsx:47 |
805 | - __( 'trash tickets', 'event_espresso' ), |
|
805 | + __('trash tickets', 'event_espresso'), |
|
806 | 806 | |
807 | 807 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/bulkEdit/actions/Actions.tsx:51 |
808 | - __( 'edit ticket prices', 'event_espresso' ), |
|
808 | + __('edit ticket prices', 'event_espresso'), |
|
809 | 809 | |
810 | 810 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/bulkEdit/delete/Delete.tsx:14 |
811 | - __( 'Are you sure you want to permanently delete these tickets? This action can NOT be undone!', 'event_espresso' ), |
|
811 | + __('Are you sure you want to permanently delete these tickets? This action can NOT be undone!', 'event_espresso'), |
|
812 | 812 | |
813 | 813 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/bulkEdit/delete/Delete.tsx:15 |
814 | - __( 'Are you sure you want to trash these tickets?', 'event_espresso' ), |
|
814 | + __('Are you sure you want to trash these tickets?', 'event_espresso'), |
|
815 | 815 | |
816 | 816 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/bulkEdit/delete/Delete.tsx:16 |
817 | - __( 'Delete tickets permanently', 'event_espresso' ), |
|
817 | + __('Delete tickets permanently', 'event_espresso'), |
|
818 | 818 | |
819 | 819 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/bulkEdit/delete/Delete.tsx:16 |
820 | - __( 'Trash tickets', 'event_espresso' ), |
|
820 | + __('Trash tickets', 'event_espresso'), |
|
821 | 821 | |
822 | 822 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/bulkEdit/details/EditDetails.tsx:21 |
823 | - __( 'Bulk edit ticket details', 'event_espresso' ), |
|
823 | + __('Bulk edit ticket details', 'event_espresso'), |
|
824 | 824 | |
825 | 825 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/bulkEdit/details/EditDetails.tsx:22 |
826 | - __( 'any changes will be applied to ALL of the selected tickets.', 'event_espresso' ), |
|
826 | + __('any changes will be applied to ALL of the selected tickets.', 'event_espresso'), |
|
827 | 827 | |
828 | 828 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/bulkEdit/prices/EditPrices.tsx:19 |
829 | - __( 'Bulk edit ticket prices', 'event_espresso' ), |
|
829 | + __('Bulk edit ticket prices', 'event_espresso'), |
|
830 | 830 | |
831 | 831 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/bulkEdit/prices/buttons/EditModeButtons.tsx:20 |
832 | - __( 'Edit all prices together', 'event_espresso' ), |
|
832 | + __('Edit all prices together', 'event_espresso'), |
|
833 | 833 | |
834 | 834 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/bulkEdit/prices/buttons/EditModeButtons.tsx:21 |
835 | - __( 'Edit all the selected ticket prices dynamically', 'event_espresso' ), |
|
835 | + __('Edit all the selected ticket prices dynamically', 'event_espresso'), |
|
836 | 836 | |
837 | 837 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/bulkEdit/prices/buttons/EditModeButtons.tsx:25 |
838 | - __( 'Edit prices individually', 'event_espresso' ), |
|
838 | + __('Edit prices individually', 'event_espresso'), |
|
839 | 839 | |
840 | 840 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/bulkEdit/prices/buttons/EditModeButtons.tsx:26 |
841 | - __( 'Edit prices for each ticket individually', 'event_espresso' ), |
|
841 | + __('Edit prices for each ticket individually', 'event_espresso'), |
|
842 | 842 | |
843 | 843 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/bulkEdit/prices/buttons/FooterButtons.tsx:14 |
844 | 844 | // Reference: packages/ee-components/src/bulkEdit/details/Submit.tsx:34 |
845 | 845 | // Reference: packages/form/src/ResetButton.tsx:18 |
846 | 846 | // Reference: packages/tpc/src/buttons/useResetButtonProps.tsx:12 |
847 | - __( 'Reset', 'event_espresso' ), |
|
847 | + __('Reset', 'event_espresso'), |
|
848 | 848 | |
849 | 849 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/bulkEdit/prices/buttons/FooterButtons.tsx:15 |
850 | 850 | // Reference: packages/tpc/src/hooks/useLockedTicketAction.ts:76 |
851 | 851 | // Reference: packages/ui-components/src/Modal/useCancelButtonProps.tsx:10 |
852 | - __( 'Cancel', 'event_espresso' ), |
|
852 | + __('Cancel', 'event_espresso'), |
|
853 | 853 | |
854 | 854 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/bulkEdit/prices/editSeparately/TPCInstance.tsx:26 |
855 | 855 | /* translators: %s ticket name */ |
856 | - __( 'Edit prices for Ticket: %s', 'event_espresso' ), |
|
856 | + __('Edit prices for Ticket: %s', 'event_espresso'), |
|
857 | 857 | |
858 | 858 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/cardView/TicketCardSidebar.tsx:37 |
859 | - __( 'Edit Ticket Sale Dates', 'event_espresso' ), |
|
859 | + __('Edit Ticket Sale Dates', 'event_espresso'), |
|
860 | 860 | |
861 | 861 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/cardView/TicketCardSidebar.tsx:41 |
862 | - __( 'edit ticket sales start and end dates', 'event_espresso' ), |
|
862 | + __('edit ticket sales start and end dates', 'event_espresso'), |
|
863 | 863 | |
864 | 864 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/cardView/TicketDetailsPanel.tsx:28 |
865 | - __( 'quantity', 'event_espresso' ), |
|
865 | + __('quantity', 'event_espresso'), |
|
866 | 866 | |
867 | 867 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/cardView/TicketQuantity.tsx:27 |
868 | - __( 'edit quantity of tickets available…', 'event_espresso' ), |
|
868 | + __('edit quantity of tickets available…', 'event_espresso'), |
|
869 | 869 | |
870 | 870 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/config.ts:10 |
871 | - __( 'Move Ticket to Trash', 'event_espresso' ), |
|
871 | + __('Move Ticket to Trash', 'event_espresso'), |
|
872 | 872 | |
873 | 873 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/config.ts:15 |
874 | 874 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/tableView/useHeaderRowGenerator.tsx:52 |
875 | - __( 'On Sale', 'event_espresso' ), |
|
875 | + __('On Sale', 'event_espresso'), |
|
876 | 876 | |
877 | 877 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/config.ts:17 |
878 | - __( 'Pending', 'event_espresso' ), |
|
878 | + __('Pending', 'event_espresso'), |
|
879 | 879 | |
880 | 880 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/config.ts:7 |
881 | - __( 'Edit Ticket Details', 'event_espresso' ), |
|
881 | + __('Edit Ticket Details', 'event_espresso'), |
|
882 | 882 | |
883 | 883 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/config.ts:8 |
884 | - __( 'Manage Date Assignments', 'event_espresso' ), |
|
884 | + __('Manage Date Assignments', 'event_espresso'), |
|
885 | 885 | |
886 | 886 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/config.ts:9 |
887 | 887 | // Reference: packages/tpc/src/components/table/Table.tsx:43 |
888 | - __( 'Ticket Price Calculator', 'event_espresso' ), |
|
888 | + __('Ticket Price Calculator', 'event_espresso'), |
|
889 | 889 | |
890 | 890 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/editable/EditablePrice.tsx:39 |
891 | - __( 'edit ticket total…', 'event_espresso' ), |
|
891 | + __('edit ticket total…', 'event_espresso'), |
|
892 | 892 | |
893 | 893 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/editable/EditablePrice.tsx:53 |
894 | - __( 'set price…', 'event_espresso' ), |
|
894 | + __('set price…', 'event_espresso'), |
|
895 | 895 | |
896 | 896 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/IsChainedButton.tsx:23 |
897 | - __( 'tickets list is linked to dates list and is showing tickets for above dates only', 'event_espresso' ), |
|
897 | + __('tickets list is linked to dates list and is showing tickets for above dates only', 'event_espresso'), |
|
898 | 898 | |
899 | 899 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/IsChainedButton.tsx:24 |
900 | - __( 'tickets list is unlinked and is showing tickets for all event dates', 'event_espresso' ), |
|
900 | + __('tickets list is unlinked and is showing tickets for all event dates', 'event_espresso'), |
|
901 | 901 | |
902 | 902 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:10 |
903 | - __( 'ticket sales start and end dates', 'event_espresso' ), |
|
903 | + __('ticket sales start and end dates', 'event_espresso'), |
|
904 | 904 | |
905 | 905 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:15 |
906 | - __( 'tickets with 90% or more sold', 'event_espresso' ), |
|
906 | + __('tickets with 90% or more sold', 'event_espresso'), |
|
907 | 907 | |
908 | 908 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:16 |
909 | - __( 'tickets with 75% or more sold', 'event_espresso' ), |
|
909 | + __('tickets with 75% or more sold', 'event_espresso'), |
|
910 | 910 | |
911 | 911 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:17 |
912 | - __( 'tickets with 50% or more sold', 'event_espresso' ), |
|
912 | + __('tickets with 50% or more sold', 'event_espresso'), |
|
913 | 913 | |
914 | 914 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:19 |
915 | - __( 'tickets with less than 50% sold', 'event_espresso' ), |
|
915 | + __('tickets with less than 50% sold', 'event_espresso'), |
|
916 | 916 | |
917 | 917 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:28 |
918 | - __( 'all tickets for all dates', 'event_espresso' ), |
|
918 | + __('all tickets for all dates', 'event_espresso'), |
|
919 | 919 | |
920 | 920 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:29 |
921 | - __( 'all on sale and sale pending', 'event_espresso' ), |
|
921 | + __('all on sale and sale pending', 'event_espresso'), |
|
922 | 922 | |
923 | 923 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:30 |
924 | - __( 'on sale tickets only', 'event_espresso' ), |
|
924 | + __('on sale tickets only', 'event_espresso'), |
|
925 | 925 | |
926 | 926 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:31 |
927 | - __( 'sale pending tickets only', 'event_espresso' ), |
|
927 | + __('sale pending tickets only', 'event_espresso'), |
|
928 | 928 | |
929 | 929 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:32 |
930 | - __( 'next on sale or sale pending only', 'event_espresso' ), |
|
930 | + __('next on sale or sale pending only', 'event_espresso'), |
|
931 | 931 | |
932 | 932 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:33 |
933 | - __( 'sold out tickets only', 'event_espresso' ), |
|
933 | + __('sold out tickets only', 'event_espresso'), |
|
934 | 934 | |
935 | 935 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:34 |
936 | - __( 'expired tickets only', 'event_espresso' ), |
|
936 | + __('expired tickets only', 'event_espresso'), |
|
937 | 937 | |
938 | 938 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:35 |
939 | - __( 'trashed tickets only', 'event_espresso' ), |
|
939 | + __('trashed tickets only', 'event_espresso'), |
|
940 | 940 | |
941 | 941 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:40 |
942 | - __( 'all tickets for above dates', 'event_espresso' ), |
|
942 | + __('all tickets for above dates', 'event_espresso'), |
|
943 | 943 | |
944 | 944 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:44 |
945 | - __( 'ticket sale date', 'event_espresso' ), |
|
945 | + __('ticket sale date', 'event_espresso'), |
|
946 | 946 | |
947 | 947 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:45 |
948 | - __( 'ticket name', 'event_espresso' ), |
|
948 | + __('ticket name', 'event_espresso'), |
|
949 | 949 | |
950 | 950 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:46 |
951 | - __( 'ticket ID', 'event_espresso' ), |
|
951 | + __('ticket ID', 'event_espresso'), |
|
952 | 952 | |
953 | 953 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:52 |
954 | - __( 'link', 'event_espresso' ), |
|
954 | + __('link', 'event_espresso'), |
|
955 | 955 | |
956 | 956 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:8 |
957 | - __( 'ticket sales start date only', 'event_espresso' ), |
|
957 | + __('ticket sales start date only', 'event_espresso'), |
|
958 | 958 | |
959 | 959 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:9 |
960 | - __( 'ticket sales end date only', 'event_espresso' ), |
|
960 | + __('ticket sales end date only', 'event_espresso'), |
|
961 | 961 | |
962 | 962 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/newTicketOptions/AddSingleTicket.tsx:18 |
963 | - __( 'Add New Ticket', 'event_espresso' ), |
|
963 | + __('Add New Ticket', 'event_espresso'), |
|
964 | 964 | |
965 | 965 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/newTicketOptions/AddSingleTicket.tsx:32 |
966 | - __( 'Add a single ticket and assign the dates to it', 'event_espresso' ), |
|
966 | + __('Add a single ticket and assign the dates to it', 'event_espresso'), |
|
967 | 967 | |
968 | 968 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/newTicketOptions/AddSingleTicket.tsx:34 |
969 | - __( 'Single Ticket', 'event_espresso' ), |
|
969 | + __('Single Ticket', 'event_espresso'), |
|
970 | 970 | |
971 | 971 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/tableView/TableView.tsx:39 |
972 | - __( 'Tickets', 'event_espresso' ), |
|
972 | + __('Tickets', 'event_espresso'), |
|
973 | 973 | |
974 | 974 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/tableView/useHeaderRowGenerator.tsx:110 |
975 | - __( 'Registrations', 'event_espresso' ), |
|
975 | + __('Registrations', 'event_espresso'), |
|
976 | 976 | |
977 | 977 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/tableView/useHeaderRowGenerator.tsx:51 |
978 | - __( 'Goes on Sale', 'event_espresso' ), |
|
978 | + __('Goes on Sale', 'event_espresso'), |
|
979 | 979 | |
980 | 980 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/tableView/useHeaderRowGenerator.tsx:65 |
981 | - __( 'Sale Ends', 'event_espresso' ), |
|
981 | + __('Sale Ends', 'event_espresso'), |
|
982 | 982 | |
983 | 983 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/tableView/useHeaderRowGenerator.tsx:66 |
984 | - __( 'Ends', 'event_espresso' ), |
|
984 | + __('Ends', 'event_espresso'), |
|
985 | 985 | |
986 | 986 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/tableView/useHeaderRowGenerator.tsx:78 |
987 | - __( 'Price', 'event_espresso' ), |
|
987 | + __('Price', 'event_espresso'), |
|
988 | 988 | |
989 | 989 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/tableView/useHeaderRowGenerator.tsx:88 |
990 | - __( 'Quantity', 'event_espresso' ), |
|
990 | + __('Quantity', 'event_espresso'), |
|
991 | 991 | |
992 | 992 | // Reference: domains/core/admin/wpPluginsPage/src/exitSurvey/Popup.tsx:29 |
993 | - __( 'Do you have a moment to share why you are deactivating Event Espresso?', 'event_espresso' ), |
|
993 | + __('Do you have a moment to share why you are deactivating Event Espresso?', 'event_espresso'), |
|
994 | 994 | |
995 | 995 | // Reference: domains/core/admin/wpPluginsPage/src/exitSurvey/Popup.tsx:40 |
996 | - __( 'Skip', 'event_espresso' ), |
|
996 | + __('Skip', 'event_espresso'), |
|
997 | 997 | |
998 | 998 | // Reference: domains/core/admin/wpPluginsPage/src/exitSurvey/Popup.tsx:42 |
999 | - __( 'Sure I\'ll help', 'event_espresso' ), |
|
999 | + __('Sure I\'ll help', 'event_espresso'), |
|
1000 | 1000 | |
1001 | 1001 | // Reference: packages/adapters/src/Pagination/Pagination.tsx:23 |
1002 | - __( 'pagination', 'event_espresso' ), |
|
1002 | + __('pagination', 'event_espresso'), |
|
1003 | 1003 | |
1004 | 1004 | // Reference: packages/adapters/src/TagSelector/TagSelector.tsx:112 |
1005 | - __( 'toggle menu', 'event_espresso' ), |
|
1005 | + __('toggle menu', 'event_espresso'), |
|
1006 | 1006 | |
1007 | 1007 | // Reference: packages/constants/src/datetime.ts:10 |
1008 | - __( 'Postponed', 'event_espresso' ), |
|
1008 | + __('Postponed', 'event_espresso'), |
|
1009 | 1009 | |
1010 | 1010 | // Reference: packages/constants/src/datetime.ts:11 |
1011 | - __( 'SoldOut', 'event_espresso' ), |
|
1011 | + __('SoldOut', 'event_espresso'), |
|
1012 | 1012 | |
1013 | 1013 | // Reference: packages/constants/src/datetime.ts:7 |
1014 | 1014 | // Reference: packages/predicates/src/registration/statusOptions.ts:10 |
1015 | - __( 'Cancelled', 'event_espresso' ), |
|
1015 | + __('Cancelled', 'event_espresso'), |
|
1016 | 1016 | |
1017 | 1017 | // Reference: packages/constants/src/datetime.ts:9 |
1018 | - __( 'Inactive', 'event_espresso' ), |
|
1018 | + __('Inactive', 'event_espresso'), |
|
1019 | 1019 | |
1020 | 1020 | // Reference: packages/dates/src/components/DateRangePicker/DateRangePickerLegend.tsx:13 |
1021 | - __( 'day in range', 'event_espresso' ), |
|
1021 | + __('day in range', 'event_espresso'), |
|
1022 | 1022 | |
1023 | 1023 | // Reference: packages/dates/src/components/DateRangePicker/DateRangePickerLegend.tsx:17 |
1024 | 1024 | // Reference: packages/dates/src/components/DateRangePicker/index.tsx:79 |
1025 | - __( 'end date', 'event_espresso' ), |
|
1025 | + __('end date', 'event_espresso'), |
|
1026 | 1026 | |
1027 | 1027 | // Reference: packages/dates/src/components/DateTimePicker.tsx:13 |
1028 | 1028 | // Reference: packages/dates/src/components/TimePicker.tsx:14 |
1029 | - __( 'time', 'event_espresso' ), |
|
1029 | + __('time', 'event_espresso'), |
|
1030 | 1030 | |
1031 | 1031 | // Reference: packages/dates/src/constants.ts:5 |
1032 | - __( 'End Date & Time must be set later than the Start Date & Time', 'event_espresso' ), |
|
1032 | + __('End Date & Time must be set later than the Start Date & Time', 'event_espresso'), |
|
1033 | 1033 | |
1034 | 1034 | // Reference: packages/dates/src/constants.ts:7 |
1035 | - __( 'Start Date & Time must be set before the End Date & Time', 'event_espresso' ), |
|
1035 | + __('Start Date & Time must be set before the End Date & Time', 'event_espresso'), |
|
1036 | 1036 | |
1037 | 1037 | // Reference: packages/dates/src/utils/misc.ts:16 |
1038 | - __( 'month(s)', 'event_espresso' ), |
|
1038 | + __('month(s)', 'event_espresso'), |
|
1039 | 1039 | |
1040 | 1040 | // Reference: packages/dates/src/utils/misc.ts:17 |
1041 | - __( 'week(s)', 'event_espresso' ), |
|
1041 | + __('week(s)', 'event_espresso'), |
|
1042 | 1042 | |
1043 | 1043 | // Reference: packages/dates/src/utils/misc.ts:18 |
1044 | - __( 'day(s)', 'event_espresso' ), |
|
1044 | + __('day(s)', 'event_espresso'), |
|
1045 | 1045 | |
1046 | 1046 | // Reference: packages/dates/src/utils/misc.ts:19 |
1047 | - __( 'hour(s)', 'event_espresso' ), |
|
1047 | + __('hour(s)', 'event_espresso'), |
|
1048 | 1048 | |
1049 | 1049 | // Reference: packages/dates/src/utils/misc.ts:20 |
1050 | - __( 'minute(s)', 'event_espresso' ), |
|
1050 | + __('minute(s)', 'event_espresso'), |
|
1051 | 1051 | |
1052 | 1052 | // Reference: packages/edtr-services/src/apollo/initialization/useCacheRehydration.ts:105 |
1053 | - __( 'datetimes initialized', 'event_espresso' ), |
|
1053 | + __('datetimes initialized', 'event_espresso'), |
|
1054 | 1054 | |
1055 | 1055 | // Reference: packages/edtr-services/src/apollo/initialization/useCacheRehydration.ts:115 |
1056 | - __( 'tickets initialized', 'event_espresso' ), |
|
1056 | + __('tickets initialized', 'event_espresso'), |
|
1057 | 1057 | |
1058 | 1058 | // Reference: packages/edtr-services/src/apollo/initialization/useCacheRehydration.ts:125 |
1059 | - __( 'prices initialized', 'event_espresso' ), |
|
1059 | + __('prices initialized', 'event_espresso'), |
|
1060 | 1060 | |
1061 | 1061 | // Reference: packages/edtr-services/src/apollo/initialization/useCacheRehydration.ts:95 |
1062 | - __( 'price types initialized', 'event_espresso' ), |
|
1062 | + __('price types initialized', 'event_espresso'), |
|
1063 | 1063 | |
1064 | 1064 | // Reference: packages/edtr-services/src/apollo/mutations/useReorderEntities.ts:72 |
1065 | - __( 'reordering has been applied', 'event_espresso' ), |
|
1065 | + __('reordering has been applied', 'event_espresso'), |
|
1066 | 1066 | |
1067 | 1067 | // Reference: packages/edtr-services/src/utils/dateAndTime.ts:38 |
1068 | 1068 | // Reference: packages/ui-components/src/EditDateRangeButton/EditDateRangeButton.tsx:39 |
1069 | - __( 'End date has been adjusted', 'event_espresso' ), |
|
1069 | + __('End date has been adjusted', 'event_espresso'), |
|
1070 | 1070 | |
1071 | 1071 | // Reference: packages/edtr-services/src/utils/dateAndTime.ts:59 |
1072 | - __( 'Required', 'event_espresso' ), |
|
1072 | + __('Required', 'event_espresso'), |
|
1073 | 1073 | |
1074 | 1074 | // Reference: packages/edtr-services/src/utils/dateAndTime.ts:64 |
1075 | - __( 'Start Date is required', 'event_espresso' ), |
|
1075 | + __('Start Date is required', 'event_espresso'), |
|
1076 | 1076 | |
1077 | 1077 | // Reference: packages/edtr-services/src/utils/dateAndTime.ts:68 |
1078 | - __( 'End Date is required', 'event_espresso' ), |
|
1078 | + __('End Date is required', 'event_espresso'), |
|
1079 | 1079 | |
1080 | 1080 | // Reference: packages/ee-components/src/EntityList/EntityList.tsx:31 |
1081 | - __( 'no results found', 'event_espresso' ), |
|
1081 | + __('no results found', 'event_espresso'), |
|
1082 | 1082 | |
1083 | 1083 | // Reference: packages/ee-components/src/EntityList/EntityList.tsx:32 |
1084 | - __( 'try changing filter settings', 'event_espresso' ), |
|
1084 | + __('try changing filter settings', 'event_espresso'), |
|
1085 | 1085 | |
1086 | 1086 | // Reference: packages/ee-components/src/SimpleTicketCard/SimpleTicketCard.tsx:27 |
1087 | 1087 | // Reference: packages/ui-components/src/CalendarDateSwitcher/CalendarDateSwitcher.tsx:34 |
1088 | - __( 'starts', 'event_espresso' ), |
|
1088 | + __('starts', 'event_espresso'), |
|
1089 | 1089 | |
1090 | 1090 | // Reference: packages/ee-components/src/SimpleTicketCard/SimpleTicketCard.tsx:34 |
1091 | 1091 | // Reference: packages/ui-components/src/CalendarDateSwitcher/CalendarDateSwitcher.tsx:47 |
1092 | - __( 'ends', 'event_espresso' ), |
|
1092 | + __('ends', 'event_espresso'), |
|
1093 | 1093 | |
1094 | 1094 | // Reference: packages/ee-components/src/bulkEdit/ActionCheckbox.tsx:38 |
1095 | 1095 | /* translators: %d entity id */ |
1096 | - __( 'select entity with id %d', 'event_espresso' ), |
|
1096 | + __('select entity with id %d', 'event_espresso'), |
|
1097 | 1097 | |
1098 | 1098 | // Reference: packages/ee-components/src/bulkEdit/ActionCheckbox.tsx:41 |
1099 | - __( 'select all entities', 'event_espresso' ), |
|
1099 | + __('select all entities', 'event_espresso'), |
|
1100 | 1100 | |
1101 | 1101 | // Reference: packages/ee-components/src/bulkEdit/details/BulkEditDetails.tsx:20 |
1102 | - __( 'Note: ', 'event_espresso' ), |
|
1102 | + __('Note: ', 'event_espresso'), |
|
1103 | 1103 | |
1104 | 1104 | // Reference: packages/ee-components/src/bulkEdit/details/BulkEditDetails.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/ee-components/src/bulkEdit/details/BulkEditDetails.tsx:26 |
1108 | - __( 'Bulk edit details', 'event_espresso' ), |
|
1108 | + __('Bulk edit details', 'event_espresso'), |
|
1109 | 1109 | |
1110 | 1110 | // Reference: packages/ee-components/src/bulkEdit/details/Submit.tsx:17 |
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/ee-components/src/bulkEdit/details/Submit.tsx:18 |
1114 | - __( 'Bulk update details', 'event_espresso' ), |
|
1114 | + __('Bulk update details', 'event_espresso'), |
|
1115 | 1115 | |
1116 | 1116 | // Reference: packages/ee-components/src/filterBar/SortByControl/index.tsx:26 |
1117 | - __( 'reorder dates', 'event_espresso' ), |
|
1117 | + __('reorder dates', 'event_espresso'), |
|
1118 | 1118 | |
1119 | 1119 | // Reference: packages/ee-components/src/filterBar/SortByControl/index.tsx:26 |
1120 | - __( 'reorder tickets', 'event_espresso' ), |
|
1120 | + __('reorder tickets', 'event_espresso'), |
|
1121 | 1121 | |
1122 | 1122 | // Reference: packages/form-builder/src/FormElement/FormElementToolbar.tsx:32 |
1123 | - __( 'delete form element', 'event_espresso' ), |
|
1123 | + __('delete form element', 'event_espresso'), |
|
1124 | 1124 | |
1125 | 1125 | // Reference: packages/form-builder/src/FormElement/FormElementToolbar.tsx:49 |
1126 | - __( 'form element settings', 'event_espresso' ), |
|
1126 | + __('form element settings', 'event_espresso'), |
|
1127 | 1127 | |
1128 | 1128 | // Reference: packages/form-builder/src/FormElement/FormElementToolbar.tsx:59 |
1129 | - __( 'copy form element', 'event_espresso' ), |
|
1129 | + __('copy form element', 'event_espresso'), |
|
1130 | 1130 | |
1131 | 1131 | // Reference: packages/form-builder/src/FormElement/FormElementToolbar.tsx:69 |
1132 | - __( 'click, hold, and drag to reorder form element', 'event_espresso' ), |
|
1132 | + __('click, hold, and drag to reorder form element', 'event_espresso'), |
|
1133 | 1133 | |
1134 | 1134 | // Reference: packages/form-builder/src/FormElement/Tabs/FieldOption.tsx:20 |
1135 | - __( 'remove option', 'event_espresso' ), |
|
1135 | + __('remove option', 'event_espresso'), |
|
1136 | 1136 | |
1137 | 1137 | // Reference: packages/form-builder/src/FormElement/Tabs/FieldOption.tsx:42 |
1138 | - __( 'value', 'event_espresso' ), |
|
1138 | + __('value', 'event_espresso'), |
|
1139 | 1139 | |
1140 | 1140 | // Reference: packages/form-builder/src/FormElement/Tabs/FieldOption.tsx:52 |
1141 | - __( 'label', 'event_espresso' ), |
|
1141 | + __('label', 'event_espresso'), |
|
1142 | 1142 | |
1143 | 1143 | // Reference: packages/form-builder/src/FormElement/Tabs/FieldOption.tsx:63 |
1144 | - __( 'click, hold, and drag to reorder field option', 'event_espresso' ), |
|
1144 | + __('click, hold, and drag to reorder field option', 'event_espresso'), |
|
1145 | 1145 | |
1146 | 1146 | // Reference: packages/form-builder/src/FormElement/Tabs/FieldOptions.tsx:61 |
1147 | - __( 'Options are the choices you give people to select from.', 'event_espresso' ), |
|
1147 | + __('Options are the choices you give people to select from.', 'event_espresso'), |
|
1148 | 1148 | |
1149 | 1149 | // Reference: packages/form-builder/src/FormElement/Tabs/FieldOptions.tsx:63 |
1150 | - __( 'The value is a simple key that will be saved to the database and the label is what is shown to the user.', 'event_espresso' ), |
|
1150 | + __('The value is a simple key that will be saved to the database and the label is what is shown to the user.', 'event_espresso'), |
|
1151 | 1151 | |
1152 | 1152 | // Reference: packages/form-builder/src/FormElement/Tabs/FieldOptions.tsx:96 |
1153 | - __( 'add new option', 'event_espresso' ), |
|
1153 | + __('add new option', 'event_espresso'), |
|
1154 | 1154 | |
1155 | 1155 | // Reference: packages/form-builder/src/FormElement/Tabs/FormElementTabs.tsx:22 |
1156 | 1156 | // Reference: packages/form-builder/src/FormSection/Tabs/FormSectionTabs.tsx:21 |
1157 | - __( 'Settings', 'event_espresso' ), |
|
1157 | + __('Settings', 'event_espresso'), |
|
1158 | 1158 | |
1159 | 1159 | // Reference: packages/form-builder/src/FormElement/Tabs/FormElementTabs.tsx:26 |
1160 | 1160 | // Reference: packages/form-builder/src/FormSection/Tabs/FormSectionTabs.tsx:25 |
1161 | - __( 'Styles', 'event_espresso' ), |
|
1161 | + __('Styles', 'event_espresso'), |
|
1162 | 1162 | |
1163 | 1163 | // Reference: packages/form-builder/src/FormElement/Tabs/FormElementTabs.tsx:30 |
1164 | - __( 'Validation', 'event_espresso' ), |
|
1164 | + __('Validation', 'event_espresso'), |
|
1165 | 1165 | |
1166 | 1166 | // Reference: packages/form-builder/src/FormElement/Tabs/FormElementTabs.tsx:34 |
1167 | 1167 | // Reference: packages/form-builder/src/FormSection/Tabs/FormSectionTabs.tsx:29 |
1168 | - __( 'Rules', 'event_espresso' ), |
|
1168 | + __('Rules', 'event_espresso'), |
|
1169 | 1169 | |
1170 | 1170 | // Reference: packages/form-builder/src/FormElement/Tabs/Settings.tsx:18 |
1171 | 1171 | // Reference: packages/form-builder/src/FormSection/Tabs/Settings.tsx:19 |
1172 | - __( 'admin label', 'event_espresso' ), |
|
1172 | + __('admin label', 'event_espresso'), |
|
1173 | 1173 | |
1174 | 1174 | // Reference: packages/form-builder/src/FormElement/Tabs/Settings.tsx:23 |
1175 | - __( 'admin only', 'event_espresso' ), |
|
1175 | + __('admin only', 'event_espresso'), |
|
1176 | 1176 | |
1177 | 1177 | // Reference: packages/form-builder/src/FormElement/Tabs/Settings.tsx:30 |
1178 | - __( 'content', 'event_espresso' ), |
|
1178 | + __('content', 'event_espresso'), |
|
1179 | 1179 | |
1180 | 1180 | // Reference: packages/form-builder/src/FormElement/Tabs/Settings.tsx:39 |
1181 | 1181 | // Reference: packages/form-builder/src/FormSection/Tabs/Settings.tsx:14 |
1182 | - __( 'public label', 'event_espresso' ), |
|
1182 | + __('public label', 'event_espresso'), |
|
1183 | 1183 | |
1184 | 1184 | // Reference: packages/form-builder/src/FormElement/Tabs/Settings.tsx:44 |
1185 | - __( 'options', 'event_espresso' ), |
|
1185 | + __('options', 'event_espresso'), |
|
1186 | 1186 | |
1187 | 1187 | // Reference: packages/form-builder/src/FormElement/Tabs/Settings.tsx:47 |
1188 | - __( 'placeholder', 'event_espresso' ), |
|
1188 | + __('placeholder', 'event_espresso'), |
|
1189 | 1189 | |
1190 | 1190 | // Reference: packages/form-builder/src/FormElement/Tabs/Settings.tsx:52 |
1191 | - __( 'help text', 'event_espresso' ), |
|
1191 | + __('help text', 'event_espresso'), |
|
1192 | 1192 | |
1193 | 1193 | // Reference: packages/form-builder/src/FormElement/Tabs/Styles.tsx:14 |
1194 | 1194 | // Reference: packages/form-builder/src/FormSection/Tabs/Styles.tsx:13 |
1195 | - __( 'css class', 'event_espresso' ), |
|
1195 | + __('css class', 'event_espresso'), |
|
1196 | 1196 | |
1197 | 1197 | // Reference: packages/form-builder/src/FormElement/Tabs/Styles.tsx:19 |
1198 | - __( 'help text css class', 'event_espresso' ), |
|
1198 | + __('help text css class', 'event_espresso'), |
|
1199 | 1199 | |
1200 | 1200 | // Reference: packages/form-builder/src/FormElement/Tabs/Validation.tsx:16 |
1201 | - __( 'required', 'event_espresso' ), |
|
1201 | + __('required', 'event_espresso'), |
|
1202 | 1202 | |
1203 | 1203 | // Reference: packages/form-builder/src/FormElement/Tabs/Validation.tsx:21 |
1204 | - __( 'required text', 'event_espresso' ), |
|
1204 | + __('required text', 'event_espresso'), |
|
1205 | 1205 | |
1206 | 1206 | // Reference: packages/form-builder/src/FormElement/Tabs/Validation.tsx:28 |
1207 | - __( 'min', 'event_espresso' ), |
|
1207 | + __('min', 'event_espresso'), |
|
1208 | 1208 | |
1209 | 1209 | // Reference: packages/form-builder/src/FormElement/Tabs/Validation.tsx:33 |
1210 | - __( 'max', 'event_espresso' ), |
|
1210 | + __('max', 'event_espresso'), |
|
1211 | 1211 | |
1212 | 1212 | // Reference: packages/form-builder/src/FormSection/AddFormElementPopover.tsx:110 |
1213 | - __( 'add new form element', 'event_espresso' ), |
|
1213 | + __('add new form element', 'event_espresso'), |
|
1214 | 1214 | |
1215 | 1215 | // Reference: packages/form-builder/src/FormSection/AddFormElementPopover.tsx:117 |
1216 | 1216 | // Reference: packages/form/src/renderers/RepeatableRenderer.tsx:52 |
1217 | 1217 | // Reference: packages/ui-components/src/SimpleEntityList/EntityTemplate.tsx:27 |
1218 | - __( 'Add', 'event_espresso' ), |
|
1218 | + __('Add', 'event_espresso'), |
|
1219 | 1219 | |
1220 | 1220 | // Reference: packages/form-builder/src/FormSection/AddFormElementPopover.tsx:76 |
1221 | - __( 'Add Form Element', 'event_espresso' ), |
|
1221 | + __('Add Form Element', 'event_espresso'), |
|
1222 | 1222 | |
1223 | 1223 | // Reference: packages/form-builder/src/FormSection/AddFormElementPopover.tsx:85 |
1224 | - __( 'form element order can be changed after adding by using the drag handles in the form element toolbar', 'event_espresso' ), |
|
1224 | + __('form element order can be changed after adding by using the drag handles in the form element toolbar', 'event_espresso'), |
|
1225 | 1225 | |
1226 | 1226 | // Reference: packages/form-builder/src/FormSection/AddFormElementPopover.tsx:92 |
1227 | - __( 'load existing form section', 'event_espresso' ), |
|
1227 | + __('load existing form section', 'event_espresso'), |
|
1228 | 1228 | |
1229 | 1229 | // Reference: packages/form-builder/src/FormSection/FormSectionToolbar.tsx:32 |
1230 | - __( 'delete form section', 'event_espresso' ), |
|
1230 | + __('delete form section', 'event_espresso'), |
|
1231 | 1231 | |
1232 | 1232 | // Reference: packages/form-builder/src/FormSection/FormSectionToolbar.tsx:47 |
1233 | - __( 'form section settings', 'event_espresso' ), |
|
1233 | + __('form section settings', 'event_espresso'), |
|
1234 | 1234 | |
1235 | 1235 | // Reference: packages/form-builder/src/FormSection/FormSectionToolbar.tsx:57 |
1236 | - __( 'copy form section', 'event_espresso' ), |
|
1236 | + __('copy form section', 'event_espresso'), |
|
1237 | 1237 | |
1238 | 1238 | // Reference: packages/form-builder/src/FormSection/FormSectionToolbar.tsx:74 |
1239 | - __( 'click, hold, and drag to reorder form section', 'event_espresso' ), |
|
1239 | + __('click, hold, and drag to reorder form section', 'event_espresso'), |
|
1240 | 1240 | |
1241 | 1241 | // Reference: packages/form-builder/src/FormSection/FormSections.tsx:26 |
1242 | - __( 'Add Form Section', 'event_espresso' ), |
|
1242 | + __('Add Form Section', 'event_espresso'), |
|
1243 | 1243 | |
1244 | 1244 | // Reference: packages/form-builder/src/FormSection/SaveSection.tsx:43 |
1245 | - __( 'save form section for use in other forms', 'event_espresso' ), |
|
1245 | + __('save form section for use in other forms', 'event_espresso'), |
|
1246 | 1246 | |
1247 | 1247 | // Reference: packages/form-builder/src/FormSection/SaveSection.tsx:47 |
1248 | - __( 'save as', 'event_espresso' ), |
|
1248 | + __('save as', 'event_espresso'), |
|
1249 | 1249 | |
1250 | 1250 | // Reference: packages/form-builder/src/FormSection/SaveSection.tsx:51 |
1251 | - __( 'default', 'event_espresso' ), |
|
1251 | + __('default', 'event_espresso'), |
|
1252 | 1252 | |
1253 | 1253 | // Reference: packages/form-builder/src/FormSection/SaveSection.tsx:54 |
1254 | - __( ' a copy of this form section will be automatically added to ALL new events', 'event_espresso' ), |
|
1254 | + __(' a copy of this form section will be automatically added to ALL new events', 'event_espresso'), |
|
1255 | 1255 | |
1256 | 1256 | // Reference: packages/form-builder/src/FormSection/SaveSection.tsx:57 |
1257 | - __( 'shared', 'event_espresso' ), |
|
1257 | + __('shared', 'event_espresso'), |
|
1258 | 1258 | |
1259 | 1259 | // Reference: packages/form-builder/src/FormSection/SaveSection.tsx:60 |
1260 | - __( 'a copy of this form section will be saved for use in other events but not loaded by default', 'event_espresso' ), |
|
1260 | + __('a copy of this form section will be saved for use in other events but not loaded by default', 'event_espresso'), |
|
1261 | 1261 | |
1262 | 1262 | // Reference: packages/form-builder/src/FormSection/Tabs/Settings.tsx:24 |
1263 | - __( 'show label', 'event_espresso' ), |
|
1263 | + __('show label', 'event_espresso'), |
|
1264 | 1264 | |
1265 | 1265 | // Reference: packages/form-builder/src/constants.ts:100 |
1266 | - __( 'Time', 'event_espresso' ), |
|
1266 | + __('Time', 'event_espresso'), |
|
1267 | 1267 | |
1268 | 1268 | // Reference: packages/form-builder/src/constants.ts:102 |
1269 | - __( 'adds a text input that allows users to enter a time directly via keyboard or a timepicker', 'event_espresso' ), |
|
1269 | + __('adds a text input that allows users to enter a time directly via keyboard or a timepicker', 'event_espresso'), |
|
1270 | 1270 | |
1271 | 1271 | // Reference: packages/form-builder/src/constants.ts:105 |
1272 | - __( 'Week', 'event_espresso' ), |
|
1272 | + __('Week', 'event_espresso'), |
|
1273 | 1273 | |
1274 | 1274 | // Reference: packages/form-builder/src/constants.ts:107 |
1275 | - __( 'adds a text input that allows users to enter a week and year directly via keyboard or a datepicker', 'event_espresso' ), |
|
1275 | + __('adds a text input that allows users to enter a week and year directly via keyboard or a datepicker', 'event_espresso'), |
|
1276 | 1276 | |
1277 | 1277 | // Reference: packages/form-builder/src/constants.ts:110 |
1278 | - __( 'Day Selector', 'event_espresso' ), |
|
1278 | + __('Day Selector', 'event_espresso'), |
|
1279 | 1279 | |
1280 | 1280 | // Reference: packages/form-builder/src/constants.ts:112 |
1281 | - __( 'adds a dropdown selector that allows users to select the day of the month (01 to 31)', 'event_espresso' ), |
|
1281 | + __('adds a dropdown selector that allows users to select the day of the month (01 to 31)', 'event_espresso'), |
|
1282 | 1282 | |
1283 | 1283 | // Reference: packages/form-builder/src/constants.ts:115 |
1284 | - __( 'Month Selector', 'event_espresso' ), |
|
1284 | + __('Month Selector', 'event_espresso'), |
|
1285 | 1285 | |
1286 | 1286 | // Reference: packages/form-builder/src/constants.ts:117 |
1287 | - __( 'adds a dropdown selector that allows users to select the month of the year (01 to 12)', 'event_espresso' ), |
|
1287 | + __('adds a dropdown selector that allows users to select the month of the year (01 to 12)', 'event_espresso'), |
|
1288 | 1288 | |
1289 | 1289 | // Reference: packages/form-builder/src/constants.ts:120 |
1290 | - __( 'Year Selector', 'event_espresso' ), |
|
1290 | + __('Year Selector', 'event_espresso'), |
|
1291 | 1291 | |
1292 | 1292 | // Reference: packages/form-builder/src/constants.ts:122 |
1293 | - __( 'adds a dropdown selector that allows users to select the year from a configurable range', 'event_espresso' ), |
|
1293 | + __('adds a dropdown selector that allows users to select the year from a configurable range', 'event_espresso'), |
|
1294 | 1294 | |
1295 | 1295 | // Reference: packages/form-builder/src/constants.ts:125 |
1296 | - __( 'Radio Buttons', 'event_espresso' ), |
|
1296 | + __('Radio Buttons', 'event_espresso'), |
|
1297 | 1297 | |
1298 | 1298 | // Reference: packages/form-builder/src/constants.ts:127 |
1299 | - __( 'adds one or more radio buttons that allow users to only select one option from those provided', 'event_espresso' ), |
|
1299 | + __('adds one or more radio buttons that allow users to only select one option from those provided', 'event_espresso'), |
|
1300 | 1300 | |
1301 | 1301 | // Reference: packages/form-builder/src/constants.ts:130 |
1302 | - __( 'Decimal Number', 'event_espresso' ), |
|
1302 | + __('Decimal Number', 'event_espresso'), |
|
1303 | 1303 | |
1304 | 1304 | // Reference: packages/form-builder/src/constants.ts:132 |
1305 | - __( 'adds a text input that only accepts numbers whose value is a decimal (float)', 'event_espresso' ), |
|
1305 | + __('adds a text input that only accepts numbers whose value is a decimal (float)', 'event_espresso'), |
|
1306 | 1306 | |
1307 | 1307 | // Reference: packages/form-builder/src/constants.ts:135 |
1308 | - __( 'Whole Number', 'event_espresso' ), |
|
1308 | + __('Whole Number', 'event_espresso'), |
|
1309 | 1309 | |
1310 | 1310 | // Reference: packages/form-builder/src/constants.ts:137 |
1311 | - __( 'adds a text input that only accepts numbers whose value is an integer (whole number)', 'event_espresso' ), |
|
1311 | + __('adds a text input that only accepts numbers whose value is an integer (whole number)', 'event_espresso'), |
|
1312 | 1312 | |
1313 | 1313 | // Reference: packages/form-builder/src/constants.ts:140 |
1314 | - __( 'Number Range', 'event_espresso' ), |
|
1314 | + __('Number Range', 'event_espresso'), |
|
1315 | 1315 | |
1316 | 1316 | // Reference: packages/form-builder/src/constants.ts:145 |
1317 | - __( 'Phone Number', 'event_espresso' ), |
|
1317 | + __('Phone Number', 'event_espresso'), |
|
1318 | 1318 | |
1319 | 1319 | // Reference: packages/form-builder/src/constants.ts:150 |
1320 | - __( 'Dropdown', 'event_espresso' ), |
|
1320 | + __('Dropdown', 'event_espresso'), |
|
1321 | 1321 | |
1322 | 1322 | // Reference: packages/form-builder/src/constants.ts:152 |
1323 | - __( 'adds a dropdown selector that accepts a single value', 'event_espresso' ), |
|
1323 | + __('adds a dropdown selector that accepts a single value', 'event_espresso'), |
|
1324 | 1324 | |
1325 | 1325 | // Reference: packages/form-builder/src/constants.ts:155 |
1326 | - __( 'Multi Select', 'event_espresso' ), |
|
1326 | + __('Multi Select', 'event_espresso'), |
|
1327 | 1327 | |
1328 | 1328 | // Reference: packages/form-builder/src/constants.ts:157 |
1329 | - __( 'adds a dropdown selector that accepts multiple values', 'event_espresso' ), |
|
1329 | + __('adds a dropdown selector that accepts multiple values', 'event_espresso'), |
|
1330 | 1330 | |
1331 | 1331 | // Reference: packages/form-builder/src/constants.ts:160 |
1332 | - __( 'Toggle/Switch', 'event_espresso' ), |
|
1332 | + __('Toggle/Switch', 'event_espresso'), |
|
1333 | 1333 | |
1334 | 1334 | // Reference: packages/form-builder/src/constants.ts:162 |
1335 | - __( 'adds a toggle or a switch to accept true or false value', 'event_espresso' ), |
|
1335 | + __('adds a toggle or a switch to accept true or false value', 'event_espresso'), |
|
1336 | 1336 | |
1337 | 1337 | // Reference: packages/form-builder/src/constants.ts:165 |
1338 | - __( 'Multi Checkbox', 'event_espresso' ), |
|
1338 | + __('Multi Checkbox', 'event_espresso'), |
|
1339 | 1339 | |
1340 | 1340 | // Reference: packages/form-builder/src/constants.ts:167 |
1341 | - __( 'adds checkboxes that allow users to select zero or more options from those provided', 'event_espresso' ), |
|
1341 | + __('adds checkboxes that allow users to select zero or more options from those provided', 'event_espresso'), |
|
1342 | 1342 | |
1343 | 1343 | // Reference: packages/form-builder/src/constants.ts:170 |
1344 | - __( 'Country Selector', 'event_espresso' ), |
|
1344 | + __('Country Selector', 'event_espresso'), |
|
1345 | 1345 | |
1346 | 1346 | // Reference: packages/form-builder/src/constants.ts:172 |
1347 | - __( 'adds a dropdown selector populated with names of countries that are enabled for the site', 'event_espresso' ), |
|
1347 | + __('adds a dropdown selector populated with names of countries that are enabled for the site', 'event_espresso'), |
|
1348 | 1348 | |
1349 | 1349 | // Reference: packages/form-builder/src/constants.ts:175 |
1350 | - __( 'State Selector', 'event_espresso' ), |
|
1350 | + __('State Selector', 'event_espresso'), |
|
1351 | 1351 | |
1352 | 1352 | // Reference: packages/form-builder/src/constants.ts:180 |
1353 | - __( 'Button', 'event_espresso' ), |
|
1353 | + __('Button', 'event_espresso'), |
|
1354 | 1354 | |
1355 | 1355 | // Reference: packages/form-builder/src/constants.ts:182 |
1356 | - __( 'adds a button to the form that can be used for triggering fucntionality (requires custom coding)', 'event_espresso' ), |
|
1356 | + __('adds a button to the form that can be used for triggering fucntionality (requires custom coding)', 'event_espresso'), |
|
1357 | 1357 | |
1358 | 1358 | // Reference: packages/form-builder/src/constants.ts:185 |
1359 | - __( 'Reset Button', 'event_espresso' ), |
|
1359 | + __('Reset Button', 'event_espresso'), |
|
1360 | 1360 | |
1361 | 1361 | // Reference: packages/form-builder/src/constants.ts:187 |
1362 | - __( 'adds a button that will reset the form back to its orginial state.', 'event_espresso' ), |
|
1362 | + __('adds a button that will reset the form back to its orginial state.', 'event_espresso'), |
|
1363 | 1363 | |
1364 | 1364 | // Reference: packages/form-builder/src/constants.ts:38 |
1365 | - __( 'Form Section', 'event_espresso' ), |
|
1365 | + __('Form Section', 'event_espresso'), |
|
1366 | 1366 | |
1367 | 1367 | // Reference: packages/form-builder/src/constants.ts:40 |
1368 | - __( 'Used for creating logical groupings for questions and form elements. Need to add a heading or description? Use the HTML form element.', 'event_espresso' ), |
|
1368 | + __('Used for creating logical groupings for questions and form elements. Need to add a heading or description? Use the HTML form element.', 'event_espresso'), |
|
1369 | 1369 | |
1370 | 1370 | // Reference: packages/form-builder/src/constants.ts:45 |
1371 | - __( 'HTML Block', 'event_espresso' ), |
|
1371 | + __('HTML Block', 'event_espresso'), |
|
1372 | 1372 | |
1373 | 1373 | // Reference: packages/form-builder/src/constants.ts:47 |
1374 | - __( 'allows you to add HTML like headings or text paragraphs to your form', 'event_espresso' ), |
|
1374 | + __('allows you to add HTML like headings or text paragraphs to your form', 'event_espresso'), |
|
1375 | 1375 | |
1376 | 1376 | // Reference: packages/form-builder/src/constants.ts:50 |
1377 | - __( 'Text Input', 'event_espresso' ), |
|
1377 | + __('Text Input', 'event_espresso'), |
|
1378 | 1378 | |
1379 | 1379 | // Reference: packages/form-builder/src/constants.ts:52 |
1380 | - __( 'adds a text input that only accepts plain text', 'event_espresso' ), |
|
1380 | + __('adds a text input that only accepts plain text', 'event_espresso'), |
|
1381 | 1381 | |
1382 | 1382 | // Reference: packages/form-builder/src/constants.ts:55 |
1383 | - __( 'Plain Text Area', 'event_espresso' ), |
|
1383 | + __('Plain Text Area', 'event_espresso'), |
|
1384 | 1384 | |
1385 | 1385 | // Reference: packages/form-builder/src/constants.ts:57 |
1386 | - __( 'adds a textarea block that only accepts plain text', 'event_espresso' ), |
|
1386 | + __('adds a textarea block that only accepts plain text', 'event_espresso'), |
|
1387 | 1387 | |
1388 | 1388 | // Reference: packages/form-builder/src/constants.ts:60 |
1389 | - __( 'HTML Text Area', 'event_espresso' ), |
|
1389 | + __('HTML Text Area', 'event_espresso'), |
|
1390 | 1390 | |
1391 | 1391 | // Reference: packages/form-builder/src/constants.ts:62 |
1392 | - __( 'adds a textarea block that accepts text including simple HTML markup', 'event_espresso' ), |
|
1392 | + __('adds a textarea block that accepts text including simple HTML markup', 'event_espresso'), |
|
1393 | 1393 | |
1394 | 1394 | // Reference: packages/form-builder/src/constants.ts:65 |
1395 | - __( 'Email Address', 'event_espresso' ), |
|
1395 | + __('Email Address', 'event_espresso'), |
|
1396 | 1396 | |
1397 | 1397 | // Reference: packages/form-builder/src/constants.ts:67 |
1398 | - __( 'adds a text input that only accets a valid email address', 'event_espresso' ), |
|
1398 | + __('adds a text input that only accets a valid email address', 'event_espresso'), |
|
1399 | 1399 | |
1400 | 1400 | // Reference: packages/form-builder/src/constants.ts:70 |
1401 | - __( 'Email Confirmation', 'event_espresso' ), |
|
1401 | + __('Email Confirmation', 'event_espresso'), |
|
1402 | 1402 | |
1403 | 1403 | // Reference: packages/form-builder/src/constants.ts:75 |
1404 | - __( 'Password', 'event_espresso' ), |
|
1404 | + __('Password', 'event_espresso'), |
|
1405 | 1405 | |
1406 | 1406 | // Reference: packages/form-builder/src/constants.ts:77 |
1407 | - __( 'adds a text input that accepts text but masks what the user enters', 'event_espresso' ), |
|
1407 | + __('adds a text input that accepts text but masks what the user enters', 'event_espresso'), |
|
1408 | 1408 | |
1409 | 1409 | // Reference: packages/form-builder/src/constants.ts:80 |
1410 | - __( 'URL', 'event_espresso' ), |
|
1410 | + __('URL', 'event_espresso'), |
|
1411 | 1411 | |
1412 | 1412 | // Reference: packages/form-builder/src/constants.ts:82 |
1413 | - __( 'adds a text input for entering a URL address', 'event_espresso' ), |
|
1413 | + __('adds a text input for entering a URL address', 'event_espresso'), |
|
1414 | 1414 | |
1415 | 1415 | // Reference: packages/form-builder/src/constants.ts:85 |
1416 | - __( 'Date', 'event_espresso' ), |
|
1416 | + __('Date', 'event_espresso'), |
|
1417 | 1417 | |
1418 | 1418 | // Reference: packages/form-builder/src/constants.ts:87 |
1419 | - __( 'adds a text input that allows users to enter a date directly via keyboard or a datepicker', 'event_espresso' ), |
|
1419 | + __('adds a text input that allows users to enter a date directly via keyboard or a datepicker', 'event_espresso'), |
|
1420 | 1420 | |
1421 | 1421 | // Reference: packages/form-builder/src/constants.ts:90 |
1422 | - __( 'Local Date', 'event_espresso' ), |
|
1422 | + __('Local Date', 'event_espresso'), |
|
1423 | 1423 | |
1424 | 1424 | // Reference: packages/form-builder/src/constants.ts:95 |
1425 | - __( 'Month', 'event_espresso' ), |
|
1425 | + __('Month', 'event_espresso'), |
|
1426 | 1426 | |
1427 | 1427 | // Reference: packages/form-builder/src/constants.ts:97 |
1428 | - __( 'adds a text input that allows users to enter a month and year directly via keyboard or a datepicker', 'event_espresso' ), |
|
1428 | + __('adds a text input that allows users to enter a month and year directly via keyboard or a datepicker', 'event_espresso'), |
|
1429 | 1429 | |
1430 | 1430 | // Reference: packages/form/src/adapters/WPMediaImage.tsx:12 |
1431 | - __( 'Select Image', 'event_espresso' ), |
|
1431 | + __('Select Image', 'event_espresso'), |
|
1432 | 1432 | |
1433 | 1433 | // Reference: packages/form/src/adapters/WPMediaImage.tsx:44 |
1434 | 1434 | // Reference: packages/rich-text-editor/src/components/AdvancedTextEditor/toolbarButtons/WPMedia.tsx:11 |
1435 | 1435 | // Reference: packages/rich-text-editor/src/rte-old/components/toolbarButtons/WPMedia.tsx:12 |
1436 | - __( 'Select', 'event_espresso' ), |
|
1436 | + __('Select', 'event_espresso'), |
|
1437 | 1437 | |
1438 | 1438 | // Reference: packages/form/src/renderers/RepeatableRenderer.tsx:36 |
1439 | 1439 | /* translators: %d the entry number */ |
1440 | - __( 'Entry %d', 'event_espresso' ), |
|
1440 | + __('Entry %d', 'event_espresso'), |
|
1441 | 1441 | |
1442 | 1442 | // Reference: packages/helpers/src/datetimes/getStatusTextLabel.ts:11 |
1443 | 1443 | // Reference: packages/helpers/src/tickets/getStatusTextLabel.ts:17 |
1444 | - __( 'sold out', 'event_espresso' ), |
|
1444 | + __('sold out', 'event_espresso'), |
|
1445 | 1445 | |
1446 | 1446 | // Reference: packages/helpers/src/datetimes/getStatusTextLabel.ts:14 |
1447 | 1447 | // Reference: packages/helpers/src/tickets/getStatusTextLabel.ts:14 |
1448 | - __( 'expired', 'event_espresso' ), |
|
1448 | + __('expired', 'event_espresso'), |
|
1449 | 1449 | |
1450 | 1450 | // Reference: packages/helpers/src/datetimes/getStatusTextLabel.ts:17 |
1451 | - __( 'upcoming', 'event_espresso' ), |
|
1451 | + __('upcoming', 'event_espresso'), |
|
1452 | 1452 | |
1453 | 1453 | // Reference: packages/helpers/src/datetimes/getStatusTextLabel.ts:20 |
1454 | - __( 'active', 'event_espresso' ), |
|
1454 | + __('active', 'event_espresso'), |
|
1455 | 1455 | |
1456 | 1456 | // Reference: packages/helpers/src/datetimes/getStatusTextLabel.ts:23 |
1457 | 1457 | // Reference: packages/helpers/src/tickets/getStatusTextLabel.ts:11 |
1458 | - __( 'trashed', 'event_espresso' ), |
|
1458 | + __('trashed', 'event_espresso'), |
|
1459 | 1459 | |
1460 | 1460 | // Reference: packages/helpers/src/datetimes/getStatusTextLabel.ts:26 |
1461 | - __( 'cancelled', 'event_espresso' ), |
|
1461 | + __('cancelled', 'event_espresso'), |
|
1462 | 1462 | |
1463 | 1463 | // Reference: packages/helpers/src/datetimes/getStatusTextLabel.ts:29 |
1464 | - __( 'postponed', 'event_espresso' ), |
|
1464 | + __('postponed', 'event_espresso'), |
|
1465 | 1465 | |
1466 | 1466 | // Reference: packages/helpers/src/datetimes/getStatusTextLabel.ts:33 |
1467 | - __( 'inactive', 'event_espresso' ), |
|
1467 | + __('inactive', 'event_espresso'), |
|
1468 | 1468 | |
1469 | 1469 | // Reference: packages/helpers/src/tickets/getStatusTextLabel.ts:20 |
1470 | - __( 'pending', 'event_espresso' ), |
|
1470 | + __('pending', 'event_espresso'), |
|
1471 | 1471 | |
1472 | 1472 | // Reference: packages/helpers/src/tickets/getStatusTextLabel.ts:23 |
1473 | - __( 'on sale', 'event_espresso' ), |
|
1473 | + __('on sale', 'event_espresso'), |
|
1474 | 1474 | |
1475 | 1475 | // Reference: packages/predicates/src/registration/statusOptions.ts:14 |
1476 | - __( 'Declined', 'event_espresso' ), |
|
1476 | + __('Declined', 'event_espresso'), |
|
1477 | 1477 | |
1478 | 1478 | // Reference: packages/predicates/src/registration/statusOptions.ts:18 |
1479 | - __( 'Incomplete', 'event_espresso' ), |
|
1479 | + __('Incomplete', 'event_espresso'), |
|
1480 | 1480 | |
1481 | 1481 | // Reference: packages/predicates/src/registration/statusOptions.ts:22 |
1482 | - __( 'Not Approved', 'event_espresso' ), |
|
1482 | + __('Not Approved', 'event_espresso'), |
|
1483 | 1483 | |
1484 | 1484 | // Reference: packages/predicates/src/registration/statusOptions.ts:26 |
1485 | - __( 'Pending Payment', 'event_espresso' ), |
|
1485 | + __('Pending Payment', 'event_espresso'), |
|
1486 | 1486 | |
1487 | 1487 | // Reference: packages/predicates/src/registration/statusOptions.ts:30 |
1488 | - __( 'Wait List', 'event_espresso' ), |
|
1488 | + __('Wait List', 'event_espresso'), |
|
1489 | 1489 | |
1490 | 1490 | // Reference: packages/predicates/src/registration/statusOptions.ts:6 |
1491 | - __( 'Approved', 'event_espresso' ), |
|
1491 | + __('Approved', 'event_espresso'), |
|
1492 | 1492 | |
1493 | 1493 | // Reference: packages/rich-text-editor/src/components/AdvancedTextEditor/toolbarButtons/WPMedia.tsx:9 |
1494 | 1494 | // Reference: packages/rich-text-editor/src/rte-old/components/toolbarButtons/WPMedia.tsx:10 |
1495 | - __( 'Select media', 'event_espresso' ), |
|
1495 | + __('Select media', 'event_espresso'), |
|
1496 | 1496 | |
1497 | 1497 | // Reference: packages/rich-text-editor/src/components/RichTextEditor/RichTextEditor.tsx:84 |
1498 | - __( 'Write something…', 'event_espresso' ), |
|
1498 | + __('Write something…', 'event_espresso'), |
|
1499 | 1499 | |
1500 | 1500 | // Reference: packages/rich-text-editor/src/components/RichTextEditor/Toolbar/Toolbar.tsx:20 |
1501 | - __( 'RTE Toolbar', 'event_espresso' ), |
|
1501 | + __('RTE Toolbar', 'event_espresso'), |
|
1502 | 1502 | |
1503 | 1503 | // Reference: packages/rich-text-editor/src/components/RichTextEditor/Toolbar/controls/blockType/Component.tsx:11 |
1504 | - __( 'Normal', 'event_espresso' ), |
|
1504 | + __('Normal', 'event_espresso'), |
|
1505 | 1505 | |
1506 | 1506 | // Reference: packages/rich-text-editor/src/components/RichTextEditor/Toolbar/controls/blockType/Component.tsx:12 |
1507 | - __( 'H1', 'event_espresso' ), |
|
1507 | + __('H1', 'event_espresso'), |
|
1508 | 1508 | |
1509 | 1509 | // Reference: packages/rich-text-editor/src/components/RichTextEditor/Toolbar/controls/blockType/Component.tsx:13 |
1510 | - __( 'H2', 'event_espresso' ), |
|
1510 | + __('H2', 'event_espresso'), |
|
1511 | 1511 | |
1512 | 1512 | // Reference: packages/rich-text-editor/src/components/RichTextEditor/Toolbar/controls/blockType/Component.tsx:14 |
1513 | - __( 'H3', 'event_espresso' ), |
|
1513 | + __('H3', 'event_espresso'), |
|
1514 | 1514 | |
1515 | 1515 | // Reference: packages/rich-text-editor/src/components/RichTextEditor/Toolbar/controls/blockType/Component.tsx:15 |
1516 | - __( 'H4', 'event_espresso' ), |
|
1516 | + __('H4', 'event_espresso'), |
|
1517 | 1517 | |
1518 | 1518 | // Reference: packages/rich-text-editor/src/components/RichTextEditor/Toolbar/controls/blockType/Component.tsx:16 |
1519 | - __( 'H5', 'event_espresso' ), |
|
1519 | + __('H5', 'event_espresso'), |
|
1520 | 1520 | |
1521 | 1521 | // Reference: packages/rich-text-editor/src/components/RichTextEditor/Toolbar/controls/blockType/Component.tsx:17 |
1522 | - __( 'H6', 'event_espresso' ), |
|
1522 | + __('H6', 'event_espresso'), |
|
1523 | 1523 | |
1524 | 1524 | // Reference: packages/rich-text-editor/src/components/RichTextEditor/Toolbar/controls/blockType/Component.tsx:18 |
1525 | - __( 'Block quote', 'event_espresso' ), |
|
1525 | + __('Block quote', 'event_espresso'), |
|
1526 | 1526 | |
1527 | 1527 | // Reference: packages/rich-text-editor/src/components/RichTextEditor/Toolbar/controls/blockType/Component.tsx:19 |
1528 | - __( 'Code', 'event_espresso' ), |
|
1528 | + __('Code', 'event_espresso'), |
|
1529 | 1529 | |
1530 | 1530 | // Reference: packages/rich-text-editor/src/components/RichTextEditor/Toolbar/controls/colorPicker/Component.tsx:36 |
1531 | - __( 'Set color', 'event_espresso' ), |
|
1531 | + __('Set color', 'event_espresso'), |
|
1532 | 1532 | |
1533 | 1533 | // Reference: packages/rich-text-editor/src/components/RichTextEditor/Toolbar/controls/colorPicker/Component.tsx:45 |
1534 | - __( 'Text color', 'event_espresso' ), |
|
1534 | + __('Text color', 'event_espresso'), |
|
1535 | 1535 | |
1536 | 1536 | // Reference: packages/rich-text-editor/src/components/RichTextEditor/Toolbar/controls/colorPicker/Component.tsx:47 |
1537 | - __( 'Background color', 'event_espresso' ), |
|
1537 | + __('Background color', 'event_espresso'), |
|
1538 | 1538 | |
1539 | 1539 | // Reference: packages/rich-text-editor/src/components/RichTextEditor/Toolbar/controls/image/Component.tsx:39 |
1540 | - __( 'Add image', 'event_espresso' ), |
|
1540 | + __('Add image', 'event_espresso'), |
|
1541 | 1541 | |
1542 | 1542 | // Reference: packages/rich-text-editor/src/components/RichTextEditor/Toolbar/controls/image/Component.tsx:51 |
1543 | - __( 'Image URL', 'event_espresso' ), |
|
1543 | + __('Image URL', 'event_espresso'), |
|
1544 | 1544 | |
1545 | 1545 | // Reference: packages/rich-text-editor/src/components/RichTextEditor/Toolbar/controls/image/Component.tsx:55 |
1546 | - __( 'Alt text', 'event_espresso' ), |
|
1546 | + __('Alt text', 'event_espresso'), |
|
1547 | 1547 | |
1548 | 1548 | // Reference: packages/rich-text-editor/src/components/RichTextEditor/Toolbar/controls/image/Component.tsx:56 |
1549 | - __( 'Width', 'event_espresso' ), |
|
1549 | + __('Width', 'event_espresso'), |
|
1550 | 1550 | |
1551 | 1551 | // Reference: packages/rich-text-editor/src/components/RichTextEditor/Toolbar/controls/image/Component.tsx:60 |
1552 | - __( 'Height', 'event_espresso' ), |
|
1552 | + __('Height', 'event_espresso'), |
|
1553 | 1553 | |
1554 | 1554 | // Reference: packages/rich-text-editor/src/components/RichTextEditor/Toolbar/controls/link/Component.tsx:54 |
1555 | - __( 'Edit link', 'event_espresso' ), |
|
1555 | + __('Edit link', 'event_espresso'), |
|
1556 | 1556 | |
1557 | 1557 | // Reference: packages/rich-text-editor/src/components/RichTextEditor/Toolbar/controls/link/Component.tsx:64 |
1558 | - __( 'URL title', 'event_espresso' ), |
|
1558 | + __('URL title', 'event_espresso'), |
|
1559 | 1559 | |
1560 | 1560 | // Reference: packages/rich-text-editor/src/components/RichTextEditor/Toolbar/controls/list/Component.tsx:11 |
1561 | - __( 'Unordered list', 'event_espresso' ), |
|
1561 | + __('Unordered list', 'event_espresso'), |
|
1562 | 1562 | |
1563 | 1563 | // Reference: packages/rich-text-editor/src/components/RichTextEditor/Toolbar/controls/list/Component.tsx:12 |
1564 | - __( 'Ordered list', 'event_espresso' ), |
|
1564 | + __('Ordered list', 'event_espresso'), |
|
1565 | 1565 | |
1566 | 1566 | // Reference: packages/rich-text-editor/src/components/RichTextEditor/Toolbar/controls/list/Component.tsx:13 |
1567 | 1567 | // Reference: packages/rich-text-editor/src/components/RichTextEditor/Toolbar/controls/textAlign/Component.tsx:13 |
1568 | - __( 'Indent', 'event_espresso' ), |
|
1568 | + __('Indent', 'event_espresso'), |
|
1569 | 1569 | |
1570 | 1570 | // Reference: packages/rich-text-editor/src/components/RichTextEditor/Toolbar/controls/list/Component.tsx:14 |
1571 | 1571 | // Reference: packages/rich-text-editor/src/components/RichTextEditor/Toolbar/controls/textAlign/Component.tsx:14 |
1572 | - __( 'Outdent', 'event_espresso' ), |
|
1572 | + __('Outdent', 'event_espresso'), |
|
1573 | 1573 | |
1574 | 1574 | // Reference: packages/rich-text-editor/src/components/RichTextEditor/Toolbar/controls/textAlign/Component.tsx:11 |
1575 | - __( 'Unordered textalign', 'event_espresso' ), |
|
1575 | + __('Unordered textalign', 'event_espresso'), |
|
1576 | 1576 | |
1577 | 1577 | // Reference: packages/rich-text-editor/src/components/RichTextEditor/Toolbar/controls/textAlign/Component.tsx:12 |
1578 | - __( 'Ordered textalign', 'event_espresso' ), |
|
1578 | + __('Ordered textalign', 'event_espresso'), |
|
1579 | 1579 | |
1580 | 1580 | // Reference: packages/rich-text-editor/src/components/RichTextEditor/render/Image/Toolbar.tsx:32 |
1581 | - __( 'Image toolbar', 'event_espresso' ), |
|
1581 | + __('Image toolbar', 'event_espresso'), |
|
1582 | 1582 | |
1583 | 1583 | // Reference: packages/rich-text-editor/src/components/WithEditMode/WithEditMode.tsx:62 |
1584 | 1584 | // Reference: packages/rich-text-editor/src/rte-old/components/RTEWithEditMode/RTEWithEditMode.tsx:35 |
1585 | - __( 'Visual editor', 'event_espresso' ), |
|
1585 | + __('Visual editor', 'event_espresso'), |
|
1586 | 1586 | |
1587 | 1587 | // Reference: packages/rich-text-editor/src/components/WithEditMode/WithEditMode.tsx:66 |
1588 | 1588 | // Reference: packages/rich-text-editor/src/rte-old/components/RTEWithEditMode/RTEWithEditMode.tsx:39 |
1589 | - __( 'HTML editor', 'event_espresso' ), |
|
1589 | + __('HTML editor', 'event_espresso'), |
|
1590 | 1590 | |
1591 | 1591 | // Reference: packages/rich-text-editor/src/rte-old/components/toolbarButtons/WPMedia.tsx:68 |
1592 | - __( 'Add Media', 'event_espresso' ), |
|
1592 | + __('Add Media', 'event_espresso'), |
|
1593 | 1593 | |
1594 | 1594 | // Reference: packages/tpc/src/buttons/AddPriceModifierButton.tsx:14 |
1595 | - __( 'add new price modifier after this row', 'event_espresso' ), |
|
1595 | + __('add new price modifier after this row', 'event_espresso'), |
|
1596 | 1596 | |
1597 | 1597 | // Reference: packages/tpc/src/buttons/DeleteAllPricesButton.tsx:14 |
1598 | - __( 'Delete all prices', 'event_espresso' ), |
|
1598 | + __('Delete all prices', 'event_espresso'), |
|
1599 | 1599 | |
1600 | 1600 | // Reference: packages/tpc/src/buttons/DeleteAllPricesButton.tsx:27 |
1601 | - __( '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' ), |
|
1601 | + __('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'), |
|
1602 | 1602 | |
1603 | 1603 | // Reference: packages/tpc/src/buttons/DeleteAllPricesButton.tsx:31 |
1604 | - __( 'Delete all prices?', 'event_espresso' ), |
|
1604 | + __('Delete all prices?', 'event_espresso'), |
|
1605 | 1605 | |
1606 | 1606 | // Reference: packages/tpc/src/buttons/DeletePriceModifierButton.tsx:12 |
1607 | - __( 'delete price modifier', 'event_espresso' ), |
|
1607 | + __('delete price modifier', 'event_espresso'), |
|
1608 | 1608 | |
1609 | 1609 | // Reference: packages/tpc/src/buttons/ReverseCalculateButton.tsx:14 |
1610 | - __( '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' ), |
|
1610 | + __('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'), |
|
1611 | 1611 | |
1612 | 1612 | // Reference: packages/tpc/src/buttons/ReverseCalculateButton.tsx:17 |
1613 | - __( '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' ), |
|
1613 | + __('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'), |
|
1614 | 1614 | |
1615 | 1615 | // Reference: packages/tpc/src/buttons/ReverseCalculateButton.tsx:21 |
1616 | - __( 'Disable reverse calculate', 'event_espresso' ), |
|
1616 | + __('Disable reverse calculate', 'event_espresso'), |
|
1617 | 1617 | |
1618 | 1618 | // Reference: packages/tpc/src/buttons/ReverseCalculateButton.tsx:21 |
1619 | - __( 'Enable reverse calculate', 'event_espresso' ), |
|
1619 | + __('Enable reverse calculate', 'event_espresso'), |
|
1620 | 1620 | |
1621 | 1621 | // Reference: packages/tpc/src/buttons/TicketPriceCalculatorButton.tsx:28 |
1622 | - __( 'ticket price calculator', 'event_espresso' ), |
|
1622 | + __('ticket price calculator', 'event_espresso'), |
|
1623 | 1623 | |
1624 | 1624 | // Reference: packages/tpc/src/buttons/taxes/AddDefaultTaxesButton.tsx:9 |
1625 | - __( 'Add default taxes', 'event_espresso' ), |
|
1625 | + __('Add default taxes', 'event_espresso'), |
|
1626 | 1626 | |
1627 | 1627 | // Reference: packages/tpc/src/buttons/taxes/RemoveTaxesButton.tsx:10 |
1628 | - __( 'Are you sure you want to remove all of this ticket\'s taxes?', 'event_espresso' ), |
|
1628 | + __('Are you sure you want to remove all of this ticket\'s taxes?', 'event_espresso'), |
|
1629 | 1629 | |
1630 | 1630 | // Reference: packages/tpc/src/buttons/taxes/RemoveTaxesButton.tsx:14 |
1631 | - __( 'Remove all taxes?', 'event_espresso' ), |
|
1631 | + __('Remove all taxes?', 'event_espresso'), |
|
1632 | 1632 | |
1633 | 1633 | // Reference: packages/tpc/src/buttons/taxes/RemoveTaxesButton.tsx:7 |
1634 | - __( 'Remove taxes', 'event_espresso' ), |
|
1634 | + __('Remove taxes', 'event_espresso'), |
|
1635 | 1635 | |
1636 | 1636 | // Reference: packages/tpc/src/components/DefaultPricesInfo.tsx:29 |
1637 | - __( 'Modify default prices.', 'event_espresso' ), |
|
1637 | + __('Modify default prices.', 'event_espresso'), |
|
1638 | 1638 | |
1639 | 1639 | // Reference: packages/tpc/src/components/DefaultTaxesInfo.tsx:29 |
1640 | - __( 'New default taxes are available. Click the - Add default taxes - button to add them now.', 'event_espresso' ), |
|
1640 | + __('New default taxes are available. Click the - Add default taxes - button to add them now.', 'event_espresso'), |
|
1641 | 1641 | |
1642 | 1642 | // Reference: packages/tpc/src/components/LockedTicketsBanner.tsx:12 |
1643 | - __( 'Editing of prices is disabled', 'event_espresso' ), |
|
1643 | + __('Editing of prices is disabled', 'event_espresso'), |
|
1644 | 1644 | |
1645 | 1645 | // Reference: packages/tpc/src/components/NoPricesBanner/AddDefaultPricesButton.tsx:9 |
1646 | - __( 'Add default prices', 'event_espresso' ), |
|
1646 | + __('Add default prices', 'event_espresso'), |
|
1647 | 1647 | |
1648 | 1648 | // Reference: packages/tpc/src/components/NoPricesBanner/index.tsx:13 |
1649 | - __( 'This Ticket is Currently Free', 'event_espresso' ), |
|
1649 | + __('This Ticket is Currently Free', 'event_espresso'), |
|
1650 | 1650 | |
1651 | 1651 | // Reference: packages/tpc/src/components/NoPricesBanner/index.tsx:21 |
1652 | 1652 | /* translators: %s default prices */ |
1653 | - __( 'Click the button below to load your %s into the calculator.', 'event_espresso' ), |
|
1653 | + __('Click the button below to load your %s into the calculator.', 'event_espresso'), |
|
1654 | 1654 | |
1655 | 1655 | // Reference: packages/tpc/src/components/NoPricesBanner/index.tsx:22 |
1656 | - __( 'default prices', 'event_espresso' ), |
|
1656 | + __('default prices', 'event_espresso'), |
|
1657 | 1657 | |
1658 | 1658 | // Reference: packages/tpc/src/components/NoPricesBanner/index.tsx:29 |
1659 | - __( 'Additional ticket price modifiers can be added or removed.', 'event_espresso' ), |
|
1659 | + __('Additional ticket price modifiers can be added or removed.', 'event_espresso'), |
|
1660 | 1660 | |
1661 | 1661 | // Reference: packages/tpc/src/components/NoPricesBanner/index.tsx:32 |
1662 | - __( 'Click the save button below to assign which dates this ticket will be available for purchase on.', 'event_espresso' ), |
|
1662 | + __('Click the save button below to assign which dates this ticket will be available for purchase on.', 'event_espresso'), |
|
1663 | 1663 | |
1664 | 1664 | // Reference: packages/tpc/src/components/TicketPriceCalculatorModal.tsx:32 |
1665 | 1665 | /* translators: %s ticket name */ |
1666 | - __( 'Price Calculator for Ticket: %s', 'event_espresso' ), |
|
1666 | + __('Price Calculator for Ticket: %s', 'event_espresso'), |
|
1667 | 1667 | |
1668 | 1668 | // Reference: packages/tpc/src/components/table/useFooterRowGenerator.tsx:48 |
1669 | - __( 'Total', 'event_espresso' ), |
|
1669 | + __('Total', 'event_espresso'), |
|
1670 | 1670 | |
1671 | 1671 | // Reference: packages/tpc/src/components/table/useFooterRowGenerator.tsx:57 |
1672 | - __( 'ticket total', 'event_espresso' ), |
|
1672 | + __('ticket total', 'event_espresso'), |
|
1673 | 1673 | |
1674 | 1674 | // Reference: packages/tpc/src/components/table/useHeaderRowGenerator.ts:29 |
1675 | - __( 'Order', 'event_espresso' ), |
|
1675 | + __('Order', 'event_espresso'), |
|
1676 | 1676 | |
1677 | 1677 | // Reference: packages/tpc/src/components/table/useHeaderRowGenerator.ts:35 |
1678 | - __( 'Price Type', 'event_espresso' ), |
|
1678 | + __('Price Type', 'event_espresso'), |
|
1679 | 1679 | |
1680 | 1680 | // Reference: packages/tpc/src/components/table/useHeaderRowGenerator.ts:41 |
1681 | - __( 'Label', 'event_espresso' ), |
|
1681 | + __('Label', 'event_espresso'), |
|
1682 | 1682 | |
1683 | 1683 | // Reference: packages/tpc/src/components/table/useHeaderRowGenerator.ts:53 |
1684 | - __( 'Amount', 'event_espresso' ), |
|
1684 | + __('Amount', 'event_espresso'), |
|
1685 | 1685 | |
1686 | 1686 | // Reference: packages/tpc/src/hooks/useLockedTicketAction.ts:22 |
1687 | - __( 'Copy ticket', 'event_espresso' ), |
|
1687 | + __('Copy ticket', 'event_espresso'), |
|
1688 | 1688 | |
1689 | 1689 | // Reference: packages/tpc/src/hooks/useLockedTicketAction.ts:26 |
1690 | - __( 'Copy and archive this ticket', 'event_espresso' ), |
|
1690 | + __('Copy and archive this ticket', 'event_espresso'), |
|
1691 | 1691 | |
1692 | 1692 | // Reference: packages/tpc/src/hooks/useLockedTicketAction.ts:29 |
1693 | - __( 'OK', 'event_espresso' ), |
|
1693 | + __('OK', 'event_espresso'), |
|
1694 | 1694 | |
1695 | 1695 | // Reference: packages/tpc/src/inputs/PriceAmountInput.tsx:32 |
1696 | - __( 'amount', 'event_espresso' ), |
|
1696 | + __('amount', 'event_espresso'), |
|
1697 | 1697 | |
1698 | 1698 | // Reference: packages/tpc/src/inputs/PriceAmountInput.tsx:44 |
1699 | - __( 'amount…', 'event_espresso' ), |
|
1699 | + __('amount…', 'event_espresso'), |
|
1700 | 1700 | |
1701 | 1701 | // Reference: packages/tpc/src/inputs/PriceDescriptionInput.tsx:14 |
1702 | - __( 'description…', 'event_espresso' ), |
|
1702 | + __('description…', 'event_espresso'), |
|
1703 | 1703 | |
1704 | 1704 | // Reference: packages/tpc/src/inputs/PriceDescriptionInput.tsx:9 |
1705 | - __( 'price description', 'event_espresso' ), |
|
1705 | + __('price description', 'event_espresso'), |
|
1706 | 1706 | |
1707 | 1707 | // Reference: packages/tpc/src/inputs/PriceIdInput.tsx:5 |
1708 | - __( 'price id', 'event_espresso' ), |
|
1708 | + __('price id', 'event_espresso'), |
|
1709 | 1709 | |
1710 | 1710 | // Reference: packages/tpc/src/inputs/PriceNameInput.tsx:13 |
1711 | - __( 'label…', 'event_espresso' ), |
|
1711 | + __('label…', 'event_espresso'), |
|
1712 | 1712 | |
1713 | 1713 | // Reference: packages/tpc/src/inputs/PriceNameInput.tsx:8 |
1714 | - __( 'price name', 'event_espresso' ), |
|
1714 | + __('price name', 'event_espresso'), |
|
1715 | 1715 | |
1716 | 1716 | // Reference: packages/tpc/src/inputs/PriceOrderInput.tsx:14 |
1717 | - __( 'price order', 'event_espresso' ), |
|
1717 | + __('price order', 'event_espresso'), |
|
1718 | 1718 | |
1719 | 1719 | // Reference: packages/tpc/src/inputs/PriceTypeInput.tsx:19 |
1720 | - __( 'price type', 'event_espresso' ), |
|
1720 | + __('price type', 'event_espresso'), |
|
1721 | 1721 | |
1722 | 1722 | // Reference: packages/tpc/src/utils/constants.ts:8 |
1723 | - __( '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 trash the old tickets.', 'event_espresso' ), |
|
1723 | + __('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 trash the old tickets.', 'event_espresso'), |
|
1724 | 1724 | |
1725 | 1725 | // Reference: packages/ui-components/src/ActiveFilters/ActiveFilters.tsx:8 |
1726 | - __( 'active filters:', 'event_espresso' ), |
|
1726 | + __('active filters:', 'event_espresso'), |
|
1727 | 1727 | |
1728 | 1728 | // Reference: packages/ui-components/src/ActiveFilters/FilterTag/index.tsx:15 |
1729 | 1729 | /* translators: %s filter name */ |
1730 | - __( 'remove filter - %s', 'event_espresso' ), |
|
1730 | + __('remove filter - %s', 'event_espresso'), |
|
1731 | 1731 | |
1732 | 1732 | // Reference: packages/ui-components/src/CalendarDateRange/CalendarDateRange.tsx:37 |
1733 | - __( 'to', 'event_espresso' ), |
|
1733 | + __('to', 'event_espresso'), |
|
1734 | 1734 | |
1735 | 1735 | // Reference: packages/ui-components/src/CalendarPageDate/CalendarPageDate.tsx:54 |
1736 | - __( 'TO', 'event_espresso' ), |
|
1736 | + __('TO', 'event_espresso'), |
|
1737 | 1737 | |
1738 | 1738 | // Reference: packages/ui-components/src/ColorPicker/ColorPicker.tsx:60 |
1739 | - __( 'Custom color', 'event_espresso' ), |
|
1739 | + __('Custom color', 'event_espresso'), |
|
1740 | 1740 | |
1741 | 1741 | // Reference: packages/ui-components/src/ColorPicker/Swatch.tsx:23 |
1742 | 1742 | /* translators: color name */ |
1743 | - __( 'Color: %s', 'event_espresso' ), |
|
1743 | + __('Color: %s', 'event_espresso'), |
|
1744 | 1744 | |
1745 | 1745 | // Reference: packages/ui-components/src/ColorPicker/constants.ts:13 |
1746 | - __( 'Cyan bluish gray', 'event_espresso' ), |
|
1746 | + __('Cyan bluish gray', 'event_espresso'), |
|
1747 | 1747 | |
1748 | 1748 | // Reference: packages/ui-components/src/ColorPicker/constants.ts:17 |
1749 | - __( 'White', 'event_espresso' ), |
|
1749 | + __('White', 'event_espresso'), |
|
1750 | 1750 | |
1751 | 1751 | // Reference: packages/ui-components/src/ColorPicker/constants.ts:21 |
1752 | - __( 'Pale pink', 'event_espresso' ), |
|
1752 | + __('Pale pink', 'event_espresso'), |
|
1753 | 1753 | |
1754 | 1754 | // Reference: packages/ui-components/src/ColorPicker/constants.ts:25 |
1755 | - __( 'Vivid red', 'event_espresso' ), |
|
1755 | + __('Vivid red', 'event_espresso'), |
|
1756 | 1756 | |
1757 | 1757 | // Reference: packages/ui-components/src/ColorPicker/constants.ts:29 |
1758 | - __( 'Luminous vivid orange', 'event_espresso' ), |
|
1758 | + __('Luminous vivid orange', 'event_espresso'), |
|
1759 | 1759 | |
1760 | 1760 | // Reference: packages/ui-components/src/ColorPicker/constants.ts:33 |
1761 | - __( 'Luminous vivid amber', 'event_espresso' ), |
|
1761 | + __('Luminous vivid amber', 'event_espresso'), |
|
1762 | 1762 | |
1763 | 1763 | // Reference: packages/ui-components/src/ColorPicker/constants.ts:37 |
1764 | - __( 'Light green cyan', 'event_espresso' ), |
|
1764 | + __('Light green cyan', 'event_espresso'), |
|
1765 | 1765 | |
1766 | 1766 | // Reference: packages/ui-components/src/ColorPicker/constants.ts:41 |
1767 | - __( 'Vivid green cyan', 'event_espresso' ), |
|
1767 | + __('Vivid green cyan', 'event_espresso'), |
|
1768 | 1768 | |
1769 | 1769 | // Reference: packages/ui-components/src/ColorPicker/constants.ts:45 |
1770 | - __( 'Pale cyan blue', 'event_espresso' ), |
|
1770 | + __('Pale cyan blue', 'event_espresso'), |
|
1771 | 1771 | |
1772 | 1772 | // Reference: packages/ui-components/src/ColorPicker/constants.ts:49 |
1773 | - __( 'Vivid cyan blue', 'event_espresso' ), |
|
1773 | + __('Vivid cyan blue', 'event_espresso'), |
|
1774 | 1774 | |
1775 | 1775 | // Reference: packages/ui-components/src/ColorPicker/constants.ts:53 |
1776 | - __( 'Vivid purple', 'event_espresso' ), |
|
1776 | + __('Vivid purple', 'event_espresso'), |
|
1777 | 1777 | |
1778 | 1778 | // Reference: packages/ui-components/src/ColorPicker/constants.ts:9 |
1779 | - __( 'Black', 'event_espresso' ), |
|
1779 | + __('Black', 'event_espresso'), |
|
1780 | 1780 | |
1781 | 1781 | // Reference: packages/ui-components/src/Confirm/ConfirmClose.tsx:7 |
1782 | 1782 | // Reference: packages/ui-components/src/Modal/ModalWithAlert.tsx:22 |
1783 | - __( 'Are you sure you want to close this?', 'event_espresso' ), |
|
1783 | + __('Are you sure you want to close this?', 'event_espresso'), |
|
1784 | 1784 | |
1785 | 1785 | // Reference: packages/ui-components/src/Confirm/ConfirmDelete.tsx:7 |
1786 | - __( 'Are you sure you want to delete this?', 'event_espresso' ), |
|
1786 | + __('Are you sure you want to delete this?', 'event_espresso'), |
|
1787 | 1787 | |
1788 | 1788 | // Reference: packages/ui-components/src/Confirm/useConfirmWithButton.tsx:10 |
1789 | - __( 'Please confirm this action.', 'event_espresso' ), |
|
1789 | + __('Please confirm this action.', 'event_espresso'), |
|
1790 | 1790 | |
1791 | 1791 | // Reference: packages/ui-components/src/Confirm/useConfirmationDialog.tsx:32 |
1792 | - __( 'No', 'event_espresso' ), |
|
1792 | + __('No', 'event_espresso'), |
|
1793 | 1793 | |
1794 | 1794 | // Reference: packages/ui-components/src/Confirm/useConfirmationDialog.tsx:33 |
1795 | - __( 'Yes', 'event_espresso' ), |
|
1795 | + __('Yes', 'event_espresso'), |
|
1796 | 1796 | |
1797 | 1797 | // Reference: packages/ui-components/src/CurrencyDisplay/CurrencyDisplay.tsx:34 |
1798 | - __( 'free', 'event_espresso' ), |
|
1798 | + __('free', 'event_espresso'), |
|
1799 | 1799 | |
1800 | 1800 | // Reference: packages/ui-components/src/DateTimeRangePicker/DateTimeRangePicker.tsx:117 |
1801 | 1801 | // Reference: packages/ui-components/src/Popover/PopoverForm/PopoverForm.tsx:44 |
1802 | - __( 'save', 'event_espresso' ), |
|
1802 | + __('save', 'event_espresso'), |
|
1803 | 1803 | |
1804 | 1804 | // Reference: packages/ui-components/src/DebugInfo/DebugInfo.tsx:36 |
1805 | - __( 'Hide Debug Info', 'event_espresso' ), |
|
1805 | + __('Hide Debug Info', 'event_espresso'), |
|
1806 | 1806 | |
1807 | 1807 | // Reference: packages/ui-components/src/DebugInfo/DebugInfo.tsx:36 |
1808 | - __( 'Show Debug Info', 'event_espresso' ), |
|
1808 | + __('Show Debug Info', 'event_espresso'), |
|
1809 | 1809 | |
1810 | 1810 | // Reference: packages/ui-components/src/EditDateRangeButton/EditDateRangeButton.tsx:49 |
1811 | - __( 'Edit Start and End Dates and Times', 'event_espresso' ), |
|
1811 | + __('Edit Start and End Dates and Times', 'event_espresso'), |
|
1812 | 1812 | |
1813 | 1813 | // Reference: packages/ui-components/src/EntityActionsMenu/entityMenuItems/Copy.tsx:8 |
1814 | - __( 'copy', 'event_espresso' ), |
|
1814 | + __('copy', 'event_espresso'), |
|
1815 | 1815 | |
1816 | 1816 | // Reference: packages/ui-components/src/EntityActionsMenu/entityMenuItems/Edit.tsx:8 |
1817 | - __( 'edit', 'event_espresso' ), |
|
1817 | + __('edit', 'event_espresso'), |
|
1818 | 1818 | |
1819 | 1819 | // Reference: packages/ui-components/src/EntityActionsMenu/entityMenuItems/Trash.tsx:8 |
1820 | - __( 'trash', 'event_espresso' ), |
|
1820 | + __('trash', 'event_espresso'), |
|
1821 | 1821 | |
1822 | 1822 | // Reference: packages/ui-components/src/EntityActionsMenu/entityMenuItems/Untrash.tsx:8 |
1823 | - __( 'untrash', 'event_espresso' ), |
|
1823 | + __('untrash', 'event_espresso'), |
|
1824 | 1824 | |
1825 | 1825 | // Reference: packages/ui-components/src/EntityDetailsPanel/EntityDetailsPanelSold.tsx:37 |
1826 | - __( 'view approved registrations for this date.', 'event_espresso' ), |
|
1826 | + __('view approved registrations for this date.', 'event_espresso'), |
|
1827 | 1827 | |
1828 | 1828 | // Reference: packages/ui-components/src/EntityDetailsPanel/EntityDetailsPanelSold.tsx:38 |
1829 | - __( 'view approved registrations for this ticket.', 'event_espresso' ), |
|
1829 | + __('view approved registrations for this ticket.', 'event_espresso'), |
|
1830 | 1830 | |
1831 | 1831 | // Reference: packages/ui-components/src/EntityList/filterBar/buttons/CardViewFilterButton.tsx:21 |
1832 | - __( 'card view', 'event_espresso' ), |
|
1832 | + __('card view', 'event_espresso'), |
|
1833 | 1833 | |
1834 | 1834 | // Reference: packages/ui-components/src/EntityList/filterBar/buttons/TableViewFilterButton.tsx:20 |
1835 | - __( 'table view', 'event_espresso' ), |
|
1835 | + __('table view', 'event_espresso'), |
|
1836 | 1836 | |
1837 | 1837 | // Reference: packages/ui-components/src/EntityList/filterBar/buttons/ToggleBulkActionsButton.tsx:8 |
1838 | - __( 'hide bulk actions', 'event_espresso' ), |
|
1838 | + __('hide bulk actions', 'event_espresso'), |
|
1839 | 1839 | |
1840 | 1840 | // Reference: packages/ui-components/src/EntityList/filterBar/buttons/ToggleBulkActionsButton.tsx:8 |
1841 | - __( 'show bulk actions', 'event_espresso' ), |
|
1841 | + __('show bulk actions', 'event_espresso'), |
|
1842 | 1842 | |
1843 | 1843 | // Reference: packages/ui-components/src/EntityList/filterBar/buttons/ToggleFiltersButton.tsx:9 |
1844 | - __( 'hide filters', 'event_espresso' ), |
|
1844 | + __('hide filters', 'event_espresso'), |
|
1845 | 1845 | |
1846 | 1846 | // Reference: packages/ui-components/src/EntityList/filterBar/buttons/ToggleFiltersButton.tsx:9 |
1847 | - __( 'show filters', 'event_espresso' ), |
|
1847 | + __('show filters', 'event_espresso'), |
|
1848 | 1848 | |
1849 | 1849 | // Reference: packages/ui-components/src/Legend/ToggleLegendButton.tsx:26 |
1850 | - __( 'hide legend', 'event_espresso' ), |
|
1850 | + __('hide legend', 'event_espresso'), |
|
1851 | 1851 | |
1852 | 1852 | // Reference: packages/ui-components/src/Legend/ToggleLegendButton.tsx:26 |
1853 | - __( 'show legend', 'event_espresso' ), |
|
1853 | + __('show legend', 'event_espresso'), |
|
1854 | 1854 | |
1855 | 1855 | // Reference: packages/ui-components/src/LoadingNotice/LoadingNotice.tsx:11 |
1856 | - __( 'loading…', 'event_espresso' ), |
|
1856 | + __('loading…', 'event_espresso'), |
|
1857 | 1857 | |
1858 | 1858 | // Reference: packages/ui-components/src/Modal/Modal.tsx:58 |
1859 | - __( 'close modal', 'event_espresso' ), |
|
1859 | + __('close modal', 'event_espresso'), |
|
1860 | 1860 | |
1861 | 1861 | // Reference: packages/ui-components/src/Pagination/ItemRender.tsx:10 |
1862 | - __( 'jump to previous', 'event_espresso' ), |
|
1862 | + __('jump to previous', 'event_espresso'), |
|
1863 | 1863 | |
1864 | 1864 | // Reference: packages/ui-components/src/Pagination/ItemRender.tsx:11 |
1865 | - __( 'jump to next', 'event_espresso' ), |
|
1865 | + __('jump to next', 'event_espresso'), |
|
1866 | 1866 | |
1867 | 1867 | // Reference: packages/ui-components/src/Pagination/ItemRender.tsx:12 |
1868 | - __( 'page', 'event_espresso' ), |
|
1868 | + __('page', 'event_espresso'), |
|
1869 | 1869 | |
1870 | 1870 | // Reference: packages/ui-components/src/Pagination/ItemRender.tsx:8 |
1871 | - __( 'previous', 'event_espresso' ), |
|
1871 | + __('previous', 'event_espresso'), |
|
1872 | 1872 | |
1873 | 1873 | // Reference: packages/ui-components/src/Pagination/ItemRender.tsx:9 |
1874 | - __( 'next', 'event_espresso' ), |
|
1874 | + __('next', 'event_espresso'), |
|
1875 | 1875 | |
1876 | 1876 | // Reference: packages/ui-components/src/Pagination/PerPage.tsx:37 |
1877 | - __( 'items per page', 'event_espresso' ), |
|
1877 | + __('items per page', 'event_espresso'), |
|
1878 | 1878 | |
1879 | 1879 | // Reference: packages/ui-components/src/Pagination/constants.ts:10 |
1880 | 1880 | /* translators: %s is per page value */ |
1881 | - __( '%s / page', 'event_espresso' ), |
|
1881 | + __('%s / page', 'event_espresso'), |
|
1882 | 1882 | |
1883 | 1883 | // Reference: packages/ui-components/src/Pagination/constants.ts:13 |
1884 | - __( 'Next Page', 'event_espresso' ), |
|
1884 | + __('Next Page', 'event_espresso'), |
|
1885 | 1885 | |
1886 | 1886 | // Reference: packages/ui-components/src/Pagination/constants.ts:14 |
1887 | - __( 'Previous Page', 'event_espresso' ), |
|
1887 | + __('Previous Page', 'event_espresso'), |
|
1888 | 1888 | |
1889 | 1889 | // Reference: packages/ui-components/src/PercentSign/index.tsx:10 |
1890 | - __( '%', 'event_espresso' ), |
|
1890 | + __('%', 'event_espresso'), |
|
1891 | 1891 | |
1892 | 1892 | // Reference: packages/ui-components/src/SimpleEntityList/EntityOptionsRow/index.tsx:23 |
1893 | - __( 'Select an existing one to use as a template.', 'event_espresso' ), |
|
1893 | + __('Select an existing one to use as a template.', 'event_espresso'), |
|
1894 | 1894 | |
1895 | 1895 | // Reference: packages/ui-components/src/SimpleEntityList/EntityOptionsRow/index.tsx:27 |
1896 | - __( 'or', 'event_espresso' ), |
|
1896 | + __('or', 'event_espresso'), |
|
1897 | 1897 | |
1898 | 1898 | // Reference: packages/ui-components/src/SimpleEntityList/EntityOptionsRow/index.tsx:30 |
1899 | - __( 'Add new and insert details manually', 'event_espresso' ), |
|
1899 | + __('Add new and insert details manually', 'event_espresso'), |
|
1900 | 1900 | |
1901 | 1901 | // Reference: packages/ui-components/src/SimpleEntityList/EntityOptionsRow/index.tsx:34 |
1902 | - __( 'Add New', 'event_espresso' ), |
|
1902 | + __('Add New', 'event_espresso'), |
|
1903 | 1903 | |
1904 | 1904 | // Reference: packages/ui-components/src/Stepper/buttons/Next.tsx:8 |
1905 | - __( 'Next', 'event_espresso' ), |
|
1905 | + __('Next', 'event_espresso'), |
|
1906 | 1906 | |
1907 | 1907 | // Reference: packages/ui-components/src/Stepper/buttons/Previous.tsx:8 |
1908 | - __( 'Previous', 'event_espresso' ), |
|
1908 | + __('Previous', 'event_espresso'), |
|
1909 | 1909 | |
1910 | 1910 | // Reference: packages/ui-components/src/Steps/Steps.tsx:31 |
1911 | - __( 'Steps', 'event_espresso' ), |
|
1911 | + __('Steps', 'event_espresso'), |
|
1912 | 1912 | |
1913 | 1913 | // Reference: packages/ui-components/src/TabbableText/index.tsx:19 |
1914 | - __( 'Click to edit…', 'event_espresso' ), |
|
1914 | + __('Click to edit…', 'event_espresso'), |
|
1915 | 1915 | |
1916 | 1916 | // Reference: packages/ui-components/src/TimezoneTimeInfo/Content.tsx:14 |
1917 | - __( 'The Website\'s Time Zone', 'event_espresso' ), |
|
1917 | + __('The Website\'s Time Zone', 'event_espresso'), |
|
1918 | 1918 | |
1919 | 1919 | // Reference: packages/ui-components/src/TimezoneTimeInfo/Content.tsx:19 |
1920 | - __( 'UTC (Greenwich Mean Time)', 'event_espresso' ), |
|
1920 | + __('UTC (Greenwich Mean Time)', 'event_espresso'), |
|
1921 | 1921 | |
1922 | 1922 | // Reference: packages/ui-components/src/TimezoneTimeInfo/Content.tsx:9 |
1923 | - __( 'Your Local Time Zone', 'event_espresso' ), |
|
1923 | + __('Your Local Time Zone', 'event_espresso'), |
|
1924 | 1924 | |
1925 | 1925 | // Reference: packages/ui-components/src/TimezoneTimeInfo/TimezoneTimeInfo.tsx:27 |
1926 | - __( 'click for timezone information', 'event_espresso' ), |
|
1926 | + __('click for timezone information', 'event_espresso'), |
|
1927 | 1927 | |
1928 | 1928 | // Reference: packages/ui-components/src/TimezoneTimeInfo/TimezoneTimeInfo.tsx:32 |
1929 | - __( 'This Date Converted To:', 'event_espresso' ), |
|
1929 | + __('This Date Converted To:', 'event_espresso'), |
|
1930 | 1930 | |
1931 | 1931 | // Reference: packages/ui-components/src/bulkEdit/BulkActions.tsx:51 |
1932 | - __( 'select all', 'event_espresso' ), |
|
1932 | + __('select all', 'event_espresso'), |
|
1933 | 1933 | |
1934 | 1934 | // Reference: packages/ui-components/src/bulkEdit/BulkActions.tsx:54 |
1935 | - __( 'apply', 'event_espresso' ) |
|
1935 | + __('apply', 'event_espresso') |
|
1936 | 1936 | ); |
1937 | 1937 | /* THIS IS THE END OF THE GENERATED FILE */ |
@@ -11,194 +11,194 @@ |
||
11 | 11 | */ |
12 | 12 | class EE_Register_Model implements EEI_Plugin_API |
13 | 13 | { |
14 | - /** |
|
15 | - * |
|
16 | - * @var array keys are the model_id used to register with, values are the array provided to register them, exactly |
|
17 | - * like EE_Register_Model::register()'s 2nd arg |
|
18 | - */ |
|
19 | - protected static $_model_registry; |
|
14 | + /** |
|
15 | + * |
|
16 | + * @var array keys are the model_id used to register with, values are the array provided to register them, exactly |
|
17 | + * like EE_Register_Model::register()'s 2nd arg |
|
18 | + */ |
|
19 | + protected static $_model_registry; |
|
20 | 20 | |
21 | - /** |
|
22 | - * |
|
23 | - * @var array keys are model names, values are their class names. Stored on registration and used |
|
24 | - * on a hook |
|
25 | - */ |
|
26 | - protected static $_model_name_to_classname_map; |
|
21 | + /** |
|
22 | + * |
|
23 | + * @var array keys are model names, values are their class names. Stored on registration and used |
|
24 | + * on a hook |
|
25 | + */ |
|
26 | + protected static $_model_name_to_classname_map; |
|
27 | 27 | |
28 | 28 | |
29 | - /** |
|
30 | - * @param string $addon_name unique id for it |
|
31 | - * @param array $setup_args { |
|
32 | - * @type array $model_paths array of folders containing DB models, where each file follows the models naming |
|
33 | - * convention, which is: EEM_{model_name}.model.php which contains a single class called |
|
34 | - * EEM_{model_name}. Eg. you could pass |
|
35 | - * "public_html/wp-content/plugins/my_addon/db_models" (with or without trailing slash) |
|
36 | - * and in that folder put each of your model files, like "EEM_Food.model.php" which |
|
37 | - * contains the class "EEM_Food" and |
|
38 | - * "EEM_Monkey.model.php" which contains the class "EEM_Monkey". These will be |
|
39 | - * autoloaded and added to the EE registry so they can be used like ordinary models. The |
|
40 | - * class contained in each file should extend EEM_Base. |
|
41 | - * @type array $class_paths array of folders containing DB classes, where each file follows the model class |
|
42 | - * naming convention, which is EE_{model_name}.class.php. The class contained in each |
|
43 | - * file should extend EE_Base_Class |
|
44 | - * |
|
45 | - * } |
|
46 | - * @return bool |
|
47 | - * @throws EE_Error |
|
48 | - */ |
|
49 | - public static function register(string $addon_name = '', array $setup_args = []): bool |
|
50 | - { |
|
51 | - // required fields MUST be present, so let's make sure they are. |
|
52 | - if (empty($addon_name) || ! is_array($setup_args) || empty($setup_args['model_paths'])) { |
|
53 | - throw new EE_Error( |
|
54 | - __( |
|
55 | - 'In order to register Models with EE_Register_Model::register(), you must include a "model_id" (a unique identifier for this set of models), and an array containing the following keys: "model_paths" (an array of full server paths to folders that contain models)', |
|
56 | - 'event_espresso' |
|
57 | - ) |
|
58 | - ); |
|
59 | - } |
|
29 | + /** |
|
30 | + * @param string $addon_name unique id for it |
|
31 | + * @param array $setup_args { |
|
32 | + * @type array $model_paths array of folders containing DB models, where each file follows the models naming |
|
33 | + * convention, which is: EEM_{model_name}.model.php which contains a single class called |
|
34 | + * EEM_{model_name}. Eg. you could pass |
|
35 | + * "public_html/wp-content/plugins/my_addon/db_models" (with or without trailing slash) |
|
36 | + * and in that folder put each of your model files, like "EEM_Food.model.php" which |
|
37 | + * contains the class "EEM_Food" and |
|
38 | + * "EEM_Monkey.model.php" which contains the class "EEM_Monkey". These will be |
|
39 | + * autoloaded and added to the EE registry so they can be used like ordinary models. The |
|
40 | + * class contained in each file should extend EEM_Base. |
|
41 | + * @type array $class_paths array of folders containing DB classes, where each file follows the model class |
|
42 | + * naming convention, which is EE_{model_name}.class.php. The class contained in each |
|
43 | + * file should extend EE_Base_Class |
|
44 | + * |
|
45 | + * } |
|
46 | + * @return bool |
|
47 | + * @throws EE_Error |
|
48 | + */ |
|
49 | + public static function register(string $addon_name = '', array $setup_args = []): bool |
|
50 | + { |
|
51 | + // required fields MUST be present, so let's make sure they are. |
|
52 | + if (empty($addon_name) || ! is_array($setup_args) || empty($setup_args['model_paths'])) { |
|
53 | + throw new EE_Error( |
|
54 | + __( |
|
55 | + 'In order to register Models with EE_Register_Model::register(), you must include a "model_id" (a unique identifier for this set of models), and an array containing the following keys: "model_paths" (an array of full server paths to folders that contain models)', |
|
56 | + 'event_espresso' |
|
57 | + ) |
|
58 | + ); |
|
59 | + } |
|
60 | 60 | |
61 | - // make sure we don't register twice |
|
62 | - if (isset(self::$_model_registry[ $addon_name ])) { |
|
63 | - return true; |
|
64 | - } |
|
61 | + // make sure we don't register twice |
|
62 | + if (isset(self::$_model_registry[ $addon_name ])) { |
|
63 | + return true; |
|
64 | + } |
|
65 | 65 | |
66 | - if ( |
|
67 | - ! did_action('AHEE__EE_System__load_espresso_addons') |
|
68 | - || did_action('FHEE__EE_System__parse_model_names') |
|
69 | - || did_action('FHEE__EE_System__parse_implemented_model_names') |
|
70 | - ) { |
|
71 | - EE_Error::doing_it_wrong( |
|
72 | - __METHOD__, |
|
73 | - sprintf( |
|
74 | - __( |
|
75 | - 'An attempt was made to register "%s" as a group models has failed because it was not registered at the correct time. Please use the "AHEE__EE_System__load_espresso_addons" hook to register models.', |
|
76 | - 'event_espresso' |
|
77 | - ), |
|
78 | - $addon_name |
|
79 | - ), |
|
80 | - '4.5' |
|
81 | - ); |
|
82 | - } |
|
83 | - self::$_model_registry[ $addon_name ] = $setup_args; |
|
66 | + if ( |
|
67 | + ! did_action('AHEE__EE_System__load_espresso_addons') |
|
68 | + || did_action('FHEE__EE_System__parse_model_names') |
|
69 | + || did_action('FHEE__EE_System__parse_implemented_model_names') |
|
70 | + ) { |
|
71 | + EE_Error::doing_it_wrong( |
|
72 | + __METHOD__, |
|
73 | + sprintf( |
|
74 | + __( |
|
75 | + 'An attempt was made to register "%s" as a group models has failed because it was not registered at the correct time. Please use the "AHEE__EE_System__load_espresso_addons" hook to register models.', |
|
76 | + 'event_espresso' |
|
77 | + ), |
|
78 | + $addon_name |
|
79 | + ), |
|
80 | + '4.5' |
|
81 | + ); |
|
82 | + } |
|
83 | + self::$_model_registry[ $addon_name ] = $setup_args; |
|
84 | 84 | |
85 | - if ( |
|
86 | - ( |
|
87 | - isset($setup_args['model_paths']) && ! isset($setup_args['class_paths']) |
|
88 | - ) |
|
89 | - || (! isset($setup_args['model_paths']) && isset($setup_args['class_paths'])) |
|
90 | - ) { |
|
91 | - throw new EE_Error( |
|
92 | - sprintf( |
|
93 | - __( |
|
94 | - 'You must register both "model_paths" AND "class_paths", not just one or the other You provided %s', |
|
95 | - 'event_espresso' |
|
96 | - ), |
|
97 | - implode(", ", array_keys($setup_args)) |
|
98 | - ) |
|
99 | - ); |
|
100 | - } |
|
101 | - if (isset($setup_args['model_paths'])) { |
|
102 | - // make sure they passed in an array |
|
103 | - if (! is_array($setup_args['model_paths'])) { |
|
104 | - $setup_args['model_paths'] = [$setup_args['model_paths']]; |
|
105 | - } |
|
106 | - // we want to add this as a model folder |
|
107 | - // and autoload them all |
|
108 | - $class_to_filepath_map = EEH_File::get_contents_of_folders($setup_args['model_paths']); |
|
109 | - EEH_Autoloader::register_autoloader($class_to_filepath_map); |
|
110 | - $model_name_to_classname_map = []; |
|
111 | - foreach (array_keys($class_to_filepath_map) as $classname) { |
|
112 | - $model_name_to_classname_map[ str_replace("EEM_", "", $classname) ] = $classname; |
|
113 | - } |
|
114 | - self::$_model_name_to_classname_map[ $addon_name ] = $model_name_to_classname_map; |
|
115 | - add_filter('FHEE__EE_System__parse_model_names', ['EE_Register_Model', 'add_addon_models']); |
|
116 | - add_filter( |
|
117 | - 'FHEE__EE_System__parse_implemented_model_names', |
|
118 | - ['EE_Register_Model', 'add_addon_models'] |
|
119 | - ); |
|
120 | - add_filter('FHEE__EE_Registry__load_model__paths', ['EE_Register_Model', 'add_model_folders']); |
|
121 | - unset($setup_args['model_paths']); |
|
122 | - } |
|
123 | - if (isset($setup_args['class_paths'])) { |
|
124 | - // make sure they passed in an array |
|
125 | - if (! is_array($setup_args['class_paths'])) { |
|
126 | - $setup_args['class_paths'] = [$setup_args['class_paths']]; |
|
127 | - } |
|
128 | - $class_to_filepath_map = EEH_File::get_contents_of_folders($setup_args['class_paths']); |
|
129 | - EEH_Autoloader::register_autoloader($class_to_filepath_map); |
|
130 | - add_filter('FHEE__EE_Registry__load_class__paths', ['EE_Register_Model', 'add_class_folders']); |
|
131 | - unset($setup_args['class_paths']); |
|
132 | - } |
|
133 | - foreach ($setup_args as $unknown_key => $unknown_config) { |
|
134 | - self::deregister($addon_name); |
|
135 | - throw new EE_Error( |
|
136 | - sprintf(__("The key '%s' is not a known key for registering a model", "event_espresso"), $unknown_key) |
|
137 | - ); |
|
138 | - } |
|
139 | - return true; |
|
140 | - } |
|
85 | + if ( |
|
86 | + ( |
|
87 | + isset($setup_args['model_paths']) && ! isset($setup_args['class_paths']) |
|
88 | + ) |
|
89 | + || (! isset($setup_args['model_paths']) && isset($setup_args['class_paths'])) |
|
90 | + ) { |
|
91 | + throw new EE_Error( |
|
92 | + sprintf( |
|
93 | + __( |
|
94 | + 'You must register both "model_paths" AND "class_paths", not just one or the other You provided %s', |
|
95 | + 'event_espresso' |
|
96 | + ), |
|
97 | + implode(", ", array_keys($setup_args)) |
|
98 | + ) |
|
99 | + ); |
|
100 | + } |
|
101 | + if (isset($setup_args['model_paths'])) { |
|
102 | + // make sure they passed in an array |
|
103 | + if (! is_array($setup_args['model_paths'])) { |
|
104 | + $setup_args['model_paths'] = [$setup_args['model_paths']]; |
|
105 | + } |
|
106 | + // we want to add this as a model folder |
|
107 | + // and autoload them all |
|
108 | + $class_to_filepath_map = EEH_File::get_contents_of_folders($setup_args['model_paths']); |
|
109 | + EEH_Autoloader::register_autoloader($class_to_filepath_map); |
|
110 | + $model_name_to_classname_map = []; |
|
111 | + foreach (array_keys($class_to_filepath_map) as $classname) { |
|
112 | + $model_name_to_classname_map[ str_replace("EEM_", "", $classname) ] = $classname; |
|
113 | + } |
|
114 | + self::$_model_name_to_classname_map[ $addon_name ] = $model_name_to_classname_map; |
|
115 | + add_filter('FHEE__EE_System__parse_model_names', ['EE_Register_Model', 'add_addon_models']); |
|
116 | + add_filter( |
|
117 | + 'FHEE__EE_System__parse_implemented_model_names', |
|
118 | + ['EE_Register_Model', 'add_addon_models'] |
|
119 | + ); |
|
120 | + add_filter('FHEE__EE_Registry__load_model__paths', ['EE_Register_Model', 'add_model_folders']); |
|
121 | + unset($setup_args['model_paths']); |
|
122 | + } |
|
123 | + if (isset($setup_args['class_paths'])) { |
|
124 | + // make sure they passed in an array |
|
125 | + if (! is_array($setup_args['class_paths'])) { |
|
126 | + $setup_args['class_paths'] = [$setup_args['class_paths']]; |
|
127 | + } |
|
128 | + $class_to_filepath_map = EEH_File::get_contents_of_folders($setup_args['class_paths']); |
|
129 | + EEH_Autoloader::register_autoloader($class_to_filepath_map); |
|
130 | + add_filter('FHEE__EE_Registry__load_class__paths', ['EE_Register_Model', 'add_class_folders']); |
|
131 | + unset($setup_args['class_paths']); |
|
132 | + } |
|
133 | + foreach ($setup_args as $unknown_key => $unknown_config) { |
|
134 | + self::deregister($addon_name); |
|
135 | + throw new EE_Error( |
|
136 | + sprintf(__("The key '%s' is not a known key for registering a model", "event_espresso"), $unknown_key) |
|
137 | + ); |
|
138 | + } |
|
139 | + return true; |
|
140 | + } |
|
141 | 141 | |
142 | 142 | |
143 | - /** |
|
144 | - * Filters the core list of models |
|
145 | - * |
|
146 | - * @param array $core_models |
|
147 | - * @return array keys are model names (eg 'Event') and values are their classes (eg 'EE_Event') |
|
148 | - */ |
|
149 | - public static function add_addon_models(array $core_models = []): array |
|
150 | - { |
|
151 | - $models = []; |
|
152 | - foreach (self::$_model_name_to_classname_map as $model_map) { |
|
153 | - $models[] = $model_map; |
|
154 | - } |
|
155 | - return array_merge($core_models, ...$models); |
|
156 | - } |
|
143 | + /** |
|
144 | + * Filters the core list of models |
|
145 | + * |
|
146 | + * @param array $core_models |
|
147 | + * @return array keys are model names (eg 'Event') and values are their classes (eg 'EE_Event') |
|
148 | + */ |
|
149 | + public static function add_addon_models(array $core_models = []): array |
|
150 | + { |
|
151 | + $models = []; |
|
152 | + foreach (self::$_model_name_to_classname_map as $model_map) { |
|
153 | + $models[] = $model_map; |
|
154 | + } |
|
155 | + return array_merge($core_models, ...$models); |
|
156 | + } |
|
157 | 157 | |
158 | 158 | |
159 | - /** |
|
160 | - * Filters the list of model folders |
|
161 | - * |
|
162 | - * @param array $folders |
|
163 | - * @return array of folder paths |
|
164 | - */ |
|
165 | - public static function add_model_folders(array $folders = []): array |
|
166 | - { |
|
167 | - $model_folders = []; |
|
168 | - foreach (self::$_model_registry as $setup_args) { |
|
169 | - if (isset($setup_args['model_paths'])) { |
|
170 | - $model_folders[] = (array) $setup_args['model_paths']; |
|
171 | - } |
|
172 | - } |
|
173 | - return array_merge($folders, ...$model_folders); |
|
174 | - } |
|
159 | + /** |
|
160 | + * Filters the list of model folders |
|
161 | + * |
|
162 | + * @param array $folders |
|
163 | + * @return array of folder paths |
|
164 | + */ |
|
165 | + public static function add_model_folders(array $folders = []): array |
|
166 | + { |
|
167 | + $model_folders = []; |
|
168 | + foreach (self::$_model_registry as $setup_args) { |
|
169 | + if (isset($setup_args['model_paths'])) { |
|
170 | + $model_folders[] = (array) $setup_args['model_paths']; |
|
171 | + } |
|
172 | + } |
|
173 | + return array_merge($folders, ...$model_folders); |
|
174 | + } |
|
175 | 175 | |
176 | 176 | |
177 | - /** |
|
178 | - * Filters the array of model class paths |
|
179 | - * |
|
180 | - * @param array $folders |
|
181 | - * @return array of folder paths |
|
182 | - */ |
|
183 | - public static function add_class_folders(array $folders = []): array |
|
184 | - { |
|
185 | - $class_folders = []; |
|
186 | - foreach (self::$_model_registry as $setup_args) { |
|
187 | - if (isset($setup_args['class_paths'])) { |
|
188 | - $class_folders[] = (array) $setup_args['class_paths']; |
|
189 | - } |
|
190 | - } |
|
191 | - return array_merge($folders, ...$class_folders); |
|
192 | - } |
|
177 | + /** |
|
178 | + * Filters the array of model class paths |
|
179 | + * |
|
180 | + * @param array $folders |
|
181 | + * @return array of folder paths |
|
182 | + */ |
|
183 | + public static function add_class_folders(array $folders = []): array |
|
184 | + { |
|
185 | + $class_folders = []; |
|
186 | + foreach (self::$_model_registry as $setup_args) { |
|
187 | + if (isset($setup_args['class_paths'])) { |
|
188 | + $class_folders[] = (array) $setup_args['class_paths']; |
|
189 | + } |
|
190 | + } |
|
191 | + return array_merge($folders, ...$class_folders); |
|
192 | + } |
|
193 | 193 | |
194 | 194 | |
195 | - /** |
|
196 | - * deregister |
|
197 | - * |
|
198 | - * @param string $addon_name |
|
199 | - */ |
|
200 | - public static function deregister(string $addon_name = '') |
|
201 | - { |
|
202 | - unset(self::$_model_registry[ $addon_name ], self::$_model_name_to_classname_map[ $addon_name ]); |
|
203 | - } |
|
195 | + /** |
|
196 | + * deregister |
|
197 | + * |
|
198 | + * @param string $addon_name |
|
199 | + */ |
|
200 | + public static function deregister(string $addon_name = '') |
|
201 | + { |
|
202 | + unset(self::$_model_registry[ $addon_name ], self::$_model_name_to_classname_map[ $addon_name ]); |
|
203 | + } |
|
204 | 204 | } |
@@ -59,7 +59,7 @@ discard block |
||
59 | 59 | } |
60 | 60 | |
61 | 61 | // make sure we don't register twice |
62 | - if (isset(self::$_model_registry[ $addon_name ])) { |
|
62 | + if (isset(self::$_model_registry[$addon_name])) { |
|
63 | 63 | return true; |
64 | 64 | } |
65 | 65 | |
@@ -80,13 +80,13 @@ discard block |
||
80 | 80 | '4.5' |
81 | 81 | ); |
82 | 82 | } |
83 | - self::$_model_registry[ $addon_name ] = $setup_args; |
|
83 | + self::$_model_registry[$addon_name] = $setup_args; |
|
84 | 84 | |
85 | 85 | if ( |
86 | 86 | ( |
87 | 87 | isset($setup_args['model_paths']) && ! isset($setup_args['class_paths']) |
88 | 88 | ) |
89 | - || (! isset($setup_args['model_paths']) && isset($setup_args['class_paths'])) |
|
89 | + || ( ! isset($setup_args['model_paths']) && isset($setup_args['class_paths'])) |
|
90 | 90 | ) { |
91 | 91 | throw new EE_Error( |
92 | 92 | sprintf( |
@@ -100,7 +100,7 @@ discard block |
||
100 | 100 | } |
101 | 101 | if (isset($setup_args['model_paths'])) { |
102 | 102 | // make sure they passed in an array |
103 | - if (! is_array($setup_args['model_paths'])) { |
|
103 | + if ( ! is_array($setup_args['model_paths'])) { |
|
104 | 104 | $setup_args['model_paths'] = [$setup_args['model_paths']]; |
105 | 105 | } |
106 | 106 | // we want to add this as a model folder |
@@ -109,9 +109,9 @@ discard block |
||
109 | 109 | EEH_Autoloader::register_autoloader($class_to_filepath_map); |
110 | 110 | $model_name_to_classname_map = []; |
111 | 111 | foreach (array_keys($class_to_filepath_map) as $classname) { |
112 | - $model_name_to_classname_map[ str_replace("EEM_", "", $classname) ] = $classname; |
|
112 | + $model_name_to_classname_map[str_replace("EEM_", "", $classname)] = $classname; |
|
113 | 113 | } |
114 | - self::$_model_name_to_classname_map[ $addon_name ] = $model_name_to_classname_map; |
|
114 | + self::$_model_name_to_classname_map[$addon_name] = $model_name_to_classname_map; |
|
115 | 115 | add_filter('FHEE__EE_System__parse_model_names', ['EE_Register_Model', 'add_addon_models']); |
116 | 116 | add_filter( |
117 | 117 | 'FHEE__EE_System__parse_implemented_model_names', |
@@ -122,7 +122,7 @@ discard block |
||
122 | 122 | } |
123 | 123 | if (isset($setup_args['class_paths'])) { |
124 | 124 | // make sure they passed in an array |
125 | - if (! is_array($setup_args['class_paths'])) { |
|
125 | + if ( ! is_array($setup_args['class_paths'])) { |
|
126 | 126 | $setup_args['class_paths'] = [$setup_args['class_paths']]; |
127 | 127 | } |
128 | 128 | $class_to_filepath_map = EEH_File::get_contents_of_folders($setup_args['class_paths']); |
@@ -199,6 +199,6 @@ discard block |
||
199 | 199 | */ |
200 | 200 | public static function deregister(string $addon_name = '') |
201 | 201 | { |
202 | - unset(self::$_model_registry[ $addon_name ], self::$_model_name_to_classname_map[ $addon_name ]); |
|
202 | + unset(self::$_model_registry[$addon_name], self::$_model_name_to_classname_map[$addon_name]); |
|
203 | 203 | } |
204 | 204 | } |
@@ -20,163 +20,163 @@ |
||
20 | 20 | class EE_Register_Shortcode implements EEI_Plugin_API |
21 | 21 | { |
22 | 22 | |
23 | - /** |
|
24 | - * Holds values for registered shortcodes |
|
25 | - * |
|
26 | - * @var array |
|
27 | - */ |
|
28 | - protected static $_settings = []; |
|
23 | + /** |
|
24 | + * Holds values for registered shortcodes |
|
25 | + * |
|
26 | + * @var array |
|
27 | + */ |
|
28 | + protected static $_settings = []; |
|
29 | 29 | |
30 | 30 | |
31 | - /** |
|
32 | - * Method for registering new EE_Shortcodes |
|
33 | - * |
|
34 | - * @param string $addon_name a unique identifier for this set of modules Required. |
|
35 | - * @param array $setup_args an array of arguments provided for registering shortcodes Required. |
|
36 | - * @type array shortcode_paths an array of full server paths to folders containing any EES_Shortcodes |
|
37 | - * @type array shortcode_fqcns an array of fully qualified class names for any new shortcode classes to register. |
|
38 | - * Shortcode classes should extend EspressoShortcode |
|
39 | - * and be properly namespaced so they are autoloaded. |
|
40 | - * @return bool |
|
41 | - * @throws EE_Error |
|
42 | - * @since 4.3.0 |
|
43 | - * @since 4.9.46.rc.025 for the new `shortcode_fqcns` array argument. |
|
44 | - */ |
|
45 | - public static function register(string $addon_name = '', array $setup_args = []): bool |
|
46 | - { |
|
47 | - // required fields MUST be present, so let's make sure they are. |
|
48 | - if ( |
|
49 | - empty($addon_name) |
|
50 | - || ! is_array($setup_args) |
|
51 | - || ( |
|
52 | - empty($setup_args['shortcode_paths']) |
|
53 | - ) |
|
54 | - && empty($setup_args['shortcode_fqcns']) |
|
55 | - ) { |
|
56 | - throw new EE_Error( |
|
57 | - esc_html__( |
|
58 | - 'In order to register Modules with EE_Register_Shortcode::register(), you must include a "shortcode_id" (a unique identifier for this set of shortcodes), and an array containing the following keys: "shortcode_paths" (an array of full server paths to folders that contain shortcodes, or to the shortcode files themselves)', |
|
59 | - 'event_espresso' |
|
60 | - ) |
|
61 | - ); |
|
62 | - } |
|
31 | + /** |
|
32 | + * Method for registering new EE_Shortcodes |
|
33 | + * |
|
34 | + * @param string $addon_name a unique identifier for this set of modules Required. |
|
35 | + * @param array $setup_args an array of arguments provided for registering shortcodes Required. |
|
36 | + * @type array shortcode_paths an array of full server paths to folders containing any EES_Shortcodes |
|
37 | + * @type array shortcode_fqcns an array of fully qualified class names for any new shortcode classes to register. |
|
38 | + * Shortcode classes should extend EspressoShortcode |
|
39 | + * and be properly namespaced so they are autoloaded. |
|
40 | + * @return bool |
|
41 | + * @throws EE_Error |
|
42 | + * @since 4.3.0 |
|
43 | + * @since 4.9.46.rc.025 for the new `shortcode_fqcns` array argument. |
|
44 | + */ |
|
45 | + public static function register(string $addon_name = '', array $setup_args = []): bool |
|
46 | + { |
|
47 | + // required fields MUST be present, so let's make sure they are. |
|
48 | + if ( |
|
49 | + empty($addon_name) |
|
50 | + || ! is_array($setup_args) |
|
51 | + || ( |
|
52 | + empty($setup_args['shortcode_paths']) |
|
53 | + ) |
|
54 | + && empty($setup_args['shortcode_fqcns']) |
|
55 | + ) { |
|
56 | + throw new EE_Error( |
|
57 | + esc_html__( |
|
58 | + 'In order to register Modules with EE_Register_Shortcode::register(), you must include a "shortcode_id" (a unique identifier for this set of shortcodes), and an array containing the following keys: "shortcode_paths" (an array of full server paths to folders that contain shortcodes, or to the shortcode files themselves)', |
|
59 | + 'event_espresso' |
|
60 | + ) |
|
61 | + ); |
|
62 | + } |
|
63 | 63 | |
64 | - // make sure we don't register twice |
|
65 | - if (isset(self::$_settings[ $addon_name ])) { |
|
66 | - return true; |
|
67 | - } |
|
64 | + // make sure we don't register twice |
|
65 | + if (isset(self::$_settings[ $addon_name ])) { |
|
66 | + return true; |
|
67 | + } |
|
68 | 68 | |
69 | - // make sure this was called in the right place! |
|
70 | - if ( |
|
71 | - ! did_action('AHEE__EE_System__load_espresso_addons') |
|
72 | - || did_action('AHEE__EE_System__register_shortcodes_modules_and_widgets') |
|
73 | - ) { |
|
74 | - EE_Error::doing_it_wrong( |
|
75 | - __METHOD__, |
|
76 | - esc_html__( |
|
77 | - 'An attempt to register shortcodes has failed because it was not registered at the correct time. Please use the "AHEE__EE_System__register_shortcodes_modules_and_widgets" hook to register shortcodes.', |
|
78 | - 'event_espresso' |
|
79 | - ), |
|
80 | - '4.3.0' |
|
81 | - ); |
|
82 | - } |
|
83 | - // setup $_settings array from incoming values. |
|
84 | - self::$_settings[ $addon_name ] = [ |
|
85 | - // array of full server paths to any EES_Shortcodes used by the shortcode |
|
86 | - 'shortcode_paths' => isset($setup_args['shortcode_paths']) |
|
87 | - ? (array) $setup_args['shortcode_paths'] |
|
88 | - : [], |
|
89 | - 'shortcode_fqcns' => isset($setup_args['shortcode_fqcns']) |
|
90 | - ? (array) $setup_args['shortcode_fqcns'] |
|
91 | - : [], |
|
92 | - ]; |
|
93 | - // add to list of shortcodes to be registered |
|
94 | - add_filter( |
|
95 | - 'FHEE__EE_Config__register_shortcodes__shortcodes_to_register', |
|
96 | - ['EE_Register_Shortcode', 'add_shortcodes'] |
|
97 | - ); |
|
69 | + // make sure this was called in the right place! |
|
70 | + if ( |
|
71 | + ! did_action('AHEE__EE_System__load_espresso_addons') |
|
72 | + || did_action('AHEE__EE_System__register_shortcodes_modules_and_widgets') |
|
73 | + ) { |
|
74 | + EE_Error::doing_it_wrong( |
|
75 | + __METHOD__, |
|
76 | + esc_html__( |
|
77 | + 'An attempt to register shortcodes has failed because it was not registered at the correct time. Please use the "AHEE__EE_System__register_shortcodes_modules_and_widgets" hook to register shortcodes.', |
|
78 | + 'event_espresso' |
|
79 | + ), |
|
80 | + '4.3.0' |
|
81 | + ); |
|
82 | + } |
|
83 | + // setup $_settings array from incoming values. |
|
84 | + self::$_settings[ $addon_name ] = [ |
|
85 | + // array of full server paths to any EES_Shortcodes used by the shortcode |
|
86 | + 'shortcode_paths' => isset($setup_args['shortcode_paths']) |
|
87 | + ? (array) $setup_args['shortcode_paths'] |
|
88 | + : [], |
|
89 | + 'shortcode_fqcns' => isset($setup_args['shortcode_fqcns']) |
|
90 | + ? (array) $setup_args['shortcode_fqcns'] |
|
91 | + : [], |
|
92 | + ]; |
|
93 | + // add to list of shortcodes to be registered |
|
94 | + add_filter( |
|
95 | + 'FHEE__EE_Config__register_shortcodes__shortcodes_to_register', |
|
96 | + ['EE_Register_Shortcode', 'add_shortcodes'] |
|
97 | + ); |
|
98 | 98 | |
99 | - add_filter( |
|
100 | - 'FHEE__EventEspresso_core_services_shortcodes_ShortcodesManager__registerShortcodes__shortcode_collection', |
|
101 | - ['EE_Register_Shortcode', 'instantiateAndAddToShortcodeCollection'] |
|
102 | - ); |
|
103 | - return true; |
|
104 | - } |
|
99 | + add_filter( |
|
100 | + 'FHEE__EventEspresso_core_services_shortcodes_ShortcodesManager__registerShortcodes__shortcode_collection', |
|
101 | + ['EE_Register_Shortcode', 'instantiateAndAddToShortcodeCollection'] |
|
102 | + ); |
|
103 | + return true; |
|
104 | + } |
|
105 | 105 | |
106 | 106 | |
107 | - /** |
|
108 | - * Filters the list of shortcodes to add ours. |
|
109 | - * and they're just full filepaths to FOLDERS containing a shortcode class file. Eg. |
|
110 | - * array('espresso_monkey'=>'/public_html/wonder-site/wp-content/plugins/ee4/shortcodes/espresso_monkey'...) |
|
111 | - * |
|
112 | - * @param array $shortcodes_to_register array of paths to all shortcodes that require registering |
|
113 | - * @return array |
|
114 | - */ |
|
115 | - public static function add_shortcodes(array $shortcodes_to_register): array |
|
116 | - { |
|
117 | - $shortcode_paths = []; |
|
118 | - foreach (self::$_settings as $settings) { |
|
119 | - $shortcode_paths[] = $settings['shortcode_paths']; |
|
120 | - } |
|
121 | - return array_merge($shortcodes_to_register, ...$shortcode_paths); |
|
122 | - } |
|
107 | + /** |
|
108 | + * Filters the list of shortcodes to add ours. |
|
109 | + * and they're just full filepaths to FOLDERS containing a shortcode class file. Eg. |
|
110 | + * array('espresso_monkey'=>'/public_html/wonder-site/wp-content/plugins/ee4/shortcodes/espresso_monkey'...) |
|
111 | + * |
|
112 | + * @param array $shortcodes_to_register array of paths to all shortcodes that require registering |
|
113 | + * @return array |
|
114 | + */ |
|
115 | + public static function add_shortcodes(array $shortcodes_to_register): array |
|
116 | + { |
|
117 | + $shortcode_paths = []; |
|
118 | + foreach (self::$_settings as $settings) { |
|
119 | + $shortcode_paths[] = $settings['shortcode_paths']; |
|
120 | + } |
|
121 | + return array_merge($shortcodes_to_register, ...$shortcode_paths); |
|
122 | + } |
|
123 | 123 | |
124 | 124 | |
125 | - /** |
|
126 | - * Hooks into |
|
127 | - * FHEE__EventEspresso_core_services_shortcodes_ShortcodesManager__registerShortcodes__shortcode_collection and |
|
128 | - * registers any provided shortcode fully qualified class names. |
|
129 | - * |
|
130 | - * @param CollectionInterface $shortcodes_collection |
|
131 | - * @return CollectionInterface |
|
132 | - * @throws InvalidArgumentException |
|
133 | - * @throws InvalidClassException |
|
134 | - * @throws InvalidDataTypeException |
|
135 | - * @throws InvalidInterfaceException |
|
136 | - */ |
|
137 | - public static function instantiateAndAddToShortcodeCollection( |
|
138 | - CollectionInterface $shortcodes_collection |
|
139 | - ): CollectionInterface { |
|
140 | - foreach (self::$_settings as $settings) { |
|
141 | - if (! empty($settings['shortcode_fqcns'])) { |
|
142 | - foreach ($settings['shortcode_fqcns'] as $shortcode_fqcn) { |
|
143 | - if (! class_exists($shortcode_fqcn)) { |
|
144 | - throw new InvalidClassException( |
|
145 | - sprintf( |
|
146 | - esc_html__( |
|
147 | - 'Are you sure %s is the right fully qualified class name for the shortcode class?', |
|
148 | - 'event_espresso' |
|
149 | - ), |
|
150 | - $shortcode_fqcn |
|
151 | - ) |
|
152 | - ); |
|
153 | - } |
|
154 | - if (! EE_Dependency_Map::instance()->has_dependency_for_class($shortcode_fqcn)) { |
|
155 | - // register dependencies |
|
156 | - EE_Dependency_Map::register_dependencies( |
|
157 | - $shortcode_fqcn, |
|
158 | - [ |
|
159 | - 'EventEspresso\core\services\cache\PostRelatedCacheManager' => EE_Dependency_Map::load_from_cache, |
|
160 | - ] |
|
161 | - ); |
|
162 | - } |
|
163 | - $shortcodes_collection->add(LoaderFactory::getLoader()->getShared($shortcode_fqcn)); |
|
164 | - } |
|
165 | - } |
|
166 | - } |
|
167 | - return $shortcodes_collection; |
|
168 | - } |
|
125 | + /** |
|
126 | + * Hooks into |
|
127 | + * FHEE__EventEspresso_core_services_shortcodes_ShortcodesManager__registerShortcodes__shortcode_collection and |
|
128 | + * registers any provided shortcode fully qualified class names. |
|
129 | + * |
|
130 | + * @param CollectionInterface $shortcodes_collection |
|
131 | + * @return CollectionInterface |
|
132 | + * @throws InvalidArgumentException |
|
133 | + * @throws InvalidClassException |
|
134 | + * @throws InvalidDataTypeException |
|
135 | + * @throws InvalidInterfaceException |
|
136 | + */ |
|
137 | + public static function instantiateAndAddToShortcodeCollection( |
|
138 | + CollectionInterface $shortcodes_collection |
|
139 | + ): CollectionInterface { |
|
140 | + foreach (self::$_settings as $settings) { |
|
141 | + if (! empty($settings['shortcode_fqcns'])) { |
|
142 | + foreach ($settings['shortcode_fqcns'] as $shortcode_fqcn) { |
|
143 | + if (! class_exists($shortcode_fqcn)) { |
|
144 | + throw new InvalidClassException( |
|
145 | + sprintf( |
|
146 | + esc_html__( |
|
147 | + 'Are you sure %s is the right fully qualified class name for the shortcode class?', |
|
148 | + 'event_espresso' |
|
149 | + ), |
|
150 | + $shortcode_fqcn |
|
151 | + ) |
|
152 | + ); |
|
153 | + } |
|
154 | + if (! EE_Dependency_Map::instance()->has_dependency_for_class($shortcode_fqcn)) { |
|
155 | + // register dependencies |
|
156 | + EE_Dependency_Map::register_dependencies( |
|
157 | + $shortcode_fqcn, |
|
158 | + [ |
|
159 | + 'EventEspresso\core\services\cache\PostRelatedCacheManager' => EE_Dependency_Map::load_from_cache, |
|
160 | + ] |
|
161 | + ); |
|
162 | + } |
|
163 | + $shortcodes_collection->add(LoaderFactory::getLoader()->getShared($shortcode_fqcn)); |
|
164 | + } |
|
165 | + } |
|
166 | + } |
|
167 | + return $shortcodes_collection; |
|
168 | + } |
|
169 | 169 | |
170 | 170 | |
171 | - /** |
|
172 | - * This deregisters a shortcode that was previously registered with a specific $addon_name. |
|
173 | - * |
|
174 | - * @param string $addon_name the name for the shortcode that was previously registered |
|
175 | - * @return void |
|
176 | - * @since 4.3.0 |
|
177 | - */ |
|
178 | - public static function deregister(string $addon_name = '') |
|
179 | - { |
|
180 | - unset(self::$_settings[ $addon_name ]); |
|
181 | - } |
|
171 | + /** |
|
172 | + * This deregisters a shortcode that was previously registered with a specific $addon_name. |
|
173 | + * |
|
174 | + * @param string $addon_name the name for the shortcode that was previously registered |
|
175 | + * @return void |
|
176 | + * @since 4.3.0 |
|
177 | + */ |
|
178 | + public static function deregister(string $addon_name = '') |
|
179 | + { |
|
180 | + unset(self::$_settings[ $addon_name ]); |
|
181 | + } |
|
182 | 182 | } |
@@ -12,202 +12,202 @@ |
||
12 | 12 | { |
13 | 13 | |
14 | 14 | |
15 | - /** |
|
16 | - * Holds values for registered template pack |
|
17 | - * |
|
18 | - * @since 4.5.0 |
|
19 | - * |
|
20 | - * @var array |
|
21 | - */ |
|
22 | - protected static $_registry = []; |
|
23 | - |
|
24 | - |
|
25 | - /** |
|
26 | - * Used to register a new template pack with the messages system. |
|
27 | - * |
|
28 | - * Template packs are primarily defined via class extending EE_Messages_Template_Pack and are typically used to |
|
29 | - * change entire layouts for a set of message templates. This method is used to register the new template pack and |
|
30 | - * automatically have it loaded in the appropriate places. |
|
31 | - * |
|
32 | - * This registry also verifies that there isn't already a template pack registered with the same name and if there |
|
33 | - * is then it will add an EE_Error notice. |
|
34 | - * |
|
35 | - * Note that this only handles registering the your Template Pack class with the message template pack system. |
|
36 | - * However, there is also a naming schema you must follow for templates you are providing with your template pack. |
|
37 | - * |
|
38 | - * @param string $addon_name The internal reference used to refer to this template pack. Note, this is first come, |
|
39 | - * first serve. If there is already a template pack registered with this name then the |
|
40 | - * registry will assign a unique reference for it so it can still be activated (but this |
|
41 | - * makes it harder to deregister as it will be unique per load - so its best to try to |
|
42 | - * make this a unique string!) |
|
43 | - * @param array $setup_args array { |
|
44 | - * An array of required values for registering the template pack. |
|
45 | - * @type string $path The path for the new template pack class. |
|
46 | - * @type string $classname The name of the new Template Pack Class. |
|
47 | - * } |
|
48 | - * @return bool |
|
49 | - * @throws EE_Error |
|
50 | - * |
|
51 | - * @see core/libraries/messages/defaults/default/* for all the example templates the default template pack |
|
52 | - * supports. |
|
53 | - * |
|
54 | - * |
|
55 | - * @since 4.5.0 |
|
56 | - * @see EE_Messages_Template_Pack_Default for an example class |
|
57 | - */ |
|
58 | - public static function register(string $addon_name = '', array $setup_args = []): bool |
|
59 | - { |
|
60 | - |
|
61 | - // check for required params |
|
62 | - if (empty($addon_name) || empty($setup_args['path']) || empty($setup_args['classname'])) { |
|
63 | - throw new EE_Error( |
|
64 | - __( |
|
65 | - 'In order to register a new template pack for the EE Messages system, you must include a value to reference the template pack being registered and the setup_args must have the path for the new template pack class as well as the classname for the new Template Pack Class. ', |
|
66 | - 'event_espresso' |
|
67 | - ) |
|
68 | - ); |
|
69 | - } |
|
70 | - |
|
71 | - // make sure we don't register twice |
|
72 | - if (isset(self::$_registry[ $addon_name ])) { |
|
73 | - return true; |
|
74 | - } |
|
75 | - |
|
76 | - // check that incoming $addon_name doesn't already exist. If it does then we'll create a unique reference for this template pack. |
|
77 | - if (isset(self::$_registry[ $addon_name ])) { |
|
78 | - $addon_name = uniqid() . '_' . $addon_name; |
|
79 | - } |
|
80 | - |
|
81 | - |
|
82 | - // make sure this was called in the right place! |
|
83 | - if ( |
|
84 | - ! did_action('EE_Brewing_Regular___messages_caf') |
|
85 | - || did_action('AHEE__EE_System__perform_activations_upgrades_and_migrations') |
|
86 | - ) { |
|
87 | - EE_Error::doing_it_wrong( |
|
88 | - __METHOD__, |
|
89 | - sprintf( |
|
90 | - __( |
|
91 | - 'A EE Messages Template Pack given the reference "%s" has been attempted to be registered with the EE Messages System. It may or may not work because it should be only called on the "EE_Brewing_Regular__messages_caf" hook.', |
|
92 | - 'event_espresso' |
|
93 | - ), |
|
94 | - $addon_name |
|
95 | - ), |
|
96 | - '4.5.0' |
|
97 | - ); |
|
98 | - } |
|
99 | - |
|
100 | - if (self::_verify_class_not_exist($setup_args['classname'])) { |
|
101 | - self::$_registry[ $addon_name ] = [ |
|
102 | - 'path' => (string) $setup_args['path'], |
|
103 | - 'classname' => (string) $setup_args['classname'], |
|
104 | - ]; |
|
105 | - } |
|
106 | - |
|
107 | - // hook into the system |
|
108 | - add_filter( |
|
109 | - 'FHEE__EED_Messages___set_messages_paths___MSG_PATHS', |
|
110 | - ['EE_Register_Messages_Template_Pack', 'set_template_pack_path'], |
|
111 | - 10 |
|
112 | - ); |
|
113 | - add_filter( |
|
114 | - 'FHEE__EED_Messages__get_template_packs__template_packs', |
|
115 | - ['EE_Register_Messages_Template_Pack', 'set_template_pack'], |
|
116 | - 10 |
|
117 | - ); |
|
118 | - return true; |
|
119 | - } |
|
120 | - |
|
121 | - |
|
122 | - /** |
|
123 | - * Callback for the FHEE__EED_Messages___set_messages_paths___MSG_PATHS filter. This adds this template packs path |
|
124 | - * to the messages autoloader paths. |
|
125 | - * |
|
126 | - * @param array $paths Array of paths already registered with the messages autoloader |
|
127 | - * |
|
128 | - * @return array |
|
129 | - * @since 4.5.0 |
|
130 | - * |
|
131 | - */ |
|
132 | - public static function set_template_pack_path(array $paths): array |
|
133 | - { |
|
134 | - foreach (self::$_registry as $args) { |
|
135 | - $paths[] = $args['path']; |
|
136 | - } |
|
137 | - return $paths; |
|
138 | - } |
|
139 | - |
|
140 | - |
|
141 | - /** |
|
142 | - * Callback for the FHEE__EED_Messages__get_template_packs__template_packs filter. This adds the instantiated, |
|
143 | - * registered template pack to the template packs array when requested by client code. |
|
144 | - * |
|
145 | - * @param EE_Messages_Template_Pack[] $template_packs |
|
146 | - * @return EE_Messages_Template_Pack[] |
|
147 | - * @since 4.5.0 |
|
148 | - * |
|
149 | - */ |
|
150 | - public static function set_template_pack(array $template_packs): array |
|
151 | - { |
|
152 | - foreach (self::$_registry as $args) { |
|
153 | - // verify class_exists |
|
154 | - if (! class_exists($args['classname'])) { |
|
155 | - require_once($args['path'] . '/' . $args['classname'] . '.class.php'); |
|
156 | - } |
|
157 | - |
|
158 | - // check again! |
|
159 | - if (class_exists($args['classname'])) { |
|
160 | - $template_pack = new $args['classname'](); |
|
161 | - $template_packs[ $template_pack->dbref ] = $template_pack; |
|
162 | - } |
|
163 | - } |
|
164 | - |
|
165 | - return $template_packs; |
|
166 | - } |
|
167 | - |
|
168 | - |
|
169 | - /** |
|
170 | - * This verifies that the classes for each registered template pack are unique names. |
|
171 | - * |
|
172 | - * @param string $classname The classname being checked |
|
173 | - * |
|
174 | - * @return bool |
|
175 | - */ |
|
176 | - private static function _verify_class_not_exist(string $classname): bool |
|
177 | - { |
|
178 | - // loop through the existing registry and see if the classname is already present. |
|
179 | - foreach (self::$_registry as $args) { |
|
180 | - if ($args['classname'] == $classname) { |
|
181 | - EE_Error::add_error( |
|
182 | - sprintf( |
|
183 | - __( |
|
184 | - 'The %s template pack that you just activated cannot be registered with the messages system because there is already a template pack active using the same classname. Contact the author of this template pack to let them know of the conflict. To stop seeing this message you will need to deactivate this template pack.', |
|
185 | - 'event_espresso' |
|
186 | - ), |
|
187 | - $classname |
|
188 | - ), |
|
189 | - __FILE__, |
|
190 | - __LINE__, |
|
191 | - __FUNCTION__ |
|
192 | - ); |
|
193 | - return false; |
|
194 | - } |
|
195 | - } |
|
196 | - return true; |
|
197 | - } |
|
198 | - |
|
199 | - |
|
200 | - /** |
|
201 | - * This deregisters a variation set that was previously registered with the given slug. |
|
202 | - * |
|
203 | - * @param string $addon_name The name for the variation set that was previously registered. |
|
204 | - * |
|
205 | - * @return void |
|
206 | - * @since 4.5.0 |
|
207 | - * |
|
208 | - */ |
|
209 | - public static function deregister(string $addon_name = '') |
|
210 | - { |
|
211 | - unset(self::$_registry[ $addon_name ]); |
|
212 | - } |
|
15 | + /** |
|
16 | + * Holds values for registered template pack |
|
17 | + * |
|
18 | + * @since 4.5.0 |
|
19 | + * |
|
20 | + * @var array |
|
21 | + */ |
|
22 | + protected static $_registry = []; |
|
23 | + |
|
24 | + |
|
25 | + /** |
|
26 | + * Used to register a new template pack with the messages system. |
|
27 | + * |
|
28 | + * Template packs are primarily defined via class extending EE_Messages_Template_Pack and are typically used to |
|
29 | + * change entire layouts for a set of message templates. This method is used to register the new template pack and |
|
30 | + * automatically have it loaded in the appropriate places. |
|
31 | + * |
|
32 | + * This registry also verifies that there isn't already a template pack registered with the same name and if there |
|
33 | + * is then it will add an EE_Error notice. |
|
34 | + * |
|
35 | + * Note that this only handles registering the your Template Pack class with the message template pack system. |
|
36 | + * However, there is also a naming schema you must follow for templates you are providing with your template pack. |
|
37 | + * |
|
38 | + * @param string $addon_name The internal reference used to refer to this template pack. Note, this is first come, |
|
39 | + * first serve. If there is already a template pack registered with this name then the |
|
40 | + * registry will assign a unique reference for it so it can still be activated (but this |
|
41 | + * makes it harder to deregister as it will be unique per load - so its best to try to |
|
42 | + * make this a unique string!) |
|
43 | + * @param array $setup_args array { |
|
44 | + * An array of required values for registering the template pack. |
|
45 | + * @type string $path The path for the new template pack class. |
|
46 | + * @type string $classname The name of the new Template Pack Class. |
|
47 | + * } |
|
48 | + * @return bool |
|
49 | + * @throws EE_Error |
|
50 | + * |
|
51 | + * @see core/libraries/messages/defaults/default/* for all the example templates the default template pack |
|
52 | + * supports. |
|
53 | + * |
|
54 | + * |
|
55 | + * @since 4.5.0 |
|
56 | + * @see EE_Messages_Template_Pack_Default for an example class |
|
57 | + */ |
|
58 | + public static function register(string $addon_name = '', array $setup_args = []): bool |
|
59 | + { |
|
60 | + |
|
61 | + // check for required params |
|
62 | + if (empty($addon_name) || empty($setup_args['path']) || empty($setup_args['classname'])) { |
|
63 | + throw new EE_Error( |
|
64 | + __( |
|
65 | + 'In order to register a new template pack for the EE Messages system, you must include a value to reference the template pack being registered and the setup_args must have the path for the new template pack class as well as the classname for the new Template Pack Class. ', |
|
66 | + 'event_espresso' |
|
67 | + ) |
|
68 | + ); |
|
69 | + } |
|
70 | + |
|
71 | + // make sure we don't register twice |
|
72 | + if (isset(self::$_registry[ $addon_name ])) { |
|
73 | + return true; |
|
74 | + } |
|
75 | + |
|
76 | + // check that incoming $addon_name doesn't already exist. If it does then we'll create a unique reference for this template pack. |
|
77 | + if (isset(self::$_registry[ $addon_name ])) { |
|
78 | + $addon_name = uniqid() . '_' . $addon_name; |
|
79 | + } |
|
80 | + |
|
81 | + |
|
82 | + // make sure this was called in the right place! |
|
83 | + if ( |
|
84 | + ! did_action('EE_Brewing_Regular___messages_caf') |
|
85 | + || did_action('AHEE__EE_System__perform_activations_upgrades_and_migrations') |
|
86 | + ) { |
|
87 | + EE_Error::doing_it_wrong( |
|
88 | + __METHOD__, |
|
89 | + sprintf( |
|
90 | + __( |
|
91 | + 'A EE Messages Template Pack given the reference "%s" has been attempted to be registered with the EE Messages System. It may or may not work because it should be only called on the "EE_Brewing_Regular__messages_caf" hook.', |
|
92 | + 'event_espresso' |
|
93 | + ), |
|
94 | + $addon_name |
|
95 | + ), |
|
96 | + '4.5.0' |
|
97 | + ); |
|
98 | + } |
|
99 | + |
|
100 | + if (self::_verify_class_not_exist($setup_args['classname'])) { |
|
101 | + self::$_registry[ $addon_name ] = [ |
|
102 | + 'path' => (string) $setup_args['path'], |
|
103 | + 'classname' => (string) $setup_args['classname'], |
|
104 | + ]; |
|
105 | + } |
|
106 | + |
|
107 | + // hook into the system |
|
108 | + add_filter( |
|
109 | + 'FHEE__EED_Messages___set_messages_paths___MSG_PATHS', |
|
110 | + ['EE_Register_Messages_Template_Pack', 'set_template_pack_path'], |
|
111 | + 10 |
|
112 | + ); |
|
113 | + add_filter( |
|
114 | + 'FHEE__EED_Messages__get_template_packs__template_packs', |
|
115 | + ['EE_Register_Messages_Template_Pack', 'set_template_pack'], |
|
116 | + 10 |
|
117 | + ); |
|
118 | + return true; |
|
119 | + } |
|
120 | + |
|
121 | + |
|
122 | + /** |
|
123 | + * Callback for the FHEE__EED_Messages___set_messages_paths___MSG_PATHS filter. This adds this template packs path |
|
124 | + * to the messages autoloader paths. |
|
125 | + * |
|
126 | + * @param array $paths Array of paths already registered with the messages autoloader |
|
127 | + * |
|
128 | + * @return array |
|
129 | + * @since 4.5.0 |
|
130 | + * |
|
131 | + */ |
|
132 | + public static function set_template_pack_path(array $paths): array |
|
133 | + { |
|
134 | + foreach (self::$_registry as $args) { |
|
135 | + $paths[] = $args['path']; |
|
136 | + } |
|
137 | + return $paths; |
|
138 | + } |
|
139 | + |
|
140 | + |
|
141 | + /** |
|
142 | + * Callback for the FHEE__EED_Messages__get_template_packs__template_packs filter. This adds the instantiated, |
|
143 | + * registered template pack to the template packs array when requested by client code. |
|
144 | + * |
|
145 | + * @param EE_Messages_Template_Pack[] $template_packs |
|
146 | + * @return EE_Messages_Template_Pack[] |
|
147 | + * @since 4.5.0 |
|
148 | + * |
|
149 | + */ |
|
150 | + public static function set_template_pack(array $template_packs): array |
|
151 | + { |
|
152 | + foreach (self::$_registry as $args) { |
|
153 | + // verify class_exists |
|
154 | + if (! class_exists($args['classname'])) { |
|
155 | + require_once($args['path'] . '/' . $args['classname'] . '.class.php'); |
|
156 | + } |
|
157 | + |
|
158 | + // check again! |
|
159 | + if (class_exists($args['classname'])) { |
|
160 | + $template_pack = new $args['classname'](); |
|
161 | + $template_packs[ $template_pack->dbref ] = $template_pack; |
|
162 | + } |
|
163 | + } |
|
164 | + |
|
165 | + return $template_packs; |
|
166 | + } |
|
167 | + |
|
168 | + |
|
169 | + /** |
|
170 | + * This verifies that the classes for each registered template pack are unique names. |
|
171 | + * |
|
172 | + * @param string $classname The classname being checked |
|
173 | + * |
|
174 | + * @return bool |
|
175 | + */ |
|
176 | + private static function _verify_class_not_exist(string $classname): bool |
|
177 | + { |
|
178 | + // loop through the existing registry and see if the classname is already present. |
|
179 | + foreach (self::$_registry as $args) { |
|
180 | + if ($args['classname'] == $classname) { |
|
181 | + EE_Error::add_error( |
|
182 | + sprintf( |
|
183 | + __( |
|
184 | + 'The %s template pack that you just activated cannot be registered with the messages system because there is already a template pack active using the same classname. Contact the author of this template pack to let them know of the conflict. To stop seeing this message you will need to deactivate this template pack.', |
|
185 | + 'event_espresso' |
|
186 | + ), |
|
187 | + $classname |
|
188 | + ), |
|
189 | + __FILE__, |
|
190 | + __LINE__, |
|
191 | + __FUNCTION__ |
|
192 | + ); |
|
193 | + return false; |
|
194 | + } |
|
195 | + } |
|
196 | + return true; |
|
197 | + } |
|
198 | + |
|
199 | + |
|
200 | + /** |
|
201 | + * This deregisters a variation set that was previously registered with the given slug. |
|
202 | + * |
|
203 | + * @param string $addon_name The name for the variation set that was previously registered. |
|
204 | + * |
|
205 | + * @return void |
|
206 | + * @since 4.5.0 |
|
207 | + * |
|
208 | + */ |
|
209 | + public static function deregister(string $addon_name = '') |
|
210 | + { |
|
211 | + unset(self::$_registry[ $addon_name ]); |
|
212 | + } |
|
213 | 213 | } |
@@ -69,13 +69,13 @@ discard block |
||
69 | 69 | } |
70 | 70 | |
71 | 71 | // make sure we don't register twice |
72 | - if (isset(self::$_registry[ $addon_name ])) { |
|
72 | + if (isset(self::$_registry[$addon_name])) { |
|
73 | 73 | return true; |
74 | 74 | } |
75 | 75 | |
76 | 76 | // check that incoming $addon_name doesn't already exist. If it does then we'll create a unique reference for this template pack. |
77 | - if (isset(self::$_registry[ $addon_name ])) { |
|
78 | - $addon_name = uniqid() . '_' . $addon_name; |
|
77 | + if (isset(self::$_registry[$addon_name])) { |
|
78 | + $addon_name = uniqid().'_'.$addon_name; |
|
79 | 79 | } |
80 | 80 | |
81 | 81 | |
@@ -98,7 +98,7 @@ discard block |
||
98 | 98 | } |
99 | 99 | |
100 | 100 | if (self::_verify_class_not_exist($setup_args['classname'])) { |
101 | - self::$_registry[ $addon_name ] = [ |
|
101 | + self::$_registry[$addon_name] = [ |
|
102 | 102 | 'path' => (string) $setup_args['path'], |
103 | 103 | 'classname' => (string) $setup_args['classname'], |
104 | 104 | ]; |
@@ -151,14 +151,14 @@ discard block |
||
151 | 151 | { |
152 | 152 | foreach (self::$_registry as $args) { |
153 | 153 | // verify class_exists |
154 | - if (! class_exists($args['classname'])) { |
|
155 | - require_once($args['path'] . '/' . $args['classname'] . '.class.php'); |
|
154 | + if ( ! class_exists($args['classname'])) { |
|
155 | + require_once($args['path'].'/'.$args['classname'].'.class.php'); |
|
156 | 156 | } |
157 | 157 | |
158 | 158 | // check again! |
159 | 159 | if (class_exists($args['classname'])) { |
160 | 160 | $template_pack = new $args['classname'](); |
161 | - $template_packs[ $template_pack->dbref ] = $template_pack; |
|
161 | + $template_packs[$template_pack->dbref] = $template_pack; |
|
162 | 162 | } |
163 | 163 | } |
164 | 164 | |
@@ -208,6 +208,6 @@ discard block |
||
208 | 208 | */ |
209 | 209 | public static function deregister(string $addon_name = '') |
210 | 210 | { |
211 | - unset(self::$_registry[ $addon_name ]); |
|
211 | + unset(self::$_registry[$addon_name]); |
|
212 | 212 | } |
213 | 213 | } |
@@ -12,475 +12,475 @@ |
||
12 | 12 | { |
13 | 13 | |
14 | 14 | |
15 | - /** |
|
16 | - * Holds values for registered message types |
|
17 | - * |
|
18 | - * @var array |
|
19 | - */ |
|
20 | - protected static $_ee_message_type_registry = []; |
|
15 | + /** |
|
16 | + * Holds values for registered message types |
|
17 | + * |
|
18 | + * @var array |
|
19 | + */ |
|
20 | + protected static $_ee_message_type_registry = []; |
|
21 | 21 | |
22 | 22 | |
23 | - /** |
|
24 | - * Method for registering new message types in the EE_messages system. |
|
25 | - * Note: All message types must have the following files in order to work: |
|
26 | - * Template files for default templates getting setup. |
|
27 | - * See /core/libraries/messages/defaults/default/ for examples |
|
28 | - * (note that template files match a specific naming schema). |
|
29 | - * These templates will need to be registered with the default template pack. |
|
30 | - * - EE_Messages_Validator extended class(es). See /core/libraries/messages/validators/email/ |
|
31 | - * for examples. Note for any new message types, there will need to be a validator for each |
|
32 | - * messenger combo this message type can activate with. |
|
33 | - * - And of course the main EE_{Message_Type_Name}_message_type class that defines the new |
|
34 | - * message type and its properties. |
|
35 | - * |
|
36 | - * @param string $addon_name Whatever is defined for the $name property of |
|
37 | - * the message type you are registering (eg. |
|
38 | - * declined_registration). Required. |
|
39 | - * @param array $setup_args An array of arguments provided for registering the message type. |
|
40 | - * @throws EE_Error |
|
41 | - * } |
|
42 | - * @see inline docs in the register method for what can be passed in as arguments. |
|
43 | - * @since 4.3.0 |
|
44 | - */ |
|
45 | - public static function register(string $addon_name = '', array $setup_args = []): bool |
|
46 | - { |
|
47 | - // required fields MUST be present, so let's make sure they are. |
|
48 | - if ( |
|
49 | - ! isset($addon_name) |
|
50 | - || ! is_array($setup_args) |
|
51 | - || empty($setup_args['mtfilename']) |
|
52 | - || empty($setup_args['autoloadpaths']) |
|
53 | - ) { |
|
54 | - throw new EE_Error( |
|
55 | - __( |
|
56 | - 'In order to register a message type with EE_Register_Message_Type::register, you must include a unique name for the message type, plus an array containing the following keys: "mtfilename", "autoloadpaths"', |
|
57 | - 'event_espresso' |
|
58 | - ) |
|
59 | - ); |
|
60 | - } |
|
23 | + /** |
|
24 | + * Method for registering new message types in the EE_messages system. |
|
25 | + * Note: All message types must have the following files in order to work: |
|
26 | + * Template files for default templates getting setup. |
|
27 | + * See /core/libraries/messages/defaults/default/ for examples |
|
28 | + * (note that template files match a specific naming schema). |
|
29 | + * These templates will need to be registered with the default template pack. |
|
30 | + * - EE_Messages_Validator extended class(es). See /core/libraries/messages/validators/email/ |
|
31 | + * for examples. Note for any new message types, there will need to be a validator for each |
|
32 | + * messenger combo this message type can activate with. |
|
33 | + * - And of course the main EE_{Message_Type_Name}_message_type class that defines the new |
|
34 | + * message type and its properties. |
|
35 | + * |
|
36 | + * @param string $addon_name Whatever is defined for the $name property of |
|
37 | + * the message type you are registering (eg. |
|
38 | + * declined_registration). Required. |
|
39 | + * @param array $setup_args An array of arguments provided for registering the message type. |
|
40 | + * @throws EE_Error |
|
41 | + * } |
|
42 | + * @see inline docs in the register method for what can be passed in as arguments. |
|
43 | + * @since 4.3.0 |
|
44 | + */ |
|
45 | + public static function register(string $addon_name = '', array $setup_args = []): bool |
|
46 | + { |
|
47 | + // required fields MUST be present, so let's make sure they are. |
|
48 | + if ( |
|
49 | + ! isset($addon_name) |
|
50 | + || ! is_array($setup_args) |
|
51 | + || empty($setup_args['mtfilename']) |
|
52 | + || empty($setup_args['autoloadpaths']) |
|
53 | + ) { |
|
54 | + throw new EE_Error( |
|
55 | + __( |
|
56 | + 'In order to register a message type with EE_Register_Message_Type::register, you must include a unique name for the message type, plus an array containing the following keys: "mtfilename", "autoloadpaths"', |
|
57 | + 'event_espresso' |
|
58 | + ) |
|
59 | + ); |
|
60 | + } |
|
61 | 61 | |
62 | - // make sure we don't register twice |
|
63 | - if (isset(self::$_ee_message_type_registry[ $addon_name ])) { |
|
64 | - return true; |
|
65 | - } |
|
62 | + // make sure we don't register twice |
|
63 | + if (isset(self::$_ee_message_type_registry[ $addon_name ])) { |
|
64 | + return true; |
|
65 | + } |
|
66 | 66 | |
67 | - // make sure this was called in the right place! |
|
68 | - if ( |
|
69 | - ! did_action('EE_Brewing_Regular___messages_caf') |
|
70 | - || did_action('AHEE__EE_System__perform_activations_upgrades_and_migrations') |
|
71 | - ) { |
|
72 | - EE_Error::doing_it_wrong( |
|
73 | - __METHOD__, |
|
74 | - sprintf( |
|
75 | - __( |
|
76 | - 'A message type named "%s" has been attempted to be registered with the EE Messages System. It may or may not work because it should be only called on the "EE_Brewing_Regular___messages_caf" hook.', |
|
77 | - 'event_espresso' |
|
78 | - ), |
|
79 | - $addon_name |
|
80 | - ), |
|
81 | - '4.3.0' |
|
82 | - ); |
|
83 | - } |
|
84 | - // setup $__ee_message_type_registry array from incoming values. |
|
85 | - self::$_ee_message_type_registry[ $addon_name ] = [ |
|
86 | - /** |
|
87 | - * The file name for the message type being registered. |
|
88 | - * Required. |
|
89 | - * |
|
90 | - * @type string |
|
91 | - */ |
|
92 | - 'mtfilename' => (string) $setup_args['mtfilename'], |
|
93 | - /** |
|
94 | - * Autoload paths for classes used by the message type. |
|
95 | - * Required. |
|
96 | - * |
|
97 | - * @type array |
|
98 | - */ |
|
99 | - 'autoloadpaths' => (array) $setup_args['autoloadpaths'], |
|
100 | - /** |
|
101 | - * Messengers that the message type should be able to activate with. |
|
102 | - * Use messenger slugs. |
|
103 | - * |
|
104 | - * @type array |
|
105 | - */ |
|
106 | - 'messengers_to_activate_with' => ! empty($setup_args['messengers_to_activate_with']) |
|
107 | - ? (array) $setup_args['messengers_to_activate_with'] |
|
108 | - : [], |
|
109 | - /** |
|
110 | - * Messengers that the message type should validate with. |
|
111 | - * Use messenger slugs. |
|
112 | - * |
|
113 | - * @type array |
|
114 | - */ |
|
115 | - 'messengers_to_validate_with' => ! empty($setup_args['messengers_to_validate_with']) |
|
116 | - ? (array) $setup_args['messengers_to_validate_with'] |
|
117 | - : [], |
|
118 | - /** |
|
119 | - * Whether to force activate this message type the first time it is registered. |
|
120 | - * |
|
121 | - * @type bool False means its not activated by default and left up to the end user to activate. |
|
122 | - */ |
|
123 | - 'force_activation' => ! empty($setup_args['force_activation']) |
|
124 | - && $setup_args['force_activation'], |
|
125 | - /** |
|
126 | - * What messengers this message type supports the default template pack for. |
|
127 | - * Note: If you do not set this (or any of the following template pack/variation related arguments) to true, |
|
128 | - * then it is expected that the message type being registered is doing its own custom default template |
|
129 | - * pack/variation registration. |
|
130 | - * |
|
131 | - * If this is set and has values, then it is expected that the following arguments are also set in the incoming options |
|
132 | - * $setup_arguments array as well: |
|
133 | - * - 'base_path_for_default_templates' |
|
134 | - * |
|
135 | - * @type array Expect an array of messengers this supports default template packs for. |
|
136 | - */ |
|
137 | - 'messengers_supporting_default_template_pack_with' => isset($setup_args['messengers_supporting_default_template_pack_with']) |
|
138 | - ? (array) $setup_args['messengers_supporting_default_template_pack_with'] |
|
139 | - : [], |
|
140 | - /** |
|
141 | - * The base path where the default templates for this message type can be found. |
|
142 | - * |
|
143 | - * @type string |
|
144 | - */ |
|
145 | - 'base_path_for_default_templates' => $setup_args['base_path_for_default_templates'] ?? '', |
|
146 | - /** |
|
147 | - * The base path where the default variations for this message type can be found. |
|
148 | - * |
|
149 | - * @type string |
|
150 | - */ |
|
151 | - 'base_path_for_default_variation' => $setup_args['base_path_for_default_variation'] ?? '', |
|
152 | - /** |
|
153 | - * The base url for the default variations for this message type. |
|
154 | - * |
|
155 | - * @type string |
|
156 | - */ |
|
157 | - 'base_url_for_default_variation' => $setup_args['base_url_for_default_variation'] ?? '', |
|
158 | - ]; |
|
159 | - // add filters but only if they haven't already been set (these filters only need to be registered ONCE because |
|
160 | - // the callback handles all registered message types. |
|
161 | - if ( |
|
162 | - false === has_filter( |
|
163 | - 'FHEE__EED_Messages___set_messages_paths___MSG_PATHS', |
|
164 | - ['EE_Register_Message_Type', 'register_msgs_autoload_paths'] |
|
165 | - ) |
|
166 | - ) { |
|
167 | - add_filter( |
|
168 | - 'FHEE__EED_Messages___set_messages_paths___MSG_PATHS', |
|
169 | - ['EE_Register_Message_Type', 'register_msgs_autoload_paths'], |
|
170 | - 10 |
|
171 | - ); |
|
172 | - add_filter( |
|
173 | - 'FHEE__EE_messages__get_installed__messagetype_files', |
|
174 | - ['EE_Register_Message_Type', 'register_messagetype_files'], |
|
175 | - 10, |
|
176 | - 1 |
|
177 | - ); |
|
178 | - add_filter( |
|
179 | - 'FHEE__EE_messenger__get_default_message_types__default_types', |
|
180 | - ['EE_Register_Message_Type', 'register_messengers_to_activate_mt_with'], |
|
181 | - 10, |
|
182 | - 2 |
|
183 | - ); |
|
184 | - add_filter( |
|
185 | - 'FHEE__EE_messenger__get_valid_message_types__valid_types', |
|
186 | - ['EE_Register_Message_Type', 'register_messengers_to_validate_mt_with'], |
|
187 | - 10, |
|
188 | - 2 |
|
189 | - ); |
|
190 | - // actions |
|
191 | - add_action( |
|
192 | - 'AHEE__EE_Addon__initialize_default_data__begin', |
|
193 | - ['EE_Register_Message_Type', 'set_defaults'] |
|
194 | - ); |
|
67 | + // make sure this was called in the right place! |
|
68 | + if ( |
|
69 | + ! did_action('EE_Brewing_Regular___messages_caf') |
|
70 | + || did_action('AHEE__EE_System__perform_activations_upgrades_and_migrations') |
|
71 | + ) { |
|
72 | + EE_Error::doing_it_wrong( |
|
73 | + __METHOD__, |
|
74 | + sprintf( |
|
75 | + __( |
|
76 | + 'A message type named "%s" has been attempted to be registered with the EE Messages System. It may or may not work because it should be only called on the "EE_Brewing_Regular___messages_caf" hook.', |
|
77 | + 'event_espresso' |
|
78 | + ), |
|
79 | + $addon_name |
|
80 | + ), |
|
81 | + '4.3.0' |
|
82 | + ); |
|
83 | + } |
|
84 | + // setup $__ee_message_type_registry array from incoming values. |
|
85 | + self::$_ee_message_type_registry[ $addon_name ] = [ |
|
86 | + /** |
|
87 | + * The file name for the message type being registered. |
|
88 | + * Required. |
|
89 | + * |
|
90 | + * @type string |
|
91 | + */ |
|
92 | + 'mtfilename' => (string) $setup_args['mtfilename'], |
|
93 | + /** |
|
94 | + * Autoload paths for classes used by the message type. |
|
95 | + * Required. |
|
96 | + * |
|
97 | + * @type array |
|
98 | + */ |
|
99 | + 'autoloadpaths' => (array) $setup_args['autoloadpaths'], |
|
100 | + /** |
|
101 | + * Messengers that the message type should be able to activate with. |
|
102 | + * Use messenger slugs. |
|
103 | + * |
|
104 | + * @type array |
|
105 | + */ |
|
106 | + 'messengers_to_activate_with' => ! empty($setup_args['messengers_to_activate_with']) |
|
107 | + ? (array) $setup_args['messengers_to_activate_with'] |
|
108 | + : [], |
|
109 | + /** |
|
110 | + * Messengers that the message type should validate with. |
|
111 | + * Use messenger slugs. |
|
112 | + * |
|
113 | + * @type array |
|
114 | + */ |
|
115 | + 'messengers_to_validate_with' => ! empty($setup_args['messengers_to_validate_with']) |
|
116 | + ? (array) $setup_args['messengers_to_validate_with'] |
|
117 | + : [], |
|
118 | + /** |
|
119 | + * Whether to force activate this message type the first time it is registered. |
|
120 | + * |
|
121 | + * @type bool False means its not activated by default and left up to the end user to activate. |
|
122 | + */ |
|
123 | + 'force_activation' => ! empty($setup_args['force_activation']) |
|
124 | + && $setup_args['force_activation'], |
|
125 | + /** |
|
126 | + * What messengers this message type supports the default template pack for. |
|
127 | + * Note: If you do not set this (or any of the following template pack/variation related arguments) to true, |
|
128 | + * then it is expected that the message type being registered is doing its own custom default template |
|
129 | + * pack/variation registration. |
|
130 | + * |
|
131 | + * If this is set and has values, then it is expected that the following arguments are also set in the incoming options |
|
132 | + * $setup_arguments array as well: |
|
133 | + * - 'base_path_for_default_templates' |
|
134 | + * |
|
135 | + * @type array Expect an array of messengers this supports default template packs for. |
|
136 | + */ |
|
137 | + 'messengers_supporting_default_template_pack_with' => isset($setup_args['messengers_supporting_default_template_pack_with']) |
|
138 | + ? (array) $setup_args['messengers_supporting_default_template_pack_with'] |
|
139 | + : [], |
|
140 | + /** |
|
141 | + * The base path where the default templates for this message type can be found. |
|
142 | + * |
|
143 | + * @type string |
|
144 | + */ |
|
145 | + 'base_path_for_default_templates' => $setup_args['base_path_for_default_templates'] ?? '', |
|
146 | + /** |
|
147 | + * The base path where the default variations for this message type can be found. |
|
148 | + * |
|
149 | + * @type string |
|
150 | + */ |
|
151 | + 'base_path_for_default_variation' => $setup_args['base_path_for_default_variation'] ?? '', |
|
152 | + /** |
|
153 | + * The base url for the default variations for this message type. |
|
154 | + * |
|
155 | + * @type string |
|
156 | + */ |
|
157 | + 'base_url_for_default_variation' => $setup_args['base_url_for_default_variation'] ?? '', |
|
158 | + ]; |
|
159 | + // add filters but only if they haven't already been set (these filters only need to be registered ONCE because |
|
160 | + // the callback handles all registered message types. |
|
161 | + if ( |
|
162 | + false === has_filter( |
|
163 | + 'FHEE__EED_Messages___set_messages_paths___MSG_PATHS', |
|
164 | + ['EE_Register_Message_Type', 'register_msgs_autoload_paths'] |
|
165 | + ) |
|
166 | + ) { |
|
167 | + add_filter( |
|
168 | + 'FHEE__EED_Messages___set_messages_paths___MSG_PATHS', |
|
169 | + ['EE_Register_Message_Type', 'register_msgs_autoload_paths'], |
|
170 | + 10 |
|
171 | + ); |
|
172 | + add_filter( |
|
173 | + 'FHEE__EE_messages__get_installed__messagetype_files', |
|
174 | + ['EE_Register_Message_Type', 'register_messagetype_files'], |
|
175 | + 10, |
|
176 | + 1 |
|
177 | + ); |
|
178 | + add_filter( |
|
179 | + 'FHEE__EE_messenger__get_default_message_types__default_types', |
|
180 | + ['EE_Register_Message_Type', 'register_messengers_to_activate_mt_with'], |
|
181 | + 10, |
|
182 | + 2 |
|
183 | + ); |
|
184 | + add_filter( |
|
185 | + 'FHEE__EE_messenger__get_valid_message_types__valid_types', |
|
186 | + ['EE_Register_Message_Type', 'register_messengers_to_validate_mt_with'], |
|
187 | + 10, |
|
188 | + 2 |
|
189 | + ); |
|
190 | + // actions |
|
191 | + add_action( |
|
192 | + 'AHEE__EE_Addon__initialize_default_data__begin', |
|
193 | + ['EE_Register_Message_Type', 'set_defaults'] |
|
194 | + ); |
|
195 | 195 | |
196 | - // default template packs and variations related |
|
197 | - add_filter( |
|
198 | - 'FHEE__EE_Messages_Template_Pack_Default__get_supports', |
|
199 | - ['EE_Register_Message_Type', 'register_default_template_pack_supports'] |
|
200 | - ); |
|
201 | - add_filter( |
|
202 | - 'FHEE__EE_Template_Pack___get_specific_template__filtered_base_path', |
|
203 | - ['EE_Register_Message_Type', 'register_base_template_path'], |
|
204 | - 10, |
|
205 | - 6 |
|
206 | - ); |
|
207 | - add_filter( |
|
208 | - 'FHEE__EE_Messages_Template_Pack__get_variation__base_path_or_url', |
|
209 | - ['EE_Register_Message_Type', 'register_variation_base_path_or_url'], |
|
210 | - 10, |
|
211 | - 8 |
|
212 | - ); |
|
213 | - add_filter( |
|
214 | - 'FHEE__EE_Messages_Template_Pack__get_variation__base_path', |
|
215 | - ['EE_Register_Message_Type', 'register_variation_base_path_or_url'], |
|
216 | - 10, |
|
217 | - 8 |
|
218 | - ); |
|
219 | - } |
|
220 | - return true; |
|
221 | - } |
|
196 | + // default template packs and variations related |
|
197 | + add_filter( |
|
198 | + 'FHEE__EE_Messages_Template_Pack_Default__get_supports', |
|
199 | + ['EE_Register_Message_Type', 'register_default_template_pack_supports'] |
|
200 | + ); |
|
201 | + add_filter( |
|
202 | + 'FHEE__EE_Template_Pack___get_specific_template__filtered_base_path', |
|
203 | + ['EE_Register_Message_Type', 'register_base_template_path'], |
|
204 | + 10, |
|
205 | + 6 |
|
206 | + ); |
|
207 | + add_filter( |
|
208 | + 'FHEE__EE_Messages_Template_Pack__get_variation__base_path_or_url', |
|
209 | + ['EE_Register_Message_Type', 'register_variation_base_path_or_url'], |
|
210 | + 10, |
|
211 | + 8 |
|
212 | + ); |
|
213 | + add_filter( |
|
214 | + 'FHEE__EE_Messages_Template_Pack__get_variation__base_path', |
|
215 | + ['EE_Register_Message_Type', 'register_variation_base_path_or_url'], |
|
216 | + 10, |
|
217 | + 8 |
|
218 | + ); |
|
219 | + } |
|
220 | + return true; |
|
221 | + } |
|
222 | 222 | |
223 | 223 | |
224 | - /** |
|
225 | - * This just ensures that when an addon registers a message type that on initial activation/reactivation the |
|
226 | - * defaults the addon sets are taken care of. |
|
227 | - * |
|
228 | - * @throws EE_Error |
|
229 | - * @throws ReflectionException |
|
230 | - */ |
|
231 | - public static function set_defaults() |
|
232 | - { |
|
233 | - /** @type EE_Message_Resource_Manager $message_resource_manager */ |
|
234 | - $message_resource_manager = EE_Registry::instance()->load_lib('Message_Resource_Manager'); |
|
224 | + /** |
|
225 | + * This just ensures that when an addon registers a message type that on initial activation/reactivation the |
|
226 | + * defaults the addon sets are taken care of. |
|
227 | + * |
|
228 | + * @throws EE_Error |
|
229 | + * @throws ReflectionException |
|
230 | + */ |
|
231 | + public static function set_defaults() |
|
232 | + { |
|
233 | + /** @type EE_Message_Resource_Manager $message_resource_manager */ |
|
234 | + $message_resource_manager = EE_Registry::instance()->load_lib('Message_Resource_Manager'); |
|
235 | 235 | |
236 | - // for any message types with force activation, let's ensure they are activated |
|
237 | - foreach (self::$_ee_message_type_registry as $addon_name => $settings) { |
|
238 | - if ($settings['force_activation']) { |
|
239 | - foreach ($settings['messengers_to_activate_with'] as $messenger) { |
|
240 | - // DO not force activation if this message type has already been activated in the system |
|
241 | - if ( |
|
242 | - ! $message_resource_manager->has_message_type_been_activated_for_messenger( |
|
243 | - $addon_name, |
|
244 | - $messenger |
|
245 | - ) |
|
246 | - ) { |
|
247 | - $message_resource_manager->ensure_message_type_is_active($addon_name, $messenger); |
|
248 | - } |
|
249 | - } |
|
250 | - } |
|
251 | - } |
|
252 | - } |
|
236 | + // for any message types with force activation, let's ensure they are activated |
|
237 | + foreach (self::$_ee_message_type_registry as $addon_name => $settings) { |
|
238 | + if ($settings['force_activation']) { |
|
239 | + foreach ($settings['messengers_to_activate_with'] as $messenger) { |
|
240 | + // DO not force activation if this message type has already been activated in the system |
|
241 | + if ( |
|
242 | + ! $message_resource_manager->has_message_type_been_activated_for_messenger( |
|
243 | + $addon_name, |
|
244 | + $messenger |
|
245 | + ) |
|
246 | + ) { |
|
247 | + $message_resource_manager->ensure_message_type_is_active($addon_name, $messenger); |
|
248 | + } |
|
249 | + } |
|
250 | + } |
|
251 | + } |
|
252 | + } |
|
253 | 253 | |
254 | 254 | |
255 | - /** |
|
256 | - * This deregisters a message type that was previously registered with a specific message_type_name. |
|
257 | - * |
|
258 | - * @param string $addon_name the name for the message type that was previously registered |
|
259 | - * @return void |
|
260 | - * @throws EE_Error |
|
261 | - * @throws ReflectionException |
|
262 | - * @since 4.3.0 |
|
263 | - */ |
|
264 | - public static function deregister(string $addon_name = '') |
|
265 | - { |
|
266 | - if (! empty(self::$_ee_message_type_registry[ $addon_name ])) { |
|
267 | - // let's make sure that we remove any place this message type was made active |
|
268 | - /** @var EE_Message_Resource_Manager $Message_Resource_Manager */ |
|
269 | - $Message_Resource_Manager = EE_Registry::instance()->load_lib('Message_Resource_Manager'); |
|
270 | - // ensures that if this message type is registered again that it retains its previous active state vs |
|
271 | - // remaining inactive. |
|
272 | - $Message_Resource_Manager->remove_message_type_has_been_activated_from_all_messengers( |
|
273 | - $addon_name, |
|
274 | - true |
|
275 | - ); |
|
276 | - $Message_Resource_Manager->deactivate_message_type($addon_name, false); |
|
277 | - } |
|
278 | - unset(self::$_ee_message_type_registry[ $addon_name ]); |
|
279 | - } |
|
255 | + /** |
|
256 | + * This deregisters a message type that was previously registered with a specific message_type_name. |
|
257 | + * |
|
258 | + * @param string $addon_name the name for the message type that was previously registered |
|
259 | + * @return void |
|
260 | + * @throws EE_Error |
|
261 | + * @throws ReflectionException |
|
262 | + * @since 4.3.0 |
|
263 | + */ |
|
264 | + public static function deregister(string $addon_name = '') |
|
265 | + { |
|
266 | + if (! empty(self::$_ee_message_type_registry[ $addon_name ])) { |
|
267 | + // let's make sure that we remove any place this message type was made active |
|
268 | + /** @var EE_Message_Resource_Manager $Message_Resource_Manager */ |
|
269 | + $Message_Resource_Manager = EE_Registry::instance()->load_lib('Message_Resource_Manager'); |
|
270 | + // ensures that if this message type is registered again that it retains its previous active state vs |
|
271 | + // remaining inactive. |
|
272 | + $Message_Resource_Manager->remove_message_type_has_been_activated_from_all_messengers( |
|
273 | + $addon_name, |
|
274 | + true |
|
275 | + ); |
|
276 | + $Message_Resource_Manager->deactivate_message_type($addon_name, false); |
|
277 | + } |
|
278 | + unset(self::$_ee_message_type_registry[ $addon_name ]); |
|
279 | + } |
|
280 | 280 | |
281 | 281 | |
282 | - /** |
|
283 | - * callback for FHEE__EE_messages__get_installed__messagetype_files filter. |
|
284 | - * |
|
285 | - * @param array $messagetype_files The current array of message type file names |
|
286 | - * @return array Array of message type file names |
|
287 | - * @since 4.3.0 |
|
288 | - */ |
|
289 | - public static function register_messagetype_files(array $messagetype_files): array |
|
290 | - { |
|
291 | - if (empty(self::$_ee_message_type_registry)) { |
|
292 | - return $messagetype_files; |
|
293 | - } |
|
294 | - foreach (self::$_ee_message_type_registry as $mt_reg) { |
|
295 | - if (empty($mt_reg['mtfilename'])) { |
|
296 | - continue; |
|
297 | - } |
|
298 | - $messagetype_files[] = $mt_reg['mtfilename']; |
|
299 | - } |
|
300 | - return $messagetype_files; |
|
301 | - } |
|
282 | + /** |
|
283 | + * callback for FHEE__EE_messages__get_installed__messagetype_files filter. |
|
284 | + * |
|
285 | + * @param array $messagetype_files The current array of message type file names |
|
286 | + * @return array Array of message type file names |
|
287 | + * @since 4.3.0 |
|
288 | + */ |
|
289 | + public static function register_messagetype_files(array $messagetype_files): array |
|
290 | + { |
|
291 | + if (empty(self::$_ee_message_type_registry)) { |
|
292 | + return $messagetype_files; |
|
293 | + } |
|
294 | + foreach (self::$_ee_message_type_registry as $mt_reg) { |
|
295 | + if (empty($mt_reg['mtfilename'])) { |
|
296 | + continue; |
|
297 | + } |
|
298 | + $messagetype_files[] = $mt_reg['mtfilename']; |
|
299 | + } |
|
300 | + return $messagetype_files; |
|
301 | + } |
|
302 | 302 | |
303 | 303 | |
304 | - /** |
|
305 | - * callback for FHEE__EED_Messages___set_messages_paths___MSG_PATHS filter. |
|
306 | - * |
|
307 | - * @param array $paths array of paths to be checked by EE_messages autoloader. |
|
308 | - * @return array |
|
309 | - * @since 4.3.0 |
|
310 | - */ |
|
311 | - public static function register_msgs_autoload_paths(array $paths): array |
|
312 | - { |
|
313 | - $autoload_paths = []; |
|
314 | - if (! empty(self::$_ee_message_type_registry)) { |
|
315 | - foreach (self::$_ee_message_type_registry as $mt_reg) { |
|
316 | - if (empty($mt_reg['autoloadpaths'])) { |
|
317 | - continue; |
|
318 | - } |
|
319 | - $autoload_paths[] = $mt_reg['autoloadpaths']; |
|
320 | - } |
|
321 | - } |
|
322 | - return array_merge($paths, ...$autoload_paths); |
|
323 | - } |
|
304 | + /** |
|
305 | + * callback for FHEE__EED_Messages___set_messages_paths___MSG_PATHS filter. |
|
306 | + * |
|
307 | + * @param array $paths array of paths to be checked by EE_messages autoloader. |
|
308 | + * @return array |
|
309 | + * @since 4.3.0 |
|
310 | + */ |
|
311 | + public static function register_msgs_autoload_paths(array $paths): array |
|
312 | + { |
|
313 | + $autoload_paths = []; |
|
314 | + if (! empty(self::$_ee_message_type_registry)) { |
|
315 | + foreach (self::$_ee_message_type_registry as $mt_reg) { |
|
316 | + if (empty($mt_reg['autoloadpaths'])) { |
|
317 | + continue; |
|
318 | + } |
|
319 | + $autoload_paths[] = $mt_reg['autoloadpaths']; |
|
320 | + } |
|
321 | + } |
|
322 | + return array_merge($paths, ...$autoload_paths); |
|
323 | + } |
|
324 | 324 | |
325 | 325 | |
326 | - /** |
|
327 | - * callback for FHEE__EE_messenger__get_default_message_types__default_types filter. |
|
328 | - * |
|
329 | - * @param array $default_types array of message types activated with messenger ( |
|
330 | - * corresponds to the $name property of message type) |
|
331 | - * @param EE_messenger $messenger The EE_messenger the filter is called from. |
|
332 | - * @return array |
|
333 | - * @since 4.3.0 |
|
334 | - */ |
|
335 | - public static function register_messengers_to_activate_mt_with(array $default_types, EE_messenger $messenger): array |
|
336 | - { |
|
337 | - if (empty(self::$_ee_message_type_registry)) { |
|
338 | - return $default_types; |
|
339 | - } |
|
340 | - foreach (self::$_ee_message_type_registry as $addon_name => $mt_reg) { |
|
341 | - if (empty($mt_reg['messengers_to_activate_with']) || empty($mt_reg['mtfilename'])) { |
|
342 | - continue; |
|
343 | - } |
|
344 | - // loop through each of the messengers and if it matches the loaded class |
|
345 | - // then we add this message type to the |
|
346 | - foreach ($mt_reg['messengers_to_activate_with'] as $msgr) { |
|
347 | - if ($messenger->name == $msgr) { |
|
348 | - $default_types[] = $addon_name; |
|
349 | - } |
|
350 | - } |
|
351 | - } |
|
326 | + /** |
|
327 | + * callback for FHEE__EE_messenger__get_default_message_types__default_types filter. |
|
328 | + * |
|
329 | + * @param array $default_types array of message types activated with messenger ( |
|
330 | + * corresponds to the $name property of message type) |
|
331 | + * @param EE_messenger $messenger The EE_messenger the filter is called from. |
|
332 | + * @return array |
|
333 | + * @since 4.3.0 |
|
334 | + */ |
|
335 | + public static function register_messengers_to_activate_mt_with(array $default_types, EE_messenger $messenger): array |
|
336 | + { |
|
337 | + if (empty(self::$_ee_message_type_registry)) { |
|
338 | + return $default_types; |
|
339 | + } |
|
340 | + foreach (self::$_ee_message_type_registry as $addon_name => $mt_reg) { |
|
341 | + if (empty($mt_reg['messengers_to_activate_with']) || empty($mt_reg['mtfilename'])) { |
|
342 | + continue; |
|
343 | + } |
|
344 | + // loop through each of the messengers and if it matches the loaded class |
|
345 | + // then we add this message type to the |
|
346 | + foreach ($mt_reg['messengers_to_activate_with'] as $msgr) { |
|
347 | + if ($messenger->name == $msgr) { |
|
348 | + $default_types[] = $addon_name; |
|
349 | + } |
|
350 | + } |
|
351 | + } |
|
352 | 352 | |
353 | - return $default_types; |
|
354 | - } |
|
353 | + return $default_types; |
|
354 | + } |
|
355 | 355 | |
356 | 356 | |
357 | - /** |
|
358 | - * callback for FHEE__EE_messenger__get_valid_message_types__default_types filter. |
|
359 | - * |
|
360 | - * @param array $valid_types array of message types valid with messenger ( |
|
361 | - * corresponds to the $name property of message type) |
|
362 | - * @param EE_messenger $messenger The EE_messenger the filter is called from. |
|
363 | - * @return array |
|
364 | - * @since 4.3.0 |
|
365 | - */ |
|
366 | - public static function register_messengers_to_validate_mt_with(array $valid_types, EE_messenger $messenger): array |
|
367 | - { |
|
368 | - if (empty(self::$_ee_message_type_registry)) { |
|
369 | - return $valid_types; |
|
370 | - } |
|
371 | - foreach (self::$_ee_message_type_registry as $addon_name => $mt_reg) { |
|
372 | - if (empty($mt_reg['messengers_to_validate_with']) || empty($mt_reg['mtfilename'])) { |
|
373 | - continue; |
|
374 | - } |
|
375 | - // loop through each of the messengers and if it matches the loaded class |
|
376 | - // then we add this message type to the |
|
377 | - foreach ($mt_reg['messengers_to_validate_with'] as $msgr) { |
|
378 | - if ($messenger->name == $msgr) { |
|
379 | - $valid_types[] = $addon_name; |
|
380 | - } |
|
381 | - } |
|
382 | - } |
|
357 | + /** |
|
358 | + * callback for FHEE__EE_messenger__get_valid_message_types__default_types filter. |
|
359 | + * |
|
360 | + * @param array $valid_types array of message types valid with messenger ( |
|
361 | + * corresponds to the $name property of message type) |
|
362 | + * @param EE_messenger $messenger The EE_messenger the filter is called from. |
|
363 | + * @return array |
|
364 | + * @since 4.3.0 |
|
365 | + */ |
|
366 | + public static function register_messengers_to_validate_mt_with(array $valid_types, EE_messenger $messenger): array |
|
367 | + { |
|
368 | + if (empty(self::$_ee_message_type_registry)) { |
|
369 | + return $valid_types; |
|
370 | + } |
|
371 | + foreach (self::$_ee_message_type_registry as $addon_name => $mt_reg) { |
|
372 | + if (empty($mt_reg['messengers_to_validate_with']) || empty($mt_reg['mtfilename'])) { |
|
373 | + continue; |
|
374 | + } |
|
375 | + // loop through each of the messengers and if it matches the loaded class |
|
376 | + // then we add this message type to the |
|
377 | + foreach ($mt_reg['messengers_to_validate_with'] as $msgr) { |
|
378 | + if ($messenger->name == $msgr) { |
|
379 | + $valid_types[] = $addon_name; |
|
380 | + } |
|
381 | + } |
|
382 | + } |
|
383 | 383 | |
384 | - return $valid_types; |
|
385 | - } |
|
384 | + return $valid_types; |
|
385 | + } |
|
386 | 386 | |
387 | 387 | |
388 | - /** |
|
389 | - * Callback for `FHEE__EE_Messages_Template_Pack_Default__get_supports` filter to register this message type as |
|
390 | - * supporting the default template pack |
|
391 | - * |
|
392 | - * @param array $supports |
|
393 | - * |
|
394 | - * @return array |
|
395 | - */ |
|
396 | - public static function register_default_template_pack_supports(array $supports): array |
|
397 | - { |
|
398 | - foreach (self::$_ee_message_type_registry as $addon_name => $mt_reg) { |
|
399 | - if (empty($mt_reg['messengers_supporting_default_template_pack_with'])) { |
|
400 | - continue; |
|
401 | - } |
|
402 | - foreach ($mt_reg['messengers_supporting_default_template_pack_with'] as $messenger_slug) { |
|
403 | - $supports[ $messenger_slug ][] = $addon_name; |
|
404 | - } |
|
405 | - } |
|
406 | - return $supports; |
|
407 | - } |
|
388 | + /** |
|
389 | + * Callback for `FHEE__EE_Messages_Template_Pack_Default__get_supports` filter to register this message type as |
|
390 | + * supporting the default template pack |
|
391 | + * |
|
392 | + * @param array $supports |
|
393 | + * |
|
394 | + * @return array |
|
395 | + */ |
|
396 | + public static function register_default_template_pack_supports(array $supports): array |
|
397 | + { |
|
398 | + foreach (self::$_ee_message_type_registry as $addon_name => $mt_reg) { |
|
399 | + if (empty($mt_reg['messengers_supporting_default_template_pack_with'])) { |
|
400 | + continue; |
|
401 | + } |
|
402 | + foreach ($mt_reg['messengers_supporting_default_template_pack_with'] as $messenger_slug) { |
|
403 | + $supports[ $messenger_slug ][] = $addon_name; |
|
404 | + } |
|
405 | + } |
|
406 | + return $supports; |
|
407 | + } |
|
408 | 408 | |
409 | 409 | |
410 | - /** |
|
411 | - * Callback for FHEE__EE_Template_Pack___get_specific_template__filtered_base_path |
|
412 | - * |
|
413 | - * @param string $base_path The original base path for message templates |
|
414 | - * @param EE_messenger $messenger |
|
415 | - * @param EE_message_type $message_type |
|
416 | - * @param string $field The field requesting a template |
|
417 | - * @param string $context The context requesting a template |
|
418 | - * @param EE_Messages_Template_Pack $template_pack |
|
419 | - * |
|
420 | - * @return string |
|
421 | - */ |
|
422 | - public static function register_base_template_path( |
|
423 | - string $base_path, |
|
424 | - EE_messenger $messenger, |
|
425 | - EE_message_type $message_type, |
|
426 | - string $field, |
|
427 | - string $context, |
|
428 | - EE_Messages_Template_Pack $template_pack |
|
429 | - ): string { |
|
430 | - if ( |
|
431 | - ! $template_pack instanceof EE_Messages_Template_Pack_Default |
|
432 | - || ! $message_type instanceof EE_message_type |
|
433 | - ) { |
|
434 | - return $base_path; |
|
435 | - } |
|
436 | - foreach (self::$_ee_message_type_registry as $addon_name => $mt_reg) { |
|
437 | - if ($message_type->name === $addon_name && ! empty($mt_reg['base_path_for_default_templates'])) { |
|
438 | - return $mt_reg['base_path_for_default_templates']; |
|
439 | - } |
|
440 | - } |
|
441 | - return $base_path; |
|
442 | - } |
|
410 | + /** |
|
411 | + * Callback for FHEE__EE_Template_Pack___get_specific_template__filtered_base_path |
|
412 | + * |
|
413 | + * @param string $base_path The original base path for message templates |
|
414 | + * @param EE_messenger $messenger |
|
415 | + * @param EE_message_type $message_type |
|
416 | + * @param string $field The field requesting a template |
|
417 | + * @param string $context The context requesting a template |
|
418 | + * @param EE_Messages_Template_Pack $template_pack |
|
419 | + * |
|
420 | + * @return string |
|
421 | + */ |
|
422 | + public static function register_base_template_path( |
|
423 | + string $base_path, |
|
424 | + EE_messenger $messenger, |
|
425 | + EE_message_type $message_type, |
|
426 | + string $field, |
|
427 | + string $context, |
|
428 | + EE_Messages_Template_Pack $template_pack |
|
429 | + ): string { |
|
430 | + if ( |
|
431 | + ! $template_pack instanceof EE_Messages_Template_Pack_Default |
|
432 | + || ! $message_type instanceof EE_message_type |
|
433 | + ) { |
|
434 | + return $base_path; |
|
435 | + } |
|
436 | + foreach (self::$_ee_message_type_registry as $addon_name => $mt_reg) { |
|
437 | + if ($message_type->name === $addon_name && ! empty($mt_reg['base_path_for_default_templates'])) { |
|
438 | + return $mt_reg['base_path_for_default_templates']; |
|
439 | + } |
|
440 | + } |
|
441 | + return $base_path; |
|
442 | + } |
|
443 | 443 | |
444 | 444 | |
445 | - /** |
|
446 | - * Callback for FHEE__EE_Messages_Template_Pack__get_variation__base_path and |
|
447 | - * FHEE__EE_Messages_Template_Pack__get_variation__base_path_or_url hooks |
|
448 | - * |
|
449 | - * @param string $base_path_or_url The original incoming base url or path |
|
450 | - * @param string $messenger_slug The slug of the messenger the template is being generated |
|
451 | - * for. |
|
452 | - * @param string $message_type_slug The slug of the message type the template is being generated |
|
453 | - * for. |
|
454 | - * @param string $type The "type" of css being requested. |
|
455 | - * @param string $variation The variation being requested. |
|
456 | - * @param bool $url whether a url or path is being requested. |
|
457 | - * @param string $file_extension What file extension is expected for the variation file. |
|
458 | - * @param EE_Messages_Template_Pack $template_pack |
|
459 | - * |
|
460 | - * @return string |
|
461 | - */ |
|
462 | - public static function register_variation_base_path_or_url( |
|
463 | - string $base_path_or_url, |
|
464 | - string $messenger_slug, |
|
465 | - string $message_type_slug, |
|
466 | - string $type, |
|
467 | - string $variation, |
|
468 | - bool $url, |
|
469 | - string $file_extension, |
|
470 | - EE_Messages_Template_Pack $template_pack |
|
471 | - ): string { |
|
472 | - if (! $template_pack instanceof EE_Messages_Template_Pack_Default) { |
|
473 | - return $base_path_or_url; |
|
474 | - } |
|
475 | - foreach (self::$_ee_message_type_registry as $addon_name => $mt_reg) { |
|
476 | - if ($addon_name === $message_type_slug) { |
|
477 | - if ($url && ! empty($mt_reg['base_url_for_default_variation'])) { |
|
478 | - return $mt_reg['base_url_for_default_variation']; |
|
479 | - } elseif (! $url && ! empty($mt_reg['base_path_for_default_variation'])) { |
|
480 | - return $mt_reg['base_path_for_default_variation']; |
|
481 | - } |
|
482 | - } |
|
483 | - } |
|
484 | - return $base_path_or_url; |
|
485 | - } |
|
445 | + /** |
|
446 | + * Callback for FHEE__EE_Messages_Template_Pack__get_variation__base_path and |
|
447 | + * FHEE__EE_Messages_Template_Pack__get_variation__base_path_or_url hooks |
|
448 | + * |
|
449 | + * @param string $base_path_or_url The original incoming base url or path |
|
450 | + * @param string $messenger_slug The slug of the messenger the template is being generated |
|
451 | + * for. |
|
452 | + * @param string $message_type_slug The slug of the message type the template is being generated |
|
453 | + * for. |
|
454 | + * @param string $type The "type" of css being requested. |
|
455 | + * @param string $variation The variation being requested. |
|
456 | + * @param bool $url whether a url or path is being requested. |
|
457 | + * @param string $file_extension What file extension is expected for the variation file. |
|
458 | + * @param EE_Messages_Template_Pack $template_pack |
|
459 | + * |
|
460 | + * @return string |
|
461 | + */ |
|
462 | + public static function register_variation_base_path_or_url( |
|
463 | + string $base_path_or_url, |
|
464 | + string $messenger_slug, |
|
465 | + string $message_type_slug, |
|
466 | + string $type, |
|
467 | + string $variation, |
|
468 | + bool $url, |
|
469 | + string $file_extension, |
|
470 | + EE_Messages_Template_Pack $template_pack |
|
471 | + ): string { |
|
472 | + if (! $template_pack instanceof EE_Messages_Template_Pack_Default) { |
|
473 | + return $base_path_or_url; |
|
474 | + } |
|
475 | + foreach (self::$_ee_message_type_registry as $addon_name => $mt_reg) { |
|
476 | + if ($addon_name === $message_type_slug) { |
|
477 | + if ($url && ! empty($mt_reg['base_url_for_default_variation'])) { |
|
478 | + return $mt_reg['base_url_for_default_variation']; |
|
479 | + } elseif (! $url && ! empty($mt_reg['base_path_for_default_variation'])) { |
|
480 | + return $mt_reg['base_path_for_default_variation']; |
|
481 | + } |
|
482 | + } |
|
483 | + } |
|
484 | + return $base_path_or_url; |
|
485 | + } |
|
486 | 486 | } |
@@ -60,7 +60,7 @@ discard block |
||
60 | 60 | } |
61 | 61 | |
62 | 62 | // make sure we don't register twice |
63 | - if (isset(self::$_ee_message_type_registry[ $addon_name ])) { |
|
63 | + if (isset(self::$_ee_message_type_registry[$addon_name])) { |
|
64 | 64 | return true; |
65 | 65 | } |
66 | 66 | |
@@ -82,7 +82,7 @@ discard block |
||
82 | 82 | ); |
83 | 83 | } |
84 | 84 | // setup $__ee_message_type_registry array from incoming values. |
85 | - self::$_ee_message_type_registry[ $addon_name ] = [ |
|
85 | + self::$_ee_message_type_registry[$addon_name] = [ |
|
86 | 86 | /** |
87 | 87 | * The file name for the message type being registered. |
88 | 88 | * Required. |
@@ -263,7 +263,7 @@ discard block |
||
263 | 263 | */ |
264 | 264 | public static function deregister(string $addon_name = '') |
265 | 265 | { |
266 | - if (! empty(self::$_ee_message_type_registry[ $addon_name ])) { |
|
266 | + if ( ! empty(self::$_ee_message_type_registry[$addon_name])) { |
|
267 | 267 | // let's make sure that we remove any place this message type was made active |
268 | 268 | /** @var EE_Message_Resource_Manager $Message_Resource_Manager */ |
269 | 269 | $Message_Resource_Manager = EE_Registry::instance()->load_lib('Message_Resource_Manager'); |
@@ -275,7 +275,7 @@ discard block |
||
275 | 275 | ); |
276 | 276 | $Message_Resource_Manager->deactivate_message_type($addon_name, false); |
277 | 277 | } |
278 | - unset(self::$_ee_message_type_registry[ $addon_name ]); |
|
278 | + unset(self::$_ee_message_type_registry[$addon_name]); |
|
279 | 279 | } |
280 | 280 | |
281 | 281 | |
@@ -311,7 +311,7 @@ discard block |
||
311 | 311 | public static function register_msgs_autoload_paths(array $paths): array |
312 | 312 | { |
313 | 313 | $autoload_paths = []; |
314 | - if (! empty(self::$_ee_message_type_registry)) { |
|
314 | + if ( ! empty(self::$_ee_message_type_registry)) { |
|
315 | 315 | foreach (self::$_ee_message_type_registry as $mt_reg) { |
316 | 316 | if (empty($mt_reg['autoloadpaths'])) { |
317 | 317 | continue; |
@@ -400,7 +400,7 @@ discard block |
||
400 | 400 | continue; |
401 | 401 | } |
402 | 402 | foreach ($mt_reg['messengers_supporting_default_template_pack_with'] as $messenger_slug) { |
403 | - $supports[ $messenger_slug ][] = $addon_name; |
|
403 | + $supports[$messenger_slug][] = $addon_name; |
|
404 | 404 | } |
405 | 405 | } |
406 | 406 | return $supports; |
@@ -469,14 +469,14 @@ discard block |
||
469 | 469 | string $file_extension, |
470 | 470 | EE_Messages_Template_Pack $template_pack |
471 | 471 | ): string { |
472 | - if (! $template_pack instanceof EE_Messages_Template_Pack_Default) { |
|
472 | + if ( ! $template_pack instanceof EE_Messages_Template_Pack_Default) { |
|
473 | 473 | return $base_path_or_url; |
474 | 474 | } |
475 | 475 | foreach (self::$_ee_message_type_registry as $addon_name => $mt_reg) { |
476 | 476 | if ($addon_name === $message_type_slug) { |
477 | 477 | if ($url && ! empty($mt_reg['base_url_for_default_variation'])) { |
478 | 478 | return $mt_reg['base_url_for_default_variation']; |
479 | - } elseif (! $url && ! empty($mt_reg['base_path_for_default_variation'])) { |
|
479 | + } elseif ( ! $url && ! empty($mt_reg['base_path_for_default_variation'])) { |
|
480 | 480 | return $mt_reg['base_path_for_default_variation']; |
481 | 481 | } |
482 | 482 | } |
@@ -11,136 +11,136 @@ |
||
11 | 11 | */ |
12 | 12 | class EE_Register_Model_Extensions implements EEI_Plugin_API |
13 | 13 | { |
14 | - protected static $_registry; |
|
14 | + protected static $_registry; |
|
15 | 15 | |
16 | - protected static $_extensions = []; |
|
16 | + protected static $_extensions = []; |
|
17 | 17 | |
18 | 18 | |
19 | - /** |
|
20 | - * register method for setting up model extensions |
|
21 | - * |
|
22 | - * @param string $addon_name unique id for the extensions being setup |
|
23 | - * @param array $setup_args { |
|
24 | - * @return bool |
|
25 | - * @throws EE_Error |
|
26 | - * @type array $model_extension_paths array of folders containing DB model extensions, where each file follows |
|
27 | - * the models naming convention, which is: |
|
28 | - * EEME_{your_plugin_slug}_model_name_extended}.model_ext.php. |
|
29 | - * Where {your_plugin_slug} is really anything you want (but something having |
|
30 | - * to do with your addon, like 'Calendar' or '3D_View') and |
|
31 | - * model_name_extended} is the model extended. |
|
32 | - * The class contained in teh file should extend |
|
33 | - * EEME_Base_{model_name_extended}.model_ext.php. |
|
34 | - * Where {your_plugin_slug} is really anything you want (but something |
|
35 | - * having to do with your addon, like 'Calendar' or '3D_View') and |
|
36 | - * {model_name_extended} is the model extended. The class contained in teh |
|
37 | - * file should extend EEME_Base |
|
38 | - * @type array $class_extension_paths array of folders containing DB class extensions, where each file follows |
|
39 | - * the model class extension naming convention, which is: |
|
40 | - * EEE_{your_plugin_slug}_model_name_extended}.class_ext.php. |
|
41 | - * Where {your_plugin_slug} is something like 'Calendar','MailChimp',etc, |
|
42 | - * and model_name_extended} is the name of the model extended, eg |
|
43 | - * 'Attendee','Event',etc. |
|
44 | - * The class contained in the file should extend EEE_Base_Class |
|
45 | - * ._{model_name_extended}.class_ext.php. |
|
46 | - * Where {your_plugin_slug} is something like 'Calendar','MailChimp',etc, |
|
47 | - * and {model_name_extended} is the name of the model extended, eg |
|
48 | - * 'Attendee','Event',etc. The class contained in the file should extend |
|
49 | - * EEE_Base_Class. |
|
50 | - * } |
|
51 | - * |
|
52 | - */ |
|
53 | - public static function register(string $addon_name = '', array $setup_args = []): bool |
|
54 | - { |
|
55 | - // required fields MUST be present, so let's make sure they are. |
|
56 | - if ( |
|
57 | - empty($addon_name) |
|
58 | - || ! is_array($setup_args) |
|
59 | - || ( |
|
60 | - empty($setup_args['model_extension_paths']) |
|
61 | - && empty($setup_args['class_extension_paths']) |
|
62 | - ) |
|
63 | - ) { |
|
64 | - throw new EE_Error( |
|
65 | - __( |
|
66 | - 'In order to register Model extensions with EE_Register_Model_Extensions::register(), you must include a "model_id" (a unique identifier for this set of models), and an array containing the following keys: "model_extension_paths" (an array of full server paths to folders that contain model extensions), and "class_extension_paths" (an array of full server paths to folders that contain class extensions)', |
|
67 | - 'event_espresso' |
|
68 | - ) |
|
69 | - ); |
|
70 | - } |
|
19 | + /** |
|
20 | + * register method for setting up model extensions |
|
21 | + * |
|
22 | + * @param string $addon_name unique id for the extensions being setup |
|
23 | + * @param array $setup_args { |
|
24 | + * @return bool |
|
25 | + * @throws EE_Error |
|
26 | + * @type array $model_extension_paths array of folders containing DB model extensions, where each file follows |
|
27 | + * the models naming convention, which is: |
|
28 | + * EEME_{your_plugin_slug}_model_name_extended}.model_ext.php. |
|
29 | + * Where {your_plugin_slug} is really anything you want (but something having |
|
30 | + * to do with your addon, like 'Calendar' or '3D_View') and |
|
31 | + * model_name_extended} is the model extended. |
|
32 | + * The class contained in teh file should extend |
|
33 | + * EEME_Base_{model_name_extended}.model_ext.php. |
|
34 | + * Where {your_plugin_slug} is really anything you want (but something |
|
35 | + * having to do with your addon, like 'Calendar' or '3D_View') and |
|
36 | + * {model_name_extended} is the model extended. The class contained in teh |
|
37 | + * file should extend EEME_Base |
|
38 | + * @type array $class_extension_paths array of folders containing DB class extensions, where each file follows |
|
39 | + * the model class extension naming convention, which is: |
|
40 | + * EEE_{your_plugin_slug}_model_name_extended}.class_ext.php. |
|
41 | + * Where {your_plugin_slug} is something like 'Calendar','MailChimp',etc, |
|
42 | + * and model_name_extended} is the name of the model extended, eg |
|
43 | + * 'Attendee','Event',etc. |
|
44 | + * The class contained in the file should extend EEE_Base_Class |
|
45 | + * ._{model_name_extended}.class_ext.php. |
|
46 | + * Where {your_plugin_slug} is something like 'Calendar','MailChimp',etc, |
|
47 | + * and {model_name_extended} is the name of the model extended, eg |
|
48 | + * 'Attendee','Event',etc. The class contained in the file should extend |
|
49 | + * EEE_Base_Class. |
|
50 | + * } |
|
51 | + * |
|
52 | + */ |
|
53 | + public static function register(string $addon_name = '', array $setup_args = []): bool |
|
54 | + { |
|
55 | + // required fields MUST be present, so let's make sure they are. |
|
56 | + if ( |
|
57 | + empty($addon_name) |
|
58 | + || ! is_array($setup_args) |
|
59 | + || ( |
|
60 | + empty($setup_args['model_extension_paths']) |
|
61 | + && empty($setup_args['class_extension_paths']) |
|
62 | + ) |
|
63 | + ) { |
|
64 | + throw new EE_Error( |
|
65 | + __( |
|
66 | + 'In order to register Model extensions with EE_Register_Model_Extensions::register(), you must include a "model_id" (a unique identifier for this set of models), and an array containing the following keys: "model_extension_paths" (an array of full server paths to folders that contain model extensions), and "class_extension_paths" (an array of full server paths to folders that contain class extensions)', |
|
67 | + 'event_espresso' |
|
68 | + ) |
|
69 | + ); |
|
70 | + } |
|
71 | 71 | |
72 | - // make sure we don't register twice |
|
73 | - if (isset(self::$_registry[ $addon_name ])) { |
|
74 | - return true; |
|
75 | - } |
|
76 | - // check correct loading |
|
77 | - if (! did_action('AHEE__EE_System__load_espresso_addons') || did_action('AHEE__EE_Admin__loaded')) { |
|
78 | - EE_Error::doing_it_wrong( |
|
79 | - __METHOD__, |
|
80 | - sprintf( |
|
81 | - __( |
|
82 | - 'An attempt was made to register "%1$s" as a Model extension has failed because it was not registered at the correct time. Please use the "AHEE__EE_System__load_espresso_addons" hook to register models.%2$s Hook Status: %2$s "AHEE__EE_System__load_espresso_addons" : %3$s %2$s "AHEE__EE_Admin__loaded" : %4$s%2$s', |
|
83 | - 'event_espresso' |
|
84 | - ), |
|
85 | - $addon_name, |
|
86 | - '<br />', |
|
87 | - did_action('AHEE__EE_System__load_espresso_addons') ? 'action done' : 'action NOT done', |
|
88 | - did_action('AHEE__EE_Admin__loaded') ? 'action done' : 'action NOT done' |
|
89 | - ), |
|
90 | - '4.3' |
|
91 | - ); |
|
92 | - } |
|
72 | + // make sure we don't register twice |
|
73 | + if (isset(self::$_registry[ $addon_name ])) { |
|
74 | + return true; |
|
75 | + } |
|
76 | + // check correct loading |
|
77 | + if (! did_action('AHEE__EE_System__load_espresso_addons') || did_action('AHEE__EE_Admin__loaded')) { |
|
78 | + EE_Error::doing_it_wrong( |
|
79 | + __METHOD__, |
|
80 | + sprintf( |
|
81 | + __( |
|
82 | + 'An attempt was made to register "%1$s" as a Model extension has failed because it was not registered at the correct time. Please use the "AHEE__EE_System__load_espresso_addons" hook to register models.%2$s Hook Status: %2$s "AHEE__EE_System__load_espresso_addons" : %3$s %2$s "AHEE__EE_Admin__loaded" : %4$s%2$s', |
|
83 | + 'event_espresso' |
|
84 | + ), |
|
85 | + $addon_name, |
|
86 | + '<br />', |
|
87 | + did_action('AHEE__EE_System__load_espresso_addons') ? 'action done' : 'action NOT done', |
|
88 | + did_action('AHEE__EE_Admin__loaded') ? 'action done' : 'action NOT done' |
|
89 | + ), |
|
90 | + '4.3' |
|
91 | + ); |
|
92 | + } |
|
93 | 93 | |
94 | - self::$_registry[ $addon_name ] = $setup_args; |
|
95 | - self::$_extensions[ $addon_name ] = []; |
|
94 | + self::$_registry[ $addon_name ] = $setup_args; |
|
95 | + self::$_extensions[ $addon_name ] = []; |
|
96 | 96 | |
97 | - if (isset($setup_args['model_extension_paths'])) { |
|
98 | - require_once(EE_LIBRARIES . 'plugin_api/db/EEME_Base.lib.php'); |
|
99 | - $class_to_filepath_map = EEH_File::get_contents_of_folders($setup_args['model_extension_paths']); |
|
100 | - // remove all files that are not PHP |
|
101 | - foreach ($class_to_filepath_map as $class => $path) { |
|
102 | - if (substr($path, strlen($path) - 3) !== 'php') { |
|
103 | - unset($class_to_filepath_map[ $class ]); |
|
104 | - } |
|
105 | - } |
|
106 | - EEH_Autoloader::register_autoloader($class_to_filepath_map); |
|
107 | - foreach (array_keys($class_to_filepath_map) as $classname) { |
|
108 | - self::$_extensions[ $addon_name ]['models'][ $classname ] = new $classname(); |
|
109 | - } |
|
110 | - unset($setup_args['model_extension_paths']); |
|
111 | - } |
|
112 | - if (isset($setup_args['class_extension_paths'])) { |
|
113 | - require_once(EE_LIBRARIES . 'plugin_api/db/EEE_Base_Class.lib.php'); |
|
114 | - $class_to_filepath_map = EEH_File::get_contents_of_folders($setup_args['class_extension_paths']); |
|
115 | - EEH_Autoloader::register_autoloader($class_to_filepath_map); |
|
116 | - foreach (array_keys($class_to_filepath_map) as $classname) { |
|
117 | - self::$_extensions[ $addon_name ]['classes'][ $classname ] = new $classname(); |
|
118 | - } |
|
119 | - unset($setup_args['class_extension_paths']); |
|
120 | - } |
|
121 | - foreach ($setup_args as $unknown_key => $unknown_config) { |
|
122 | - throw new EE_Error( |
|
123 | - sprintf(__("The key '%s' is not a known key for registering a model", "event_espresso"), $unknown_key) |
|
124 | - ); |
|
125 | - } |
|
126 | - return true; |
|
127 | - } |
|
97 | + if (isset($setup_args['model_extension_paths'])) { |
|
98 | + require_once(EE_LIBRARIES . 'plugin_api/db/EEME_Base.lib.php'); |
|
99 | + $class_to_filepath_map = EEH_File::get_contents_of_folders($setup_args['model_extension_paths']); |
|
100 | + // remove all files that are not PHP |
|
101 | + foreach ($class_to_filepath_map as $class => $path) { |
|
102 | + if (substr($path, strlen($path) - 3) !== 'php') { |
|
103 | + unset($class_to_filepath_map[ $class ]); |
|
104 | + } |
|
105 | + } |
|
106 | + EEH_Autoloader::register_autoloader($class_to_filepath_map); |
|
107 | + foreach (array_keys($class_to_filepath_map) as $classname) { |
|
108 | + self::$_extensions[ $addon_name ]['models'][ $classname ] = new $classname(); |
|
109 | + } |
|
110 | + unset($setup_args['model_extension_paths']); |
|
111 | + } |
|
112 | + if (isset($setup_args['class_extension_paths'])) { |
|
113 | + require_once(EE_LIBRARIES . 'plugin_api/db/EEE_Base_Class.lib.php'); |
|
114 | + $class_to_filepath_map = EEH_File::get_contents_of_folders($setup_args['class_extension_paths']); |
|
115 | + EEH_Autoloader::register_autoloader($class_to_filepath_map); |
|
116 | + foreach (array_keys($class_to_filepath_map) as $classname) { |
|
117 | + self::$_extensions[ $addon_name ]['classes'][ $classname ] = new $classname(); |
|
118 | + } |
|
119 | + unset($setup_args['class_extension_paths']); |
|
120 | + } |
|
121 | + foreach ($setup_args as $unknown_key => $unknown_config) { |
|
122 | + throw new EE_Error( |
|
123 | + sprintf(__("The key '%s' is not a known key for registering a model", "event_espresso"), $unknown_key) |
|
124 | + ); |
|
125 | + } |
|
126 | + return true; |
|
127 | + } |
|
128 | 128 | |
129 | 129 | |
130 | - /** |
|
131 | - * deregister |
|
132 | - * |
|
133 | - * @param string $addon_name |
|
134 | - */ |
|
135 | - public static function deregister(string $addon_name = '') |
|
136 | - { |
|
137 | - if (isset(self::$_registry[ $addon_name ])) { |
|
138 | - unset(self::$_registry[ $addon_name ]); |
|
139 | - foreach (self::$_extensions[ $addon_name ] as $extension_of_type) { |
|
140 | - foreach ($extension_of_type as $extension) { |
|
141 | - $extension->deregister(); |
|
142 | - } |
|
143 | - } |
|
144 | - } |
|
145 | - } |
|
130 | + /** |
|
131 | + * deregister |
|
132 | + * |
|
133 | + * @param string $addon_name |
|
134 | + */ |
|
135 | + public static function deregister(string $addon_name = '') |
|
136 | + { |
|
137 | + if (isset(self::$_registry[ $addon_name ])) { |
|
138 | + unset(self::$_registry[ $addon_name ]); |
|
139 | + foreach (self::$_extensions[ $addon_name ] as $extension_of_type) { |
|
140 | + foreach ($extension_of_type as $extension) { |
|
141 | + $extension->deregister(); |
|
142 | + } |
|
143 | + } |
|
144 | + } |
|
145 | + } |
|
146 | 146 | } |
@@ -70,11 +70,11 @@ discard block |
||
70 | 70 | } |
71 | 71 | |
72 | 72 | // make sure we don't register twice |
73 | - if (isset(self::$_registry[ $addon_name ])) { |
|
73 | + if (isset(self::$_registry[$addon_name])) { |
|
74 | 74 | return true; |
75 | 75 | } |
76 | 76 | // check correct loading |
77 | - if (! did_action('AHEE__EE_System__load_espresso_addons') || did_action('AHEE__EE_Admin__loaded')) { |
|
77 | + if ( ! did_action('AHEE__EE_System__load_espresso_addons') || did_action('AHEE__EE_Admin__loaded')) { |
|
78 | 78 | EE_Error::doing_it_wrong( |
79 | 79 | __METHOD__, |
80 | 80 | sprintf( |
@@ -91,30 +91,30 @@ discard block |
||
91 | 91 | ); |
92 | 92 | } |
93 | 93 | |
94 | - self::$_registry[ $addon_name ] = $setup_args; |
|
95 | - self::$_extensions[ $addon_name ] = []; |
|
94 | + self::$_registry[$addon_name] = $setup_args; |
|
95 | + self::$_extensions[$addon_name] = []; |
|
96 | 96 | |
97 | 97 | if (isset($setup_args['model_extension_paths'])) { |
98 | - require_once(EE_LIBRARIES . 'plugin_api/db/EEME_Base.lib.php'); |
|
98 | + require_once(EE_LIBRARIES.'plugin_api/db/EEME_Base.lib.php'); |
|
99 | 99 | $class_to_filepath_map = EEH_File::get_contents_of_folders($setup_args['model_extension_paths']); |
100 | 100 | // remove all files that are not PHP |
101 | 101 | foreach ($class_to_filepath_map as $class => $path) { |
102 | 102 | if (substr($path, strlen($path) - 3) !== 'php') { |
103 | - unset($class_to_filepath_map[ $class ]); |
|
103 | + unset($class_to_filepath_map[$class]); |
|
104 | 104 | } |
105 | 105 | } |
106 | 106 | EEH_Autoloader::register_autoloader($class_to_filepath_map); |
107 | 107 | foreach (array_keys($class_to_filepath_map) as $classname) { |
108 | - self::$_extensions[ $addon_name ]['models'][ $classname ] = new $classname(); |
|
108 | + self::$_extensions[$addon_name]['models'][$classname] = new $classname(); |
|
109 | 109 | } |
110 | 110 | unset($setup_args['model_extension_paths']); |
111 | 111 | } |
112 | 112 | if (isset($setup_args['class_extension_paths'])) { |
113 | - require_once(EE_LIBRARIES . 'plugin_api/db/EEE_Base_Class.lib.php'); |
|
113 | + require_once(EE_LIBRARIES.'plugin_api/db/EEE_Base_Class.lib.php'); |
|
114 | 114 | $class_to_filepath_map = EEH_File::get_contents_of_folders($setup_args['class_extension_paths']); |
115 | 115 | EEH_Autoloader::register_autoloader($class_to_filepath_map); |
116 | 116 | foreach (array_keys($class_to_filepath_map) as $classname) { |
117 | - self::$_extensions[ $addon_name ]['classes'][ $classname ] = new $classname(); |
|
117 | + self::$_extensions[$addon_name]['classes'][$classname] = new $classname(); |
|
118 | 118 | } |
119 | 119 | unset($setup_args['class_extension_paths']); |
120 | 120 | } |
@@ -134,9 +134,9 @@ discard block |
||
134 | 134 | */ |
135 | 135 | public static function deregister(string $addon_name = '') |
136 | 136 | { |
137 | - if (isset(self::$_registry[ $addon_name ])) { |
|
138 | - unset(self::$_registry[ $addon_name ]); |
|
139 | - foreach (self::$_extensions[ $addon_name ] as $extension_of_type) { |
|
137 | + if (isset(self::$_registry[$addon_name])) { |
|
138 | + unset(self::$_registry[$addon_name]); |
|
139 | + foreach (self::$_extensions[$addon_name] as $extension_of_type) { |
|
140 | 140 | foreach ($extension_of_type as $extension) { |
141 | 141 | $extension->deregister(); |
142 | 142 | } |
@@ -25,87 +25,87 @@ |
||
25 | 25 | { |
26 | 26 | |
27 | 27 | |
28 | - /** |
|
29 | - * @param int $eventId |
|
30 | - * @return array |
|
31 | - * @throws EE_Error |
|
32 | - * @throws ReflectionException |
|
33 | - */ |
|
34 | - public function getData(int $eventId): array |
|
35 | - { |
|
36 | - /** @var EE_Event $event */ |
|
37 | - $event = EEM_Event::instance()->get_one_by_ID($eventId); |
|
38 | - $topLevelSectionId = $event->registrationFormUuid(); |
|
28 | + /** |
|
29 | + * @param int $eventId |
|
30 | + * @return array |
|
31 | + * @throws EE_Error |
|
32 | + * @throws ReflectionException |
|
33 | + */ |
|
34 | + public function getData(int $eventId): array |
|
35 | + { |
|
36 | + /** @var EE_Event $event */ |
|
37 | + $event = EEM_Event::instance()->get_one_by_ID($eventId); |
|
38 | + $topLevelSectionId = $event->registrationFormUuid(); |
|
39 | 39 | |
40 | - /** @var EE_Form_Section[] $form_sections */ |
|
41 | - $form_sections = EEM_Form_Section::instance()->get_all([ |
|
42 | - [ |
|
43 | - 'OR' => [ |
|
44 | - 'FSC_UUID' => $topLevelSectionId, // top level form |
|
45 | - 'FSC_belongsTo' => $topLevelSectionId, // child form sections |
|
46 | - 'FSC_status' => FormStatus::SHARED, // shared form sections |
|
47 | - ] |
|
48 | - ], |
|
49 | - 'order_by' => ['FSC_order' => 'ASC'], |
|
50 | - ]); |
|
40 | + /** @var EE_Form_Section[] $form_sections */ |
|
41 | + $form_sections = EEM_Form_Section::instance()->get_all([ |
|
42 | + [ |
|
43 | + 'OR' => [ |
|
44 | + 'FSC_UUID' => $topLevelSectionId, // top level form |
|
45 | + 'FSC_belongsTo' => $topLevelSectionId, // child form sections |
|
46 | + 'FSC_status' => FormStatus::SHARED, // shared form sections |
|
47 | + ] |
|
48 | + ], |
|
49 | + 'order_by' => ['FSC_order' => 'ASC'], |
|
50 | + ]); |
|
51 | 51 | |
52 | - $sections = []; |
|
53 | - foreach ($form_sections as $section) { |
|
54 | - if ($section instanceof EE_Form_Section) { |
|
55 | - $UUID = $section->UUID(); |
|
52 | + $sections = []; |
|
53 | + foreach ($form_sections as $section) { |
|
54 | + if ($section instanceof EE_Form_Section) { |
|
55 | + $UUID = $section->UUID(); |
|
56 | 56 | |
57 | - // Avoid duplicates, if any |
|
58 | - $sections[ $UUID ] = [ |
|
59 | - 'id' => $UUID, |
|
60 | - 'appliesTo' => GQLUtils::formatEnumKey($section->appliesTo()), |
|
61 | - 'attributes' => $section->attributes()->toJson(), |
|
62 | - 'belongsTo' => $section->belongsTo(), |
|
63 | - 'isActive' => $section->isActive(), |
|
64 | - 'isArchived' => $section->isArchived(), |
|
65 | - 'isDefault' => $section->isDefault(), |
|
66 | - 'isShared' => $section->isShared(), |
|
67 | - 'isTrashed' => $section->isTrashed(), |
|
68 | - 'label' => $section->label()->toJson(), |
|
69 | - 'order' => $section->order(), |
|
70 | - 'status' => GQLUtils::formatEnumKey($section->status()), |
|
71 | - ]; |
|
72 | - } |
|
73 | - } |
|
57 | + // Avoid duplicates, if any |
|
58 | + $sections[ $UUID ] = [ |
|
59 | + 'id' => $UUID, |
|
60 | + 'appliesTo' => GQLUtils::formatEnumKey($section->appliesTo()), |
|
61 | + 'attributes' => $section->attributes()->toJson(), |
|
62 | + 'belongsTo' => $section->belongsTo(), |
|
63 | + 'isActive' => $section->isActive(), |
|
64 | + 'isArchived' => $section->isArchived(), |
|
65 | + 'isDefault' => $section->isDefault(), |
|
66 | + 'isShared' => $section->isShared(), |
|
67 | + 'isTrashed' => $section->isTrashed(), |
|
68 | + 'label' => $section->label()->toJson(), |
|
69 | + 'order' => $section->order(), |
|
70 | + 'status' => GQLUtils::formatEnumKey($section->status()), |
|
71 | + ]; |
|
72 | + } |
|
73 | + } |
|
74 | 74 | |
75 | - /** @var EE_Form_Element[] $form_elements */ |
|
76 | - $form_elements = EEM_Form_Element::instance()->get_all([ |
|
77 | - [ |
|
78 | - 'FSC_UUID' => ['IN', array_keys($sections)] |
|
79 | - ] |
|
80 | - ]); |
|
75 | + /** @var EE_Form_Element[] $form_elements */ |
|
76 | + $form_elements = EEM_Form_Element::instance()->get_all([ |
|
77 | + [ |
|
78 | + 'FSC_UUID' => ['IN', array_keys($sections)] |
|
79 | + ] |
|
80 | + ]); |
|
81 | 81 | |
82 | - $elements = []; |
|
83 | - foreach ($form_elements as $element) { |
|
84 | - if ($element instanceof EE_Form_Element) { |
|
85 | - $UUID = $element->UUID(); |
|
82 | + $elements = []; |
|
83 | + foreach ($form_elements as $element) { |
|
84 | + if ($element instanceof EE_Form_Element) { |
|
85 | + $UUID = $element->UUID(); |
|
86 | 86 | |
87 | - // Avoid duplicates |
|
88 | - $elements[ $UUID ] = [ |
|
89 | - 'id' => $UUID, |
|
90 | - 'adminOnly' => $element->adminOnly(), |
|
91 | - 'attributes' => $element->attributes()->toJson(), |
|
92 | - 'belongsTo' => $element->belongsTo(), |
|
93 | - 'helpText' => $element->helpText()->toJson(), |
|
94 | - 'label' => $element->label()->toJson(), |
|
95 | - 'mapsTo' => $element->mapsTo(), |
|
96 | - 'options' => $element->options()->toJson(), |
|
97 | - 'order' => $element->order(), |
|
98 | - 'required' => $element->required()->toJson(), |
|
99 | - 'status' => GQLUtils::formatEnumKey($element->status()), |
|
100 | - 'type' => GQLUtils::formatEnumKey($element->type()), |
|
101 | - ]; |
|
102 | - } |
|
103 | - } |
|
87 | + // Avoid duplicates |
|
88 | + $elements[ $UUID ] = [ |
|
89 | + 'id' => $UUID, |
|
90 | + 'adminOnly' => $element->adminOnly(), |
|
91 | + 'attributes' => $element->attributes()->toJson(), |
|
92 | + 'belongsTo' => $element->belongsTo(), |
|
93 | + 'helpText' => $element->helpText()->toJson(), |
|
94 | + 'label' => $element->label()->toJson(), |
|
95 | + 'mapsTo' => $element->mapsTo(), |
|
96 | + 'options' => $element->options()->toJson(), |
|
97 | + 'order' => $element->order(), |
|
98 | + 'required' => $element->required()->toJson(), |
|
99 | + 'status' => GQLUtils::formatEnumKey($element->status()), |
|
100 | + 'type' => GQLUtils::formatEnumKey($element->type()), |
|
101 | + ]; |
|
102 | + } |
|
103 | + } |
|
104 | 104 | |
105 | - return [ |
|
106 | - 'elements' => array_values($elements), |
|
107 | - 'sections' => array_values($sections), |
|
108 | - 'topLevelSectionId' => $event->registrationFormUuid() |
|
109 | - ]; |
|
110 | - } |
|
105 | + return [ |
|
106 | + 'elements' => array_values($elements), |
|
107 | + 'sections' => array_values($sections), |
|
108 | + 'topLevelSectionId' => $event->registrationFormUuid() |
|
109 | + ]; |
|
110 | + } |
|
111 | 111 | } |
@@ -55,7 +55,7 @@ discard block |
||
55 | 55 | $UUID = $section->UUID(); |
56 | 56 | |
57 | 57 | // Avoid duplicates, if any |
58 | - $sections[ $UUID ] = [ |
|
58 | + $sections[$UUID] = [ |
|
59 | 59 | 'id' => $UUID, |
60 | 60 | 'appliesTo' => GQLUtils::formatEnumKey($section->appliesTo()), |
61 | 61 | 'attributes' => $section->attributes()->toJson(), |
@@ -85,7 +85,7 @@ discard block |
||
85 | 85 | $UUID = $element->UUID(); |
86 | 86 | |
87 | 87 | // Avoid duplicates |
88 | - $elements[ $UUID ] = [ |
|
88 | + $elements[$UUID] = [ |
|
89 | 89 | 'id' => $UUID, |
90 | 90 | 'adminOnly' => $element->adminOnly(), |
91 | 91 | 'attributes' => $element->attributes()->toJson(), |