@@ -12,57 +12,57 @@ |
||
12 | 12 | */ |
13 | 13 | class DataType |
14 | 14 | { |
15 | - const ARRAY = 'array'; |
|
15 | + const ARRAY = 'array'; |
|
16 | 16 | |
17 | - const BOOL = 'bool'; |
|
18 | - const BOOLEAN = 'bool'; |
|
17 | + const BOOL = 'bool'; |
|
18 | + const BOOLEAN = 'bool'; |
|
19 | 19 | |
20 | - const DOUBLE = 'float'; |
|
21 | - const FLOAT = 'float'; |
|
20 | + const DOUBLE = 'float'; |
|
21 | + const FLOAT = 'float'; |
|
22 | 22 | |
23 | - const FQCN = 'fqcn'; |
|
23 | + const FQCN = 'fqcn'; |
|
24 | 24 | |
25 | - const HTML = 'html'; |
|
25 | + const HTML = 'html'; |
|
26 | 26 | |
27 | - const INT = 'int'; |
|
28 | - const INTEGER = 'int'; |
|
27 | + const INT = 'int'; |
|
28 | + const INTEGER = 'int'; |
|
29 | 29 | |
30 | - const KEY = 'key'; |
|
30 | + const KEY = 'key'; |
|
31 | 31 | |
32 | - const OBJECT = 'object'; |
|
32 | + const OBJECT = 'object'; |
|
33 | 33 | |
34 | - const NULL = 'null'; |
|
34 | + const NULL = 'null'; |
|
35 | 35 | |
36 | - const TITLE = 'title'; |
|
36 | + const TITLE = 'title'; |
|
37 | 37 | |
38 | - const URL = 'url'; |
|
38 | + const URL = 'url'; |
|
39 | 39 | |
40 | - const STRING = 'string'; |
|
40 | + const STRING = 'string'; |
|
41 | 41 | |
42 | 42 | |
43 | - /** |
|
44 | - * @param mixed $param |
|
45 | - * @param string $type |
|
46 | - * @return mixed |
|
47 | - */ |
|
48 | - public static function setDataType($param, string $type) |
|
49 | - { |
|
50 | - switch ($type) { |
|
51 | - case DataType::NULL: |
|
52 | - return null; |
|
53 | - case DataType::OBJECT: |
|
54 | - return $param; |
|
55 | - case DataType::FQCN: |
|
56 | - case DataType::HTML: |
|
57 | - case DataType::KEY: |
|
58 | - case DataType::STRING: |
|
59 | - case DataType::TITLE: |
|
60 | - case DataType::URL: |
|
61 | - settype($param, DataType::STRING); |
|
62 | - break; |
|
63 | - default: |
|
64 | - settype($param, $type); |
|
65 | - } |
|
66 | - return $param; |
|
67 | - } |
|
43 | + /** |
|
44 | + * @param mixed $param |
|
45 | + * @param string $type |
|
46 | + * @return mixed |
|
47 | + */ |
|
48 | + public static function setDataType($param, string $type) |
|
49 | + { |
|
50 | + switch ($type) { |
|
51 | + case DataType::NULL: |
|
52 | + return null; |
|
53 | + case DataType::OBJECT: |
|
54 | + return $param; |
|
55 | + case DataType::FQCN: |
|
56 | + case DataType::HTML: |
|
57 | + case DataType::KEY: |
|
58 | + case DataType::STRING: |
|
59 | + case DataType::TITLE: |
|
60 | + case DataType::URL: |
|
61 | + settype($param, DataType::STRING); |
|
62 | + break; |
|
63 | + default: |
|
64 | + settype($param, $type); |
|
65 | + } |
|
66 | + return $param; |
|
67 | + } |
|
68 | 68 | } |
@@ -13,357 +13,357 @@ |
||
13 | 13 | */ |
14 | 14 | class RequestParams |
15 | 15 | { |
16 | - /** |
|
17 | - * Used for matches() and parameterDrillDown() |
|
18 | - * 'bool' will return true or false if match is found or not |
|
19 | - */ |
|
20 | - const RETURN_BOOL = 'bool'; |
|
21 | - |
|
22 | - /** |
|
23 | - * Used for matches() and parameterDrillDown() |
|
24 | - * 'key' will return the first key found that matches the supplied pattern |
|
25 | - */ |
|
26 | - const RETURN_KEY = 'key'; |
|
27 | - |
|
28 | - /** |
|
29 | - * Used for matches() and parameterDrillDown() |
|
30 | - * 'value' will return the value for the first request parameter |
|
31 | - */ |
|
32 | - const RETURN_VALUE = 'value'; |
|
33 | - |
|
34 | - /** |
|
35 | - * $_GET parameters |
|
36 | - * |
|
37 | - * @var array |
|
38 | - */ |
|
39 | - protected $get; |
|
40 | - |
|
41 | - /** |
|
42 | - * $_POST parameters |
|
43 | - * |
|
44 | - * @var array |
|
45 | - */ |
|
46 | - protected $post; |
|
47 | - |
|
48 | - /** |
|
49 | - * $_REQUEST parameters |
|
50 | - * |
|
51 | - * @var array |
|
52 | - */ |
|
53 | - protected $request; |
|
54 | - |
|
55 | - /** |
|
56 | - * @var RequestSanitizer |
|
57 | - */ |
|
58 | - protected $sanitizer; |
|
59 | - |
|
60 | - |
|
61 | - /** |
|
62 | - * RequestParams constructor. |
|
63 | - * |
|
64 | - * @param RequestSanitizer $sanitizer |
|
65 | - * @param array $get |
|
66 | - * @param array $post |
|
67 | - */ |
|
68 | - public function __construct(RequestSanitizer $sanitizer, array $get = [], array $post = []) |
|
69 | - { |
|
70 | - $this->sanitizer = $sanitizer; |
|
71 | - $this->get = ! empty($get) ? $get : $_GET; |
|
72 | - $this->post = ! empty($post) ? $post : $_POST; |
|
73 | - $this->request = array_merge($this->get, $this->post); |
|
74 | - } |
|
75 | - |
|
76 | - |
|
77 | - /** |
|
78 | - * @return array |
|
79 | - */ |
|
80 | - public function getParams() |
|
81 | - { |
|
82 | - return $this->get; |
|
83 | - } |
|
84 | - |
|
85 | - |
|
86 | - /** |
|
87 | - * @return array |
|
88 | - */ |
|
89 | - public function postParams() |
|
90 | - { |
|
91 | - return $this->post; |
|
92 | - } |
|
93 | - |
|
94 | - |
|
95 | - /** |
|
96 | - * returns contents of $_REQUEST |
|
97 | - * |
|
98 | - * @return array |
|
99 | - */ |
|
100 | - public function requestParams() |
|
101 | - { |
|
102 | - return $this->request; |
|
103 | - } |
|
104 | - |
|
105 | - |
|
106 | - /** |
|
107 | - * @param string $key |
|
108 | - * @param mixed|null $value |
|
109 | - * @param bool $override_ee |
|
110 | - * @return void |
|
111 | - */ |
|
112 | - public function setRequestParam($key, $value, $override_ee = false) |
|
113 | - { |
|
114 | - // don't allow "ee" to be overwritten unless explicitly instructed to do so |
|
115 | - if ($override_ee || $key !== 'ee' || empty($this->request['ee'])) { |
|
116 | - $this->request[ $key ] = $value; |
|
117 | - } |
|
118 | - } |
|
119 | - |
|
120 | - |
|
121 | - /** |
|
122 | - * merges the incoming array of parameters into the existing request parameters |
|
123 | - * |
|
124 | - * @param array $request_params |
|
125 | - * @return void |
|
126 | - * @since 4.10.24.p |
|
127 | - */ |
|
128 | - public function mergeRequestParams(array $request_params) |
|
129 | - { |
|
130 | - $this->request = array_merge($this->request, $request_params); |
|
131 | - } |
|
132 | - |
|
133 | - |
|
134 | - /** |
|
135 | - * returns the value for a request param if the given key exists |
|
136 | - * |
|
137 | - * @param string $key |
|
138 | - * @param mixed|null $default |
|
139 | - * @param string $type the expected data type for the parameter's value, ie: string, int, bool, etc. |
|
140 | - * DataType::ARRAY should only be used to indicate an array containing mixed types, |
|
141 | - * ideally another data type should be selected to indicate the contents of the array, |
|
142 | - * and then $is_array should be set to true. ie: an array of integers would be: |
|
143 | - * $type = DataType::INT |
|
144 | - * $is_array = true |
|
145 | - * @param bool $is_array if true, then parameter value will be treated as an array of $type |
|
146 | - * @param string $delimiter for CSV type strings that should be returned as an array |
|
147 | - * @return array|bool|float|int|string |
|
148 | - */ |
|
149 | - public function getRequestParam($key, $default = null, $type = DataType::STRING, $is_array = false, $delimiter = '') |
|
150 | - { |
|
151 | - // ensure $is_array is true if the data type is set as such |
|
152 | - $is_array = $type === DataType::ARRAY ? true : $is_array; |
|
153 | - $param = $this->sanitizer->clean( |
|
154 | - $this->parameterDrillDown($key, $default, 'get'), |
|
155 | - $type, |
|
156 | - $is_array, |
|
157 | - $delimiter |
|
158 | - ); |
|
159 | - // don't convert final return value to something else if an array is expected |
|
160 | - $type = $is_array ? DataType::ARRAY : $type; |
|
161 | - return DataType::setDataType($param, $type); |
|
162 | - } |
|
163 | - |
|
164 | - |
|
165 | - /** |
|
166 | - * check if param exists |
|
167 | - * |
|
168 | - * @param string $key |
|
169 | - * @return bool |
|
170 | - */ |
|
171 | - public function requestParamIsSet($key) |
|
172 | - { |
|
173 | - return (bool) $this->parameterDrillDown($key); |
|
174 | - } |
|
175 | - |
|
176 | - |
|
177 | - /** |
|
178 | - * check if a request parameter exists whose key that matches the supplied wildcard pattern |
|
179 | - * and return the value for the first match found |
|
180 | - * wildcards can be either of the following: |
|
181 | - * ? to represent a single character of any type |
|
182 | - * * to represent one or more characters of any type |
|
183 | - * |
|
184 | - * @param string $pattern |
|
185 | - * @param mixed|null $default |
|
186 | - * @param string $type the expected data type for the parameter's value, ie: string, int, bool, etc |
|
187 | - * @param bool $is_array if true, then parameter value will be treated as an array of $type |
|
188 | - * @param string $delimiter for CSV type strings that should be returned as an array |
|
189 | - * @return array|bool|float|int|string |
|
190 | - */ |
|
191 | - public function getMatch($pattern, $default = null, $type = DataType::STRING, $is_array = false, $delimiter = '') |
|
192 | - { |
|
193 | - $param = $this->sanitizer->clean( |
|
194 | - $this->parameterDrillDown($pattern, $default, 'match'), |
|
195 | - $type, |
|
196 | - $is_array, |
|
197 | - $delimiter |
|
198 | - ); |
|
199 | - $type = $is_array ? 'array' : $type; |
|
200 | - return DataType::setDataType($param, $type); |
|
201 | - } |
|
202 | - |
|
203 | - |
|
204 | - /** |
|
205 | - * check if a request parameter exists whose key matches the supplied wildcard pattern |
|
206 | - * wildcards can be either of the following: |
|
207 | - * ? to represent a single character of any type |
|
208 | - * * to represent one or more characters of any type |
|
209 | - * returns true if a match is found or false if not |
|
210 | - * |
|
211 | - * @param string $pattern |
|
212 | - * @return bool |
|
213 | - */ |
|
214 | - public function matches($pattern) |
|
215 | - { |
|
216 | - return (bool) $this->parameterDrillDown($pattern, false, 'match', self::RETURN_BOOL); |
|
217 | - } |
|
218 | - |
|
219 | - |
|
220 | - /** |
|
221 | - * @see https://stackoverflow.com/questions/6163055/php-string-matching-with-wildcard |
|
222 | - * @param string $pattern A string including wildcards to be converted to a regex pattern |
|
223 | - * and used to search through the current request's parameter keys |
|
224 | - * @param array $request_params The array of request parameters to search through |
|
225 | - * @param mixed $default [optional] The value to be returned if no match is found. |
|
226 | - * Default is null |
|
227 | - * @param string $return [optional] Controls what kind of value is returned. |
|
228 | - * Options are the RETURN_* constants: |
|
229 | - * RETURN_BOOL will return true or false if match is found or not |
|
230 | - * RETURN_KEY will return the first key found that matches the supplied pattern |
|
231 | - * RETURN_VALUE will return the value for the first request parameter |
|
232 | - * whose key matches the supplied pattern |
|
233 | - * Default is 'value' |
|
234 | - * @return boolean|string |
|
235 | - */ |
|
236 | - private function match($pattern, array $request_params, $default = null, $return = self::RETURN_VALUE) |
|
237 | - { |
|
238 | - $return = in_array($return, [self::RETURN_BOOL, self::RETURN_KEY, self::RETURN_VALUE], true) |
|
239 | - ? $return |
|
240 | - : 'is_set'; |
|
241 | - // replace wildcard chars with regex chars |
|
242 | - $pattern = str_replace( |
|
243 | - ['\*', '\?'], |
|
244 | - ['.*', '.'], |
|
245 | - preg_quote($pattern, '/') |
|
246 | - ); |
|
247 | - foreach ($request_params as $key => $request_param) { |
|
248 | - if (preg_match('/^' . $pattern . '$/is', $key)) { |
|
249 | - // return value for request param |
|
250 | - if ($return === self::RETURN_VALUE) { |
|
251 | - return $request_param; |
|
252 | - } |
|
253 | - // or actual key or true just to indicate it was found |
|
254 | - return $return === self::RETURN_KEY ? $key : true; |
|
255 | - } |
|
256 | - } |
|
257 | - // match not found so return default value or false |
|
258 | - return $return === self::RETURN_VALUE ? $default : false; |
|
259 | - } |
|
260 | - |
|
261 | - |
|
262 | - /** |
|
263 | - * the supplied key can be a simple string to represent a "top-level" request parameter |
|
264 | - * or represent a key for a request parameter that is nested deeper within the request parameter array, |
|
265 | - * by using square brackets to surround keys for deeper array elements. |
|
266 | - * For example : |
|
267 | - * if the supplied $key was: "first[second][third]" |
|
268 | - * then this will attempt to drill down into the request parameter array to find a value. |
|
269 | - * Given the following request parameters: |
|
270 | - * array( |
|
271 | - * 'first' => array( |
|
272 | - * 'second' => array( |
|
273 | - * 'third' => 'has a value' |
|
274 | - * ) |
|
275 | - * ) |
|
276 | - * ) |
|
277 | - * would return true if default parameters were set |
|
278 | - * |
|
279 | - * @param string $callback |
|
280 | - * @param $key |
|
281 | - * @param null $default |
|
282 | - * @param string $return |
|
283 | - * @param mixed $request_params |
|
284 | - * @return bool|mixed|null |
|
285 | - */ |
|
286 | - private function parameterDrillDown( |
|
287 | - $key, |
|
288 | - $default = null, |
|
289 | - $callback = 'is_set', |
|
290 | - $return = self::RETURN_VALUE, |
|
291 | - $request_params = [] |
|
292 | - ) { |
|
293 | - $callback = in_array($callback, ['is_set', 'get', 'match'], true) |
|
294 | - ? $callback |
|
295 | - : 'is_set'; |
|
296 | - $request_params = ! empty($request_params) |
|
297 | - ? $request_params |
|
298 | - : $this->request; |
|
299 | - // does incoming key represent an array like 'first[second][third]' ? |
|
300 | - if (strpos($key, '[') !== false) { |
|
301 | - // turn it into an actual array |
|
302 | - $key = str_replace(']', '', $key); |
|
303 | - $keys = explode('[', $key); |
|
304 | - $key = array_shift($keys); |
|
305 | - if ($callback === 'match') { |
|
306 | - $real_key = $this->match($key, $request_params, $default, self::RETURN_KEY); |
|
307 | - $key = $real_key ?: $key; |
|
308 | - } |
|
309 | - // check if top level key exists |
|
310 | - if (isset($request_params[ $key ])) { |
|
311 | - // build a new key to pass along like: 'second[third]' |
|
312 | - // or just 'second' depending on depth of keys |
|
313 | - $key_string = array_shift($keys); |
|
314 | - if (! empty($keys)) { |
|
315 | - $key_string .= '[' . implode('][', $keys) . ']'; |
|
316 | - } |
|
317 | - return $this->parameterDrillDown( |
|
318 | - $key_string, |
|
319 | - $default, |
|
320 | - $callback, |
|
321 | - $return, |
|
322 | - $request_params[ $key ] |
|
323 | - ); |
|
324 | - } |
|
325 | - } |
|
326 | - if ($callback === 'is_set') { |
|
327 | - return isset($request_params[ $key ]); |
|
328 | - } |
|
329 | - if ($callback === 'match') { |
|
330 | - return $this->match($key, $request_params, $default, $return); |
|
331 | - } |
|
332 | - return isset($request_params[ $key ]) |
|
333 | - ? $request_params[ $key ] |
|
334 | - : $default; |
|
335 | - } |
|
336 | - |
|
337 | - |
|
338 | - /** |
|
339 | - * remove param |
|
340 | - * |
|
341 | - * @param $key |
|
342 | - * @param bool $unset_from_global_too |
|
343 | - */ |
|
344 | - public function unSetRequestParam($key, $unset_from_global_too = false) |
|
345 | - { |
|
346 | - // because unset may not actually remove var |
|
347 | - $this->get[ $key ] = null; |
|
348 | - $this->post[ $key ] = null; |
|
349 | - $this->request[ $key ] = null; |
|
350 | - unset($this->get[ $key ], $this->post[ $key ], $this->request[ $key ]); |
|
351 | - if ($unset_from_global_too) { |
|
352 | - unset($_GET[ $key ], $_POST[ $key ], $_REQUEST[ $key ]); |
|
353 | - } |
|
354 | - } |
|
355 | - |
|
356 | - |
|
357 | - /** |
|
358 | - * remove params |
|
359 | - * |
|
360 | - * @param array $keys |
|
361 | - * @param bool $unset_from_global_too |
|
362 | - */ |
|
363 | - public function unSetRequestParams(array $keys, $unset_from_global_too = false) |
|
364 | - { |
|
365 | - foreach ($keys as $key) { |
|
366 | - $this->unSetRequestParam($key, $unset_from_global_too); |
|
367 | - } |
|
368 | - } |
|
16 | + /** |
|
17 | + * Used for matches() and parameterDrillDown() |
|
18 | + * 'bool' will return true or false if match is found or not |
|
19 | + */ |
|
20 | + const RETURN_BOOL = 'bool'; |
|
21 | + |
|
22 | + /** |
|
23 | + * Used for matches() and parameterDrillDown() |
|
24 | + * 'key' will return the first key found that matches the supplied pattern |
|
25 | + */ |
|
26 | + const RETURN_KEY = 'key'; |
|
27 | + |
|
28 | + /** |
|
29 | + * Used for matches() and parameterDrillDown() |
|
30 | + * 'value' will return the value for the first request parameter |
|
31 | + */ |
|
32 | + const RETURN_VALUE = 'value'; |
|
33 | + |
|
34 | + /** |
|
35 | + * $_GET parameters |
|
36 | + * |
|
37 | + * @var array |
|
38 | + */ |
|
39 | + protected $get; |
|
40 | + |
|
41 | + /** |
|
42 | + * $_POST parameters |
|
43 | + * |
|
44 | + * @var array |
|
45 | + */ |
|
46 | + protected $post; |
|
47 | + |
|
48 | + /** |
|
49 | + * $_REQUEST parameters |
|
50 | + * |
|
51 | + * @var array |
|
52 | + */ |
|
53 | + protected $request; |
|
54 | + |
|
55 | + /** |
|
56 | + * @var RequestSanitizer |
|
57 | + */ |
|
58 | + protected $sanitizer; |
|
59 | + |
|
60 | + |
|
61 | + /** |
|
62 | + * RequestParams constructor. |
|
63 | + * |
|
64 | + * @param RequestSanitizer $sanitizer |
|
65 | + * @param array $get |
|
66 | + * @param array $post |
|
67 | + */ |
|
68 | + public function __construct(RequestSanitizer $sanitizer, array $get = [], array $post = []) |
|
69 | + { |
|
70 | + $this->sanitizer = $sanitizer; |
|
71 | + $this->get = ! empty($get) ? $get : $_GET; |
|
72 | + $this->post = ! empty($post) ? $post : $_POST; |
|
73 | + $this->request = array_merge($this->get, $this->post); |
|
74 | + } |
|
75 | + |
|
76 | + |
|
77 | + /** |
|
78 | + * @return array |
|
79 | + */ |
|
80 | + public function getParams() |
|
81 | + { |
|
82 | + return $this->get; |
|
83 | + } |
|
84 | + |
|
85 | + |
|
86 | + /** |
|
87 | + * @return array |
|
88 | + */ |
|
89 | + public function postParams() |
|
90 | + { |
|
91 | + return $this->post; |
|
92 | + } |
|
93 | + |
|
94 | + |
|
95 | + /** |
|
96 | + * returns contents of $_REQUEST |
|
97 | + * |
|
98 | + * @return array |
|
99 | + */ |
|
100 | + public function requestParams() |
|
101 | + { |
|
102 | + return $this->request; |
|
103 | + } |
|
104 | + |
|
105 | + |
|
106 | + /** |
|
107 | + * @param string $key |
|
108 | + * @param mixed|null $value |
|
109 | + * @param bool $override_ee |
|
110 | + * @return void |
|
111 | + */ |
|
112 | + public function setRequestParam($key, $value, $override_ee = false) |
|
113 | + { |
|
114 | + // don't allow "ee" to be overwritten unless explicitly instructed to do so |
|
115 | + if ($override_ee || $key !== 'ee' || empty($this->request['ee'])) { |
|
116 | + $this->request[ $key ] = $value; |
|
117 | + } |
|
118 | + } |
|
119 | + |
|
120 | + |
|
121 | + /** |
|
122 | + * merges the incoming array of parameters into the existing request parameters |
|
123 | + * |
|
124 | + * @param array $request_params |
|
125 | + * @return void |
|
126 | + * @since 4.10.24.p |
|
127 | + */ |
|
128 | + public function mergeRequestParams(array $request_params) |
|
129 | + { |
|
130 | + $this->request = array_merge($this->request, $request_params); |
|
131 | + } |
|
132 | + |
|
133 | + |
|
134 | + /** |
|
135 | + * returns the value for a request param if the given key exists |
|
136 | + * |
|
137 | + * @param string $key |
|
138 | + * @param mixed|null $default |
|
139 | + * @param string $type the expected data type for the parameter's value, ie: string, int, bool, etc. |
|
140 | + * DataType::ARRAY should only be used to indicate an array containing mixed types, |
|
141 | + * ideally another data type should be selected to indicate the contents of the array, |
|
142 | + * and then $is_array should be set to true. ie: an array of integers would be: |
|
143 | + * $type = DataType::INT |
|
144 | + * $is_array = true |
|
145 | + * @param bool $is_array if true, then parameter value will be treated as an array of $type |
|
146 | + * @param string $delimiter for CSV type strings that should be returned as an array |
|
147 | + * @return array|bool|float|int|string |
|
148 | + */ |
|
149 | + public function getRequestParam($key, $default = null, $type = DataType::STRING, $is_array = false, $delimiter = '') |
|
150 | + { |
|
151 | + // ensure $is_array is true if the data type is set as such |
|
152 | + $is_array = $type === DataType::ARRAY ? true : $is_array; |
|
153 | + $param = $this->sanitizer->clean( |
|
154 | + $this->parameterDrillDown($key, $default, 'get'), |
|
155 | + $type, |
|
156 | + $is_array, |
|
157 | + $delimiter |
|
158 | + ); |
|
159 | + // don't convert final return value to something else if an array is expected |
|
160 | + $type = $is_array ? DataType::ARRAY : $type; |
|
161 | + return DataType::setDataType($param, $type); |
|
162 | + } |
|
163 | + |
|
164 | + |
|
165 | + /** |
|
166 | + * check if param exists |
|
167 | + * |
|
168 | + * @param string $key |
|
169 | + * @return bool |
|
170 | + */ |
|
171 | + public function requestParamIsSet($key) |
|
172 | + { |
|
173 | + return (bool) $this->parameterDrillDown($key); |
|
174 | + } |
|
175 | + |
|
176 | + |
|
177 | + /** |
|
178 | + * check if a request parameter exists whose key that matches the supplied wildcard pattern |
|
179 | + * and return the value for the first match found |
|
180 | + * wildcards can be either of the following: |
|
181 | + * ? to represent a single character of any type |
|
182 | + * * to represent one or more characters of any type |
|
183 | + * |
|
184 | + * @param string $pattern |
|
185 | + * @param mixed|null $default |
|
186 | + * @param string $type the expected data type for the parameter's value, ie: string, int, bool, etc |
|
187 | + * @param bool $is_array if true, then parameter value will be treated as an array of $type |
|
188 | + * @param string $delimiter for CSV type strings that should be returned as an array |
|
189 | + * @return array|bool|float|int|string |
|
190 | + */ |
|
191 | + public function getMatch($pattern, $default = null, $type = DataType::STRING, $is_array = false, $delimiter = '') |
|
192 | + { |
|
193 | + $param = $this->sanitizer->clean( |
|
194 | + $this->parameterDrillDown($pattern, $default, 'match'), |
|
195 | + $type, |
|
196 | + $is_array, |
|
197 | + $delimiter |
|
198 | + ); |
|
199 | + $type = $is_array ? 'array' : $type; |
|
200 | + return DataType::setDataType($param, $type); |
|
201 | + } |
|
202 | + |
|
203 | + |
|
204 | + /** |
|
205 | + * check if a request parameter exists whose key matches the supplied wildcard pattern |
|
206 | + * wildcards can be either of the following: |
|
207 | + * ? to represent a single character of any type |
|
208 | + * * to represent one or more characters of any type |
|
209 | + * returns true if a match is found or false if not |
|
210 | + * |
|
211 | + * @param string $pattern |
|
212 | + * @return bool |
|
213 | + */ |
|
214 | + public function matches($pattern) |
|
215 | + { |
|
216 | + return (bool) $this->parameterDrillDown($pattern, false, 'match', self::RETURN_BOOL); |
|
217 | + } |
|
218 | + |
|
219 | + |
|
220 | + /** |
|
221 | + * @see https://stackoverflow.com/questions/6163055/php-string-matching-with-wildcard |
|
222 | + * @param string $pattern A string including wildcards to be converted to a regex pattern |
|
223 | + * and used to search through the current request's parameter keys |
|
224 | + * @param array $request_params The array of request parameters to search through |
|
225 | + * @param mixed $default [optional] The value to be returned if no match is found. |
|
226 | + * Default is null |
|
227 | + * @param string $return [optional] Controls what kind of value is returned. |
|
228 | + * Options are the RETURN_* constants: |
|
229 | + * RETURN_BOOL will return true or false if match is found or not |
|
230 | + * RETURN_KEY will return the first key found that matches the supplied pattern |
|
231 | + * RETURN_VALUE will return the value for the first request parameter |
|
232 | + * whose key matches the supplied pattern |
|
233 | + * Default is 'value' |
|
234 | + * @return boolean|string |
|
235 | + */ |
|
236 | + private function match($pattern, array $request_params, $default = null, $return = self::RETURN_VALUE) |
|
237 | + { |
|
238 | + $return = in_array($return, [self::RETURN_BOOL, self::RETURN_KEY, self::RETURN_VALUE], true) |
|
239 | + ? $return |
|
240 | + : 'is_set'; |
|
241 | + // replace wildcard chars with regex chars |
|
242 | + $pattern = str_replace( |
|
243 | + ['\*', '\?'], |
|
244 | + ['.*', '.'], |
|
245 | + preg_quote($pattern, '/') |
|
246 | + ); |
|
247 | + foreach ($request_params as $key => $request_param) { |
|
248 | + if (preg_match('/^' . $pattern . '$/is', $key)) { |
|
249 | + // return value for request param |
|
250 | + if ($return === self::RETURN_VALUE) { |
|
251 | + return $request_param; |
|
252 | + } |
|
253 | + // or actual key or true just to indicate it was found |
|
254 | + return $return === self::RETURN_KEY ? $key : true; |
|
255 | + } |
|
256 | + } |
|
257 | + // match not found so return default value or false |
|
258 | + return $return === self::RETURN_VALUE ? $default : false; |
|
259 | + } |
|
260 | + |
|
261 | + |
|
262 | + /** |
|
263 | + * the supplied key can be a simple string to represent a "top-level" request parameter |
|
264 | + * or represent a key for a request parameter that is nested deeper within the request parameter array, |
|
265 | + * by using square brackets to surround keys for deeper array elements. |
|
266 | + * For example : |
|
267 | + * if the supplied $key was: "first[second][third]" |
|
268 | + * then this will attempt to drill down into the request parameter array to find a value. |
|
269 | + * Given the following request parameters: |
|
270 | + * array( |
|
271 | + * 'first' => array( |
|
272 | + * 'second' => array( |
|
273 | + * 'third' => 'has a value' |
|
274 | + * ) |
|
275 | + * ) |
|
276 | + * ) |
|
277 | + * would return true if default parameters were set |
|
278 | + * |
|
279 | + * @param string $callback |
|
280 | + * @param $key |
|
281 | + * @param null $default |
|
282 | + * @param string $return |
|
283 | + * @param mixed $request_params |
|
284 | + * @return bool|mixed|null |
|
285 | + */ |
|
286 | + private function parameterDrillDown( |
|
287 | + $key, |
|
288 | + $default = null, |
|
289 | + $callback = 'is_set', |
|
290 | + $return = self::RETURN_VALUE, |
|
291 | + $request_params = [] |
|
292 | + ) { |
|
293 | + $callback = in_array($callback, ['is_set', 'get', 'match'], true) |
|
294 | + ? $callback |
|
295 | + : 'is_set'; |
|
296 | + $request_params = ! empty($request_params) |
|
297 | + ? $request_params |
|
298 | + : $this->request; |
|
299 | + // does incoming key represent an array like 'first[second][third]' ? |
|
300 | + if (strpos($key, '[') !== false) { |
|
301 | + // turn it into an actual array |
|
302 | + $key = str_replace(']', '', $key); |
|
303 | + $keys = explode('[', $key); |
|
304 | + $key = array_shift($keys); |
|
305 | + if ($callback === 'match') { |
|
306 | + $real_key = $this->match($key, $request_params, $default, self::RETURN_KEY); |
|
307 | + $key = $real_key ?: $key; |
|
308 | + } |
|
309 | + // check if top level key exists |
|
310 | + if (isset($request_params[ $key ])) { |
|
311 | + // build a new key to pass along like: 'second[third]' |
|
312 | + // or just 'second' depending on depth of keys |
|
313 | + $key_string = array_shift($keys); |
|
314 | + if (! empty($keys)) { |
|
315 | + $key_string .= '[' . implode('][', $keys) . ']'; |
|
316 | + } |
|
317 | + return $this->parameterDrillDown( |
|
318 | + $key_string, |
|
319 | + $default, |
|
320 | + $callback, |
|
321 | + $return, |
|
322 | + $request_params[ $key ] |
|
323 | + ); |
|
324 | + } |
|
325 | + } |
|
326 | + if ($callback === 'is_set') { |
|
327 | + return isset($request_params[ $key ]); |
|
328 | + } |
|
329 | + if ($callback === 'match') { |
|
330 | + return $this->match($key, $request_params, $default, $return); |
|
331 | + } |
|
332 | + return isset($request_params[ $key ]) |
|
333 | + ? $request_params[ $key ] |
|
334 | + : $default; |
|
335 | + } |
|
336 | + |
|
337 | + |
|
338 | + /** |
|
339 | + * remove param |
|
340 | + * |
|
341 | + * @param $key |
|
342 | + * @param bool $unset_from_global_too |
|
343 | + */ |
|
344 | + public function unSetRequestParam($key, $unset_from_global_too = false) |
|
345 | + { |
|
346 | + // because unset may not actually remove var |
|
347 | + $this->get[ $key ] = null; |
|
348 | + $this->post[ $key ] = null; |
|
349 | + $this->request[ $key ] = null; |
|
350 | + unset($this->get[ $key ], $this->post[ $key ], $this->request[ $key ]); |
|
351 | + if ($unset_from_global_too) { |
|
352 | + unset($_GET[ $key ], $_POST[ $key ], $_REQUEST[ $key ]); |
|
353 | + } |
|
354 | + } |
|
355 | + |
|
356 | + |
|
357 | + /** |
|
358 | + * remove params |
|
359 | + * |
|
360 | + * @param array $keys |
|
361 | + * @param bool $unset_from_global_too |
|
362 | + */ |
|
363 | + public function unSetRequestParams(array $keys, $unset_from_global_too = false) |
|
364 | + { |
|
365 | + foreach ($keys as $key) { |
|
366 | + $this->unSetRequestParam($key, $unset_from_global_too); |
|
367 | + } |
|
368 | + } |
|
369 | 369 | } |
@@ -9,207 +9,207 @@ |
||
9 | 9 | */ |
10 | 10 | class EE_Country extends EE_Base_Class |
11 | 11 | { |
12 | - /** |
|
13 | - * @param array $props_n_values |
|
14 | - * @return EE_Country|mixed |
|
15 | - * @throws EE_Error |
|
16 | - * @throws ReflectionException |
|
17 | - */ |
|
18 | - public static function new_instance($props_n_values = []) |
|
19 | - { |
|
20 | - $has_object = parent::_check_for_object($props_n_values, __CLASS__); |
|
21 | - return $has_object ? $has_object : new self($props_n_values); |
|
22 | - } |
|
23 | - |
|
24 | - |
|
25 | - /** |
|
26 | - * @param array $props_n_values |
|
27 | - * @return EE_Country |
|
28 | - * @throws EE_Error |
|
29 | - * @throws ReflectionException |
|
30 | - */ |
|
31 | - public static function new_instance_from_db($props_n_values = []): EE_Country |
|
32 | - { |
|
33 | - return new self($props_n_values, true); |
|
34 | - } |
|
35 | - |
|
36 | - |
|
37 | - /** |
|
38 | - * Gets the country name |
|
39 | - * |
|
40 | - * @return string |
|
41 | - * @throws EE_Error |
|
42 | - * @throws ReflectionException |
|
43 | - */ |
|
44 | - public function name(): string |
|
45 | - { |
|
46 | - return $this->get('CNT_name'); |
|
47 | - } |
|
48 | - |
|
49 | - |
|
50 | - /** |
|
51 | - * Whether the country is active/enabled |
|
52 | - * |
|
53 | - * @return bool |
|
54 | - * @throws EE_Error |
|
55 | - * @throws ReflectionException |
|
56 | - */ |
|
57 | - public function isActive(): bool |
|
58 | - { |
|
59 | - return (bool) $this->get('CNT_active'); |
|
60 | - } |
|
61 | - |
|
62 | - |
|
63 | - /** |
|
64 | - * Gets the country ISO3 |
|
65 | - * |
|
66 | - * @return string |
|
67 | - * @throws EE_Error |
|
68 | - * @throws ReflectionException |
|
69 | - */ |
|
70 | - public function ISO3(): string |
|
71 | - { |
|
72 | - return $this->get('CNT_ISO3'); |
|
73 | - } |
|
74 | - |
|
75 | - |
|
76 | - /** |
|
77 | - * gets the country's currency code |
|
78 | - * |
|
79 | - * @return string |
|
80 | - * @throws EE_Error |
|
81 | - * @throws ReflectionException |
|
82 | - */ |
|
83 | - public function currency_code(): string |
|
84 | - { |
|
85 | - return $this->get('CNT_cur_code'); |
|
86 | - } |
|
87 | - |
|
88 | - |
|
89 | - /** |
|
90 | - * gets the country's currency sign/symbol |
|
91 | - * |
|
92 | - * @return string |
|
93 | - * @throws EE_Error |
|
94 | - * @throws ReflectionException |
|
95 | - */ |
|
96 | - public function currency_sign(): string |
|
97 | - { |
|
98 | - $CNT_cur_sign = $this->get('CNT_cur_sign'); |
|
99 | - return $CNT_cur_sign ?: ''; |
|
100 | - } |
|
101 | - |
|
102 | - |
|
103 | - /** |
|
104 | - * Currency name singular |
|
105 | - * |
|
106 | - * @return string |
|
107 | - * @throws EE_Error |
|
108 | - * @throws ReflectionException |
|
109 | - */ |
|
110 | - public function currency_name_single(): string |
|
111 | - { |
|
112 | - return $this->get('CNT_cur_single'); |
|
113 | - } |
|
114 | - |
|
115 | - |
|
116 | - /** |
|
117 | - * Currency name plural |
|
118 | - * |
|
119 | - * @return string |
|
120 | - * @throws EE_Error |
|
121 | - * @throws ReflectionException |
|
122 | - */ |
|
123 | - public function currency_name_plural(): string |
|
124 | - { |
|
125 | - return $this->get('CNT_cur_plural'); |
|
126 | - } |
|
127 | - |
|
128 | - |
|
129 | - /** |
|
130 | - * currency_sign_before - ie: $TRUE or FALSE$ |
|
131 | - * |
|
132 | - * @return boolean |
|
133 | - * @throws EE_Error |
|
134 | - * @throws ReflectionException |
|
135 | - */ |
|
136 | - public function currency_sign_before(): bool |
|
137 | - { |
|
138 | - return (bool) $this->get('CNT_cur_sign_b4'); |
|
139 | - } |
|
140 | - |
|
141 | - |
|
142 | - /** |
|
143 | - * currency_decimal_places : 2 = 0.00 3 = 0.000 |
|
144 | - * |
|
145 | - * @return integer |
|
146 | - * @throws EE_Error |
|
147 | - * @throws ReflectionException |
|
148 | - */ |
|
149 | - public function currency_decimal_places(): int |
|
150 | - { |
|
151 | - return $this->get('CNT_cur_dec_plc'); |
|
152 | - } |
|
153 | - |
|
154 | - |
|
155 | - /** |
|
156 | - * currency_decimal_mark : (comma) ',' = 0,01 or (decimal) '.' = 0.01 |
|
157 | - * |
|
158 | - * @return string |
|
159 | - * @throws EE_Error |
|
160 | - * @throws ReflectionException |
|
161 | - */ |
|
162 | - public function currency_decimal_mark(): string |
|
163 | - { |
|
164 | - return $this->get('CNT_cur_dec_mrk'); |
|
165 | - } |
|
166 | - |
|
167 | - |
|
168 | - /** |
|
169 | - * currency thousands separator: (comma) ',' = 1,000 or (decimal) '.' = 1.000 |
|
170 | - * |
|
171 | - * @return string |
|
172 | - * @throws EE_Error |
|
173 | - * @throws ReflectionException |
|
174 | - */ |
|
175 | - public function currency_thousands_separator(): string |
|
176 | - { |
|
177 | - return $this->get('CNT_cur_thsnds'); |
|
178 | - } |
|
179 | - |
|
180 | - |
|
181 | - /** |
|
182 | - * @return bool |
|
183 | - * @throws EE_Error |
|
184 | - * @throws ReflectionException |
|
185 | - * @since $VID:$ |
|
186 | - */ |
|
187 | - public function isEU(): bool |
|
188 | - { |
|
189 | - return (bool) $this->get('CNT_is_EU'); |
|
190 | - } |
|
191 | - |
|
192 | - |
|
193 | - /** |
|
194 | - * Country Telephone Code: +1 |
|
195 | - * |
|
196 | - * @return string |
|
197 | - * @throws EE_Error |
|
198 | - * @throws ReflectionException |
|
199 | - * @since $VID:$ |
|
200 | - */ |
|
201 | - public function telephoneCode(): string |
|
202 | - { |
|
203 | - return $this->get('CNT_tel_code'); |
|
204 | - } |
|
205 | - |
|
206 | - |
|
207 | - /** |
|
208 | - * @return bool |
|
209 | - * @deprecated $VID:$ |
|
210 | - */ |
|
211 | - public function is_active(): bool |
|
212 | - { |
|
213 | - return $this->isActive(); |
|
214 | - } |
|
12 | + /** |
|
13 | + * @param array $props_n_values |
|
14 | + * @return EE_Country|mixed |
|
15 | + * @throws EE_Error |
|
16 | + * @throws ReflectionException |
|
17 | + */ |
|
18 | + public static function new_instance($props_n_values = []) |
|
19 | + { |
|
20 | + $has_object = parent::_check_for_object($props_n_values, __CLASS__); |
|
21 | + return $has_object ? $has_object : new self($props_n_values); |
|
22 | + } |
|
23 | + |
|
24 | + |
|
25 | + /** |
|
26 | + * @param array $props_n_values |
|
27 | + * @return EE_Country |
|
28 | + * @throws EE_Error |
|
29 | + * @throws ReflectionException |
|
30 | + */ |
|
31 | + public static function new_instance_from_db($props_n_values = []): EE_Country |
|
32 | + { |
|
33 | + return new self($props_n_values, true); |
|
34 | + } |
|
35 | + |
|
36 | + |
|
37 | + /** |
|
38 | + * Gets the country name |
|
39 | + * |
|
40 | + * @return string |
|
41 | + * @throws EE_Error |
|
42 | + * @throws ReflectionException |
|
43 | + */ |
|
44 | + public function name(): string |
|
45 | + { |
|
46 | + return $this->get('CNT_name'); |
|
47 | + } |
|
48 | + |
|
49 | + |
|
50 | + /** |
|
51 | + * Whether the country is active/enabled |
|
52 | + * |
|
53 | + * @return bool |
|
54 | + * @throws EE_Error |
|
55 | + * @throws ReflectionException |
|
56 | + */ |
|
57 | + public function isActive(): bool |
|
58 | + { |
|
59 | + return (bool) $this->get('CNT_active'); |
|
60 | + } |
|
61 | + |
|
62 | + |
|
63 | + /** |
|
64 | + * Gets the country ISO3 |
|
65 | + * |
|
66 | + * @return string |
|
67 | + * @throws EE_Error |
|
68 | + * @throws ReflectionException |
|
69 | + */ |
|
70 | + public function ISO3(): string |
|
71 | + { |
|
72 | + return $this->get('CNT_ISO3'); |
|
73 | + } |
|
74 | + |
|
75 | + |
|
76 | + /** |
|
77 | + * gets the country's currency code |
|
78 | + * |
|
79 | + * @return string |
|
80 | + * @throws EE_Error |
|
81 | + * @throws ReflectionException |
|
82 | + */ |
|
83 | + public function currency_code(): string |
|
84 | + { |
|
85 | + return $this->get('CNT_cur_code'); |
|
86 | + } |
|
87 | + |
|
88 | + |
|
89 | + /** |
|
90 | + * gets the country's currency sign/symbol |
|
91 | + * |
|
92 | + * @return string |
|
93 | + * @throws EE_Error |
|
94 | + * @throws ReflectionException |
|
95 | + */ |
|
96 | + public function currency_sign(): string |
|
97 | + { |
|
98 | + $CNT_cur_sign = $this->get('CNT_cur_sign'); |
|
99 | + return $CNT_cur_sign ?: ''; |
|
100 | + } |
|
101 | + |
|
102 | + |
|
103 | + /** |
|
104 | + * Currency name singular |
|
105 | + * |
|
106 | + * @return string |
|
107 | + * @throws EE_Error |
|
108 | + * @throws ReflectionException |
|
109 | + */ |
|
110 | + public function currency_name_single(): string |
|
111 | + { |
|
112 | + return $this->get('CNT_cur_single'); |
|
113 | + } |
|
114 | + |
|
115 | + |
|
116 | + /** |
|
117 | + * Currency name plural |
|
118 | + * |
|
119 | + * @return string |
|
120 | + * @throws EE_Error |
|
121 | + * @throws ReflectionException |
|
122 | + */ |
|
123 | + public function currency_name_plural(): string |
|
124 | + { |
|
125 | + return $this->get('CNT_cur_plural'); |
|
126 | + } |
|
127 | + |
|
128 | + |
|
129 | + /** |
|
130 | + * currency_sign_before - ie: $TRUE or FALSE$ |
|
131 | + * |
|
132 | + * @return boolean |
|
133 | + * @throws EE_Error |
|
134 | + * @throws ReflectionException |
|
135 | + */ |
|
136 | + public function currency_sign_before(): bool |
|
137 | + { |
|
138 | + return (bool) $this->get('CNT_cur_sign_b4'); |
|
139 | + } |
|
140 | + |
|
141 | + |
|
142 | + /** |
|
143 | + * currency_decimal_places : 2 = 0.00 3 = 0.000 |
|
144 | + * |
|
145 | + * @return integer |
|
146 | + * @throws EE_Error |
|
147 | + * @throws ReflectionException |
|
148 | + */ |
|
149 | + public function currency_decimal_places(): int |
|
150 | + { |
|
151 | + return $this->get('CNT_cur_dec_plc'); |
|
152 | + } |
|
153 | + |
|
154 | + |
|
155 | + /** |
|
156 | + * currency_decimal_mark : (comma) ',' = 0,01 or (decimal) '.' = 0.01 |
|
157 | + * |
|
158 | + * @return string |
|
159 | + * @throws EE_Error |
|
160 | + * @throws ReflectionException |
|
161 | + */ |
|
162 | + public function currency_decimal_mark(): string |
|
163 | + { |
|
164 | + return $this->get('CNT_cur_dec_mrk'); |
|
165 | + } |
|
166 | + |
|
167 | + |
|
168 | + /** |
|
169 | + * currency thousands separator: (comma) ',' = 1,000 or (decimal) '.' = 1.000 |
|
170 | + * |
|
171 | + * @return string |
|
172 | + * @throws EE_Error |
|
173 | + * @throws ReflectionException |
|
174 | + */ |
|
175 | + public function currency_thousands_separator(): string |
|
176 | + { |
|
177 | + return $this->get('CNT_cur_thsnds'); |
|
178 | + } |
|
179 | + |
|
180 | + |
|
181 | + /** |
|
182 | + * @return bool |
|
183 | + * @throws EE_Error |
|
184 | + * @throws ReflectionException |
|
185 | + * @since $VID:$ |
|
186 | + */ |
|
187 | + public function isEU(): bool |
|
188 | + { |
|
189 | + return (bool) $this->get('CNT_is_EU'); |
|
190 | + } |
|
191 | + |
|
192 | + |
|
193 | + /** |
|
194 | + * Country Telephone Code: +1 |
|
195 | + * |
|
196 | + * @return string |
|
197 | + * @throws EE_Error |
|
198 | + * @throws ReflectionException |
|
199 | + * @since $VID:$ |
|
200 | + */ |
|
201 | + public function telephoneCode(): string |
|
202 | + { |
|
203 | + return $this->get('CNT_tel_code'); |
|
204 | + } |
|
205 | + |
|
206 | + |
|
207 | + /** |
|
208 | + * @return bool |
|
209 | + * @deprecated $VID:$ |
|
210 | + */ |
|
211 | + public function is_active(): bool |
|
212 | + { |
|
213 | + return $this->isActive(); |
|
214 | + } |
|
215 | 215 | } |
@@ -16,72 +16,72 @@ |
||
16 | 16 | */ |
17 | 17 | class Extend_General_Settings_Admin_Page extends General_Settings_Admin_Page |
18 | 18 | { |
19 | - public function __construct($routing = true) |
|
20 | - { |
|
21 | - parent::__construct($routing); |
|
22 | - define('GEN_SET_CAF_TEMPLATE_PATH', EE_CORE_CAF_ADMIN_EXTEND . 'general_settings/templates/'); |
|
23 | - } |
|
19 | + public function __construct($routing = true) |
|
20 | + { |
|
21 | + parent::__construct($routing); |
|
22 | + define('GEN_SET_CAF_TEMPLATE_PATH', EE_CORE_CAF_ADMIN_EXTEND . 'general_settings/templates/'); |
|
23 | + } |
|
24 | 24 | |
25 | 25 | |
26 | - protected function _extend_page_config() |
|
27 | - { |
|
28 | - $this->_admin_base_path = EE_CORE_CAF_ADMIN_EXTEND . 'general_settings'; |
|
26 | + protected function _extend_page_config() |
|
27 | + { |
|
28 | + $this->_admin_base_path = EE_CORE_CAF_ADMIN_EXTEND . 'general_settings'; |
|
29 | 29 | |
30 | - // filters and action hooks here |
|
31 | - add_action('AHEE__admin_option_settings__template__before', [$this, 'debug_logging_options'], 9); |
|
32 | - add_filter( |
|
33 | - 'FHEE__General_Settings_Admin_Page___update_admin_option_settings__CFG_admin', |
|
34 | - [$this, 'update_debug_logging_options'] |
|
35 | - ); |
|
36 | - } |
|
30 | + // filters and action hooks here |
|
31 | + add_action('AHEE__admin_option_settings__template__before', [$this, 'debug_logging_options'], 9); |
|
32 | + add_filter( |
|
33 | + 'FHEE__General_Settings_Admin_Page___update_admin_option_settings__CFG_admin', |
|
34 | + [$this, 'update_debug_logging_options'] |
|
35 | + ); |
|
36 | + } |
|
37 | 37 | |
38 | 38 | |
39 | 39 | |
40 | - /************* Logging Settings *************/ |
|
40 | + /************* Logging Settings *************/ |
|
41 | 41 | |
42 | - /** |
|
43 | - * debug_logging_options |
|
44 | - * |
|
45 | - * @param array $template_args |
|
46 | - * |
|
47 | - * @return void |
|
48 | - */ |
|
49 | - public function debug_logging_options(array $template_args = []) |
|
50 | - { |
|
51 | - $admin_config = EE_Registry::instance()->CFG->admin; |
|
52 | - $template_args['use_remote_logging'] = isset($admin_config->use_remote_logging) |
|
53 | - ? absint($admin_config->use_remote_logging) |
|
54 | - : false; |
|
42 | + /** |
|
43 | + * debug_logging_options |
|
44 | + * |
|
45 | + * @param array $template_args |
|
46 | + * |
|
47 | + * @return void |
|
48 | + */ |
|
49 | + public function debug_logging_options(array $template_args = []) |
|
50 | + { |
|
51 | + $admin_config = EE_Registry::instance()->CFG->admin; |
|
52 | + $template_args['use_remote_logging'] = isset($admin_config->use_remote_logging) |
|
53 | + ? absint($admin_config->use_remote_logging) |
|
54 | + : false; |
|
55 | 55 | |
56 | - $template_args['remote_logging_url'] = isset($admin_config->remote_logging_url) |
|
57 | - && ! empty($admin_config->remote_logging_url) |
|
58 | - ? stripslashes($admin_config->remote_logging_url) |
|
59 | - : ''; |
|
56 | + $template_args['remote_logging_url'] = isset($admin_config->remote_logging_url) |
|
57 | + && ! empty($admin_config->remote_logging_url) |
|
58 | + ? stripslashes($admin_config->remote_logging_url) |
|
59 | + : ''; |
|
60 | 60 | |
61 | - $template = GEN_SET_CAF_TEMPLATE_PATH . 'debug_log_settings.template.php'; |
|
62 | - EEH_Template::display_template($template, $template_args); |
|
63 | - } |
|
61 | + $template = GEN_SET_CAF_TEMPLATE_PATH . 'debug_log_settings.template.php'; |
|
62 | + EEH_Template::display_template($template, $template_args); |
|
63 | + } |
|
64 | 64 | |
65 | 65 | |
66 | - /** |
|
67 | - * update_debug_logging_options |
|
68 | - * |
|
69 | - * @param EE_Admin_Config $admin_options |
|
70 | - * |
|
71 | - * @return EE_Admin_Config |
|
72 | - */ |
|
73 | - public function update_debug_logging_options(EE_Admin_Config $admin_options): EE_Admin_Config |
|
74 | - { |
|
75 | - $admin_options->use_remote_logging = $this->request->getRequestParam( |
|
76 | - 'use_remote_logging', |
|
77 | - $admin_options->use_remote_logging, |
|
78 | - DataType::BOOL |
|
79 | - ); |
|
80 | - $admin_options->remote_logging_url = $this->request->getRequestParam( |
|
81 | - 'remote_logging_url', |
|
82 | - $admin_options->remote_logging_url, |
|
83 | - DataType::URL |
|
84 | - ); |
|
85 | - return $admin_options; |
|
86 | - } |
|
66 | + /** |
|
67 | + * update_debug_logging_options |
|
68 | + * |
|
69 | + * @param EE_Admin_Config $admin_options |
|
70 | + * |
|
71 | + * @return EE_Admin_Config |
|
72 | + */ |
|
73 | + public function update_debug_logging_options(EE_Admin_Config $admin_options): EE_Admin_Config |
|
74 | + { |
|
75 | + $admin_options->use_remote_logging = $this->request->getRequestParam( |
|
76 | + 'use_remote_logging', |
|
77 | + $admin_options->use_remote_logging, |
|
78 | + DataType::BOOL |
|
79 | + ); |
|
80 | + $admin_options->remote_logging_url = $this->request->getRequestParam( |
|
81 | + 'remote_logging_url', |
|
82 | + $admin_options->remote_logging_url, |
|
83 | + DataType::URL |
|
84 | + ); |
|
85 | + return $admin_options; |
|
86 | + } |
|
87 | 87 | } |
@@ -19,13 +19,13 @@ discard block |
||
19 | 19 | public function __construct($routing = true) |
20 | 20 | { |
21 | 21 | parent::__construct($routing); |
22 | - define('GEN_SET_CAF_TEMPLATE_PATH', EE_CORE_CAF_ADMIN_EXTEND . 'general_settings/templates/'); |
|
22 | + define('GEN_SET_CAF_TEMPLATE_PATH', EE_CORE_CAF_ADMIN_EXTEND.'general_settings/templates/'); |
|
23 | 23 | } |
24 | 24 | |
25 | 25 | |
26 | 26 | protected function _extend_page_config() |
27 | 27 | { |
28 | - $this->_admin_base_path = EE_CORE_CAF_ADMIN_EXTEND . 'general_settings'; |
|
28 | + $this->_admin_base_path = EE_CORE_CAF_ADMIN_EXTEND.'general_settings'; |
|
29 | 29 | |
30 | 30 | // filters and action hooks here |
31 | 31 | add_action('AHEE__admin_option_settings__template__before', [$this, 'debug_logging_options'], 9); |
@@ -58,7 +58,7 @@ discard block |
||
58 | 58 | ? stripslashes($admin_config->remote_logging_url) |
59 | 59 | : ''; |
60 | 60 | |
61 | - $template = GEN_SET_CAF_TEMPLATE_PATH . 'debug_log_settings.template.php'; |
|
61 | + $template = GEN_SET_CAF_TEMPLATE_PATH.'debug_log_settings.template.php'; |
|
62 | 62 | EEH_Template::display_template($template, $template_args); |
63 | 63 | } |
64 | 64 |
@@ -2,137 +2,137 @@ 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 | 79 | // Reference: domains/core/admin/blocks/src/event/controls/SelectEvent.tsx:22 |
80 | - __( 'Select Event', 'event_espresso' ), |
|
80 | + __('Select Event', 'event_espresso'), |
|
81 | 81 | |
82 | 82 | // Reference: domains/core/admin/blocks/src/event-attendees/controls/SelectOrderBy.tsx:11 |
83 | - __( 'Attendee id', 'event_espresso' ), |
|
83 | + __('Attendee id', 'event_espresso'), |
|
84 | 84 | |
85 | 85 | // Reference: domains/core/admin/blocks/src/event-attendees/controls/SelectOrderBy.tsx:15 |
86 | - __( 'Last name only', 'event_espresso' ), |
|
86 | + __('Last name only', 'event_espresso'), |
|
87 | 87 | |
88 | 88 | // Reference: domains/core/admin/blocks/src/event-attendees/controls/SelectOrderBy.tsx:19 |
89 | - __( 'First name only', 'event_espresso' ), |
|
89 | + __('First name only', 'event_espresso'), |
|
90 | 90 | |
91 | 91 | // Reference: domains/core/admin/blocks/src/event-attendees/controls/SelectOrderBy.tsx:23 |
92 | - __( 'First, then Last name', 'event_espresso' ), |
|
92 | + __('First, then Last name', 'event_espresso'), |
|
93 | 93 | |
94 | 94 | // Reference: domains/core/admin/blocks/src/event-attendees/controls/SelectOrderBy.tsx:27 |
95 | - __( 'Last, then First name', 'event_espresso' ), |
|
95 | + __('Last, then First name', 'event_espresso'), |
|
96 | 96 | |
97 | 97 | // Reference: domains/core/admin/blocks/src/event-attendees/controls/SelectOrderBy.tsx:41 |
98 | - __( 'Order Attendees by:', 'event_espresso' ), |
|
98 | + __('Order Attendees by:', 'event_espresso'), |
|
99 | 99 | |
100 | 100 | // Reference: domains/core/admin/blocks/src/event-attendees/controls/SelectTicket.tsx:22 |
101 | - __( 'Select Ticket', 'event_espresso' ), |
|
101 | + __('Select Ticket', 'event_espresso'), |
|
102 | 102 | |
103 | 103 | // Reference: domains/core/admin/blocks/src/event-attendees/controls/index.tsx:21 |
104 | - __( 'Filter By Settings', 'event_espresso' ), |
|
104 | + __('Filter By Settings', 'event_espresso'), |
|
105 | 105 | |
106 | 106 | // Reference: domains/core/admin/blocks/src/event-attendees/controls/index.tsx:36 |
107 | - __( 'Gravatar Setttings', 'event_espresso' ), |
|
107 | + __('Gravatar Setttings', 'event_espresso'), |
|
108 | 108 | |
109 | 109 | // Reference: domains/core/admin/blocks/src/event-attendees/controls/index.tsx:39 |
110 | - __( 'Archive Settings', 'event_espresso' ), |
|
110 | + __('Archive Settings', 'event_espresso'), |
|
111 | 111 | |
112 | 112 | // Reference: domains/core/admin/blocks/src/event-attendees/index.tsx:10 |
113 | - __( 'Event Attendees', 'event_espresso' ), |
|
113 | + __('Event Attendees', 'event_espresso'), |
|
114 | 114 | |
115 | 115 | // Reference: domains/core/admin/blocks/src/event-attendees/index.tsx:11 |
116 | - __( 'Displays a list of people that have registered for the specified event', 'event_espresso' ), |
|
116 | + __('Displays a list of people that have registered for the specified event', 'event_espresso'), |
|
117 | 117 | |
118 | 118 | // Reference: domains/core/admin/blocks/src/event-attendees/index.tsx:14 |
119 | 119 | // Reference: domains/core/admin/blocks/src/event/index.tsx:12 |
120 | 120 | // Reference: packages/edtr-services/src/constants.ts:25 |
121 | - __( 'event', 'event_espresso' ), |
|
121 | + __('event', 'event_espresso'), |
|
122 | 122 | |
123 | 123 | // Reference: domains/core/admin/blocks/src/event-attendees/index.tsx:14 |
124 | - __( 'attendees', 'event_espresso' ), |
|
124 | + __('attendees', 'event_espresso'), |
|
125 | 125 | |
126 | 126 | // Reference: domains/core/admin/blocks/src/event-attendees/index.tsx:14 |
127 | - __( 'list', 'event_espresso' ), |
|
127 | + __('list', 'event_espresso'), |
|
128 | 128 | |
129 | 129 | // Reference: domains/core/admin/blocks/src/event/DisplayField.tsx:41 |
130 | - __( 'An unknown error occurred while fetching event details.', 'event_espresso' ), |
|
130 | + __('An unknown error occurred while fetching event details.', 'event_espresso'), |
|
131 | 131 | |
132 | 132 | // Reference: domains/core/admin/blocks/src/event/controls/SelectField.tsx:10 |
133 | 133 | // Reference: domains/core/admin/blocks/src/services/utils.ts:24 |
134 | 134 | // Reference: packages/utils/src/list/index.ts:14 |
135 | - __( 'Select…', 'event_espresso' ), |
|
135 | + __('Select…', 'event_espresso'), |
|
136 | 136 | |
137 | 137 | // Reference: domains/core/admin/blocks/src/event/controls/SelectField.tsx:15 |
138 | 138 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/dateForm/useDateFormConfig.ts:75 |
@@ -141,7 +141,7 @@ discard block |
||
141 | 141 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketForm/useTicketFormConfig.ts:195 |
142 | 142 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/bulkEdit/details/useBulkEditFormConfig.ts:49 |
143 | 143 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/tableView/useHeaderRowGenerator.tsx:40 |
144 | - __( 'Name', 'event_espresso' ), |
|
144 | + __('Name', 'event_espresso'), |
|
145 | 145 | |
146 | 146 | // Reference: domains/core/admin/blocks/src/event/controls/SelectField.tsx:19 |
147 | 147 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/dateForm/useDateFormConfig.ts:80 |
@@ -149,401 +149,401 @@ discard block |
||
149 | 149 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketForm/useTicketFormConfig.ts:200 |
150 | 150 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/bulkEdit/details/useBulkEditFormConfig.ts:55 |
151 | 151 | // Reference: packages/tpc/src/components/table/useHeaderRowGenerator.ts:47 |
152 | - __( 'Description', 'event_espresso' ), |
|
152 | + __('Description', 'event_espresso'), |
|
153 | 153 | |
154 | 154 | // Reference: domains/core/admin/blocks/src/event/controls/SelectField.tsx:23 |
155 | - __( 'Short description', 'event_espresso' ), |
|
155 | + __('Short description', 'event_espresso'), |
|
156 | 156 | |
157 | 157 | // Reference: domains/core/admin/blocks/src/event/controls/SelectField.tsx:35 |
158 | - __( 'Select Field', 'event_espresso' ), |
|
158 | + __('Select Field', 'event_espresso'), |
|
159 | 159 | |
160 | 160 | // Reference: domains/core/admin/blocks/src/event/controls/index.tsx:27 |
161 | - __( 'Text Color', 'event_espresso' ), |
|
161 | + __('Text Color', 'event_espresso'), |
|
162 | 162 | |
163 | 163 | // Reference: domains/core/admin/blocks/src/event/controls/index.tsx:32 |
164 | - __( 'Background Color', 'event_espresso' ), |
|
164 | + __('Background Color', 'event_espresso'), |
|
165 | 165 | |
166 | 166 | // Reference: domains/core/admin/blocks/src/event/controls/index.tsx:41 |
167 | 167 | // Reference: packages/form-builder/src/FormElement/Tabs/FormElementTabs.tsx:22 |
168 | 168 | // Reference: packages/form-builder/src/FormSection/Tabs/FormSectionTabs.tsx:21 |
169 | - __( 'Settings', 'event_espresso' ), |
|
169 | + __('Settings', 'event_espresso'), |
|
170 | 170 | |
171 | 171 | // Reference: domains/core/admin/blocks/src/event/controls/index.tsx:45 |
172 | - __( 'Typography', 'event_espresso' ), |
|
172 | + __('Typography', 'event_espresso'), |
|
173 | 173 | |
174 | 174 | // Reference: domains/core/admin/blocks/src/event/controls/index.tsx:48 |
175 | - __( 'Color', 'event_espresso' ), |
|
175 | + __('Color', 'event_espresso'), |
|
176 | 176 | |
177 | 177 | // Reference: domains/core/admin/blocks/src/event/index.tsx:12 |
178 | - __( 'field', 'event_espresso' ), |
|
178 | + __('field', 'event_espresso'), |
|
179 | 179 | |
180 | 180 | // Reference: domains/core/admin/blocks/src/event/index.tsx:8 |
181 | - __( 'Event Field', 'event_espresso' ), |
|
181 | + __('Event Field', 'event_espresso'), |
|
182 | 182 | |
183 | 183 | // Reference: domains/core/admin/blocks/src/event/index.tsx:9 |
184 | - __( 'Displays the selected field of an event', 'event_espresso' ), |
|
184 | + __('Displays the selected field of an event', 'event_espresso'), |
|
185 | 185 | |
186 | 186 | // Reference: domains/core/admin/blocks/src/services/utils.ts:17 |
187 | - __( 'Error', 'event_espresso' ), |
|
187 | + __('Error', 'event_espresso'), |
|
188 | 188 | |
189 | 189 | // Reference: domains/core/admin/blocks/src/services/utils.ts:9 |
190 | - __( 'Loading…', 'event_espresso' ), |
|
190 | + __('Loading…', 'event_espresso'), |
|
191 | 191 | |
192 | 192 | // Reference: domains/core/admin/eventEditor/src/ui/EventDescription.tsx:33 |
193 | - __( 'Event Description', 'event_espresso' ), |
|
193 | + __('Event Description', 'event_espresso'), |
|
194 | 194 | |
195 | 195 | // Reference: domains/core/admin/eventEditor/src/ui/EventRegistrationOptions/ActiveStatus.tsx:29 |
196 | - __( 'Active status', 'event_espresso' ), |
|
196 | + __('Active status', 'event_espresso'), |
|
197 | 197 | |
198 | 198 | // Reference: domains/core/admin/eventEditor/src/ui/EventRegistrationOptions/AltRegPage.tsx:12 |
199 | - __( 'Alternative Registration Page', 'event_espresso' ), |
|
199 | + __('Alternative Registration Page', 'event_espresso'), |
|
200 | 200 | |
201 | 201 | // Reference: domains/core/admin/eventEditor/src/ui/EventRegistrationOptions/DefaultRegistrationStatus.tsx:26 |
202 | - __( 'Default Registration Status', 'event_espresso' ), |
|
202 | + __('Default Registration Status', 'event_espresso'), |
|
203 | 203 | |
204 | 204 | // Reference: domains/core/admin/eventEditor/src/ui/EventRegistrationOptions/Donations.tsx:8 |
205 | - __( 'Donations Enabled', 'event_espresso' ), |
|
205 | + __('Donations Enabled', 'event_espresso'), |
|
206 | 206 | |
207 | 207 | // Reference: domains/core/admin/eventEditor/src/ui/EventRegistrationOptions/Donations.tsx:8 |
208 | - __( 'Donations Disabled', 'event_espresso' ), |
|
208 | + __('Donations Disabled', 'event_espresso'), |
|
209 | 209 | |
210 | 210 | // Reference: domains/core/admin/eventEditor/src/ui/EventRegistrationOptions/EventManager.tsx:16 |
211 | - __( 'Event Manager', 'event_espresso' ), |
|
211 | + __('Event Manager', 'event_espresso'), |
|
212 | 212 | |
213 | 213 | // Reference: domains/core/admin/eventEditor/src/ui/EventRegistrationOptions/EventPhoneNumber.tsx:15 |
214 | - __( 'Event Phone Number', 'event_espresso' ), |
|
214 | + __('Event Phone Number', 'event_espresso'), |
|
215 | 215 | |
216 | 216 | // Reference: domains/core/admin/eventEditor/src/ui/EventRegistrationOptions/MaxRegistrations.tsx:13 |
217 | - __( 'Max Registrations per Transaction', 'event_espresso' ), |
|
217 | + __('Max Registrations per Transaction', 'event_espresso'), |
|
218 | 218 | |
219 | 219 | // Reference: domains/core/admin/eventEditor/src/ui/EventRegistrationOptions/TicketSelector.tsx:8 |
220 | - __( 'Ticket Selector Enabled', 'event_espresso' ), |
|
220 | + __('Ticket Selector Enabled', 'event_espresso'), |
|
221 | 221 | |
222 | 222 | // Reference: domains/core/admin/eventEditor/src/ui/EventRegistrationOptions/TicketSelector.tsx:8 |
223 | - __( 'Ticket Selector Disabled', 'event_espresso' ), |
|
223 | + __('Ticket Selector Disabled', 'event_espresso'), |
|
224 | 224 | |
225 | 225 | // Reference: domains/core/admin/eventEditor/src/ui/EventRegistrationOptions/index.tsx:41 |
226 | - __( 'Event Details', 'event_espresso' ), |
|
226 | + __('Event Details', 'event_espresso'), |
|
227 | 227 | |
228 | 228 | // Reference: domains/core/admin/eventEditor/src/ui/EventRegistrationOptions/index.tsx:47 |
229 | - __( 'Registration Options', 'event_espresso' ), |
|
229 | + __('Registration Options', 'event_espresso'), |
|
230 | 230 | |
231 | 231 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/dateForm/multiStep/DateFormSteps.tsx:10 |
232 | - __( 'primary information about the date', 'event_espresso' ), |
|
232 | + __('primary information about the date', 'event_espresso'), |
|
233 | 233 | |
234 | 234 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/dateForm/multiStep/DateFormSteps.tsx:10 |
235 | - __( 'Date Details', 'event_espresso' ), |
|
235 | + __('Date Details', 'event_espresso'), |
|
236 | 236 | |
237 | 237 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/dateForm/multiStep/DateFormSteps.tsx:11 |
238 | 238 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/defaultTickets/multiStep/TicketFormSteps.tsx:16 |
239 | 239 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketForm/multiStep/TicketFormSteps.tsx:16 |
240 | - __( 'relations between tickets and dates', 'event_espresso' ), |
|
240 | + __('relations between tickets and dates', 'event_espresso'), |
|
241 | 241 | |
242 | 242 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/dateForm/multiStep/DateFormSteps.tsx:11 |
243 | - __( 'Assign Tickets', 'event_espresso' ), |
|
243 | + __('Assign Tickets', 'event_espresso'), |
|
244 | 244 | |
245 | 245 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/dateForm/multiStep/FooterButtons.tsx:22 |
246 | - __( 'Save and assign tickets', 'event_espresso' ), |
|
246 | + __('Save and assign tickets', 'event_espresso'), |
|
247 | 247 | |
248 | 248 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/dateForm/multiStep/Modal.tsx:27 |
249 | 249 | /* translators: %s datetime id */ |
250 | - __( 'Edit datetime %s', 'event_espresso' ), |
|
250 | + __('Edit datetime %s', 'event_espresso'), |
|
251 | 251 | |
252 | 252 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/dateForm/multiStep/Modal.tsx:30 |
253 | - __( 'New Datetime', 'event_espresso' ), |
|
253 | + __('New Datetime', 'event_espresso'), |
|
254 | 254 | |
255 | 255 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/dateForm/useDateFormConfig.ts:110 |
256 | 256 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/bulkEdit/details/useBulkEditFormConfig.ts:108 |
257 | 257 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketForm/useTicketFormConfig.ts:230 |
258 | 258 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/bulkEdit/details/useBulkEditFormConfig.ts:108 |
259 | - __( 'Details', 'event_espresso' ), |
|
259 | + __('Details', 'event_espresso'), |
|
260 | 260 | |
261 | 261 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/dateForm/useDateFormConfig.ts:114 |
262 | 262 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/bulkEdit/details/useBulkEditFormConfig.ts:112 |
263 | 263 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/tableView/useHeaderRowGenerator.tsx:81 |
264 | - __( 'Capacity', 'event_espresso' ), |
|
264 | + __('Capacity', 'event_espresso'), |
|
265 | 265 | |
266 | 266 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/dateForm/useDateFormConfig.ts:119 |
267 | - __( 'The maximum number of registrants that can attend the event at this particular date.', 'event_espresso' ), |
|
267 | + __('The maximum number of registrants that can attend the event at this particular date.', 'event_espresso'), |
|
268 | 268 | |
269 | 269 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/dateForm/useDateFormConfig.ts:123 |
270 | - __( 'Set to 0 to close registration or leave blank for no limit.', 'event_espresso' ), |
|
270 | + __('Set to 0 to close registration or leave blank for no limit.', 'event_espresso'), |
|
271 | 271 | |
272 | 272 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/dateForm/useDateFormConfig.ts:129 |
273 | 273 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketForm/useTicketFormConfig.ts:168 |
274 | - __( 'Trash', 'event_espresso' ), |
|
274 | + __('Trash', 'event_espresso'), |
|
275 | 275 | |
276 | 276 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/dateForm/useDateFormConfig.ts:71 |
277 | 277 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/bulkEdit/details/useBulkEditFormConfig.ts:45 |
278 | 278 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketForm/useTicketFormConfig.ts:191 |
279 | 279 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/bulkEdit/details/useBulkEditFormConfig.ts:45 |
280 | - __( 'Basics', 'event_espresso' ), |
|
280 | + __('Basics', 'event_espresso'), |
|
281 | 281 | |
282 | 282 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/dateForm/useDateFormConfig.ts:88 |
283 | 283 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/bulkEdit/details/useBulkEditFormConfig.ts:63 |
284 | 284 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/bulkEdit/details/useBulkEditFormConfig.ts:63 |
285 | - __( 'Dates', 'event_espresso' ), |
|
285 | + __('Dates', 'event_espresso'), |
|
286 | 286 | |
287 | 287 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/dateForm/useDateFormConfig.ts:92 |
288 | 288 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/tableView/useHeaderRowGenerator.tsx:51 |
289 | 289 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketForm/useTicketFormConfig.ts:212 |
290 | - __( 'Start Date', 'event_espresso' ), |
|
290 | + __('Start Date', 'event_espresso'), |
|
291 | 291 | |
292 | 292 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/dateForm/useDateFormConfig.ts:99 |
293 | 293 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/tableView/useHeaderRowGenerator.tsx:65 |
294 | 294 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketForm/useTicketFormConfig.ts:219 |
295 | - __( 'End Date', 'event_espresso' ), |
|
295 | + __('End Date', 'event_espresso'), |
|
296 | 296 | |
297 | 297 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/DateRegistrationsLink.tsx:13 |
298 | - __( 'view ALL registrations for this date.', 'event_espresso' ), |
|
298 | + __('view ALL registrations for this date.', 'event_espresso'), |
|
299 | 299 | |
300 | 300 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/DateSoldLink.tsx:13 |
301 | - __( 'view approved registrations for this date.', 'event_espresso' ), |
|
301 | + __('view approved registrations for this date.', 'event_espresso'), |
|
302 | 302 | |
303 | 303 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/DatesList.tsx:35 |
304 | 304 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/tableView/TableView.tsx:33 |
305 | - __( 'Event Dates', 'event_espresso' ), |
|
305 | + __('Event Dates', 'event_espresso'), |
|
306 | 306 | |
307 | 307 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/DatesList.tsx:38 |
308 | - __( 'loading event dates…', 'event_espresso' ), |
|
308 | + __('loading event dates…', 'event_espresso'), |
|
309 | 309 | |
310 | 310 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/DatesListButtons.tsx:22 |
311 | - __( 'Add a date or a ticket in order to use Ticket Assignment Manager', 'event_espresso' ), |
|
311 | + __('Add a date or a ticket in order to use Ticket Assignment Manager', 'event_espresso'), |
|
312 | 312 | |
313 | 313 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/DatesListButtons.tsx:32 |
314 | - __( 'Ticket Assignments', 'event_espresso' ), |
|
314 | + __('Ticket Assignments', 'event_espresso'), |
|
315 | 315 | |
316 | 316 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/actionsMenu/AssignTicketsButton.tsx:25 |
317 | - __( 'Number of related tickets', 'event_espresso' ), |
|
317 | + __('Number of related tickets', 'event_espresso'), |
|
318 | 318 | |
319 | 319 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/actionsMenu/AssignTicketsButton.tsx:26 |
320 | - __( 'There are no tickets assigned to this datetime. Please click the ticket icon to update the assignments.', 'event_espresso' ), |
|
320 | + __('There are no tickets assigned to this datetime. Please click the ticket icon to update the assignments.', 'event_espresso'), |
|
321 | 321 | |
322 | 322 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/actionsMenu/AssignTicketsButton.tsx:34 |
323 | - __( 'assign tickets', 'event_espresso' ), |
|
323 | + __('assign tickets', 'event_espresso'), |
|
324 | 324 | |
325 | 325 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/actionsMenu/dropdown/DateMainMenu.tsx:25 |
326 | - __( 'Permanently delete Datetime?', 'event_espresso' ), |
|
326 | + __('Permanently delete Datetime?', 'event_espresso'), |
|
327 | 327 | |
328 | 328 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/actionsMenu/dropdown/DateMainMenu.tsx:25 |
329 | - __( 'Move Datetime to Trash?', 'event_espresso' ), |
|
329 | + __('Move Datetime to Trash?', 'event_espresso'), |
|
330 | 330 | |
331 | 331 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/actionsMenu/dropdown/DateMainMenu.tsx:27 |
332 | - __( 'Are you sure you want to permanently delete this datetime? This action is permanent and can not be undone.', 'event_espresso' ), |
|
332 | + __('Are you sure you want to permanently delete this datetime? This action is permanent and can not be undone.', 'event_espresso'), |
|
333 | 333 | |
334 | 334 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/actionsMenu/dropdown/DateMainMenu.tsx:30 |
335 | - __( 'Are you sure you want to move this datetime to the trash? You can "untrash" this datetime later if you need to.', 'event_espresso' ), |
|
335 | + __('Are you sure you want to move this datetime to the trash? You can "untrash" this datetime later if you need to.', 'event_espresso'), |
|
336 | 336 | |
337 | 337 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/actionsMenu/dropdown/DateMainMenu.tsx:39 |
338 | 338 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/actionsMenu/dropdown/DeleteTicket.tsx:44 |
339 | - __( 'delete permanently', 'event_espresso' ), |
|
339 | + __('delete permanently', 'event_espresso'), |
|
340 | 340 | |
341 | 341 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/actionsMenu/dropdown/DateMainMenu.tsx:39 |
342 | - __( 'trash datetime', 'event_espresso' ), |
|
342 | + __('trash datetime', 'event_espresso'), |
|
343 | 343 | |
344 | 344 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/actionsMenu/dropdown/DateMainMenu.tsx:45 |
345 | - __( 'event date main menu', 'event_espresso' ), |
|
345 | + __('event date main menu', 'event_espresso'), |
|
346 | 346 | |
347 | 347 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/actionsMenu/dropdown/DateMainMenu.tsx:59 |
348 | - __( 'edit datetime', 'event_espresso' ), |
|
348 | + __('edit datetime', 'event_espresso'), |
|
349 | 349 | |
350 | 350 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/actionsMenu/dropdown/DateMainMenu.tsx:60 |
351 | - __( 'copy datetime', 'event_espresso' ), |
|
351 | + __('copy datetime', 'event_espresso'), |
|
352 | 352 | |
353 | 353 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/bulkEdit/actions/Actions.tsx:36 |
354 | 354 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/bulkEdit/actions/Actions.tsx:40 |
355 | 355 | // Reference: packages/ui-components/src/bulkEdit/BulkActions.tsx:43 |
356 | - __( 'bulk actions', 'event_espresso' ), |
|
356 | + __('bulk actions', 'event_espresso'), |
|
357 | 357 | |
358 | 358 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/bulkEdit/actions/Actions.tsx:40 |
359 | - __( 'edit datetime details', 'event_espresso' ), |
|
359 | + __('edit datetime details', 'event_espresso'), |
|
360 | 360 | |
361 | 361 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/bulkEdit/actions/Actions.tsx:44 |
362 | - __( 'delete datetimes', 'event_espresso' ), |
|
362 | + __('delete datetimes', 'event_espresso'), |
|
363 | 363 | |
364 | 364 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/bulkEdit/actions/Actions.tsx:44 |
365 | - __( 'trash datetimes', 'event_espresso' ), |
|
365 | + __('trash datetimes', 'event_espresso'), |
|
366 | 366 | |
367 | 367 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/bulkEdit/delete/Delete.tsx:14 |
368 | - __( 'Are you sure you want to permanently delete these datetimes? This action can NOT be undone!', 'event_espresso' ), |
|
368 | + __('Are you sure you want to permanently delete these datetimes? This action can NOT be undone!', 'event_espresso'), |
|
369 | 369 | |
370 | 370 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/bulkEdit/delete/Delete.tsx:15 |
371 | - __( 'Are you sure you want to trash these datetimes?', 'event_espresso' ), |
|
371 | + __('Are you sure you want to trash these datetimes?', 'event_espresso'), |
|
372 | 372 | |
373 | 373 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/bulkEdit/delete/Delete.tsx:16 |
374 | - __( 'Delete datetimes permanently', 'event_espresso' ), |
|
374 | + __('Delete datetimes permanently', 'event_espresso'), |
|
375 | 375 | |
376 | 376 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/bulkEdit/delete/Delete.tsx:16 |
377 | - __( 'Trash datetimes', 'event_espresso' ), |
|
377 | + __('Trash datetimes', 'event_espresso'), |
|
378 | 378 | |
379 | 379 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/bulkEdit/details/EditDetails.tsx:21 |
380 | - __( 'Bulk edit date details', 'event_espresso' ), |
|
380 | + __('Bulk edit date details', 'event_espresso'), |
|
381 | 381 | |
382 | 382 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/bulkEdit/details/EditDetails.tsx:22 |
383 | - __( 'any changes will be applied to ALL of the selected dates.', 'event_espresso' ), |
|
383 | + __('any changes will be applied to ALL of the selected dates.', 'event_espresso'), |
|
384 | 384 | |
385 | 385 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/bulkEdit/details/formValidation.ts:12 |
386 | 386 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/bulkEdit/details/formValidation.ts:12 |
387 | - __( 'Name must be at least three characters', 'event_espresso' ), |
|
387 | + __('Name must be at least three characters', 'event_espresso'), |
|
388 | 388 | |
389 | 389 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/bulkEdit/details/useBulkEditFormConfig.ts:67 |
390 | 390 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/bulkEdit/details/useBulkEditFormConfig.ts:67 |
391 | - __( 'Shift dates', 'event_espresso' ), |
|
391 | + __('Shift dates', 'event_espresso'), |
|
392 | 392 | |
393 | 393 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/bulkEdit/details/useBulkEditFormConfig.ts:92 |
394 | 394 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/bulkEdit/details/useBulkEditFormConfig.ts:92 |
395 | - __( 'earlier', 'event_espresso' ), |
|
395 | + __('earlier', 'event_espresso'), |
|
396 | 396 | |
397 | 397 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/bulkEdit/details/useBulkEditFormConfig.ts:96 |
398 | 398 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/bulkEdit/details/useBulkEditFormConfig.ts:96 |
399 | - __( 'later', 'event_espresso' ), |
|
399 | + __('later', 'event_espresso'), |
|
400 | 400 | |
401 | 401 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/cardView/DateCapacity.tsx:31 |
402 | 402 | /* translators: click to edit capacity<linebreak>(registration limit)… */ |
403 | - __( 'click to edit capacity%s(registration limit)…', 'event_espresso' ), |
|
403 | + __('click to edit capacity%s(registration limit)…', 'event_espresso'), |
|
404 | 404 | |
405 | 405 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/cardView/DateCardSidebar.tsx:31 |
406 | 406 | // Reference: packages/ee-components/src/SimpleTicketCard/SimpleTicketCard.tsx:27 |
407 | 407 | // Reference: packages/ui-components/src/CalendarDateSwitcher/CalendarDateSwitcher.tsx:34 |
408 | - __( 'starts', 'event_espresso' ), |
|
408 | + __('starts', 'event_espresso'), |
|
409 | 409 | |
410 | 410 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/cardView/DateCardSidebar.tsx:32 |
411 | 411 | // Reference: packages/ee-components/src/SimpleTicketCard/SimpleTicketCard.tsx:34 |
412 | 412 | // Reference: packages/ui-components/src/CalendarDateSwitcher/CalendarDateSwitcher.tsx:47 |
413 | - __( 'ends', 'event_espresso' ), |
|
413 | + __('ends', 'event_espresso'), |
|
414 | 414 | |
415 | 415 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/cardView/DateCardSidebar.tsx:32 |
416 | - __( 'started', 'event_espresso' ), |
|
416 | + __('started', 'event_espresso'), |
|
417 | 417 | |
418 | 418 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/cardView/DateCardSidebar.tsx:32 |
419 | - __( 'ended', 'event_espresso' ), |
|
419 | + __('ended', 'event_espresso'), |
|
420 | 420 | |
421 | 421 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/cardView/DateCardSidebar.tsx:46 |
422 | - __( 'Edit Event Date', 'event_espresso' ), |
|
422 | + __('Edit Event Date', 'event_espresso'), |
|
423 | 423 | |
424 | 424 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/cardView/DateCardSidebar.tsx:50 |
425 | - __( 'edit start and end dates', 'event_espresso' ), |
|
425 | + __('edit start and end dates', 'event_espresso'), |
|
426 | 426 | |
427 | 427 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/cardView/DateDetailsPanel.tsx:16 |
428 | 428 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/cardView/TicketDetailsPanel.tsx:16 |
429 | - __( 'sold', 'event_espresso' ), |
|
429 | + __('sold', 'event_espresso'), |
|
430 | 430 | |
431 | 431 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/cardView/DateDetailsPanel.tsx:21 |
432 | - __( 'capacity', 'event_espresso' ), |
|
432 | + __('capacity', 'event_espresso'), |
|
433 | 433 | |
434 | 434 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/cardView/DateDetailsPanel.tsx:27 |
435 | 435 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/cardView/TicketDetailsPanel.tsx:26 |
436 | - __( 'reg list', 'event_espresso' ), |
|
436 | + __('reg list', 'event_espresso'), |
|
437 | 437 | |
438 | 438 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/cardView/Details.tsx:43 |
439 | 439 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/cardView/Details.tsx:35 |
440 | - __( 'add description…', 'event_espresso' ), |
|
440 | + __('add description…', 'event_espresso'), |
|
441 | 441 | |
442 | 442 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/cardView/Details.tsx:44 |
443 | 443 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/cardView/Details.tsx:36 |
444 | - __( 'Edit description', 'event_espresso' ), |
|
444 | + __('Edit description', 'event_espresso'), |
|
445 | 445 | |
446 | 446 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/cardView/Details.tsx:45 |
447 | 447 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/cardView/Details.tsx:37 |
448 | - __( 'click to edit description…', 'event_espresso' ), |
|
448 | + __('click to edit description…', 'event_espresso'), |
|
449 | 449 | |
450 | 450 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/config.ts:10 |
451 | - __( 'Move Date to Trash', 'event_espresso' ), |
|
451 | + __('Move Date to Trash', 'event_espresso'), |
|
452 | 452 | |
453 | 453 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/config.ts:13 |
454 | 454 | // Reference: packages/constants/src/datetime.ts:6 |
455 | - __( 'Active', 'event_espresso' ), |
|
455 | + __('Active', 'event_espresso'), |
|
456 | 456 | |
457 | 457 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/config.ts:14 |
458 | 458 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/config.ts:13 |
459 | - __( 'Trashed', 'event_espresso' ), |
|
459 | + __('Trashed', 'event_espresso'), |
|
460 | 460 | |
461 | 461 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/config.ts:15 |
462 | 462 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/config.ts:14 |
463 | 463 | // Reference: packages/constants/src/datetime.ts:8 |
464 | - __( 'Expired', 'event_espresso' ), |
|
464 | + __('Expired', 'event_espresso'), |
|
465 | 465 | |
466 | 466 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/config.ts:16 |
467 | 467 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/config.ts:16 |
468 | - __( 'Sold Out', 'event_espresso' ), |
|
468 | + __('Sold Out', 'event_espresso'), |
|
469 | 469 | |
470 | 470 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/config.ts:17 |
471 | 471 | // Reference: packages/constants/src/datetime.ts:12 |
472 | - __( 'Upcoming', 'event_espresso' ), |
|
472 | + __('Upcoming', 'event_espresso'), |
|
473 | 473 | |
474 | 474 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/config.ts:7 |
475 | - __( 'Edit Event Date Details', 'event_espresso' ), |
|
475 | + __('Edit Event Date Details', 'event_espresso'), |
|
476 | 476 | |
477 | 477 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/config.ts:8 |
478 | - __( 'View Registrations for this Date', 'event_espresso' ), |
|
478 | + __('View Registrations for this Date', 'event_espresso'), |
|
479 | 479 | |
480 | 480 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/config.ts:9 |
481 | - __( 'Manage Ticket Assignments', 'event_espresso' ), |
|
481 | + __('Manage Ticket Assignments', 'event_espresso'), |
|
482 | 482 | |
483 | 483 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/editable/EditableName.tsx:41 |
484 | 484 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/editable/EditableName.tsx:41 |
485 | - __( 'click to edit title…', 'event_espresso' ), |
|
485 | + __('click to edit title…', 'event_espresso'), |
|
486 | 486 | |
487 | 487 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/editable/EditableName.tsx:42 |
488 | 488 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/editable/EditableName.tsx:42 |
489 | - __( 'add title…', 'event_espresso' ), |
|
489 | + __('add title…', 'event_espresso'), |
|
490 | 490 | |
491 | 491 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/filterBar/ActiveDatesFilters.tsx:17 |
492 | 492 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/filterBar/ActiveTicketsFilters.tsx:17 |
493 | - __( 'ON', 'event_espresso' ), |
|
493 | + __('ON', 'event_espresso'), |
|
494 | 494 | |
495 | 495 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:10 |
496 | - __( 'end dates only', 'event_espresso' ), |
|
496 | + __('end dates only', 'event_espresso'), |
|
497 | 497 | |
498 | 498 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:11 |
499 | - __( 'start and end dates', 'event_espresso' ), |
|
499 | + __('start and end dates', 'event_espresso'), |
|
500 | 500 | |
501 | 501 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:16 |
502 | - __( 'dates above 90% capacity', 'event_espresso' ), |
|
502 | + __('dates above 90% capacity', 'event_espresso'), |
|
503 | 503 | |
504 | 504 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:17 |
505 | - __( 'dates above 75% capacity', 'event_espresso' ), |
|
505 | + __('dates above 75% capacity', 'event_espresso'), |
|
506 | 506 | |
507 | 507 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:18 |
508 | - __( 'dates above 50% capacity', 'event_espresso' ), |
|
508 | + __('dates above 50% capacity', 'event_espresso'), |
|
509 | 509 | |
510 | 510 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:19 |
511 | - __( 'dates below 50% capacity', 'event_espresso' ), |
|
511 | + __('dates below 50% capacity', 'event_espresso'), |
|
512 | 512 | |
513 | 513 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:23 |
514 | - __( 'all dates', 'event_espresso' ), |
|
514 | + __('all dates', 'event_espresso'), |
|
515 | 515 | |
516 | 516 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:24 |
517 | - __( 'all active and upcoming', 'event_espresso' ), |
|
517 | + __('all active and upcoming', 'event_espresso'), |
|
518 | 518 | |
519 | 519 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:25 |
520 | - __( 'active dates only', 'event_espresso' ), |
|
520 | + __('active dates only', 'event_espresso'), |
|
521 | 521 | |
522 | 522 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:26 |
523 | - __( 'upcoming dates only', 'event_espresso' ), |
|
523 | + __('upcoming dates only', 'event_espresso'), |
|
524 | 524 | |
525 | 525 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:27 |
526 | - __( 'next active or upcoming only', 'event_espresso' ), |
|
526 | + __('next active or upcoming only', 'event_espresso'), |
|
527 | 527 | |
528 | 528 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:28 |
529 | - __( 'sold out dates only', 'event_espresso' ), |
|
529 | + __('sold out dates only', 'event_espresso'), |
|
530 | 530 | |
531 | 531 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:29 |
532 | - __( 'recently expired dates', 'event_espresso' ), |
|
532 | + __('recently expired dates', 'event_espresso'), |
|
533 | 533 | |
534 | 534 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:30 |
535 | - __( 'all expired dates', 'event_espresso' ), |
|
535 | + __('all expired dates', 'event_espresso'), |
|
536 | 536 | |
537 | 537 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:31 |
538 | - __( 'trashed dates only', 'event_espresso' ), |
|
538 | + __('trashed dates only', 'event_espresso'), |
|
539 | 539 | |
540 | 540 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:35 |
541 | 541 | // Reference: packages/dates/src/components/DateRangePicker/DateRangePickerLegend.tsx:9 |
542 | 542 | // Reference: packages/dates/src/components/DateRangePicker/index.tsx:61 |
543 | - __( 'start date', 'event_espresso' ), |
|
543 | + __('start date', 'event_espresso'), |
|
544 | 544 | |
545 | 545 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:36 |
546 | - __( 'name', 'event_espresso' ), |
|
546 | + __('name', 'event_espresso'), |
|
547 | 547 | |
548 | 548 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:37 |
549 | 549 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/tableView/useHeaderRowGenerator.tsx:31 |
@@ -551,182 +551,182 @@ discard block |
||
551 | 551 | // Reference: domains/core/admin/eventEditor/src/ui/ticketAssignmentsManager/components/table/HeaderCell.tsx:27 |
552 | 552 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/tableView/useHeaderRowGenerator.tsx:31 |
553 | 553 | // Reference: packages/tpc/src/components/table/useHeaderRowGenerator.ts:23 |
554 | - __( 'ID', 'event_espresso' ), |
|
554 | + __('ID', 'event_espresso'), |
|
555 | 555 | |
556 | 556 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:38 |
557 | 557 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:47 |
558 | - __( 'custom order', 'event_espresso' ), |
|
558 | + __('custom order', 'event_espresso'), |
|
559 | 559 | |
560 | 560 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:42 |
561 | 561 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:51 |
562 | - __( 'display', 'event_espresso' ), |
|
562 | + __('display', 'event_espresso'), |
|
563 | 563 | |
564 | 564 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:43 |
565 | - __( 'recurrence', 'event_espresso' ), |
|
565 | + __('recurrence', 'event_espresso'), |
|
566 | 566 | |
567 | 567 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:44 |
568 | 568 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:53 |
569 | - __( 'sales', 'event_espresso' ), |
|
569 | + __('sales', 'event_espresso'), |
|
570 | 570 | |
571 | 571 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:45 |
572 | 572 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:55 |
573 | - __( 'sort by', 'event_espresso' ), |
|
573 | + __('sort by', 'event_espresso'), |
|
574 | 574 | |
575 | 575 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:46 |
576 | 576 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:54 |
577 | 577 | // Reference: packages/ee-components/src/EntityList/EntityListFilterBar.tsx:46 |
578 | - __( 'search', 'event_espresso' ), |
|
578 | + __('search', 'event_espresso'), |
|
579 | 579 | |
580 | 580 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:47 |
581 | 581 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:56 |
582 | - __( 'status', 'event_espresso' ), |
|
582 | + __('status', 'event_espresso'), |
|
583 | 583 | |
584 | 584 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:9 |
585 | - __( 'start dates only', 'event_espresso' ), |
|
585 | + __('start dates only', 'event_espresso'), |
|
586 | 586 | |
587 | 587 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/newDateOptions/AddSingleDate.tsx:26 |
588 | 588 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/newDateOptions/NewDateModal.tsx:12 |
589 | 589 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/newDateOptions/OptionsModalButton.tsx:18 |
590 | - __( 'Add New Date', 'event_espresso' ), |
|
590 | + __('Add New Date', 'event_espresso'), |
|
591 | 591 | |
592 | 592 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/newDateOptions/AddSingleDate.tsx:26 |
593 | - __( 'Add Single Date', 'event_espresso' ), |
|
593 | + __('Add Single Date', 'event_espresso'), |
|
594 | 594 | |
595 | 595 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/newDateOptions/AddSingleDate.tsx:44 |
596 | - __( 'Add a single date that only occurs once', 'event_espresso' ), |
|
596 | + __('Add a single date that only occurs once', 'event_espresso'), |
|
597 | 597 | |
598 | 598 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/newDateOptions/AddSingleDate.tsx:46 |
599 | - __( 'Single Date', 'event_espresso' ), |
|
599 | + __('Single Date', 'event_espresso'), |
|
600 | 600 | |
601 | 601 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/tableView/useHeaderRowGenerator.tsx:106 |
602 | - __( 'Reg list', 'event_espresso' ), |
|
602 | + __('Reg list', 'event_espresso'), |
|
603 | 603 | |
604 | 604 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/tableView/useHeaderRowGenerator.tsx:107 |
605 | 605 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/tableView/useHeaderRowGenerator.tsx:111 |
606 | - __( 'Regs', 'event_espresso' ), |
|
606 | + __('Regs', 'event_espresso'), |
|
607 | 607 | |
608 | 608 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/tableView/useHeaderRowGenerator.tsx:122 |
609 | 609 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/tableView/useHeaderRowGenerator.tsx:126 |
610 | 610 | // Reference: packages/tpc/src/components/table/useHeaderRowGenerator.ts:59 |
611 | - __( 'Actions', 'event_espresso' ), |
|
611 | + __('Actions', 'event_espresso'), |
|
612 | 612 | |
613 | 613 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/tableView/useHeaderRowGenerator.tsx:52 |
614 | - __( 'Start', 'event_espresso' ), |
|
614 | + __('Start', 'event_espresso'), |
|
615 | 615 | |
616 | 616 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/tableView/useHeaderRowGenerator.tsx:66 |
617 | - __( 'End', 'event_espresso' ), |
|
617 | + __('End', 'event_espresso'), |
|
618 | 618 | |
619 | 619 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/tableView/useHeaderRowGenerator.tsx:82 |
620 | - __( 'Cap', 'event_espresso' ), |
|
620 | + __('Cap', 'event_espresso'), |
|
621 | 621 | |
622 | 622 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/tableView/useHeaderRowGenerator.tsx:94 |
623 | 623 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/tableView/useHeaderRowGenerator.tsx:98 |
624 | - __( 'Sold', 'event_espresso' ), |
|
624 | + __('Sold', 'event_espresso'), |
|
625 | 625 | |
626 | 626 | // Reference: domains/core/admin/eventEditor/src/ui/registrationForm/ErrorMessage.tsx:33 |
627 | 627 | // Reference: packages/form-builder/src/constants.ts:67 |
628 | - __( 'Text Input', 'event_espresso' ), |
|
628 | + __('Text Input', 'event_espresso'), |
|
629 | 629 | |
630 | 630 | // Reference: domains/core/admin/eventEditor/src/ui/registrationForm/ErrorMessage.tsx:34 |
631 | 631 | // Reference: domains/core/admin/eventEditor/src/ui/registrationForm/constants.ts:32 |
632 | - __( 'Attendee First Name', 'event_espresso' ), |
|
632 | + __('Attendee First Name', 'event_espresso'), |
|
633 | 633 | |
634 | 634 | // Reference: domains/core/admin/eventEditor/src/ui/registrationForm/ErrorMessage.tsx:39 |
635 | 635 | /* translators: field name */ |
636 | - __( 'Registration form must have a field of type "%1$s" which maps to "%2$s"', 'event_espresso' ), |
|
636 | + __('Registration form must have a field of type "%1$s" which maps to "%2$s"', 'event_espresso'), |
|
637 | 637 | |
638 | 638 | // Reference: domains/core/admin/eventEditor/src/ui/registrationForm/ErrorMessage.tsx:40 |
639 | 639 | // Reference: packages/form-builder/src/constants.ts:82 |
640 | - __( 'Email Address', 'event_espresso' ), |
|
640 | + __('Email Address', 'event_espresso'), |
|
641 | 641 | |
642 | 642 | // Reference: domains/core/admin/eventEditor/src/ui/registrationForm/ErrorMessage.tsx:41 |
643 | 643 | // Reference: domains/core/admin/eventEditor/src/ui/registrationForm/constants.ts:40 |
644 | - __( 'Attendee Email Address', 'event_espresso' ), |
|
644 | + __('Attendee Email Address', 'event_espresso'), |
|
645 | 645 | |
646 | 646 | // Reference: domains/core/admin/eventEditor/src/ui/registrationForm/ErrorMessage.tsx:49 |
647 | - __( 'Please add the required fields', 'event_espresso' ), |
|
647 | + __('Please add the required fields', 'event_espresso'), |
|
648 | 648 | |
649 | 649 | // Reference: domains/core/admin/eventEditor/src/ui/registrationForm/RegistrationForm.tsx:12 |
650 | - __( 'Registration Form', 'event_espresso' ), |
|
650 | + __('Registration Form', 'event_espresso'), |
|
651 | 651 | |
652 | 652 | // Reference: domains/core/admin/eventEditor/src/ui/registrationForm/constants.ts:13 |
653 | - __( 'primary registrant', 'event_espresso' ), |
|
653 | + __('primary registrant', 'event_espresso'), |
|
654 | 654 | |
655 | 655 | // Reference: domains/core/admin/eventEditor/src/ui/registrationForm/constants.ts:17 |
656 | - __( 'purchaser', 'event_espresso' ), |
|
656 | + __('purchaser', 'event_espresso'), |
|
657 | 657 | |
658 | 658 | // Reference: domains/core/admin/eventEditor/src/ui/registrationForm/constants.ts:21 |
659 | - __( 'registrants', 'event_espresso' ), |
|
659 | + __('registrants', 'event_espresso'), |
|
660 | 660 | |
661 | 661 | // Reference: domains/core/admin/eventEditor/src/ui/registrationForm/constants.ts:36 |
662 | - __( 'Attendee Last Name', 'event_espresso' ), |
|
662 | + __('Attendee Last Name', 'event_espresso'), |
|
663 | 663 | |
664 | 664 | // Reference: domains/core/admin/eventEditor/src/ui/registrationForm/constants.ts:44 |
665 | - __( 'Attendee Address', 'event_espresso' ), |
|
665 | + __('Attendee Address', 'event_espresso'), |
|
666 | 666 | |
667 | 667 | // Reference: domains/core/admin/eventEditor/src/ui/registrationForm/constants.ts:9 |
668 | - __( 'all', 'event_espresso' ), |
|
668 | + __('all', 'event_espresso'), |
|
669 | 669 | |
670 | 670 | // Reference: domains/core/admin/eventEditor/src/ui/ticketAssignmentsManager/components/ErrorMessage.tsx:18 |
671 | - __( 'Tickets must always have at least one date assigned to them but one or more of the tickets below does not have any. |
|
672 | -Please correct the assignments for the highlighted cells.', 'event_espresso' ), |
|
671 | + __('Tickets must always have at least one date assigned to them but one or more of the tickets below does not have any. |
|
672 | +Please correct the assignments for the highlighted cells.', 'event_espresso'), |
|
673 | 673 | |
674 | 674 | // Reference: domains/core/admin/eventEditor/src/ui/ticketAssignmentsManager/components/ErrorMessage.tsx:22 |
675 | - __( '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. |
|
676 | -Please correct the assignments for the highlighted cells.', 'event_espresso' ), |
|
675 | + __('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. |
|
676 | +Please correct the assignments for the highlighted cells.', 'event_espresso'), |
|
677 | 677 | |
678 | 678 | // Reference: domains/core/admin/eventEditor/src/ui/ticketAssignmentsManager/components/ErrorMessage.tsx:32 |
679 | - __( 'Please Update Assignments', 'event_espresso' ), |
|
679 | + __('Please Update Assignments', 'event_espresso'), |
|
680 | 680 | |
681 | 681 | // Reference: domains/core/admin/eventEditor/src/ui/ticketAssignmentsManager/components/ModalContainer.tsx:26 |
682 | - __( 'There seem to be some dates/tickets which have no tickets/dates assigned. Do you want to fix them now?', 'event_espresso' ), |
|
682 | + __('There seem to be some dates/tickets which have no tickets/dates assigned. Do you want to fix them now?', 'event_espresso'), |
|
683 | 683 | |
684 | 684 | // Reference: domains/core/admin/eventEditor/src/ui/ticketAssignmentsManager/components/ModalContainer.tsx:29 |
685 | 685 | // Reference: packages/tpc/src/hooks/useLockedTicketAction.ts:74 |
686 | 686 | // Reference: packages/ui-components/src/Modal/ModalWithAlert.tsx:21 |
687 | - __( 'Alert!', 'event_espresso' ), |
|
687 | + __('Alert!', 'event_espresso'), |
|
688 | 688 | |
689 | 689 | // Reference: domains/core/admin/eventEditor/src/ui/ticketAssignmentsManager/components/ModalContainer.tsx:42 |
690 | 690 | /* translators: 1 entity id, 2 entity name */ |
691 | - __( 'Ticket Assignment Manager for Datetime: %1$s - %2$s', 'event_espresso' ), |
|
691 | + __('Ticket Assignment Manager for Datetime: %1$s - %2$s', 'event_espresso'), |
|
692 | 692 | |
693 | 693 | // Reference: domains/core/admin/eventEditor/src/ui/ticketAssignmentsManager/components/ModalContainer.tsx:49 |
694 | 694 | /* translators: 1 entity id, 2 entity name */ |
695 | - __( 'Ticket Assignment Manager for Ticket: %1$s - %2$s', 'event_espresso' ), |
|
695 | + __('Ticket Assignment Manager for Ticket: %1$s - %2$s', 'event_espresso'), |
|
696 | 696 | |
697 | 697 | // Reference: domains/core/admin/eventEditor/src/ui/ticketAssignmentsManager/components/TicketAssignmentsManagerModal.tsx:28 |
698 | 698 | // Reference: domains/core/admin/eventEditor/src/ui/ticketAssignmentsManager/components/table/Table.tsx:13 |
699 | - __( 'Ticket Assignment Manager', 'event_espresso' ), |
|
699 | + __('Ticket Assignment Manager', 'event_espresso'), |
|
700 | 700 | |
701 | 701 | // Reference: domains/core/admin/eventEditor/src/ui/ticketAssignmentsManager/components/config.ts:10 |
702 | - __( 'existing relation', 'event_espresso' ), |
|
702 | + __('existing relation', 'event_espresso'), |
|
703 | 703 | |
704 | 704 | // Reference: domains/core/admin/eventEditor/src/ui/ticketAssignmentsManager/components/config.ts:15 |
705 | - __( 'remove existing relation', 'event_espresso' ), |
|
705 | + __('remove existing relation', 'event_espresso'), |
|
706 | 706 | |
707 | 707 | // Reference: domains/core/admin/eventEditor/src/ui/ticketAssignmentsManager/components/config.ts:20 |
708 | - __( 'add new relation', 'event_espresso' ), |
|
708 | + __('add new relation', 'event_espresso'), |
|
709 | 709 | |
710 | 710 | // Reference: domains/core/admin/eventEditor/src/ui/ticketAssignmentsManager/components/config.ts:25 |
711 | - __( 'invalid relation', 'event_espresso' ), |
|
711 | + __('invalid relation', 'event_espresso'), |
|
712 | 712 | |
713 | 713 | // Reference: domains/core/admin/eventEditor/src/ui/ticketAssignmentsManager/components/config.ts:29 |
714 | - __( 'no relation', 'event_espresso' ), |
|
714 | + __('no relation', 'event_espresso'), |
|
715 | 715 | |
716 | 716 | // Reference: domains/core/admin/eventEditor/src/ui/ticketAssignmentsManager/components/table/BodyCell.tsx:23 |
717 | - __( 'assign ticket', 'event_espresso' ), |
|
717 | + __('assign ticket', 'event_espresso'), |
|
718 | 718 | |
719 | 719 | // Reference: domains/core/admin/eventEditor/src/ui/ticketAssignmentsManager/components/table/useGetHeaderRows.tsx:15 |
720 | - __( 'Assignments', 'event_espresso' ), |
|
720 | + __('Assignments', 'event_espresso'), |
|
721 | 721 | |
722 | 722 | // Reference: domains/core/admin/eventEditor/src/ui/ticketAssignmentsManager/components/table/useGetHeaderRows.tsx:16 |
723 | - __( 'Event Dates are listed below', 'event_espresso' ), |
|
723 | + __('Event Dates are listed below', 'event_espresso'), |
|
724 | 724 | |
725 | 725 | // Reference: domains/core/admin/eventEditor/src/ui/ticketAssignmentsManager/components/table/useGetHeaderRows.tsx:17 |
726 | - __( 'Tickets are listed along the top', 'event_espresso' ), |
|
726 | + __('Tickets are listed along the top', 'event_espresso'), |
|
727 | 727 | |
728 | 728 | // Reference: domains/core/admin/eventEditor/src/ui/ticketAssignmentsManager/components/table/useGetHeaderRows.tsx:18 |
729 | - __( 'Click the cell buttons to toggle assigments', 'event_espresso' ), |
|
729 | + __('Click the cell buttons to toggle assigments', 'event_espresso'), |
|
730 | 730 | |
731 | 731 | // Reference: domains/core/admin/eventEditor/src/ui/ticketAssignmentsManager/components/useSubmitButtonProps.ts:29 |
732 | 732 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/bulkEdit/prices/buttons/FooterButtons.tsx:16 |
@@ -735,1533 +735,1533 @@ discard block |
||
735 | 735 | // Reference: packages/tpc/src/buttons/useSubmitButtonProps.tsx:29 |
736 | 736 | // Reference: packages/ui-components/src/Modal/useSubmitButtonProps.tsx:13 |
737 | 737 | // Reference: packages/ui-components/src/Stepper/buttons/Submit.tsx:7 |
738 | - __( 'Submit', 'event_espresso' ), |
|
738 | + __('Submit', 'event_espresso'), |
|
739 | 739 | |
740 | 740 | // Reference: domains/core/admin/eventEditor/src/ui/ticketAssignmentsManager/filters/controls/DatesByMonthControl.tsx:20 |
741 | - __( 'All Dates', 'event_espresso' ), |
|
741 | + __('All Dates', 'event_espresso'), |
|
742 | 742 | |
743 | 743 | // Reference: domains/core/admin/eventEditor/src/ui/ticketAssignmentsManager/filters/controls/DatesByMonthControl.tsx:27 |
744 | - __( 'dates by month', 'event_espresso' ), |
|
744 | + __('dates by month', 'event_espresso'), |
|
745 | 745 | |
746 | 746 | // Reference: domains/core/admin/eventEditor/src/ui/ticketAssignmentsManager/filters/controls/ShowExpiredTicketsControl.tsx:16 |
747 | - __( 'show expired tickets', 'event_espresso' ), |
|
747 | + __('show expired tickets', 'event_espresso'), |
|
748 | 748 | |
749 | 749 | // Reference: domains/core/admin/eventEditor/src/ui/ticketAssignmentsManager/filters/controls/ShowTrashedDatesControl.tsx:13 |
750 | - __( 'show trashed dates', 'event_espresso' ), |
|
750 | + __('show trashed dates', 'event_espresso'), |
|
751 | 751 | |
752 | 752 | // Reference: domains/core/admin/eventEditor/src/ui/ticketAssignmentsManager/filters/controls/ShowTrashedTicketsControl.tsx:16 |
753 | - __( 'show trashed tickets', 'event_espresso' ), |
|
753 | + __('show trashed tickets', 'event_espresso'), |
|
754 | 754 | |
755 | 755 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/defaultTickets/Container.tsx:38 |
756 | 756 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/actions/Actions.tsx:21 |
757 | - __( 'Default tickets', 'event_espresso' ), |
|
757 | + __('Default tickets', 'event_espresso'), |
|
758 | 758 | |
759 | 759 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/defaultTickets/ModalBody.tsx:63 |
760 | 760 | // Reference: packages/edtr-services/src/constants.ts:26 |
761 | - __( 'ticket', 'event_espresso' ), |
|
761 | + __('ticket', 'event_espresso'), |
|
762 | 762 | |
763 | 763 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/defaultTickets/multiStep/FooterButtons.tsx:26 |
764 | 764 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketForm/multiStep/FooterButtons.tsx:33 |
765 | - __( 'Set ticket prices', 'event_espresso' ), |
|
765 | + __('Set ticket prices', 'event_espresso'), |
|
766 | 766 | |
767 | 767 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/defaultTickets/multiStep/FooterButtons.tsx:31 |
768 | - __( 'Skip prices - Save', 'event_espresso' ), |
|
768 | + __('Skip prices - Save', 'event_espresso'), |
|
769 | 769 | |
770 | 770 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/defaultTickets/multiStep/FooterButtons.tsx:37 |
771 | 771 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketForm/multiStep/FooterButtons.tsx:57 |
772 | - __( 'Ticket details', 'event_espresso' ), |
|
772 | + __('Ticket details', 'event_espresso'), |
|
773 | 773 | |
774 | 774 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/defaultTickets/multiStep/FooterButtons.tsx:38 |
775 | - __( 'Save', 'event_espresso' ), |
|
775 | + __('Save', 'event_espresso'), |
|
776 | 776 | |
777 | 777 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/defaultTickets/multiStep/Modal.tsx:22 |
778 | 778 | /* translators: %s ticket id */ |
779 | - __( 'Edit ticket %s', 'event_espresso' ), |
|
779 | + __('Edit ticket %s', 'event_espresso'), |
|
780 | 780 | |
781 | 781 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/defaultTickets/multiStep/Modal.tsx:25 |
782 | 782 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketForm/multiStep/Modal.tsx:30 |
783 | - __( 'New Ticket Details', 'event_espresso' ), |
|
783 | + __('New Ticket Details', 'event_espresso'), |
|
784 | 784 | |
785 | 785 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/defaultTickets/multiStep/TicketFormSteps.tsx:10 |
786 | 786 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketForm/multiStep/TicketFormSteps.tsx:10 |
787 | - __( 'primary information about the ticket', 'event_espresso' ), |
|
787 | + __('primary information about the ticket', 'event_espresso'), |
|
788 | 788 | |
789 | 789 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/defaultTickets/multiStep/TicketFormSteps.tsx:10 |
790 | 790 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketForm/multiStep/TicketFormSteps.tsx:10 |
791 | - __( 'Ticket Details', 'event_espresso' ), |
|
791 | + __('Ticket Details', 'event_espresso'), |
|
792 | 792 | |
793 | 793 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/defaultTickets/multiStep/TicketFormSteps.tsx:12 |
794 | 794 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketForm/multiStep/TicketFormSteps.tsx:12 |
795 | - __( 'apply ticket price modifiers and taxes', 'event_espresso' ), |
|
795 | + __('apply ticket price modifiers and taxes', 'event_espresso'), |
|
796 | 796 | |
797 | 797 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/defaultTickets/multiStep/TicketFormSteps.tsx:14 |
798 | 798 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketForm/multiStep/TicketFormSteps.tsx:14 |
799 | - __( 'Price Calculator', 'event_espresso' ), |
|
799 | + __('Price Calculator', 'event_espresso'), |
|
800 | 800 | |
801 | 801 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/defaultTickets/multiStep/TicketFormSteps.tsx:16 |
802 | 802 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketForm/multiStep/TicketFormSteps.tsx:16 |
803 | - __( 'Assign Dates', 'event_espresso' ), |
|
803 | + __('Assign Dates', 'event_espresso'), |
|
804 | 804 | |
805 | 805 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketForm/multiStep/FooterButtons.tsx:39 |
806 | - __( 'Skip prices - assign dates', 'event_espresso' ), |
|
806 | + __('Skip prices - assign dates', 'event_espresso'), |
|
807 | 807 | |
808 | 808 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketForm/multiStep/FooterButtons.tsx:50 |
809 | - __( 'Save and assign dates', 'event_espresso' ), |
|
809 | + __('Save and assign dates', 'event_espresso'), |
|
810 | 810 | |
811 | 811 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketForm/multiStep/Modal.tsx:26 |
812 | 812 | /* translators: 1 ticket name, 2 ticket id */ |
813 | - __( 'Edit ticket "%1$s" - %2$s', 'event_espresso' ), |
|
813 | + __('Edit ticket "%1$s" - %2$s', 'event_espresso'), |
|
814 | 814 | |
815 | 815 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketForm/useTicketFormConfig.ts:100 |
816 | - __( 'Set to 0 to stop sales, or leave blank for no limit.', 'event_espresso' ), |
|
816 | + __('Set to 0 to stop sales, or leave blank for no limit.', 'event_espresso'), |
|
817 | 817 | |
818 | 818 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketForm/useTicketFormConfig.ts:111 |
819 | 819 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/bulkEdit/details/useBulkEditFormConfig.ts:121 |
820 | - __( 'Number of Uses', 'event_espresso' ), |
|
820 | + __('Number of Uses', 'event_espresso'), |
|
821 | 821 | |
822 | 822 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketForm/useTicketFormConfig.ts:117 |
823 | - __( 'Controls the total number of times this ticket can be used, regardless of the number of dates it is assigned to.', 'event_espresso' ), |
|
823 | + __('Controls the total number of times this ticket can be used, regardless of the number of dates it is assigned to.', 'event_espresso'), |
|
824 | 824 | |
825 | 825 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketForm/useTicketFormConfig.ts:121 |
826 | - __( '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' ), |
|
826 | + __('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'), |
|
827 | 827 | |
828 | 828 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketForm/useTicketFormConfig.ts:129 |
829 | 829 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/bulkEdit/details/useBulkEditFormConfig.ts:129 |
830 | - __( 'Minimum Quantity', 'event_espresso' ), |
|
830 | + __('Minimum Quantity', 'event_espresso'), |
|
831 | 831 | |
832 | 832 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketForm/useTicketFormConfig.ts:134 |
833 | - __( 'The minimum quantity that can be selected for this ticket. Use this to create ticket bundles or graduated pricing.', 'event_espresso' ), |
|
833 | + __('The minimum quantity that can be selected for this ticket. Use this to create ticket bundles or graduated pricing.', 'event_espresso'), |
|
834 | 834 | |
835 | 835 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketForm/useTicketFormConfig.ts:138 |
836 | - __( 'Leave blank for no minimum.', 'event_espresso' ), |
|
836 | + __('Leave blank for no minimum.', 'event_espresso'), |
|
837 | 837 | |
838 | 838 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketForm/useTicketFormConfig.ts:144 |
839 | 839 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/bulkEdit/details/useBulkEditFormConfig.ts:137 |
840 | - __( 'Maximum Quantity', 'event_espresso' ), |
|
840 | + __('Maximum Quantity', 'event_espresso'), |
|
841 | 841 | |
842 | 842 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketForm/useTicketFormConfig.ts:150 |
843 | - __( 'The maximum quantity that can be selected for this ticket. Use this to create ticket bundles or graduated pricing.', 'event_espresso' ), |
|
843 | + __('The maximum quantity that can be selected for this ticket. Use this to create ticket bundles or graduated pricing.', 'event_espresso'), |
|
844 | 844 | |
845 | 845 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketForm/useTicketFormConfig.ts:154 |
846 | - __( 'Leave blank for no maximum.', 'event_espresso' ), |
|
846 | + __('Leave blank for no maximum.', 'event_espresso'), |
|
847 | 847 | |
848 | 848 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketForm/useTicketFormConfig.ts:160 |
849 | 849 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/bulkEdit/details/useBulkEditFormConfig.ts:146 |
850 | - __( 'Required Ticket', 'event_espresso' ), |
|
850 | + __('Required Ticket', 'event_espresso'), |
|
851 | 851 | |
852 | 852 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketForm/useTicketFormConfig.ts:162 |
853 | - __( 'If enabled, the ticket must be selected and will appear first in frontend ticket lists.', 'event_espresso' ), |
|
853 | + __('If enabled, the ticket must be selected and will appear first in frontend ticket lists.', 'event_espresso'), |
|
854 | 854 | |
855 | 855 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketForm/useTicketFormConfig.ts:174 |
856 | - __( 'Visibility', 'event_espresso' ), |
|
856 | + __('Visibility', 'event_espresso'), |
|
857 | 857 | |
858 | 858 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketForm/useTicketFormConfig.ts:176 |
859 | - __( 'Where the ticket can be viewed throughout the UI.', 'event_espresso' ), |
|
859 | + __('Where the ticket can be viewed throughout the UI.', 'event_espresso'), |
|
860 | 860 | |
861 | 861 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketForm/useTicketFormConfig.ts:208 |
862 | - __( 'Ticket Sales', 'event_espresso' ), |
|
862 | + __('Ticket Sales', 'event_espresso'), |
|
863 | 863 | |
864 | 864 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketForm/useTicketFormConfig.ts:92 |
865 | 865 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/bulkEdit/details/useBulkEditFormConfig.ts:112 |
866 | - __( 'Quantity For Sale', 'event_espresso' ), |
|
866 | + __('Quantity For Sale', 'event_espresso'), |
|
867 | 867 | |
868 | 868 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketForm/useTicketFormConfig.ts:98 |
869 | - __( 'The maximum number of this ticket available for sale.', 'event_espresso' ), |
|
869 | + __('The maximum number of this ticket available for sale.', 'event_espresso'), |
|
870 | 870 | |
871 | 871 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/TicketRegistrationsLink.tsx:13 |
872 | - __( 'total registrations.', 'event_espresso' ), |
|
872 | + __('total registrations.', 'event_espresso'), |
|
873 | 873 | |
874 | 874 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/TicketRegistrationsLink.tsx:14 |
875 | - __( 'view ALL registrations for this ticket.', 'event_espresso' ), |
|
875 | + __('view ALL registrations for this ticket.', 'event_espresso'), |
|
876 | 876 | |
877 | 877 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/TicketSoldLink.tsx:13 |
878 | - __( 'view approved registrations for this ticket.', 'event_espresso' ), |
|
878 | + __('view approved registrations for this ticket.', 'event_espresso'), |
|
879 | 879 | |
880 | 880 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/TicketsList.tsx:36 |
881 | - __( 'Available Tickets', 'event_espresso' ), |
|
881 | + __('Available Tickets', 'event_espresso'), |
|
882 | 882 | |
883 | 883 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/TicketsList.tsx:39 |
884 | - __( 'loading tickets…', 'event_espresso' ), |
|
884 | + __('loading tickets…', 'event_espresso'), |
|
885 | 885 | |
886 | 886 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/actionsMenu/AssignDatesButton.tsx:26 |
887 | - __( 'Number of related dates', 'event_espresso' ), |
|
887 | + __('Number of related dates', 'event_espresso'), |
|
888 | 888 | |
889 | 889 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/actionsMenu/AssignDatesButton.tsx:27 |
890 | - __( 'There are no event dates assigned to this ticket. Please click the calendar icon to update the assignments.', 'event_espresso' ), |
|
890 | + __('There are no event dates assigned to this ticket. Please click the calendar icon to update the assignments.', 'event_espresso'), |
|
891 | 891 | |
892 | 892 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/actionsMenu/AssignDatesButton.tsx:37 |
893 | - __( 'assign dates', 'event_espresso' ), |
|
893 | + __('assign dates', 'event_espresso'), |
|
894 | 894 | |
895 | 895 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/actionsMenu/dropdown/DeleteTicket.tsx:18 |
896 | - __( 'Permanently delete Ticket?', 'event_espresso' ), |
|
896 | + __('Permanently delete Ticket?', 'event_espresso'), |
|
897 | 897 | |
898 | 898 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/actionsMenu/dropdown/DeleteTicket.tsx:18 |
899 | - __( 'Move Ticket to Trash?', 'event_espresso' ), |
|
899 | + __('Move Ticket to Trash?', 'event_espresso'), |
|
900 | 900 | |
901 | 901 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/actionsMenu/dropdown/DeleteTicket.tsx:21 |
902 | - __( 'Are you sure you want to permanently delete this ticket? This action is permanent and can not be undone.', 'event_espresso' ), |
|
902 | + __('Are you sure you want to permanently delete this ticket? This action is permanent and can not be undone.', 'event_espresso'), |
|
903 | 903 | |
904 | 904 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/actionsMenu/dropdown/DeleteTicket.tsx:22 |
905 | - __( 'Are you sure you want to move this ticket to the trash? You can "untrash" this ticket later if you need to.', 'event_espresso' ), |
|
905 | + __('Are you sure you want to move this ticket to the trash? You can "untrash" this ticket later if you need to.', 'event_espresso'), |
|
906 | 906 | |
907 | 907 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/actionsMenu/dropdown/DeleteTicket.tsx:44 |
908 | 908 | // Reference: packages/ee-components/src/SimpleTicketCard/actions/Trash.tsx:6 |
909 | - __( 'trash ticket', 'event_espresso' ), |
|
909 | + __('trash ticket', 'event_espresso'), |
|
910 | 910 | |
911 | 911 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/actionsMenu/dropdown/TicketMainMenu.tsx:25 |
912 | - __( 'ticket main menu', 'event_espresso' ), |
|
912 | + __('ticket main menu', 'event_espresso'), |
|
913 | 913 | |
914 | 914 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/actionsMenu/dropdown/TicketMainMenu.tsx:38 |
915 | 915 | // Reference: packages/ee-components/src/SimpleTicketCard/actions/Edit.tsx:15 |
916 | - __( 'edit ticket', 'event_espresso' ), |
|
916 | + __('edit ticket', 'event_espresso'), |
|
917 | 917 | |
918 | 918 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/actionsMenu/dropdown/TicketMainMenu.tsx:39 |
919 | - __( 'copy ticket', 'event_espresso' ), |
|
919 | + __('copy ticket', 'event_espresso'), |
|
920 | 920 | |
921 | 921 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/bulkEdit/actions/Actions.tsx:44 |
922 | - __( 'edit ticket details', 'event_espresso' ), |
|
922 | + __('edit ticket details', 'event_espresso'), |
|
923 | 923 | |
924 | 924 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/bulkEdit/actions/Actions.tsx:48 |
925 | - __( 'delete tickets', 'event_espresso' ), |
|
925 | + __('delete tickets', 'event_espresso'), |
|
926 | 926 | |
927 | 927 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/bulkEdit/actions/Actions.tsx:48 |
928 | - __( 'trash tickets', 'event_espresso' ), |
|
928 | + __('trash tickets', 'event_espresso'), |
|
929 | 929 | |
930 | 930 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/bulkEdit/actions/Actions.tsx:52 |
931 | - __( 'edit ticket prices', 'event_espresso' ), |
|
931 | + __('edit ticket prices', 'event_espresso'), |
|
932 | 932 | |
933 | 933 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/bulkEdit/delete/Delete.tsx:14 |
934 | - __( 'Are you sure you want to permanently delete these tickets? This action can NOT be undone!', 'event_espresso' ), |
|
934 | + __('Are you sure you want to permanently delete these tickets? This action can NOT be undone!', 'event_espresso'), |
|
935 | 935 | |
936 | 936 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/bulkEdit/delete/Delete.tsx:15 |
937 | - __( 'Are you sure you want to trash these tickets?', 'event_espresso' ), |
|
937 | + __('Are you sure you want to trash these tickets?', 'event_espresso'), |
|
938 | 938 | |
939 | 939 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/bulkEdit/delete/Delete.tsx:16 |
940 | - __( 'Delete tickets permanently', 'event_espresso' ), |
|
940 | + __('Delete tickets permanently', 'event_espresso'), |
|
941 | 941 | |
942 | 942 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/bulkEdit/delete/Delete.tsx:16 |
943 | - __( 'Trash tickets', 'event_espresso' ), |
|
943 | + __('Trash tickets', 'event_espresso'), |
|
944 | 944 | |
945 | 945 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/bulkEdit/details/EditDetails.tsx:21 |
946 | - __( 'Bulk edit ticket details', 'event_espresso' ), |
|
946 | + __('Bulk edit ticket details', 'event_espresso'), |
|
947 | 947 | |
948 | 948 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/bulkEdit/details/EditDetails.tsx:22 |
949 | - __( 'any changes will be applied to ALL of the selected tickets.', 'event_espresso' ), |
|
949 | + __('any changes will be applied to ALL of the selected tickets.', 'event_espresso'), |
|
950 | 950 | |
951 | 951 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/bulkEdit/prices/EditPrices.tsx:19 |
952 | - __( 'Bulk edit ticket prices', 'event_espresso' ), |
|
952 | + __('Bulk edit ticket prices', 'event_espresso'), |
|
953 | 953 | |
954 | 954 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/bulkEdit/prices/buttons/EditModeButtons.tsx:20 |
955 | - __( 'Edit all prices together', 'event_espresso' ), |
|
955 | + __('Edit all prices together', 'event_espresso'), |
|
956 | 956 | |
957 | 957 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/bulkEdit/prices/buttons/EditModeButtons.tsx:21 |
958 | - __( 'Edit all the selected ticket prices dynamically', 'event_espresso' ), |
|
958 | + __('Edit all the selected ticket prices dynamically', 'event_espresso'), |
|
959 | 959 | |
960 | 960 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/bulkEdit/prices/buttons/EditModeButtons.tsx:25 |
961 | - __( 'Edit prices individually', 'event_espresso' ), |
|
961 | + __('Edit prices individually', 'event_espresso'), |
|
962 | 962 | |
963 | 963 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/bulkEdit/prices/buttons/EditModeButtons.tsx:26 |
964 | - __( 'Edit prices for each ticket individually', 'event_espresso' ), |
|
964 | + __('Edit prices for each ticket individually', 'event_espresso'), |
|
965 | 965 | |
966 | 966 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/bulkEdit/prices/buttons/FooterButtons.tsx:14 |
967 | 967 | // Reference: packages/ee-components/src/bulkEdit/details/Submit.tsx:34 |
968 | 968 | // Reference: packages/form/src/ResetButton.tsx:18 |
969 | 969 | // Reference: packages/tpc/src/buttons/useResetButtonProps.tsx:12 |
970 | - __( 'Reset', 'event_espresso' ), |
|
970 | + __('Reset', 'event_espresso'), |
|
971 | 971 | |
972 | 972 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/bulkEdit/prices/buttons/FooterButtons.tsx:15 |
973 | 973 | // Reference: packages/tpc/src/hooks/useLockedTicketAction.ts:76 |
974 | 974 | // Reference: packages/ui-components/src/Modal/useCancelButtonProps.tsx:10 |
975 | - __( 'Cancel', 'event_espresso' ), |
|
975 | + __('Cancel', 'event_espresso'), |
|
976 | 976 | |
977 | 977 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/bulkEdit/prices/editSeparately/TPCInstance.tsx:26 |
978 | 978 | /* translators: %s ticket name */ |
979 | - __( 'Edit prices for Ticket: %s', 'event_espresso' ), |
|
979 | + __('Edit prices for Ticket: %s', 'event_espresso'), |
|
980 | 980 | |
981 | 981 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/cardView/TicketCardSidebar.tsx:30 |
982 | - __( 'sales start', 'event_espresso' ), |
|
982 | + __('sales start', 'event_espresso'), |
|
983 | 983 | |
984 | 984 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/cardView/TicketCardSidebar.tsx:33 |
985 | - __( 'sales began', 'event_espresso' ), |
|
985 | + __('sales began', 'event_espresso'), |
|
986 | 986 | |
987 | 987 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/cardView/TicketCardSidebar.tsx:35 |
988 | - __( 'sales ended', 'event_espresso' ), |
|
988 | + __('sales ended', 'event_espresso'), |
|
989 | 989 | |
990 | 990 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/cardView/TicketCardSidebar.tsx:36 |
991 | - __( 'sales end', 'event_espresso' ), |
|
991 | + __('sales end', 'event_espresso'), |
|
992 | 992 | |
993 | 993 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/cardView/TicketCardSidebar.tsx:50 |
994 | - __( 'Edit Ticket Sale Dates', 'event_espresso' ), |
|
994 | + __('Edit Ticket Sale Dates', 'event_espresso'), |
|
995 | 995 | |
996 | 996 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/cardView/TicketCardSidebar.tsx:54 |
997 | - __( 'edit ticket sales start and end dates', 'event_espresso' ), |
|
997 | + __('edit ticket sales start and end dates', 'event_espresso'), |
|
998 | 998 | |
999 | 999 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/cardView/TicketDetailsPanel.tsx:21 |
1000 | - __( 'quantity', 'event_espresso' ), |
|
1000 | + __('quantity', 'event_espresso'), |
|
1001 | 1001 | |
1002 | 1002 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/cardView/TicketQuantity.tsx:28 |
1003 | 1003 | // Reference: packages/edtr-services/src/apollo/mutations/tickets/useUpdateTicketQtyByCapacity.ts:78 |
1004 | - __( 'Ticket quantity has been adjusted because it cannot be more than the related event date capacity.', 'event_espresso' ), |
|
1004 | + __('Ticket quantity has been adjusted because it cannot be more than the related event date capacity.', 'event_espresso'), |
|
1005 | 1005 | |
1006 | 1006 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/cardView/TicketQuantity.tsx:51 |
1007 | - __( 'edit quantity of tickets available…', 'event_espresso' ), |
|
1007 | + __('edit quantity of tickets available…', 'event_espresso'), |
|
1008 | 1008 | |
1009 | 1009 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/config.ts:10 |
1010 | - __( 'Move Ticket to Trash', 'event_espresso' ), |
|
1010 | + __('Move Ticket to Trash', 'event_espresso'), |
|
1011 | 1011 | |
1012 | 1012 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/config.ts:15 |
1013 | 1013 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/tableView/useHeaderRowGenerator.tsx:52 |
1014 | - __( 'On Sale', 'event_espresso' ), |
|
1014 | + __('On Sale', 'event_espresso'), |
|
1015 | 1015 | |
1016 | 1016 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/config.ts:17 |
1017 | - __( 'Pending', 'event_espresso' ), |
|
1017 | + __('Pending', 'event_espresso'), |
|
1018 | 1018 | |
1019 | 1019 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/config.ts:7 |
1020 | - __( 'Edit Ticket Details', 'event_espresso' ), |
|
1020 | + __('Edit Ticket Details', 'event_espresso'), |
|
1021 | 1021 | |
1022 | 1022 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/config.ts:8 |
1023 | - __( 'Manage Date Assignments', 'event_espresso' ), |
|
1023 | + __('Manage Date Assignments', 'event_espresso'), |
|
1024 | 1024 | |
1025 | 1025 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/config.ts:9 |
1026 | 1026 | // Reference: packages/tpc/src/components/table/Table.tsx:43 |
1027 | - __( 'Ticket Price Calculator', 'event_espresso' ), |
|
1027 | + __('Ticket Price Calculator', 'event_espresso'), |
|
1028 | 1028 | |
1029 | 1029 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/editable/EditablePrice.tsx:39 |
1030 | - __( 'edit ticket total…', 'event_espresso' ), |
|
1030 | + __('edit ticket total…', 'event_espresso'), |
|
1031 | 1031 | |
1032 | 1032 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/editable/EditablePrice.tsx:53 |
1033 | - __( 'set price…', 'event_espresso' ), |
|
1033 | + __('set price…', 'event_espresso'), |
|
1034 | 1034 | |
1035 | 1035 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/IsChainedButton.tsx:23 |
1036 | - __( 'tickets list is linked to dates list and is showing tickets for above dates only', 'event_espresso' ), |
|
1036 | + __('tickets list is linked to dates list and is showing tickets for above dates only', 'event_espresso'), |
|
1037 | 1037 | |
1038 | 1038 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/IsChainedButton.tsx:24 |
1039 | - __( 'tickets list is unlinked and is showing tickets for all event dates', 'event_espresso' ), |
|
1039 | + __('tickets list is unlinked and is showing tickets for all event dates', 'event_espresso'), |
|
1040 | 1040 | |
1041 | 1041 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:10 |
1042 | - __( 'ticket sales start and end dates', 'event_espresso' ), |
|
1042 | + __('ticket sales start and end dates', 'event_espresso'), |
|
1043 | 1043 | |
1044 | 1044 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:15 |
1045 | - __( 'tickets with 90% or more sold', 'event_espresso' ), |
|
1045 | + __('tickets with 90% or more sold', 'event_espresso'), |
|
1046 | 1046 | |
1047 | 1047 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:16 |
1048 | - __( 'tickets with 75% or more sold', 'event_espresso' ), |
|
1048 | + __('tickets with 75% or more sold', 'event_espresso'), |
|
1049 | 1049 | |
1050 | 1050 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:17 |
1051 | - __( 'tickets with 50% or more sold', 'event_espresso' ), |
|
1051 | + __('tickets with 50% or more sold', 'event_espresso'), |
|
1052 | 1052 | |
1053 | 1053 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:19 |
1054 | - __( 'tickets with less than 50% sold', 'event_espresso' ), |
|
1054 | + __('tickets with less than 50% sold', 'event_espresso'), |
|
1055 | 1055 | |
1056 | 1056 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:28 |
1057 | - __( 'all tickets for all dates', 'event_espresso' ), |
|
1057 | + __('all tickets for all dates', 'event_espresso'), |
|
1058 | 1058 | |
1059 | 1059 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:29 |
1060 | - __( 'all on sale and sale pending', 'event_espresso' ), |
|
1060 | + __('all on sale and sale pending', 'event_espresso'), |
|
1061 | 1061 | |
1062 | 1062 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:30 |
1063 | - __( 'on sale tickets only', 'event_espresso' ), |
|
1063 | + __('on sale tickets only', 'event_espresso'), |
|
1064 | 1064 | |
1065 | 1065 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:31 |
1066 | - __( 'sale pending tickets only', 'event_espresso' ), |
|
1066 | + __('sale pending tickets only', 'event_espresso'), |
|
1067 | 1067 | |
1068 | 1068 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:32 |
1069 | - __( 'next on sale or sale pending only', 'event_espresso' ), |
|
1069 | + __('next on sale or sale pending only', 'event_espresso'), |
|
1070 | 1070 | |
1071 | 1071 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:33 |
1072 | - __( 'sold out tickets only', 'event_espresso' ), |
|
1072 | + __('sold out tickets only', 'event_espresso'), |
|
1073 | 1073 | |
1074 | 1074 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:34 |
1075 | - __( 'expired tickets only', 'event_espresso' ), |
|
1075 | + __('expired tickets only', 'event_espresso'), |
|
1076 | 1076 | |
1077 | 1077 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:35 |
1078 | - __( 'trashed tickets only', 'event_espresso' ), |
|
1078 | + __('trashed tickets only', 'event_espresso'), |
|
1079 | 1079 | |
1080 | 1080 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:40 |
1081 | - __( 'all tickets for above dates', 'event_espresso' ), |
|
1081 | + __('all tickets for above dates', 'event_espresso'), |
|
1082 | 1082 | |
1083 | 1083 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:44 |
1084 | - __( 'ticket sale date', 'event_espresso' ), |
|
1084 | + __('ticket sale date', 'event_espresso'), |
|
1085 | 1085 | |
1086 | 1086 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:45 |
1087 | - __( 'ticket name', 'event_espresso' ), |
|
1087 | + __('ticket name', 'event_espresso'), |
|
1088 | 1088 | |
1089 | 1089 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:46 |
1090 | - __( 'ticket ID', 'event_espresso' ), |
|
1090 | + __('ticket ID', 'event_espresso'), |
|
1091 | 1091 | |
1092 | 1092 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:52 |
1093 | - __( 'link', 'event_espresso' ), |
|
1093 | + __('link', 'event_espresso'), |
|
1094 | 1094 | |
1095 | 1095 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:8 |
1096 | - __( 'ticket sales start date only', 'event_espresso' ), |
|
1096 | + __('ticket sales start date only', 'event_espresso'), |
|
1097 | 1097 | |
1098 | 1098 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:9 |
1099 | - __( 'ticket sales end date only', 'event_espresso' ), |
|
1099 | + __('ticket sales end date only', 'event_espresso'), |
|
1100 | 1100 | |
1101 | 1101 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/newTicketOptions/AddSingleTicket.tsx:18 |
1102 | - __( 'Add New Ticket', 'event_espresso' ), |
|
1102 | + __('Add New Ticket', 'event_espresso'), |
|
1103 | 1103 | |
1104 | 1104 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/newTicketOptions/AddSingleTicket.tsx:32 |
1105 | - __( 'Add a single ticket and assign the dates to it', 'event_espresso' ), |
|
1105 | + __('Add a single ticket and assign the dates to it', 'event_espresso'), |
|
1106 | 1106 | |
1107 | 1107 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/newTicketOptions/AddSingleTicket.tsx:34 |
1108 | - __( 'Single Ticket', 'event_espresso' ), |
|
1108 | + __('Single Ticket', 'event_espresso'), |
|
1109 | 1109 | |
1110 | 1110 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/tableView/TableView.tsx:39 |
1111 | - __( 'Tickets', 'event_espresso' ), |
|
1111 | + __('Tickets', 'event_espresso'), |
|
1112 | 1112 | |
1113 | 1113 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/tableView/useHeaderRowGenerator.tsx:110 |
1114 | - __( 'Registrations', 'event_espresso' ), |
|
1114 | + __('Registrations', 'event_espresso'), |
|
1115 | 1115 | |
1116 | 1116 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/tableView/useHeaderRowGenerator.tsx:51 |
1117 | - __( 'Goes on Sale', 'event_espresso' ), |
|
1117 | + __('Goes on Sale', 'event_espresso'), |
|
1118 | 1118 | |
1119 | 1119 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/tableView/useHeaderRowGenerator.tsx:65 |
1120 | - __( 'Sale Ends', 'event_espresso' ), |
|
1120 | + __('Sale Ends', 'event_espresso'), |
|
1121 | 1121 | |
1122 | 1122 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/tableView/useHeaderRowGenerator.tsx:66 |
1123 | - __( 'Ends', 'event_espresso' ), |
|
1123 | + __('Ends', 'event_espresso'), |
|
1124 | 1124 | |
1125 | 1125 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/tableView/useHeaderRowGenerator.tsx:78 |
1126 | - __( 'Price', 'event_espresso' ), |
|
1126 | + __('Price', 'event_espresso'), |
|
1127 | 1127 | |
1128 | 1128 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/tableView/useHeaderRowGenerator.tsx:88 |
1129 | - __( 'Quantity', 'event_espresso' ), |
|
1129 | + __('Quantity', 'event_espresso'), |
|
1130 | 1130 | |
1131 | 1131 | // Reference: domains/core/admin/eventEditor/src/ui/venue/VenueDetails.tsx:105 |
1132 | - __( 'Select a Venue for the Event', 'event_espresso' ), |
|
1132 | + __('Select a Venue for the Event', 'event_espresso'), |
|
1133 | 1133 | |
1134 | 1134 | // Reference: domains/core/admin/eventEditor/src/ui/venue/VenueDetails.tsx:21 |
1135 | - __( 'Venue Details', 'event_espresso' ), |
|
1135 | + __('Venue Details', 'event_espresso'), |
|
1136 | 1136 | |
1137 | 1137 | // Reference: domains/core/admin/eventEditor/src/ui/venue/VenueDetails.tsx:38 |
1138 | - __( 'unlimited space', 'event_espresso' ), |
|
1138 | + __('unlimited space', 'event_espresso'), |
|
1139 | 1139 | |
1140 | 1140 | // Reference: domains/core/admin/eventEditor/src/ui/venue/VenueDetails.tsx:41 |
1141 | 1141 | /* translators: %d venue capacity */ |
1142 | - __( 'Space for up to %d people', 'event_espresso' ), |
|
1142 | + __('Space for up to %d people', 'event_espresso'), |
|
1143 | 1143 | |
1144 | 1144 | // Reference: domains/core/admin/eventEditor/src/ui/venue/VenueDetails.tsx:60 |
1145 | - __( 'no image', 'event_espresso' ), |
|
1145 | + __('no image', 'event_espresso'), |
|
1146 | 1146 | |
1147 | 1147 | // Reference: domains/core/admin/eventEditor/src/ui/venue/VenueDetails.tsx:96 |
1148 | - __( 'Edit this Venue', 'event_espresso' ), |
|
1148 | + __('Edit this Venue', 'event_espresso'), |
|
1149 | 1149 | |
1150 | 1150 | // Reference: domains/core/admin/wpPluginsPage/src/exitSurvey/Popup.tsx:29 |
1151 | - __( 'Do you have a moment to share why you are deactivating Event Espresso?', 'event_espresso' ), |
|
1151 | + __('Do you have a moment to share why you are deactivating Event Espresso?', 'event_espresso'), |
|
1152 | 1152 | |
1153 | 1153 | // Reference: domains/core/admin/wpPluginsPage/src/exitSurvey/Popup.tsx:40 |
1154 | - __( 'Skip', 'event_espresso' ), |
|
1154 | + __('Skip', 'event_espresso'), |
|
1155 | 1155 | |
1156 | 1156 | // Reference: domains/core/admin/wpPluginsPage/src/exitSurvey/Popup.tsx:42 |
1157 | - __( 'Sure I\'ll help', 'event_espresso' ), |
|
1157 | + __('Sure I\'ll help', 'event_espresso'), |
|
1158 | 1158 | |
1159 | 1159 | // Reference: packages/adapters/src/Pagination/Pagination.tsx:23 |
1160 | - __( 'pagination', 'event_espresso' ), |
|
1160 | + __('pagination', 'event_espresso'), |
|
1161 | 1161 | |
1162 | 1162 | // Reference: packages/adapters/src/TagSelector/TagSelector.tsx:112 |
1163 | - __( 'toggle menu', 'event_espresso' ), |
|
1163 | + __('toggle menu', 'event_espresso'), |
|
1164 | 1164 | |
1165 | 1165 | // Reference: packages/constants/src/datetime.ts:10 |
1166 | - __( 'Postponed', 'event_espresso' ), |
|
1166 | + __('Postponed', 'event_espresso'), |
|
1167 | 1167 | |
1168 | 1168 | // Reference: packages/constants/src/datetime.ts:11 |
1169 | - __( 'SoldOut', 'event_espresso' ), |
|
1169 | + __('SoldOut', 'event_espresso'), |
|
1170 | 1170 | |
1171 | 1171 | // Reference: packages/constants/src/datetime.ts:7 |
1172 | 1172 | // Reference: packages/predicates/src/registration/statusOptions.ts:11 |
1173 | - __( 'Cancelled', 'event_espresso' ), |
|
1173 | + __('Cancelled', 'event_espresso'), |
|
1174 | 1174 | |
1175 | 1175 | // Reference: packages/constants/src/datetime.ts:9 |
1176 | - __( 'Inactive', 'event_espresso' ), |
|
1176 | + __('Inactive', 'event_espresso'), |
|
1177 | 1177 | |
1178 | 1178 | // Reference: packages/data/src/mutations/useMutationWithFeedback.ts:25 |
1179 | - __( 'error creating %s', 'event_espresso' ), |
|
1179 | + __('error creating %s', 'event_espresso'), |
|
1180 | 1180 | |
1181 | 1181 | // Reference: packages/data/src/mutations/useMutationWithFeedback.ts:26 |
1182 | - __( 'error deleting %s', 'event_espresso' ), |
|
1182 | + __('error deleting %s', 'event_espresso'), |
|
1183 | 1183 | |
1184 | 1184 | // Reference: packages/data/src/mutations/useMutationWithFeedback.ts:27 |
1185 | - __( 'error updating %s', 'event_espresso' ), |
|
1185 | + __('error updating %s', 'event_espresso'), |
|
1186 | 1186 | |
1187 | 1187 | // Reference: packages/data/src/mutations/useMutationWithFeedback.ts:28 |
1188 | - __( 'creating %s', 'event_espresso' ), |
|
1188 | + __('creating %s', 'event_espresso'), |
|
1189 | 1189 | |
1190 | 1190 | // Reference: packages/data/src/mutations/useMutationWithFeedback.ts:29 |
1191 | - __( 'deleting %s', 'event_espresso' ), |
|
1191 | + __('deleting %s', 'event_espresso'), |
|
1192 | 1192 | |
1193 | 1193 | // Reference: packages/data/src/mutations/useMutationWithFeedback.ts:30 |
1194 | - __( 'updating %s', 'event_espresso' ), |
|
1194 | + __('updating %s', 'event_espresso'), |
|
1195 | 1195 | |
1196 | 1196 | // Reference: packages/data/src/mutations/useMutationWithFeedback.ts:31 |
1197 | - __( 'successfully created %s', 'event_espresso' ), |
|
1197 | + __('successfully created %s', 'event_espresso'), |
|
1198 | 1198 | |
1199 | 1199 | // Reference: packages/data/src/mutations/useMutationWithFeedback.ts:32 |
1200 | - __( 'successfully deleted %s', 'event_espresso' ), |
|
1200 | + __('successfully deleted %s', 'event_espresso'), |
|
1201 | 1201 | |
1202 | 1202 | // Reference: packages/data/src/mutations/useMutationWithFeedback.ts:33 |
1203 | - __( 'successfully updated %s', 'event_espresso' ), |
|
1203 | + __('successfully updated %s', 'event_espresso'), |
|
1204 | 1204 | |
1205 | 1205 | // Reference: packages/dates/src/components/DateRangePicker/DateRangePickerLegend.tsx:13 |
1206 | - __( 'day in range', 'event_espresso' ), |
|
1206 | + __('day in range', 'event_espresso'), |
|
1207 | 1207 | |
1208 | 1208 | // Reference: packages/dates/src/components/DateRangePicker/DateRangePickerLegend.tsx:17 |
1209 | 1209 | // Reference: packages/dates/src/components/DateRangePicker/index.tsx:79 |
1210 | - __( 'end date', 'event_espresso' ), |
|
1210 | + __('end date', 'event_espresso'), |
|
1211 | 1211 | |
1212 | 1212 | // Reference: packages/dates/src/components/DateTimePicker.tsx:13 |
1213 | 1213 | // Reference: packages/dates/src/components/TimePicker.tsx:14 |
1214 | 1214 | // Reference: packages/form-builder/src/state/utils.ts:433 |
1215 | - __( 'time', 'event_espresso' ), |
|
1215 | + __('time', 'event_espresso'), |
|
1216 | 1216 | |
1217 | 1217 | // Reference: packages/dates/src/constants.ts:5 |
1218 | - __( 'End Date & Time must be set later than the Start Date & Time', 'event_espresso' ), |
|
1218 | + __('End Date & Time must be set later than the Start Date & Time', 'event_espresso'), |
|
1219 | 1219 | |
1220 | 1220 | // Reference: packages/dates/src/constants.ts:7 |
1221 | - __( 'Start Date & Time must be set before the End Date & Time', 'event_espresso' ), |
|
1221 | + __('Start Date & Time must be set before the End Date & Time', 'event_espresso'), |
|
1222 | 1222 | |
1223 | 1223 | // Reference: packages/dates/src/utils/misc.ts:16 |
1224 | - __( 'month(s)', 'event_espresso' ), |
|
1224 | + __('month(s)', 'event_espresso'), |
|
1225 | 1225 | |
1226 | 1226 | // Reference: packages/dates/src/utils/misc.ts:17 |
1227 | - __( 'week(s)', 'event_espresso' ), |
|
1227 | + __('week(s)', 'event_espresso'), |
|
1228 | 1228 | |
1229 | 1229 | // Reference: packages/dates/src/utils/misc.ts:18 |
1230 | - __( 'day(s)', 'event_espresso' ), |
|
1230 | + __('day(s)', 'event_espresso'), |
|
1231 | 1231 | |
1232 | 1232 | // Reference: packages/dates/src/utils/misc.ts:19 |
1233 | - __( 'hour(s)', 'event_espresso' ), |
|
1233 | + __('hour(s)', 'event_espresso'), |
|
1234 | 1234 | |
1235 | 1235 | // Reference: packages/dates/src/utils/misc.ts:20 |
1236 | - __( 'minute(s)', 'event_espresso' ), |
|
1236 | + __('minute(s)', 'event_espresso'), |
|
1237 | 1237 | |
1238 | 1238 | // Reference: packages/edtr-services/src/apollo/initialization/useCacheRehydration.ts:107 |
1239 | - __( 'price types initialized', 'event_espresso' ), |
|
1239 | + __('price types initialized', 'event_espresso'), |
|
1240 | 1240 | |
1241 | 1241 | // Reference: packages/edtr-services/src/apollo/initialization/useCacheRehydration.ts:117 |
1242 | - __( 'datetimes initialized', 'event_espresso' ), |
|
1242 | + __('datetimes initialized', 'event_espresso'), |
|
1243 | 1243 | |
1244 | 1244 | // Reference: packages/edtr-services/src/apollo/initialization/useCacheRehydration.ts:127 |
1245 | - __( 'tickets initialized', 'event_espresso' ), |
|
1245 | + __('tickets initialized', 'event_espresso'), |
|
1246 | 1246 | |
1247 | 1247 | // Reference: packages/edtr-services/src/apollo/initialization/useCacheRehydration.ts:137 |
1248 | - __( 'prices initialized', 'event_espresso' ), |
|
1248 | + __('prices initialized', 'event_espresso'), |
|
1249 | 1249 | |
1250 | 1250 | // Reference: packages/edtr-services/src/apollo/mutations/useReorderEntities.ts:72 |
1251 | - __( 'reordering has been applied', 'event_espresso' ), |
|
1251 | + __('reordering has been applied', 'event_espresso'), |
|
1252 | 1252 | |
1253 | 1253 | // Reference: packages/edtr-services/src/constants.ts:24 |
1254 | - __( 'datetime', 'event_espresso' ), |
|
1254 | + __('datetime', 'event_espresso'), |
|
1255 | 1255 | |
1256 | 1256 | // Reference: packages/edtr-services/src/constants.ts:27 |
1257 | - __( 'price', 'event_espresso' ), |
|
1257 | + __('price', 'event_espresso'), |
|
1258 | 1258 | |
1259 | 1259 | // Reference: packages/edtr-services/src/constants.ts:28 |
1260 | 1260 | // Reference: packages/tpc/src/inputs/PriceTypeInput.tsx:19 |
1261 | - __( 'price type', 'event_espresso' ), |
|
1261 | + __('price type', 'event_espresso'), |
|
1262 | 1262 | |
1263 | 1263 | // Reference: packages/edtr-services/src/utils/dateAndTime.ts:38 |
1264 | 1264 | // Reference: packages/ui-components/src/EditDateRangeButton/EditDateRangeButton.tsx:39 |
1265 | - __( 'End date has been adjusted', 'event_espresso' ), |
|
1265 | + __('End date has been adjusted', 'event_espresso'), |
|
1266 | 1266 | |
1267 | 1267 | // Reference: packages/edtr-services/src/utils/dateAndTime.ts:59 |
1268 | - __( 'Required', 'event_espresso' ), |
|
1268 | + __('Required', 'event_espresso'), |
|
1269 | 1269 | |
1270 | 1270 | // Reference: packages/edtr-services/src/utils/dateAndTime.ts:64 |
1271 | - __( 'Start Date is required', 'event_espresso' ), |
|
1271 | + __('Start Date is required', 'event_espresso'), |
|
1272 | 1272 | |
1273 | 1273 | // Reference: packages/edtr-services/src/utils/dateAndTime.ts:68 |
1274 | - __( 'End Date is required', 'event_espresso' ), |
|
1274 | + __('End Date is required', 'event_espresso'), |
|
1275 | 1275 | |
1276 | 1276 | // Reference: packages/ee-components/src/EntityList/EntityList.tsx:32 |
1277 | - __( 'no results found', 'event_espresso' ), |
|
1277 | + __('no results found', 'event_espresso'), |
|
1278 | 1278 | |
1279 | 1279 | // Reference: packages/ee-components/src/EntityList/EntityList.tsx:33 |
1280 | - __( 'try changing filter settings', 'event_espresso' ), |
|
1280 | + __('try changing filter settings', 'event_espresso'), |
|
1281 | 1281 | |
1282 | 1282 | // Reference: packages/ee-components/src/bulkEdit/ActionCheckbox.tsx:38 |
1283 | 1283 | /* translators: %d entity id */ |
1284 | - __( 'select entity with id %d', 'event_espresso' ), |
|
1284 | + __('select entity with id %d', 'event_espresso'), |
|
1285 | 1285 | |
1286 | 1286 | // Reference: packages/ee-components/src/bulkEdit/ActionCheckbox.tsx:41 |
1287 | - __( 'select all entities', 'event_espresso' ), |
|
1287 | + __('select all entities', 'event_espresso'), |
|
1288 | 1288 | |
1289 | 1289 | // Reference: packages/ee-components/src/bulkEdit/details/BulkEditDetails.tsx:20 |
1290 | - __( 'Note: ', 'event_espresso' ), |
|
1290 | + __('Note: ', 'event_espresso'), |
|
1291 | 1291 | |
1292 | 1292 | // Reference: packages/ee-components/src/bulkEdit/details/BulkEditDetails.tsx:20 |
1293 | - __( 'any changes will be applied to ALL of the selected entities.', 'event_espresso' ), |
|
1293 | + __('any changes will be applied to ALL of the selected entities.', 'event_espresso'), |
|
1294 | 1294 | |
1295 | 1295 | // Reference: packages/ee-components/src/bulkEdit/details/BulkEditDetails.tsx:27 |
1296 | - __( 'Bulk edit details', 'event_espresso' ), |
|
1296 | + __('Bulk edit details', 'event_espresso'), |
|
1297 | 1297 | |
1298 | 1298 | // Reference: packages/ee-components/src/bulkEdit/details/Submit.tsx:17 |
1299 | - __( 'Are you sure you want to bulk update the details?', 'event_espresso' ), |
|
1299 | + __('Are you sure you want to bulk update the details?', 'event_espresso'), |
|
1300 | 1300 | |
1301 | 1301 | // Reference: packages/ee-components/src/bulkEdit/details/Submit.tsx:18 |
1302 | - __( 'Bulk update details', 'event_espresso' ), |
|
1302 | + __('Bulk update details', 'event_espresso'), |
|
1303 | 1303 | |
1304 | 1304 | // Reference: packages/ee-components/src/filterBar/SortByControl/index.tsx:27 |
1305 | - __( 'reorder dates', 'event_espresso' ), |
|
1305 | + __('reorder dates', 'event_espresso'), |
|
1306 | 1306 | |
1307 | 1307 | // Reference: packages/ee-components/src/filterBar/SortByControl/index.tsx:27 |
1308 | - __( 'reorder tickets', 'event_espresso' ), |
|
1308 | + __('reorder tickets', 'event_espresso'), |
|
1309 | 1309 | |
1310 | 1310 | // Reference: packages/form-builder/src/FormElement/FormElementToolbar.tsx:32 |
1311 | - __( 'delete form element', 'event_espresso' ), |
|
1311 | + __('delete form element', 'event_espresso'), |
|
1312 | 1312 | |
1313 | 1313 | // Reference: packages/form-builder/src/FormElement/FormElementToolbar.tsx:49 |
1314 | - __( 'form element settings', 'event_espresso' ), |
|
1314 | + __('form element settings', 'event_espresso'), |
|
1315 | 1315 | |
1316 | 1316 | // Reference: packages/form-builder/src/FormElement/FormElementToolbar.tsx:59 |
1317 | - __( 'copy form element', 'event_espresso' ), |
|
1317 | + __('copy form element', 'event_espresso'), |
|
1318 | 1318 | |
1319 | 1319 | // Reference: packages/form-builder/src/FormElement/FormElementToolbar.tsx:69 |
1320 | - __( 'click, hold, and drag to reorder form element', 'event_espresso' ), |
|
1320 | + __('click, hold, and drag to reorder form element', 'event_espresso'), |
|
1321 | 1321 | |
1322 | 1322 | // Reference: packages/form-builder/src/FormElement/Tabs/FieldOption.tsx:20 |
1323 | - __( 'remove option', 'event_espresso' ), |
|
1323 | + __('remove option', 'event_espresso'), |
|
1324 | 1324 | |
1325 | 1325 | // Reference: packages/form-builder/src/FormElement/Tabs/FieldOption.tsx:42 |
1326 | - __( 'value', 'event_espresso' ), |
|
1326 | + __('value', 'event_espresso'), |
|
1327 | 1327 | |
1328 | 1328 | // Reference: packages/form-builder/src/FormElement/Tabs/FieldOption.tsx:52 |
1329 | - __( 'label', 'event_espresso' ), |
|
1329 | + __('label', 'event_espresso'), |
|
1330 | 1330 | |
1331 | 1331 | // Reference: packages/form-builder/src/FormElement/Tabs/FieldOption.tsx:63 |
1332 | - __( 'click, hold, and drag to reorder field option', 'event_espresso' ), |
|
1332 | + __('click, hold, and drag to reorder field option', 'event_espresso'), |
|
1333 | 1333 | |
1334 | 1334 | // Reference: packages/form-builder/src/FormElement/Tabs/FieldOptions.tsx:61 |
1335 | - __( 'Options are the choices you give people to select from.', 'event_espresso' ), |
|
1335 | + __('Options are the choices you give people to select from.', 'event_espresso'), |
|
1336 | 1336 | |
1337 | 1337 | // Reference: packages/form-builder/src/FormElement/Tabs/FieldOptions.tsx:63 |
1338 | - __( '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' ), |
|
1338 | + __('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'), |
|
1339 | 1339 | |
1340 | 1340 | // Reference: packages/form-builder/src/FormElement/Tabs/FieldOptions.tsx:96 |
1341 | - __( 'add new option', 'event_espresso' ), |
|
1341 | + __('add new option', 'event_espresso'), |
|
1342 | 1342 | |
1343 | 1343 | // Reference: packages/form-builder/src/FormElement/Tabs/FormElementTabs.tsx:26 |
1344 | 1344 | // Reference: packages/form-builder/src/FormSection/Tabs/FormSectionTabs.tsx:25 |
1345 | - __( 'Styles', 'event_espresso' ), |
|
1345 | + __('Styles', 'event_espresso'), |
|
1346 | 1346 | |
1347 | 1347 | // Reference: packages/form-builder/src/FormElement/Tabs/FormElementTabs.tsx:30 |
1348 | - __( 'Validation', 'event_espresso' ), |
|
1348 | + __('Validation', 'event_espresso'), |
|
1349 | 1349 | |
1350 | 1350 | // Reference: packages/form-builder/src/FormElement/Tabs/InputType.tsx:18 |
1351 | - __( 'Change input type', 'event_espresso' ), |
|
1351 | + __('Change input type', 'event_espresso'), |
|
1352 | 1352 | |
1353 | 1353 | // Reference: packages/form-builder/src/FormElement/Tabs/InputType.tsx:19 |
1354 | - __( 'Some configurations might be lost. Are you sure you want to change the input type?', 'event_espresso' ), |
|
1354 | + __('Some configurations might be lost. Are you sure you want to change the input type?', 'event_espresso'), |
|
1355 | 1355 | |
1356 | 1356 | // Reference: packages/form-builder/src/FormElement/Tabs/InputType.tsx:40 |
1357 | - __( 'type', 'event_espresso' ), |
|
1357 | + __('type', 'event_espresso'), |
|
1358 | 1358 | |
1359 | 1359 | // Reference: packages/form-builder/src/FormElement/Tabs/Settings.tsx:26 |
1360 | 1360 | // Reference: packages/form-builder/src/FormSection/Tabs/Settings.tsx:17 |
1361 | - __( 'public label', 'event_espresso' ), |
|
1361 | + __('public label', 'event_espresso'), |
|
1362 | 1362 | |
1363 | 1363 | // Reference: packages/form-builder/src/FormElement/Tabs/Settings.tsx:33 |
1364 | 1364 | // Reference: packages/form-builder/src/FormSection/Tabs/Settings.tsx:22 |
1365 | - __( 'admin label', 'event_espresso' ), |
|
1365 | + __('admin label', 'event_espresso'), |
|
1366 | 1366 | |
1367 | 1367 | // Reference: packages/form-builder/src/FormElement/Tabs/Settings.tsx:40 |
1368 | - __( 'content', 'event_espresso' ), |
|
1368 | + __('content', 'event_espresso'), |
|
1369 | 1369 | |
1370 | 1370 | // Reference: packages/form-builder/src/FormElement/Tabs/Settings.tsx:48 |
1371 | - __( 'options', 'event_espresso' ), |
|
1371 | + __('options', 'event_espresso'), |
|
1372 | 1372 | |
1373 | 1373 | // Reference: packages/form-builder/src/FormElement/Tabs/Settings.tsx:51 |
1374 | - __( 'placeholder', 'event_espresso' ), |
|
1374 | + __('placeholder', 'event_espresso'), |
|
1375 | 1375 | |
1376 | 1376 | // Reference: packages/form-builder/src/FormElement/Tabs/Settings.tsx:57 |
1377 | - __( 'admin only', 'event_espresso' ), |
|
1377 | + __('admin only', 'event_espresso'), |
|
1378 | 1378 | |
1379 | 1379 | // Reference: packages/form-builder/src/FormElement/Tabs/Settings.tsx:62 |
1380 | - __( 'help text', 'event_espresso' ), |
|
1380 | + __('help text', 'event_espresso'), |
|
1381 | 1381 | |
1382 | 1382 | // Reference: packages/form-builder/src/FormElement/Tabs/Settings.tsx:71 |
1383 | - __( 'maps to', 'event_espresso' ), |
|
1383 | + __('maps to', 'event_espresso'), |
|
1384 | 1384 | |
1385 | 1385 | // Reference: packages/form-builder/src/FormElement/Tabs/Styles.tsx:15 |
1386 | 1386 | // Reference: packages/form-builder/src/FormSection/Tabs/Styles.tsx:13 |
1387 | - __( 'css class', 'event_espresso' ), |
|
1387 | + __('css class', 'event_espresso'), |
|
1388 | 1388 | |
1389 | 1389 | // Reference: packages/form-builder/src/FormElement/Tabs/Styles.tsx:20 |
1390 | - __( 'help text css class', 'event_espresso' ), |
|
1390 | + __('help text css class', 'event_espresso'), |
|
1391 | 1391 | |
1392 | 1392 | // Reference: packages/form-builder/src/FormElement/Tabs/Styles.tsx:27 |
1393 | - __( 'size', 'event_espresso' ), |
|
1393 | + __('size', 'event_espresso'), |
|
1394 | 1394 | |
1395 | 1395 | // Reference: packages/form-builder/src/FormElement/Tabs/Styles.tsx:35 |
1396 | - __( 'step', 'event_espresso' ), |
|
1396 | + __('step', 'event_espresso'), |
|
1397 | 1397 | |
1398 | 1398 | // Reference: packages/form-builder/src/FormElement/Tabs/Styles.tsx:41 |
1399 | - __( 'maxlength', 'event_espresso' ), |
|
1399 | + __('maxlength', 'event_espresso'), |
|
1400 | 1400 | |
1401 | 1401 | // Reference: packages/form-builder/src/FormElement/Tabs/Validation.tsx:123 |
1402 | - __( 'min', 'event_espresso' ), |
|
1402 | + __('min', 'event_espresso'), |
|
1403 | 1403 | |
1404 | 1404 | // Reference: packages/form-builder/src/FormElement/Tabs/Validation.tsx:128 |
1405 | - __( 'max', 'event_espresso' ), |
|
1405 | + __('max', 'event_espresso'), |
|
1406 | 1406 | |
1407 | 1407 | // Reference: packages/form-builder/src/FormElement/Tabs/Validation.tsx:28 |
1408 | - __( 'Germany', 'event_espresso' ), |
|
1408 | + __('Germany', 'event_espresso'), |
|
1409 | 1409 | |
1410 | 1410 | // Reference: packages/form-builder/src/FormElement/Tabs/Validation.tsx:32 |
1411 | - __( 'France', 'event_espresso' ), |
|
1411 | + __('France', 'event_espresso'), |
|
1412 | 1412 | |
1413 | 1413 | // Reference: packages/form-builder/src/FormElement/Tabs/Validation.tsx:36 |
1414 | - __( 'United Kingdom', 'event_espresso' ), |
|
1414 | + __('United Kingdom', 'event_espresso'), |
|
1415 | 1415 | |
1416 | 1416 | // Reference: packages/form-builder/src/FormElement/Tabs/Validation.tsx:40 |
1417 | - __( 'United States', 'event_espresso' ), |
|
1417 | + __('United States', 'event_espresso'), |
|
1418 | 1418 | |
1419 | 1419 | // Reference: packages/form-builder/src/FormElement/Tabs/Validation.tsx:44 |
1420 | - __( 'Custom', 'event_espresso' ), |
|
1420 | + __('Custom', 'event_espresso'), |
|
1421 | 1421 | |
1422 | 1422 | // Reference: packages/form-builder/src/FormElement/Tabs/Validation.tsx:54 |
1423 | - __( 'required', 'event_espresso' ), |
|
1423 | + __('required', 'event_espresso'), |
|
1424 | 1424 | |
1425 | 1425 | // Reference: packages/form-builder/src/FormElement/Tabs/Validation.tsx:59 |
1426 | - __( 'required text', 'event_espresso' ), |
|
1426 | + __('required text', 'event_espresso'), |
|
1427 | 1427 | |
1428 | 1428 | // Reference: packages/form-builder/src/FormElement/Tabs/Validation.tsx:66 |
1429 | - __( 'autocomplete', 'event_espresso' ), |
|
1429 | + __('autocomplete', 'event_espresso'), |
|
1430 | 1430 | |
1431 | 1431 | // Reference: packages/form-builder/src/FormElement/Tabs/Validation.tsx:74 |
1432 | - __( 'custom format', 'event_espresso' ), |
|
1432 | + __('custom format', 'event_espresso'), |
|
1433 | 1433 | |
1434 | 1434 | // Reference: packages/form-builder/src/FormElement/Tabs/Validation.tsx:75 |
1435 | - __( 'format', 'event_espresso' ), |
|
1435 | + __('format', 'event_espresso'), |
|
1436 | 1436 | |
1437 | 1437 | // Reference: packages/form-builder/src/FormElement/Tabs/Validation.tsx:83 |
1438 | - __( 'pattern', 'event_espresso' ), |
|
1438 | + __('pattern', 'event_espresso'), |
|
1439 | 1439 | |
1440 | 1440 | // Reference: packages/form-builder/src/FormSection/AddFormElementPopover.tsx:110 |
1441 | - __( 'add new form element', 'event_espresso' ), |
|
1441 | + __('add new form element', 'event_espresso'), |
|
1442 | 1442 | |
1443 | 1443 | // Reference: packages/form-builder/src/FormSection/AddFormElementPopover.tsx:117 |
1444 | 1444 | // Reference: packages/form/src/renderers/RepeatableRenderer.tsx:52 |
1445 | - __( 'Add', 'event_espresso' ), |
|
1445 | + __('Add', 'event_espresso'), |
|
1446 | 1446 | |
1447 | 1447 | // Reference: packages/form-builder/src/FormSection/AddFormElementPopover.tsx:76 |
1448 | - __( 'Add Form Element', 'event_espresso' ), |
|
1448 | + __('Add Form Element', 'event_espresso'), |
|
1449 | 1449 | |
1450 | 1450 | // Reference: packages/form-builder/src/FormSection/AddFormElementPopover.tsx:85 |
1451 | - __( 'form element order can be changed after adding by using the drag handles in the form element toolbar', 'event_espresso' ), |
|
1451 | + __('form element order can be changed after adding by using the drag handles in the form element toolbar', 'event_espresso'), |
|
1452 | 1452 | |
1453 | 1453 | // Reference: packages/form-builder/src/FormSection/AddFormElementPopover.tsx:92 |
1454 | - __( 'load existing form section', 'event_espresso' ), |
|
1454 | + __('load existing form section', 'event_espresso'), |
|
1455 | 1455 | |
1456 | 1456 | // Reference: packages/form-builder/src/FormSection/FormSectionToolbar.tsx:32 |
1457 | - __( 'delete form section', 'event_espresso' ), |
|
1457 | + __('delete form section', 'event_espresso'), |
|
1458 | 1458 | |
1459 | 1459 | // Reference: packages/form-builder/src/FormSection/FormSectionToolbar.tsx:47 |
1460 | - __( 'form section settings', 'event_espresso' ), |
|
1460 | + __('form section settings', 'event_espresso'), |
|
1461 | 1461 | |
1462 | 1462 | // Reference: packages/form-builder/src/FormSection/FormSectionToolbar.tsx:57 |
1463 | - __( 'copy form section', 'event_espresso' ), |
|
1463 | + __('copy form section', 'event_espresso'), |
|
1464 | 1464 | |
1465 | 1465 | // Reference: packages/form-builder/src/FormSection/FormSectionToolbar.tsx:74 |
1466 | - __( 'click, hold, and drag to reorder form section', 'event_espresso' ), |
|
1466 | + __('click, hold, and drag to reorder form section', 'event_espresso'), |
|
1467 | 1467 | |
1468 | 1468 | // Reference: packages/form-builder/src/FormSection/FormSections.tsx:26 |
1469 | - __( 'Add Form Section', 'event_espresso' ), |
|
1469 | + __('Add Form Section', 'event_espresso'), |
|
1470 | 1470 | |
1471 | 1471 | // Reference: packages/form-builder/src/FormSection/SaveSection.tsx:47 |
1472 | - __( 'save form section for use in other forms', 'event_espresso' ), |
|
1472 | + __('save form section for use in other forms', 'event_espresso'), |
|
1473 | 1473 | |
1474 | 1474 | // Reference: packages/form-builder/src/FormSection/SaveSection.tsx:51 |
1475 | - __( 'save as', 'event_espresso' ), |
|
1475 | + __('save as', 'event_espresso'), |
|
1476 | 1476 | |
1477 | 1477 | // Reference: packages/form-builder/src/FormSection/SaveSection.tsx:55 |
1478 | - __( 'default', 'event_espresso' ), |
|
1478 | + __('default', 'event_espresso'), |
|
1479 | 1479 | |
1480 | 1480 | // Reference: packages/form-builder/src/FormSection/SaveSection.tsx:58 |
1481 | - __( ' a copy of this form section will be automatically added to ALL new events', 'event_espresso' ), |
|
1481 | + __(' a copy of this form section will be automatically added to ALL new events', 'event_espresso'), |
|
1482 | 1482 | |
1483 | 1483 | // Reference: packages/form-builder/src/FormSection/SaveSection.tsx:61 |
1484 | - __( 'shared', 'event_espresso' ), |
|
1484 | + __('shared', 'event_espresso'), |
|
1485 | 1485 | |
1486 | 1486 | // Reference: packages/form-builder/src/FormSection/SaveSection.tsx:64 |
1487 | - __( 'a copy of this form section will be saved for use in other events but not loaded by default', 'event_espresso' ), |
|
1487 | + __('a copy of this form section will be saved for use in other events but not loaded by default', 'event_espresso'), |
|
1488 | 1488 | |
1489 | 1489 | // Reference: packages/form-builder/src/FormSection/Tabs/Settings.tsx:27 |
1490 | - __( 'show label', 'event_espresso' ), |
|
1490 | + __('show label', 'event_espresso'), |
|
1491 | 1491 | |
1492 | 1492 | // Reference: packages/form-builder/src/FormSection/Tabs/Settings.tsx:33 |
1493 | - __( 'applies to', 'event_espresso' ), |
|
1493 | + __('applies to', 'event_espresso'), |
|
1494 | 1494 | |
1495 | 1495 | // Reference: packages/form-builder/src/constants.ts:102 |
1496 | 1496 | // Reference: packages/form-builder/src/state/utils.ts:436 |
1497 | - __( 'URL', 'event_espresso' ), |
|
1497 | + __('URL', 'event_espresso'), |
|
1498 | 1498 | |
1499 | 1499 | // Reference: packages/form-builder/src/constants.ts:104 |
1500 | - __( 'adds a text input for entering a URL address', 'event_espresso' ), |
|
1500 | + __('adds a text input for entering a URL address', 'event_espresso'), |
|
1501 | 1501 | |
1502 | 1502 | // Reference: packages/form-builder/src/constants.ts:107 |
1503 | - __( 'Date', 'event_espresso' ), |
|
1503 | + __('Date', 'event_espresso'), |
|
1504 | 1504 | |
1505 | 1505 | // Reference: packages/form-builder/src/constants.ts:109 |
1506 | - __( 'adds a text input that allows users to enter a date directly via keyboard or a datepicker', 'event_espresso' ), |
|
1506 | + __('adds a text input that allows users to enter a date directly via keyboard or a datepicker', 'event_espresso'), |
|
1507 | 1507 | |
1508 | 1508 | // Reference: packages/form-builder/src/constants.ts:112 |
1509 | 1509 | // Reference: packages/form-builder/src/state/utils.ts:369 |
1510 | - __( 'Local Date', 'event_espresso' ), |
|
1510 | + __('Local Date', 'event_espresso'), |
|
1511 | 1511 | |
1512 | 1512 | // Reference: packages/form-builder/src/constants.ts:117 |
1513 | - __( 'Month', 'event_espresso' ), |
|
1513 | + __('Month', 'event_espresso'), |
|
1514 | 1514 | |
1515 | 1515 | // Reference: packages/form-builder/src/constants.ts:119 |
1516 | - __( 'adds a text input that allows users to enter a month and year directly via keyboard or a datepicker', 'event_espresso' ), |
|
1516 | + __('adds a text input that allows users to enter a month and year directly via keyboard or a datepicker', 'event_espresso'), |
|
1517 | 1517 | |
1518 | 1518 | // Reference: packages/form-builder/src/constants.ts:122 |
1519 | - __( 'Time', 'event_espresso' ), |
|
1519 | + __('Time', 'event_espresso'), |
|
1520 | 1520 | |
1521 | 1521 | // Reference: packages/form-builder/src/constants.ts:124 |
1522 | - __( 'adds a text input that allows users to enter a time directly via keyboard or a timepicker', 'event_espresso' ), |
|
1522 | + __('adds a text input that allows users to enter a time directly via keyboard or a timepicker', 'event_espresso'), |
|
1523 | 1523 | |
1524 | 1524 | // Reference: packages/form-builder/src/constants.ts:127 |
1525 | - __( 'Week', 'event_espresso' ), |
|
1525 | + __('Week', 'event_espresso'), |
|
1526 | 1526 | |
1527 | 1527 | // Reference: packages/form-builder/src/constants.ts:129 |
1528 | - __( 'adds a text input that allows users to enter a week and year directly via keyboard or a datepicker', 'event_espresso' ), |
|
1528 | + __('adds a text input that allows users to enter a week and year directly via keyboard or a datepicker', 'event_espresso'), |
|
1529 | 1529 | |
1530 | 1530 | // Reference: packages/form-builder/src/constants.ts:132 |
1531 | - __( 'Day Selector', 'event_espresso' ), |
|
1531 | + __('Day Selector', 'event_espresso'), |
|
1532 | 1532 | |
1533 | 1533 | // Reference: packages/form-builder/src/constants.ts:134 |
1534 | - __( 'adds a dropdown selector that allows users to select the day of the month (01 to 31)', 'event_espresso' ), |
|
1534 | + __('adds a dropdown selector that allows users to select the day of the month (01 to 31)', 'event_espresso'), |
|
1535 | 1535 | |
1536 | 1536 | // Reference: packages/form-builder/src/constants.ts:137 |
1537 | - __( 'Month Selector', 'event_espresso' ), |
|
1537 | + __('Month Selector', 'event_espresso'), |
|
1538 | 1538 | |
1539 | 1539 | // Reference: packages/form-builder/src/constants.ts:139 |
1540 | - __( 'adds a dropdown selector that allows users to select the month of the year (01 to 12)', 'event_espresso' ), |
|
1540 | + __('adds a dropdown selector that allows users to select the month of the year (01 to 12)', 'event_espresso'), |
|
1541 | 1541 | |
1542 | 1542 | // Reference: packages/form-builder/src/constants.ts:142 |
1543 | - __( 'Year Selector', 'event_espresso' ), |
|
1543 | + __('Year Selector', 'event_espresso'), |
|
1544 | 1544 | |
1545 | 1545 | // Reference: packages/form-builder/src/constants.ts:144 |
1546 | - __( 'adds a dropdown selector that allows users to select the year from a configurable range', 'event_espresso' ), |
|
1546 | + __('adds a dropdown selector that allows users to select the year from a configurable range', 'event_espresso'), |
|
1547 | 1547 | |
1548 | 1548 | // Reference: packages/form-builder/src/constants.ts:147 |
1549 | - __( 'Radio Buttons', 'event_espresso' ), |
|
1549 | + __('Radio Buttons', 'event_espresso'), |
|
1550 | 1550 | |
1551 | 1551 | // Reference: packages/form-builder/src/constants.ts:149 |
1552 | - __( 'adds one or more radio buttons that allow users to only select one option from those provided', 'event_espresso' ), |
|
1552 | + __('adds one or more radio buttons that allow users to only select one option from those provided', 'event_espresso'), |
|
1553 | 1553 | |
1554 | 1554 | // Reference: packages/form-builder/src/constants.ts:152 |
1555 | 1555 | // Reference: packages/form-builder/src/state/utils.ts:375 |
1556 | - __( 'Decimal Number', 'event_espresso' ), |
|
1556 | + __('Decimal Number', 'event_espresso'), |
|
1557 | 1557 | |
1558 | 1558 | // Reference: packages/form-builder/src/constants.ts:154 |
1559 | - __( 'adds a text input that only accepts numbers whose value is a decimal (float)', 'event_espresso' ), |
|
1559 | + __('adds a text input that only accepts numbers whose value is a decimal (float)', 'event_espresso'), |
|
1560 | 1560 | |
1561 | 1561 | // Reference: packages/form-builder/src/constants.ts:157 |
1562 | 1562 | // Reference: packages/form-builder/src/state/utils.ts:378 |
1563 | - __( 'Whole Number', 'event_espresso' ), |
|
1563 | + __('Whole Number', 'event_espresso'), |
|
1564 | 1564 | |
1565 | 1565 | // Reference: packages/form-builder/src/constants.ts:159 |
1566 | - __( 'adds a text input that only accepts numbers whose value is an integer (whole number)', 'event_espresso' ), |
|
1566 | + __('adds a text input that only accepts numbers whose value is an integer (whole number)', 'event_espresso'), |
|
1567 | 1567 | |
1568 | 1568 | // Reference: packages/form-builder/src/constants.ts:162 |
1569 | - __( 'Number Range', 'event_espresso' ), |
|
1569 | + __('Number Range', 'event_espresso'), |
|
1570 | 1570 | |
1571 | 1571 | // Reference: packages/form-builder/src/constants.ts:167 |
1572 | - __( 'Phone Number', 'event_espresso' ), |
|
1572 | + __('Phone Number', 'event_espresso'), |
|
1573 | 1573 | |
1574 | 1574 | // Reference: packages/form-builder/src/constants.ts:172 |
1575 | - __( 'Dropdown', 'event_espresso' ), |
|
1575 | + __('Dropdown', 'event_espresso'), |
|
1576 | 1576 | |
1577 | 1577 | // Reference: packages/form-builder/src/constants.ts:174 |
1578 | - __( 'adds a dropdown selector that accepts a single value', 'event_espresso' ), |
|
1578 | + __('adds a dropdown selector that accepts a single value', 'event_espresso'), |
|
1579 | 1579 | |
1580 | 1580 | // Reference: packages/form-builder/src/constants.ts:177 |
1581 | - __( 'Multi Select', 'event_espresso' ), |
|
1581 | + __('Multi Select', 'event_espresso'), |
|
1582 | 1582 | |
1583 | 1583 | // Reference: packages/form-builder/src/constants.ts:179 |
1584 | - __( 'adds a dropdown selector that accepts multiple values', 'event_espresso' ), |
|
1584 | + __('adds a dropdown selector that accepts multiple values', 'event_espresso'), |
|
1585 | 1585 | |
1586 | 1586 | // Reference: packages/form-builder/src/constants.ts:182 |
1587 | - __( 'Toggle/Switch', 'event_espresso' ), |
|
1587 | + __('Toggle/Switch', 'event_espresso'), |
|
1588 | 1588 | |
1589 | 1589 | // Reference: packages/form-builder/src/constants.ts:184 |
1590 | - __( 'adds a toggle or a switch to accept true or false value', 'event_espresso' ), |
|
1590 | + __('adds a toggle or a switch to accept true or false value', 'event_espresso'), |
|
1591 | 1591 | |
1592 | 1592 | // Reference: packages/form-builder/src/constants.ts:187 |
1593 | - __( 'Multi Checkbox', 'event_espresso' ), |
|
1593 | + __('Multi Checkbox', 'event_espresso'), |
|
1594 | 1594 | |
1595 | 1595 | // Reference: packages/form-builder/src/constants.ts:189 |
1596 | - __( 'adds checkboxes that allow users to select zero or more options from those provided', 'event_espresso' ), |
|
1596 | + __('adds checkboxes that allow users to select zero or more options from those provided', 'event_espresso'), |
|
1597 | 1597 | |
1598 | 1598 | // Reference: packages/form-builder/src/constants.ts:192 |
1599 | - __( 'Country Selector', 'event_espresso' ), |
|
1599 | + __('Country Selector', 'event_espresso'), |
|
1600 | 1600 | |
1601 | 1601 | // Reference: packages/form-builder/src/constants.ts:194 |
1602 | - __( 'adds a dropdown selector populated with names of countries that are enabled for the site', 'event_espresso' ), |
|
1602 | + __('adds a dropdown selector populated with names of countries that are enabled for the site', 'event_espresso'), |
|
1603 | 1603 | |
1604 | 1604 | // Reference: packages/form-builder/src/constants.ts:197 |
1605 | - __( 'State Selector', 'event_espresso' ), |
|
1605 | + __('State Selector', 'event_espresso'), |
|
1606 | 1606 | |
1607 | 1607 | // Reference: packages/form-builder/src/constants.ts:202 |
1608 | - __( 'Button', 'event_espresso' ), |
|
1608 | + __('Button', 'event_espresso'), |
|
1609 | 1609 | |
1610 | 1610 | // Reference: packages/form-builder/src/constants.ts:204 |
1611 | - __( 'adds a button to the form that can be used for triggering fucntionality (requires custom coding)', 'event_espresso' ), |
|
1611 | + __('adds a button to the form that can be used for triggering fucntionality (requires custom coding)', 'event_espresso'), |
|
1612 | 1612 | |
1613 | 1613 | // Reference: packages/form-builder/src/constants.ts:207 |
1614 | - __( 'Reset Button', 'event_espresso' ), |
|
1614 | + __('Reset Button', 'event_espresso'), |
|
1615 | 1615 | |
1616 | 1616 | // Reference: packages/form-builder/src/constants.ts:209 |
1617 | - __( 'adds a button that will reset the form back to its original state.', 'event_espresso' ), |
|
1617 | + __('adds a button that will reset the form back to its original state.', 'event_espresso'), |
|
1618 | 1618 | |
1619 | 1619 | // Reference: packages/form-builder/src/constants.ts:55 |
1620 | - __( 'Form Section', 'event_espresso' ), |
|
1620 | + __('Form Section', 'event_espresso'), |
|
1621 | 1621 | |
1622 | 1622 | // Reference: packages/form-builder/src/constants.ts:57 |
1623 | - __( 'Used for creating logical groupings for questions and form elements. Need to add a heading or description? Use the HTML form element.', 'event_espresso' ), |
|
1623 | + __('Used for creating logical groupings for questions and form elements. Need to add a heading or description? Use the HTML form element.', 'event_espresso'), |
|
1624 | 1624 | |
1625 | 1625 | // Reference: packages/form-builder/src/constants.ts:62 |
1626 | - __( 'HTML Block', 'event_espresso' ), |
|
1626 | + __('HTML Block', 'event_espresso'), |
|
1627 | 1627 | |
1628 | 1628 | // Reference: packages/form-builder/src/constants.ts:64 |
1629 | - __( 'allows you to add HTML like headings or text paragraphs to your form', 'event_espresso' ), |
|
1629 | + __('allows you to add HTML like headings or text paragraphs to your form', 'event_espresso'), |
|
1630 | 1630 | |
1631 | 1631 | // Reference: packages/form-builder/src/constants.ts:69 |
1632 | - __( 'adds a text input that only accepts plain text', 'event_espresso' ), |
|
1632 | + __('adds a text input that only accepts plain text', 'event_espresso'), |
|
1633 | 1633 | |
1634 | 1634 | // Reference: packages/form-builder/src/constants.ts:72 |
1635 | - __( 'Plain Text Area', 'event_espresso' ), |
|
1635 | + __('Plain Text Area', 'event_espresso'), |
|
1636 | 1636 | |
1637 | 1637 | // Reference: packages/form-builder/src/constants.ts:74 |
1638 | - __( 'adds a textarea block that only accepts plain text', 'event_espresso' ), |
|
1638 | + __('adds a textarea block that only accepts plain text', 'event_espresso'), |
|
1639 | 1639 | |
1640 | 1640 | // Reference: packages/form-builder/src/constants.ts:77 |
1641 | - __( 'HTML Text Area', 'event_espresso' ), |
|
1641 | + __('HTML Text Area', 'event_espresso'), |
|
1642 | 1642 | |
1643 | 1643 | // Reference: packages/form-builder/src/constants.ts:79 |
1644 | - __( 'adds a textarea block that accepts text including simple HTML markup', 'event_espresso' ), |
|
1644 | + __('adds a textarea block that accepts text including simple HTML markup', 'event_espresso'), |
|
1645 | 1645 | |
1646 | 1646 | // Reference: packages/form-builder/src/constants.ts:84 |
1647 | - __( 'adds a text input that only accepts a valid email address', 'event_espresso' ), |
|
1647 | + __('adds a text input that only accepts a valid email address', 'event_espresso'), |
|
1648 | 1648 | |
1649 | 1649 | // Reference: packages/form-builder/src/constants.ts:87 |
1650 | - __( 'Email Confirmation', 'event_espresso' ), |
|
1650 | + __('Email Confirmation', 'event_espresso'), |
|
1651 | 1651 | |
1652 | 1652 | // Reference: packages/form-builder/src/constants.ts:92 |
1653 | - __( 'Password', 'event_espresso' ), |
|
1653 | + __('Password', 'event_espresso'), |
|
1654 | 1654 | |
1655 | 1655 | // Reference: packages/form-builder/src/constants.ts:94 |
1656 | - __( 'adds a text input that accepts text but masks what the user enters', 'event_espresso' ), |
|
1656 | + __('adds a text input that accepts text but masks what the user enters', 'event_espresso'), |
|
1657 | 1657 | |
1658 | 1658 | // Reference: packages/form-builder/src/constants.ts:97 |
1659 | - __( 'Password Confirmation', 'event_espresso' ), |
|
1659 | + __('Password Confirmation', 'event_espresso'), |
|
1660 | 1660 | |
1661 | 1661 | // Reference: packages/form-builder/src/data/useElementMutator.ts:54 |
1662 | - __( 'element', 'event_espresso' ), |
|
1662 | + __('element', 'event_espresso'), |
|
1663 | 1663 | |
1664 | 1664 | // Reference: packages/form-builder/src/data/useSectionMutator.ts:54 |
1665 | - __( 'section', 'event_espresso' ), |
|
1665 | + __('section', 'event_espresso'), |
|
1666 | 1666 | |
1667 | 1667 | // Reference: packages/form-builder/src/state/utils.ts:360 |
1668 | - __( 'click', 'event_espresso' ), |
|
1668 | + __('click', 'event_espresso'), |
|
1669 | 1669 | |
1670 | 1670 | // Reference: packages/form-builder/src/state/utils.ts:363 |
1671 | - __( 'checkboxes', 'event_espresso' ), |
|
1671 | + __('checkboxes', 'event_espresso'), |
|
1672 | 1672 | |
1673 | 1673 | // Reference: packages/form-builder/src/state/utils.ts:366 |
1674 | - __( 'date', 'event_espresso' ), |
|
1674 | + __('date', 'event_espresso'), |
|
1675 | 1675 | |
1676 | 1676 | // Reference: packages/form-builder/src/state/utils.ts:372 |
1677 | - __( 'day', 'event_espresso' ), |
|
1677 | + __('day', 'event_espresso'), |
|
1678 | 1678 | |
1679 | 1679 | // Reference: packages/form-builder/src/state/utils.ts:381 |
1680 | - __( 'email address', 'event_espresso' ), |
|
1680 | + __('email address', 'event_espresso'), |
|
1681 | 1681 | |
1682 | 1682 | // Reference: packages/form-builder/src/state/utils.ts:384 |
1683 | - __( 'confirm email address', 'event_espresso' ), |
|
1683 | + __('confirm email address', 'event_espresso'), |
|
1684 | 1684 | |
1685 | 1685 | // Reference: packages/form-builder/src/state/utils.ts:388 |
1686 | - __( 'month', 'event_espresso' ), |
|
1686 | + __('month', 'event_espresso'), |
|
1687 | 1687 | |
1688 | 1688 | // Reference: packages/form-builder/src/state/utils.ts:391 |
1689 | - __( 'password', 'event_espresso' ), |
|
1689 | + __('password', 'event_espresso'), |
|
1690 | 1690 | |
1691 | 1691 | // Reference: packages/form-builder/src/state/utils.ts:394 |
1692 | - __( 'confirm password', 'event_espresso' ), |
|
1692 | + __('confirm password', 'event_espresso'), |
|
1693 | 1693 | |
1694 | 1694 | // Reference: packages/form-builder/src/state/utils.ts:397 |
1695 | - __( 'radio buttons', 'event_espresso' ), |
|
1695 | + __('radio buttons', 'event_espresso'), |
|
1696 | 1696 | |
1697 | 1697 | // Reference: packages/form-builder/src/state/utils.ts:400 |
1698 | - __( 'number range', 'event_espresso' ), |
|
1698 | + __('number range', 'event_espresso'), |
|
1699 | 1699 | |
1700 | 1700 | // Reference: packages/form-builder/src/state/utils.ts:403 |
1701 | - __( 'selection dropdown', 'event_espresso' ), |
|
1701 | + __('selection dropdown', 'event_espresso'), |
|
1702 | 1702 | |
1703 | 1703 | // Reference: packages/form-builder/src/state/utils.ts:406 |
1704 | - __( 'country', 'event_espresso' ), |
|
1704 | + __('country', 'event_espresso'), |
|
1705 | 1705 | |
1706 | 1706 | // Reference: packages/form-builder/src/state/utils.ts:409 |
1707 | - __( 'multi-select dropdown', 'event_espresso' ), |
|
1707 | + __('multi-select dropdown', 'event_espresso'), |
|
1708 | 1708 | |
1709 | 1709 | // Reference: packages/form-builder/src/state/utils.ts:412 |
1710 | - __( 'state/province', 'event_espresso' ), |
|
1710 | + __('state/province', 'event_espresso'), |
|
1711 | 1711 | |
1712 | 1712 | // Reference: packages/form-builder/src/state/utils.ts:415 |
1713 | - __( 'on/off switch', 'event_espresso' ), |
|
1713 | + __('on/off switch', 'event_espresso'), |
|
1714 | 1714 | |
1715 | 1715 | // Reference: packages/form-builder/src/state/utils.ts:418 |
1716 | - __( 'reset', 'event_espresso' ), |
|
1716 | + __('reset', 'event_espresso'), |
|
1717 | 1717 | |
1718 | 1718 | // Reference: packages/form-builder/src/state/utils.ts:421 |
1719 | - __( 'phone number', 'event_espresso' ), |
|
1719 | + __('phone number', 'event_espresso'), |
|
1720 | 1720 | |
1721 | 1721 | // Reference: packages/form-builder/src/state/utils.ts:424 |
1722 | - __( 'text', 'event_espresso' ), |
|
1722 | + __('text', 'event_espresso'), |
|
1723 | 1723 | |
1724 | 1724 | // Reference: packages/form-builder/src/state/utils.ts:427 |
1725 | - __( 'simple textarea', 'event_espresso' ), |
|
1725 | + __('simple textarea', 'event_espresso'), |
|
1726 | 1726 | |
1727 | 1727 | // Reference: packages/form-builder/src/state/utils.ts:430 |
1728 | - __( 'html textarea', 'event_espresso' ), |
|
1728 | + __('html textarea', 'event_espresso'), |
|
1729 | 1729 | |
1730 | 1730 | // Reference: packages/form-builder/src/state/utils.ts:439 |
1731 | - __( 'week', 'event_espresso' ), |
|
1731 | + __('week', 'event_espresso'), |
|
1732 | 1732 | |
1733 | 1733 | // Reference: packages/form-builder/src/state/utils.ts:442 |
1734 | - __( 'year', 'event_espresso' ), |
|
1734 | + __('year', 'event_espresso'), |
|
1735 | 1735 | |
1736 | 1736 | // Reference: packages/form/src/adapters/WPMediaImage.tsx:12 |
1737 | - __( 'Select Image', 'event_espresso' ), |
|
1737 | + __('Select Image', 'event_espresso'), |
|
1738 | 1738 | |
1739 | 1739 | // Reference: packages/form/src/adapters/WPMediaImage.tsx:44 |
1740 | 1740 | // Reference: packages/rich-text-editor/src/components/AdvancedTextEditor/toolbarButtons/WPMedia.tsx:11 |
1741 | 1741 | // Reference: packages/rich-text-editor/src/rte-old/components/toolbarButtons/WPMedia.tsx:12 |
1742 | 1742 | // Reference: packages/ui-components/src/SimpleEntityList/EntityTemplate.tsx:32 |
1743 | - __( 'Select', 'event_espresso' ), |
|
1743 | + __('Select', 'event_espresso'), |
|
1744 | 1744 | |
1745 | 1745 | // Reference: packages/form/src/renderers/RepeatableRenderer.tsx:36 |
1746 | 1746 | /* translators: %d the entry number */ |
1747 | - __( 'Entry %d', 'event_espresso' ), |
|
1747 | + __('Entry %d', 'event_espresso'), |
|
1748 | 1748 | |
1749 | 1749 | // Reference: packages/helpers/src/datetimes/getStatusTextLabel.ts:11 |
1750 | 1750 | // Reference: packages/helpers/src/tickets/getStatusTextLabel.ts:17 |
1751 | - __( 'sold out', 'event_espresso' ), |
|
1751 | + __('sold out', 'event_espresso'), |
|
1752 | 1752 | |
1753 | 1753 | // Reference: packages/helpers/src/datetimes/getStatusTextLabel.ts:14 |
1754 | 1754 | // Reference: packages/helpers/src/tickets/getStatusTextLabel.ts:14 |
1755 | - __( 'expired', 'event_espresso' ), |
|
1755 | + __('expired', 'event_espresso'), |
|
1756 | 1756 | |
1757 | 1757 | // Reference: packages/helpers/src/datetimes/getStatusTextLabel.ts:17 |
1758 | - __( 'upcoming', 'event_espresso' ), |
|
1758 | + __('upcoming', 'event_espresso'), |
|
1759 | 1759 | |
1760 | 1760 | // Reference: packages/helpers/src/datetimes/getStatusTextLabel.ts:20 |
1761 | - __( 'active', 'event_espresso' ), |
|
1761 | + __('active', 'event_espresso'), |
|
1762 | 1762 | |
1763 | 1763 | // Reference: packages/helpers/src/datetimes/getStatusTextLabel.ts:23 |
1764 | 1764 | // Reference: packages/helpers/src/tickets/getStatusTextLabel.ts:11 |
1765 | - __( 'trashed', 'event_espresso' ), |
|
1765 | + __('trashed', 'event_espresso'), |
|
1766 | 1766 | |
1767 | 1767 | // Reference: packages/helpers/src/datetimes/getStatusTextLabel.ts:26 |
1768 | - __( 'cancelled', 'event_espresso' ), |
|
1768 | + __('cancelled', 'event_espresso'), |
|
1769 | 1769 | |
1770 | 1770 | // Reference: packages/helpers/src/datetimes/getStatusTextLabel.ts:29 |
1771 | - __( 'postponed', 'event_espresso' ), |
|
1771 | + __('postponed', 'event_espresso'), |
|
1772 | 1772 | |
1773 | 1773 | // Reference: packages/helpers/src/datetimes/getStatusTextLabel.ts:33 |
1774 | - __( 'inactive', 'event_espresso' ), |
|
1774 | + __('inactive', 'event_espresso'), |
|
1775 | 1775 | |
1776 | 1776 | // Reference: packages/helpers/src/tickets/getStatusTextLabel.ts:20 |
1777 | - __( 'pending', 'event_espresso' ), |
|
1777 | + __('pending', 'event_espresso'), |
|
1778 | 1778 | |
1779 | 1779 | // Reference: packages/helpers/src/tickets/getStatusTextLabel.ts:23 |
1780 | - __( 'on sale', 'event_espresso' ), |
|
1780 | + __('on sale', 'event_espresso'), |
|
1781 | 1781 | |
1782 | 1782 | // Reference: packages/predicates/src/registration/statusOptions.ts:16 |
1783 | - __( 'Declined', 'event_espresso' ), |
|
1783 | + __('Declined', 'event_espresso'), |
|
1784 | 1784 | |
1785 | 1785 | // Reference: packages/predicates/src/registration/statusOptions.ts:21 |
1786 | - __( 'Incomplete', 'event_espresso' ), |
|
1786 | + __('Incomplete', 'event_espresso'), |
|
1787 | 1787 | |
1788 | 1788 | // Reference: packages/predicates/src/registration/statusOptions.ts:26 |
1789 | - __( 'Not Approved', 'event_espresso' ), |
|
1789 | + __('Not Approved', 'event_espresso'), |
|
1790 | 1790 | |
1791 | 1791 | // Reference: packages/predicates/src/registration/statusOptions.ts:31 |
1792 | - __( 'Pending Payment', 'event_espresso' ), |
|
1792 | + __('Pending Payment', 'event_espresso'), |
|
1793 | 1793 | |
1794 | 1794 | // Reference: packages/predicates/src/registration/statusOptions.ts:36 |
1795 | - __( 'Wait List', 'event_espresso' ), |
|
1795 | + __('Wait List', 'event_espresso'), |
|
1796 | 1796 | |
1797 | 1797 | // Reference: packages/predicates/src/registration/statusOptions.ts:6 |
1798 | - __( 'Approved', 'event_espresso' ), |
|
1798 | + __('Approved', 'event_espresso'), |
|
1799 | 1799 | |
1800 | 1800 | // Reference: packages/rich-text-editor/src/components/AdvancedTextEditor/toolbarButtons/WPMedia.tsx:9 |
1801 | 1801 | // Reference: packages/rich-text-editor/src/rte-old/components/toolbarButtons/WPMedia.tsx:10 |
1802 | - __( 'Select media', 'event_espresso' ), |
|
1802 | + __('Select media', 'event_espresso'), |
|
1803 | 1803 | |
1804 | 1804 | // Reference: packages/rich-text-editor/src/components/RichTextEditor/RichTextEditor.tsx:84 |
1805 | - __( 'Write something…', 'event_espresso' ), |
|
1805 | + __('Write something…', 'event_espresso'), |
|
1806 | 1806 | |
1807 | 1807 | // Reference: packages/rich-text-editor/src/components/RichTextEditor/Toolbar/Toolbar.tsx:20 |
1808 | - __( 'RTE Toolbar', 'event_espresso' ), |
|
1808 | + __('RTE Toolbar', 'event_espresso'), |
|
1809 | 1809 | |
1810 | 1810 | // Reference: packages/rich-text-editor/src/components/RichTextEditor/Toolbar/controls/blockType/Component.tsx:11 |
1811 | - __( 'Normal', 'event_espresso' ), |
|
1811 | + __('Normal', 'event_espresso'), |
|
1812 | 1812 | |
1813 | 1813 | // Reference: packages/rich-text-editor/src/components/RichTextEditor/Toolbar/controls/blockType/Component.tsx:12 |
1814 | - __( 'H1', 'event_espresso' ), |
|
1814 | + __('H1', 'event_espresso'), |
|
1815 | 1815 | |
1816 | 1816 | // Reference: packages/rich-text-editor/src/components/RichTextEditor/Toolbar/controls/blockType/Component.tsx:13 |
1817 | - __( 'H2', 'event_espresso' ), |
|
1817 | + __('H2', 'event_espresso'), |
|
1818 | 1818 | |
1819 | 1819 | // Reference: packages/rich-text-editor/src/components/RichTextEditor/Toolbar/controls/blockType/Component.tsx:14 |
1820 | - __( 'H3', 'event_espresso' ), |
|
1820 | + __('H3', 'event_espresso'), |
|
1821 | 1821 | |
1822 | 1822 | // Reference: packages/rich-text-editor/src/components/RichTextEditor/Toolbar/controls/blockType/Component.tsx:15 |
1823 | - __( 'H4', 'event_espresso' ), |
|
1823 | + __('H4', 'event_espresso'), |
|
1824 | 1824 | |
1825 | 1825 | // Reference: packages/rich-text-editor/src/components/RichTextEditor/Toolbar/controls/blockType/Component.tsx:16 |
1826 | - __( 'H5', 'event_espresso' ), |
|
1826 | + __('H5', 'event_espresso'), |
|
1827 | 1827 | |
1828 | 1828 | // Reference: packages/rich-text-editor/src/components/RichTextEditor/Toolbar/controls/blockType/Component.tsx:17 |
1829 | - __( 'H6', 'event_espresso' ), |
|
1829 | + __('H6', 'event_espresso'), |
|
1830 | 1830 | |
1831 | 1831 | // Reference: packages/rich-text-editor/src/components/RichTextEditor/Toolbar/controls/blockType/Component.tsx:18 |
1832 | - __( 'Block quote', 'event_espresso' ), |
|
1832 | + __('Block quote', 'event_espresso'), |
|
1833 | 1833 | |
1834 | 1834 | // Reference: packages/rich-text-editor/src/components/RichTextEditor/Toolbar/controls/blockType/Component.tsx:19 |
1835 | - __( 'Code', 'event_espresso' ), |
|
1835 | + __('Code', 'event_espresso'), |
|
1836 | 1836 | |
1837 | 1837 | // Reference: packages/rich-text-editor/src/components/RichTextEditor/Toolbar/controls/colorPicker/Component.tsx:36 |
1838 | - __( 'Set color', 'event_espresso' ), |
|
1838 | + __('Set color', 'event_espresso'), |
|
1839 | 1839 | |
1840 | 1840 | // Reference: packages/rich-text-editor/src/components/RichTextEditor/Toolbar/controls/colorPicker/Component.tsx:45 |
1841 | - __( 'Text color', 'event_espresso' ), |
|
1841 | + __('Text color', 'event_espresso'), |
|
1842 | 1842 | |
1843 | 1843 | // Reference: packages/rich-text-editor/src/components/RichTextEditor/Toolbar/controls/colorPicker/Component.tsx:47 |
1844 | - __( 'Background color', 'event_espresso' ), |
|
1844 | + __('Background color', 'event_espresso'), |
|
1845 | 1845 | |
1846 | 1846 | // Reference: packages/rich-text-editor/src/components/RichTextEditor/Toolbar/controls/image/Component.tsx:39 |
1847 | - __( 'Add image', 'event_espresso' ), |
|
1847 | + __('Add image', 'event_espresso'), |
|
1848 | 1848 | |
1849 | 1849 | // Reference: packages/rich-text-editor/src/components/RichTextEditor/Toolbar/controls/image/Component.tsx:51 |
1850 | - __( 'Image URL', 'event_espresso' ), |
|
1850 | + __('Image URL', 'event_espresso'), |
|
1851 | 1851 | |
1852 | 1852 | // Reference: packages/rich-text-editor/src/components/RichTextEditor/Toolbar/controls/image/Component.tsx:55 |
1853 | - __( 'Alt text', 'event_espresso' ), |
|
1853 | + __('Alt text', 'event_espresso'), |
|
1854 | 1854 | |
1855 | 1855 | // Reference: packages/rich-text-editor/src/components/RichTextEditor/Toolbar/controls/image/Component.tsx:56 |
1856 | - __( 'Width', 'event_espresso' ), |
|
1856 | + __('Width', 'event_espresso'), |
|
1857 | 1857 | |
1858 | 1858 | // Reference: packages/rich-text-editor/src/components/RichTextEditor/Toolbar/controls/image/Component.tsx:60 |
1859 | - __( 'Height', 'event_espresso' ), |
|
1859 | + __('Height', 'event_espresso'), |
|
1860 | 1860 | |
1861 | 1861 | // Reference: packages/rich-text-editor/src/components/RichTextEditor/Toolbar/controls/link/Component.tsx:54 |
1862 | - __( 'Edit link', 'event_espresso' ), |
|
1862 | + __('Edit link', 'event_espresso'), |
|
1863 | 1863 | |
1864 | 1864 | // Reference: packages/rich-text-editor/src/components/RichTextEditor/Toolbar/controls/link/Component.tsx:64 |
1865 | - __( 'URL title', 'event_espresso' ), |
|
1865 | + __('URL title', 'event_espresso'), |
|
1866 | 1866 | |
1867 | 1867 | // Reference: packages/rich-text-editor/src/components/RichTextEditor/Toolbar/controls/list/Component.tsx:11 |
1868 | - __( 'Unordered list', 'event_espresso' ), |
|
1868 | + __('Unordered list', 'event_espresso'), |
|
1869 | 1869 | |
1870 | 1870 | // Reference: packages/rich-text-editor/src/components/RichTextEditor/Toolbar/controls/list/Component.tsx:12 |
1871 | - __( 'Ordered list', 'event_espresso' ), |
|
1871 | + __('Ordered list', 'event_espresso'), |
|
1872 | 1872 | |
1873 | 1873 | // Reference: packages/rich-text-editor/src/components/RichTextEditor/Toolbar/controls/list/Component.tsx:13 |
1874 | 1874 | // Reference: packages/rich-text-editor/src/components/RichTextEditor/Toolbar/controls/textAlign/Component.tsx:13 |
1875 | - __( 'Indent', 'event_espresso' ), |
|
1875 | + __('Indent', 'event_espresso'), |
|
1876 | 1876 | |
1877 | 1877 | // Reference: packages/rich-text-editor/src/components/RichTextEditor/Toolbar/controls/list/Component.tsx:14 |
1878 | 1878 | // Reference: packages/rich-text-editor/src/components/RichTextEditor/Toolbar/controls/textAlign/Component.tsx:14 |
1879 | - __( 'Outdent', 'event_espresso' ), |
|
1879 | + __('Outdent', 'event_espresso'), |
|
1880 | 1880 | |
1881 | 1881 | // Reference: packages/rich-text-editor/src/components/RichTextEditor/Toolbar/controls/textAlign/Component.tsx:11 |
1882 | - __( 'Unordered textalign', 'event_espresso' ), |
|
1882 | + __('Unordered textalign', 'event_espresso'), |
|
1883 | 1883 | |
1884 | 1884 | // Reference: packages/rich-text-editor/src/components/RichTextEditor/Toolbar/controls/textAlign/Component.tsx:12 |
1885 | - __( 'Ordered textalign', 'event_espresso' ), |
|
1885 | + __('Ordered textalign', 'event_espresso'), |
|
1886 | 1886 | |
1887 | 1887 | // Reference: packages/rich-text-editor/src/components/RichTextEditor/render/Image/Toolbar.tsx:32 |
1888 | - __( 'Image toolbar', 'event_espresso' ), |
|
1888 | + __('Image toolbar', 'event_espresso'), |
|
1889 | 1889 | |
1890 | 1890 | // Reference: packages/rich-text-editor/src/components/WithEditMode/WithEditMode.tsx:62 |
1891 | 1891 | // Reference: packages/rich-text-editor/src/rte-old/components/RTEWithEditMode/RTEWithEditMode.tsx:35 |
1892 | - __( 'Visual editor', 'event_espresso' ), |
|
1892 | + __('Visual editor', 'event_espresso'), |
|
1893 | 1893 | |
1894 | 1894 | // Reference: packages/rich-text-editor/src/components/WithEditMode/WithEditMode.tsx:66 |
1895 | 1895 | // Reference: packages/rich-text-editor/src/rte-old/components/RTEWithEditMode/RTEWithEditMode.tsx:39 |
1896 | - __( 'HTML editor', 'event_espresso' ), |
|
1896 | + __('HTML editor', 'event_espresso'), |
|
1897 | 1897 | |
1898 | 1898 | // Reference: packages/rich-text-editor/src/rte-old/components/toolbarButtons/WPMedia.tsx:68 |
1899 | - __( 'Add Media', 'event_espresso' ), |
|
1899 | + __('Add Media', 'event_espresso'), |
|
1900 | 1900 | |
1901 | 1901 | // Reference: packages/tpc/src/buttons/AddPriceModifierButton.tsx:14 |
1902 | - __( 'add new price modifier after this row', 'event_espresso' ), |
|
1902 | + __('add new price modifier after this row', 'event_espresso'), |
|
1903 | 1903 | |
1904 | 1904 | // Reference: packages/tpc/src/buttons/DeleteAllPricesButton.tsx:14 |
1905 | - __( 'Delete all prices', 'event_espresso' ), |
|
1905 | + __('Delete all prices', 'event_espresso'), |
|
1906 | 1906 | |
1907 | 1907 | // Reference: packages/tpc/src/buttons/DeleteAllPricesButton.tsx:27 |
1908 | - __( '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' ), |
|
1908 | + __('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'), |
|
1909 | 1909 | |
1910 | 1910 | // Reference: packages/tpc/src/buttons/DeleteAllPricesButton.tsx:31 |
1911 | - __( 'Delete all prices?', 'event_espresso' ), |
|
1911 | + __('Delete all prices?', 'event_espresso'), |
|
1912 | 1912 | |
1913 | 1913 | // Reference: packages/tpc/src/buttons/DeletePriceModifierButton.tsx:12 |
1914 | - __( 'delete price modifier', 'event_espresso' ), |
|
1914 | + __('delete price modifier', 'event_espresso'), |
|
1915 | 1915 | |
1916 | 1916 | // Reference: packages/tpc/src/buttons/ReverseCalculateButton.tsx:14 |
1917 | - __( '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' ), |
|
1917 | + __('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'), |
|
1918 | 1918 | |
1919 | 1919 | // Reference: packages/tpc/src/buttons/ReverseCalculateButton.tsx:17 |
1920 | - __( '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' ), |
|
1920 | + __('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'), |
|
1921 | 1921 | |
1922 | 1922 | // Reference: packages/tpc/src/buttons/ReverseCalculateButton.tsx:21 |
1923 | - __( 'Disable reverse calculate', 'event_espresso' ), |
|
1923 | + __('Disable reverse calculate', 'event_espresso'), |
|
1924 | 1924 | |
1925 | 1925 | // Reference: packages/tpc/src/buttons/ReverseCalculateButton.tsx:21 |
1926 | - __( 'Enable reverse calculate', 'event_espresso' ), |
|
1926 | + __('Enable reverse calculate', 'event_espresso'), |
|
1927 | 1927 | |
1928 | 1928 | // Reference: packages/tpc/src/buttons/TicketPriceCalculatorButton.tsx:28 |
1929 | - __( 'ticket price calculator', 'event_espresso' ), |
|
1929 | + __('ticket price calculator', 'event_espresso'), |
|
1930 | 1930 | |
1931 | 1931 | // Reference: packages/tpc/src/buttons/taxes/AddDefaultTaxesButton.tsx:9 |
1932 | - __( 'Add default taxes', 'event_espresso' ), |
|
1932 | + __('Add default taxes', 'event_espresso'), |
|
1933 | 1933 | |
1934 | 1934 | // Reference: packages/tpc/src/buttons/taxes/RemoveTaxesButton.tsx:10 |
1935 | - __( 'Are you sure you want to remove all of this ticket\'s taxes?', 'event_espresso' ), |
|
1935 | + __('Are you sure you want to remove all of this ticket\'s taxes?', 'event_espresso'), |
|
1936 | 1936 | |
1937 | 1937 | // Reference: packages/tpc/src/buttons/taxes/RemoveTaxesButton.tsx:14 |
1938 | - __( 'Remove all taxes?', 'event_espresso' ), |
|
1938 | + __('Remove all taxes?', 'event_espresso'), |
|
1939 | 1939 | |
1940 | 1940 | // Reference: packages/tpc/src/buttons/taxes/RemoveTaxesButton.tsx:7 |
1941 | - __( 'Remove taxes', 'event_espresso' ), |
|
1941 | + __('Remove taxes', 'event_espresso'), |
|
1942 | 1942 | |
1943 | 1943 | // Reference: packages/tpc/src/components/DefaultPricesInfo.tsx:29 |
1944 | - __( 'Modify default prices.', 'event_espresso' ), |
|
1944 | + __('Modify default prices.', 'event_espresso'), |
|
1945 | 1945 | |
1946 | 1946 | // Reference: packages/tpc/src/components/DefaultTaxesInfo.tsx:29 |
1947 | - __( 'New default taxes are available. Click the - Add default taxes - button to add them now.', 'event_espresso' ), |
|
1947 | + __('New default taxes are available. Click the - Add default taxes - button to add them now.', 'event_espresso'), |
|
1948 | 1948 | |
1949 | 1949 | // Reference: packages/tpc/src/components/LockedTicketsBanner.tsx:12 |
1950 | - __( 'Editing of prices is disabled', 'event_espresso' ), |
|
1950 | + __('Editing of prices is disabled', 'event_espresso'), |
|
1951 | 1951 | |
1952 | 1952 | // Reference: packages/tpc/src/components/NoPricesBanner/AddDefaultPricesButton.tsx:9 |
1953 | - __( 'Add default prices', 'event_espresso' ), |
|
1953 | + __('Add default prices', 'event_espresso'), |
|
1954 | 1954 | |
1955 | 1955 | // Reference: packages/tpc/src/components/NoPricesBanner/index.tsx:13 |
1956 | - __( 'This Ticket is Currently Free', 'event_espresso' ), |
|
1956 | + __('This Ticket is Currently Free', 'event_espresso'), |
|
1957 | 1957 | |
1958 | 1958 | // Reference: packages/tpc/src/components/NoPricesBanner/index.tsx:21 |
1959 | 1959 | /* translators: %s default prices */ |
1960 | - __( 'Click the button below to load your %s into the calculator.', 'event_espresso' ), |
|
1960 | + __('Click the button below to load your %s into the calculator.', 'event_espresso'), |
|
1961 | 1961 | |
1962 | 1962 | // Reference: packages/tpc/src/components/NoPricesBanner/index.tsx:22 |
1963 | - __( 'default prices', 'event_espresso' ), |
|
1963 | + __('default prices', 'event_espresso'), |
|
1964 | 1964 | |
1965 | 1965 | // Reference: packages/tpc/src/components/NoPricesBanner/index.tsx:29 |
1966 | - __( 'Additional ticket price modifiers can be added or removed.', 'event_espresso' ), |
|
1966 | + __('Additional ticket price modifiers can be added or removed.', 'event_espresso'), |
|
1967 | 1967 | |
1968 | 1968 | // Reference: packages/tpc/src/components/NoPricesBanner/index.tsx:32 |
1969 | - __( 'Click the save button below to assign which dates this ticket will be available for purchase on.', 'event_espresso' ), |
|
1969 | + __('Click the save button below to assign which dates this ticket will be available for purchase on.', 'event_espresso'), |
|
1970 | 1970 | |
1971 | 1971 | // Reference: packages/tpc/src/components/TicketPriceCalculatorModal.tsx:32 |
1972 | 1972 | /* translators: %s ticket name */ |
1973 | - __( 'Price Calculator for Ticket: %s', 'event_espresso' ), |
|
1973 | + __('Price Calculator for Ticket: %s', 'event_espresso'), |
|
1974 | 1974 | |
1975 | 1975 | // Reference: packages/tpc/src/components/table/useFooterRowGenerator.tsx:48 |
1976 | - __( 'Total', 'event_espresso' ), |
|
1976 | + __('Total', 'event_espresso'), |
|
1977 | 1977 | |
1978 | 1978 | // Reference: packages/tpc/src/components/table/useFooterRowGenerator.tsx:57 |
1979 | - __( 'ticket total', 'event_espresso' ), |
|
1979 | + __('ticket total', 'event_espresso'), |
|
1980 | 1980 | |
1981 | 1981 | // Reference: packages/tpc/src/components/table/useHeaderRowGenerator.ts:29 |
1982 | - __( 'Order', 'event_espresso' ), |
|
1982 | + __('Order', 'event_espresso'), |
|
1983 | 1983 | |
1984 | 1984 | // Reference: packages/tpc/src/components/table/useHeaderRowGenerator.ts:35 |
1985 | - __( 'Price Type', 'event_espresso' ), |
|
1985 | + __('Price Type', 'event_espresso'), |
|
1986 | 1986 | |
1987 | 1987 | // Reference: packages/tpc/src/components/table/useHeaderRowGenerator.ts:41 |
1988 | - __( 'Label', 'event_espresso' ), |
|
1988 | + __('Label', 'event_espresso'), |
|
1989 | 1989 | |
1990 | 1990 | // Reference: packages/tpc/src/components/table/useHeaderRowGenerator.ts:53 |
1991 | - __( 'Amount', 'event_espresso' ), |
|
1991 | + __('Amount', 'event_espresso'), |
|
1992 | 1992 | |
1993 | 1993 | // Reference: packages/tpc/src/hooks/useLockedTicketAction.ts:22 |
1994 | - __( 'Copy ticket', 'event_espresso' ), |
|
1994 | + __('Copy ticket', 'event_espresso'), |
|
1995 | 1995 | |
1996 | 1996 | // Reference: packages/tpc/src/hooks/useLockedTicketAction.ts:26 |
1997 | - __( 'Copy and archive this ticket', 'event_espresso' ), |
|
1997 | + __('Copy and archive this ticket', 'event_espresso'), |
|
1998 | 1998 | |
1999 | 1999 | // Reference: packages/tpc/src/hooks/useLockedTicketAction.ts:29 |
2000 | - __( 'OK', 'event_espresso' ), |
|
2000 | + __('OK', 'event_espresso'), |
|
2001 | 2001 | |
2002 | 2002 | // Reference: packages/tpc/src/inputs/PriceAmountInput.tsx:32 |
2003 | - __( 'amount', 'event_espresso' ), |
|
2003 | + __('amount', 'event_espresso'), |
|
2004 | 2004 | |
2005 | 2005 | // Reference: packages/tpc/src/inputs/PriceAmountInput.tsx:44 |
2006 | - __( 'amount…', 'event_espresso' ), |
|
2006 | + __('amount…', 'event_espresso'), |
|
2007 | 2007 | |
2008 | 2008 | // Reference: packages/tpc/src/inputs/PriceDescriptionInput.tsx:14 |
2009 | - __( 'description…', 'event_espresso' ), |
|
2009 | + __('description…', 'event_espresso'), |
|
2010 | 2010 | |
2011 | 2011 | // Reference: packages/tpc/src/inputs/PriceDescriptionInput.tsx:9 |
2012 | - __( 'price description', 'event_espresso' ), |
|
2012 | + __('price description', 'event_espresso'), |
|
2013 | 2013 | |
2014 | 2014 | // Reference: packages/tpc/src/inputs/PriceIdInput.tsx:5 |
2015 | - __( 'price id', 'event_espresso' ), |
|
2015 | + __('price id', 'event_espresso'), |
|
2016 | 2016 | |
2017 | 2017 | // Reference: packages/tpc/src/inputs/PriceNameInput.tsx:13 |
2018 | - __( 'label…', 'event_espresso' ), |
|
2018 | + __('label…', 'event_espresso'), |
|
2019 | 2019 | |
2020 | 2020 | // Reference: packages/tpc/src/inputs/PriceNameInput.tsx:8 |
2021 | - __( 'price name', 'event_espresso' ), |
|
2021 | + __('price name', 'event_espresso'), |
|
2022 | 2022 | |
2023 | 2023 | // Reference: packages/tpc/src/inputs/PriceOrderInput.tsx:14 |
2024 | - __( 'price order', 'event_espresso' ), |
|
2024 | + __('price order', 'event_espresso'), |
|
2025 | 2025 | |
2026 | 2026 | // Reference: packages/tpc/src/utils/constants.ts:8 |
2027 | - __( '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' ), |
|
2027 | + __('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'), |
|
2028 | 2028 | |
2029 | 2029 | // Reference: packages/ui-components/src/ActiveFilters/ActiveFilters.tsx:8 |
2030 | - __( 'active filters:', 'event_espresso' ), |
|
2030 | + __('active filters:', 'event_espresso'), |
|
2031 | 2031 | |
2032 | 2032 | // Reference: packages/ui-components/src/ActiveFilters/FilterTag/index.tsx:15 |
2033 | 2033 | /* translators: %s filter name */ |
2034 | - __( 'remove filter - %s', 'event_espresso' ), |
|
2034 | + __('remove filter - %s', 'event_espresso'), |
|
2035 | 2035 | |
2036 | 2036 | // Reference: packages/ui-components/src/Address/Address.tsx:72 |
2037 | - __( 'Address:', 'event_espresso' ), |
|
2037 | + __('Address:', 'event_espresso'), |
|
2038 | 2038 | |
2039 | 2039 | // Reference: packages/ui-components/src/Address/Address.tsx:80 |
2040 | - __( 'City:', 'event_espresso' ), |
|
2040 | + __('City:', 'event_espresso'), |
|
2041 | 2041 | |
2042 | 2042 | // Reference: packages/ui-components/src/Address/Address.tsx:86 |
2043 | - __( 'State:', 'event_espresso' ), |
|
2043 | + __('State:', 'event_espresso'), |
|
2044 | 2044 | |
2045 | 2045 | // Reference: packages/ui-components/src/Address/Address.tsx:92 |
2046 | - __( 'Country:', 'event_espresso' ), |
|
2046 | + __('Country:', 'event_espresso'), |
|
2047 | 2047 | |
2048 | 2048 | // Reference: packages/ui-components/src/Address/Address.tsx:98 |
2049 | - __( 'Zip:', 'event_espresso' ), |
|
2049 | + __('Zip:', 'event_espresso'), |
|
2050 | 2050 | |
2051 | 2051 | // Reference: packages/ui-components/src/CalendarDateRange/CalendarDateRange.tsx:37 |
2052 | - __( 'to', 'event_espresso' ), |
|
2052 | + __('to', 'event_espresso'), |
|
2053 | 2053 | |
2054 | 2054 | // Reference: packages/ui-components/src/CalendarPageDate/CalendarPageDate.tsx:54 |
2055 | - __( 'TO', 'event_espresso' ), |
|
2055 | + __('TO', 'event_espresso'), |
|
2056 | 2056 | |
2057 | 2057 | // Reference: packages/ui-components/src/ColorPicker/ColorPicker.tsx:60 |
2058 | - __( 'Custom color', 'event_espresso' ), |
|
2058 | + __('Custom color', 'event_espresso'), |
|
2059 | 2059 | |
2060 | 2060 | // Reference: packages/ui-components/src/ColorPicker/Swatch.tsx:23 |
2061 | 2061 | /* translators: color name */ |
2062 | - __( 'Color: %s', 'event_espresso' ), |
|
2062 | + __('Color: %s', 'event_espresso'), |
|
2063 | 2063 | |
2064 | 2064 | // Reference: packages/ui-components/src/ColorPicker/constants.ts:13 |
2065 | - __( 'Cyan bluish gray', 'event_espresso' ), |
|
2065 | + __('Cyan bluish gray', 'event_espresso'), |
|
2066 | 2066 | |
2067 | 2067 | // Reference: packages/ui-components/src/ColorPicker/constants.ts:17 |
2068 | - __( 'White', 'event_espresso' ), |
|
2068 | + __('White', 'event_espresso'), |
|
2069 | 2069 | |
2070 | 2070 | // Reference: packages/ui-components/src/ColorPicker/constants.ts:21 |
2071 | - __( 'Pale pink', 'event_espresso' ), |
|
2071 | + __('Pale pink', 'event_espresso'), |
|
2072 | 2072 | |
2073 | 2073 | // Reference: packages/ui-components/src/ColorPicker/constants.ts:25 |
2074 | - __( 'Vivid red', 'event_espresso' ), |
|
2074 | + __('Vivid red', 'event_espresso'), |
|
2075 | 2075 | |
2076 | 2076 | // Reference: packages/ui-components/src/ColorPicker/constants.ts:29 |
2077 | - __( 'Luminous vivid orange', 'event_espresso' ), |
|
2077 | + __('Luminous vivid orange', 'event_espresso'), |
|
2078 | 2078 | |
2079 | 2079 | // Reference: packages/ui-components/src/ColorPicker/constants.ts:33 |
2080 | - __( 'Luminous vivid amber', 'event_espresso' ), |
|
2080 | + __('Luminous vivid amber', 'event_espresso'), |
|
2081 | 2081 | |
2082 | 2082 | // Reference: packages/ui-components/src/ColorPicker/constants.ts:37 |
2083 | - __( 'Light green cyan', 'event_espresso' ), |
|
2083 | + __('Light green cyan', 'event_espresso'), |
|
2084 | 2084 | |
2085 | 2085 | // Reference: packages/ui-components/src/ColorPicker/constants.ts:41 |
2086 | - __( 'Vivid green cyan', 'event_espresso' ), |
|
2086 | + __('Vivid green cyan', 'event_espresso'), |
|
2087 | 2087 | |
2088 | 2088 | // Reference: packages/ui-components/src/ColorPicker/constants.ts:45 |
2089 | - __( 'Pale cyan blue', 'event_espresso' ), |
|
2089 | + __('Pale cyan blue', 'event_espresso'), |
|
2090 | 2090 | |
2091 | 2091 | // Reference: packages/ui-components/src/ColorPicker/constants.ts:49 |
2092 | - __( 'Vivid cyan blue', 'event_espresso' ), |
|
2092 | + __('Vivid cyan blue', 'event_espresso'), |
|
2093 | 2093 | |
2094 | 2094 | // Reference: packages/ui-components/src/ColorPicker/constants.ts:53 |
2095 | - __( 'Vivid purple', 'event_espresso' ), |
|
2095 | + __('Vivid purple', 'event_espresso'), |
|
2096 | 2096 | |
2097 | 2097 | // Reference: packages/ui-components/src/ColorPicker/constants.ts:9 |
2098 | - __( 'Black', 'event_espresso' ), |
|
2098 | + __('Black', 'event_espresso'), |
|
2099 | 2099 | |
2100 | 2100 | // Reference: packages/ui-components/src/Confirm/ConfirmClose.tsx:7 |
2101 | 2101 | // Reference: packages/ui-components/src/Modal/ModalWithAlert.tsx:22 |
2102 | - __( 'Are you sure you want to close this?', 'event_espresso' ), |
|
2102 | + __('Are you sure you want to close this?', 'event_espresso'), |
|
2103 | 2103 | |
2104 | 2104 | // Reference: packages/ui-components/src/Confirm/ConfirmDelete.tsx:7 |
2105 | - __( 'Are you sure you want to delete this?', 'event_espresso' ), |
|
2105 | + __('Are you sure you want to delete this?', 'event_espresso'), |
|
2106 | 2106 | |
2107 | 2107 | // Reference: packages/ui-components/src/Confirm/useConfirmWithButton.tsx:10 |
2108 | - __( 'Please confirm this action.', 'event_espresso' ), |
|
2108 | + __('Please confirm this action.', 'event_espresso'), |
|
2109 | 2109 | |
2110 | 2110 | // Reference: packages/ui-components/src/Confirm/useConfirmationDialog.tsx:32 |
2111 | - __( 'No', 'event_espresso' ), |
|
2111 | + __('No', 'event_espresso'), |
|
2112 | 2112 | |
2113 | 2113 | // Reference: packages/ui-components/src/Confirm/useConfirmationDialog.tsx:33 |
2114 | - __( 'Yes', 'event_espresso' ), |
|
2114 | + __('Yes', 'event_espresso'), |
|
2115 | 2115 | |
2116 | 2116 | // Reference: packages/ui-components/src/CurrencyDisplay/CurrencyDisplay.tsx:34 |
2117 | - __( 'free', 'event_espresso' ), |
|
2117 | + __('free', 'event_espresso'), |
|
2118 | 2118 | |
2119 | 2119 | // Reference: packages/ui-components/src/DateTimeRangePicker/DateTimeRangePicker.tsx:117 |
2120 | 2120 | // Reference: packages/ui-components/src/Popover/PopoverForm/PopoverForm.tsx:44 |
2121 | - __( 'save', 'event_espresso' ), |
|
2121 | + __('save', 'event_espresso'), |
|
2122 | 2122 | |
2123 | 2123 | // Reference: packages/ui-components/src/DebugInfo/DebugInfo.tsx:36 |
2124 | - __( 'Hide Debug Info', 'event_espresso' ), |
|
2124 | + __('Hide Debug Info', 'event_espresso'), |
|
2125 | 2125 | |
2126 | 2126 | // Reference: packages/ui-components/src/DebugInfo/DebugInfo.tsx:36 |
2127 | - __( 'Show Debug Info', 'event_espresso' ), |
|
2127 | + __('Show Debug Info', 'event_espresso'), |
|
2128 | 2128 | |
2129 | 2129 | // Reference: packages/ui-components/src/EditDateRangeButton/EditDateRangeButton.tsx:49 |
2130 | - __( 'Edit Start and End Dates and Times', 'event_espresso' ), |
|
2130 | + __('Edit Start and End Dates and Times', 'event_espresso'), |
|
2131 | 2131 | |
2132 | 2132 | // Reference: packages/ui-components/src/EntityActionsMenu/entityMenuItems/Copy.tsx:8 |
2133 | - __( 'copy', 'event_espresso' ), |
|
2133 | + __('copy', 'event_espresso'), |
|
2134 | 2134 | |
2135 | 2135 | // Reference: packages/ui-components/src/EntityActionsMenu/entityMenuItems/Edit.tsx:8 |
2136 | - __( 'edit', 'event_espresso' ), |
|
2136 | + __('edit', 'event_espresso'), |
|
2137 | 2137 | |
2138 | 2138 | // Reference: packages/ui-components/src/EntityActionsMenu/entityMenuItems/Trash.tsx:8 |
2139 | - __( 'trash', 'event_espresso' ), |
|
2139 | + __('trash', 'event_espresso'), |
|
2140 | 2140 | |
2141 | 2141 | // Reference: packages/ui-components/src/EntityActionsMenu/entityMenuItems/Untrash.tsx:8 |
2142 | - __( 'untrash', 'event_espresso' ), |
|
2142 | + __('untrash', 'event_espresso'), |
|
2143 | 2143 | |
2144 | 2144 | // Reference: packages/ui-components/src/EntityList/RegistrationsLink/index.tsx:12 |
2145 | - __( 'click to open the registrations admin page in a new tab or window', 'event_espresso' ), |
|
2145 | + __('click to open the registrations admin page in a new tab or window', 'event_espresso'), |
|
2146 | 2146 | |
2147 | 2147 | // Reference: packages/ui-components/src/EntityList/filterBar/buttons/CardViewFilterButton.tsx:22 |
2148 | - __( 'card view', 'event_espresso' ), |
|
2148 | + __('card view', 'event_espresso'), |
|
2149 | 2149 | |
2150 | 2150 | // Reference: packages/ui-components/src/EntityList/filterBar/buttons/TableViewFilterButton.tsx:21 |
2151 | - __( 'table view', 'event_espresso' ), |
|
2151 | + __('table view', 'event_espresso'), |
|
2152 | 2152 | |
2153 | 2153 | // Reference: packages/ui-components/src/EntityList/filterBar/buttons/ToggleBulkActionsButton.tsx:8 |
2154 | - __( 'hide bulk actions', 'event_espresso' ), |
|
2154 | + __('hide bulk actions', 'event_espresso'), |
|
2155 | 2155 | |
2156 | 2156 | // Reference: packages/ui-components/src/EntityList/filterBar/buttons/ToggleBulkActionsButton.tsx:8 |
2157 | - __( 'show bulk actions', 'event_espresso' ), |
|
2157 | + __('show bulk actions', 'event_espresso'), |
|
2158 | 2158 | |
2159 | 2159 | // Reference: packages/ui-components/src/EntityList/filterBar/buttons/ToggleFiltersButton.tsx:9 |
2160 | - __( 'hide filters', 'event_espresso' ), |
|
2160 | + __('hide filters', 'event_espresso'), |
|
2161 | 2161 | |
2162 | 2162 | // Reference: packages/ui-components/src/EntityList/filterBar/buttons/ToggleFiltersButton.tsx:9 |
2163 | - __( 'show filters', 'event_espresso' ), |
|
2163 | + __('show filters', 'event_espresso'), |
|
2164 | 2164 | |
2165 | 2165 | // Reference: packages/ui-components/src/Legend/ToggleLegendButton.tsx:26 |
2166 | - __( 'hide legend', 'event_espresso' ), |
|
2166 | + __('hide legend', 'event_espresso'), |
|
2167 | 2167 | |
2168 | 2168 | // Reference: packages/ui-components/src/Legend/ToggleLegendButton.tsx:26 |
2169 | - __( 'show legend', 'event_espresso' ), |
|
2169 | + __('show legend', 'event_espresso'), |
|
2170 | 2170 | |
2171 | 2171 | // Reference: packages/ui-components/src/LoadingNotice/LoadingNotice.tsx:11 |
2172 | - __( 'loading…', 'event_espresso' ), |
|
2172 | + __('loading…', 'event_espresso'), |
|
2173 | 2173 | |
2174 | 2174 | // Reference: packages/ui-components/src/Modal/Modal.tsx:58 |
2175 | - __( 'close modal', 'event_espresso' ), |
|
2175 | + __('close modal', 'event_espresso'), |
|
2176 | 2176 | |
2177 | 2177 | // Reference: packages/ui-components/src/Pagination/ItemRender.tsx:10 |
2178 | - __( 'jump to previous', 'event_espresso' ), |
|
2178 | + __('jump to previous', 'event_espresso'), |
|
2179 | 2179 | |
2180 | 2180 | // Reference: packages/ui-components/src/Pagination/ItemRender.tsx:11 |
2181 | - __( 'jump to next', 'event_espresso' ), |
|
2181 | + __('jump to next', 'event_espresso'), |
|
2182 | 2182 | |
2183 | 2183 | // Reference: packages/ui-components/src/Pagination/ItemRender.tsx:12 |
2184 | - __( 'page', 'event_espresso' ), |
|
2184 | + __('page', 'event_espresso'), |
|
2185 | 2185 | |
2186 | 2186 | // Reference: packages/ui-components/src/Pagination/ItemRender.tsx:8 |
2187 | - __( 'previous', 'event_espresso' ), |
|
2187 | + __('previous', 'event_espresso'), |
|
2188 | 2188 | |
2189 | 2189 | // Reference: packages/ui-components/src/Pagination/ItemRender.tsx:9 |
2190 | - __( 'next', 'event_espresso' ), |
|
2190 | + __('next', 'event_espresso'), |
|
2191 | 2191 | |
2192 | 2192 | // Reference: packages/ui-components/src/Pagination/PerPage.tsx:37 |
2193 | - __( 'items per page', 'event_espresso' ), |
|
2193 | + __('items per page', 'event_espresso'), |
|
2194 | 2194 | |
2195 | 2195 | // Reference: packages/ui-components/src/Pagination/constants.ts:10 |
2196 | 2196 | /* translators: %s is per page value */ |
2197 | - __( '%s / page', 'event_espresso' ), |
|
2197 | + __('%s / page', 'event_espresso'), |
|
2198 | 2198 | |
2199 | 2199 | // Reference: packages/ui-components/src/Pagination/constants.ts:13 |
2200 | - __( 'Next Page', 'event_espresso' ), |
|
2200 | + __('Next Page', 'event_espresso'), |
|
2201 | 2201 | |
2202 | 2202 | // Reference: packages/ui-components/src/Pagination/constants.ts:14 |
2203 | - __( 'Previous Page', 'event_espresso' ), |
|
2203 | + __('Previous Page', 'event_espresso'), |
|
2204 | 2204 | |
2205 | 2205 | // Reference: packages/ui-components/src/PercentSign/index.tsx:10 |
2206 | - __( '%', 'event_espresso' ), |
|
2206 | + __('%', 'event_espresso'), |
|
2207 | 2207 | |
2208 | 2208 | // Reference: packages/ui-components/src/SimpleEntityList/EntityOptionsRow/index.tsx:31 |
2209 | 2209 | /* translators: entity type to select */ |
2210 | - __( 'Select an existing %s to use as a template.', 'event_espresso' ), |
|
2210 | + __('Select an existing %s to use as a template.', 'event_espresso'), |
|
2211 | 2211 | |
2212 | 2212 | // Reference: packages/ui-components/src/SimpleEntityList/EntityOptionsRow/index.tsx:38 |
2213 | - __( 'or', 'event_espresso' ), |
|
2213 | + __('or', 'event_espresso'), |
|
2214 | 2214 | |
2215 | 2215 | // Reference: packages/ui-components/src/SimpleEntityList/EntityOptionsRow/index.tsx:43 |
2216 | 2216 | /* translators: entity type to add */ |
2217 | - __( 'Add a new %s and insert details manually', 'event_espresso' ), |
|
2217 | + __('Add a new %s and insert details manually', 'event_espresso'), |
|
2218 | 2218 | |
2219 | 2219 | // Reference: packages/ui-components/src/SimpleEntityList/EntityOptionsRow/index.tsx:48 |
2220 | - __( 'Add New', 'event_espresso' ), |
|
2220 | + __('Add New', 'event_espresso'), |
|
2221 | 2221 | |
2222 | 2222 | // Reference: packages/ui-components/src/Stepper/buttons/Next.tsx:8 |
2223 | - __( 'Next', 'event_espresso' ), |
|
2223 | + __('Next', 'event_espresso'), |
|
2224 | 2224 | |
2225 | 2225 | // Reference: packages/ui-components/src/Stepper/buttons/Previous.tsx:8 |
2226 | - __( 'Previous', 'event_espresso' ), |
|
2226 | + __('Previous', 'event_espresso'), |
|
2227 | 2227 | |
2228 | 2228 | // Reference: packages/ui-components/src/Steps/Steps.tsx:31 |
2229 | - __( 'Steps', 'event_espresso' ), |
|
2229 | + __('Steps', 'event_espresso'), |
|
2230 | 2230 | |
2231 | 2231 | // Reference: packages/ui-components/src/TabbableText/index.tsx:21 |
2232 | - __( 'click to edit…', 'event_espresso' ), |
|
2232 | + __('click to edit…', 'event_espresso'), |
|
2233 | 2233 | |
2234 | 2234 | // Reference: packages/ui-components/src/TimezoneTimeInfo/Content.tsx:14 |
2235 | - __( 'The Website\'s Time Zone', 'event_espresso' ), |
|
2235 | + __('The Website\'s Time Zone', 'event_espresso'), |
|
2236 | 2236 | |
2237 | 2237 | // Reference: packages/ui-components/src/TimezoneTimeInfo/Content.tsx:19 |
2238 | - __( 'UTC (Greenwich Mean Time)', 'event_espresso' ), |
|
2238 | + __('UTC (Greenwich Mean Time)', 'event_espresso'), |
|
2239 | 2239 | |
2240 | 2240 | // Reference: packages/ui-components/src/TimezoneTimeInfo/Content.tsx:9 |
2241 | - __( 'Your Local Time Zone', 'event_espresso' ), |
|
2241 | + __('Your Local Time Zone', 'event_espresso'), |
|
2242 | 2242 | |
2243 | 2243 | // Reference: packages/ui-components/src/TimezoneTimeInfo/TimezoneTimeInfo.tsx:27 |
2244 | - __( 'click for timezone information', 'event_espresso' ), |
|
2244 | + __('click for timezone information', 'event_espresso'), |
|
2245 | 2245 | |
2246 | 2246 | // Reference: packages/ui-components/src/TimezoneTimeInfo/TimezoneTimeInfo.tsx:32 |
2247 | - __( 'This Date Converted To:', 'event_espresso' ), |
|
2247 | + __('This Date Converted To:', 'event_espresso'), |
|
2248 | 2248 | |
2249 | 2249 | // Reference: packages/ui-components/src/VenueSelector/VenueSelector.tsx:120 |
2250 | - __( 'Add New Venue', 'event_espresso' ), |
|
2250 | + __('Add New Venue', 'event_espresso'), |
|
2251 | 2251 | |
2252 | 2252 | // Reference: packages/ui-components/src/VenueSelector/VenueSelector.tsx:36 |
2253 | - __( '~ no venue ~', 'event_espresso' ), |
|
2253 | + __('~ no venue ~', 'event_espresso'), |
|
2254 | 2254 | |
2255 | 2255 | // Reference: packages/ui-components/src/VenueSelector/VenueSelector.tsx:43 |
2256 | - __( 'assign venue…', 'event_espresso' ), |
|
2256 | + __('assign venue…', 'event_espresso'), |
|
2257 | 2257 | |
2258 | 2258 | // Reference: packages/ui-components/src/VenueSelector/VenueSelector.tsx:44 |
2259 | - __( 'click to select a venue…', 'event_espresso' ), |
|
2259 | + __('click to select a venue…', 'event_espresso'), |
|
2260 | 2260 | |
2261 | 2261 | // Reference: packages/ui-components/src/bulkEdit/BulkActions.tsx:51 |
2262 | - __( 'select all', 'event_espresso' ), |
|
2262 | + __('select all', 'event_espresso'), |
|
2263 | 2263 | |
2264 | 2264 | // Reference: packages/ui-components/src/bulkEdit/BulkActions.tsx:54 |
2265 | - __( 'apply', 'event_espresso' ) |
|
2265 | + __('apply', 'event_espresso') |
|
2266 | 2266 | ); |
2267 | 2267 | /* THIS IS THE END OF THE GENERATED FILE */ |
@@ -25,204 +25,204 @@ |
||
25 | 25 | */ |
26 | 26 | class AdminOptionsSettings extends FormHandler |
27 | 27 | { |
28 | - protected $template_args = array(); |
|
28 | + protected $template_args = array(); |
|
29 | 29 | |
30 | - /** |
|
31 | - * Form constructor. |
|
32 | - * |
|
33 | - * @param \EE_Registry $registry |
|
34 | - */ |
|
35 | - public function __construct(\EE_Registry $registry) |
|
36 | - { |
|
37 | - parent::__construct( |
|
38 | - esc_html__('Admin Options', 'event_espresso'), |
|
39 | - esc_html__('Admin Options', 'event_espresso'), |
|
40 | - 'admin_option_settings', |
|
41 | - '', |
|
42 | - FormHandler::DO_NOT_SETUP_FORM, |
|
43 | - $registry |
|
44 | - ); |
|
45 | - } |
|
30 | + /** |
|
31 | + * Form constructor. |
|
32 | + * |
|
33 | + * @param \EE_Registry $registry |
|
34 | + */ |
|
35 | + public function __construct(\EE_Registry $registry) |
|
36 | + { |
|
37 | + parent::__construct( |
|
38 | + esc_html__('Admin Options', 'event_espresso'), |
|
39 | + esc_html__('Admin Options', 'event_espresso'), |
|
40 | + 'admin_option_settings', |
|
41 | + '', |
|
42 | + FormHandler::DO_NOT_SETUP_FORM, |
|
43 | + $registry |
|
44 | + ); |
|
45 | + } |
|
46 | 46 | |
47 | 47 | |
48 | - /** |
|
49 | - * @param array $template_args |
|
50 | - */ |
|
51 | - public function setTemplateArgs(array $template_args) |
|
52 | - { |
|
53 | - $this->template_args = $template_args; |
|
54 | - } |
|
48 | + /** |
|
49 | + * @param array $template_args |
|
50 | + */ |
|
51 | + public function setTemplateArgs(array $template_args) |
|
52 | + { |
|
53 | + $this->template_args = $template_args; |
|
54 | + } |
|
55 | 55 | |
56 | 56 | |
57 | - /** |
|
58 | - * creates and returns the actual form |
|
59 | - * |
|
60 | - * @return EE_Form_Section_Proper |
|
61 | - * @throws EE_Error |
|
62 | - */ |
|
63 | - public function generate() |
|
64 | - { |
|
65 | - $form = new EE_Form_Section_Proper( |
|
66 | - array( |
|
67 | - 'name' => 'admin_option_settings', |
|
68 | - 'html_id' => 'admin_option_settings', |
|
69 | - 'layout_strategy' => new EE_Admin_Two_Column_Layout(), |
|
70 | - 'subsections' => array( |
|
71 | - 'compatibility_hdr' => new EE_Form_Section_HTML( |
|
72 | - EEH_HTML::h2( |
|
73 | - esc_html__('Compatibility Settings', 'event_espresso'), |
|
74 | - '', |
|
75 | - 'ee-admin-settings-hdr' |
|
76 | - ) |
|
77 | - ), |
|
78 | - 'encode_session_data' => new EE_Yes_No_Input( |
|
79 | - array( |
|
80 | - 'html_label_text' => esc_html__('Encode Session Data?', 'event_espresso'), |
|
81 | - 'html_help_text' => sprintf( |
|
82 | - esc_html__( |
|
83 | - 'Some servers and database configurations can cause problems when saving the Event Espresso session data. Setting this option to "Yes" adds an extra layer of encoding to session data to prevent serialization errors, but can be incompatible with some server configurations.%1$sIf you receive "500 internal server" type errors during registration, try turning this option on.%1$sIf you get fatal PHP errors regarding missing base64 functions, then turn this option off.', |
|
84 | - 'event_espresso' |
|
85 | - ), |
|
86 | - '<br>' |
|
87 | - ), |
|
88 | - 'default' => $this->registry->CFG->admin->encode_session_data(), |
|
89 | - 'required' => false, |
|
90 | - ) |
|
91 | - ), |
|
92 | - ), |
|
93 | - ) |
|
94 | - ); |
|
95 | - if ( |
|
96 | - $this->registry->CAP->current_user_can( |
|
97 | - 'manage_options', |
|
98 | - 'display_admin_settings_options_promote_and_affiliate' |
|
99 | - ) |
|
100 | - ) { |
|
101 | - $form->add_subsections( |
|
102 | - array( |
|
103 | - 'promote_ee_hdr' => new EE_Form_Section_HTML( |
|
104 | - EEH_HTML::h2( |
|
105 | - esc_html__('Promote Event Espresso', 'event_espresso') |
|
106 | - . ' ' |
|
107 | - . EEH_HTML::span( |
|
108 | - EEH_Template::get_help_tab_link('affiliate_info'), |
|
109 | - 'affiliate_info' |
|
110 | - ), |
|
111 | - '', |
|
112 | - 'ee-admin-settings-hdr' |
|
113 | - ) |
|
114 | - ), |
|
115 | - 'show_reg_footer' => new EE_Yes_No_Input( |
|
116 | - array( |
|
117 | - 'html_label_text' => esc_html__( |
|
118 | - 'Link to Event Espresso in your Registration Page?', |
|
119 | - 'event_espresso' |
|
120 | - ) |
|
121 | - . EEH_Template::get_help_tab_link('email_validation_info'), |
|
122 | - 'html_help_text' => esc_html__( |
|
123 | - 'adds an unobtrusive link to Event Espresso\'s website in the footer of your registration form. Get an affiliate link (see below) and make money if people click the link and purchase Event Espresso.', |
|
124 | - 'event_espresso' |
|
125 | - ), |
|
126 | - 'default' => filter_var($this->registry->CFG->admin->show_reg_footer, FILTER_VALIDATE_BOOLEAN), |
|
127 | - 'required' => false, |
|
128 | - ) |
|
129 | - ), |
|
130 | - 'affiliate_id' => new EE_Text_Input( |
|
131 | - array( |
|
132 | - 'html_label_text' => sprintf( |
|
133 | - esc_html__('Event Espresso %1$sAffiliate%2$s ID', 'event_espresso'), |
|
134 | - '<a href="https://eventespresso.com/affiliates/" target="_blank">', |
|
135 | - '</a>' |
|
136 | - ), |
|
137 | - 'html_help_text' => esc_html__( |
|
138 | - 'Earn cash for promoting Event Espresso.', |
|
139 | - 'event_espresso' |
|
140 | - ), |
|
141 | - 'html_class' => 'regular-text', |
|
142 | - 'default' => isset($this->registry->CFG->admin->affiliate_id) |
|
143 | - ? $this->registry->CFG->admin->get_pretty('affiliate_id') |
|
144 | - : '', |
|
145 | - 'required' => false, |
|
146 | - ) |
|
147 | - ), |
|
148 | - ), |
|
149 | - 'compatibility_hdr' |
|
150 | - ); |
|
151 | - } |
|
152 | - do_action( |
|
153 | - 'AHEE__EventEspresso_admin_pages_general_settings_AdminOptionsSettings__generate__form', |
|
154 | - $form, |
|
155 | - $this->registry->CFG->admin, |
|
156 | - $this |
|
157 | - ); |
|
158 | - return $form; |
|
159 | - } |
|
57 | + /** |
|
58 | + * creates and returns the actual form |
|
59 | + * |
|
60 | + * @return EE_Form_Section_Proper |
|
61 | + * @throws EE_Error |
|
62 | + */ |
|
63 | + public function generate() |
|
64 | + { |
|
65 | + $form = new EE_Form_Section_Proper( |
|
66 | + array( |
|
67 | + 'name' => 'admin_option_settings', |
|
68 | + 'html_id' => 'admin_option_settings', |
|
69 | + 'layout_strategy' => new EE_Admin_Two_Column_Layout(), |
|
70 | + 'subsections' => array( |
|
71 | + 'compatibility_hdr' => new EE_Form_Section_HTML( |
|
72 | + EEH_HTML::h2( |
|
73 | + esc_html__('Compatibility Settings', 'event_espresso'), |
|
74 | + '', |
|
75 | + 'ee-admin-settings-hdr' |
|
76 | + ) |
|
77 | + ), |
|
78 | + 'encode_session_data' => new EE_Yes_No_Input( |
|
79 | + array( |
|
80 | + 'html_label_text' => esc_html__('Encode Session Data?', 'event_espresso'), |
|
81 | + 'html_help_text' => sprintf( |
|
82 | + esc_html__( |
|
83 | + 'Some servers and database configurations can cause problems when saving the Event Espresso session data. Setting this option to "Yes" adds an extra layer of encoding to session data to prevent serialization errors, but can be incompatible with some server configurations.%1$sIf you receive "500 internal server" type errors during registration, try turning this option on.%1$sIf you get fatal PHP errors regarding missing base64 functions, then turn this option off.', |
|
84 | + 'event_espresso' |
|
85 | + ), |
|
86 | + '<br>' |
|
87 | + ), |
|
88 | + 'default' => $this->registry->CFG->admin->encode_session_data(), |
|
89 | + 'required' => false, |
|
90 | + ) |
|
91 | + ), |
|
92 | + ), |
|
93 | + ) |
|
94 | + ); |
|
95 | + if ( |
|
96 | + $this->registry->CAP->current_user_can( |
|
97 | + 'manage_options', |
|
98 | + 'display_admin_settings_options_promote_and_affiliate' |
|
99 | + ) |
|
100 | + ) { |
|
101 | + $form->add_subsections( |
|
102 | + array( |
|
103 | + 'promote_ee_hdr' => new EE_Form_Section_HTML( |
|
104 | + EEH_HTML::h2( |
|
105 | + esc_html__('Promote Event Espresso', 'event_espresso') |
|
106 | + . ' ' |
|
107 | + . EEH_HTML::span( |
|
108 | + EEH_Template::get_help_tab_link('affiliate_info'), |
|
109 | + 'affiliate_info' |
|
110 | + ), |
|
111 | + '', |
|
112 | + 'ee-admin-settings-hdr' |
|
113 | + ) |
|
114 | + ), |
|
115 | + 'show_reg_footer' => new EE_Yes_No_Input( |
|
116 | + array( |
|
117 | + 'html_label_text' => esc_html__( |
|
118 | + 'Link to Event Espresso in your Registration Page?', |
|
119 | + 'event_espresso' |
|
120 | + ) |
|
121 | + . EEH_Template::get_help_tab_link('email_validation_info'), |
|
122 | + 'html_help_text' => esc_html__( |
|
123 | + 'adds an unobtrusive link to Event Espresso\'s website in the footer of your registration form. Get an affiliate link (see below) and make money if people click the link and purchase Event Espresso.', |
|
124 | + 'event_espresso' |
|
125 | + ), |
|
126 | + 'default' => filter_var($this->registry->CFG->admin->show_reg_footer, FILTER_VALIDATE_BOOLEAN), |
|
127 | + 'required' => false, |
|
128 | + ) |
|
129 | + ), |
|
130 | + 'affiliate_id' => new EE_Text_Input( |
|
131 | + array( |
|
132 | + 'html_label_text' => sprintf( |
|
133 | + esc_html__('Event Espresso %1$sAffiliate%2$s ID', 'event_espresso'), |
|
134 | + '<a href="https://eventespresso.com/affiliates/" target="_blank">', |
|
135 | + '</a>' |
|
136 | + ), |
|
137 | + 'html_help_text' => esc_html__( |
|
138 | + 'Earn cash for promoting Event Espresso.', |
|
139 | + 'event_espresso' |
|
140 | + ), |
|
141 | + 'html_class' => 'regular-text', |
|
142 | + 'default' => isset($this->registry->CFG->admin->affiliate_id) |
|
143 | + ? $this->registry->CFG->admin->get_pretty('affiliate_id') |
|
144 | + : '', |
|
145 | + 'required' => false, |
|
146 | + ) |
|
147 | + ), |
|
148 | + ), |
|
149 | + 'compatibility_hdr' |
|
150 | + ); |
|
151 | + } |
|
152 | + do_action( |
|
153 | + 'AHEE__EventEspresso_admin_pages_general_settings_AdminOptionsSettings__generate__form', |
|
154 | + $form, |
|
155 | + $this->registry->CFG->admin, |
|
156 | + $this |
|
157 | + ); |
|
158 | + return $form; |
|
159 | + } |
|
160 | 160 | |
161 | 161 | |
162 | - /** |
|
163 | - * takes the generated form and displays it along with ony other non-form HTML that may be required |
|
164 | - * returns a string of HTML that can be directly echoed in a template |
|
165 | - * |
|
166 | - * @return string |
|
167 | - * @throws LogicException |
|
168 | - * @throws EE_Error |
|
169 | - */ |
|
170 | - public function display() |
|
171 | - { |
|
172 | - add_filter( |
|
173 | - 'FHEE__EventEspresso_core_libraries_form_sections_form_handlers_FormHandler__display__before_form', |
|
174 | - array($this, 'handleOldAdminOptionsSettingsAction') |
|
175 | - ); |
|
176 | - return parent::display(); |
|
177 | - } |
|
162 | + /** |
|
163 | + * takes the generated form and displays it along with ony other non-form HTML that may be required |
|
164 | + * returns a string of HTML that can be directly echoed in a template |
|
165 | + * |
|
166 | + * @return string |
|
167 | + * @throws LogicException |
|
168 | + * @throws EE_Error |
|
169 | + */ |
|
170 | + public function display() |
|
171 | + { |
|
172 | + add_filter( |
|
173 | + 'FHEE__EventEspresso_core_libraries_form_sections_form_handlers_FormHandler__display__before_form', |
|
174 | + array($this, 'handleOldAdminOptionsSettingsAction') |
|
175 | + ); |
|
176 | + return parent::display(); |
|
177 | + } |
|
178 | 178 | |
179 | 179 | |
180 | - /** |
|
181 | - * @return string |
|
182 | - */ |
|
183 | - public function handleOldAdminOptionsSettingsAction() |
|
184 | - { |
|
185 | - ob_start(); |
|
186 | - do_action('AHEE__admin_option_settings__template__before', $this->template_args); |
|
187 | - return ob_get_clean(); |
|
188 | - } |
|
180 | + /** |
|
181 | + * @return string |
|
182 | + */ |
|
183 | + public function handleOldAdminOptionsSettingsAction() |
|
184 | + { |
|
185 | + ob_start(); |
|
186 | + do_action('AHEE__admin_option_settings__template__before', $this->template_args); |
|
187 | + return ob_get_clean(); |
|
188 | + } |
|
189 | 189 | |
190 | 190 | |
191 | - /** |
|
192 | - * handles processing the form submission |
|
193 | - * returns true or false depending on whether the form was processed successfully or not |
|
194 | - * |
|
195 | - * @param array $form_data |
|
196 | - * @return bool |
|
197 | - * @throws InvalidFormSubmissionException |
|
198 | - * @throws EE_Error |
|
199 | - * @throws LogicException |
|
200 | - * @throws InvalidArgumentException |
|
201 | - * @throws InvalidDataTypeException |
|
202 | - */ |
|
203 | - public function process($form_data = array()) |
|
204 | - { |
|
205 | - // process form |
|
206 | - $valid_data = (array) parent::process($form_data); |
|
207 | - if (empty($valid_data)) { |
|
208 | - return false; |
|
209 | - } |
|
210 | - $this->registry->CFG->admin->show_reg_footer = isset($valid_data['show_reg_footer']) |
|
211 | - ? absint($valid_data['show_reg_footer']) |
|
212 | - : $this->registry->CFG->admin->show_reg_footer; |
|
213 | - $this->registry->CFG->admin->affiliate_id = isset($valid_data['affiliate_id']) |
|
214 | - ? sanitize_text_field($valid_data['affiliate_id']) |
|
215 | - : $this->registry->CFG->admin->affiliate_id; |
|
216 | - if (isset($valid_data['encode_session_data'])) { |
|
217 | - $this->registry->CFG->admin->set_encode_session_data($valid_data['encode_session_data']); |
|
218 | - } |
|
191 | + /** |
|
192 | + * handles processing the form submission |
|
193 | + * returns true or false depending on whether the form was processed successfully or not |
|
194 | + * |
|
195 | + * @param array $form_data |
|
196 | + * @return bool |
|
197 | + * @throws InvalidFormSubmissionException |
|
198 | + * @throws EE_Error |
|
199 | + * @throws LogicException |
|
200 | + * @throws InvalidArgumentException |
|
201 | + * @throws InvalidDataTypeException |
|
202 | + */ |
|
203 | + public function process($form_data = array()) |
|
204 | + { |
|
205 | + // process form |
|
206 | + $valid_data = (array) parent::process($form_data); |
|
207 | + if (empty($valid_data)) { |
|
208 | + return false; |
|
209 | + } |
|
210 | + $this->registry->CFG->admin->show_reg_footer = isset($valid_data['show_reg_footer']) |
|
211 | + ? absint($valid_data['show_reg_footer']) |
|
212 | + : $this->registry->CFG->admin->show_reg_footer; |
|
213 | + $this->registry->CFG->admin->affiliate_id = isset($valid_data['affiliate_id']) |
|
214 | + ? sanitize_text_field($valid_data['affiliate_id']) |
|
215 | + : $this->registry->CFG->admin->affiliate_id; |
|
216 | + if (isset($valid_data['encode_session_data'])) { |
|
217 | + $this->registry->CFG->admin->set_encode_session_data($valid_data['encode_session_data']); |
|
218 | + } |
|
219 | 219 | |
220 | - return apply_filters( |
|
221 | - 'FHEE__EventEspresso_admin_pages_general_settings_AdminOptionsSettings__process__form_processed', |
|
222 | - true, // form processed successfully |
|
223 | - $valid_data, |
|
224 | - $this->registry->CFG->admin, |
|
225 | - $this |
|
226 | - ); |
|
227 | - } |
|
220 | + return apply_filters( |
|
221 | + 'FHEE__EventEspresso_admin_pages_general_settings_AdminOptionsSettings__process__form_processed', |
|
222 | + true, // form processed successfully |
|
223 | + $valid_data, |
|
224 | + $this->registry->CFG->admin, |
|
225 | + $this |
|
226 | + ); |
|
227 | + } |
|
228 | 228 | } |
@@ -19,1422 +19,1422 @@ |
||
19 | 19 | class General_Settings_Admin_Page extends EE_Admin_Page |
20 | 20 | { |
21 | 21 | |
22 | - /** |
|
23 | - * @var EE_Core_Config |
|
24 | - */ |
|
25 | - public $core_config; |
|
26 | - |
|
27 | - |
|
28 | - /** |
|
29 | - * Initialize basic properties. |
|
30 | - */ |
|
31 | - protected function _init_page_props() |
|
32 | - { |
|
33 | - $this->page_slug = GEN_SET_PG_SLUG; |
|
34 | - $this->page_label = GEN_SET_LABEL; |
|
35 | - $this->_admin_base_url = GEN_SET_ADMIN_URL; |
|
36 | - $this->_admin_base_path = GEN_SET_ADMIN; |
|
37 | - } |
|
38 | - |
|
39 | - |
|
40 | - /** |
|
41 | - * Set ajax hooks |
|
42 | - */ |
|
43 | - protected function _ajax_hooks() |
|
44 | - { |
|
45 | - add_action('wp_ajax_espresso_display_country_settings', [$this, 'display_country_settings']); |
|
46 | - add_action('wp_ajax_espresso_display_country_states', [$this, 'display_country_states']); |
|
47 | - add_action('wp_ajax_espresso_delete_state', [$this, 'delete_state'], 10, 3); |
|
48 | - add_action('wp_ajax_espresso_add_new_state', [$this, 'add_new_state']); |
|
49 | - } |
|
50 | - |
|
51 | - |
|
52 | - /** |
|
53 | - * More page properties initialization. |
|
54 | - */ |
|
55 | - protected function _define_page_props() |
|
56 | - { |
|
57 | - $this->_admin_page_title = GEN_SET_LABEL; |
|
58 | - $this->_labels = ['publishbox' => esc_html__('Update Settings', 'event_espresso')]; |
|
59 | - } |
|
60 | - |
|
61 | - |
|
62 | - /** |
|
63 | - * Set page routes property. |
|
64 | - */ |
|
65 | - protected function _set_page_routes() |
|
66 | - { |
|
67 | - $this->_page_routes = [ |
|
68 | - 'critical_pages' => [ |
|
69 | - 'func' => '_espresso_page_settings', |
|
70 | - 'capability' => 'manage_options', |
|
71 | - ], |
|
72 | - 'update_espresso_page_settings' => [ |
|
73 | - 'func' => '_update_espresso_page_settings', |
|
74 | - 'capability' => 'manage_options', |
|
75 | - 'noheader' => true, |
|
76 | - ], |
|
77 | - 'default' => [ |
|
78 | - 'func' => '_your_organization_settings', |
|
79 | - 'capability' => 'manage_options', |
|
80 | - ], |
|
81 | - |
|
82 | - 'update_your_organization_settings' => [ |
|
83 | - 'func' => '_update_your_organization_settings', |
|
84 | - 'capability' => 'manage_options', |
|
85 | - 'noheader' => true, |
|
86 | - ], |
|
87 | - |
|
88 | - 'admin_option_settings' => [ |
|
89 | - 'func' => '_admin_option_settings', |
|
90 | - 'capability' => 'manage_options', |
|
91 | - ], |
|
92 | - |
|
93 | - 'update_admin_option_settings' => [ |
|
94 | - 'func' => '_update_admin_option_settings', |
|
95 | - 'capability' => 'manage_options', |
|
96 | - 'noheader' => true, |
|
97 | - ], |
|
98 | - |
|
99 | - 'country_settings' => [ |
|
100 | - 'func' => '_country_settings', |
|
101 | - 'capability' => 'manage_options', |
|
102 | - ], |
|
103 | - |
|
104 | - 'update_country_settings' => [ |
|
105 | - 'func' => '_update_country_settings', |
|
106 | - 'capability' => 'manage_options', |
|
107 | - 'noheader' => true, |
|
108 | - ], |
|
109 | - |
|
110 | - 'display_country_settings' => [ |
|
111 | - 'func' => 'display_country_settings', |
|
112 | - 'capability' => 'manage_options', |
|
113 | - 'noheader' => true, |
|
114 | - ], |
|
115 | - |
|
116 | - 'add_new_state' => [ |
|
117 | - 'func' => 'add_new_state', |
|
118 | - 'capability' => 'manage_options', |
|
119 | - 'noheader' => true, |
|
120 | - ], |
|
121 | - |
|
122 | - 'delete_state' => [ |
|
123 | - 'func' => 'delete_state', |
|
124 | - 'capability' => 'manage_options', |
|
125 | - 'noheader' => true, |
|
126 | - ], |
|
127 | - 'privacy_settings' => [ |
|
128 | - 'func' => 'privacySettings', |
|
129 | - 'capability' => 'manage_options', |
|
130 | - ], |
|
131 | - 'update_privacy_settings' => [ |
|
132 | - 'func' => 'updatePrivacySettings', |
|
133 | - 'capability' => 'manage_options', |
|
134 | - 'noheader' => true, |
|
135 | - 'headers_sent_route' => 'privacy_settings', |
|
136 | - ], |
|
137 | - ]; |
|
138 | - } |
|
139 | - |
|
140 | - |
|
141 | - /** |
|
142 | - * Set page configuration property |
|
143 | - */ |
|
144 | - protected function _set_page_config() |
|
145 | - { |
|
146 | - $this->_page_config = [ |
|
147 | - 'critical_pages' => [ |
|
148 | - 'nav' => [ |
|
149 | - 'label' => esc_html__('Critical Pages', 'event_espresso'), |
|
150 | - 'order' => 50, |
|
151 | - ], |
|
152 | - 'metaboxes' => array_merge($this->_default_espresso_metaboxes, ['_publish_post_box']), |
|
153 | - 'help_tabs' => [ |
|
154 | - 'general_settings_critical_pages_help_tab' => [ |
|
155 | - 'title' => esc_html__('Critical Pages', 'event_espresso'), |
|
156 | - 'filename' => 'general_settings_critical_pages', |
|
157 | - ], |
|
158 | - ], |
|
159 | - 'require_nonce' => false, |
|
160 | - ], |
|
161 | - 'default' => [ |
|
162 | - 'nav' => [ |
|
163 | - 'label' => esc_html__('Your Organization', 'event_espresso'), |
|
164 | - 'order' => 20, |
|
165 | - ], |
|
166 | - 'help_tabs' => [ |
|
167 | - 'general_settings_your_organization_help_tab' => [ |
|
168 | - 'title' => esc_html__('Your Organization', 'event_espresso'), |
|
169 | - 'filename' => 'general_settings_your_organization', |
|
170 | - ], |
|
171 | - ], |
|
172 | - 'metaboxes' => array_merge($this->_default_espresso_metaboxes, ['_publish_post_box']), |
|
173 | - 'require_nonce' => false, |
|
174 | - ], |
|
175 | - 'admin_option_settings' => [ |
|
176 | - 'nav' => [ |
|
177 | - 'label' => esc_html__('Admin Options', 'event_espresso'), |
|
178 | - 'order' => 60, |
|
179 | - ], |
|
180 | - 'metaboxes' => array_merge($this->_default_espresso_metaboxes, ['_publish_post_box']), |
|
181 | - 'help_tabs' => [ |
|
182 | - 'general_settings_admin_options_help_tab' => [ |
|
183 | - 'title' => esc_html__('Admin Options', 'event_espresso'), |
|
184 | - 'filename' => 'general_settings_admin_options', |
|
185 | - ], |
|
186 | - ], |
|
187 | - 'require_nonce' => false, |
|
188 | - ], |
|
189 | - 'country_settings' => [ |
|
190 | - 'nav' => [ |
|
191 | - 'label' => esc_html__('Countries', 'event_espresso'), |
|
192 | - 'order' => 70, |
|
193 | - ], |
|
194 | - 'help_tabs' => [ |
|
195 | - 'general_settings_countries_help_tab' => [ |
|
196 | - 'title' => esc_html__('Countries', 'event_espresso'), |
|
197 | - 'filename' => 'general_settings_countries', |
|
198 | - ], |
|
199 | - ], |
|
200 | - 'require_nonce' => false, |
|
201 | - ], |
|
202 | - 'privacy_settings' => [ |
|
203 | - 'nav' => [ |
|
204 | - 'label' => esc_html__('Privacy', 'event_espresso'), |
|
205 | - 'order' => 80, |
|
206 | - ], |
|
207 | - 'metaboxes' => array_merge($this->_default_espresso_metaboxes, ['_publish_post_box']), |
|
208 | - 'require_nonce' => false, |
|
209 | - ], |
|
210 | - ]; |
|
211 | - } |
|
212 | - |
|
213 | - |
|
214 | - protected function _add_screen_options() |
|
215 | - { |
|
216 | - } |
|
217 | - |
|
218 | - |
|
219 | - protected function _add_feature_pointers() |
|
220 | - { |
|
221 | - } |
|
222 | - |
|
223 | - |
|
224 | - /** |
|
225 | - * Enqueue global scripts and styles for all routes in the General Settings Admin Pages. |
|
226 | - */ |
|
227 | - public function load_scripts_styles() |
|
228 | - { |
|
229 | - // styles |
|
230 | - wp_enqueue_style('espresso-ui-theme'); |
|
231 | - // scripts |
|
232 | - wp_enqueue_script('ee_admin_js'); |
|
233 | - } |
|
234 | - |
|
235 | - |
|
236 | - /** |
|
237 | - * Execute logic running on `admin_init` |
|
238 | - */ |
|
239 | - public function admin_init() |
|
240 | - { |
|
241 | - $this->core_config = EE_Registry::instance()->CFG->core; |
|
242 | - |
|
243 | - EE_Registry::$i18n_js_strings['invalid_server_response'] = wp_strip_all_tags( |
|
244 | - esc_html__( |
|
245 | - 'An error occurred! Your request may have been processed, but a valid response from the server was not received. Please refresh the page and try again.', |
|
246 | - 'event_espresso' |
|
247 | - ) |
|
248 | - ); |
|
249 | - EE_Registry::$i18n_js_strings['error_occurred'] = wp_strip_all_tags( |
|
250 | - esc_html__( |
|
251 | - 'An error occurred! Please refresh the page and try again.', |
|
252 | - 'event_espresso' |
|
253 | - ) |
|
254 | - ); |
|
255 | - EE_Registry::$i18n_js_strings['confirm_delete_state'] = wp_strip_all_tags( |
|
256 | - esc_html__( |
|
257 | - 'Are you sure you want to delete this State / Province?', |
|
258 | - 'event_espresso' |
|
259 | - ) |
|
260 | - ); |
|
261 | - EE_Registry::$i18n_js_strings['ajax_url'] = admin_url( |
|
262 | - 'admin-ajax.php?page=espresso_general_settings', |
|
263 | - is_ssl() ? 'https://' : 'http://' |
|
264 | - ); |
|
265 | - } |
|
266 | - |
|
267 | - |
|
268 | - public function admin_notices() |
|
269 | - { |
|
270 | - } |
|
271 | - |
|
272 | - |
|
273 | - public function admin_footer_scripts() |
|
274 | - { |
|
275 | - } |
|
276 | - |
|
277 | - |
|
278 | - /** |
|
279 | - * Enqueue scripts and styles for the default route. |
|
280 | - */ |
|
281 | - public function load_scripts_styles_default() |
|
282 | - { |
|
283 | - // styles |
|
284 | - wp_enqueue_style('thickbox'); |
|
285 | - // scripts |
|
286 | - wp_enqueue_script('media-upload'); |
|
287 | - wp_enqueue_script('thickbox'); |
|
288 | - wp_register_script( |
|
289 | - 'organization_settings', |
|
290 | - GEN_SET_ASSETS_URL . 'your_organization_settings.js', |
|
291 | - ['jquery', 'media-upload', 'thickbox'], |
|
292 | - EVENT_ESPRESSO_VERSION, |
|
293 | - true |
|
294 | - ); |
|
295 | - wp_register_style('organization-css', GEN_SET_ASSETS_URL . 'organization.css', [], EVENT_ESPRESSO_VERSION); |
|
296 | - wp_enqueue_script('organization_settings'); |
|
297 | - wp_enqueue_style('organization-css'); |
|
298 | - $confirm_image_delete = [ |
|
299 | - 'text' => wp_strip_all_tags( |
|
300 | - esc_html__( |
|
301 | - 'Do you really want to delete this image? Please remember to save your settings to complete the removal.', |
|
302 | - 'event_espresso' |
|
303 | - ) |
|
304 | - ), |
|
305 | - ]; |
|
306 | - wp_localize_script('organization_settings', 'confirm_image_delete', $confirm_image_delete); |
|
307 | - } |
|
308 | - |
|
309 | - |
|
310 | - /** |
|
311 | - * Enqueue scripts and styles for the country settings route. |
|
312 | - */ |
|
313 | - public function load_scripts_styles_country_settings() |
|
314 | - { |
|
315 | - // scripts |
|
316 | - wp_register_script( |
|
317 | - 'gen_settings_countries', |
|
318 | - GEN_SET_ASSETS_URL . 'gen_settings_countries.js', |
|
319 | - ['ee_admin_js'], |
|
320 | - EVENT_ESPRESSO_VERSION, |
|
321 | - true |
|
322 | - ); |
|
323 | - wp_register_style('organization-css', GEN_SET_ASSETS_URL . 'organization.css', [], EVENT_ESPRESSO_VERSION); |
|
324 | - wp_enqueue_script('gen_settings_countries'); |
|
325 | - wp_enqueue_style('organization-css'); |
|
326 | - } |
|
327 | - |
|
328 | - |
|
329 | - /************* Espresso Pages *************/ |
|
330 | - /** |
|
331 | - * _espresso_page_settings |
|
332 | - * |
|
333 | - * @throws EE_Error |
|
334 | - * @throws DomainException |
|
335 | - * @throws DomainException |
|
336 | - * @throws InvalidDataTypeException |
|
337 | - * @throws InvalidArgumentException |
|
338 | - */ |
|
339 | - protected function _espresso_page_settings() |
|
340 | - { |
|
341 | - // Check to make sure all of the main pages are set up properly, |
|
342 | - // if not create the default pages and display an admin notice |
|
343 | - EEH_Activation::verify_default_pages_exist(); |
|
344 | - $this->_transient_garbage_collection(); |
|
345 | - |
|
346 | - $this->_template_args['values'] = $this->_yes_no_values; |
|
347 | - |
|
348 | - $this->_template_args['reg_page_id'] = $this->core_config->reg_page_id ?? null; |
|
349 | - $this->_template_args['reg_page_obj'] = isset($this->core_config->reg_page_id) |
|
350 | - ? get_post($this->core_config->reg_page_id) |
|
351 | - : false; |
|
352 | - |
|
353 | - $this->_template_args['txn_page_id'] = $this->core_config->txn_page_id ?? null; |
|
354 | - $this->_template_args['txn_page_obj'] = isset($this->core_config->txn_page_id) |
|
355 | - ? get_post($this->core_config->txn_page_id) |
|
356 | - : false; |
|
357 | - |
|
358 | - $this->_template_args['thank_you_page_id'] = $this->core_config->thank_you_page_id ?? null; |
|
359 | - $this->_template_args['thank_you_page_obj'] = isset($this->core_config->thank_you_page_id) |
|
360 | - ? get_post($this->core_config->thank_you_page_id) |
|
361 | - : false; |
|
362 | - |
|
363 | - $this->_template_args['cancel_page_id'] = $this->core_config->cancel_page_id ?? null; |
|
364 | - $this->_template_args['cancel_page_obj'] = isset($this->core_config->cancel_page_id) |
|
365 | - ? get_post($this->core_config->cancel_page_id) |
|
366 | - : false; |
|
367 | - |
|
368 | - $this->_set_add_edit_form_tags('update_espresso_page_settings'); |
|
369 | - $this->_set_publish_post_box_vars(null, false, false, null, false); |
|
370 | - $this->_template_args['admin_page_content'] = EEH_Template::display_template( |
|
371 | - GEN_SET_TEMPLATE_PATH . 'espresso_page_settings.template.php', |
|
372 | - $this->_template_args, |
|
373 | - true |
|
374 | - ); |
|
375 | - $this->display_admin_page_with_sidebar(); |
|
376 | - } |
|
377 | - |
|
378 | - |
|
379 | - /** |
|
380 | - * Handler for updating espresso page settings. |
|
381 | - * |
|
382 | - * @throws EE_Error |
|
383 | - */ |
|
384 | - protected function _update_espresso_page_settings() |
|
385 | - { |
|
386 | - // capture incoming request data && set page IDs |
|
387 | - $this->core_config->reg_page_id = $this->request->getRequestParam( |
|
388 | - 'reg_page_id', |
|
389 | - $this->core_config->reg_page_id, |
|
390 | - DataType::INT |
|
391 | - ); |
|
392 | - $this->core_config->txn_page_id = $this->request->getRequestParam( |
|
393 | - 'txn_page_id', |
|
394 | - $this->core_config->txn_page_id, |
|
395 | - DataType::INT |
|
396 | - ); |
|
397 | - $this->core_config->thank_you_page_id = $this->request->getRequestParam( |
|
398 | - 'thank_you_page_id', |
|
399 | - $this->core_config->thank_you_page_id, |
|
400 | - DataType::INT |
|
401 | - ); |
|
402 | - $this->core_config->cancel_page_id = $this->request->getRequestParam( |
|
403 | - 'cancel_page_id', |
|
404 | - $this->core_config->cancel_page_id, |
|
405 | - DataType::INT |
|
406 | - ); |
|
407 | - |
|
408 | - $this->core_config = apply_filters( |
|
409 | - 'FHEE__General_Settings_Admin_Page___update_espresso_page_settings__CFG_core', |
|
410 | - $this->core_config, |
|
411 | - $this->request->requestParams() |
|
412 | - ); |
|
413 | - |
|
414 | - $what = esc_html__('Critical Pages & Shortcodes', 'event_espresso'); |
|
415 | - $this->_redirect_after_action( |
|
416 | - $this->_update_espresso_configuration( |
|
417 | - $what, |
|
418 | - $this->core_config, |
|
419 | - __FILE__, |
|
420 | - __FUNCTION__, |
|
421 | - __LINE__ |
|
422 | - ), |
|
423 | - $what, |
|
424 | - '', |
|
425 | - [ |
|
426 | - 'action' => 'critical_pages', |
|
427 | - ], |
|
428 | - true |
|
429 | - ); |
|
430 | - } |
|
431 | - |
|
432 | - |
|
433 | - /************* Your Organization *************/ |
|
434 | - |
|
435 | - |
|
436 | - /** |
|
437 | - * @throws DomainException |
|
438 | - * @throws EE_Error |
|
439 | - * @throws InvalidArgumentException |
|
440 | - * @throws InvalidDataTypeException |
|
441 | - * @throws InvalidInterfaceException |
|
442 | - */ |
|
443 | - protected function _your_organization_settings() |
|
444 | - { |
|
445 | - $this->_template_args['admin_page_content'] = ''; |
|
446 | - try { |
|
447 | - /** @var OrganizationSettings $organization_settings_form */ |
|
448 | - $organization_settings_form = $this->loader->getShared(OrganizationSettings::class); |
|
449 | - |
|
450 | - $this->_template_args['admin_page_content'] = EEH_HTML::div( |
|
451 | - $organization_settings_form->display(), |
|
452 | - '', |
|
453 | - 'padding' |
|
454 | - ); |
|
455 | - } catch (Exception $e) { |
|
456 | - EE_Error::add_error($e->getMessage(), __FILE__, __FUNCTION__, __LINE__); |
|
457 | - } |
|
458 | - $this->_set_add_edit_form_tags('update_your_organization_settings'); |
|
459 | - $this->_set_publish_post_box_vars(null, false, false, null, false); |
|
460 | - $this->display_admin_page_with_sidebar(); |
|
461 | - } |
|
462 | - |
|
463 | - |
|
464 | - /** |
|
465 | - * Handler for updating organization settings. |
|
466 | - * |
|
467 | - * @throws EE_Error |
|
468 | - */ |
|
469 | - protected function _update_your_organization_settings() |
|
470 | - { |
|
471 | - try { |
|
472 | - /** @var OrganizationSettings $organization_settings_form */ |
|
473 | - $organization_settings_form = $this->loader->getShared(OrganizationSettings::class); |
|
474 | - |
|
475 | - $success = $organization_settings_form->process($this->request->requestParams()); |
|
476 | - |
|
477 | - EE_Registry::instance()->CFG = apply_filters( |
|
478 | - 'FHEE__General_Settings_Admin_Page___update_your_organization_settings__CFG', |
|
479 | - EE_Registry::instance()->CFG |
|
480 | - ); |
|
481 | - } catch (Exception $e) { |
|
482 | - EE_Error::add_error($e->getMessage(), __FILE__, __FUNCTION__, __LINE__); |
|
483 | - $success = false; |
|
484 | - } |
|
485 | - |
|
486 | - if ($success) { |
|
487 | - $success = $this->_update_espresso_configuration( |
|
488 | - esc_html__('Your Organization Settings', 'event_espresso'), |
|
489 | - EE_Registry::instance()->CFG, |
|
490 | - __FILE__, |
|
491 | - __FUNCTION__, |
|
492 | - __LINE__ |
|
493 | - ); |
|
494 | - } |
|
495 | - |
|
496 | - $this->_redirect_after_action($success, '', '', ['action' => 'default'], true); |
|
497 | - } |
|
498 | - |
|
499 | - |
|
500 | - |
|
501 | - /************* Admin Options *************/ |
|
502 | - |
|
503 | - |
|
504 | - /** |
|
505 | - * _admin_option_settings |
|
506 | - * |
|
507 | - * @throws EE_Error |
|
508 | - * @throws LogicException |
|
509 | - */ |
|
510 | - protected function _admin_option_settings() |
|
511 | - { |
|
512 | - $this->_template_args['admin_page_content'] = ''; |
|
513 | - try { |
|
514 | - $admin_options_settings_form = new AdminOptionsSettings(EE_Registry::instance()); |
|
515 | - // still need this for the old school form in Extend_General_Settings_Admin_Page |
|
516 | - $this->_template_args['values'] = $this->_yes_no_values; |
|
517 | - // also need to account for the do_action that was in the old template |
|
518 | - $admin_options_settings_form->setTemplateArgs($this->_template_args); |
|
519 | - $this->_template_args['admin_page_content'] = EEH_HTML::div( |
|
520 | - $admin_options_settings_form->display(), |
|
521 | - '', |
|
522 | - 'padding' |
|
523 | - ); |
|
524 | - } catch (Exception $e) { |
|
525 | - EE_Error::add_error($e->getMessage(), __FILE__, __FUNCTION__, __LINE__); |
|
526 | - } |
|
527 | - $this->_set_add_edit_form_tags('update_admin_option_settings'); |
|
528 | - $this->_set_publish_post_box_vars(null, false, false, null, false); |
|
529 | - $this->display_admin_page_with_sidebar(); |
|
530 | - } |
|
531 | - |
|
532 | - |
|
533 | - /** |
|
534 | - * _update_admin_option_settings |
|
535 | - * |
|
536 | - * @throws EE_Error |
|
537 | - * @throws InvalidDataTypeException |
|
538 | - * @throws InvalidFormSubmissionException |
|
539 | - * @throws InvalidArgumentException |
|
540 | - * @throws LogicException |
|
541 | - */ |
|
542 | - protected function _update_admin_option_settings() |
|
543 | - { |
|
544 | - try { |
|
545 | - $admin_options_settings_form = new AdminOptionsSettings(EE_Registry::instance()); |
|
546 | - $admin_options_settings_form->process( |
|
547 | - $this->request->getRequestParam( |
|
548 | - $admin_options_settings_form->slug(), |
|
549 | - [], |
|
550 | - DataType::STRING, |
|
551 | - true |
|
552 | - ) |
|
553 | - ); |
|
554 | - EE_Registry::instance()->CFG->admin = apply_filters( |
|
555 | - 'FHEE__General_Settings_Admin_Page___update_admin_option_settings__CFG_admin', |
|
556 | - EE_Registry::instance()->CFG->admin |
|
557 | - ); |
|
558 | - } catch (Exception $e) { |
|
559 | - EE_Error::add_error($e->getMessage(), __FILE__, __FUNCTION__, __LINE__); |
|
560 | - } |
|
561 | - $this->_redirect_after_action( |
|
562 | - apply_filters( |
|
563 | - 'FHEE__General_Settings_Admin_Page___update_admin_option_settings__success', |
|
564 | - $this->_update_espresso_configuration( |
|
565 | - esc_html__('Admin Options', 'event_espresso'), |
|
566 | - EE_Registry::instance()->CFG->admin, |
|
567 | - __FILE__, |
|
568 | - __FUNCTION__, |
|
569 | - __LINE__ |
|
570 | - ) |
|
571 | - ), |
|
572 | - esc_html__('Admin Options', 'event_espresso'), |
|
573 | - 'updated', |
|
574 | - ['action' => 'admin_option_settings'] |
|
575 | - ); |
|
576 | - } |
|
577 | - |
|
578 | - |
|
579 | - /************* Countries *************/ |
|
580 | - |
|
581 | - |
|
582 | - /** |
|
583 | - * @param string|null $default |
|
584 | - * @return string |
|
585 | - */ |
|
586 | - protected function getCountryISO(?string $default = null): string |
|
587 | - { |
|
588 | - $default = $default ?? $this->getCountryIsoForSite(); |
|
589 | - $CNT_ISO = $this->request->getRequestParam('country', $default); |
|
590 | - return strtoupper($CNT_ISO); |
|
591 | - } |
|
592 | - |
|
593 | - |
|
594 | - /** |
|
595 | - * @return string |
|
596 | - */ |
|
597 | - protected function getCountryIsoForSite(): string |
|
598 | - { |
|
599 | - return ! empty(EE_Registry::instance()->CFG->organization->CNT_ISO) |
|
600 | - ? EE_Registry::instance()->CFG->organization->CNT_ISO |
|
601 | - : 'US'; |
|
602 | - } |
|
603 | - |
|
604 | - |
|
605 | - /** |
|
606 | - * @param string $CNT_ISO |
|
607 | - * @param EE_Country|null $country |
|
608 | - * @return EE_Base_Class|EE_Country |
|
609 | - * @throws EE_Error |
|
610 | - * @throws InvalidArgumentException |
|
611 | - * @throws InvalidDataTypeException |
|
612 | - * @throws InvalidInterfaceException |
|
613 | - * @throws ReflectionException |
|
614 | - */ |
|
615 | - protected function verifyOrGetCountryFromIso(string $CNT_ISO, ?EE_Country $country = null) |
|
616 | - { |
|
617 | - /** @var EE_Country $country */ |
|
618 | - return $country instanceof EE_Country && $country->ID() === $CNT_ISO |
|
619 | - ? $country |
|
620 | - : EEM_Country::instance()->get_one_by_ID($CNT_ISO); |
|
621 | - } |
|
622 | - |
|
623 | - |
|
624 | - /** |
|
625 | - * Output Country Settings view. |
|
626 | - * |
|
627 | - * @throws DomainException |
|
628 | - * @throws EE_Error |
|
629 | - * @throws InvalidArgumentException |
|
630 | - * @throws InvalidDataTypeException |
|
631 | - * @throws InvalidInterfaceException |
|
632 | - * @throws ReflectionException |
|
633 | - */ |
|
634 | - protected function _country_settings() |
|
635 | - { |
|
636 | - $CNT_ISO = $this->getCountryISO(); |
|
637 | - |
|
638 | - $this->_template_args['values'] = $this->_yes_no_values; |
|
639 | - $this->_template_args['countries'] = new EE_Question_Form_Input( |
|
640 | - EE_Question::new_instance( |
|
641 | - [ |
|
642 | - 'QST_ID' => 0, |
|
643 | - 'QST_display_text' => esc_html__('Select Country', 'event_espresso'), |
|
644 | - 'QST_system' => 'admin-country', |
|
645 | - ] |
|
646 | - ), |
|
647 | - EE_Answer::new_instance( |
|
648 | - [ |
|
649 | - 'ANS_ID' => 0, |
|
650 | - 'ANS_value' => $CNT_ISO, |
|
651 | - ] |
|
652 | - ), |
|
653 | - [ |
|
654 | - 'input_id' => 'country', |
|
655 | - 'input_name' => 'country', |
|
656 | - 'input_prefix' => '', |
|
657 | - 'append_qstn_id' => false, |
|
658 | - ] |
|
659 | - ); |
|
660 | - |
|
661 | - $country = $this->verifyOrGetCountryFromIso($CNT_ISO); |
|
662 | - add_filter('FHEE__EEH_Form_Fields__label_html', [$this, 'country_form_field_label_wrap'], 10); |
|
663 | - add_filter('FHEE__EEH_Form_Fields__input_html', [$this, 'country_form_field_input__wrap'], 10); |
|
664 | - $this->_template_args['country_details_settings'] = $this->display_country_settings( |
|
665 | - $country->ID(), |
|
666 | - $country |
|
667 | - ); |
|
668 | - $this->_template_args['country_states_settings'] = $this->display_country_states( |
|
669 | - $country->ID(), |
|
670 | - $country |
|
671 | - ); |
|
672 | - $this->_template_args['CNT_name_for_site'] = $country->name(); |
|
673 | - |
|
674 | - $this->_set_add_edit_form_tags('update_country_settings'); |
|
675 | - $this->_set_publish_post_box_vars(null, false, false, null, false); |
|
676 | - $this->_template_args['admin_page_content'] = EEH_Template::display_template( |
|
677 | - GEN_SET_TEMPLATE_PATH . 'countries_settings.template.php', |
|
678 | - $this->_template_args, |
|
679 | - true |
|
680 | - ); |
|
681 | - $this->display_admin_page_with_no_sidebar(); |
|
682 | - } |
|
683 | - |
|
684 | - |
|
685 | - /** |
|
686 | - * @param string $CNT_ISO |
|
687 | - * @param EE_Country|null $country |
|
688 | - * @return string |
|
689 | - * @throws DomainException |
|
690 | - * @throws EE_Error |
|
691 | - * @throws InvalidArgumentException |
|
692 | - * @throws InvalidDataTypeException |
|
693 | - * @throws InvalidInterfaceException |
|
694 | - * @throws ReflectionException |
|
695 | - */ |
|
696 | - public function display_country_settings(string $CNT_ISO = '', ?EE_Country $country = null): string |
|
697 | - { |
|
698 | - $CNT_ISO = $this->getCountryISO($CNT_ISO); |
|
699 | - $CNT_ISO_for_site = $this->getCountryIsoForSite(); |
|
700 | - |
|
701 | - if (! $CNT_ISO) { |
|
702 | - return ''; |
|
703 | - } |
|
704 | - |
|
705 | - // for ajax |
|
706 | - remove_all_filters('FHEE__EEH_Form_Fields__label_html'); |
|
707 | - remove_all_filters('FHEE__EEH_Form_Fields__input_html'); |
|
708 | - add_filter('FHEE__EEH_Form_Fields__label_html', [$this, 'country_form_field_label_wrap'], 10, 2); |
|
709 | - add_filter('FHEE__EEH_Form_Fields__input_html', [$this, 'country_form_field_input__wrap'], 10, 2); |
|
710 | - $country = $this->verifyOrGetCountryFromIso($CNT_ISO, $country); |
|
711 | - $CNT_cur_disabled = $CNT_ISO !== $CNT_ISO_for_site; |
|
712 | - $this->_template_args['CNT_cur_disabled'] = $CNT_cur_disabled; |
|
713 | - |
|
714 | - $country_input_types = [ |
|
715 | - 'CNT_active' => [ |
|
716 | - 'type' => 'RADIO_BTN', |
|
717 | - 'input_name' => "cntry[$CNT_ISO]", |
|
718 | - 'class' => '', |
|
719 | - 'options' => $this->_yes_no_values, |
|
720 | - 'use_desc_4_label' => true, |
|
721 | - ], |
|
722 | - 'CNT_ISO' => [ |
|
723 | - 'type' => 'TEXT', |
|
724 | - 'input_name' => "cntry[$CNT_ISO]", |
|
725 | - 'class' => 'ee-input-size--small', |
|
726 | - ], |
|
727 | - 'CNT_ISO3' => [ |
|
728 | - 'type' => 'TEXT', |
|
729 | - 'input_name' => "cntry[$CNT_ISO]", |
|
730 | - 'class' => 'ee-input-size--small', |
|
731 | - ], |
|
732 | - // 'RGN_ID' => [ |
|
733 | - // 'type' => 'TEXT', |
|
734 | - // 'input_name' => "cntry[$CNT_ISO]", |
|
735 | - // 'class' => 'ee-input-size--small', |
|
736 | - // ], |
|
737 | - 'CNT_name' => [ |
|
738 | - 'type' => 'TEXT', |
|
739 | - 'input_name' => "cntry[$CNT_ISO]", |
|
740 | - 'class' => 'ee-input-size--big', |
|
741 | - ], |
|
742 | - 'CNT_cur_code' => [ |
|
743 | - 'type' => 'TEXT', |
|
744 | - 'input_name' => "cntry[$CNT_ISO]", |
|
745 | - 'class' => 'ee-input-size--small', |
|
746 | - 'disabled' => $CNT_cur_disabled, |
|
747 | - ], |
|
748 | - 'CNT_cur_single' => [ |
|
749 | - 'type' => 'TEXT', |
|
750 | - 'input_name' => "cntry[$CNT_ISO]", |
|
751 | - 'class' => 'ee-input-size--reg', |
|
752 | - 'disabled' => $CNT_cur_disabled, |
|
753 | - ], |
|
754 | - 'CNT_cur_plural' => [ |
|
755 | - 'type' => 'TEXT', |
|
756 | - 'input_name' => "cntry[$CNT_ISO]", |
|
757 | - 'class' => 'ee-input-size--reg', |
|
758 | - 'disabled' => $CNT_cur_disabled, |
|
759 | - ], |
|
760 | - 'CNT_cur_sign' => [ |
|
761 | - 'type' => 'TEXT', |
|
762 | - 'input_name' => "cntry[$CNT_ISO]", |
|
763 | - 'class' => 'ee-input-size--small', |
|
764 | - 'htmlentities' => false, |
|
765 | - 'disabled' => $CNT_cur_disabled, |
|
766 | - ], |
|
767 | - 'CNT_cur_sign_b4' => [ |
|
768 | - 'type' => 'RADIO_BTN', |
|
769 | - 'input_name' => "cntry[$CNT_ISO]", |
|
770 | - 'class' => '', |
|
771 | - 'options' => $this->_yes_no_values, |
|
772 | - 'use_desc_4_label' => true, |
|
773 | - 'disabled' => $CNT_cur_disabled, |
|
774 | - ], |
|
775 | - 'CNT_cur_dec_plc' => [ |
|
776 | - 'type' => 'RADIO_BTN', |
|
777 | - 'input_name' => "cntry[$CNT_ISO]", |
|
778 | - 'class' => '', |
|
779 | - 'options' => [ |
|
780 | - ['id' => 0, 'text' => ''], |
|
781 | - ['id' => 1, 'text' => ''], |
|
782 | - ['id' => 2, 'text' => ''], |
|
783 | - ['id' => 3, 'text' => ''], |
|
784 | - ], |
|
785 | - 'disabled' => $CNT_cur_disabled, |
|
786 | - ], |
|
787 | - 'CNT_cur_dec_mrk' => [ |
|
788 | - 'type' => 'RADIO_BTN', |
|
789 | - 'input_name' => "cntry[$CNT_ISO]", |
|
790 | - 'class' => '', |
|
791 | - 'options' => [ |
|
792 | - [ |
|
793 | - 'id' => ',', |
|
794 | - 'text' => esc_html__(', (comma)', 'event_espresso'), |
|
795 | - ], |
|
796 | - ['id' => '.', 'text' => esc_html__('. (decimal)', 'event_espresso')], |
|
797 | - ], |
|
798 | - 'use_desc_4_label' => true, |
|
799 | - 'disabled' => $CNT_cur_disabled, |
|
800 | - ], |
|
801 | - 'CNT_cur_thsnds' => [ |
|
802 | - 'type' => 'RADIO_BTN', |
|
803 | - 'input_name' => "cntry[$CNT_ISO]", |
|
804 | - 'class' => '', |
|
805 | - 'options' => [ |
|
806 | - [ |
|
807 | - 'id' => ',', |
|
808 | - 'text' => esc_html__(', (comma)', 'event_espresso'), |
|
809 | - ], |
|
810 | - [ |
|
811 | - 'id' => '.', |
|
812 | - 'text' => esc_html__('. (decimal)', 'event_espresso'), |
|
813 | - ], |
|
814 | - [ |
|
815 | - 'id' => ' ', |
|
816 | - 'text' => esc_html__('(space)', 'event_espresso'), |
|
817 | - ], |
|
818 | - ], |
|
819 | - 'use_desc_4_label' => true, |
|
820 | - 'disabled' => $CNT_cur_disabled, |
|
821 | - ], |
|
822 | - 'CNT_tel_code' => [ |
|
823 | - 'type' => 'TEXT', |
|
824 | - 'input_name' => "cntry[$CNT_ISO]", |
|
825 | - 'class' => 'ee-input-size--small', |
|
826 | - ], |
|
827 | - 'CNT_is_EU' => [ |
|
828 | - 'type' => 'RADIO_BTN', |
|
829 | - 'input_name' => "cntry[$CNT_ISO]", |
|
830 | - 'class' => '', |
|
831 | - 'options' => $this->_yes_no_values, |
|
832 | - 'use_desc_4_label' => true, |
|
833 | - ], |
|
834 | - ]; |
|
835 | - $this->_template_args['inputs'] = EE_Question_Form_Input::generate_question_form_inputs_for_object( |
|
836 | - $country, |
|
837 | - $country_input_types |
|
838 | - ); |
|
839 | - $country_details_settings = EEH_Template::display_template( |
|
840 | - GEN_SET_TEMPLATE_PATH . 'country_details_settings.template.php', |
|
841 | - $this->_template_args, |
|
842 | - true |
|
843 | - ); |
|
844 | - |
|
845 | - if (defined('DOING_AJAX')) { |
|
846 | - $notices = EE_Error::get_notices(false, false, false); |
|
847 | - echo wp_json_encode( |
|
848 | - [ |
|
849 | - 'return_data' => $country_details_settings, |
|
850 | - 'success' => $notices['success'], |
|
851 | - 'errors' => $notices['errors'], |
|
852 | - ] |
|
853 | - ); |
|
854 | - die(); |
|
855 | - } |
|
856 | - return $country_details_settings; |
|
857 | - } |
|
858 | - |
|
859 | - |
|
860 | - /** |
|
861 | - * @param string $CNT_ISO |
|
862 | - * @param EE_Country|null $country |
|
863 | - * @return string |
|
864 | - * @throws DomainException |
|
865 | - * @throws EE_Error |
|
866 | - * @throws InvalidArgumentException |
|
867 | - * @throws InvalidDataTypeException |
|
868 | - * @throws InvalidInterfaceException |
|
869 | - * @throws ReflectionException |
|
870 | - */ |
|
871 | - public function display_country_states(string $CNT_ISO = '', ?EE_Country $country = null): string |
|
872 | - { |
|
873 | - $CNT_ISO = $this->getCountryISO($CNT_ISO); |
|
874 | - if (! $CNT_ISO) { |
|
875 | - return ''; |
|
876 | - } |
|
877 | - // for ajax |
|
878 | - remove_all_filters('FHEE__EEH_Form_Fields__label_html'); |
|
879 | - remove_all_filters('FHEE__EEH_Form_Fields__input_html'); |
|
880 | - add_filter('FHEE__EEH_Form_Fields__label_html', [$this, 'state_form_field_label_wrap'], 10, 2); |
|
881 | - add_filter('FHEE__EEH_Form_Fields__input_html', [$this, 'state_form_field_input__wrap'], 10); |
|
882 | - $states = EEM_State::instance()->get_all_states_for_these_countries([$CNT_ISO => $CNT_ISO]); |
|
883 | - if (empty($states)) { |
|
884 | - /** @var EventEspresso\core\services\address\CountrySubRegionDao $countrySubRegionDao */ |
|
885 | - $countrySubRegionDao = $this->loader->getShared( |
|
886 | - 'EventEspresso\core\services\address\CountrySubRegionDao' |
|
887 | - ); |
|
888 | - if ($countrySubRegionDao instanceof EventEspresso\core\services\address\CountrySubRegionDao) { |
|
889 | - $country = $this->verifyOrGetCountryFromIso($CNT_ISO, $country); |
|
890 | - if ($countrySubRegionDao->saveCountrySubRegions($country)) { |
|
891 | - $states = EEM_State::instance()->get_all_states_for_these_countries([$CNT_ISO => $CNT_ISO]); |
|
892 | - } |
|
893 | - } |
|
894 | - } |
|
895 | - if (is_array($states)) { |
|
896 | - foreach ($states as $STA_ID => $state) { |
|
897 | - if ($state instanceof EE_State) { |
|
898 | - $inputs = EE_Question_Form_Input::generate_question_form_inputs_for_object( |
|
899 | - $state, |
|
900 | - [ |
|
901 | - 'STA_abbrev' => [ |
|
902 | - 'type' => 'TEXT', |
|
903 | - 'label' => esc_html__('Code', 'event_espresso'), |
|
904 | - 'input_name' => "states[$STA_ID]", |
|
905 | - 'class' => 'ee-input-size--tiny', |
|
906 | - 'add_mobile_label' => true, |
|
907 | - ], |
|
908 | - 'STA_name' => [ |
|
909 | - 'type' => 'TEXT', |
|
910 | - 'label' => esc_html__('Name', 'event_espresso'), |
|
911 | - 'input_name' => "states[$STA_ID]", |
|
912 | - 'class' => 'ee-input-size--big', |
|
913 | - 'add_mobile_label' => true, |
|
914 | - ], |
|
915 | - 'STA_active' => [ |
|
916 | - 'type' => 'RADIO_BTN', |
|
917 | - 'label' => esc_html__('State Appears in Dropdown Select Lists', 'event_espresso'), |
|
918 | - 'input_name' => "states[$STA_ID]", |
|
919 | - 'options' => $this->_yes_no_values, |
|
920 | - 'use_desc_4_label' => true, |
|
921 | - 'add_mobile_label' => true, |
|
922 | - ], |
|
923 | - ] |
|
924 | - ); |
|
925 | - |
|
926 | - $delete_state_url = EE_Admin_Page::add_query_args_and_nonce( |
|
927 | - [ |
|
928 | - 'action' => 'delete_state', |
|
929 | - 'STA_ID' => $STA_ID, |
|
930 | - 'CNT_ISO' => $CNT_ISO, |
|
931 | - 'STA_abbrev' => $state->abbrev(), |
|
932 | - ], |
|
933 | - GEN_SET_ADMIN_URL |
|
934 | - ); |
|
935 | - |
|
936 | - $this->_template_args['states'][$STA_ID]['inputs'] = $inputs; |
|
937 | - $this->_template_args['states'][$STA_ID]['delete_state_url'] = $delete_state_url; |
|
938 | - } |
|
939 | - } |
|
940 | - } else { |
|
941 | - $this->_template_args['states'] = false; |
|
942 | - } |
|
943 | - |
|
944 | - $this->_template_args['add_new_state_url'] = EE_Admin_Page::add_query_args_and_nonce( |
|
945 | - ['action' => 'add_new_state'], |
|
946 | - GEN_SET_ADMIN_URL |
|
947 | - ); |
|
948 | - |
|
949 | - $state_details_settings = EEH_Template::display_template( |
|
950 | - GEN_SET_TEMPLATE_PATH . 'state_details_settings.template.php', |
|
951 | - $this->_template_args, |
|
952 | - true |
|
953 | - ); |
|
954 | - |
|
955 | - if (defined('DOING_AJAX')) { |
|
956 | - $notices = EE_Error::get_notices(false, false, false); |
|
957 | - echo wp_json_encode( |
|
958 | - [ |
|
959 | - 'return_data' => $state_details_settings, |
|
960 | - 'success' => $notices['success'], |
|
961 | - 'errors' => $notices['errors'], |
|
962 | - ] |
|
963 | - ); |
|
964 | - die(); |
|
965 | - } |
|
966 | - return $state_details_settings; |
|
967 | - } |
|
968 | - |
|
969 | - |
|
970 | - /** |
|
971 | - * @return void |
|
972 | - * @throws EE_Error |
|
973 | - * @throws InvalidArgumentException |
|
974 | - * @throws InvalidDataTypeException |
|
975 | - * @throws InvalidInterfaceException |
|
976 | - * @throws ReflectionException |
|
977 | - */ |
|
978 | - public function add_new_state() |
|
979 | - { |
|
980 | - $success = true; |
|
981 | - $CNT_ISO = $this->getCountryISO(''); |
|
982 | - if (! $CNT_ISO) { |
|
983 | - EE_Error::add_error( |
|
984 | - esc_html__('No Country ISO code or an invalid Country ISO code was received.', 'event_espresso'), |
|
985 | - __FILE__, |
|
986 | - __FUNCTION__, |
|
987 | - __LINE__ |
|
988 | - ); |
|
989 | - $success = false; |
|
990 | - } |
|
991 | - $STA_abbrev = $this->request->getRequestParam('STA_abbrev'); |
|
992 | - if (! $STA_abbrev) { |
|
993 | - EE_Error::add_error( |
|
994 | - esc_html__('No State ISO code or an invalid State ISO code was received.', 'event_espresso'), |
|
995 | - __FILE__, |
|
996 | - __FUNCTION__, |
|
997 | - __LINE__ |
|
998 | - ); |
|
999 | - $success = false; |
|
1000 | - } |
|
1001 | - $STA_name = $this->request->getRequestParam('STA_name'); |
|
1002 | - if (! $STA_name) { |
|
1003 | - EE_Error::add_error( |
|
1004 | - esc_html__('No State name or an invalid State name was received.', 'event_espresso'), |
|
1005 | - __FILE__, |
|
1006 | - __FUNCTION__, |
|
1007 | - __LINE__ |
|
1008 | - ); |
|
1009 | - $success = false; |
|
1010 | - } |
|
1011 | - |
|
1012 | - if ($success) { |
|
1013 | - $cols_n_values = [ |
|
1014 | - 'CNT_ISO' => $CNT_ISO, |
|
1015 | - 'STA_abbrev' => $STA_abbrev, |
|
1016 | - 'STA_name' => $STA_name, |
|
1017 | - 'STA_active' => true, |
|
1018 | - ]; |
|
1019 | - $success = EEM_State::instance()->insert($cols_n_values); |
|
1020 | - EE_Error::add_success(esc_html__('The State was added successfully.', 'event_espresso')); |
|
1021 | - } |
|
1022 | - |
|
1023 | - if (defined('DOING_AJAX')) { |
|
1024 | - $notices = EE_Error::get_notices(false, false, false); |
|
1025 | - echo wp_json_encode(array_merge($notices, ['return_data' => $CNT_ISO])); |
|
1026 | - die(); |
|
1027 | - } |
|
1028 | - $this->_redirect_after_action( |
|
1029 | - $success, |
|
1030 | - esc_html__('State', 'event_espresso'), |
|
1031 | - 'added', |
|
1032 | - ['action' => 'country_settings'] |
|
1033 | - ); |
|
1034 | - } |
|
1035 | - |
|
1036 | - |
|
1037 | - /** |
|
1038 | - * @return void |
|
1039 | - * @throws EE_Error |
|
1040 | - * @throws InvalidArgumentException |
|
1041 | - * @throws InvalidDataTypeException |
|
1042 | - * @throws InvalidInterfaceException |
|
1043 | - * @throws ReflectionException |
|
1044 | - */ |
|
1045 | - public function delete_state() |
|
1046 | - { |
|
1047 | - $CNT_ISO = $this->getCountryISO(); |
|
1048 | - $STA_ID = $this->request->getRequestParam('STA_ID'); |
|
1049 | - $STA_abbrev = $this->request->getRequestParam('STA_abbrev'); |
|
1050 | - |
|
1051 | - if (! $STA_ID) { |
|
1052 | - EE_Error::add_error( |
|
1053 | - esc_html__('No State ID or an invalid State ID was received.', 'event_espresso'), |
|
1054 | - __FILE__, |
|
1055 | - __FUNCTION__, |
|
1056 | - __LINE__ |
|
1057 | - ); |
|
1058 | - return; |
|
1059 | - } |
|
1060 | - |
|
1061 | - $success = EEM_State::instance()->delete_by_ID($STA_ID); |
|
1062 | - if ($success !== false) { |
|
1063 | - do_action('AHEE__General_Settings_Admin_Page__delete_state__state_deleted', |
|
1064 | - $CNT_ISO, |
|
1065 | - $STA_ID, |
|
1066 | - ['STA_abbrev' => $STA_abbrev]); |
|
1067 | - EE_Error::add_success(esc_html__('The State was deleted successfully.', 'event_espresso')); |
|
1068 | - } |
|
1069 | - if (defined('DOING_AJAX')) { |
|
1070 | - $notices = EE_Error::get_notices(false); |
|
1071 | - $notices['return_data'] = true; |
|
1072 | - echo wp_json_encode($notices); |
|
1073 | - die(); |
|
1074 | - } |
|
1075 | - $this->_redirect_after_action( |
|
1076 | - $success, |
|
1077 | - esc_html__('State', 'event_espresso'), |
|
1078 | - 'deleted', |
|
1079 | - ['action' => 'country_settings'] |
|
1080 | - ); |
|
1081 | - } |
|
1082 | - |
|
1083 | - |
|
1084 | - /** |
|
1085 | - * @return void |
|
1086 | - * @throws EE_Error |
|
1087 | - * @throws InvalidArgumentException |
|
1088 | - * @throws InvalidDataTypeException |
|
1089 | - * @throws InvalidInterfaceException |
|
1090 | - * @throws ReflectionException |
|
1091 | - */ |
|
1092 | - protected function _update_country_settings() |
|
1093 | - { |
|
1094 | - $CNT_ISO = $this->getCountryISO(); |
|
1095 | - if (! $CNT_ISO) { |
|
1096 | - EE_Error::add_error( |
|
1097 | - esc_html__('No Country ISO code or an invalid Country ISO code was received.', 'event_espresso'), |
|
1098 | - __FILE__, |
|
1099 | - __FUNCTION__, |
|
1100 | - __LINE__ |
|
1101 | - ); |
|
1102 | - return; |
|
1103 | - } |
|
1104 | - |
|
1105 | - $country = $this->verifyOrGetCountryFromIso($CNT_ISO); |
|
1106 | - |
|
1107 | - $cols_n_values = []; |
|
1108 | - $cols_n_values['CNT_ISO3'] = strtoupper( |
|
1109 | - $this->request->getRequestParam('cntry', '', $country->ISO3()) |
|
1110 | - ); |
|
1111 | - $cols_n_values['CNT_name'] = |
|
1112 | - $this->request->getRequestParam("cntry[$CNT_ISO][CNT_name]", $country->name()); |
|
1113 | - $cols_n_values['CNT_cur_code'] = strtoupper( |
|
1114 | - $this->request->getRequestParam( |
|
1115 | - "cntry[$CNT_ISO][CNT_cur_code]", |
|
1116 | - $country->currency_code() |
|
1117 | - ) |
|
1118 | - ); |
|
1119 | - $cols_n_values['CNT_cur_single'] = $this->request->getRequestParam( |
|
1120 | - "cntry[$CNT_ISO][CNT_cur_single]", |
|
1121 | - $country->currency_name_single() |
|
1122 | - ); |
|
1123 | - $cols_n_values['CNT_cur_plural'] = $this->request->getRequestParam( |
|
1124 | - "cntry[$CNT_ISO][CNT_cur_plural]", |
|
1125 | - $country->currency_name_plural() |
|
1126 | - ); |
|
1127 | - $cols_n_values['CNT_cur_sign'] = $this->request->getRequestParam( |
|
1128 | - "cntry[$CNT_ISO][CNT_cur_sign]", |
|
1129 | - $country->currency_sign() |
|
1130 | - ); |
|
1131 | - $cols_n_values['CNT_cur_sign_b4'] = $this->request->getRequestParam( |
|
1132 | - "cntry[$CNT_ISO][CNT_cur_sign_b4]", |
|
1133 | - $country->currency_sign_before(), |
|
1134 | - DataType::BOOL |
|
1135 | - ); |
|
1136 | - $cols_n_values['CNT_cur_dec_plc'] = $this->request->getRequestParam( |
|
1137 | - "cntry[$CNT_ISO][CNT_cur_dec_plc]", |
|
1138 | - $country->currency_decimal_places() |
|
1139 | - ); |
|
1140 | - $cols_n_values['CNT_cur_dec_mrk'] = $this->request->getRequestParam( |
|
1141 | - "cntry[$CNT_ISO][CNT_cur_dec_mrk]", |
|
1142 | - $country->currency_decimal_mark() |
|
1143 | - ); |
|
1144 | - $cols_n_values['CNT_cur_thsnds'] = $this->request->getRequestParam( |
|
1145 | - "cntry[$CNT_ISO][CNT_cur_thsnds]", |
|
1146 | - $country->currency_thousands_separator() |
|
1147 | - ); |
|
1148 | - $cols_n_values['CNT_tel_code'] = $this->request->getRequestParam( |
|
1149 | - "cntry[$CNT_ISO][CNT_tel_code]", |
|
1150 | - $country->telephoneCode() |
|
1151 | - ); |
|
1152 | - $cols_n_values['CNT_active'] = $this->request->getRequestParam( |
|
1153 | - "cntry[$CNT_ISO][CNT_active]", |
|
1154 | - $country->isActive(), |
|
1155 | - DataType::BOOL |
|
1156 | - ); |
|
1157 | - |
|
1158 | - // allow filtering of country data |
|
1159 | - $cols_n_values = apply_filters( |
|
1160 | - 'FHEE__General_Settings_Admin_Page___update_country_settings__cols_n_values', |
|
1161 | - $cols_n_values |
|
1162 | - ); |
|
1163 | - |
|
1164 | - // where values |
|
1165 | - $where_cols_n_values = [['CNT_ISO' => $CNT_ISO]]; |
|
1166 | - // run the update |
|
1167 | - $success = EEM_Country::instance()->update($cols_n_values, $where_cols_n_values); |
|
1168 | - |
|
1169 | - // allow filtering of states data |
|
1170 | - $states = apply_filters( |
|
1171 | - 'FHEE__General_Settings_Admin_Page___update_country_settings__states', |
|
1172 | - $this->request->getRequestParam('states', [], DataType::STRING, true) |
|
1173 | - ); |
|
1174 | - |
|
1175 | - if (! empty($states) && $success !== false) { |
|
1176 | - // loop thru state data ( looks like : states[75][STA_name] ) |
|
1177 | - foreach ($states as $STA_ID => $state) { |
|
1178 | - $cols_n_values = [ |
|
1179 | - 'CNT_ISO' => $CNT_ISO, |
|
1180 | - 'STA_abbrev' => sanitize_text_field($state['STA_abbrev']), |
|
1181 | - 'STA_name' => sanitize_text_field($state['STA_name']), |
|
1182 | - 'STA_active' => filter_var($state['STA_active'], FILTER_VALIDATE_BOOLEAN), |
|
1183 | - ]; |
|
1184 | - // where values |
|
1185 | - $where_cols_n_values = [['STA_ID' => $STA_ID]]; |
|
1186 | - // run the update |
|
1187 | - $success = EEM_State::instance()->update($cols_n_values, $where_cols_n_values); |
|
1188 | - if ($success !== false) { |
|
1189 | - do_action( |
|
1190 | - 'AHEE__General_Settings_Admin_Page__update_country_settings__state_saved', |
|
1191 | - $CNT_ISO, |
|
1192 | - $STA_ID, |
|
1193 | - $cols_n_values |
|
1194 | - ); |
|
1195 | - } |
|
1196 | - } |
|
1197 | - } |
|
1198 | - // check if country being edited matches org option country, and if so, then update EE_Config with new settings |
|
1199 | - if ( |
|
1200 | - isset(EE_Registry::instance()->CFG->organization->CNT_ISO) |
|
1201 | - && $CNT_ISO == EE_Registry::instance()->CFG->organization->CNT_ISO |
|
1202 | - ) { |
|
1203 | - EE_Registry::instance()->CFG->currency = new EE_Currency_Config($CNT_ISO); |
|
1204 | - EE_Registry::instance()->CFG->update_espresso_config(); |
|
1205 | - } |
|
1206 | - |
|
1207 | - if ($success !== false) { |
|
1208 | - EE_Error::add_success( |
|
1209 | - esc_html__('Country Settings updated successfully.', 'event_espresso') |
|
1210 | - ); |
|
1211 | - } |
|
1212 | - $this->_redirect_after_action( |
|
1213 | - $success, |
|
1214 | - '', |
|
1215 | - '', |
|
1216 | - ['action' => 'country_settings', 'country' => $CNT_ISO], |
|
1217 | - true |
|
1218 | - ); |
|
1219 | - } |
|
1220 | - |
|
1221 | - |
|
1222 | - /** |
|
1223 | - * form_form_field_label_wrap |
|
1224 | - * |
|
1225 | - * @param string $label |
|
1226 | - * @return string |
|
1227 | - */ |
|
1228 | - public function country_form_field_label_wrap(string $label): string |
|
1229 | - { |
|
1230 | - return ' |
|
22 | + /** |
|
23 | + * @var EE_Core_Config |
|
24 | + */ |
|
25 | + public $core_config; |
|
26 | + |
|
27 | + |
|
28 | + /** |
|
29 | + * Initialize basic properties. |
|
30 | + */ |
|
31 | + protected function _init_page_props() |
|
32 | + { |
|
33 | + $this->page_slug = GEN_SET_PG_SLUG; |
|
34 | + $this->page_label = GEN_SET_LABEL; |
|
35 | + $this->_admin_base_url = GEN_SET_ADMIN_URL; |
|
36 | + $this->_admin_base_path = GEN_SET_ADMIN; |
|
37 | + } |
|
38 | + |
|
39 | + |
|
40 | + /** |
|
41 | + * Set ajax hooks |
|
42 | + */ |
|
43 | + protected function _ajax_hooks() |
|
44 | + { |
|
45 | + add_action('wp_ajax_espresso_display_country_settings', [$this, 'display_country_settings']); |
|
46 | + add_action('wp_ajax_espresso_display_country_states', [$this, 'display_country_states']); |
|
47 | + add_action('wp_ajax_espresso_delete_state', [$this, 'delete_state'], 10, 3); |
|
48 | + add_action('wp_ajax_espresso_add_new_state', [$this, 'add_new_state']); |
|
49 | + } |
|
50 | + |
|
51 | + |
|
52 | + /** |
|
53 | + * More page properties initialization. |
|
54 | + */ |
|
55 | + protected function _define_page_props() |
|
56 | + { |
|
57 | + $this->_admin_page_title = GEN_SET_LABEL; |
|
58 | + $this->_labels = ['publishbox' => esc_html__('Update Settings', 'event_espresso')]; |
|
59 | + } |
|
60 | + |
|
61 | + |
|
62 | + /** |
|
63 | + * Set page routes property. |
|
64 | + */ |
|
65 | + protected function _set_page_routes() |
|
66 | + { |
|
67 | + $this->_page_routes = [ |
|
68 | + 'critical_pages' => [ |
|
69 | + 'func' => '_espresso_page_settings', |
|
70 | + 'capability' => 'manage_options', |
|
71 | + ], |
|
72 | + 'update_espresso_page_settings' => [ |
|
73 | + 'func' => '_update_espresso_page_settings', |
|
74 | + 'capability' => 'manage_options', |
|
75 | + 'noheader' => true, |
|
76 | + ], |
|
77 | + 'default' => [ |
|
78 | + 'func' => '_your_organization_settings', |
|
79 | + 'capability' => 'manage_options', |
|
80 | + ], |
|
81 | + |
|
82 | + 'update_your_organization_settings' => [ |
|
83 | + 'func' => '_update_your_organization_settings', |
|
84 | + 'capability' => 'manage_options', |
|
85 | + 'noheader' => true, |
|
86 | + ], |
|
87 | + |
|
88 | + 'admin_option_settings' => [ |
|
89 | + 'func' => '_admin_option_settings', |
|
90 | + 'capability' => 'manage_options', |
|
91 | + ], |
|
92 | + |
|
93 | + 'update_admin_option_settings' => [ |
|
94 | + 'func' => '_update_admin_option_settings', |
|
95 | + 'capability' => 'manage_options', |
|
96 | + 'noheader' => true, |
|
97 | + ], |
|
98 | + |
|
99 | + 'country_settings' => [ |
|
100 | + 'func' => '_country_settings', |
|
101 | + 'capability' => 'manage_options', |
|
102 | + ], |
|
103 | + |
|
104 | + 'update_country_settings' => [ |
|
105 | + 'func' => '_update_country_settings', |
|
106 | + 'capability' => 'manage_options', |
|
107 | + 'noheader' => true, |
|
108 | + ], |
|
109 | + |
|
110 | + 'display_country_settings' => [ |
|
111 | + 'func' => 'display_country_settings', |
|
112 | + 'capability' => 'manage_options', |
|
113 | + 'noheader' => true, |
|
114 | + ], |
|
115 | + |
|
116 | + 'add_new_state' => [ |
|
117 | + 'func' => 'add_new_state', |
|
118 | + 'capability' => 'manage_options', |
|
119 | + 'noheader' => true, |
|
120 | + ], |
|
121 | + |
|
122 | + 'delete_state' => [ |
|
123 | + 'func' => 'delete_state', |
|
124 | + 'capability' => 'manage_options', |
|
125 | + 'noheader' => true, |
|
126 | + ], |
|
127 | + 'privacy_settings' => [ |
|
128 | + 'func' => 'privacySettings', |
|
129 | + 'capability' => 'manage_options', |
|
130 | + ], |
|
131 | + 'update_privacy_settings' => [ |
|
132 | + 'func' => 'updatePrivacySettings', |
|
133 | + 'capability' => 'manage_options', |
|
134 | + 'noheader' => true, |
|
135 | + 'headers_sent_route' => 'privacy_settings', |
|
136 | + ], |
|
137 | + ]; |
|
138 | + } |
|
139 | + |
|
140 | + |
|
141 | + /** |
|
142 | + * Set page configuration property |
|
143 | + */ |
|
144 | + protected function _set_page_config() |
|
145 | + { |
|
146 | + $this->_page_config = [ |
|
147 | + 'critical_pages' => [ |
|
148 | + 'nav' => [ |
|
149 | + 'label' => esc_html__('Critical Pages', 'event_espresso'), |
|
150 | + 'order' => 50, |
|
151 | + ], |
|
152 | + 'metaboxes' => array_merge($this->_default_espresso_metaboxes, ['_publish_post_box']), |
|
153 | + 'help_tabs' => [ |
|
154 | + 'general_settings_critical_pages_help_tab' => [ |
|
155 | + 'title' => esc_html__('Critical Pages', 'event_espresso'), |
|
156 | + 'filename' => 'general_settings_critical_pages', |
|
157 | + ], |
|
158 | + ], |
|
159 | + 'require_nonce' => false, |
|
160 | + ], |
|
161 | + 'default' => [ |
|
162 | + 'nav' => [ |
|
163 | + 'label' => esc_html__('Your Organization', 'event_espresso'), |
|
164 | + 'order' => 20, |
|
165 | + ], |
|
166 | + 'help_tabs' => [ |
|
167 | + 'general_settings_your_organization_help_tab' => [ |
|
168 | + 'title' => esc_html__('Your Organization', 'event_espresso'), |
|
169 | + 'filename' => 'general_settings_your_organization', |
|
170 | + ], |
|
171 | + ], |
|
172 | + 'metaboxes' => array_merge($this->_default_espresso_metaboxes, ['_publish_post_box']), |
|
173 | + 'require_nonce' => false, |
|
174 | + ], |
|
175 | + 'admin_option_settings' => [ |
|
176 | + 'nav' => [ |
|
177 | + 'label' => esc_html__('Admin Options', 'event_espresso'), |
|
178 | + 'order' => 60, |
|
179 | + ], |
|
180 | + 'metaboxes' => array_merge($this->_default_espresso_metaboxes, ['_publish_post_box']), |
|
181 | + 'help_tabs' => [ |
|
182 | + 'general_settings_admin_options_help_tab' => [ |
|
183 | + 'title' => esc_html__('Admin Options', 'event_espresso'), |
|
184 | + 'filename' => 'general_settings_admin_options', |
|
185 | + ], |
|
186 | + ], |
|
187 | + 'require_nonce' => false, |
|
188 | + ], |
|
189 | + 'country_settings' => [ |
|
190 | + 'nav' => [ |
|
191 | + 'label' => esc_html__('Countries', 'event_espresso'), |
|
192 | + 'order' => 70, |
|
193 | + ], |
|
194 | + 'help_tabs' => [ |
|
195 | + 'general_settings_countries_help_tab' => [ |
|
196 | + 'title' => esc_html__('Countries', 'event_espresso'), |
|
197 | + 'filename' => 'general_settings_countries', |
|
198 | + ], |
|
199 | + ], |
|
200 | + 'require_nonce' => false, |
|
201 | + ], |
|
202 | + 'privacy_settings' => [ |
|
203 | + 'nav' => [ |
|
204 | + 'label' => esc_html__('Privacy', 'event_espresso'), |
|
205 | + 'order' => 80, |
|
206 | + ], |
|
207 | + 'metaboxes' => array_merge($this->_default_espresso_metaboxes, ['_publish_post_box']), |
|
208 | + 'require_nonce' => false, |
|
209 | + ], |
|
210 | + ]; |
|
211 | + } |
|
212 | + |
|
213 | + |
|
214 | + protected function _add_screen_options() |
|
215 | + { |
|
216 | + } |
|
217 | + |
|
218 | + |
|
219 | + protected function _add_feature_pointers() |
|
220 | + { |
|
221 | + } |
|
222 | + |
|
223 | + |
|
224 | + /** |
|
225 | + * Enqueue global scripts and styles for all routes in the General Settings Admin Pages. |
|
226 | + */ |
|
227 | + public function load_scripts_styles() |
|
228 | + { |
|
229 | + // styles |
|
230 | + wp_enqueue_style('espresso-ui-theme'); |
|
231 | + // scripts |
|
232 | + wp_enqueue_script('ee_admin_js'); |
|
233 | + } |
|
234 | + |
|
235 | + |
|
236 | + /** |
|
237 | + * Execute logic running on `admin_init` |
|
238 | + */ |
|
239 | + public function admin_init() |
|
240 | + { |
|
241 | + $this->core_config = EE_Registry::instance()->CFG->core; |
|
242 | + |
|
243 | + EE_Registry::$i18n_js_strings['invalid_server_response'] = wp_strip_all_tags( |
|
244 | + esc_html__( |
|
245 | + 'An error occurred! Your request may have been processed, but a valid response from the server was not received. Please refresh the page and try again.', |
|
246 | + 'event_espresso' |
|
247 | + ) |
|
248 | + ); |
|
249 | + EE_Registry::$i18n_js_strings['error_occurred'] = wp_strip_all_tags( |
|
250 | + esc_html__( |
|
251 | + 'An error occurred! Please refresh the page and try again.', |
|
252 | + 'event_espresso' |
|
253 | + ) |
|
254 | + ); |
|
255 | + EE_Registry::$i18n_js_strings['confirm_delete_state'] = wp_strip_all_tags( |
|
256 | + esc_html__( |
|
257 | + 'Are you sure you want to delete this State / Province?', |
|
258 | + 'event_espresso' |
|
259 | + ) |
|
260 | + ); |
|
261 | + EE_Registry::$i18n_js_strings['ajax_url'] = admin_url( |
|
262 | + 'admin-ajax.php?page=espresso_general_settings', |
|
263 | + is_ssl() ? 'https://' : 'http://' |
|
264 | + ); |
|
265 | + } |
|
266 | + |
|
267 | + |
|
268 | + public function admin_notices() |
|
269 | + { |
|
270 | + } |
|
271 | + |
|
272 | + |
|
273 | + public function admin_footer_scripts() |
|
274 | + { |
|
275 | + } |
|
276 | + |
|
277 | + |
|
278 | + /** |
|
279 | + * Enqueue scripts and styles for the default route. |
|
280 | + */ |
|
281 | + public function load_scripts_styles_default() |
|
282 | + { |
|
283 | + // styles |
|
284 | + wp_enqueue_style('thickbox'); |
|
285 | + // scripts |
|
286 | + wp_enqueue_script('media-upload'); |
|
287 | + wp_enqueue_script('thickbox'); |
|
288 | + wp_register_script( |
|
289 | + 'organization_settings', |
|
290 | + GEN_SET_ASSETS_URL . 'your_organization_settings.js', |
|
291 | + ['jquery', 'media-upload', 'thickbox'], |
|
292 | + EVENT_ESPRESSO_VERSION, |
|
293 | + true |
|
294 | + ); |
|
295 | + wp_register_style('organization-css', GEN_SET_ASSETS_URL . 'organization.css', [], EVENT_ESPRESSO_VERSION); |
|
296 | + wp_enqueue_script('organization_settings'); |
|
297 | + wp_enqueue_style('organization-css'); |
|
298 | + $confirm_image_delete = [ |
|
299 | + 'text' => wp_strip_all_tags( |
|
300 | + esc_html__( |
|
301 | + 'Do you really want to delete this image? Please remember to save your settings to complete the removal.', |
|
302 | + 'event_espresso' |
|
303 | + ) |
|
304 | + ), |
|
305 | + ]; |
|
306 | + wp_localize_script('organization_settings', 'confirm_image_delete', $confirm_image_delete); |
|
307 | + } |
|
308 | + |
|
309 | + |
|
310 | + /** |
|
311 | + * Enqueue scripts and styles for the country settings route. |
|
312 | + */ |
|
313 | + public function load_scripts_styles_country_settings() |
|
314 | + { |
|
315 | + // scripts |
|
316 | + wp_register_script( |
|
317 | + 'gen_settings_countries', |
|
318 | + GEN_SET_ASSETS_URL . 'gen_settings_countries.js', |
|
319 | + ['ee_admin_js'], |
|
320 | + EVENT_ESPRESSO_VERSION, |
|
321 | + true |
|
322 | + ); |
|
323 | + wp_register_style('organization-css', GEN_SET_ASSETS_URL . 'organization.css', [], EVENT_ESPRESSO_VERSION); |
|
324 | + wp_enqueue_script('gen_settings_countries'); |
|
325 | + wp_enqueue_style('organization-css'); |
|
326 | + } |
|
327 | + |
|
328 | + |
|
329 | + /************* Espresso Pages *************/ |
|
330 | + /** |
|
331 | + * _espresso_page_settings |
|
332 | + * |
|
333 | + * @throws EE_Error |
|
334 | + * @throws DomainException |
|
335 | + * @throws DomainException |
|
336 | + * @throws InvalidDataTypeException |
|
337 | + * @throws InvalidArgumentException |
|
338 | + */ |
|
339 | + protected function _espresso_page_settings() |
|
340 | + { |
|
341 | + // Check to make sure all of the main pages are set up properly, |
|
342 | + // if not create the default pages and display an admin notice |
|
343 | + EEH_Activation::verify_default_pages_exist(); |
|
344 | + $this->_transient_garbage_collection(); |
|
345 | + |
|
346 | + $this->_template_args['values'] = $this->_yes_no_values; |
|
347 | + |
|
348 | + $this->_template_args['reg_page_id'] = $this->core_config->reg_page_id ?? null; |
|
349 | + $this->_template_args['reg_page_obj'] = isset($this->core_config->reg_page_id) |
|
350 | + ? get_post($this->core_config->reg_page_id) |
|
351 | + : false; |
|
352 | + |
|
353 | + $this->_template_args['txn_page_id'] = $this->core_config->txn_page_id ?? null; |
|
354 | + $this->_template_args['txn_page_obj'] = isset($this->core_config->txn_page_id) |
|
355 | + ? get_post($this->core_config->txn_page_id) |
|
356 | + : false; |
|
357 | + |
|
358 | + $this->_template_args['thank_you_page_id'] = $this->core_config->thank_you_page_id ?? null; |
|
359 | + $this->_template_args['thank_you_page_obj'] = isset($this->core_config->thank_you_page_id) |
|
360 | + ? get_post($this->core_config->thank_you_page_id) |
|
361 | + : false; |
|
362 | + |
|
363 | + $this->_template_args['cancel_page_id'] = $this->core_config->cancel_page_id ?? null; |
|
364 | + $this->_template_args['cancel_page_obj'] = isset($this->core_config->cancel_page_id) |
|
365 | + ? get_post($this->core_config->cancel_page_id) |
|
366 | + : false; |
|
367 | + |
|
368 | + $this->_set_add_edit_form_tags('update_espresso_page_settings'); |
|
369 | + $this->_set_publish_post_box_vars(null, false, false, null, false); |
|
370 | + $this->_template_args['admin_page_content'] = EEH_Template::display_template( |
|
371 | + GEN_SET_TEMPLATE_PATH . 'espresso_page_settings.template.php', |
|
372 | + $this->_template_args, |
|
373 | + true |
|
374 | + ); |
|
375 | + $this->display_admin_page_with_sidebar(); |
|
376 | + } |
|
377 | + |
|
378 | + |
|
379 | + /** |
|
380 | + * Handler for updating espresso page settings. |
|
381 | + * |
|
382 | + * @throws EE_Error |
|
383 | + */ |
|
384 | + protected function _update_espresso_page_settings() |
|
385 | + { |
|
386 | + // capture incoming request data && set page IDs |
|
387 | + $this->core_config->reg_page_id = $this->request->getRequestParam( |
|
388 | + 'reg_page_id', |
|
389 | + $this->core_config->reg_page_id, |
|
390 | + DataType::INT |
|
391 | + ); |
|
392 | + $this->core_config->txn_page_id = $this->request->getRequestParam( |
|
393 | + 'txn_page_id', |
|
394 | + $this->core_config->txn_page_id, |
|
395 | + DataType::INT |
|
396 | + ); |
|
397 | + $this->core_config->thank_you_page_id = $this->request->getRequestParam( |
|
398 | + 'thank_you_page_id', |
|
399 | + $this->core_config->thank_you_page_id, |
|
400 | + DataType::INT |
|
401 | + ); |
|
402 | + $this->core_config->cancel_page_id = $this->request->getRequestParam( |
|
403 | + 'cancel_page_id', |
|
404 | + $this->core_config->cancel_page_id, |
|
405 | + DataType::INT |
|
406 | + ); |
|
407 | + |
|
408 | + $this->core_config = apply_filters( |
|
409 | + 'FHEE__General_Settings_Admin_Page___update_espresso_page_settings__CFG_core', |
|
410 | + $this->core_config, |
|
411 | + $this->request->requestParams() |
|
412 | + ); |
|
413 | + |
|
414 | + $what = esc_html__('Critical Pages & Shortcodes', 'event_espresso'); |
|
415 | + $this->_redirect_after_action( |
|
416 | + $this->_update_espresso_configuration( |
|
417 | + $what, |
|
418 | + $this->core_config, |
|
419 | + __FILE__, |
|
420 | + __FUNCTION__, |
|
421 | + __LINE__ |
|
422 | + ), |
|
423 | + $what, |
|
424 | + '', |
|
425 | + [ |
|
426 | + 'action' => 'critical_pages', |
|
427 | + ], |
|
428 | + true |
|
429 | + ); |
|
430 | + } |
|
431 | + |
|
432 | + |
|
433 | + /************* Your Organization *************/ |
|
434 | + |
|
435 | + |
|
436 | + /** |
|
437 | + * @throws DomainException |
|
438 | + * @throws EE_Error |
|
439 | + * @throws InvalidArgumentException |
|
440 | + * @throws InvalidDataTypeException |
|
441 | + * @throws InvalidInterfaceException |
|
442 | + */ |
|
443 | + protected function _your_organization_settings() |
|
444 | + { |
|
445 | + $this->_template_args['admin_page_content'] = ''; |
|
446 | + try { |
|
447 | + /** @var OrganizationSettings $organization_settings_form */ |
|
448 | + $organization_settings_form = $this->loader->getShared(OrganizationSettings::class); |
|
449 | + |
|
450 | + $this->_template_args['admin_page_content'] = EEH_HTML::div( |
|
451 | + $organization_settings_form->display(), |
|
452 | + '', |
|
453 | + 'padding' |
|
454 | + ); |
|
455 | + } catch (Exception $e) { |
|
456 | + EE_Error::add_error($e->getMessage(), __FILE__, __FUNCTION__, __LINE__); |
|
457 | + } |
|
458 | + $this->_set_add_edit_form_tags('update_your_organization_settings'); |
|
459 | + $this->_set_publish_post_box_vars(null, false, false, null, false); |
|
460 | + $this->display_admin_page_with_sidebar(); |
|
461 | + } |
|
462 | + |
|
463 | + |
|
464 | + /** |
|
465 | + * Handler for updating organization settings. |
|
466 | + * |
|
467 | + * @throws EE_Error |
|
468 | + */ |
|
469 | + protected function _update_your_organization_settings() |
|
470 | + { |
|
471 | + try { |
|
472 | + /** @var OrganizationSettings $organization_settings_form */ |
|
473 | + $organization_settings_form = $this->loader->getShared(OrganizationSettings::class); |
|
474 | + |
|
475 | + $success = $organization_settings_form->process($this->request->requestParams()); |
|
476 | + |
|
477 | + EE_Registry::instance()->CFG = apply_filters( |
|
478 | + 'FHEE__General_Settings_Admin_Page___update_your_organization_settings__CFG', |
|
479 | + EE_Registry::instance()->CFG |
|
480 | + ); |
|
481 | + } catch (Exception $e) { |
|
482 | + EE_Error::add_error($e->getMessage(), __FILE__, __FUNCTION__, __LINE__); |
|
483 | + $success = false; |
|
484 | + } |
|
485 | + |
|
486 | + if ($success) { |
|
487 | + $success = $this->_update_espresso_configuration( |
|
488 | + esc_html__('Your Organization Settings', 'event_espresso'), |
|
489 | + EE_Registry::instance()->CFG, |
|
490 | + __FILE__, |
|
491 | + __FUNCTION__, |
|
492 | + __LINE__ |
|
493 | + ); |
|
494 | + } |
|
495 | + |
|
496 | + $this->_redirect_after_action($success, '', '', ['action' => 'default'], true); |
|
497 | + } |
|
498 | + |
|
499 | + |
|
500 | + |
|
501 | + /************* Admin Options *************/ |
|
502 | + |
|
503 | + |
|
504 | + /** |
|
505 | + * _admin_option_settings |
|
506 | + * |
|
507 | + * @throws EE_Error |
|
508 | + * @throws LogicException |
|
509 | + */ |
|
510 | + protected function _admin_option_settings() |
|
511 | + { |
|
512 | + $this->_template_args['admin_page_content'] = ''; |
|
513 | + try { |
|
514 | + $admin_options_settings_form = new AdminOptionsSettings(EE_Registry::instance()); |
|
515 | + // still need this for the old school form in Extend_General_Settings_Admin_Page |
|
516 | + $this->_template_args['values'] = $this->_yes_no_values; |
|
517 | + // also need to account for the do_action that was in the old template |
|
518 | + $admin_options_settings_form->setTemplateArgs($this->_template_args); |
|
519 | + $this->_template_args['admin_page_content'] = EEH_HTML::div( |
|
520 | + $admin_options_settings_form->display(), |
|
521 | + '', |
|
522 | + 'padding' |
|
523 | + ); |
|
524 | + } catch (Exception $e) { |
|
525 | + EE_Error::add_error($e->getMessage(), __FILE__, __FUNCTION__, __LINE__); |
|
526 | + } |
|
527 | + $this->_set_add_edit_form_tags('update_admin_option_settings'); |
|
528 | + $this->_set_publish_post_box_vars(null, false, false, null, false); |
|
529 | + $this->display_admin_page_with_sidebar(); |
|
530 | + } |
|
531 | + |
|
532 | + |
|
533 | + /** |
|
534 | + * _update_admin_option_settings |
|
535 | + * |
|
536 | + * @throws EE_Error |
|
537 | + * @throws InvalidDataTypeException |
|
538 | + * @throws InvalidFormSubmissionException |
|
539 | + * @throws InvalidArgumentException |
|
540 | + * @throws LogicException |
|
541 | + */ |
|
542 | + protected function _update_admin_option_settings() |
|
543 | + { |
|
544 | + try { |
|
545 | + $admin_options_settings_form = new AdminOptionsSettings(EE_Registry::instance()); |
|
546 | + $admin_options_settings_form->process( |
|
547 | + $this->request->getRequestParam( |
|
548 | + $admin_options_settings_form->slug(), |
|
549 | + [], |
|
550 | + DataType::STRING, |
|
551 | + true |
|
552 | + ) |
|
553 | + ); |
|
554 | + EE_Registry::instance()->CFG->admin = apply_filters( |
|
555 | + 'FHEE__General_Settings_Admin_Page___update_admin_option_settings__CFG_admin', |
|
556 | + EE_Registry::instance()->CFG->admin |
|
557 | + ); |
|
558 | + } catch (Exception $e) { |
|
559 | + EE_Error::add_error($e->getMessage(), __FILE__, __FUNCTION__, __LINE__); |
|
560 | + } |
|
561 | + $this->_redirect_after_action( |
|
562 | + apply_filters( |
|
563 | + 'FHEE__General_Settings_Admin_Page___update_admin_option_settings__success', |
|
564 | + $this->_update_espresso_configuration( |
|
565 | + esc_html__('Admin Options', 'event_espresso'), |
|
566 | + EE_Registry::instance()->CFG->admin, |
|
567 | + __FILE__, |
|
568 | + __FUNCTION__, |
|
569 | + __LINE__ |
|
570 | + ) |
|
571 | + ), |
|
572 | + esc_html__('Admin Options', 'event_espresso'), |
|
573 | + 'updated', |
|
574 | + ['action' => 'admin_option_settings'] |
|
575 | + ); |
|
576 | + } |
|
577 | + |
|
578 | + |
|
579 | + /************* Countries *************/ |
|
580 | + |
|
581 | + |
|
582 | + /** |
|
583 | + * @param string|null $default |
|
584 | + * @return string |
|
585 | + */ |
|
586 | + protected function getCountryISO(?string $default = null): string |
|
587 | + { |
|
588 | + $default = $default ?? $this->getCountryIsoForSite(); |
|
589 | + $CNT_ISO = $this->request->getRequestParam('country', $default); |
|
590 | + return strtoupper($CNT_ISO); |
|
591 | + } |
|
592 | + |
|
593 | + |
|
594 | + /** |
|
595 | + * @return string |
|
596 | + */ |
|
597 | + protected function getCountryIsoForSite(): string |
|
598 | + { |
|
599 | + return ! empty(EE_Registry::instance()->CFG->organization->CNT_ISO) |
|
600 | + ? EE_Registry::instance()->CFG->organization->CNT_ISO |
|
601 | + : 'US'; |
|
602 | + } |
|
603 | + |
|
604 | + |
|
605 | + /** |
|
606 | + * @param string $CNT_ISO |
|
607 | + * @param EE_Country|null $country |
|
608 | + * @return EE_Base_Class|EE_Country |
|
609 | + * @throws EE_Error |
|
610 | + * @throws InvalidArgumentException |
|
611 | + * @throws InvalidDataTypeException |
|
612 | + * @throws InvalidInterfaceException |
|
613 | + * @throws ReflectionException |
|
614 | + */ |
|
615 | + protected function verifyOrGetCountryFromIso(string $CNT_ISO, ?EE_Country $country = null) |
|
616 | + { |
|
617 | + /** @var EE_Country $country */ |
|
618 | + return $country instanceof EE_Country && $country->ID() === $CNT_ISO |
|
619 | + ? $country |
|
620 | + : EEM_Country::instance()->get_one_by_ID($CNT_ISO); |
|
621 | + } |
|
622 | + |
|
623 | + |
|
624 | + /** |
|
625 | + * Output Country Settings view. |
|
626 | + * |
|
627 | + * @throws DomainException |
|
628 | + * @throws EE_Error |
|
629 | + * @throws InvalidArgumentException |
|
630 | + * @throws InvalidDataTypeException |
|
631 | + * @throws InvalidInterfaceException |
|
632 | + * @throws ReflectionException |
|
633 | + */ |
|
634 | + protected function _country_settings() |
|
635 | + { |
|
636 | + $CNT_ISO = $this->getCountryISO(); |
|
637 | + |
|
638 | + $this->_template_args['values'] = $this->_yes_no_values; |
|
639 | + $this->_template_args['countries'] = new EE_Question_Form_Input( |
|
640 | + EE_Question::new_instance( |
|
641 | + [ |
|
642 | + 'QST_ID' => 0, |
|
643 | + 'QST_display_text' => esc_html__('Select Country', 'event_espresso'), |
|
644 | + 'QST_system' => 'admin-country', |
|
645 | + ] |
|
646 | + ), |
|
647 | + EE_Answer::new_instance( |
|
648 | + [ |
|
649 | + 'ANS_ID' => 0, |
|
650 | + 'ANS_value' => $CNT_ISO, |
|
651 | + ] |
|
652 | + ), |
|
653 | + [ |
|
654 | + 'input_id' => 'country', |
|
655 | + 'input_name' => 'country', |
|
656 | + 'input_prefix' => '', |
|
657 | + 'append_qstn_id' => false, |
|
658 | + ] |
|
659 | + ); |
|
660 | + |
|
661 | + $country = $this->verifyOrGetCountryFromIso($CNT_ISO); |
|
662 | + add_filter('FHEE__EEH_Form_Fields__label_html', [$this, 'country_form_field_label_wrap'], 10); |
|
663 | + add_filter('FHEE__EEH_Form_Fields__input_html', [$this, 'country_form_field_input__wrap'], 10); |
|
664 | + $this->_template_args['country_details_settings'] = $this->display_country_settings( |
|
665 | + $country->ID(), |
|
666 | + $country |
|
667 | + ); |
|
668 | + $this->_template_args['country_states_settings'] = $this->display_country_states( |
|
669 | + $country->ID(), |
|
670 | + $country |
|
671 | + ); |
|
672 | + $this->_template_args['CNT_name_for_site'] = $country->name(); |
|
673 | + |
|
674 | + $this->_set_add_edit_form_tags('update_country_settings'); |
|
675 | + $this->_set_publish_post_box_vars(null, false, false, null, false); |
|
676 | + $this->_template_args['admin_page_content'] = EEH_Template::display_template( |
|
677 | + GEN_SET_TEMPLATE_PATH . 'countries_settings.template.php', |
|
678 | + $this->_template_args, |
|
679 | + true |
|
680 | + ); |
|
681 | + $this->display_admin_page_with_no_sidebar(); |
|
682 | + } |
|
683 | + |
|
684 | + |
|
685 | + /** |
|
686 | + * @param string $CNT_ISO |
|
687 | + * @param EE_Country|null $country |
|
688 | + * @return string |
|
689 | + * @throws DomainException |
|
690 | + * @throws EE_Error |
|
691 | + * @throws InvalidArgumentException |
|
692 | + * @throws InvalidDataTypeException |
|
693 | + * @throws InvalidInterfaceException |
|
694 | + * @throws ReflectionException |
|
695 | + */ |
|
696 | + public function display_country_settings(string $CNT_ISO = '', ?EE_Country $country = null): string |
|
697 | + { |
|
698 | + $CNT_ISO = $this->getCountryISO($CNT_ISO); |
|
699 | + $CNT_ISO_for_site = $this->getCountryIsoForSite(); |
|
700 | + |
|
701 | + if (! $CNT_ISO) { |
|
702 | + return ''; |
|
703 | + } |
|
704 | + |
|
705 | + // for ajax |
|
706 | + remove_all_filters('FHEE__EEH_Form_Fields__label_html'); |
|
707 | + remove_all_filters('FHEE__EEH_Form_Fields__input_html'); |
|
708 | + add_filter('FHEE__EEH_Form_Fields__label_html', [$this, 'country_form_field_label_wrap'], 10, 2); |
|
709 | + add_filter('FHEE__EEH_Form_Fields__input_html', [$this, 'country_form_field_input__wrap'], 10, 2); |
|
710 | + $country = $this->verifyOrGetCountryFromIso($CNT_ISO, $country); |
|
711 | + $CNT_cur_disabled = $CNT_ISO !== $CNT_ISO_for_site; |
|
712 | + $this->_template_args['CNT_cur_disabled'] = $CNT_cur_disabled; |
|
713 | + |
|
714 | + $country_input_types = [ |
|
715 | + 'CNT_active' => [ |
|
716 | + 'type' => 'RADIO_BTN', |
|
717 | + 'input_name' => "cntry[$CNT_ISO]", |
|
718 | + 'class' => '', |
|
719 | + 'options' => $this->_yes_no_values, |
|
720 | + 'use_desc_4_label' => true, |
|
721 | + ], |
|
722 | + 'CNT_ISO' => [ |
|
723 | + 'type' => 'TEXT', |
|
724 | + 'input_name' => "cntry[$CNT_ISO]", |
|
725 | + 'class' => 'ee-input-size--small', |
|
726 | + ], |
|
727 | + 'CNT_ISO3' => [ |
|
728 | + 'type' => 'TEXT', |
|
729 | + 'input_name' => "cntry[$CNT_ISO]", |
|
730 | + 'class' => 'ee-input-size--small', |
|
731 | + ], |
|
732 | + // 'RGN_ID' => [ |
|
733 | + // 'type' => 'TEXT', |
|
734 | + // 'input_name' => "cntry[$CNT_ISO]", |
|
735 | + // 'class' => 'ee-input-size--small', |
|
736 | + // ], |
|
737 | + 'CNT_name' => [ |
|
738 | + 'type' => 'TEXT', |
|
739 | + 'input_name' => "cntry[$CNT_ISO]", |
|
740 | + 'class' => 'ee-input-size--big', |
|
741 | + ], |
|
742 | + 'CNT_cur_code' => [ |
|
743 | + 'type' => 'TEXT', |
|
744 | + 'input_name' => "cntry[$CNT_ISO]", |
|
745 | + 'class' => 'ee-input-size--small', |
|
746 | + 'disabled' => $CNT_cur_disabled, |
|
747 | + ], |
|
748 | + 'CNT_cur_single' => [ |
|
749 | + 'type' => 'TEXT', |
|
750 | + 'input_name' => "cntry[$CNT_ISO]", |
|
751 | + 'class' => 'ee-input-size--reg', |
|
752 | + 'disabled' => $CNT_cur_disabled, |
|
753 | + ], |
|
754 | + 'CNT_cur_plural' => [ |
|
755 | + 'type' => 'TEXT', |
|
756 | + 'input_name' => "cntry[$CNT_ISO]", |
|
757 | + 'class' => 'ee-input-size--reg', |
|
758 | + 'disabled' => $CNT_cur_disabled, |
|
759 | + ], |
|
760 | + 'CNT_cur_sign' => [ |
|
761 | + 'type' => 'TEXT', |
|
762 | + 'input_name' => "cntry[$CNT_ISO]", |
|
763 | + 'class' => 'ee-input-size--small', |
|
764 | + 'htmlentities' => false, |
|
765 | + 'disabled' => $CNT_cur_disabled, |
|
766 | + ], |
|
767 | + 'CNT_cur_sign_b4' => [ |
|
768 | + 'type' => 'RADIO_BTN', |
|
769 | + 'input_name' => "cntry[$CNT_ISO]", |
|
770 | + 'class' => '', |
|
771 | + 'options' => $this->_yes_no_values, |
|
772 | + 'use_desc_4_label' => true, |
|
773 | + 'disabled' => $CNT_cur_disabled, |
|
774 | + ], |
|
775 | + 'CNT_cur_dec_plc' => [ |
|
776 | + 'type' => 'RADIO_BTN', |
|
777 | + 'input_name' => "cntry[$CNT_ISO]", |
|
778 | + 'class' => '', |
|
779 | + 'options' => [ |
|
780 | + ['id' => 0, 'text' => ''], |
|
781 | + ['id' => 1, 'text' => ''], |
|
782 | + ['id' => 2, 'text' => ''], |
|
783 | + ['id' => 3, 'text' => ''], |
|
784 | + ], |
|
785 | + 'disabled' => $CNT_cur_disabled, |
|
786 | + ], |
|
787 | + 'CNT_cur_dec_mrk' => [ |
|
788 | + 'type' => 'RADIO_BTN', |
|
789 | + 'input_name' => "cntry[$CNT_ISO]", |
|
790 | + 'class' => '', |
|
791 | + 'options' => [ |
|
792 | + [ |
|
793 | + 'id' => ',', |
|
794 | + 'text' => esc_html__(', (comma)', 'event_espresso'), |
|
795 | + ], |
|
796 | + ['id' => '.', 'text' => esc_html__('. (decimal)', 'event_espresso')], |
|
797 | + ], |
|
798 | + 'use_desc_4_label' => true, |
|
799 | + 'disabled' => $CNT_cur_disabled, |
|
800 | + ], |
|
801 | + 'CNT_cur_thsnds' => [ |
|
802 | + 'type' => 'RADIO_BTN', |
|
803 | + 'input_name' => "cntry[$CNT_ISO]", |
|
804 | + 'class' => '', |
|
805 | + 'options' => [ |
|
806 | + [ |
|
807 | + 'id' => ',', |
|
808 | + 'text' => esc_html__(', (comma)', 'event_espresso'), |
|
809 | + ], |
|
810 | + [ |
|
811 | + 'id' => '.', |
|
812 | + 'text' => esc_html__('. (decimal)', 'event_espresso'), |
|
813 | + ], |
|
814 | + [ |
|
815 | + 'id' => ' ', |
|
816 | + 'text' => esc_html__('(space)', 'event_espresso'), |
|
817 | + ], |
|
818 | + ], |
|
819 | + 'use_desc_4_label' => true, |
|
820 | + 'disabled' => $CNT_cur_disabled, |
|
821 | + ], |
|
822 | + 'CNT_tel_code' => [ |
|
823 | + 'type' => 'TEXT', |
|
824 | + 'input_name' => "cntry[$CNT_ISO]", |
|
825 | + 'class' => 'ee-input-size--small', |
|
826 | + ], |
|
827 | + 'CNT_is_EU' => [ |
|
828 | + 'type' => 'RADIO_BTN', |
|
829 | + 'input_name' => "cntry[$CNT_ISO]", |
|
830 | + 'class' => '', |
|
831 | + 'options' => $this->_yes_no_values, |
|
832 | + 'use_desc_4_label' => true, |
|
833 | + ], |
|
834 | + ]; |
|
835 | + $this->_template_args['inputs'] = EE_Question_Form_Input::generate_question_form_inputs_for_object( |
|
836 | + $country, |
|
837 | + $country_input_types |
|
838 | + ); |
|
839 | + $country_details_settings = EEH_Template::display_template( |
|
840 | + GEN_SET_TEMPLATE_PATH . 'country_details_settings.template.php', |
|
841 | + $this->_template_args, |
|
842 | + true |
|
843 | + ); |
|
844 | + |
|
845 | + if (defined('DOING_AJAX')) { |
|
846 | + $notices = EE_Error::get_notices(false, false, false); |
|
847 | + echo wp_json_encode( |
|
848 | + [ |
|
849 | + 'return_data' => $country_details_settings, |
|
850 | + 'success' => $notices['success'], |
|
851 | + 'errors' => $notices['errors'], |
|
852 | + ] |
|
853 | + ); |
|
854 | + die(); |
|
855 | + } |
|
856 | + return $country_details_settings; |
|
857 | + } |
|
858 | + |
|
859 | + |
|
860 | + /** |
|
861 | + * @param string $CNT_ISO |
|
862 | + * @param EE_Country|null $country |
|
863 | + * @return string |
|
864 | + * @throws DomainException |
|
865 | + * @throws EE_Error |
|
866 | + * @throws InvalidArgumentException |
|
867 | + * @throws InvalidDataTypeException |
|
868 | + * @throws InvalidInterfaceException |
|
869 | + * @throws ReflectionException |
|
870 | + */ |
|
871 | + public function display_country_states(string $CNT_ISO = '', ?EE_Country $country = null): string |
|
872 | + { |
|
873 | + $CNT_ISO = $this->getCountryISO($CNT_ISO); |
|
874 | + if (! $CNT_ISO) { |
|
875 | + return ''; |
|
876 | + } |
|
877 | + // for ajax |
|
878 | + remove_all_filters('FHEE__EEH_Form_Fields__label_html'); |
|
879 | + remove_all_filters('FHEE__EEH_Form_Fields__input_html'); |
|
880 | + add_filter('FHEE__EEH_Form_Fields__label_html', [$this, 'state_form_field_label_wrap'], 10, 2); |
|
881 | + add_filter('FHEE__EEH_Form_Fields__input_html', [$this, 'state_form_field_input__wrap'], 10); |
|
882 | + $states = EEM_State::instance()->get_all_states_for_these_countries([$CNT_ISO => $CNT_ISO]); |
|
883 | + if (empty($states)) { |
|
884 | + /** @var EventEspresso\core\services\address\CountrySubRegionDao $countrySubRegionDao */ |
|
885 | + $countrySubRegionDao = $this->loader->getShared( |
|
886 | + 'EventEspresso\core\services\address\CountrySubRegionDao' |
|
887 | + ); |
|
888 | + if ($countrySubRegionDao instanceof EventEspresso\core\services\address\CountrySubRegionDao) { |
|
889 | + $country = $this->verifyOrGetCountryFromIso($CNT_ISO, $country); |
|
890 | + if ($countrySubRegionDao->saveCountrySubRegions($country)) { |
|
891 | + $states = EEM_State::instance()->get_all_states_for_these_countries([$CNT_ISO => $CNT_ISO]); |
|
892 | + } |
|
893 | + } |
|
894 | + } |
|
895 | + if (is_array($states)) { |
|
896 | + foreach ($states as $STA_ID => $state) { |
|
897 | + if ($state instanceof EE_State) { |
|
898 | + $inputs = EE_Question_Form_Input::generate_question_form_inputs_for_object( |
|
899 | + $state, |
|
900 | + [ |
|
901 | + 'STA_abbrev' => [ |
|
902 | + 'type' => 'TEXT', |
|
903 | + 'label' => esc_html__('Code', 'event_espresso'), |
|
904 | + 'input_name' => "states[$STA_ID]", |
|
905 | + 'class' => 'ee-input-size--tiny', |
|
906 | + 'add_mobile_label' => true, |
|
907 | + ], |
|
908 | + 'STA_name' => [ |
|
909 | + 'type' => 'TEXT', |
|
910 | + 'label' => esc_html__('Name', 'event_espresso'), |
|
911 | + 'input_name' => "states[$STA_ID]", |
|
912 | + 'class' => 'ee-input-size--big', |
|
913 | + 'add_mobile_label' => true, |
|
914 | + ], |
|
915 | + 'STA_active' => [ |
|
916 | + 'type' => 'RADIO_BTN', |
|
917 | + 'label' => esc_html__('State Appears in Dropdown Select Lists', 'event_espresso'), |
|
918 | + 'input_name' => "states[$STA_ID]", |
|
919 | + 'options' => $this->_yes_no_values, |
|
920 | + 'use_desc_4_label' => true, |
|
921 | + 'add_mobile_label' => true, |
|
922 | + ], |
|
923 | + ] |
|
924 | + ); |
|
925 | + |
|
926 | + $delete_state_url = EE_Admin_Page::add_query_args_and_nonce( |
|
927 | + [ |
|
928 | + 'action' => 'delete_state', |
|
929 | + 'STA_ID' => $STA_ID, |
|
930 | + 'CNT_ISO' => $CNT_ISO, |
|
931 | + 'STA_abbrev' => $state->abbrev(), |
|
932 | + ], |
|
933 | + GEN_SET_ADMIN_URL |
|
934 | + ); |
|
935 | + |
|
936 | + $this->_template_args['states'][$STA_ID]['inputs'] = $inputs; |
|
937 | + $this->_template_args['states'][$STA_ID]['delete_state_url'] = $delete_state_url; |
|
938 | + } |
|
939 | + } |
|
940 | + } else { |
|
941 | + $this->_template_args['states'] = false; |
|
942 | + } |
|
943 | + |
|
944 | + $this->_template_args['add_new_state_url'] = EE_Admin_Page::add_query_args_and_nonce( |
|
945 | + ['action' => 'add_new_state'], |
|
946 | + GEN_SET_ADMIN_URL |
|
947 | + ); |
|
948 | + |
|
949 | + $state_details_settings = EEH_Template::display_template( |
|
950 | + GEN_SET_TEMPLATE_PATH . 'state_details_settings.template.php', |
|
951 | + $this->_template_args, |
|
952 | + true |
|
953 | + ); |
|
954 | + |
|
955 | + if (defined('DOING_AJAX')) { |
|
956 | + $notices = EE_Error::get_notices(false, false, false); |
|
957 | + echo wp_json_encode( |
|
958 | + [ |
|
959 | + 'return_data' => $state_details_settings, |
|
960 | + 'success' => $notices['success'], |
|
961 | + 'errors' => $notices['errors'], |
|
962 | + ] |
|
963 | + ); |
|
964 | + die(); |
|
965 | + } |
|
966 | + return $state_details_settings; |
|
967 | + } |
|
968 | + |
|
969 | + |
|
970 | + /** |
|
971 | + * @return void |
|
972 | + * @throws EE_Error |
|
973 | + * @throws InvalidArgumentException |
|
974 | + * @throws InvalidDataTypeException |
|
975 | + * @throws InvalidInterfaceException |
|
976 | + * @throws ReflectionException |
|
977 | + */ |
|
978 | + public function add_new_state() |
|
979 | + { |
|
980 | + $success = true; |
|
981 | + $CNT_ISO = $this->getCountryISO(''); |
|
982 | + if (! $CNT_ISO) { |
|
983 | + EE_Error::add_error( |
|
984 | + esc_html__('No Country ISO code or an invalid Country ISO code was received.', 'event_espresso'), |
|
985 | + __FILE__, |
|
986 | + __FUNCTION__, |
|
987 | + __LINE__ |
|
988 | + ); |
|
989 | + $success = false; |
|
990 | + } |
|
991 | + $STA_abbrev = $this->request->getRequestParam('STA_abbrev'); |
|
992 | + if (! $STA_abbrev) { |
|
993 | + EE_Error::add_error( |
|
994 | + esc_html__('No State ISO code or an invalid State ISO code was received.', 'event_espresso'), |
|
995 | + __FILE__, |
|
996 | + __FUNCTION__, |
|
997 | + __LINE__ |
|
998 | + ); |
|
999 | + $success = false; |
|
1000 | + } |
|
1001 | + $STA_name = $this->request->getRequestParam('STA_name'); |
|
1002 | + if (! $STA_name) { |
|
1003 | + EE_Error::add_error( |
|
1004 | + esc_html__('No State name or an invalid State name was received.', 'event_espresso'), |
|
1005 | + __FILE__, |
|
1006 | + __FUNCTION__, |
|
1007 | + __LINE__ |
|
1008 | + ); |
|
1009 | + $success = false; |
|
1010 | + } |
|
1011 | + |
|
1012 | + if ($success) { |
|
1013 | + $cols_n_values = [ |
|
1014 | + 'CNT_ISO' => $CNT_ISO, |
|
1015 | + 'STA_abbrev' => $STA_abbrev, |
|
1016 | + 'STA_name' => $STA_name, |
|
1017 | + 'STA_active' => true, |
|
1018 | + ]; |
|
1019 | + $success = EEM_State::instance()->insert($cols_n_values); |
|
1020 | + EE_Error::add_success(esc_html__('The State was added successfully.', 'event_espresso')); |
|
1021 | + } |
|
1022 | + |
|
1023 | + if (defined('DOING_AJAX')) { |
|
1024 | + $notices = EE_Error::get_notices(false, false, false); |
|
1025 | + echo wp_json_encode(array_merge($notices, ['return_data' => $CNT_ISO])); |
|
1026 | + die(); |
|
1027 | + } |
|
1028 | + $this->_redirect_after_action( |
|
1029 | + $success, |
|
1030 | + esc_html__('State', 'event_espresso'), |
|
1031 | + 'added', |
|
1032 | + ['action' => 'country_settings'] |
|
1033 | + ); |
|
1034 | + } |
|
1035 | + |
|
1036 | + |
|
1037 | + /** |
|
1038 | + * @return void |
|
1039 | + * @throws EE_Error |
|
1040 | + * @throws InvalidArgumentException |
|
1041 | + * @throws InvalidDataTypeException |
|
1042 | + * @throws InvalidInterfaceException |
|
1043 | + * @throws ReflectionException |
|
1044 | + */ |
|
1045 | + public function delete_state() |
|
1046 | + { |
|
1047 | + $CNT_ISO = $this->getCountryISO(); |
|
1048 | + $STA_ID = $this->request->getRequestParam('STA_ID'); |
|
1049 | + $STA_abbrev = $this->request->getRequestParam('STA_abbrev'); |
|
1050 | + |
|
1051 | + if (! $STA_ID) { |
|
1052 | + EE_Error::add_error( |
|
1053 | + esc_html__('No State ID or an invalid State ID was received.', 'event_espresso'), |
|
1054 | + __FILE__, |
|
1055 | + __FUNCTION__, |
|
1056 | + __LINE__ |
|
1057 | + ); |
|
1058 | + return; |
|
1059 | + } |
|
1060 | + |
|
1061 | + $success = EEM_State::instance()->delete_by_ID($STA_ID); |
|
1062 | + if ($success !== false) { |
|
1063 | + do_action('AHEE__General_Settings_Admin_Page__delete_state__state_deleted', |
|
1064 | + $CNT_ISO, |
|
1065 | + $STA_ID, |
|
1066 | + ['STA_abbrev' => $STA_abbrev]); |
|
1067 | + EE_Error::add_success(esc_html__('The State was deleted successfully.', 'event_espresso')); |
|
1068 | + } |
|
1069 | + if (defined('DOING_AJAX')) { |
|
1070 | + $notices = EE_Error::get_notices(false); |
|
1071 | + $notices['return_data'] = true; |
|
1072 | + echo wp_json_encode($notices); |
|
1073 | + die(); |
|
1074 | + } |
|
1075 | + $this->_redirect_after_action( |
|
1076 | + $success, |
|
1077 | + esc_html__('State', 'event_espresso'), |
|
1078 | + 'deleted', |
|
1079 | + ['action' => 'country_settings'] |
|
1080 | + ); |
|
1081 | + } |
|
1082 | + |
|
1083 | + |
|
1084 | + /** |
|
1085 | + * @return void |
|
1086 | + * @throws EE_Error |
|
1087 | + * @throws InvalidArgumentException |
|
1088 | + * @throws InvalidDataTypeException |
|
1089 | + * @throws InvalidInterfaceException |
|
1090 | + * @throws ReflectionException |
|
1091 | + */ |
|
1092 | + protected function _update_country_settings() |
|
1093 | + { |
|
1094 | + $CNT_ISO = $this->getCountryISO(); |
|
1095 | + if (! $CNT_ISO) { |
|
1096 | + EE_Error::add_error( |
|
1097 | + esc_html__('No Country ISO code or an invalid Country ISO code was received.', 'event_espresso'), |
|
1098 | + __FILE__, |
|
1099 | + __FUNCTION__, |
|
1100 | + __LINE__ |
|
1101 | + ); |
|
1102 | + return; |
|
1103 | + } |
|
1104 | + |
|
1105 | + $country = $this->verifyOrGetCountryFromIso($CNT_ISO); |
|
1106 | + |
|
1107 | + $cols_n_values = []; |
|
1108 | + $cols_n_values['CNT_ISO3'] = strtoupper( |
|
1109 | + $this->request->getRequestParam('cntry', '', $country->ISO3()) |
|
1110 | + ); |
|
1111 | + $cols_n_values['CNT_name'] = |
|
1112 | + $this->request->getRequestParam("cntry[$CNT_ISO][CNT_name]", $country->name()); |
|
1113 | + $cols_n_values['CNT_cur_code'] = strtoupper( |
|
1114 | + $this->request->getRequestParam( |
|
1115 | + "cntry[$CNT_ISO][CNT_cur_code]", |
|
1116 | + $country->currency_code() |
|
1117 | + ) |
|
1118 | + ); |
|
1119 | + $cols_n_values['CNT_cur_single'] = $this->request->getRequestParam( |
|
1120 | + "cntry[$CNT_ISO][CNT_cur_single]", |
|
1121 | + $country->currency_name_single() |
|
1122 | + ); |
|
1123 | + $cols_n_values['CNT_cur_plural'] = $this->request->getRequestParam( |
|
1124 | + "cntry[$CNT_ISO][CNT_cur_plural]", |
|
1125 | + $country->currency_name_plural() |
|
1126 | + ); |
|
1127 | + $cols_n_values['CNT_cur_sign'] = $this->request->getRequestParam( |
|
1128 | + "cntry[$CNT_ISO][CNT_cur_sign]", |
|
1129 | + $country->currency_sign() |
|
1130 | + ); |
|
1131 | + $cols_n_values['CNT_cur_sign_b4'] = $this->request->getRequestParam( |
|
1132 | + "cntry[$CNT_ISO][CNT_cur_sign_b4]", |
|
1133 | + $country->currency_sign_before(), |
|
1134 | + DataType::BOOL |
|
1135 | + ); |
|
1136 | + $cols_n_values['CNT_cur_dec_plc'] = $this->request->getRequestParam( |
|
1137 | + "cntry[$CNT_ISO][CNT_cur_dec_plc]", |
|
1138 | + $country->currency_decimal_places() |
|
1139 | + ); |
|
1140 | + $cols_n_values['CNT_cur_dec_mrk'] = $this->request->getRequestParam( |
|
1141 | + "cntry[$CNT_ISO][CNT_cur_dec_mrk]", |
|
1142 | + $country->currency_decimal_mark() |
|
1143 | + ); |
|
1144 | + $cols_n_values['CNT_cur_thsnds'] = $this->request->getRequestParam( |
|
1145 | + "cntry[$CNT_ISO][CNT_cur_thsnds]", |
|
1146 | + $country->currency_thousands_separator() |
|
1147 | + ); |
|
1148 | + $cols_n_values['CNT_tel_code'] = $this->request->getRequestParam( |
|
1149 | + "cntry[$CNT_ISO][CNT_tel_code]", |
|
1150 | + $country->telephoneCode() |
|
1151 | + ); |
|
1152 | + $cols_n_values['CNT_active'] = $this->request->getRequestParam( |
|
1153 | + "cntry[$CNT_ISO][CNT_active]", |
|
1154 | + $country->isActive(), |
|
1155 | + DataType::BOOL |
|
1156 | + ); |
|
1157 | + |
|
1158 | + // allow filtering of country data |
|
1159 | + $cols_n_values = apply_filters( |
|
1160 | + 'FHEE__General_Settings_Admin_Page___update_country_settings__cols_n_values', |
|
1161 | + $cols_n_values |
|
1162 | + ); |
|
1163 | + |
|
1164 | + // where values |
|
1165 | + $where_cols_n_values = [['CNT_ISO' => $CNT_ISO]]; |
|
1166 | + // run the update |
|
1167 | + $success = EEM_Country::instance()->update($cols_n_values, $where_cols_n_values); |
|
1168 | + |
|
1169 | + // allow filtering of states data |
|
1170 | + $states = apply_filters( |
|
1171 | + 'FHEE__General_Settings_Admin_Page___update_country_settings__states', |
|
1172 | + $this->request->getRequestParam('states', [], DataType::STRING, true) |
|
1173 | + ); |
|
1174 | + |
|
1175 | + if (! empty($states) && $success !== false) { |
|
1176 | + // loop thru state data ( looks like : states[75][STA_name] ) |
|
1177 | + foreach ($states as $STA_ID => $state) { |
|
1178 | + $cols_n_values = [ |
|
1179 | + 'CNT_ISO' => $CNT_ISO, |
|
1180 | + 'STA_abbrev' => sanitize_text_field($state['STA_abbrev']), |
|
1181 | + 'STA_name' => sanitize_text_field($state['STA_name']), |
|
1182 | + 'STA_active' => filter_var($state['STA_active'], FILTER_VALIDATE_BOOLEAN), |
|
1183 | + ]; |
|
1184 | + // where values |
|
1185 | + $where_cols_n_values = [['STA_ID' => $STA_ID]]; |
|
1186 | + // run the update |
|
1187 | + $success = EEM_State::instance()->update($cols_n_values, $where_cols_n_values); |
|
1188 | + if ($success !== false) { |
|
1189 | + do_action( |
|
1190 | + 'AHEE__General_Settings_Admin_Page__update_country_settings__state_saved', |
|
1191 | + $CNT_ISO, |
|
1192 | + $STA_ID, |
|
1193 | + $cols_n_values |
|
1194 | + ); |
|
1195 | + } |
|
1196 | + } |
|
1197 | + } |
|
1198 | + // check if country being edited matches org option country, and if so, then update EE_Config with new settings |
|
1199 | + if ( |
|
1200 | + isset(EE_Registry::instance()->CFG->organization->CNT_ISO) |
|
1201 | + && $CNT_ISO == EE_Registry::instance()->CFG->organization->CNT_ISO |
|
1202 | + ) { |
|
1203 | + EE_Registry::instance()->CFG->currency = new EE_Currency_Config($CNT_ISO); |
|
1204 | + EE_Registry::instance()->CFG->update_espresso_config(); |
|
1205 | + } |
|
1206 | + |
|
1207 | + if ($success !== false) { |
|
1208 | + EE_Error::add_success( |
|
1209 | + esc_html__('Country Settings updated successfully.', 'event_espresso') |
|
1210 | + ); |
|
1211 | + } |
|
1212 | + $this->_redirect_after_action( |
|
1213 | + $success, |
|
1214 | + '', |
|
1215 | + '', |
|
1216 | + ['action' => 'country_settings', 'country' => $CNT_ISO], |
|
1217 | + true |
|
1218 | + ); |
|
1219 | + } |
|
1220 | + |
|
1221 | + |
|
1222 | + /** |
|
1223 | + * form_form_field_label_wrap |
|
1224 | + * |
|
1225 | + * @param string $label |
|
1226 | + * @return string |
|
1227 | + */ |
|
1228 | + public function country_form_field_label_wrap(string $label): string |
|
1229 | + { |
|
1230 | + return ' |
|
1231 | 1231 | <tr> |
1232 | 1232 | <th> |
1233 | 1233 | ' . $label . ' |
1234 | 1234 | </th>'; |
1235 | - } |
|
1236 | - |
|
1237 | - |
|
1238 | - /** |
|
1239 | - * form_form_field_input__wrap |
|
1240 | - * |
|
1241 | - * @param string $input |
|
1242 | - * @return string |
|
1243 | - */ |
|
1244 | - public function country_form_field_input__wrap(string $input): string |
|
1245 | - { |
|
1246 | - return ' |
|
1235 | + } |
|
1236 | + |
|
1237 | + |
|
1238 | + /** |
|
1239 | + * form_form_field_input__wrap |
|
1240 | + * |
|
1241 | + * @param string $input |
|
1242 | + * @return string |
|
1243 | + */ |
|
1244 | + public function country_form_field_input__wrap(string $input): string |
|
1245 | + { |
|
1246 | + return ' |
|
1247 | 1247 | <td class="general-settings-country-input-td"> |
1248 | 1248 | ' . $input . ' |
1249 | 1249 | </td> |
1250 | 1250 | </tr>'; |
1251 | - } |
|
1252 | - |
|
1253 | - |
|
1254 | - /** |
|
1255 | - * form_form_field_label_wrap |
|
1256 | - * |
|
1257 | - * @param string $label |
|
1258 | - * @param string $required_text |
|
1259 | - * @return string |
|
1260 | - */ |
|
1261 | - public function state_form_field_label_wrap(string $label, string $required_text): string |
|
1262 | - { |
|
1263 | - return $required_text; |
|
1264 | - } |
|
1265 | - |
|
1266 | - |
|
1267 | - /** |
|
1268 | - * form_form_field_input__wrap |
|
1269 | - * |
|
1270 | - * @param string $input |
|
1271 | - * @return string |
|
1272 | - */ |
|
1273 | - public function state_form_field_input__wrap(string $input): string |
|
1274 | - { |
|
1275 | - return ' |
|
1251 | + } |
|
1252 | + |
|
1253 | + |
|
1254 | + /** |
|
1255 | + * form_form_field_label_wrap |
|
1256 | + * |
|
1257 | + * @param string $label |
|
1258 | + * @param string $required_text |
|
1259 | + * @return string |
|
1260 | + */ |
|
1261 | + public function state_form_field_label_wrap(string $label, string $required_text): string |
|
1262 | + { |
|
1263 | + return $required_text; |
|
1264 | + } |
|
1265 | + |
|
1266 | + |
|
1267 | + /** |
|
1268 | + * form_form_field_input__wrap |
|
1269 | + * |
|
1270 | + * @param string $input |
|
1271 | + * @return string |
|
1272 | + */ |
|
1273 | + public function state_form_field_input__wrap(string $input): string |
|
1274 | + { |
|
1275 | + return ' |
|
1276 | 1276 | <td class="general-settings-country-state-input-td"> |
1277 | 1277 | ' . $input . ' |
1278 | 1278 | </td>'; |
1279 | - } |
|
1280 | - |
|
1281 | - |
|
1282 | - /***********/ |
|
1283 | - |
|
1284 | - |
|
1285 | - /** |
|
1286 | - * displays edit and view links for critical EE pages |
|
1287 | - * |
|
1288 | - * @param int $ee_page_id |
|
1289 | - * @return string |
|
1290 | - */ |
|
1291 | - public static function edit_view_links(int $ee_page_id): string |
|
1292 | - { |
|
1293 | - $edit_url = add_query_arg( |
|
1294 | - ['post' => $ee_page_id, 'action' => 'edit'], |
|
1295 | - admin_url('post.php') |
|
1296 | - ); |
|
1297 | - $links = '<a href="' . esc_url_raw($edit_url) . '" >' . esc_html__('Edit', 'event_espresso') . '</a>'; |
|
1298 | - $links .= ' | '; |
|
1299 | - $links .= '<a href="' . get_permalink($ee_page_id) . '" >' . esc_html__('View', 'event_espresso') . '</a>'; |
|
1300 | - |
|
1301 | - return $links; |
|
1302 | - } |
|
1303 | - |
|
1304 | - |
|
1305 | - /** |
|
1306 | - * displays page and shortcode status for critical EE pages |
|
1307 | - * |
|
1308 | - * @param WP_Post $ee_page |
|
1309 | - * @param string $shortcode |
|
1310 | - * @return string |
|
1311 | - */ |
|
1312 | - public static function page_and_shortcode_status(WP_Post $ee_page, string $shortcode): string |
|
1313 | - { |
|
1314 | - // page status |
|
1315 | - if (isset($ee_page->post_status) && $ee_page->post_status == 'publish') { |
|
1316 | - $pg_class = 'ee-status-bg--success'; |
|
1317 | - $pg_status = sprintf(esc_html__('Page%sStatus%sOK', 'event_espresso'), ' ', ' '); |
|
1318 | - } else { |
|
1319 | - $pg_class = 'ee-status-bg--error'; |
|
1320 | - $pg_status = sprintf(esc_html__('Page%sVisibility%sProblem', 'event_espresso'), ' ', ' '); |
|
1321 | - } |
|
1322 | - |
|
1323 | - // shortcode status |
|
1324 | - if (isset($ee_page->post_content) && strpos($ee_page->post_content, $shortcode) !== false) { |
|
1325 | - $sc_class = 'ee-status-bg--success'; |
|
1326 | - $sc_status = sprintf(esc_html__('Shortcode%sOK', 'event_espresso'), ' '); |
|
1327 | - } else { |
|
1328 | - $sc_class = 'ee-status-bg--error'; |
|
1329 | - $sc_status = sprintf(esc_html__('Shortcode%sProblem', 'event_espresso'), ' '); |
|
1330 | - } |
|
1331 | - |
|
1332 | - return ' |
|
1279 | + } |
|
1280 | + |
|
1281 | + |
|
1282 | + /***********/ |
|
1283 | + |
|
1284 | + |
|
1285 | + /** |
|
1286 | + * displays edit and view links for critical EE pages |
|
1287 | + * |
|
1288 | + * @param int $ee_page_id |
|
1289 | + * @return string |
|
1290 | + */ |
|
1291 | + public static function edit_view_links(int $ee_page_id): string |
|
1292 | + { |
|
1293 | + $edit_url = add_query_arg( |
|
1294 | + ['post' => $ee_page_id, 'action' => 'edit'], |
|
1295 | + admin_url('post.php') |
|
1296 | + ); |
|
1297 | + $links = '<a href="' . esc_url_raw($edit_url) . '" >' . esc_html__('Edit', 'event_espresso') . '</a>'; |
|
1298 | + $links .= ' | '; |
|
1299 | + $links .= '<a href="' . get_permalink($ee_page_id) . '" >' . esc_html__('View', 'event_espresso') . '</a>'; |
|
1300 | + |
|
1301 | + return $links; |
|
1302 | + } |
|
1303 | + |
|
1304 | + |
|
1305 | + /** |
|
1306 | + * displays page and shortcode status for critical EE pages |
|
1307 | + * |
|
1308 | + * @param WP_Post $ee_page |
|
1309 | + * @param string $shortcode |
|
1310 | + * @return string |
|
1311 | + */ |
|
1312 | + public static function page_and_shortcode_status(WP_Post $ee_page, string $shortcode): string |
|
1313 | + { |
|
1314 | + // page status |
|
1315 | + if (isset($ee_page->post_status) && $ee_page->post_status == 'publish') { |
|
1316 | + $pg_class = 'ee-status-bg--success'; |
|
1317 | + $pg_status = sprintf(esc_html__('Page%sStatus%sOK', 'event_espresso'), ' ', ' '); |
|
1318 | + } else { |
|
1319 | + $pg_class = 'ee-status-bg--error'; |
|
1320 | + $pg_status = sprintf(esc_html__('Page%sVisibility%sProblem', 'event_espresso'), ' ', ' '); |
|
1321 | + } |
|
1322 | + |
|
1323 | + // shortcode status |
|
1324 | + if (isset($ee_page->post_content) && strpos($ee_page->post_content, $shortcode) !== false) { |
|
1325 | + $sc_class = 'ee-status-bg--success'; |
|
1326 | + $sc_status = sprintf(esc_html__('Shortcode%sOK', 'event_espresso'), ' '); |
|
1327 | + } else { |
|
1328 | + $sc_class = 'ee-status-bg--error'; |
|
1329 | + $sc_status = sprintf(esc_html__('Shortcode%sProblem', 'event_espresso'), ' '); |
|
1330 | + } |
|
1331 | + |
|
1332 | + return ' |
|
1333 | 1333 | <span class="ee-page-status ' . $pg_class . '"><strong>' . $pg_status . '</strong></span> |
1334 | 1334 | <span class="ee-page-status ' . $sc_class . '"><strong>' . $sc_status . '</strong></span>'; |
1335 | - } |
|
1336 | - |
|
1337 | - |
|
1338 | - /** |
|
1339 | - * generates a dropdown of all parent pages - copied from WP core |
|
1340 | - * |
|
1341 | - * @param int $default |
|
1342 | - * @param int $parent |
|
1343 | - * @param int $level |
|
1344 | - * @param bool $echo |
|
1345 | - * @return string; |
|
1346 | - */ |
|
1347 | - public static function page_settings_dropdown( |
|
1348 | - int $default = 0, |
|
1349 | - int $parent = 0, |
|
1350 | - int $level = 0, |
|
1351 | - bool $echo = true |
|
1352 | - ): string { |
|
1353 | - global $wpdb; |
|
1354 | - $items = $wpdb->get_results( |
|
1355 | - $wpdb->prepare( |
|
1356 | - "SELECT ID, post_parent, post_title FROM $wpdb->posts WHERE post_parent = %d AND post_type = 'page' AND post_status != 'trash' ORDER BY menu_order", |
|
1357 | - $parent |
|
1358 | - ) |
|
1359 | - ); |
|
1360 | - $output = ''; |
|
1361 | - |
|
1362 | - if ($items) { |
|
1363 | - $level = absint($level); |
|
1364 | - foreach ($items as $item) { |
|
1365 | - $ID = absint($item->ID); |
|
1366 | - $post_title = wp_strip_all_tags($item->post_title); |
|
1367 | - $pad = str_repeat(' ', $level * 3); |
|
1368 | - $option = "\n\t"; |
|
1369 | - $option .= '<option class="level-' . $level . '" '; |
|
1370 | - $option .= 'value="' . $ID . '" '; |
|
1371 | - $option .= $ID === absint($default) ? ' selected="selected"' : ''; |
|
1372 | - $option .= '>'; |
|
1373 | - $option .= "$pad $post_title"; |
|
1374 | - $option .= '</option>'; |
|
1375 | - $output .= $option; |
|
1376 | - ob_start(); |
|
1377 | - parent_dropdown($default, $item->ID, $level + 1); |
|
1378 | - $output .= ob_get_clean(); |
|
1379 | - } |
|
1380 | - } |
|
1381 | - if ($echo) { |
|
1382 | - echo $output; |
|
1383 | - return ''; |
|
1384 | - } |
|
1385 | - return $output; |
|
1386 | - } |
|
1387 | - |
|
1388 | - |
|
1389 | - /** |
|
1390 | - * Loads the scripts for the privacy settings form |
|
1391 | - */ |
|
1392 | - public function load_scripts_styles_privacy_settings() |
|
1393 | - { |
|
1394 | - $form_handler = $this->loader->getShared( |
|
1395 | - 'EventEspresso\core\domain\services\admin\privacy\forms\PrivacySettingsFormHandler' |
|
1396 | - ); |
|
1397 | - $form_handler->enqueueStylesAndScripts(); |
|
1398 | - } |
|
1399 | - |
|
1400 | - |
|
1401 | - /** |
|
1402 | - * display the privacy settings form |
|
1403 | - * |
|
1404 | - * @throws EE_Error |
|
1405 | - */ |
|
1406 | - public function privacySettings() |
|
1407 | - { |
|
1408 | - $this->_set_add_edit_form_tags('update_privacy_settings'); |
|
1409 | - $this->_set_publish_post_box_vars(null, false, false, null, false); |
|
1410 | - $form_handler = $this->loader->getShared( |
|
1411 | - 'EventEspresso\core\domain\services\admin\privacy\forms\PrivacySettingsFormHandler' |
|
1412 | - ); |
|
1413 | - $this->_template_args['admin_page_content'] = EEH_HTML::div( |
|
1414 | - $form_handler->display(), |
|
1415 | - '', |
|
1416 | - 'padding' |
|
1417 | - ); |
|
1418 | - $this->display_admin_page_with_sidebar(); |
|
1419 | - } |
|
1420 | - |
|
1421 | - |
|
1422 | - /** |
|
1423 | - * Update the privacy settings from form data |
|
1424 | - * |
|
1425 | - * @throws EE_Error |
|
1426 | - */ |
|
1427 | - public function updatePrivacySettings() |
|
1428 | - { |
|
1429 | - $form_handler = $this->loader->getShared( |
|
1430 | - 'EventEspresso\core\domain\services\admin\privacy\forms\PrivacySettingsFormHandler' |
|
1431 | - ); |
|
1432 | - $success = $form_handler->process($this->get_request_data()); |
|
1433 | - $this->_redirect_after_action( |
|
1434 | - $success, |
|
1435 | - esc_html__('Registration Form Options', 'event_espresso'), |
|
1436 | - 'updated', |
|
1437 | - ['action' => 'privacy_settings'] |
|
1438 | - ); |
|
1439 | - } |
|
1335 | + } |
|
1336 | + |
|
1337 | + |
|
1338 | + /** |
|
1339 | + * generates a dropdown of all parent pages - copied from WP core |
|
1340 | + * |
|
1341 | + * @param int $default |
|
1342 | + * @param int $parent |
|
1343 | + * @param int $level |
|
1344 | + * @param bool $echo |
|
1345 | + * @return string; |
|
1346 | + */ |
|
1347 | + public static function page_settings_dropdown( |
|
1348 | + int $default = 0, |
|
1349 | + int $parent = 0, |
|
1350 | + int $level = 0, |
|
1351 | + bool $echo = true |
|
1352 | + ): string { |
|
1353 | + global $wpdb; |
|
1354 | + $items = $wpdb->get_results( |
|
1355 | + $wpdb->prepare( |
|
1356 | + "SELECT ID, post_parent, post_title FROM $wpdb->posts WHERE post_parent = %d AND post_type = 'page' AND post_status != 'trash' ORDER BY menu_order", |
|
1357 | + $parent |
|
1358 | + ) |
|
1359 | + ); |
|
1360 | + $output = ''; |
|
1361 | + |
|
1362 | + if ($items) { |
|
1363 | + $level = absint($level); |
|
1364 | + foreach ($items as $item) { |
|
1365 | + $ID = absint($item->ID); |
|
1366 | + $post_title = wp_strip_all_tags($item->post_title); |
|
1367 | + $pad = str_repeat(' ', $level * 3); |
|
1368 | + $option = "\n\t"; |
|
1369 | + $option .= '<option class="level-' . $level . '" '; |
|
1370 | + $option .= 'value="' . $ID . '" '; |
|
1371 | + $option .= $ID === absint($default) ? ' selected="selected"' : ''; |
|
1372 | + $option .= '>'; |
|
1373 | + $option .= "$pad $post_title"; |
|
1374 | + $option .= '</option>'; |
|
1375 | + $output .= $option; |
|
1376 | + ob_start(); |
|
1377 | + parent_dropdown($default, $item->ID, $level + 1); |
|
1378 | + $output .= ob_get_clean(); |
|
1379 | + } |
|
1380 | + } |
|
1381 | + if ($echo) { |
|
1382 | + echo $output; |
|
1383 | + return ''; |
|
1384 | + } |
|
1385 | + return $output; |
|
1386 | + } |
|
1387 | + |
|
1388 | + |
|
1389 | + /** |
|
1390 | + * Loads the scripts for the privacy settings form |
|
1391 | + */ |
|
1392 | + public function load_scripts_styles_privacy_settings() |
|
1393 | + { |
|
1394 | + $form_handler = $this->loader->getShared( |
|
1395 | + 'EventEspresso\core\domain\services\admin\privacy\forms\PrivacySettingsFormHandler' |
|
1396 | + ); |
|
1397 | + $form_handler->enqueueStylesAndScripts(); |
|
1398 | + } |
|
1399 | + |
|
1400 | + |
|
1401 | + /** |
|
1402 | + * display the privacy settings form |
|
1403 | + * |
|
1404 | + * @throws EE_Error |
|
1405 | + */ |
|
1406 | + public function privacySettings() |
|
1407 | + { |
|
1408 | + $this->_set_add_edit_form_tags('update_privacy_settings'); |
|
1409 | + $this->_set_publish_post_box_vars(null, false, false, null, false); |
|
1410 | + $form_handler = $this->loader->getShared( |
|
1411 | + 'EventEspresso\core\domain\services\admin\privacy\forms\PrivacySettingsFormHandler' |
|
1412 | + ); |
|
1413 | + $this->_template_args['admin_page_content'] = EEH_HTML::div( |
|
1414 | + $form_handler->display(), |
|
1415 | + '', |
|
1416 | + 'padding' |
|
1417 | + ); |
|
1418 | + $this->display_admin_page_with_sidebar(); |
|
1419 | + } |
|
1420 | + |
|
1421 | + |
|
1422 | + /** |
|
1423 | + * Update the privacy settings from form data |
|
1424 | + * |
|
1425 | + * @throws EE_Error |
|
1426 | + */ |
|
1427 | + public function updatePrivacySettings() |
|
1428 | + { |
|
1429 | + $form_handler = $this->loader->getShared( |
|
1430 | + 'EventEspresso\core\domain\services\admin\privacy\forms\PrivacySettingsFormHandler' |
|
1431 | + ); |
|
1432 | + $success = $form_handler->process($this->get_request_data()); |
|
1433 | + $this->_redirect_after_action( |
|
1434 | + $success, |
|
1435 | + esc_html__('Registration Form Options', 'event_espresso'), |
|
1436 | + 'updated', |
|
1437 | + ['action' => 'privacy_settings'] |
|
1438 | + ); |
|
1439 | + } |
|
1440 | 1440 | } |
@@ -246,19 +246,19 @@ discard block |
||
246 | 246 | 'event_espresso' |
247 | 247 | ) |
248 | 248 | ); |
249 | - EE_Registry::$i18n_js_strings['error_occurred'] = wp_strip_all_tags( |
|
249 | + EE_Registry::$i18n_js_strings['error_occurred'] = wp_strip_all_tags( |
|
250 | 250 | esc_html__( |
251 | 251 | 'An error occurred! Please refresh the page and try again.', |
252 | 252 | 'event_espresso' |
253 | 253 | ) |
254 | 254 | ); |
255 | - EE_Registry::$i18n_js_strings['confirm_delete_state'] = wp_strip_all_tags( |
|
255 | + EE_Registry::$i18n_js_strings['confirm_delete_state'] = wp_strip_all_tags( |
|
256 | 256 | esc_html__( |
257 | 257 | 'Are you sure you want to delete this State / Province?', |
258 | 258 | 'event_espresso' |
259 | 259 | ) |
260 | 260 | ); |
261 | - EE_Registry::$i18n_js_strings['ajax_url'] = admin_url( |
|
261 | + EE_Registry::$i18n_js_strings['ajax_url'] = admin_url( |
|
262 | 262 | 'admin-ajax.php?page=espresso_general_settings', |
263 | 263 | is_ssl() ? 'https://' : 'http://' |
264 | 264 | ); |
@@ -287,12 +287,12 @@ discard block |
||
287 | 287 | wp_enqueue_script('thickbox'); |
288 | 288 | wp_register_script( |
289 | 289 | 'organization_settings', |
290 | - GEN_SET_ASSETS_URL . 'your_organization_settings.js', |
|
290 | + GEN_SET_ASSETS_URL.'your_organization_settings.js', |
|
291 | 291 | ['jquery', 'media-upload', 'thickbox'], |
292 | 292 | EVENT_ESPRESSO_VERSION, |
293 | 293 | true |
294 | 294 | ); |
295 | - wp_register_style('organization-css', GEN_SET_ASSETS_URL . 'organization.css', [], EVENT_ESPRESSO_VERSION); |
|
295 | + wp_register_style('organization-css', GEN_SET_ASSETS_URL.'organization.css', [], EVENT_ESPRESSO_VERSION); |
|
296 | 296 | wp_enqueue_script('organization_settings'); |
297 | 297 | wp_enqueue_style('organization-css'); |
298 | 298 | $confirm_image_delete = [ |
@@ -315,12 +315,12 @@ discard block |
||
315 | 315 | // scripts |
316 | 316 | wp_register_script( |
317 | 317 | 'gen_settings_countries', |
318 | - GEN_SET_ASSETS_URL . 'gen_settings_countries.js', |
|
318 | + GEN_SET_ASSETS_URL.'gen_settings_countries.js', |
|
319 | 319 | ['ee_admin_js'], |
320 | 320 | EVENT_ESPRESSO_VERSION, |
321 | 321 | true |
322 | 322 | ); |
323 | - wp_register_style('organization-css', GEN_SET_ASSETS_URL . 'organization.css', [], EVENT_ESPRESSO_VERSION); |
|
323 | + wp_register_style('organization-css', GEN_SET_ASSETS_URL.'organization.css', [], EVENT_ESPRESSO_VERSION); |
|
324 | 324 | wp_enqueue_script('gen_settings_countries'); |
325 | 325 | wp_enqueue_style('organization-css'); |
326 | 326 | } |
@@ -368,7 +368,7 @@ discard block |
||
368 | 368 | $this->_set_add_edit_form_tags('update_espresso_page_settings'); |
369 | 369 | $this->_set_publish_post_box_vars(null, false, false, null, false); |
370 | 370 | $this->_template_args['admin_page_content'] = EEH_Template::display_template( |
371 | - GEN_SET_TEMPLATE_PATH . 'espresso_page_settings.template.php', |
|
371 | + GEN_SET_TEMPLATE_PATH.'espresso_page_settings.template.php', |
|
372 | 372 | $this->_template_args, |
373 | 373 | true |
374 | 374 | ); |
@@ -384,12 +384,12 @@ discard block |
||
384 | 384 | protected function _update_espresso_page_settings() |
385 | 385 | { |
386 | 386 | // capture incoming request data && set page IDs |
387 | - $this->core_config->reg_page_id = $this->request->getRequestParam( |
|
387 | + $this->core_config->reg_page_id = $this->request->getRequestParam( |
|
388 | 388 | 'reg_page_id', |
389 | 389 | $this->core_config->reg_page_id, |
390 | 390 | DataType::INT |
391 | 391 | ); |
392 | - $this->core_config->txn_page_id = $this->request->getRequestParam( |
|
392 | + $this->core_config->txn_page_id = $this->request->getRequestParam( |
|
393 | 393 | 'txn_page_id', |
394 | 394 | $this->core_config->txn_page_id, |
395 | 395 | DataType::INT |
@@ -399,7 +399,7 @@ discard block |
||
399 | 399 | $this->core_config->thank_you_page_id, |
400 | 400 | DataType::INT |
401 | 401 | ); |
402 | - $this->core_config->cancel_page_id = $this->request->getRequestParam( |
|
402 | + $this->core_config->cancel_page_id = $this->request->getRequestParam( |
|
403 | 403 | 'cancel_page_id', |
404 | 404 | $this->core_config->cancel_page_id, |
405 | 405 | DataType::INT |
@@ -665,16 +665,16 @@ discard block |
||
665 | 665 | $country->ID(), |
666 | 666 | $country |
667 | 667 | ); |
668 | - $this->_template_args['country_states_settings'] = $this->display_country_states( |
|
668 | + $this->_template_args['country_states_settings'] = $this->display_country_states( |
|
669 | 669 | $country->ID(), |
670 | 670 | $country |
671 | 671 | ); |
672 | - $this->_template_args['CNT_name_for_site'] = $country->name(); |
|
672 | + $this->_template_args['CNT_name_for_site'] = $country->name(); |
|
673 | 673 | |
674 | 674 | $this->_set_add_edit_form_tags('update_country_settings'); |
675 | 675 | $this->_set_publish_post_box_vars(null, false, false, null, false); |
676 | 676 | $this->_template_args['admin_page_content'] = EEH_Template::display_template( |
677 | - GEN_SET_TEMPLATE_PATH . 'countries_settings.template.php', |
|
677 | + GEN_SET_TEMPLATE_PATH.'countries_settings.template.php', |
|
678 | 678 | $this->_template_args, |
679 | 679 | true |
680 | 680 | ); |
@@ -698,7 +698,7 @@ discard block |
||
698 | 698 | $CNT_ISO = $this->getCountryISO($CNT_ISO); |
699 | 699 | $CNT_ISO_for_site = $this->getCountryIsoForSite(); |
700 | 700 | |
701 | - if (! $CNT_ISO) { |
|
701 | + if ( ! $CNT_ISO) { |
|
702 | 702 | return ''; |
703 | 703 | } |
704 | 704 | |
@@ -711,7 +711,7 @@ discard block |
||
711 | 711 | $CNT_cur_disabled = $CNT_ISO !== $CNT_ISO_for_site; |
712 | 712 | $this->_template_args['CNT_cur_disabled'] = $CNT_cur_disabled; |
713 | 713 | |
714 | - $country_input_types = [ |
|
714 | + $country_input_types = [ |
|
715 | 715 | 'CNT_active' => [ |
716 | 716 | 'type' => 'RADIO_BTN', |
717 | 717 | 'input_name' => "cntry[$CNT_ISO]", |
@@ -836,8 +836,8 @@ discard block |
||
836 | 836 | $country, |
837 | 837 | $country_input_types |
838 | 838 | ); |
839 | - $country_details_settings = EEH_Template::display_template( |
|
840 | - GEN_SET_TEMPLATE_PATH . 'country_details_settings.template.php', |
|
839 | + $country_details_settings = EEH_Template::display_template( |
|
840 | + GEN_SET_TEMPLATE_PATH.'country_details_settings.template.php', |
|
841 | 841 | $this->_template_args, |
842 | 842 | true |
843 | 843 | ); |
@@ -871,7 +871,7 @@ discard block |
||
871 | 871 | public function display_country_states(string $CNT_ISO = '', ?EE_Country $country = null): string |
872 | 872 | { |
873 | 873 | $CNT_ISO = $this->getCountryISO($CNT_ISO); |
874 | - if (! $CNT_ISO) { |
|
874 | + if ( ! $CNT_ISO) { |
|
875 | 875 | return ''; |
876 | 876 | } |
877 | 877 | // for ajax |
@@ -947,7 +947,7 @@ discard block |
||
947 | 947 | ); |
948 | 948 | |
949 | 949 | $state_details_settings = EEH_Template::display_template( |
950 | - GEN_SET_TEMPLATE_PATH . 'state_details_settings.template.php', |
|
950 | + GEN_SET_TEMPLATE_PATH.'state_details_settings.template.php', |
|
951 | 951 | $this->_template_args, |
952 | 952 | true |
953 | 953 | ); |
@@ -979,7 +979,7 @@ discard block |
||
979 | 979 | { |
980 | 980 | $success = true; |
981 | 981 | $CNT_ISO = $this->getCountryISO(''); |
982 | - if (! $CNT_ISO) { |
|
982 | + if ( ! $CNT_ISO) { |
|
983 | 983 | EE_Error::add_error( |
984 | 984 | esc_html__('No Country ISO code or an invalid Country ISO code was received.', 'event_espresso'), |
985 | 985 | __FILE__, |
@@ -989,7 +989,7 @@ discard block |
||
989 | 989 | $success = false; |
990 | 990 | } |
991 | 991 | $STA_abbrev = $this->request->getRequestParam('STA_abbrev'); |
992 | - if (! $STA_abbrev) { |
|
992 | + if ( ! $STA_abbrev) { |
|
993 | 993 | EE_Error::add_error( |
994 | 994 | esc_html__('No State ISO code or an invalid State ISO code was received.', 'event_espresso'), |
995 | 995 | __FILE__, |
@@ -999,7 +999,7 @@ discard block |
||
999 | 999 | $success = false; |
1000 | 1000 | } |
1001 | 1001 | $STA_name = $this->request->getRequestParam('STA_name'); |
1002 | - if (! $STA_name) { |
|
1002 | + if ( ! $STA_name) { |
|
1003 | 1003 | EE_Error::add_error( |
1004 | 1004 | esc_html__('No State name or an invalid State name was received.', 'event_espresso'), |
1005 | 1005 | __FILE__, |
@@ -1016,7 +1016,7 @@ discard block |
||
1016 | 1016 | 'STA_name' => $STA_name, |
1017 | 1017 | 'STA_active' => true, |
1018 | 1018 | ]; |
1019 | - $success = EEM_State::instance()->insert($cols_n_values); |
|
1019 | + $success = EEM_State::instance()->insert($cols_n_values); |
|
1020 | 1020 | EE_Error::add_success(esc_html__('The State was added successfully.', 'event_espresso')); |
1021 | 1021 | } |
1022 | 1022 | |
@@ -1048,7 +1048,7 @@ discard block |
||
1048 | 1048 | $STA_ID = $this->request->getRequestParam('STA_ID'); |
1049 | 1049 | $STA_abbrev = $this->request->getRequestParam('STA_abbrev'); |
1050 | 1050 | |
1051 | - if (! $STA_ID) { |
|
1051 | + if ( ! $STA_ID) { |
|
1052 | 1052 | EE_Error::add_error( |
1053 | 1053 | esc_html__('No State ID or an invalid State ID was received.', 'event_espresso'), |
1054 | 1054 | __FILE__, |
@@ -1092,7 +1092,7 @@ discard block |
||
1092 | 1092 | protected function _update_country_settings() |
1093 | 1093 | { |
1094 | 1094 | $CNT_ISO = $this->getCountryISO(); |
1095 | - if (! $CNT_ISO) { |
|
1095 | + if ( ! $CNT_ISO) { |
|
1096 | 1096 | EE_Error::add_error( |
1097 | 1097 | esc_html__('No Country ISO code or an invalid Country ISO code was received.', 'event_espresso'), |
1098 | 1098 | __FILE__, |
@@ -1116,15 +1116,15 @@ discard block |
||
1116 | 1116 | $country->currency_code() |
1117 | 1117 | ) |
1118 | 1118 | ); |
1119 | - $cols_n_values['CNT_cur_single'] = $this->request->getRequestParam( |
|
1119 | + $cols_n_values['CNT_cur_single'] = $this->request->getRequestParam( |
|
1120 | 1120 | "cntry[$CNT_ISO][CNT_cur_single]", |
1121 | 1121 | $country->currency_name_single() |
1122 | 1122 | ); |
1123 | - $cols_n_values['CNT_cur_plural'] = $this->request->getRequestParam( |
|
1123 | + $cols_n_values['CNT_cur_plural'] = $this->request->getRequestParam( |
|
1124 | 1124 | "cntry[$CNT_ISO][CNT_cur_plural]", |
1125 | 1125 | $country->currency_name_plural() |
1126 | 1126 | ); |
1127 | - $cols_n_values['CNT_cur_sign'] = $this->request->getRequestParam( |
|
1127 | + $cols_n_values['CNT_cur_sign'] = $this->request->getRequestParam( |
|
1128 | 1128 | "cntry[$CNT_ISO][CNT_cur_sign]", |
1129 | 1129 | $country->currency_sign() |
1130 | 1130 | ); |
@@ -1141,15 +1141,15 @@ discard block |
||
1141 | 1141 | "cntry[$CNT_ISO][CNT_cur_dec_mrk]", |
1142 | 1142 | $country->currency_decimal_mark() |
1143 | 1143 | ); |
1144 | - $cols_n_values['CNT_cur_thsnds'] = $this->request->getRequestParam( |
|
1144 | + $cols_n_values['CNT_cur_thsnds'] = $this->request->getRequestParam( |
|
1145 | 1145 | "cntry[$CNT_ISO][CNT_cur_thsnds]", |
1146 | 1146 | $country->currency_thousands_separator() |
1147 | 1147 | ); |
1148 | - $cols_n_values['CNT_tel_code'] = $this->request->getRequestParam( |
|
1148 | + $cols_n_values['CNT_tel_code'] = $this->request->getRequestParam( |
|
1149 | 1149 | "cntry[$CNT_ISO][CNT_tel_code]", |
1150 | 1150 | $country->telephoneCode() |
1151 | 1151 | ); |
1152 | - $cols_n_values['CNT_active'] = $this->request->getRequestParam( |
|
1152 | + $cols_n_values['CNT_active'] = $this->request->getRequestParam( |
|
1153 | 1153 | "cntry[$CNT_ISO][CNT_active]", |
1154 | 1154 | $country->isActive(), |
1155 | 1155 | DataType::BOOL |
@@ -1172,7 +1172,7 @@ discard block |
||
1172 | 1172 | $this->request->getRequestParam('states', [], DataType::STRING, true) |
1173 | 1173 | ); |
1174 | 1174 | |
1175 | - if (! empty($states) && $success !== false) { |
|
1175 | + if ( ! empty($states) && $success !== false) { |
|
1176 | 1176 | // loop thru state data ( looks like : states[75][STA_name] ) |
1177 | 1177 | foreach ($states as $STA_ID => $state) { |
1178 | 1178 | $cols_n_values = [ |
@@ -1230,7 +1230,7 @@ discard block |
||
1230 | 1230 | return ' |
1231 | 1231 | <tr> |
1232 | 1232 | <th> |
1233 | - ' . $label . ' |
|
1233 | + ' . $label.' |
|
1234 | 1234 | </th>'; |
1235 | 1235 | } |
1236 | 1236 | |
@@ -1245,7 +1245,7 @@ discard block |
||
1245 | 1245 | { |
1246 | 1246 | return ' |
1247 | 1247 | <td class="general-settings-country-input-td"> |
1248 | - ' . $input . ' |
|
1248 | + ' . $input.' |
|
1249 | 1249 | </td> |
1250 | 1250 | </tr>'; |
1251 | 1251 | } |
@@ -1274,7 +1274,7 @@ discard block |
||
1274 | 1274 | { |
1275 | 1275 | return ' |
1276 | 1276 | <td class="general-settings-country-state-input-td"> |
1277 | - ' . $input . ' |
|
1277 | + ' . $input.' |
|
1278 | 1278 | </td>'; |
1279 | 1279 | } |
1280 | 1280 | |
@@ -1294,9 +1294,9 @@ discard block |
||
1294 | 1294 | ['post' => $ee_page_id, 'action' => 'edit'], |
1295 | 1295 | admin_url('post.php') |
1296 | 1296 | ); |
1297 | - $links = '<a href="' . esc_url_raw($edit_url) . '" >' . esc_html__('Edit', 'event_espresso') . '</a>'; |
|
1297 | + $links = '<a href="'.esc_url_raw($edit_url).'" >'.esc_html__('Edit', 'event_espresso').'</a>'; |
|
1298 | 1298 | $links .= ' | '; |
1299 | - $links .= '<a href="' . get_permalink($ee_page_id) . '" >' . esc_html__('View', 'event_espresso') . '</a>'; |
|
1299 | + $links .= '<a href="'.get_permalink($ee_page_id).'" >'.esc_html__('View', 'event_espresso').'</a>'; |
|
1300 | 1300 | |
1301 | 1301 | return $links; |
1302 | 1302 | } |
@@ -1330,8 +1330,8 @@ discard block |
||
1330 | 1330 | } |
1331 | 1331 | |
1332 | 1332 | return ' |
1333 | - <span class="ee-page-status ' . $pg_class . '"><strong>' . $pg_status . '</strong></span> |
|
1334 | - <span class="ee-page-status ' . $sc_class . '"><strong>' . $sc_status . '</strong></span>'; |
|
1333 | + <span class="ee-page-status ' . $pg_class.'"><strong>'.$pg_status.'</strong></span> |
|
1334 | + <span class="ee-page-status ' . $sc_class.'"><strong>'.$sc_status.'</strong></span>'; |
|
1335 | 1335 | } |
1336 | 1336 | |
1337 | 1337 | |
@@ -1351,7 +1351,7 @@ discard block |
||
1351 | 1351 | bool $echo = true |
1352 | 1352 | ): string { |
1353 | 1353 | global $wpdb; |
1354 | - $items = $wpdb->get_results( |
|
1354 | + $items = $wpdb->get_results( |
|
1355 | 1355 | $wpdb->prepare( |
1356 | 1356 | "SELECT ID, post_parent, post_title FROM $wpdb->posts WHERE post_parent = %d AND post_type = 'page' AND post_status != 'trash' ORDER BY menu_order", |
1357 | 1357 | $parent |
@@ -1366,8 +1366,8 @@ discard block |
||
1366 | 1366 | $post_title = wp_strip_all_tags($item->post_title); |
1367 | 1367 | $pad = str_repeat(' ', $level * 3); |
1368 | 1368 | $option = "\n\t"; |
1369 | - $option .= '<option class="level-' . $level . '" '; |
|
1370 | - $option .= 'value="' . $ID . '" '; |
|
1369 | + $option .= '<option class="level-'.$level.'" '; |
|
1370 | + $option .= 'value="'.$ID.'" '; |
|
1371 | 1371 | $option .= $ID === absint($default) ? ' selected="selected"' : ''; |
1372 | 1372 | $option .= '>'; |
1373 | 1373 | $option .= "$pad $post_title"; |