Completed
Branch dev (6b2695)
by
unknown
13:02 queued 05:30
created
core/services/request/Request.php 1 patch
Indentation   +550 added lines, -550 removed lines patch added patch discarded remove patch
@@ -16,554 +16,554 @@
 block discarded – undo
16 16
  */
17 17
 class Request implements InterminableInterface, RequestInterface, ReservedInstanceInterface
18 18
 {
19
-    /**
20
-     * $_COOKIE parameters
21
-     *
22
-     * @var array
23
-     */
24
-    protected $cookies;
25
-
26
-    /**
27
-     * $_FILES parameters
28
-     *
29
-     * @var array
30
-     */
31
-    protected $files;
32
-
33
-    /**
34
-     * true if current user appears to be some kind of bot
35
-     *
36
-     * @var bool
37
-     */
38
-    protected $is_bot;
39
-
40
-    /**
41
-     * @var RequestParams
42
-     */
43
-    protected $request_params;
44
-
45
-    /**
46
-     * @var RequestTypeContextCheckerInterface
47
-     */
48
-    protected $request_type;
49
-
50
-    /**
51
-     * @var ServerParams
52
-     */
53
-    protected $server_params;
54
-
55
-
56
-    public function __construct(
57
-        RequestParams $request_params,
58
-        ServerParams $server_params,
59
-        array $cookies = [],
60
-        array $files = []
61
-    ) {
62
-        $this->cookies = ! empty($cookies)
63
-            ? $cookies
64
-            : filter_input_array(INPUT_COOKIE, FILTER_SANITIZE_STRING);
65
-        $this->files          = ! empty($files) ? $files : $_FILES;
66
-        $this->request_params = $request_params;
67
-        $this->server_params  = $server_params;
68
-    }
69
-
70
-
71
-    /**
72
-     * @param RequestTypeContextCheckerInterface $type
73
-     */
74
-    public function setRequestTypeContextChecker(RequestTypeContextCheckerInterface $type)
75
-    {
76
-        $this->request_type = $type;
77
-    }
78
-
79
-
80
-    /**
81
-     * @return array
82
-     */
83
-    public function getParams()
84
-    {
85
-        return $this->request_params->getParams();
86
-    }
87
-
88
-
89
-    /**
90
-     * @return array
91
-     */
92
-    public function postParams()
93
-    {
94
-        return $this->request_params->postParams();
95
-    }
96
-
97
-
98
-    /**
99
-     * @return array
100
-     */
101
-    public function cookieParams()
102
-    {
103
-        return $this->cookies;
104
-    }
105
-
106
-
107
-    /**
108
-     * @return array
109
-     */
110
-    public function serverParams()
111
-    {
112
-        return $this->server_params->getAllServerParams();
113
-    }
114
-
115
-
116
-    /**
117
-     * @param string $key
118
-     * @param mixed|null $default
119
-     * @return array|int|float|string
120
-     */
121
-    public function getServerParam($key, $default = null)
122
-    {
123
-        return $this->server_params->getServerParam($key, $default);
124
-    }
125
-
126
-
127
-    /**
128
-     * @param string                 $key
129
-     * @param array|int|float|string $value
130
-     * @param bool                   $set_global_too
131
-     * @return void
132
-     */
133
-    public function setServerParam(string $key, $value, bool $set_global_too = false)
134
-    {
135
-        $this->server_params->setServerParam($key, $value, $set_global_too);
136
-    }
137
-
138
-
139
-    /**
140
-     * @param string $key
141
-     * @return bool
142
-     */
143
-    public function serverParamIsSet($key)
144
-    {
145
-        return $this->server_params->serverParamIsSet($key);
146
-    }
147
-
148
-
149
-    /**
150
-     * @return array
151
-     */
152
-    public function filesParams()
153
-    {
154
-        return $this->files;
155
-    }
156
-
157
-
158
-    /**
159
-     * returns sanitized contents of $_REQUEST
160
-     *
161
-     * @return array
162
-     */
163
-    public function requestParams()
164
-    {
165
-        return $this->request_params->requestParams();
166
-    }
167
-
168
-
169
-    /**
170
-     * @param string     $key
171
-     * @param mixed|null $value
172
-     * @param bool       $override_ee
173
-     * @return void
174
-     */
175
-    public function setRequestParam($key, $value, $override_ee = false)
176
-    {
177
-        $this->request_params->setRequestParam($key, $value, $override_ee);
178
-    }
179
-
180
-
181
-    /**
182
-     * merges the incoming array of parameters into the existing request parameters
183
-     *
184
-     * @param array $request_params
185
-     * @return void
186
-     * @since   4.10.24.p
187
-     */
188
-    public function mergeRequestParams(array $request_params)
189
-    {
190
-        $this->request_params->mergeRequestParams($request_params);
191
-    }
192
-
193
-
194
-    /**
195
-     * returns sanitized value for a request param if the given key exists
196
-     *
197
-     * @param string     $key
198
-     * @param mixed|null $default
199
-     * @param string     $type      the expected data type for the parameter's value, ie: string, int, bool, etc
200
-     * @param bool       $is_array  if true, then parameter value will be treated as an array of $type
201
-     * @param string     $delimiter for CSV type strings that should be returned as an array
202
-     * @return array|bool|float|int|string
203
-     */
204
-    public function getRequestParam($key, $default = null, $type = DataType::STRING, $is_array = false, $delimiter = '')
205
-    {
206
-        return $this->request_params->getRequestParam($key, $default, $type, $is_array, $delimiter);
207
-    }
208
-
209
-
210
-    /**
211
-     * check if param exists
212
-     *
213
-     * @param string $key
214
-     * @return bool
215
-     */
216
-    public function requestParamIsSet($key)
217
-    {
218
-        return $this->request_params->requestParamIsSet($key);
219
-    }
220
-
221
-
222
-    /**
223
-     * check if a request parameter exists whose key that matches the supplied wildcard pattern
224
-     * and return the sanitized value for the first match found
225
-     * wildcards can be either of the following:
226
-     *      ? to represent a single character of any type
227
-     *      * to represent one or more characters of any type
228
-     *
229
-     * @param string     $pattern
230
-     * @param mixed|null $default
231
-     * @param string     $type      the expected data type for the parameter's value, ie: string, int, bool, etc
232
-     * @param bool       $is_array  if true, then parameter value will be treated as an array of $type
233
-     * @param string     $delimiter for CSV type strings that should be returned as an array
234
-     * @return array|bool|float|int|string
235
-     */
236
-    public function getMatch($pattern, $default = null, $type = DataType::STRING, $is_array = false, $delimiter = '')
237
-    {
238
-        return $this->request_params->getMatch($pattern, $default, $type, $is_array, $delimiter);
239
-    }
240
-
241
-
242
-    /**
243
-     * check if a request parameter exists whose key matches the supplied wildcard pattern
244
-     * wildcards can be either of the following:
245
-     *      ? to represent a single character of any type
246
-     *      * to represent one or more characters of any type
247
-     * returns true if a match is found or false if not
248
-     *
249
-     * @param string $pattern
250
-     * @return bool
251
-     */
252
-    public function matches($pattern)
253
-    {
254
-        return $this->request_params->matches($pattern);
255
-    }
256
-
257
-
258
-    /**
259
-     * remove param
260
-     *
261
-     * @param      $key
262
-     * @param bool $unset_from_global_too
263
-     */
264
-    public function unSetRequestParam($key, $unset_from_global_too = false)
265
-    {
266
-        $this->request_params->unSetRequestParam($key, $unset_from_global_too);
267
-    }
268
-
269
-
270
-    /**
271
-     * remove params
272
-     *
273
-     * @param array $keys
274
-     * @param bool  $unset_from_global_too
275
-     */
276
-    public function unSetRequestParams(array $keys, $unset_from_global_too = false)
277
-    {
278
-        $this->request_params->unSetRequestParams($keys, $unset_from_global_too);
279
-    }
280
-
281
-
282
-    /**
283
-     * @param string $key
284
-     * @param bool   $unset_from_global_too
285
-     * @return void
286
-     */
287
-    public function unSetServerParam(string $key, bool $unset_from_global_too = false)
288
-    {
289
-        $this->server_params->unSetServerParam($key, $unset_from_global_too);
290
-    }
291
-
292
-
293
-    /**
294
-     * @return string
295
-     */
296
-    public function ipAddress()
297
-    {
298
-        return $this->server_params->ipAddress();
299
-    }
300
-
301
-
302
-    /**
303
-     * Gets the request's literal URI. Related to `requestUriAfterSiteHomeUri`, see its description for a comparison.
304
-     *
305
-     * @param boolean $relativeToWpRoot    If home_url() is "http://mysite.com/wp/", and a request comes to
306
-     *                                     "http://mysite.com/wp/wp-json", setting $relativeToWpRoot=true will return
307
-     *                                     "/wp-json", whereas $relativeToWpRoot=false will return "/wp/wp-json/".
308
-     * @param boolean $remove_query_params whether or not to return the uri with all query params removed.
309
-     * @return string
310
-     */
311
-    public function requestUri($relativeToWpRoot = false, $remove_query_params = false)
312
-    {
313
-        return $this->server_params->requestUri($relativeToWpRoot);
314
-    }
315
-
316
-
317
-    /**
318
-     * @return string
319
-     */
320
-    public function userAgent()
321
-    {
322
-        return $this->server_params->userAgent();
323
-    }
324
-
325
-
326
-    /**
327
-     * @param string $user_agent
328
-     */
329
-    public function setUserAgent($user_agent = '')
330
-    {
331
-        $this->server_params->setUserAgent($user_agent);
332
-    }
333
-
334
-
335
-    /**
336
-     * @return bool
337
-     */
338
-    public function isBot()
339
-    {
340
-        return $this->is_bot;
341
-    }
342
-
343
-
344
-    /**
345
-     * @param bool $is_bot
346
-     */
347
-    public function setIsBot($is_bot)
348
-    {
349
-        $this->is_bot = filter_var($is_bot, FILTER_VALIDATE_BOOLEAN);
350
-    }
351
-
352
-
353
-    /**
354
-     * @return bool
355
-     */
356
-    public function isActivation()
357
-    {
358
-        return $this->request_type->isActivation();
359
-    }
360
-
361
-
362
-    /**
363
-     * @param $is_activation
364
-     * @return bool
365
-     */
366
-    public function setIsActivation($is_activation)
367
-    {
368
-        return $this->request_type->setIsActivation($is_activation);
369
-    }
370
-
371
-
372
-    /**
373
-     * @return bool
374
-     */
375
-    public function isAdmin()
376
-    {
377
-        return $this->request_type->isAdmin();
378
-    }
379
-
380
-
381
-    /**
382
-     * @return bool
383
-     */
384
-    public function isAdminAjax()
385
-    {
386
-        return $this->request_type->isAdminAjax();
387
-    }
388
-
389
-
390
-    /**
391
-     * @return bool
392
-     */
393
-    public function isAjax()
394
-    {
395
-        return $this->request_type->isAjax();
396
-    }
397
-
398
-
399
-    /**
400
-     * @return bool
401
-     */
402
-    public function isEeAjax()
403
-    {
404
-        return $this->request_type->isEeAjax();
405
-    }
406
-
407
-
408
-    /**
409
-     * @return bool
410
-     */
411
-    public function isOtherAjax()
412
-    {
413
-        return $this->request_type->isOtherAjax();
414
-    }
415
-
416
-
417
-    /**
418
-     * @return bool
419
-     */
420
-    public function isApi()
421
-    {
422
-        return $this->request_type->isApi();
423
-    }
424
-
425
-
426
-    /**
427
-     * @return bool
428
-     */
429
-    public function isCli()
430
-    {
431
-        return $this->request_type->isCli();
432
-    }
433
-
434
-
435
-    /**
436
-     * @return bool
437
-     */
438
-    public function isCron()
439
-    {
440
-        return $this->request_type->isCron();
441
-    }
442
-
443
-
444
-    /**
445
-     * @return bool
446
-     */
447
-    public function isFeed()
448
-    {
449
-        return $this->request_type->isFeed();
450
-    }
451
-
452
-
453
-    /**
454
-     * @return bool
455
-     */
456
-    public function isFrontend()
457
-    {
458
-        return $this->request_type->isFrontend();
459
-    }
460
-
461
-
462
-    /**
463
-     * @return bool
464
-     */
465
-    public function isFrontAjax()
466
-    {
467
-        return $this->request_type->isFrontAjax();
468
-    }
469
-
470
-
471
-    /**
472
-     * @return bool
473
-     */
474
-    public function isGQL()
475
-    {
476
-        return $this->request_type->isGQL();
477
-    }
478
-
479
-
480
-    /**
481
-     * @return bool
482
-     */
483
-    public function isIframe()
484
-    {
485
-        return $this->request_type->isIframe();
486
-    }
487
-
488
-
489
-
490
-    /**
491
-     * @return bool
492
-     */
493
-    public function isUnitTesting()
494
-    {
495
-        return $this->request_type->isUnitTesting();
496
-    }
497
-
498
-
499
-    /**
500
-     * @return bool
501
-     */
502
-    public function isWordPressApi()
503
-    {
504
-        return $this->request_type->isWordPressApi();
505
-    }
506
-
507
-
508
-    /**
509
-     * @return bool
510
-     */
511
-    public function isWordPressHeartbeat()
512
-    {
513
-        return $this->request_type->isWordPressHeartbeat();
514
-    }
515
-
516
-
517
-    /**
518
-     * @return bool
519
-     */
520
-    public function isWordPressScrape()
521
-    {
522
-        return $this->request_type->isWordPressScrape();
523
-    }
524
-
525
-
526
-    /**
527
-     * @return string
528
-     */
529
-    public function slug()
530
-    {
531
-        return $this->request_type->slug();
532
-    }
533
-
534
-
535
-    /**
536
-     * returns the path portion of the current request URI with both the WP Root (home_url()) and query params removed
537
-     *
538
-     * @return string
539
-     * @since   $VID:$
540
-     */
541
-    public function requestPath()
542
-    {
543
-        return $this->requestUri(true, true);
544
-    }
545
-
546
-
547
-    /**
548
-     * returns true if the last segment of the current request path (without params) matches the provided string
549
-     *
550
-     * @param string $uri_segment
551
-     * @return bool
552
-     * @since   $VID:$
553
-     */
554
-    public function currentPageIs($uri_segment)
555
-    {
556
-        $request_path = $this->requestPath();
557
-        $current_page = explode('/', $request_path);
558
-        return end($current_page) === $uri_segment;
559
-    }
560
-
561
-
562
-    /**
563
-     * @return RequestTypeContextCheckerInterface
564
-     */
565
-    public function getRequestType(): RequestTypeContextCheckerInterface
566
-    {
567
-        return $this->request_type;
568
-    }
19
+	/**
20
+	 * $_COOKIE parameters
21
+	 *
22
+	 * @var array
23
+	 */
24
+	protected $cookies;
25
+
26
+	/**
27
+	 * $_FILES parameters
28
+	 *
29
+	 * @var array
30
+	 */
31
+	protected $files;
32
+
33
+	/**
34
+	 * true if current user appears to be some kind of bot
35
+	 *
36
+	 * @var bool
37
+	 */
38
+	protected $is_bot;
39
+
40
+	/**
41
+	 * @var RequestParams
42
+	 */
43
+	protected $request_params;
44
+
45
+	/**
46
+	 * @var RequestTypeContextCheckerInterface
47
+	 */
48
+	protected $request_type;
49
+
50
+	/**
51
+	 * @var ServerParams
52
+	 */
53
+	protected $server_params;
54
+
55
+
56
+	public function __construct(
57
+		RequestParams $request_params,
58
+		ServerParams $server_params,
59
+		array $cookies = [],
60
+		array $files = []
61
+	) {
62
+		$this->cookies = ! empty($cookies)
63
+			? $cookies
64
+			: filter_input_array(INPUT_COOKIE, FILTER_SANITIZE_STRING);
65
+		$this->files          = ! empty($files) ? $files : $_FILES;
66
+		$this->request_params = $request_params;
67
+		$this->server_params  = $server_params;
68
+	}
69
+
70
+
71
+	/**
72
+	 * @param RequestTypeContextCheckerInterface $type
73
+	 */
74
+	public function setRequestTypeContextChecker(RequestTypeContextCheckerInterface $type)
75
+	{
76
+		$this->request_type = $type;
77
+	}
78
+
79
+
80
+	/**
81
+	 * @return array
82
+	 */
83
+	public function getParams()
84
+	{
85
+		return $this->request_params->getParams();
86
+	}
87
+
88
+
89
+	/**
90
+	 * @return array
91
+	 */
92
+	public function postParams()
93
+	{
94
+		return $this->request_params->postParams();
95
+	}
96
+
97
+
98
+	/**
99
+	 * @return array
100
+	 */
101
+	public function cookieParams()
102
+	{
103
+		return $this->cookies;
104
+	}
105
+
106
+
107
+	/**
108
+	 * @return array
109
+	 */
110
+	public function serverParams()
111
+	{
112
+		return $this->server_params->getAllServerParams();
113
+	}
114
+
115
+
116
+	/**
117
+	 * @param string $key
118
+	 * @param mixed|null $default
119
+	 * @return array|int|float|string
120
+	 */
121
+	public function getServerParam($key, $default = null)
122
+	{
123
+		return $this->server_params->getServerParam($key, $default);
124
+	}
125
+
126
+
127
+	/**
128
+	 * @param string                 $key
129
+	 * @param array|int|float|string $value
130
+	 * @param bool                   $set_global_too
131
+	 * @return void
132
+	 */
133
+	public function setServerParam(string $key, $value, bool $set_global_too = false)
134
+	{
135
+		$this->server_params->setServerParam($key, $value, $set_global_too);
136
+	}
137
+
138
+
139
+	/**
140
+	 * @param string $key
141
+	 * @return bool
142
+	 */
143
+	public function serverParamIsSet($key)
144
+	{
145
+		return $this->server_params->serverParamIsSet($key);
146
+	}
147
+
148
+
149
+	/**
150
+	 * @return array
151
+	 */
152
+	public function filesParams()
153
+	{
154
+		return $this->files;
155
+	}
156
+
157
+
158
+	/**
159
+	 * returns sanitized contents of $_REQUEST
160
+	 *
161
+	 * @return array
162
+	 */
163
+	public function requestParams()
164
+	{
165
+		return $this->request_params->requestParams();
166
+	}
167
+
168
+
169
+	/**
170
+	 * @param string     $key
171
+	 * @param mixed|null $value
172
+	 * @param bool       $override_ee
173
+	 * @return void
174
+	 */
175
+	public function setRequestParam($key, $value, $override_ee = false)
176
+	{
177
+		$this->request_params->setRequestParam($key, $value, $override_ee);
178
+	}
179
+
180
+
181
+	/**
182
+	 * merges the incoming array of parameters into the existing request parameters
183
+	 *
184
+	 * @param array $request_params
185
+	 * @return void
186
+	 * @since   4.10.24.p
187
+	 */
188
+	public function mergeRequestParams(array $request_params)
189
+	{
190
+		$this->request_params->mergeRequestParams($request_params);
191
+	}
192
+
193
+
194
+	/**
195
+	 * returns sanitized value for a request param if the given key exists
196
+	 *
197
+	 * @param string     $key
198
+	 * @param mixed|null $default
199
+	 * @param string     $type      the expected data type for the parameter's value, ie: string, int, bool, etc
200
+	 * @param bool       $is_array  if true, then parameter value will be treated as an array of $type
201
+	 * @param string     $delimiter for CSV type strings that should be returned as an array
202
+	 * @return array|bool|float|int|string
203
+	 */
204
+	public function getRequestParam($key, $default = null, $type = DataType::STRING, $is_array = false, $delimiter = '')
205
+	{
206
+		return $this->request_params->getRequestParam($key, $default, $type, $is_array, $delimiter);
207
+	}
208
+
209
+
210
+	/**
211
+	 * check if param exists
212
+	 *
213
+	 * @param string $key
214
+	 * @return bool
215
+	 */
216
+	public function requestParamIsSet($key)
217
+	{
218
+		return $this->request_params->requestParamIsSet($key);
219
+	}
220
+
221
+
222
+	/**
223
+	 * check if a request parameter exists whose key that matches the supplied wildcard pattern
224
+	 * and return the sanitized value for the first match found
225
+	 * wildcards can be either of the following:
226
+	 *      ? to represent a single character of any type
227
+	 *      * to represent one or more characters of any type
228
+	 *
229
+	 * @param string     $pattern
230
+	 * @param mixed|null $default
231
+	 * @param string     $type      the expected data type for the parameter's value, ie: string, int, bool, etc
232
+	 * @param bool       $is_array  if true, then parameter value will be treated as an array of $type
233
+	 * @param string     $delimiter for CSV type strings that should be returned as an array
234
+	 * @return array|bool|float|int|string
235
+	 */
236
+	public function getMatch($pattern, $default = null, $type = DataType::STRING, $is_array = false, $delimiter = '')
237
+	{
238
+		return $this->request_params->getMatch($pattern, $default, $type, $is_array, $delimiter);
239
+	}
240
+
241
+
242
+	/**
243
+	 * check if a request parameter exists whose key matches the supplied wildcard pattern
244
+	 * wildcards can be either of the following:
245
+	 *      ? to represent a single character of any type
246
+	 *      * to represent one or more characters of any type
247
+	 * returns true if a match is found or false if not
248
+	 *
249
+	 * @param string $pattern
250
+	 * @return bool
251
+	 */
252
+	public function matches($pattern)
253
+	{
254
+		return $this->request_params->matches($pattern);
255
+	}
256
+
257
+
258
+	/**
259
+	 * remove param
260
+	 *
261
+	 * @param      $key
262
+	 * @param bool $unset_from_global_too
263
+	 */
264
+	public function unSetRequestParam($key, $unset_from_global_too = false)
265
+	{
266
+		$this->request_params->unSetRequestParam($key, $unset_from_global_too);
267
+	}
268
+
269
+
270
+	/**
271
+	 * remove params
272
+	 *
273
+	 * @param array $keys
274
+	 * @param bool  $unset_from_global_too
275
+	 */
276
+	public function unSetRequestParams(array $keys, $unset_from_global_too = false)
277
+	{
278
+		$this->request_params->unSetRequestParams($keys, $unset_from_global_too);
279
+	}
280
+
281
+
282
+	/**
283
+	 * @param string $key
284
+	 * @param bool   $unset_from_global_too
285
+	 * @return void
286
+	 */
287
+	public function unSetServerParam(string $key, bool $unset_from_global_too = false)
288
+	{
289
+		$this->server_params->unSetServerParam($key, $unset_from_global_too);
290
+	}
291
+
292
+
293
+	/**
294
+	 * @return string
295
+	 */
296
+	public function ipAddress()
297
+	{
298
+		return $this->server_params->ipAddress();
299
+	}
300
+
301
+
302
+	/**
303
+	 * Gets the request's literal URI. Related to `requestUriAfterSiteHomeUri`, see its description for a comparison.
304
+	 *
305
+	 * @param boolean $relativeToWpRoot    If home_url() is "http://mysite.com/wp/", and a request comes to
306
+	 *                                     "http://mysite.com/wp/wp-json", setting $relativeToWpRoot=true will return
307
+	 *                                     "/wp-json", whereas $relativeToWpRoot=false will return "/wp/wp-json/".
308
+	 * @param boolean $remove_query_params whether or not to return the uri with all query params removed.
309
+	 * @return string
310
+	 */
311
+	public function requestUri($relativeToWpRoot = false, $remove_query_params = false)
312
+	{
313
+		return $this->server_params->requestUri($relativeToWpRoot);
314
+	}
315
+
316
+
317
+	/**
318
+	 * @return string
319
+	 */
320
+	public function userAgent()
321
+	{
322
+		return $this->server_params->userAgent();
323
+	}
324
+
325
+
326
+	/**
327
+	 * @param string $user_agent
328
+	 */
329
+	public function setUserAgent($user_agent = '')
330
+	{
331
+		$this->server_params->setUserAgent($user_agent);
332
+	}
333
+
334
+
335
+	/**
336
+	 * @return bool
337
+	 */
338
+	public function isBot()
339
+	{
340
+		return $this->is_bot;
341
+	}
342
+
343
+
344
+	/**
345
+	 * @param bool $is_bot
346
+	 */
347
+	public function setIsBot($is_bot)
348
+	{
349
+		$this->is_bot = filter_var($is_bot, FILTER_VALIDATE_BOOLEAN);
350
+	}
351
+
352
+
353
+	/**
354
+	 * @return bool
355
+	 */
356
+	public function isActivation()
357
+	{
358
+		return $this->request_type->isActivation();
359
+	}
360
+
361
+
362
+	/**
363
+	 * @param $is_activation
364
+	 * @return bool
365
+	 */
366
+	public function setIsActivation($is_activation)
367
+	{
368
+		return $this->request_type->setIsActivation($is_activation);
369
+	}
370
+
371
+
372
+	/**
373
+	 * @return bool
374
+	 */
375
+	public function isAdmin()
376
+	{
377
+		return $this->request_type->isAdmin();
378
+	}
379
+
380
+
381
+	/**
382
+	 * @return bool
383
+	 */
384
+	public function isAdminAjax()
385
+	{
386
+		return $this->request_type->isAdminAjax();
387
+	}
388
+
389
+
390
+	/**
391
+	 * @return bool
392
+	 */
393
+	public function isAjax()
394
+	{
395
+		return $this->request_type->isAjax();
396
+	}
397
+
398
+
399
+	/**
400
+	 * @return bool
401
+	 */
402
+	public function isEeAjax()
403
+	{
404
+		return $this->request_type->isEeAjax();
405
+	}
406
+
407
+
408
+	/**
409
+	 * @return bool
410
+	 */
411
+	public function isOtherAjax()
412
+	{
413
+		return $this->request_type->isOtherAjax();
414
+	}
415
+
416
+
417
+	/**
418
+	 * @return bool
419
+	 */
420
+	public function isApi()
421
+	{
422
+		return $this->request_type->isApi();
423
+	}
424
+
425
+
426
+	/**
427
+	 * @return bool
428
+	 */
429
+	public function isCli()
430
+	{
431
+		return $this->request_type->isCli();
432
+	}
433
+
434
+
435
+	/**
436
+	 * @return bool
437
+	 */
438
+	public function isCron()
439
+	{
440
+		return $this->request_type->isCron();
441
+	}
442
+
443
+
444
+	/**
445
+	 * @return bool
446
+	 */
447
+	public function isFeed()
448
+	{
449
+		return $this->request_type->isFeed();
450
+	}
451
+
452
+
453
+	/**
454
+	 * @return bool
455
+	 */
456
+	public function isFrontend()
457
+	{
458
+		return $this->request_type->isFrontend();
459
+	}
460
+
461
+
462
+	/**
463
+	 * @return bool
464
+	 */
465
+	public function isFrontAjax()
466
+	{
467
+		return $this->request_type->isFrontAjax();
468
+	}
469
+
470
+
471
+	/**
472
+	 * @return bool
473
+	 */
474
+	public function isGQL()
475
+	{
476
+		return $this->request_type->isGQL();
477
+	}
478
+
479
+
480
+	/**
481
+	 * @return bool
482
+	 */
483
+	public function isIframe()
484
+	{
485
+		return $this->request_type->isIframe();
486
+	}
487
+
488
+
489
+
490
+	/**
491
+	 * @return bool
492
+	 */
493
+	public function isUnitTesting()
494
+	{
495
+		return $this->request_type->isUnitTesting();
496
+	}
497
+
498
+
499
+	/**
500
+	 * @return bool
501
+	 */
502
+	public function isWordPressApi()
503
+	{
504
+		return $this->request_type->isWordPressApi();
505
+	}
506
+
507
+
508
+	/**
509
+	 * @return bool
510
+	 */
511
+	public function isWordPressHeartbeat()
512
+	{
513
+		return $this->request_type->isWordPressHeartbeat();
514
+	}
515
+
516
+
517
+	/**
518
+	 * @return bool
519
+	 */
520
+	public function isWordPressScrape()
521
+	{
522
+		return $this->request_type->isWordPressScrape();
523
+	}
524
+
525
+
526
+	/**
527
+	 * @return string
528
+	 */
529
+	public function slug()
530
+	{
531
+		return $this->request_type->slug();
532
+	}
533
+
534
+
535
+	/**
536
+	 * returns the path portion of the current request URI with both the WP Root (home_url()) and query params removed
537
+	 *
538
+	 * @return string
539
+	 * @since   $VID:$
540
+	 */
541
+	public function requestPath()
542
+	{
543
+		return $this->requestUri(true, true);
544
+	}
545
+
546
+
547
+	/**
548
+	 * returns true if the last segment of the current request path (without params) matches the provided string
549
+	 *
550
+	 * @param string $uri_segment
551
+	 * @return bool
552
+	 * @since   $VID:$
553
+	 */
554
+	public function currentPageIs($uri_segment)
555
+	{
556
+		$request_path = $this->requestPath();
557
+		$current_page = explode('/', $request_path);
558
+		return end($current_page) === $uri_segment;
559
+	}
560
+
561
+
562
+	/**
563
+	 * @return RequestTypeContextCheckerInterface
564
+	 */
565
+	public function getRequestType(): RequestTypeContextCheckerInterface
566
+	{
567
+		return $this->request_type;
568
+	}
569 569
 }
Please login to merge, or discard this patch.
core/helpers/EEH_Template.helper.php 2 patches
Indentation   +920 added lines, -920 removed lines patch added patch discarded remove patch
@@ -7,36 +7,36 @@  discard block
 block discarded – undo
7 7
 use EventEspresso\core\services\request\sanitizers\AllowedTags;
8 8
 
9 9
 if (! function_exists('espresso_get_template_part')) {
10
-    /**
11
-     * espresso_get_template_part
12
-     * basically a copy of the WordPress get_template_part() function but uses EEH_Template::locate_template() instead, and doesn't add base versions of files
13
-     * so not a very useful function at all except that it adds familiarity PLUS filtering based off of the entire template part name
14
-     *
15
-     * @param string $slug The slug name for the generic template.
16
-     * @param string $name The name of the specialised template.
17
-     */
18
-    function espresso_get_template_part($slug = null, $name = null)
19
-    {
20
-        EEH_Template::get_template_part($slug, $name);
21
-    }
10
+	/**
11
+	 * espresso_get_template_part
12
+	 * basically a copy of the WordPress get_template_part() function but uses EEH_Template::locate_template() instead, and doesn't add base versions of files
13
+	 * so not a very useful function at all except that it adds familiarity PLUS filtering based off of the entire template part name
14
+	 *
15
+	 * @param string $slug The slug name for the generic template.
16
+	 * @param string $name The name of the specialised template.
17
+	 */
18
+	function espresso_get_template_part($slug = null, $name = null)
19
+	{
20
+		EEH_Template::get_template_part($slug, $name);
21
+	}
22 22
 }
23 23
 
24 24
 
25 25
 if (! function_exists('espresso_get_object_css_class')) {
26
-    /**
27
-     * espresso_get_object_css_class - attempts to generate a css class based on the type of EE object passed
28
-     *
29
-     * @param EE_Base_Class $object the EE object the css class is being generated for
30
-     * @param string        $prefix added to the beginning of the generated class
31
-     * @param string        $suffix added to the end of the generated class
32
-     * @return string
33
-     * @throws EE_Error
34
-     * @throws ReflectionException
35
-     */
36
-    function espresso_get_object_css_class($object = null, $prefix = '', $suffix = '')
37
-    {
38
-        return EEH_Template::get_object_css_class($object, $prefix, $suffix);
39
-    }
26
+	/**
27
+	 * espresso_get_object_css_class - attempts to generate a css class based on the type of EE object passed
28
+	 *
29
+	 * @param EE_Base_Class $object the EE object the css class is being generated for
30
+	 * @param string        $prefix added to the beginning of the generated class
31
+	 * @param string        $suffix added to the end of the generated class
32
+	 * @return string
33
+	 * @throws EE_Error
34
+	 * @throws ReflectionException
35
+	 */
36
+	function espresso_get_object_css_class($object = null, $prefix = '', $suffix = '')
37
+	{
38
+		return EEH_Template::get_object_css_class($object, $prefix, $suffix);
39
+	}
40 40
 }
41 41
 
42 42
 
@@ -50,640 +50,640 @@  discard block
 block discarded – undo
50 50
  */
51 51
 class EEH_Template
52 52
 {
53
-    private static $_espresso_themes = [];
54
-
55
-
56
-    /**
57
-     *    is_espresso_theme - returns TRUE or FALSE on whether the currently active WP theme is an espresso theme
58
-     *
59
-     * @return boolean
60
-     */
61
-    public static function is_espresso_theme()
62
-    {
63
-        return wp_get_theme()->get('TextDomain') === 'event_espresso';
64
-    }
65
-
66
-
67
-    /**
68
-     *    load_espresso_theme_functions - if current theme is an espresso theme, or uses ee theme template parts, then
69
-     *    load its functions.php file ( if not already loaded )
70
-     *
71
-     * @return void
72
-     */
73
-    public static function load_espresso_theme_functions()
74
-    {
75
-        if (! defined('EE_THEME_FUNCTIONS_LOADED')) {
76
-            if (is_readable(EE_PUBLIC . EE_Config::get_current_theme() . '/functions.php')) {
77
-                require_once(EE_PUBLIC . EE_Config::get_current_theme() . '/functions.php');
78
-            }
79
-        }
80
-    }
81
-
82
-
83
-    /**
84
-     *    get_espresso_themes - returns an array of Espresso Child themes located in the /templates/ directory
85
-     *
86
-     * @return array
87
-     */
88
-    public static function get_espresso_themes()
89
-    {
90
-        if (empty(EEH_Template::$_espresso_themes)) {
91
-            $espresso_themes = glob(EE_PUBLIC . '*', GLOB_ONLYDIR);
92
-            if (empty($espresso_themes)) {
93
-                return [];
94
-            }
95
-            if (($key = array_search('global_assets', $espresso_themes)) !== false) {
96
-                unset($espresso_themes[ $key ]);
97
-            }
98
-            EEH_Template::$_espresso_themes = [];
99
-            foreach ($espresso_themes as $espresso_theme) {
100
-                EEH_Template::$_espresso_themes[ basename($espresso_theme) ] = $espresso_theme;
101
-            }
102
-        }
103
-        return EEH_Template::$_espresso_themes;
104
-    }
105
-
106
-
107
-    /**
108
-     * EEH_Template::get_template_part
109
-     * basically a copy of the WordPress get_template_part() function but uses EEH_Template::locate_template() instead,
110
-     * and doesn't add base versions of files so not a very useful function at all except that it adds familiarity PLUS
111
-     * filtering based off of the entire template part name
112
-     *
113
-     * @param string $slug The slug name for the generic template.
114
-     * @param string $name The name of the specialised template.
115
-     * @param array  $template_args
116
-     * @param bool   $return_string
117
-     * @return string        the html output for the formatted money value
118
-     */
119
-    public static function get_template_part(
120
-        $slug = null,
121
-        $name = null,
122
-        $template_args = [],
123
-        $return_string = false
124
-    ) {
125
-        do_action("get_template_part_{$slug}-{$name}", $slug, $name);
126
-        $templates = [];
127
-        $name      = (string) $name;
128
-        if ($name != '') {
129
-            $templates[] = "{$slug}-{$name}.php";
130
-        }
131
-        // allow template parts to be turned off via something like:
132
-        // add_filter( 'FHEE__content_espresso_events_tickets_template__display_datetimes', '__return_false' );
133
-        if (apply_filters("FHEE__EEH_Template__get_template_part__display__{$slug}_{$name}", true)) {
134
-            return EEH_Template::locate_template($templates, $template_args, true, $return_string);
135
-        }
136
-        return '';
137
-    }
138
-
139
-
140
-    /**
141
-     *    locate_template
142
-     *    locate a template file by looking in the following places, in the following order:
143
-     *        <server path up to>/wp-content/themes/<current active WordPress theme>/
144
-     *        <assumed full absolute server path>
145
-     *        <server path up to>/wp-content/uploads/espresso/templates/<current EE theme>/
146
-     *        <server path up to>/wp-content/uploads/espresso/templates/
147
-     *        <server path up to>/wp-content/plugins/<EE4 folder>/public/<current EE theme>/
148
-     *        <server path up to>/wp-content/plugins/<EE4 folder>/core/templates/<current EE theme>/
149
-     *        <server path up to>/wp-content/plugins/<EE4 folder>/
150
-     *    as soon as the template is found in one of these locations, it will be returned or loaded
151
-     *        Example:
152
-     *          You are using the WordPress Twenty Sixteen theme,
153
-     *        and you want to customize the "some-event.template.php" template,
154
-     *          which is located in the "/relative/path/to/" folder relative to the main EE plugin folder.
155
-     *          Assuming WP is installed on your server in the "/home/public_html/" folder,
156
-     *        EEH_Template::locate_template() will look at the following paths in order until the template is found:
157
-     *        /home/public_html/wp-content/themes/twentysixteen/some-event.template.php
158
-     *        /relative/path/to/some-event.template.php
159
-     *        /home/public_html/wp-content/uploads/espresso/templates/Espresso_Arabica_2014/relative/path/to/some-event.template.php
160
-     *        /home/public_html/wp-content/uploads/espresso/templates/relative/path/to/some-event.template.php
161
-     *        /home/public_html/wp-content/plugins/event-espresso-core-reg/public/Espresso_Arabica_2014/relative/path/to/some-event.template.php
162
-     *        /home/public_html/wp-content/plugins/event-espresso-core-reg/core/templates/Espresso_Arabica_2014/relative/path/to/some-event.template.php
163
-     *        /home/public_html/wp-content/plugins/event-espresso-core-reg/relative/path/to/some-event.template.php
164
-     *          Had you passed an absolute path to your template that was in some other location,
165
-     *        ie: "/absolute/path/to/some-event.template.php"
166
-     *          then the search would have been :
167
-     *        /home/public_html/wp-content/themes/twentysixteen/some-event.template.php
168
-     *        /absolute/path/to/some-event.template.php
169
-     *          and stopped there upon finding it in the second location
170
-     *
171
-     * @param array|string $templates       array of template file names including extension (or just a single string)
172
-     * @param array        $template_args   an array of arguments to be extracted for use in the template
173
-     * @param boolean      $load            whether to pass the located template path on to the
174
-     *                                      EEH_Template::display_template() method or simply return it
175
-     * @param boolean      $return_string   whether to send output immediately to screen, or capture and return as a
176
-     *                                      string
177
-     * @param boolean      $check_if_custom If TRUE, this flags this method to return boolean for whether this will
178
-     *                                      generate a custom template or not. Used in places where you don't actually
179
-     *                                      load the template, you just want to know if there's a custom version of it.
180
-     * @return mixed
181
-     * @throws DomainException
182
-     * @throws InvalidArgumentException
183
-     * @throws InvalidDataTypeException
184
-     * @throws InvalidInterfaceException
185
-     */
186
-    public static function locate_template(
187
-        $templates = [],
188
-        $template_args = [],
189
-        $load = true,
190
-        $return_string = true,
191
-        $check_if_custom = false
192
-    ) {
193
-        // first use WP locate_template to check for template in the current theme folder
194
-        $template_path = locate_template($templates);
195
-
196
-        if ($check_if_custom && ! empty($template_path)) {
197
-            return true;
198
-        }
199
-
200
-        // not in the theme
201
-        if (empty($template_path)) {
202
-            // not even a template to look for ?
203
-            if (empty($templates)) {
204
-                $loader = LoaderFactory::getLoader();
205
-                /** @var RequestInterface $request */
206
-                $request = $loader->getShared(RequestInterface::class);
207
-                // get post_type
208
-                $post_type = $request->getRequestParam('post_type');
209
-                /** @var EventEspresso\core\domain\entities\custom_post_types\CustomPostTypeDefinitions $custom_post_types */
210
-                $custom_post_types = $loader->getShared(
211
-                    'EventEspresso\core\domain\entities\custom_post_types\CustomPostTypeDefinitions'
212
-                );
213
-                // get array of EE Custom Post Types
214
-                $EE_CPTs = $custom_post_types->getDefinitions();
215
-                // build template name based on request
216
-                if (isset($EE_CPTs[ $post_type ])) {
217
-                    $archive_or_single = is_archive() ? 'archive' : '';
218
-                    $archive_or_single = is_single() ? 'single' : $archive_or_single;
219
-                    $templates         = $archive_or_single . '-' . $post_type . '.php';
220
-                }
221
-            }
222
-            // currently active EE template theme
223
-            $current_theme = EE_Config::get_current_theme();
224
-
225
-            // array of paths to folders that may contain templates
226
-            $template_folder_paths = [
227
-                // first check the /wp-content/uploads/espresso/templates/(current EE theme)/  folder for an EE theme template file
228
-                EVENT_ESPRESSO_TEMPLATE_DIR . $current_theme,
229
-                // then in the root of the /wp-content/uploads/espresso/templates/ folder
230
-                EVENT_ESPRESSO_TEMPLATE_DIR,
231
-            ];
232
-
233
-            // add core plugin folders for checking only if we're not $check_if_custom
234
-            if (! $check_if_custom) {
235
-                $core_paths            = [
236
-                    // in the  /wp-content/plugins/(EE4 folder)/public/(current EE theme)/ folder within the plugin
237
-                    EE_PUBLIC . $current_theme,
238
-                    // in the  /wp-content/plugins/(EE4 folder)/core/templates/(current EE theme)/ folder within the plugin
239
-                    EE_TEMPLATES . $current_theme,
240
-                    // or maybe relative from the plugin root: /wp-content/plugins/(EE4 folder)/
241
-                    EE_PLUGIN_DIR_PATH,
242
-                ];
243
-                $template_folder_paths = array_merge($template_folder_paths, $core_paths);
244
-            }
245
-
246
-            // now filter that array
247
-            $template_folder_paths = apply_filters(
248
-                'FHEE__EEH_Template__locate_template__template_folder_paths',
249
-                $template_folder_paths
250
-            );
251
-            $templates             = is_array($templates) ? $templates : [$templates];
252
-            $template_folder_paths =
253
-                is_array($template_folder_paths) ? $template_folder_paths : [$template_folder_paths];
254
-            // array to hold all possible template paths
255
-            $full_template_paths = [];
256
-            $file_name           = '';
257
-
258
-            // loop through $templates
259
-            foreach ($templates as $template) {
260
-                // normalize directory separators
261
-                $template                      = EEH_File::standardise_directory_separators($template);
262
-                $file_name                     = basename($template);
263
-                $template_path_minus_file_name = substr($template, 0, (strlen($file_name) * -1));
264
-                // while looping through all template folder paths
265
-                foreach ($template_folder_paths as $template_folder_path) {
266
-                    // normalize directory separators
267
-                    $template_folder_path = EEH_File::standardise_directory_separators($template_folder_path);
268
-                    // determine if any common base path exists between the two paths
269
-                    $common_base_path = EEH_Template::_find_common_base_path(
270
-                        [$template_folder_path, $template_path_minus_file_name]
271
-                    );
272
-                    if ($common_base_path !== '') {
273
-                        // both paths have a common base, so just tack the filename onto our search path
274
-                        $resolved_path = EEH_File::end_with_directory_separator($template_folder_path) . $file_name;
275
-                    } else {
276
-                        // no common base path, so let's just concatenate
277
-                        $resolved_path = EEH_File::end_with_directory_separator($template_folder_path) . $template;
278
-                    }
279
-                    // build up our template locations array by adding our resolved paths
280
-                    $full_template_paths[] = $resolved_path;
281
-                }
282
-                // if $template is an absolute path, then we'll tack it onto the start of our array so that it gets searched first
283
-                array_unshift($full_template_paths, $template);
284
-                // path to the directory of the current theme: /wp-content/themes/(current WP theme)/
285
-                array_unshift($full_template_paths, get_stylesheet_directory() . '/' . $file_name);
286
-            }
287
-            // filter final array of full template paths
288
-            $full_template_paths = apply_filters(
289
-                'FHEE__EEH_Template__locate_template__full_template_paths',
290
-                $full_template_paths,
291
-                $file_name
292
-            );
293
-            // now loop through our final array of template location paths and check each location
294
-            foreach ((array) $full_template_paths as $full_template_path) {
295
-                if (is_readable($full_template_path)) {
296
-                    $template_path = str_replace(['\\', '/'], DIRECTORY_SEPARATOR, $full_template_path);
297
-                    break;
298
-                }
299
-            }
300
-        }
301
-
302
-        // hook that can be used to display the full template path that will be used
303
-        do_action('AHEE__EEH_Template__locate_template__full_template_path', $template_path);
304
-
305
-        // if we got it and you want to see it...
306
-        if ($template_path && $load && ! $check_if_custom) {
307
-            if ($return_string) {
308
-                return EEH_Template::display_template($template_path, $template_args, true);
309
-            }
310
-            EEH_Template::display_template($template_path, $template_args);
311
-        }
312
-        return $check_if_custom && ! empty($template_path) ? true : $template_path;
313
-    }
314
-
315
-
316
-    /**
317
-     * _find_common_base_path
318
-     * given two paths, this determines if there is a common base path between the two
319
-     *
320
-     * @param array $paths
321
-     * @return string
322
-     */
323
-    protected static function _find_common_base_path($paths)
324
-    {
325
-        $last_offset      = 0;
326
-        $common_base_path = '';
327
-        while (($index = strpos($paths[0], '/', $last_offset)) !== false) {
328
-            $dir_length = $index - $last_offset + 1;
329
-            $directory  = substr($paths[0], $last_offset, $dir_length);
330
-            foreach ($paths as $path) {
331
-                if (substr($path, $last_offset, $dir_length) != $directory) {
332
-                    return $common_base_path;
333
-                }
334
-            }
335
-            $common_base_path .= $directory;
336
-            $last_offset      = $index + 1;
337
-        }
338
-        return substr($common_base_path, 0, -1);
339
-    }
340
-
341
-
342
-    /**
343
-     * load and display a template
344
-     *
345
-     * @param bool|string $template_path    server path to the file to be loaded, including file name and extension
346
-     * @param array       $template_args    an array of arguments to be extracted for use in the template
347
-     * @param boolean     $return_string    whether to send output immediately to screen, or capture and return as a
348
-     *                                      string
349
-     * @param bool        $throw_exceptions if set to true, will throw an exception if the template is either
350
-     *                                      not found or is not readable
351
-     * @return string
352
-     * @throws DomainException
353
-     */
354
-    public static function display_template(
355
-        $template_path = false,
356
-        $template_args = [],
357
-        $return_string = false,
358
-        $throw_exceptions = false
359
-    ) {
360
-
361
-        /**
362
-         * These two filters are intended for last minute changes to templates being loaded and/or template arg
363
-         * modifications.  NOTE... modifying these things can cause breakage as most templates running through
364
-         * the display_template method are templates we DON'T want modified (usually because of js
365
-         * dependencies etc).  So unless you know what you are doing, do NOT filter templates or template args
366
-         * using this.
367
-         *
368
-         * @since 4.6.0
369
-         */
370
-        $template_path = (string) apply_filters('FHEE__EEH_Template__display_template__template_path', $template_path);
371
-        $template_args = (array) apply_filters('FHEE__EEH_Template__display_template__template_args', $template_args);
372
-
373
-        // you gimme nuttin - YOU GET NUTTIN !!
374
-        if (! $template_path || ! is_readable($template_path)) {
375
-            // ignore whether template is accessible ?
376
-            if ($throw_exceptions) {
377
-                throw new DomainException(
378
-                    esc_html__('Invalid, unreadable, or missing file.', 'event_espresso')
379
-                );
380
-            }
381
-            return '';
382
-        }
383
-        // if $template_args are not in an array, then make it so
384
-        if (! is_array($template_args) && ! is_object($template_args)) {
385
-            $template_args = [$template_args];
386
-        }
387
-        extract($template_args, EXTR_SKIP);
388
-
389
-        if ($return_string) {
390
-            // because we want to return a string, we are going to capture the output
391
-            ob_start();
392
-            include($template_path);
393
-            return ob_get_clean();
394
-        }
395
-        include($template_path);
396
-        return '';
397
-    }
398
-
399
-
400
-    /**
401
-     * get_object_css_class - attempts to generate a css class based on the type of EE object passed
402
-     *
403
-     * @param EE_Base_Class $object the EE object the css class is being generated for
404
-     * @param string        $prefix added to the beginning of the generated class
405
-     * @param string        $suffix added to the end of the generated class
406
-     * @return string
407
-     * @throws EE_Error
408
-     * @throws ReflectionException
409
-     */
410
-    public static function get_object_css_class($object = null, $prefix = '', $suffix = '')
411
-    {
412
-        // in the beginning...
413
-        $prefix = ! empty($prefix) ? rtrim($prefix, '-') . '-' : '';
414
-        // da muddle
415
-        $class = '';
416
-        // the end
417
-        $suffix = ! empty($suffix) ? '-' . ltrim($suffix, '-') : '';
418
-        // is the passed object an EE object ?
419
-        if ($object instanceof EE_Base_Class) {
420
-            // grab the exact type of object
421
-            $obj_class = get_class($object);
422
-            // depending on the type of object...
423
-            switch ($obj_class) {
424
-                // no specifics just yet...
425
-                default:
426
-                    $class = strtolower(str_replace('_', '-', $obj_class));
427
-                    $class .= method_exists($obj_class, 'name') ? '-' . sanitize_title($object->name()) : '';
428
-            }
429
-        }
430
-        return $prefix . $class . $suffix;
431
-    }
432
-
433
-
434
-    /**
435
-     * EEH_Template::format_currency
436
-     * This helper takes a raw float value and formats it according to the default config country currency settings, or
437
-     * the country currency settings from the supplied country ISO code
438
-     *
439
-     * @param float   $amount       raw money value
440
-     * @param boolean $return_raw   whether to return the formatted float value only with no currency sign or code
441
-     * @param boolean $display_code whether to display the country code (USD). Default = TRUE
442
-     * @param string  $CNT_ISO      2 letter ISO code for a country
443
-     * @param string  $cur_code_span_class
444
-     * @return string        the html output for the formatted money value
445
-     */
446
-    public static function format_currency(
447
-        $amount = null,
448
-        $return_raw = false,
449
-        $display_code = true,
450
-        $CNT_ISO = '',
451
-        $cur_code_span_class = 'currency-code'
452
-    ) {
453
-        // ensure amount was received
454
-        if ($amount === null) {
455
-            $msg = esc_html__('In order to format currency, an amount needs to be passed.', 'event_espresso');
456
-            EE_Error::add_error($msg, __FILE__, __FUNCTION__, __LINE__);
457
-            return '';
458
-        }
459
-        // ensure amount is float
460
-        $amount  = (float) apply_filters('FHEE__EEH_Template__format_currency__raw_amount', (float) $amount);
461
-        $CNT_ISO = apply_filters('FHEE__EEH_Template__format_currency__CNT_ISO', $CNT_ISO, $amount);
462
-        // filter raw amount (allows 0.00 to be changed to "free" for example)
463
-        $amount_formatted = apply_filters('FHEE__EEH_Template__format_currency__amount', $amount, $return_raw);
464
-        // still a number, or was amount converted to a string like "free" ?
465
-        if (! is_float($amount_formatted)) {
466
-            return esc_html($amount_formatted);
467
-        }
468
-        try {
469
-            // was a country ISO code passed ? if so generate currency config object for that country
470
-            $mny = $CNT_ISO !== '' ? new EE_Currency_Config($CNT_ISO) : null;
471
-        } catch (Exception $e) {
472
-            // eat exception
473
-            $mny = null;
474
-        }
475
-        // verify results
476
-        if (! $mny instanceof EE_Currency_Config) {
477
-            // set default config country currency settings
478
-            $mny = EE_Registry::instance()->CFG->currency instanceof EE_Currency_Config
479
-                ? EE_Registry::instance()->CFG->currency
480
-                : new EE_Currency_Config();
481
-        }
482
-        // format float
483
-        $amount_formatted = number_format($amount, $mny->dec_plc, $mny->dec_mrk, $mny->thsnds);
484
-        // add formatting ?
485
-        if (! $return_raw) {
486
-            // add currency sign
487
-            if ($mny->sign_b4) {
488
-                if ($amount >= 0) {
489
-                    $amount_formatted = $mny->sign . $amount_formatted;
490
-                } else {
491
-                    $amount_formatted = '-' . $mny->sign . str_replace('-', '', $amount_formatted);
492
-                }
493
-            } else {
494
-                $amount_formatted = $amount_formatted . $mny->sign;
495
-            }
496
-
497
-            // filter to allow global setting of display_code
498
-            $display_code = (bool) apply_filters(
499
-                'FHEE__EEH_Template__format_currency__display_code',
500
-                $display_code
501
-            );
502
-
503
-            // add currency code ?
504
-            $amount_formatted = $display_code
505
-                ? $amount_formatted . ' <span class="' . $cur_code_span_class . '">(' . $mny->code . ')</span>'
506
-                : $amount_formatted;
507
-        }
508
-        // filter results
509
-        $amount_formatted = apply_filters(
510
-            'FHEE__EEH_Template__format_currency__amount_formatted',
511
-            $amount_formatted,
512
-            $mny,
513
-            $return_raw
514
-        );
515
-        // clean up vars
516
-        unset($mny);
517
-        // return formatted currency amount
518
-        return $amount_formatted;
519
-    }
520
-
521
-
522
-    /**
523
-     * This function is used for outputting the localized label for a given status id in the schema requested (and
524
-     * possibly plural).  The intended use of this function is only for cases where wanting a label outside of a
525
-     * related status model or model object (i.e. in documentation etc.)
526
-     *
527
-     * @param string  $status_id  Status ID matching a registered status in the esp_status table.  If there is no
528
-     *                            match, then 'Unknown' will be returned.
529
-     * @param boolean $plural     Whether to return plural or not
530
-     * @param string  $schema     'UPPER', 'lower', or 'Sentence'
531
-     * @return string             The localized label for the status id.
532
-     * @throws EE_Error
533
-     */
534
-    public static function pretty_status($status_id, $plural = false, $schema = 'upper')
535
-    {
536
-        $status = EEM_Status::instance()->localized_status(
537
-            [$status_id => esc_html__('unknown', 'event_espresso')],
538
-            $plural,
539
-            $schema
540
-        );
541
-        return $status[ $status_id ];
542
-    }
543
-
544
-
545
-    /**
546
-     * This helper just returns a button or link for the given parameters
547
-     *
548
-     * @param string $url   the url for the link, note that `esc_url` will be called on it
549
-     * @param string $label What is the label you want displayed for the button
550
-     * @param string $class what class is used for the button (defaults to 'button--primary')
551
-     * @param string $icon
552
-     * @param string $title
553
-     * @return string the html output for the button
554
-     */
555
-    public static function get_button_or_link($url, $label, $class = 'button button--primary', $icon = '', $title = '')
556
-    {
557
-        $icon_html = '';
558
-        if (! empty($icon)) {
559
-            $dashicons = preg_split("(ee-icon |dashicons )", $icon);
560
-            $dashicons = array_filter($dashicons);
561
-            $count     = count($dashicons);
562
-            $icon_html .= $count > 1 ? '<span class="ee-composite-dashicon">' : '';
563
-            foreach ($dashicons as $dashicon) {
564
-                $type      = strpos($dashicon, 'ee-icon') !== false ? 'ee-icon ' : 'dashicons ';
565
-                $icon_html .= '<span class="' . $type . $dashicon . '"></span>';
566
-            }
567
-            $icon_html .= $count > 1 ? '</span>' : '';
568
-        }
569
-        // sanitize & escape
570
-        $id    = sanitize_title_with_dashes($label);
571
-        $url   = esc_url_raw($url);
572
-        $class = esc_attr($class);
573
-        $title = esc_attr($title);
574
-        $class .= $title ? ' ee-aria-tooltip' : '';
575
-        $title = $title ? " aria-label='{$title}'" : '';
576
-        $label = esc_html($label);
577
-        return "<a id='{$id}' href='{$url}' class='{$class}'{$title}>{$icon_html}{$label}</a>";
578
-    }
579
-
580
-
581
-    /**
582
-     * This returns a generated link that will load the related help tab on admin pages.
583
-     *
584
-     * @param string      $help_tab_id the id for the connected help tab
585
-     * @param bool|string $page        The page identifier for the page the help tab is on
586
-     * @param bool|string $action      The action (route) for the admin page the help tab is on.
587
-     * @param bool|string $icon_style  (optional) include css class for the style you want to use for the help icon.
588
-     * @param bool|string $help_text   (optional) send help text you want to use for the link if default not to be used
589
-     * @return string              generated link
590
-     */
591
-    public static function get_help_tab_link(
592
-        $help_tab_id,
593
-        $page = false,
594
-        $action = false,
595
-        $icon_style = false,
596
-        $help_text = false
597
-    ) {
598
-        $allowedtags = AllowedTags::getAllowedTags();
599
-        /** @var RequestInterface $request */
600
-        $request = LoaderFactory::getLoader()->getShared(RequestInterface::class);
601
-        $page    = $page ?: $request->getRequestParam('page', '', 'key');
602
-        $action  = $action ?: $request->getRequestParam('action', 'default', 'key');
603
-
604
-
605
-        $help_tab_lnk = $page . '-' . $action . '-' . $help_tab_id;
606
-        $icon      = ! $icon_style ? 'dashicons-editor-help' : $icon_style;
607
-        $help_text = ! $help_text ? '' : $help_text;
608
-        return '
53
+	private static $_espresso_themes = [];
54
+
55
+
56
+	/**
57
+	 *    is_espresso_theme - returns TRUE or FALSE on whether the currently active WP theme is an espresso theme
58
+	 *
59
+	 * @return boolean
60
+	 */
61
+	public static function is_espresso_theme()
62
+	{
63
+		return wp_get_theme()->get('TextDomain') === 'event_espresso';
64
+	}
65
+
66
+
67
+	/**
68
+	 *    load_espresso_theme_functions - if current theme is an espresso theme, or uses ee theme template parts, then
69
+	 *    load its functions.php file ( if not already loaded )
70
+	 *
71
+	 * @return void
72
+	 */
73
+	public static function load_espresso_theme_functions()
74
+	{
75
+		if (! defined('EE_THEME_FUNCTIONS_LOADED')) {
76
+			if (is_readable(EE_PUBLIC . EE_Config::get_current_theme() . '/functions.php')) {
77
+				require_once(EE_PUBLIC . EE_Config::get_current_theme() . '/functions.php');
78
+			}
79
+		}
80
+	}
81
+
82
+
83
+	/**
84
+	 *    get_espresso_themes - returns an array of Espresso Child themes located in the /templates/ directory
85
+	 *
86
+	 * @return array
87
+	 */
88
+	public static function get_espresso_themes()
89
+	{
90
+		if (empty(EEH_Template::$_espresso_themes)) {
91
+			$espresso_themes = glob(EE_PUBLIC . '*', GLOB_ONLYDIR);
92
+			if (empty($espresso_themes)) {
93
+				return [];
94
+			}
95
+			if (($key = array_search('global_assets', $espresso_themes)) !== false) {
96
+				unset($espresso_themes[ $key ]);
97
+			}
98
+			EEH_Template::$_espresso_themes = [];
99
+			foreach ($espresso_themes as $espresso_theme) {
100
+				EEH_Template::$_espresso_themes[ basename($espresso_theme) ] = $espresso_theme;
101
+			}
102
+		}
103
+		return EEH_Template::$_espresso_themes;
104
+	}
105
+
106
+
107
+	/**
108
+	 * EEH_Template::get_template_part
109
+	 * basically a copy of the WordPress get_template_part() function but uses EEH_Template::locate_template() instead,
110
+	 * and doesn't add base versions of files so not a very useful function at all except that it adds familiarity PLUS
111
+	 * filtering based off of the entire template part name
112
+	 *
113
+	 * @param string $slug The slug name for the generic template.
114
+	 * @param string $name The name of the specialised template.
115
+	 * @param array  $template_args
116
+	 * @param bool   $return_string
117
+	 * @return string        the html output for the formatted money value
118
+	 */
119
+	public static function get_template_part(
120
+		$slug = null,
121
+		$name = null,
122
+		$template_args = [],
123
+		$return_string = false
124
+	) {
125
+		do_action("get_template_part_{$slug}-{$name}", $slug, $name);
126
+		$templates = [];
127
+		$name      = (string) $name;
128
+		if ($name != '') {
129
+			$templates[] = "{$slug}-{$name}.php";
130
+		}
131
+		// allow template parts to be turned off via something like:
132
+		// add_filter( 'FHEE__content_espresso_events_tickets_template__display_datetimes', '__return_false' );
133
+		if (apply_filters("FHEE__EEH_Template__get_template_part__display__{$slug}_{$name}", true)) {
134
+			return EEH_Template::locate_template($templates, $template_args, true, $return_string);
135
+		}
136
+		return '';
137
+	}
138
+
139
+
140
+	/**
141
+	 *    locate_template
142
+	 *    locate a template file by looking in the following places, in the following order:
143
+	 *        <server path up to>/wp-content/themes/<current active WordPress theme>/
144
+	 *        <assumed full absolute server path>
145
+	 *        <server path up to>/wp-content/uploads/espresso/templates/<current EE theme>/
146
+	 *        <server path up to>/wp-content/uploads/espresso/templates/
147
+	 *        <server path up to>/wp-content/plugins/<EE4 folder>/public/<current EE theme>/
148
+	 *        <server path up to>/wp-content/plugins/<EE4 folder>/core/templates/<current EE theme>/
149
+	 *        <server path up to>/wp-content/plugins/<EE4 folder>/
150
+	 *    as soon as the template is found in one of these locations, it will be returned or loaded
151
+	 *        Example:
152
+	 *          You are using the WordPress Twenty Sixteen theme,
153
+	 *        and you want to customize the "some-event.template.php" template,
154
+	 *          which is located in the "/relative/path/to/" folder relative to the main EE plugin folder.
155
+	 *          Assuming WP is installed on your server in the "/home/public_html/" folder,
156
+	 *        EEH_Template::locate_template() will look at the following paths in order until the template is found:
157
+	 *        /home/public_html/wp-content/themes/twentysixteen/some-event.template.php
158
+	 *        /relative/path/to/some-event.template.php
159
+	 *        /home/public_html/wp-content/uploads/espresso/templates/Espresso_Arabica_2014/relative/path/to/some-event.template.php
160
+	 *        /home/public_html/wp-content/uploads/espresso/templates/relative/path/to/some-event.template.php
161
+	 *        /home/public_html/wp-content/plugins/event-espresso-core-reg/public/Espresso_Arabica_2014/relative/path/to/some-event.template.php
162
+	 *        /home/public_html/wp-content/plugins/event-espresso-core-reg/core/templates/Espresso_Arabica_2014/relative/path/to/some-event.template.php
163
+	 *        /home/public_html/wp-content/plugins/event-espresso-core-reg/relative/path/to/some-event.template.php
164
+	 *          Had you passed an absolute path to your template that was in some other location,
165
+	 *        ie: "/absolute/path/to/some-event.template.php"
166
+	 *          then the search would have been :
167
+	 *        /home/public_html/wp-content/themes/twentysixteen/some-event.template.php
168
+	 *        /absolute/path/to/some-event.template.php
169
+	 *          and stopped there upon finding it in the second location
170
+	 *
171
+	 * @param array|string $templates       array of template file names including extension (or just a single string)
172
+	 * @param array        $template_args   an array of arguments to be extracted for use in the template
173
+	 * @param boolean      $load            whether to pass the located template path on to the
174
+	 *                                      EEH_Template::display_template() method or simply return it
175
+	 * @param boolean      $return_string   whether to send output immediately to screen, or capture and return as a
176
+	 *                                      string
177
+	 * @param boolean      $check_if_custom If TRUE, this flags this method to return boolean for whether this will
178
+	 *                                      generate a custom template or not. Used in places where you don't actually
179
+	 *                                      load the template, you just want to know if there's a custom version of it.
180
+	 * @return mixed
181
+	 * @throws DomainException
182
+	 * @throws InvalidArgumentException
183
+	 * @throws InvalidDataTypeException
184
+	 * @throws InvalidInterfaceException
185
+	 */
186
+	public static function locate_template(
187
+		$templates = [],
188
+		$template_args = [],
189
+		$load = true,
190
+		$return_string = true,
191
+		$check_if_custom = false
192
+	) {
193
+		// first use WP locate_template to check for template in the current theme folder
194
+		$template_path = locate_template($templates);
195
+
196
+		if ($check_if_custom && ! empty($template_path)) {
197
+			return true;
198
+		}
199
+
200
+		// not in the theme
201
+		if (empty($template_path)) {
202
+			// not even a template to look for ?
203
+			if (empty($templates)) {
204
+				$loader = LoaderFactory::getLoader();
205
+				/** @var RequestInterface $request */
206
+				$request = $loader->getShared(RequestInterface::class);
207
+				// get post_type
208
+				$post_type = $request->getRequestParam('post_type');
209
+				/** @var EventEspresso\core\domain\entities\custom_post_types\CustomPostTypeDefinitions $custom_post_types */
210
+				$custom_post_types = $loader->getShared(
211
+					'EventEspresso\core\domain\entities\custom_post_types\CustomPostTypeDefinitions'
212
+				);
213
+				// get array of EE Custom Post Types
214
+				$EE_CPTs = $custom_post_types->getDefinitions();
215
+				// build template name based on request
216
+				if (isset($EE_CPTs[ $post_type ])) {
217
+					$archive_or_single = is_archive() ? 'archive' : '';
218
+					$archive_or_single = is_single() ? 'single' : $archive_or_single;
219
+					$templates         = $archive_or_single . '-' . $post_type . '.php';
220
+				}
221
+			}
222
+			// currently active EE template theme
223
+			$current_theme = EE_Config::get_current_theme();
224
+
225
+			// array of paths to folders that may contain templates
226
+			$template_folder_paths = [
227
+				// first check the /wp-content/uploads/espresso/templates/(current EE theme)/  folder for an EE theme template file
228
+				EVENT_ESPRESSO_TEMPLATE_DIR . $current_theme,
229
+				// then in the root of the /wp-content/uploads/espresso/templates/ folder
230
+				EVENT_ESPRESSO_TEMPLATE_DIR,
231
+			];
232
+
233
+			// add core plugin folders for checking only if we're not $check_if_custom
234
+			if (! $check_if_custom) {
235
+				$core_paths            = [
236
+					// in the  /wp-content/plugins/(EE4 folder)/public/(current EE theme)/ folder within the plugin
237
+					EE_PUBLIC . $current_theme,
238
+					// in the  /wp-content/plugins/(EE4 folder)/core/templates/(current EE theme)/ folder within the plugin
239
+					EE_TEMPLATES . $current_theme,
240
+					// or maybe relative from the plugin root: /wp-content/plugins/(EE4 folder)/
241
+					EE_PLUGIN_DIR_PATH,
242
+				];
243
+				$template_folder_paths = array_merge($template_folder_paths, $core_paths);
244
+			}
245
+
246
+			// now filter that array
247
+			$template_folder_paths = apply_filters(
248
+				'FHEE__EEH_Template__locate_template__template_folder_paths',
249
+				$template_folder_paths
250
+			);
251
+			$templates             = is_array($templates) ? $templates : [$templates];
252
+			$template_folder_paths =
253
+				is_array($template_folder_paths) ? $template_folder_paths : [$template_folder_paths];
254
+			// array to hold all possible template paths
255
+			$full_template_paths = [];
256
+			$file_name           = '';
257
+
258
+			// loop through $templates
259
+			foreach ($templates as $template) {
260
+				// normalize directory separators
261
+				$template                      = EEH_File::standardise_directory_separators($template);
262
+				$file_name                     = basename($template);
263
+				$template_path_minus_file_name = substr($template, 0, (strlen($file_name) * -1));
264
+				// while looping through all template folder paths
265
+				foreach ($template_folder_paths as $template_folder_path) {
266
+					// normalize directory separators
267
+					$template_folder_path = EEH_File::standardise_directory_separators($template_folder_path);
268
+					// determine if any common base path exists between the two paths
269
+					$common_base_path = EEH_Template::_find_common_base_path(
270
+						[$template_folder_path, $template_path_minus_file_name]
271
+					);
272
+					if ($common_base_path !== '') {
273
+						// both paths have a common base, so just tack the filename onto our search path
274
+						$resolved_path = EEH_File::end_with_directory_separator($template_folder_path) . $file_name;
275
+					} else {
276
+						// no common base path, so let's just concatenate
277
+						$resolved_path = EEH_File::end_with_directory_separator($template_folder_path) . $template;
278
+					}
279
+					// build up our template locations array by adding our resolved paths
280
+					$full_template_paths[] = $resolved_path;
281
+				}
282
+				// if $template is an absolute path, then we'll tack it onto the start of our array so that it gets searched first
283
+				array_unshift($full_template_paths, $template);
284
+				// path to the directory of the current theme: /wp-content/themes/(current WP theme)/
285
+				array_unshift($full_template_paths, get_stylesheet_directory() . '/' . $file_name);
286
+			}
287
+			// filter final array of full template paths
288
+			$full_template_paths = apply_filters(
289
+				'FHEE__EEH_Template__locate_template__full_template_paths',
290
+				$full_template_paths,
291
+				$file_name
292
+			);
293
+			// now loop through our final array of template location paths and check each location
294
+			foreach ((array) $full_template_paths as $full_template_path) {
295
+				if (is_readable($full_template_path)) {
296
+					$template_path = str_replace(['\\', '/'], DIRECTORY_SEPARATOR, $full_template_path);
297
+					break;
298
+				}
299
+			}
300
+		}
301
+
302
+		// hook that can be used to display the full template path that will be used
303
+		do_action('AHEE__EEH_Template__locate_template__full_template_path', $template_path);
304
+
305
+		// if we got it and you want to see it...
306
+		if ($template_path && $load && ! $check_if_custom) {
307
+			if ($return_string) {
308
+				return EEH_Template::display_template($template_path, $template_args, true);
309
+			}
310
+			EEH_Template::display_template($template_path, $template_args);
311
+		}
312
+		return $check_if_custom && ! empty($template_path) ? true : $template_path;
313
+	}
314
+
315
+
316
+	/**
317
+	 * _find_common_base_path
318
+	 * given two paths, this determines if there is a common base path between the two
319
+	 *
320
+	 * @param array $paths
321
+	 * @return string
322
+	 */
323
+	protected static function _find_common_base_path($paths)
324
+	{
325
+		$last_offset      = 0;
326
+		$common_base_path = '';
327
+		while (($index = strpos($paths[0], '/', $last_offset)) !== false) {
328
+			$dir_length = $index - $last_offset + 1;
329
+			$directory  = substr($paths[0], $last_offset, $dir_length);
330
+			foreach ($paths as $path) {
331
+				if (substr($path, $last_offset, $dir_length) != $directory) {
332
+					return $common_base_path;
333
+				}
334
+			}
335
+			$common_base_path .= $directory;
336
+			$last_offset      = $index + 1;
337
+		}
338
+		return substr($common_base_path, 0, -1);
339
+	}
340
+
341
+
342
+	/**
343
+	 * load and display a template
344
+	 *
345
+	 * @param bool|string $template_path    server path to the file to be loaded, including file name and extension
346
+	 * @param array       $template_args    an array of arguments to be extracted for use in the template
347
+	 * @param boolean     $return_string    whether to send output immediately to screen, or capture and return as a
348
+	 *                                      string
349
+	 * @param bool        $throw_exceptions if set to true, will throw an exception if the template is either
350
+	 *                                      not found or is not readable
351
+	 * @return string
352
+	 * @throws DomainException
353
+	 */
354
+	public static function display_template(
355
+		$template_path = false,
356
+		$template_args = [],
357
+		$return_string = false,
358
+		$throw_exceptions = false
359
+	) {
360
+
361
+		/**
362
+		 * These two filters are intended for last minute changes to templates being loaded and/or template arg
363
+		 * modifications.  NOTE... modifying these things can cause breakage as most templates running through
364
+		 * the display_template method are templates we DON'T want modified (usually because of js
365
+		 * dependencies etc).  So unless you know what you are doing, do NOT filter templates or template args
366
+		 * using this.
367
+		 *
368
+		 * @since 4.6.0
369
+		 */
370
+		$template_path = (string) apply_filters('FHEE__EEH_Template__display_template__template_path', $template_path);
371
+		$template_args = (array) apply_filters('FHEE__EEH_Template__display_template__template_args', $template_args);
372
+
373
+		// you gimme nuttin - YOU GET NUTTIN !!
374
+		if (! $template_path || ! is_readable($template_path)) {
375
+			// ignore whether template is accessible ?
376
+			if ($throw_exceptions) {
377
+				throw new DomainException(
378
+					esc_html__('Invalid, unreadable, or missing file.', 'event_espresso')
379
+				);
380
+			}
381
+			return '';
382
+		}
383
+		// if $template_args are not in an array, then make it so
384
+		if (! is_array($template_args) && ! is_object($template_args)) {
385
+			$template_args = [$template_args];
386
+		}
387
+		extract($template_args, EXTR_SKIP);
388
+
389
+		if ($return_string) {
390
+			// because we want to return a string, we are going to capture the output
391
+			ob_start();
392
+			include($template_path);
393
+			return ob_get_clean();
394
+		}
395
+		include($template_path);
396
+		return '';
397
+	}
398
+
399
+
400
+	/**
401
+	 * get_object_css_class - attempts to generate a css class based on the type of EE object passed
402
+	 *
403
+	 * @param EE_Base_Class $object the EE object the css class is being generated for
404
+	 * @param string        $prefix added to the beginning of the generated class
405
+	 * @param string        $suffix added to the end of the generated class
406
+	 * @return string
407
+	 * @throws EE_Error
408
+	 * @throws ReflectionException
409
+	 */
410
+	public static function get_object_css_class($object = null, $prefix = '', $suffix = '')
411
+	{
412
+		// in the beginning...
413
+		$prefix = ! empty($prefix) ? rtrim($prefix, '-') . '-' : '';
414
+		// da muddle
415
+		$class = '';
416
+		// the end
417
+		$suffix = ! empty($suffix) ? '-' . ltrim($suffix, '-') : '';
418
+		// is the passed object an EE object ?
419
+		if ($object instanceof EE_Base_Class) {
420
+			// grab the exact type of object
421
+			$obj_class = get_class($object);
422
+			// depending on the type of object...
423
+			switch ($obj_class) {
424
+				// no specifics just yet...
425
+				default:
426
+					$class = strtolower(str_replace('_', '-', $obj_class));
427
+					$class .= method_exists($obj_class, 'name') ? '-' . sanitize_title($object->name()) : '';
428
+			}
429
+		}
430
+		return $prefix . $class . $suffix;
431
+	}
432
+
433
+
434
+	/**
435
+	 * EEH_Template::format_currency
436
+	 * This helper takes a raw float value and formats it according to the default config country currency settings, or
437
+	 * the country currency settings from the supplied country ISO code
438
+	 *
439
+	 * @param float   $amount       raw money value
440
+	 * @param boolean $return_raw   whether to return the formatted float value only with no currency sign or code
441
+	 * @param boolean $display_code whether to display the country code (USD). Default = TRUE
442
+	 * @param string  $CNT_ISO      2 letter ISO code for a country
443
+	 * @param string  $cur_code_span_class
444
+	 * @return string        the html output for the formatted money value
445
+	 */
446
+	public static function format_currency(
447
+		$amount = null,
448
+		$return_raw = false,
449
+		$display_code = true,
450
+		$CNT_ISO = '',
451
+		$cur_code_span_class = 'currency-code'
452
+	) {
453
+		// ensure amount was received
454
+		if ($amount === null) {
455
+			$msg = esc_html__('In order to format currency, an amount needs to be passed.', 'event_espresso');
456
+			EE_Error::add_error($msg, __FILE__, __FUNCTION__, __LINE__);
457
+			return '';
458
+		}
459
+		// ensure amount is float
460
+		$amount  = (float) apply_filters('FHEE__EEH_Template__format_currency__raw_amount', (float) $amount);
461
+		$CNT_ISO = apply_filters('FHEE__EEH_Template__format_currency__CNT_ISO', $CNT_ISO, $amount);
462
+		// filter raw amount (allows 0.00 to be changed to "free" for example)
463
+		$amount_formatted = apply_filters('FHEE__EEH_Template__format_currency__amount', $amount, $return_raw);
464
+		// still a number, or was amount converted to a string like "free" ?
465
+		if (! is_float($amount_formatted)) {
466
+			return esc_html($amount_formatted);
467
+		}
468
+		try {
469
+			// was a country ISO code passed ? if so generate currency config object for that country
470
+			$mny = $CNT_ISO !== '' ? new EE_Currency_Config($CNT_ISO) : null;
471
+		} catch (Exception $e) {
472
+			// eat exception
473
+			$mny = null;
474
+		}
475
+		// verify results
476
+		if (! $mny instanceof EE_Currency_Config) {
477
+			// set default config country currency settings
478
+			$mny = EE_Registry::instance()->CFG->currency instanceof EE_Currency_Config
479
+				? EE_Registry::instance()->CFG->currency
480
+				: new EE_Currency_Config();
481
+		}
482
+		// format float
483
+		$amount_formatted = number_format($amount, $mny->dec_plc, $mny->dec_mrk, $mny->thsnds);
484
+		// add formatting ?
485
+		if (! $return_raw) {
486
+			// add currency sign
487
+			if ($mny->sign_b4) {
488
+				if ($amount >= 0) {
489
+					$amount_formatted = $mny->sign . $amount_formatted;
490
+				} else {
491
+					$amount_formatted = '-' . $mny->sign . str_replace('-', '', $amount_formatted);
492
+				}
493
+			} else {
494
+				$amount_formatted = $amount_formatted . $mny->sign;
495
+			}
496
+
497
+			// filter to allow global setting of display_code
498
+			$display_code = (bool) apply_filters(
499
+				'FHEE__EEH_Template__format_currency__display_code',
500
+				$display_code
501
+			);
502
+
503
+			// add currency code ?
504
+			$amount_formatted = $display_code
505
+				? $amount_formatted . ' <span class="' . $cur_code_span_class . '">(' . $mny->code . ')</span>'
506
+				: $amount_formatted;
507
+		}
508
+		// filter results
509
+		$amount_formatted = apply_filters(
510
+			'FHEE__EEH_Template__format_currency__amount_formatted',
511
+			$amount_formatted,
512
+			$mny,
513
+			$return_raw
514
+		);
515
+		// clean up vars
516
+		unset($mny);
517
+		// return formatted currency amount
518
+		return $amount_formatted;
519
+	}
520
+
521
+
522
+	/**
523
+	 * This function is used for outputting the localized label for a given status id in the schema requested (and
524
+	 * possibly plural).  The intended use of this function is only for cases where wanting a label outside of a
525
+	 * related status model or model object (i.e. in documentation etc.)
526
+	 *
527
+	 * @param string  $status_id  Status ID matching a registered status in the esp_status table.  If there is no
528
+	 *                            match, then 'Unknown' will be returned.
529
+	 * @param boolean $plural     Whether to return plural or not
530
+	 * @param string  $schema     'UPPER', 'lower', or 'Sentence'
531
+	 * @return string             The localized label for the status id.
532
+	 * @throws EE_Error
533
+	 */
534
+	public static function pretty_status($status_id, $plural = false, $schema = 'upper')
535
+	{
536
+		$status = EEM_Status::instance()->localized_status(
537
+			[$status_id => esc_html__('unknown', 'event_espresso')],
538
+			$plural,
539
+			$schema
540
+		);
541
+		return $status[ $status_id ];
542
+	}
543
+
544
+
545
+	/**
546
+	 * This helper just returns a button or link for the given parameters
547
+	 *
548
+	 * @param string $url   the url for the link, note that `esc_url` will be called on it
549
+	 * @param string $label What is the label you want displayed for the button
550
+	 * @param string $class what class is used for the button (defaults to 'button--primary')
551
+	 * @param string $icon
552
+	 * @param string $title
553
+	 * @return string the html output for the button
554
+	 */
555
+	public static function get_button_or_link($url, $label, $class = 'button button--primary', $icon = '', $title = '')
556
+	{
557
+		$icon_html = '';
558
+		if (! empty($icon)) {
559
+			$dashicons = preg_split("(ee-icon |dashicons )", $icon);
560
+			$dashicons = array_filter($dashicons);
561
+			$count     = count($dashicons);
562
+			$icon_html .= $count > 1 ? '<span class="ee-composite-dashicon">' : '';
563
+			foreach ($dashicons as $dashicon) {
564
+				$type      = strpos($dashicon, 'ee-icon') !== false ? 'ee-icon ' : 'dashicons ';
565
+				$icon_html .= '<span class="' . $type . $dashicon . '"></span>';
566
+			}
567
+			$icon_html .= $count > 1 ? '</span>' : '';
568
+		}
569
+		// sanitize & escape
570
+		$id    = sanitize_title_with_dashes($label);
571
+		$url   = esc_url_raw($url);
572
+		$class = esc_attr($class);
573
+		$title = esc_attr($title);
574
+		$class .= $title ? ' ee-aria-tooltip' : '';
575
+		$title = $title ? " aria-label='{$title}'" : '';
576
+		$label = esc_html($label);
577
+		return "<a id='{$id}' href='{$url}' class='{$class}'{$title}>{$icon_html}{$label}</a>";
578
+	}
579
+
580
+
581
+	/**
582
+	 * This returns a generated link that will load the related help tab on admin pages.
583
+	 *
584
+	 * @param string      $help_tab_id the id for the connected help tab
585
+	 * @param bool|string $page        The page identifier for the page the help tab is on
586
+	 * @param bool|string $action      The action (route) for the admin page the help tab is on.
587
+	 * @param bool|string $icon_style  (optional) include css class for the style you want to use for the help icon.
588
+	 * @param bool|string $help_text   (optional) send help text you want to use for the link if default not to be used
589
+	 * @return string              generated link
590
+	 */
591
+	public static function get_help_tab_link(
592
+		$help_tab_id,
593
+		$page = false,
594
+		$action = false,
595
+		$icon_style = false,
596
+		$help_text = false
597
+	) {
598
+		$allowedtags = AllowedTags::getAllowedTags();
599
+		/** @var RequestInterface $request */
600
+		$request = LoaderFactory::getLoader()->getShared(RequestInterface::class);
601
+		$page    = $page ?: $request->getRequestParam('page', '', 'key');
602
+		$action  = $action ?: $request->getRequestParam('action', 'default', 'key');
603
+
604
+
605
+		$help_tab_lnk = $page . '-' . $action . '-' . $help_tab_id;
606
+		$icon      = ! $icon_style ? 'dashicons-editor-help' : $icon_style;
607
+		$help_text = ! $help_text ? '' : $help_text;
608
+		return '
609 609
         	<a 	id="' . esc_attr($help_tab_lnk) . '" 
610 610
         		class="espresso-help-tab-lnk ee-help-btn ee-aria-tooltip dashicons ' . esc_attr($icon) . '" 
611 611
         		aria-label="' . esc_attr__(
612
-                    'Click to open the \'Help\' tab for more information about this feature.',
613
-                    'event_espresso'
614
-                ) . '" 
612
+					'Click to open the \'Help\' tab for more information about this feature.',
613
+					'event_espresso'
614
+				) . '" 
615 615
 		    >
616 616
 		    	' . wp_kses($help_text, $allowedtags) . '
617 617
 			</a>';
618
-    }
619
-
620
-
621
-    /**
622
-     * This is a helper method to generate a status legend for a given status array.
623
-     * Note this will only work if the incoming statuses have a key in the EEM_Status->localized_status() methods
624
-     * status_array.
625
-     *
626
-     * @param array  $status_array   array of statuses that will make up the legend. In format:
627
-     *                               array(
628
-     *                               'status_item' => 'status_name'
629
-     *                               )
630
-     * @param string $active_status  This is used to indicate what the active status is IF that is to be highlighted in
631
-     *                               the legend.
632
-     * @return string               html structure for status.
633
-     * @throws EE_Error
634
-     */
635
-    public static function status_legend($status_array, $active_status = '')
636
-    {
637
-        if (! is_array($status_array)) {
638
-            throw new EE_Error(
639
-                esc_html__(
640
-                    'The EEH_Template::status_legend helper required the incoming status_array argument to be an array!',
641
-                    'event_espresso'
642
-                )
643
-            );
644
-        }
645
-
646
-        $content = '
618
+	}
619
+
620
+
621
+	/**
622
+	 * This is a helper method to generate a status legend for a given status array.
623
+	 * Note this will only work if the incoming statuses have a key in the EEM_Status->localized_status() methods
624
+	 * status_array.
625
+	 *
626
+	 * @param array  $status_array   array of statuses that will make up the legend. In format:
627
+	 *                               array(
628
+	 *                               'status_item' => 'status_name'
629
+	 *                               )
630
+	 * @param string $active_status  This is used to indicate what the active status is IF that is to be highlighted in
631
+	 *                               the legend.
632
+	 * @return string               html structure for status.
633
+	 * @throws EE_Error
634
+	 */
635
+	public static function status_legend($status_array, $active_status = '')
636
+	{
637
+		if (! is_array($status_array)) {
638
+			throw new EE_Error(
639
+				esc_html__(
640
+					'The EEH_Template::status_legend helper required the incoming status_array argument to be an array!',
641
+					'event_espresso'
642
+				)
643
+			);
644
+		}
645
+
646
+		$content = '
647 647
             <div class="ee-list-table-legend-container">
648 648
                 <h4 class="status-legend-title">
649 649
                     ' . esc_html__('Status Legend', 'event_espresso') . '
650 650
                 </h4>
651 651
                 <dl class="ee-list-table-legend">';
652 652
 
653
-        foreach ($status_array as $item => $status) {
654
-            $active_class = $active_status == $status ? 'class="ee-is-active-status"' : '';
655
-            $content      .= '
653
+		foreach ($status_array as $item => $status) {
654
+			$active_class = $active_status == $status ? 'class="ee-is-active-status"' : '';
655
+			$content      .= '
656 656
                     <dt id="' . esc_attr('ee-legend-item-tooltip-' . $item) . '" ' . $active_class . '>
657 657
                         <span class="' . esc_attr('ee-status-legend ee-status-bg--' . $status) . '"></span>
658 658
                         <span class="ee-legend-description">
659 659
                             ' . EEH_Template::pretty_status($status, false, 'sentence') . '
660 660
                         </span>
661 661
                     </dt>';
662
-        }
662
+		}
663 663
 
664
-        $content .= '
664
+		$content .= '
665 665
                 </dl>
666 666
             </div>
667 667
 ';
668
-        return $content;
669
-    }
670
-
671
-
672
-    /**
673
-     * Gets HTML for laying out a deeply-nested array (and objects) in a format
674
-     * that's nice for presenting in the wp admin
675
-     *
676
-     * @param mixed $data
677
-     * @return string
678
-     */
679
-    public static function layout_array_as_table($data)
680
-    {
681
-        if (is_object($data) || $data instanceof __PHP_Incomplete_Class) {
682
-            $data = (array) $data;
683
-        }
684
-        ob_start();
685
-        if (is_array($data)) {
686
-            if (EEH_Array::is_associative_array($data)) { ?>
668
+		return $content;
669
+	}
670
+
671
+
672
+	/**
673
+	 * Gets HTML for laying out a deeply-nested array (and objects) in a format
674
+	 * that's nice for presenting in the wp admin
675
+	 *
676
+	 * @param mixed $data
677
+	 * @return string
678
+	 */
679
+	public static function layout_array_as_table($data)
680
+	{
681
+		if (is_object($data) || $data instanceof __PHP_Incomplete_Class) {
682
+			$data = (array) $data;
683
+		}
684
+		ob_start();
685
+		if (is_array($data)) {
686
+			if (EEH_Array::is_associative_array($data)) { ?>
687 687
                 <table class="widefat">
688 688
                     <tbody>
689 689
                     <?php foreach ($data as $data_key => $data_values) { ?>
@@ -701,292 +701,292 @@  discard block
 block discarded – undo
701 701
             <?php } else { ?>
702 702
                 <ul>
703 703
                     <?php
704
-                    foreach ($data as $datum) {
705
-                        echo "<li>";
706
-                        echo self::layout_array_as_table($datum);
707
-                        echo "</li>";
708
-                    } ?>
704
+					foreach ($data as $datum) {
705
+						echo "<li>";
706
+						echo self::layout_array_as_table($datum);
707
+						echo "</li>";
708
+					} ?>
709 709
                 </ul>
710 710
             <?php }
711
-        } else {
712
-            // simple value
713
-            echo esc_html($data);
714
-        }
715
-        return ob_get_clean();
716
-    }
717
-
718
-
719
-    /**
720
-     * wrapper for self::get_paging_html() that simply echos the generated paging html
721
-     *
722
-     * @param        $total_items
723
-     * @param        $current
724
-     * @param        $per_page
725
-     * @param        $url
726
-     * @param bool   $show_num_field
727
-     * @param string $paged_arg_name
728
-     * @param array  $items_label
729
-     * @see   self:get_paging_html() for argument docs.
730
-     * @since 4.4.0
731
-     */
732
-    public static function paging_html(
733
-        $total_items,
734
-        $current,
735
-        $per_page,
736
-        $url,
737
-        $show_num_field = true,
738
-        $paged_arg_name = 'paged',
739
-        $items_label = []
740
-    ) {
741
-        echo self::get_paging_html(
742
-            $total_items,
743
-            $current,
744
-            $per_page,
745
-            $url,
746
-            $show_num_field,
747
-            $paged_arg_name,
748
-            $items_label
749
-        );
750
-    }
751
-
752
-
753
-    /**
754
-     * A method for generating paging similar to WP_List_Table
755
-     *
756
-     * @param integer $total_items      How many total items there are to page.
757
-     * @param integer $current          What the current page is.
758
-     * @param integer $per_page         How many items per page.
759
-     * @param string  $url              What the base url for page links is.
760
-     * @param boolean $show_num_field   Whether to show the input for changing page number.
761
-     * @param string  $paged_arg_name   The name of the key for the paged query argument.
762
-     * @param array   $items_label      An array of singular/plural values for the items label:
763
-     *                                  array(
764
-     *                                  'single' => 'item',
765
-     *                                  'plural' => 'items'
766
-     *                                  )
767
-     * @return  string
768
-     * @since    4.4.0
769
-     * @see      wp-admin/includes/class-wp-list-table.php WP_List_Table::pagination()
770
-     */
771
-    public static function get_paging_html(
772
-        $total_items,
773
-        $current,
774
-        $per_page,
775
-        $url,
776
-        $show_num_field = true,
777
-        $paged_arg_name = 'paged',
778
-        $items_label = []
779
-    ) {
780
-        $page_links     = [];
781
-        $disable_first  = $disable_last = '';
782
-        $total_items    = (int) $total_items;
783
-        $per_page       = (int) $per_page;
784
-        $current        = (int) $current;
785
-        $paged_arg_name = empty($paged_arg_name) ? 'paged' : sanitize_key($paged_arg_name);
786
-
787
-        // filter items_label
788
-        $items_label = apply_filters(
789
-            'FHEE__EEH_Template__get_paging_html__items_label',
790
-            $items_label
791
-        );
792
-
793
-        if (
794
-            empty($items_label)
795
-            || ! is_array($items_label)
796
-            || ! isset($items_label['single'])
797
-            || ! isset($items_label['plural'])
798
-        ) {
799
-            $items_label = [
800
-                'single' => esc_html__('1 item', 'event_espresso'),
801
-                'plural' => esc_html__('%s items', 'event_espresso'),
802
-            ];
803
-        } else {
804
-            $items_label = [
805
-                'single' => '1 ' . esc_html($items_label['single']),
806
-                'plural' => '%s ' . esc_html($items_label['plural']),
807
-            ];
808
-        }
809
-
810
-        $total_pages = ceil($total_items / $per_page);
811
-
812
-        if ($total_pages <= 1) {
813
-            return '';
814
-        }
815
-
816
-        $item_label = $total_items > 1 ? sprintf($items_label['plural'], $total_items) : $items_label['single'];
817
-
818
-        $output = '<span class="displaying-num">' . $item_label . '</span>';
819
-
820
-        if ($current === 1) {
821
-            $disable_first = ' disabled';
822
-        }
823
-        if ($current == $total_pages) {
824
-            $disable_last = ' disabled';
825
-        }
826
-
827
-        $page_links[] = sprintf(
828
-            "<a class='%s' title='%s' href='%s'>%s</a>",
829
-            'first-page' . $disable_first,
830
-            esc_attr__('Go to the first page', 'event_espresso'),
831
-            esc_url_raw(remove_query_arg($paged_arg_name, $url)),
832
-            '&laquo;'
833
-        );
834
-
835
-        $page_links[] = sprintf(
836
-            '<a class="%s" title="%s" href="%s">%s</a>',
837
-            'prev-page' . $disable_first,
838
-            esc_attr__('Go to the previous page', 'event_espresso'),
839
-            esc_url_raw(add_query_arg($paged_arg_name, max(1, $current - 1), $url)),
840
-            '&lsaquo;'
841
-        );
842
-
843
-        if (! $show_num_field) {
844
-            $html_current_page = $current;
845
-        } else {
846
-            $html_current_page = sprintf(
847
-                "<input class='current-page' title='%s' type='text' name=$paged_arg_name value='%s' size='%d' />",
848
-                esc_attr__('Current page', 'event_espresso'),
849
-                esc_attr($current),
850
-                strlen($total_pages)
851
-            );
852
-        }
853
-
854
-        $html_total_pages = sprintf(
855
-            '<span class="total-pages">%s</span>',
856
-            number_format_i18n($total_pages)
857
-        );
858
-        $page_links[]     = sprintf(
859
-            _x('%3$s%1$s of %2$s%4$s', 'paging', 'event_espresso'),
860
-            $html_current_page,
861
-            $html_total_pages,
862
-            '<span class="paging-input">',
863
-            '</span>'
864
-        );
865
-
866
-        $page_links[] = sprintf(
867
-            '<a class="%s" title="%s" href="%s">%s</a>',
868
-            'next-page' . $disable_last,
869
-            esc_attr__('Go to the next page', 'event_espresso'),
870
-            esc_url_raw(add_query_arg($paged_arg_name, min($total_pages, $current + 1), $url)),
871
-            '&rsaquo;'
872
-        );
873
-
874
-        $page_links[] = sprintf(
875
-            '<a class="%s" title="%s" href="%s">%s</a>',
876
-            'last-page' . $disable_last,
877
-            esc_attr__('Go to the last page', 'event_espresso'),
878
-            esc_url_raw(add_query_arg($paged_arg_name, $total_pages, $url)),
879
-            '&raquo;'
880
-        );
881
-
882
-        $output .= "\n" . '<span class="pagination-links">' . join("\n", $page_links) . '</span>';
883
-        // set page class
884
-        if ($total_pages) {
885
-            $page_class = $total_pages < 2 ? ' one-page' : '';
886
-        } else {
887
-            $page_class = ' no-pages';
888
-        }
889
-
890
-        return '<div class="tablenav"><div class="tablenav-pages' . $page_class . '">' . $output . '</div></div>';
891
-    }
892
-
893
-
894
-    /**
895
-     * @param string $wrap_class
896
-     * @param string $wrap_id
897
-     * @return string
898
-     */
899
-    public static function powered_by_event_espresso($wrap_class = '', $wrap_id = '', array $query_args = [])
900
-    {
901
-        $admin = is_admin() && ! (defined('DOING_AJAX') && DOING_AJAX);
902
-        if (
903
-            ! $admin
904
-            && ! apply_filters(
905
-                'FHEE__EEH_Template__powered_by_event_espresso__show_reg_footer',
906
-                EE_Registry::instance()->CFG->admin->show_reg_footer
907
-            )
908
-        ) {
909
-            return '';
910
-        }
911
-        $tag        = $admin ? 'span' : 'div';
912
-        $attributes = ! empty($wrap_id) ? " id=\"{$wrap_id}\"" : '';
913
-        $wrap_class = $admin ? "{$wrap_class} float-left" : $wrap_class;
914
-        $attributes .= ! empty($wrap_class)
915
-            ? " class=\"{$wrap_class} powered-by-event-espresso-credit\""
916
-            : ' class="powered-by-event-espresso-credit"';
917
-        $query_args = array_merge(
918
-            [
919
-                'ap_id'        => EE_Registry::instance()->CFG->admin->affiliate_id(),
920
-                'utm_source'   => 'powered_by_event_espresso',
921
-                'utm_medium'   => 'link',
922
-                'utm_campaign' => 'powered_by',
923
-            ],
924
-            $query_args
925
-        );
926
-        $powered_by = apply_filters(
927
-            'FHEE__EEH_Template__powered_by_event_espresso_text',
928
-            $admin ? 'Event Espresso - ' . EVENT_ESPRESSO_VERSION : 'Event Espresso'
929
-        );
930
-        $url        = add_query_arg($query_args, 'https://eventespresso.com/');
931
-        $url        = apply_filters('FHEE__EEH_Template__powered_by_event_espresso__url', $url);
932
-        return (string) apply_filters(
933
-            'FHEE__EEH_Template__powered_by_event_espresso__html',
934
-            sprintf(
935
-                esc_html_x(
936
-                    '%3$s%1$sOnline event registration and ticketing powered by %2$s%3$s',
937
-                    'Online event registration and ticketing powered by [link to eventespresso.com]',
938
-                    'event_espresso'
939
-                ),
940
-                "<{$tag}{$attributes}>",
941
-                "<a href=\"{$url}\" target=\"_blank\" rel=\"nofollow\">{$powered_by}</a></{$tag}>",
942
-                $admin ? '' : '<br />'
943
-            ),
944
-            $wrap_class,
945
-            $wrap_id
946
-        );
947
-    }
948
-
949
-
950
-    /**
951
-     * @param string $image_name
952
-     * @return string|null
953
-     * @since   4.10.14.p
954
-     */
955
-    public static function getScreenshotUrl($image_name)
956
-    {
957
-        return esc_url_raw(EE_GLOBAL_ASSETS_URL . 'images/screenshots/' . $image_name . '.jpg');
958
-    }
711
+		} else {
712
+			// simple value
713
+			echo esc_html($data);
714
+		}
715
+		return ob_get_clean();
716
+	}
717
+
718
+
719
+	/**
720
+	 * wrapper for self::get_paging_html() that simply echos the generated paging html
721
+	 *
722
+	 * @param        $total_items
723
+	 * @param        $current
724
+	 * @param        $per_page
725
+	 * @param        $url
726
+	 * @param bool   $show_num_field
727
+	 * @param string $paged_arg_name
728
+	 * @param array  $items_label
729
+	 * @see   self:get_paging_html() for argument docs.
730
+	 * @since 4.4.0
731
+	 */
732
+	public static function paging_html(
733
+		$total_items,
734
+		$current,
735
+		$per_page,
736
+		$url,
737
+		$show_num_field = true,
738
+		$paged_arg_name = 'paged',
739
+		$items_label = []
740
+	) {
741
+		echo self::get_paging_html(
742
+			$total_items,
743
+			$current,
744
+			$per_page,
745
+			$url,
746
+			$show_num_field,
747
+			$paged_arg_name,
748
+			$items_label
749
+		);
750
+	}
751
+
752
+
753
+	/**
754
+	 * A method for generating paging similar to WP_List_Table
755
+	 *
756
+	 * @param integer $total_items      How many total items there are to page.
757
+	 * @param integer $current          What the current page is.
758
+	 * @param integer $per_page         How many items per page.
759
+	 * @param string  $url              What the base url for page links is.
760
+	 * @param boolean $show_num_field   Whether to show the input for changing page number.
761
+	 * @param string  $paged_arg_name   The name of the key for the paged query argument.
762
+	 * @param array   $items_label      An array of singular/plural values for the items label:
763
+	 *                                  array(
764
+	 *                                  'single' => 'item',
765
+	 *                                  'plural' => 'items'
766
+	 *                                  )
767
+	 * @return  string
768
+	 * @since    4.4.0
769
+	 * @see      wp-admin/includes/class-wp-list-table.php WP_List_Table::pagination()
770
+	 */
771
+	public static function get_paging_html(
772
+		$total_items,
773
+		$current,
774
+		$per_page,
775
+		$url,
776
+		$show_num_field = true,
777
+		$paged_arg_name = 'paged',
778
+		$items_label = []
779
+	) {
780
+		$page_links     = [];
781
+		$disable_first  = $disable_last = '';
782
+		$total_items    = (int) $total_items;
783
+		$per_page       = (int) $per_page;
784
+		$current        = (int) $current;
785
+		$paged_arg_name = empty($paged_arg_name) ? 'paged' : sanitize_key($paged_arg_name);
786
+
787
+		// filter items_label
788
+		$items_label = apply_filters(
789
+			'FHEE__EEH_Template__get_paging_html__items_label',
790
+			$items_label
791
+		);
792
+
793
+		if (
794
+			empty($items_label)
795
+			|| ! is_array($items_label)
796
+			|| ! isset($items_label['single'])
797
+			|| ! isset($items_label['plural'])
798
+		) {
799
+			$items_label = [
800
+				'single' => esc_html__('1 item', 'event_espresso'),
801
+				'plural' => esc_html__('%s items', 'event_espresso'),
802
+			];
803
+		} else {
804
+			$items_label = [
805
+				'single' => '1 ' . esc_html($items_label['single']),
806
+				'plural' => '%s ' . esc_html($items_label['plural']),
807
+			];
808
+		}
809
+
810
+		$total_pages = ceil($total_items / $per_page);
811
+
812
+		if ($total_pages <= 1) {
813
+			return '';
814
+		}
815
+
816
+		$item_label = $total_items > 1 ? sprintf($items_label['plural'], $total_items) : $items_label['single'];
817
+
818
+		$output = '<span class="displaying-num">' . $item_label . '</span>';
819
+
820
+		if ($current === 1) {
821
+			$disable_first = ' disabled';
822
+		}
823
+		if ($current == $total_pages) {
824
+			$disable_last = ' disabled';
825
+		}
826
+
827
+		$page_links[] = sprintf(
828
+			"<a class='%s' title='%s' href='%s'>%s</a>",
829
+			'first-page' . $disable_first,
830
+			esc_attr__('Go to the first page', 'event_espresso'),
831
+			esc_url_raw(remove_query_arg($paged_arg_name, $url)),
832
+			'&laquo;'
833
+		);
834
+
835
+		$page_links[] = sprintf(
836
+			'<a class="%s" title="%s" href="%s">%s</a>',
837
+			'prev-page' . $disable_first,
838
+			esc_attr__('Go to the previous page', 'event_espresso'),
839
+			esc_url_raw(add_query_arg($paged_arg_name, max(1, $current - 1), $url)),
840
+			'&lsaquo;'
841
+		);
842
+
843
+		if (! $show_num_field) {
844
+			$html_current_page = $current;
845
+		} else {
846
+			$html_current_page = sprintf(
847
+				"<input class='current-page' title='%s' type='text' name=$paged_arg_name value='%s' size='%d' />",
848
+				esc_attr__('Current page', 'event_espresso'),
849
+				esc_attr($current),
850
+				strlen($total_pages)
851
+			);
852
+		}
853
+
854
+		$html_total_pages = sprintf(
855
+			'<span class="total-pages">%s</span>',
856
+			number_format_i18n($total_pages)
857
+		);
858
+		$page_links[]     = sprintf(
859
+			_x('%3$s%1$s of %2$s%4$s', 'paging', 'event_espresso'),
860
+			$html_current_page,
861
+			$html_total_pages,
862
+			'<span class="paging-input">',
863
+			'</span>'
864
+		);
865
+
866
+		$page_links[] = sprintf(
867
+			'<a class="%s" title="%s" href="%s">%s</a>',
868
+			'next-page' . $disable_last,
869
+			esc_attr__('Go to the next page', 'event_espresso'),
870
+			esc_url_raw(add_query_arg($paged_arg_name, min($total_pages, $current + 1), $url)),
871
+			'&rsaquo;'
872
+		);
873
+
874
+		$page_links[] = sprintf(
875
+			'<a class="%s" title="%s" href="%s">%s</a>',
876
+			'last-page' . $disable_last,
877
+			esc_attr__('Go to the last page', 'event_espresso'),
878
+			esc_url_raw(add_query_arg($paged_arg_name, $total_pages, $url)),
879
+			'&raquo;'
880
+		);
881
+
882
+		$output .= "\n" . '<span class="pagination-links">' . join("\n", $page_links) . '</span>';
883
+		// set page class
884
+		if ($total_pages) {
885
+			$page_class = $total_pages < 2 ? ' one-page' : '';
886
+		} else {
887
+			$page_class = ' no-pages';
888
+		}
889
+
890
+		return '<div class="tablenav"><div class="tablenav-pages' . $page_class . '">' . $output . '</div></div>';
891
+	}
892
+
893
+
894
+	/**
895
+	 * @param string $wrap_class
896
+	 * @param string $wrap_id
897
+	 * @return string
898
+	 */
899
+	public static function powered_by_event_espresso($wrap_class = '', $wrap_id = '', array $query_args = [])
900
+	{
901
+		$admin = is_admin() && ! (defined('DOING_AJAX') && DOING_AJAX);
902
+		if (
903
+			! $admin
904
+			&& ! apply_filters(
905
+				'FHEE__EEH_Template__powered_by_event_espresso__show_reg_footer',
906
+				EE_Registry::instance()->CFG->admin->show_reg_footer
907
+			)
908
+		) {
909
+			return '';
910
+		}
911
+		$tag        = $admin ? 'span' : 'div';
912
+		$attributes = ! empty($wrap_id) ? " id=\"{$wrap_id}\"" : '';
913
+		$wrap_class = $admin ? "{$wrap_class} float-left" : $wrap_class;
914
+		$attributes .= ! empty($wrap_class)
915
+			? " class=\"{$wrap_class} powered-by-event-espresso-credit\""
916
+			: ' class="powered-by-event-espresso-credit"';
917
+		$query_args = array_merge(
918
+			[
919
+				'ap_id'        => EE_Registry::instance()->CFG->admin->affiliate_id(),
920
+				'utm_source'   => 'powered_by_event_espresso',
921
+				'utm_medium'   => 'link',
922
+				'utm_campaign' => 'powered_by',
923
+			],
924
+			$query_args
925
+		);
926
+		$powered_by = apply_filters(
927
+			'FHEE__EEH_Template__powered_by_event_espresso_text',
928
+			$admin ? 'Event Espresso - ' . EVENT_ESPRESSO_VERSION : 'Event Espresso'
929
+		);
930
+		$url        = add_query_arg($query_args, 'https://eventespresso.com/');
931
+		$url        = apply_filters('FHEE__EEH_Template__powered_by_event_espresso__url', $url);
932
+		return (string) apply_filters(
933
+			'FHEE__EEH_Template__powered_by_event_espresso__html',
934
+			sprintf(
935
+				esc_html_x(
936
+					'%3$s%1$sOnline event registration and ticketing powered by %2$s%3$s',
937
+					'Online event registration and ticketing powered by [link to eventespresso.com]',
938
+					'event_espresso'
939
+				),
940
+				"<{$tag}{$attributes}>",
941
+				"<a href=\"{$url}\" target=\"_blank\" rel=\"nofollow\">{$powered_by}</a></{$tag}>",
942
+				$admin ? '' : '<br />'
943
+			),
944
+			$wrap_class,
945
+			$wrap_id
946
+		);
947
+	}
948
+
949
+
950
+	/**
951
+	 * @param string $image_name
952
+	 * @return string|null
953
+	 * @since   4.10.14.p
954
+	 */
955
+	public static function getScreenshotUrl($image_name)
956
+	{
957
+		return esc_url_raw(EE_GLOBAL_ASSETS_URL . 'images/screenshots/' . $image_name . '.jpg');
958
+	}
959 959
 }
960 960
 
961 961
 
962 962
 if (! function_exists('espresso_pagination')) {
963
-    /**
964
-     *    espresso_pagination
965
-     *
966
-     * @access    public
967
-     * @return    void
968
-     */
969
-    function espresso_pagination()
970
-    {
971
-        global $wp_query;
972
-        $big        = 999999999; // need an unlikely integer
973
-        $pagination = paginate_links(
974
-            [
975
-                'base'         => str_replace($big, '%#%', esc_url(get_pagenum_link($big))),
976
-                'format'       => '?paged=%#%',
977
-                'current'      => max(1, get_query_var('paged')),
978
-                'total'        => $wp_query->max_num_pages,
979
-                'show_all'     => true,
980
-                'end_size'     => 10,
981
-                'mid_size'     => 6,
982
-                'prev_next'    => true,
983
-                'prev_text'    => esc_html__('&lsaquo; PREV', 'event_espresso'),
984
-                'next_text'    => esc_html__('NEXT &rsaquo;', 'event_espresso'),
985
-                'type'         => 'plain',
986
-                'add_args'     => false,
987
-                'add_fragment' => '',
988
-            ]
989
-        );
990
-        echo ! empty($pagination) ? '<div class="ee-pagination-dv ee-clear-float">' . $pagination . '</div>' : '';
991
-    }
963
+	/**
964
+	 *    espresso_pagination
965
+	 *
966
+	 * @access    public
967
+	 * @return    void
968
+	 */
969
+	function espresso_pagination()
970
+	{
971
+		global $wp_query;
972
+		$big        = 999999999; // need an unlikely integer
973
+		$pagination = paginate_links(
974
+			[
975
+				'base'         => str_replace($big, '%#%', esc_url(get_pagenum_link($big))),
976
+				'format'       => '?paged=%#%',
977
+				'current'      => max(1, get_query_var('paged')),
978
+				'total'        => $wp_query->max_num_pages,
979
+				'show_all'     => true,
980
+				'end_size'     => 10,
981
+				'mid_size'     => 6,
982
+				'prev_next'    => true,
983
+				'prev_text'    => esc_html__('&lsaquo; PREV', 'event_espresso'),
984
+				'next_text'    => esc_html__('NEXT &rsaquo;', 'event_espresso'),
985
+				'type'         => 'plain',
986
+				'add_args'     => false,
987
+				'add_fragment' => '',
988
+			]
989
+		);
990
+		echo ! empty($pagination) ? '<div class="ee-pagination-dv ee-clear-float">' . $pagination . '</div>' : '';
991
+	}
992 992
 }
Please login to merge, or discard this patch.
Spacing   +62 added lines, -62 removed lines patch added patch discarded remove patch
@@ -6,7 +6,7 @@  discard block
 block discarded – undo
6 6
 use EventEspresso\core\services\request\RequestInterface;
7 7
 use EventEspresso\core\services\request\sanitizers\AllowedTags;
8 8
 
9
-if (! function_exists('espresso_get_template_part')) {
9
+if ( ! function_exists('espresso_get_template_part')) {
10 10
     /**
11 11
      * espresso_get_template_part
12 12
      * basically a copy of the WordPress get_template_part() function but uses EEH_Template::locate_template() instead, and doesn't add base versions of files
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
 }
23 23
 
24 24
 
25
-if (! function_exists('espresso_get_object_css_class')) {
25
+if ( ! function_exists('espresso_get_object_css_class')) {
26 26
     /**
27 27
      * espresso_get_object_css_class - attempts to generate a css class based on the type of EE object passed
28 28
      *
@@ -72,9 +72,9 @@  discard block
 block discarded – undo
72 72
      */
73 73
     public static function load_espresso_theme_functions()
74 74
     {
75
-        if (! defined('EE_THEME_FUNCTIONS_LOADED')) {
76
-            if (is_readable(EE_PUBLIC . EE_Config::get_current_theme() . '/functions.php')) {
77
-                require_once(EE_PUBLIC . EE_Config::get_current_theme() . '/functions.php');
75
+        if ( ! defined('EE_THEME_FUNCTIONS_LOADED')) {
76
+            if (is_readable(EE_PUBLIC.EE_Config::get_current_theme().'/functions.php')) {
77
+                require_once(EE_PUBLIC.EE_Config::get_current_theme().'/functions.php');
78 78
             }
79 79
         }
80 80
     }
@@ -88,16 +88,16 @@  discard block
 block discarded – undo
88 88
     public static function get_espresso_themes()
89 89
     {
90 90
         if (empty(EEH_Template::$_espresso_themes)) {
91
-            $espresso_themes = glob(EE_PUBLIC . '*', GLOB_ONLYDIR);
91
+            $espresso_themes = glob(EE_PUBLIC.'*', GLOB_ONLYDIR);
92 92
             if (empty($espresso_themes)) {
93 93
                 return [];
94 94
             }
95 95
             if (($key = array_search('global_assets', $espresso_themes)) !== false) {
96
-                unset($espresso_themes[ $key ]);
96
+                unset($espresso_themes[$key]);
97 97
             }
98 98
             EEH_Template::$_espresso_themes = [];
99 99
             foreach ($espresso_themes as $espresso_theme) {
100
-                EEH_Template::$_espresso_themes[ basename($espresso_theme) ] = $espresso_theme;
100
+                EEH_Template::$_espresso_themes[basename($espresso_theme)] = $espresso_theme;
101 101
             }
102 102
         }
103 103
         return EEH_Template::$_espresso_themes;
@@ -213,10 +213,10 @@  discard block
 block discarded – undo
213 213
                 // get array of EE Custom Post Types
214 214
                 $EE_CPTs = $custom_post_types->getDefinitions();
215 215
                 // build template name based on request
216
-                if (isset($EE_CPTs[ $post_type ])) {
216
+                if (isset($EE_CPTs[$post_type])) {
217 217
                     $archive_or_single = is_archive() ? 'archive' : '';
218 218
                     $archive_or_single = is_single() ? 'single' : $archive_or_single;
219
-                    $templates         = $archive_or_single . '-' . $post_type . '.php';
219
+                    $templates         = $archive_or_single.'-'.$post_type.'.php';
220 220
                 }
221 221
             }
222 222
             // currently active EE template theme
@@ -225,18 +225,18 @@  discard block
 block discarded – undo
225 225
             // array of paths to folders that may contain templates
226 226
             $template_folder_paths = [
227 227
                 // first check the /wp-content/uploads/espresso/templates/(current EE theme)/  folder for an EE theme template file
228
-                EVENT_ESPRESSO_TEMPLATE_DIR . $current_theme,
228
+                EVENT_ESPRESSO_TEMPLATE_DIR.$current_theme,
229 229
                 // then in the root of the /wp-content/uploads/espresso/templates/ folder
230 230
                 EVENT_ESPRESSO_TEMPLATE_DIR,
231 231
             ];
232 232
 
233 233
             // add core plugin folders for checking only if we're not $check_if_custom
234
-            if (! $check_if_custom) {
235
-                $core_paths            = [
234
+            if ( ! $check_if_custom) {
235
+                $core_paths = [
236 236
                     // in the  /wp-content/plugins/(EE4 folder)/public/(current EE theme)/ folder within the plugin
237
-                    EE_PUBLIC . $current_theme,
237
+                    EE_PUBLIC.$current_theme,
238 238
                     // in the  /wp-content/plugins/(EE4 folder)/core/templates/(current EE theme)/ folder within the plugin
239
-                    EE_TEMPLATES . $current_theme,
239
+                    EE_TEMPLATES.$current_theme,
240 240
                     // or maybe relative from the plugin root: /wp-content/plugins/(EE4 folder)/
241 241
                     EE_PLUGIN_DIR_PATH,
242 242
                 ];
@@ -271,10 +271,10 @@  discard block
 block discarded – undo
271 271
                     );
272 272
                     if ($common_base_path !== '') {
273 273
                         // both paths have a common base, so just tack the filename onto our search path
274
-                        $resolved_path = EEH_File::end_with_directory_separator($template_folder_path) . $file_name;
274
+                        $resolved_path = EEH_File::end_with_directory_separator($template_folder_path).$file_name;
275 275
                     } else {
276 276
                         // no common base path, so let's just concatenate
277
-                        $resolved_path = EEH_File::end_with_directory_separator($template_folder_path) . $template;
277
+                        $resolved_path = EEH_File::end_with_directory_separator($template_folder_path).$template;
278 278
                     }
279 279
                     // build up our template locations array by adding our resolved paths
280 280
                     $full_template_paths[] = $resolved_path;
@@ -282,7 +282,7 @@  discard block
 block discarded – undo
282 282
                 // if $template is an absolute path, then we'll tack it onto the start of our array so that it gets searched first
283 283
                 array_unshift($full_template_paths, $template);
284 284
                 // path to the directory of the current theme: /wp-content/themes/(current WP theme)/
285
-                array_unshift($full_template_paths, get_stylesheet_directory() . '/' . $file_name);
285
+                array_unshift($full_template_paths, get_stylesheet_directory().'/'.$file_name);
286 286
             }
287 287
             // filter final array of full template paths
288 288
             $full_template_paths = apply_filters(
@@ -333,7 +333,7 @@  discard block
 block discarded – undo
333 333
                 }
334 334
             }
335 335
             $common_base_path .= $directory;
336
-            $last_offset      = $index + 1;
336
+            $last_offset = $index + 1;
337 337
         }
338 338
         return substr($common_base_path, 0, -1);
339 339
     }
@@ -371,7 +371,7 @@  discard block
 block discarded – undo
371 371
         $template_args = (array) apply_filters('FHEE__EEH_Template__display_template__template_args', $template_args);
372 372
 
373 373
         // you gimme nuttin - YOU GET NUTTIN !!
374
-        if (! $template_path || ! is_readable($template_path)) {
374
+        if ( ! $template_path || ! is_readable($template_path)) {
375 375
             // ignore whether template is accessible ?
376 376
             if ($throw_exceptions) {
377 377
                 throw new DomainException(
@@ -381,7 +381,7 @@  discard block
 block discarded – undo
381 381
             return '';
382 382
         }
383 383
         // if $template_args are not in an array, then make it so
384
-        if (! is_array($template_args) && ! is_object($template_args)) {
384
+        if ( ! is_array($template_args) && ! is_object($template_args)) {
385 385
             $template_args = [$template_args];
386 386
         }
387 387
         extract($template_args, EXTR_SKIP);
@@ -410,11 +410,11 @@  discard block
 block discarded – undo
410 410
     public static function get_object_css_class($object = null, $prefix = '', $suffix = '')
411 411
     {
412 412
         // in the beginning...
413
-        $prefix = ! empty($prefix) ? rtrim($prefix, '-') . '-' : '';
413
+        $prefix = ! empty($prefix) ? rtrim($prefix, '-').'-' : '';
414 414
         // da muddle
415 415
         $class = '';
416 416
         // the end
417
-        $suffix = ! empty($suffix) ? '-' . ltrim($suffix, '-') : '';
417
+        $suffix = ! empty($suffix) ? '-'.ltrim($suffix, '-') : '';
418 418
         // is the passed object an EE object ?
419 419
         if ($object instanceof EE_Base_Class) {
420 420
             // grab the exact type of object
@@ -424,10 +424,10 @@  discard block
 block discarded – undo
424 424
                 // no specifics just yet...
425 425
                 default:
426 426
                     $class = strtolower(str_replace('_', '-', $obj_class));
427
-                    $class .= method_exists($obj_class, 'name') ? '-' . sanitize_title($object->name()) : '';
427
+                    $class .= method_exists($obj_class, 'name') ? '-'.sanitize_title($object->name()) : '';
428 428
             }
429 429
         }
430
-        return $prefix . $class . $suffix;
430
+        return $prefix.$class.$suffix;
431 431
     }
432 432
 
433 433
 
@@ -462,7 +462,7 @@  discard block
 block discarded – undo
462 462
         // filter raw amount (allows 0.00 to be changed to "free" for example)
463 463
         $amount_formatted = apply_filters('FHEE__EEH_Template__format_currency__amount', $amount, $return_raw);
464 464
         // still a number, or was amount converted to a string like "free" ?
465
-        if (! is_float($amount_formatted)) {
465
+        if ( ! is_float($amount_formatted)) {
466 466
             return esc_html($amount_formatted);
467 467
         }
468 468
         try {
@@ -473,7 +473,7 @@  discard block
 block discarded – undo
473 473
             $mny = null;
474 474
         }
475 475
         // verify results
476
-        if (! $mny instanceof EE_Currency_Config) {
476
+        if ( ! $mny instanceof EE_Currency_Config) {
477 477
             // set default config country currency settings
478 478
             $mny = EE_Registry::instance()->CFG->currency instanceof EE_Currency_Config
479 479
                 ? EE_Registry::instance()->CFG->currency
@@ -482,16 +482,16 @@  discard block
 block discarded – undo
482 482
         // format float
483 483
         $amount_formatted = number_format($amount, $mny->dec_plc, $mny->dec_mrk, $mny->thsnds);
484 484
         // add formatting ?
485
-        if (! $return_raw) {
485
+        if ( ! $return_raw) {
486 486
             // add currency sign
487 487
             if ($mny->sign_b4) {
488 488
                 if ($amount >= 0) {
489
-                    $amount_formatted = $mny->sign . $amount_formatted;
489
+                    $amount_formatted = $mny->sign.$amount_formatted;
490 490
                 } else {
491
-                    $amount_formatted = '-' . $mny->sign . str_replace('-', '', $amount_formatted);
491
+                    $amount_formatted = '-'.$mny->sign.str_replace('-', '', $amount_formatted);
492 492
                 }
493 493
             } else {
494
-                $amount_formatted = $amount_formatted . $mny->sign;
494
+                $amount_formatted = $amount_formatted.$mny->sign;
495 495
             }
496 496
 
497 497
             // filter to allow global setting of display_code
@@ -502,7 +502,7 @@  discard block
 block discarded – undo
502 502
 
503 503
             // add currency code ?
504 504
             $amount_formatted = $display_code
505
-                ? $amount_formatted . ' <span class="' . $cur_code_span_class . '">(' . $mny->code . ')</span>'
505
+                ? $amount_formatted.' <span class="'.$cur_code_span_class.'">('.$mny->code.')</span>'
506 506
                 : $amount_formatted;
507 507
         }
508 508
         // filter results
@@ -538,7 +538,7 @@  discard block
 block discarded – undo
538 538
             $plural,
539 539
             $schema
540 540
         );
541
-        return $status[ $status_id ];
541
+        return $status[$status_id];
542 542
     }
543 543
 
544 544
 
@@ -555,14 +555,14 @@  discard block
 block discarded – undo
555 555
     public static function get_button_or_link($url, $label, $class = 'button button--primary', $icon = '', $title = '')
556 556
     {
557 557
         $icon_html = '';
558
-        if (! empty($icon)) {
558
+        if ( ! empty($icon)) {
559 559
             $dashicons = preg_split("(ee-icon |dashicons )", $icon);
560 560
             $dashicons = array_filter($dashicons);
561 561
             $count     = count($dashicons);
562 562
             $icon_html .= $count > 1 ? '<span class="ee-composite-dashicon">' : '';
563 563
             foreach ($dashicons as $dashicon) {
564
-                $type      = strpos($dashicon, 'ee-icon') !== false ? 'ee-icon ' : 'dashicons ';
565
-                $icon_html .= '<span class="' . $type . $dashicon . '"></span>';
564
+                $type = strpos($dashicon, 'ee-icon') !== false ? 'ee-icon ' : 'dashicons ';
565
+                $icon_html .= '<span class="'.$type.$dashicon.'"></span>';
566 566
             }
567 567
             $icon_html .= $count > 1 ? '</span>' : '';
568 568
         }
@@ -602,18 +602,18 @@  discard block
 block discarded – undo
602 602
         $action  = $action ?: $request->getRequestParam('action', 'default', 'key');
603 603
 
604 604
 
605
-        $help_tab_lnk = $page . '-' . $action . '-' . $help_tab_id;
605
+        $help_tab_lnk = $page.'-'.$action.'-'.$help_tab_id;
606 606
         $icon      = ! $icon_style ? 'dashicons-editor-help' : $icon_style;
607 607
         $help_text = ! $help_text ? '' : $help_text;
608 608
         return '
609
-        	<a 	id="' . esc_attr($help_tab_lnk) . '" 
610
-        		class="espresso-help-tab-lnk ee-help-btn ee-aria-tooltip dashicons ' . esc_attr($icon) . '" 
609
+        	<a 	id="' . esc_attr($help_tab_lnk).'" 
610
+        		class="espresso-help-tab-lnk ee-help-btn ee-aria-tooltip dashicons ' . esc_attr($icon).'" 
611 611
         		aria-label="' . esc_attr__(
612 612
                     'Click to open the \'Help\' tab for more information about this feature.',
613 613
                     'event_espresso'
614
-                ) . '" 
614
+                ).'" 
615 615
 		    >
616
-		    	' . wp_kses($help_text, $allowedtags) . '
616
+		    	' . wp_kses($help_text, $allowedtags).'
617 617
 			</a>';
618 618
     }
619 619
 
@@ -634,7 +634,7 @@  discard block
 block discarded – undo
634 634
      */
635 635
     public static function status_legend($status_array, $active_status = '')
636 636
     {
637
-        if (! is_array($status_array)) {
637
+        if ( ! is_array($status_array)) {
638 638
             throw new EE_Error(
639 639
                 esc_html__(
640 640
                     'The EEH_Template::status_legend helper required the incoming status_array argument to be an array!',
@@ -646,17 +646,17 @@  discard block
 block discarded – undo
646 646
         $content = '
647 647
             <div class="ee-list-table-legend-container">
648 648
                 <h4 class="status-legend-title">
649
-                    ' . esc_html__('Status Legend', 'event_espresso') . '
649
+                    ' . esc_html__('Status Legend', 'event_espresso').'
650 650
                 </h4>
651 651
                 <dl class="ee-list-table-legend">';
652 652
 
653 653
         foreach ($status_array as $item => $status) {
654 654
             $active_class = $active_status == $status ? 'class="ee-is-active-status"' : '';
655
-            $content      .= '
656
-                    <dt id="' . esc_attr('ee-legend-item-tooltip-' . $item) . '" ' . $active_class . '>
657
-                        <span class="' . esc_attr('ee-status-legend ee-status-bg--' . $status) . '"></span>
655
+            $content .= '
656
+                    <dt id="' . esc_attr('ee-legend-item-tooltip-'.$item).'" '.$active_class.'>
657
+                        <span class="' . esc_attr('ee-status-legend ee-status-bg--'.$status).'"></span>
658 658
                         <span class="ee-legend-description">
659
-                            ' . EEH_Template::pretty_status($status, false, 'sentence') . '
659
+                            ' . EEH_Template::pretty_status($status, false, 'sentence').'
660 660
                         </span>
661 661
                     </dt>';
662 662
         }
@@ -802,8 +802,8 @@  discard block
 block discarded – undo
802 802
             ];
803 803
         } else {
804 804
             $items_label = [
805
-                'single' => '1 ' . esc_html($items_label['single']),
806
-                'plural' => '%s ' . esc_html($items_label['plural']),
805
+                'single' => '1 '.esc_html($items_label['single']),
806
+                'plural' => '%s '.esc_html($items_label['plural']),
807 807
             ];
808 808
         }
809 809
 
@@ -815,7 +815,7 @@  discard block
 block discarded – undo
815 815
 
816 816
         $item_label = $total_items > 1 ? sprintf($items_label['plural'], $total_items) : $items_label['single'];
817 817
 
818
-        $output = '<span class="displaying-num">' . $item_label . '</span>';
818
+        $output = '<span class="displaying-num">'.$item_label.'</span>';
819 819
 
820 820
         if ($current === 1) {
821 821
             $disable_first = ' disabled';
@@ -826,7 +826,7 @@  discard block
 block discarded – undo
826 826
 
827 827
         $page_links[] = sprintf(
828 828
             "<a class='%s' title='%s' href='%s'>%s</a>",
829
-            'first-page' . $disable_first,
829
+            'first-page'.$disable_first,
830 830
             esc_attr__('Go to the first page', 'event_espresso'),
831 831
             esc_url_raw(remove_query_arg($paged_arg_name, $url)),
832 832
             '&laquo;'
@@ -834,13 +834,13 @@  discard block
 block discarded – undo
834 834
 
835 835
         $page_links[] = sprintf(
836 836
             '<a class="%s" title="%s" href="%s">%s</a>',
837
-            'prev-page' . $disable_first,
837
+            'prev-page'.$disable_first,
838 838
             esc_attr__('Go to the previous page', 'event_espresso'),
839 839
             esc_url_raw(add_query_arg($paged_arg_name, max(1, $current - 1), $url)),
840 840
             '&lsaquo;'
841 841
         );
842 842
 
843
-        if (! $show_num_field) {
843
+        if ( ! $show_num_field) {
844 844
             $html_current_page = $current;
845 845
         } else {
846 846
             $html_current_page = sprintf(
@@ -855,7 +855,7 @@  discard block
 block discarded – undo
855 855
             '<span class="total-pages">%s</span>',
856 856
             number_format_i18n($total_pages)
857 857
         );
858
-        $page_links[]     = sprintf(
858
+        $page_links[] = sprintf(
859 859
             _x('%3$s%1$s of %2$s%4$s', 'paging', 'event_espresso'),
860 860
             $html_current_page,
861 861
             $html_total_pages,
@@ -865,7 +865,7 @@  discard block
 block discarded – undo
865 865
 
866 866
         $page_links[] = sprintf(
867 867
             '<a class="%s" title="%s" href="%s">%s</a>',
868
-            'next-page' . $disable_last,
868
+            'next-page'.$disable_last,
869 869
             esc_attr__('Go to the next page', 'event_espresso'),
870 870
             esc_url_raw(add_query_arg($paged_arg_name, min($total_pages, $current + 1), $url)),
871 871
             '&rsaquo;'
@@ -873,13 +873,13 @@  discard block
 block discarded – undo
873 873
 
874 874
         $page_links[] = sprintf(
875 875
             '<a class="%s" title="%s" href="%s">%s</a>',
876
-            'last-page' . $disable_last,
876
+            'last-page'.$disable_last,
877 877
             esc_attr__('Go to the last page', 'event_espresso'),
878 878
             esc_url_raw(add_query_arg($paged_arg_name, $total_pages, $url)),
879 879
             '&raquo;'
880 880
         );
881 881
 
882
-        $output .= "\n" . '<span class="pagination-links">' . join("\n", $page_links) . '</span>';
882
+        $output .= "\n".'<span class="pagination-links">'.join("\n", $page_links).'</span>';
883 883
         // set page class
884 884
         if ($total_pages) {
885 885
             $page_class = $total_pages < 2 ? ' one-page' : '';
@@ -887,7 +887,7 @@  discard block
 block discarded – undo
887 887
             $page_class = ' no-pages';
888 888
         }
889 889
 
890
-        return '<div class="tablenav"><div class="tablenav-pages' . $page_class . '">' . $output . '</div></div>';
890
+        return '<div class="tablenav"><div class="tablenav-pages'.$page_class.'">'.$output.'</div></div>';
891 891
     }
892 892
 
893 893
 
@@ -925,7 +925,7 @@  discard block
 block discarded – undo
925 925
         );
926 926
         $powered_by = apply_filters(
927 927
             'FHEE__EEH_Template__powered_by_event_espresso_text',
928
-            $admin ? 'Event Espresso - ' . EVENT_ESPRESSO_VERSION : 'Event Espresso'
928
+            $admin ? 'Event Espresso - '.EVENT_ESPRESSO_VERSION : 'Event Espresso'
929 929
         );
930 930
         $url        = add_query_arg($query_args, 'https://eventespresso.com/');
931 931
         $url        = apply_filters('FHEE__EEH_Template__powered_by_event_espresso__url', $url);
@@ -954,12 +954,12 @@  discard block
 block discarded – undo
954 954
      */
955 955
     public static function getScreenshotUrl($image_name)
956 956
     {
957
-        return esc_url_raw(EE_GLOBAL_ASSETS_URL . 'images/screenshots/' . $image_name . '.jpg');
957
+        return esc_url_raw(EE_GLOBAL_ASSETS_URL.'images/screenshots/'.$image_name.'.jpg');
958 958
     }
959 959
 }
960 960
 
961 961
 
962
-if (! function_exists('espresso_pagination')) {
962
+if ( ! function_exists('espresso_pagination')) {
963 963
     /**
964 964
      *    espresso_pagination
965 965
      *
@@ -987,6 +987,6 @@  discard block
 block discarded – undo
987 987
                 'add_fragment' => '',
988 988
             ]
989 989
         );
990
-        echo ! empty($pagination) ? '<div class="ee-pagination-dv ee-clear-float">' . $pagination . '</div>' : '';
990
+        echo ! empty($pagination) ? '<div class="ee-pagination-dv ee-clear-float">'.$pagination.'</div>' : '';
991 991
     }
992 992
 }
Please login to merge, or discard this patch.
admin/extend/registrations/templates/newsletter-send-form.template.php 1 patch
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -37,10 +37,10 @@  discard block
 block discarded – undo
37 37
             <input type="hidden" name="batch_message[id_type]" value="<?php echo esc_attr($id_type); ?>">
38 38
             <input id="newsletter-batch-ids" type="hidden" name="batch_message[ids]" value="">
39 39
             <h3 class="newsletter-send-form-title"><?php
40
-                printf(
41
-                    esc_html__('Sending batch message to %s people...', 'event_espresso'),
42
-                    '[NUMPEOPLE]'
43
-                ); ?></h3>
40
+				printf(
41
+					esc_html__('Sending batch message to %s people...', 'event_espresso'),
42
+					'[NUMPEOPLE]'
43
+				); ?></h3>
44 44
             <label for="batch-message-template-selector"><?php esc_html_e('Select Template:', 'event_espresso'); ?></label>
45 45
             <?php echo wp_kses($template_selector, AllowedTags::getWithFormTags()); ?>
46 46
             <div class="batch-message-edit-fields" style="display:none;">
@@ -78,9 +78,9 @@  discard block
 block discarded – undo
78 78
                     <div id="shortcode-container-content"
79 79
                          class="shortcodes-info-container ee_shortcode_chooser_container" style="display:none">
80 80
                         <h4><?php esc_html_e(
81
-                            'Message Template Shortcodes for the "content" field:',
82
-                            'event_espresso'
83
-                        ); ?></h4>
81
+							'Message Template Shortcodes for the "content" field:',
82
+							'event_espresso'
83
+						); ?></h4>
84 84
                         <p>
85 85
                             <?php echo wp_kses($shortcodes['[NEWSLETTER_CONTENT]'], AllowedTags::getAllowedTags()); ?>
86 86
                         </p>
@@ -91,10 +91,10 @@  discard block
 block discarded – undo
91 91
                 <input type="submit" class="batch-message-submit button button--primary alignright"
92 92
                        name="batch-message-submit" value="<?php esc_html_e('Send', 'event_espresso'); ?>">
93 93
                 <button class="batch-message-cancel button button--secondary alignright"><?php
94
-                    esc_html_e(
95
-                        'Cancel',
96
-                        'event_espresso'
97
-                    ); ?></button>
94
+					esc_html_e(
95
+						'Cancel',
96
+						'event_espresso'
97
+					); ?></button>
98 98
                 <div style="clear:both"></div>
99 99
             </div>
100 100
         </form>
Please login to merge, or discard this patch.
public/template_tags.php 2 patches
Indentation   +1071 added lines, -1071 removed lines patch added patch discarded remove patch
@@ -19,13 +19,13 @@  discard block
 block discarded – undo
19 19
  */
20 20
 function is_espresso_event($event = null)
21 21
 {
22
-    if (can_use_espresso_conditionals(__FUNCTION__)) {
23
-        // extract EE_Event object from passed param regardless of what it is (within reason of course)
24
-        $event = EEH_Event_View::get_event($event);
25
-        // do we have a valid event ?
26
-        return $event instanceof EE_Event;
27
-    }
28
-    return false;
22
+	if (can_use_espresso_conditionals(__FUNCTION__)) {
23
+		// extract EE_Event object from passed param regardless of what it is (within reason of course)
24
+		$event = EEH_Event_View::get_event($event);
25
+		// do we have a valid event ?
26
+		return $event instanceof EE_Event;
27
+	}
28
+	return false;
29 29
 }
30 30
 
31 31
 /**
@@ -36,12 +36,12 @@  discard block
 block discarded – undo
36 36
  */
37 37
 function is_espresso_event_single()
38 38
 {
39
-    if (can_use_espresso_conditionals(__FUNCTION__)) {
40
-        global $wp_query;
41
-        // return conditionals set by CPTs
42
-        return $wp_query instanceof WP_Query ? $wp_query->is_espresso_event_single : false;
43
-    }
44
-    return false;
39
+	if (can_use_espresso_conditionals(__FUNCTION__)) {
40
+		global $wp_query;
41
+		// return conditionals set by CPTs
42
+		return $wp_query instanceof WP_Query ? $wp_query->is_espresso_event_single : false;
43
+	}
44
+	return false;
45 45
 }
46 46
 
47 47
 /**
@@ -52,11 +52,11 @@  discard block
 block discarded – undo
52 52
  */
53 53
 function is_espresso_event_archive()
54 54
 {
55
-    if (can_use_espresso_conditionals(__FUNCTION__)) {
56
-        global $wp_query;
57
-        return $wp_query instanceof WP_Query ? $wp_query->is_espresso_event_archive : false;
58
-    }
59
-    return false;
55
+	if (can_use_espresso_conditionals(__FUNCTION__)) {
56
+		global $wp_query;
57
+		return $wp_query instanceof WP_Query ? $wp_query->is_espresso_event_archive : false;
58
+	}
59
+	return false;
60 60
 }
61 61
 
62 62
 /**
@@ -67,11 +67,11 @@  discard block
 block discarded – undo
67 67
  */
68 68
 function is_espresso_event_taxonomy()
69 69
 {
70
-    if (can_use_espresso_conditionals(__FUNCTION__)) {
71
-        global $wp_query;
72
-        return $wp_query instanceof WP_Query ? $wp_query->is_espresso_event_taxonomy : false;
73
-    }
74
-    return false;
70
+	if (can_use_espresso_conditionals(__FUNCTION__)) {
71
+		global $wp_query;
72
+		return $wp_query instanceof WP_Query ? $wp_query->is_espresso_event_taxonomy : false;
73
+	}
74
+	return false;
75 75
 }
76 76
 
77 77
 /**
@@ -85,13 +85,13 @@  discard block
 block discarded – undo
85 85
  */
86 86
 function is_espresso_venue($venue = null)
87 87
 {
88
-    if (can_use_espresso_conditionals(__FUNCTION__)) {
89
-        // extract EE_Venue object from passed param regardless of what it is (within reason of course)
90
-        $venue = EEH_Venue_View::get_venue($venue, false);
91
-        // do we have a valid event ?
92
-        return $venue instanceof EE_Venue;
93
-    }
94
-    return false;
88
+	if (can_use_espresso_conditionals(__FUNCTION__)) {
89
+		// extract EE_Venue object from passed param regardless of what it is (within reason of course)
90
+		$venue = EEH_Venue_View::get_venue($venue, false);
91
+		// do we have a valid event ?
92
+		return $venue instanceof EE_Venue;
93
+	}
94
+	return false;
95 95
 }
96 96
 
97 97
 /**
@@ -102,11 +102,11 @@  discard block
 block discarded – undo
102 102
  */
103 103
 function is_espresso_venue_single()
104 104
 {
105
-    if (can_use_espresso_conditionals(__FUNCTION__)) {
106
-        global $wp_query;
107
-        return $wp_query instanceof WP_Query ? $wp_query->is_espresso_venue_single : false;
108
-    }
109
-    return false;
105
+	if (can_use_espresso_conditionals(__FUNCTION__)) {
106
+		global $wp_query;
107
+		return $wp_query instanceof WP_Query ? $wp_query->is_espresso_venue_single : false;
108
+	}
109
+	return false;
110 110
 }
111 111
 
112 112
 /**
@@ -117,11 +117,11 @@  discard block
 block discarded – undo
117 117
  */
118 118
 function is_espresso_venue_archive()
119 119
 {
120
-    if (can_use_espresso_conditionals(__FUNCTION__)) {
121
-        global $wp_query;
122
-        return $wp_query instanceof WP_Query ? $wp_query->is_espresso_venue_archive : false;
123
-    }
124
-    return false;
120
+	if (can_use_espresso_conditionals(__FUNCTION__)) {
121
+		global $wp_query;
122
+		return $wp_query instanceof WP_Query ? $wp_query->is_espresso_venue_archive : false;
123
+	}
124
+	return false;
125 125
 }
126 126
 
127 127
 /**
@@ -132,11 +132,11 @@  discard block
 block discarded – undo
132 132
  */
133 133
 function is_espresso_venue_taxonomy()
134 134
 {
135
-    if (can_use_espresso_conditionals(__FUNCTION__)) {
136
-        global $wp_query;
137
-        return $wp_query instanceof WP_Query ? $wp_query->is_espresso_venue_taxonomy : false;
138
-    }
139
-    return false;
135
+	if (can_use_espresso_conditionals(__FUNCTION__)) {
136
+		global $wp_query;
137
+		return $wp_query instanceof WP_Query ? $wp_query->is_espresso_venue_taxonomy : false;
138
+	}
139
+	return false;
140 140
 }
141 141
 
142 142
 /**
@@ -148,62 +148,62 @@  discard block
 block discarded – undo
148 148
  */
149 149
 function can_use_espresso_conditionals($conditional_tag)
150 150
 {
151
-    if (! did_action('AHEE__EE_System__initialize')) {
152
-        EE_Error::doing_it_wrong(
153
-            __FUNCTION__,
154
-            sprintf(
155
-                esc_html__(
156
-                    'The "%s" conditional tag can not be used until after the "init" hook has run, but works best when used within a theme\'s template files.',
157
-                    'event_espresso'
158
-                ),
159
-                $conditional_tag
160
-            ),
161
-            '4.4.0'
162
-        );
163
-        return false;
164
-    }
165
-    return true;
151
+	if (! did_action('AHEE__EE_System__initialize')) {
152
+		EE_Error::doing_it_wrong(
153
+			__FUNCTION__,
154
+			sprintf(
155
+				esc_html__(
156
+					'The "%s" conditional tag can not be used until after the "init" hook has run, but works best when used within a theme\'s template files.',
157
+					'event_espresso'
158
+				),
159
+				$conditional_tag
160
+			),
161
+			'4.4.0'
162
+		);
163
+		return false;
164
+	}
165
+	return true;
166 166
 }
167 167
 
168 168
 
169 169
 /*************************** Event Queries ***************************/
170 170
 
171 171
 if (! function_exists('espresso_get_events')) {
172
-    /**
173
-     *    espresso_get_events
174
-     *
175
-     * @param array $params
176
-     * @return array
177
-     */
178
-    function espresso_get_events($params = [])
179
-    {
180
-        //set default params
181
-        $default_espresso_events_params = [
182
-            'limit'         => 10,
183
-            'show_expired'  => false,
184
-            'month'         => null,
185
-            'category_slug' => null,
186
-            'order_by'      => 'start_date',
187
-            'sort'          => 'ASC',
188
-        ];
189
-        // allow the defaults to be filtered
190
-        $default_espresso_events_params = apply_filters(
191
-            'espresso_get_events__default_espresso_events_params',
192
-            $default_espresso_events_params
193
-        );
194
-        // grab params and merge with defaults, then extract
195
-        $params = array_merge($default_espresso_events_params, $params);
196
-        // run the query
197
-        $events_query = new EventEspresso\core\domain\services\wp_queries\EventListQuery($params);
198
-        // assign results to a variable so we can return it
199
-        $events = $events_query->have_posts() ? $events_query->posts : [];
200
-        // but first reset the query and postdata
201
-        wp_reset_query();
202
-        wp_reset_postdata();
203
-        EED_Events_Archive::remove_all_events_archive_filters();
204
-        unset($events_query);
205
-        return $events;
206
-    }
172
+	/**
173
+	 *    espresso_get_events
174
+	 *
175
+	 * @param array $params
176
+	 * @return array
177
+	 */
178
+	function espresso_get_events($params = [])
179
+	{
180
+		//set default params
181
+		$default_espresso_events_params = [
182
+			'limit'         => 10,
183
+			'show_expired'  => false,
184
+			'month'         => null,
185
+			'category_slug' => null,
186
+			'order_by'      => 'start_date',
187
+			'sort'          => 'ASC',
188
+		];
189
+		// allow the defaults to be filtered
190
+		$default_espresso_events_params = apply_filters(
191
+			'espresso_get_events__default_espresso_events_params',
192
+			$default_espresso_events_params
193
+		);
194
+		// grab params and merge with defaults, then extract
195
+		$params = array_merge($default_espresso_events_params, $params);
196
+		// run the query
197
+		$events_query = new EventEspresso\core\domain\services\wp_queries\EventListQuery($params);
198
+		// assign results to a variable so we can return it
199
+		$events = $events_query->have_posts() ? $events_query->posts : [];
200
+		// but first reset the query and postdata
201
+		wp_reset_query();
202
+		wp_reset_postdata();
203
+		EED_Events_Archive::remove_all_events_archive_filters();
204
+		unset($events_query);
205
+		return $events;
206
+	}
207 207
 }
208 208
 
209 209
 
@@ -218,357 +218,357 @@  discard block
 block discarded – undo
218 218
  */
219 219
 function espresso_load_ticket_selector()
220 220
 {
221
-    EE_Registry::instance()->load_file(EE_MODULES . 'ticket_selector', 'EED_Ticket_Selector', 'module');
221
+	EE_Registry::instance()->load_file(EE_MODULES . 'ticket_selector', 'EED_Ticket_Selector', 'module');
222 222
 }
223 223
 
224 224
 if (! function_exists('espresso_ticket_selector')) {
225
-    /**
226
-     * espresso_ticket_selector
227
-     *
228
-     * @param null $event
229
-     * @throws EE_Error
230
-     * @throws ReflectionException
231
-     */
232
-    function espresso_ticket_selector($event = null)
233
-    {
234
-        if (! apply_filters('FHEE_disable_espresso_ticket_selector', false)) {
235
-            espresso_load_ticket_selector();
236
-            EED_Ticket_Selector::set_definitions();
237
-            echo EED_Ticket_Selector::display_ticket_selector($event); // already escaped
238
-        }
239
-    }
225
+	/**
226
+	 * espresso_ticket_selector
227
+	 *
228
+	 * @param null $event
229
+	 * @throws EE_Error
230
+	 * @throws ReflectionException
231
+	 */
232
+	function espresso_ticket_selector($event = null)
233
+	{
234
+		if (! apply_filters('FHEE_disable_espresso_ticket_selector', false)) {
235
+			espresso_load_ticket_selector();
236
+			EED_Ticket_Selector::set_definitions();
237
+			echo EED_Ticket_Selector::display_ticket_selector($event); // already escaped
238
+		}
239
+	}
240 240
 }
241 241
 
242 242
 
243 243
 if (! function_exists('espresso_view_details_btn')) {
244
-    /**
245
-     * espresso_view_details_btn
246
-     *
247
-     * @param null $event
248
-     * @throws EE_Error
249
-     * @throws ReflectionException
250
-     */
251
-    function espresso_view_details_btn($event = null)
252
-    {
253
-        if (! apply_filters('FHEE_disable_espresso_view_details_btn', false)) {
254
-            espresso_load_ticket_selector();
255
-            echo EED_Ticket_Selector::display_ticket_selector($event, true); // already escaped
256
-        }
257
-    }
244
+	/**
245
+	 * espresso_view_details_btn
246
+	 *
247
+	 * @param null $event
248
+	 * @throws EE_Error
249
+	 * @throws ReflectionException
250
+	 */
251
+	function espresso_view_details_btn($event = null)
252
+	{
253
+		if (! apply_filters('FHEE_disable_espresso_view_details_btn', false)) {
254
+			espresso_load_ticket_selector();
255
+			echo EED_Ticket_Selector::display_ticket_selector($event, true); // already escaped
256
+		}
257
+	}
258 258
 }
259 259
 
260 260
 
261 261
 /*************************** EEH_Event_View ***************************/
262 262
 
263 263
 if (! function_exists('espresso_load_event_list_assets')) {
264
-    /**
265
-     * espresso_load_event_list_assets
266
-     * ensures that event list styles and scripts are loaded
267
-     *
268
-     * @return void
269
-     */
270
-    function espresso_load_event_list_assets()
271
-    {
272
-        $event_list = EED_Events_Archive::instance();
273
-        add_action('AHEE__EE_System__initialize_last', [$event_list, 'load_event_list_assets'], 10);
274
-        add_filter('FHEE_enable_default_espresso_css', '__return_true');
275
-    }
264
+	/**
265
+	 * espresso_load_event_list_assets
266
+	 * ensures that event list styles and scripts are loaded
267
+	 *
268
+	 * @return void
269
+	 */
270
+	function espresso_load_event_list_assets()
271
+	{
272
+		$event_list = EED_Events_Archive::instance();
273
+		add_action('AHEE__EE_System__initialize_last', [$event_list, 'load_event_list_assets'], 10);
274
+		add_filter('FHEE_enable_default_espresso_css', '__return_true');
275
+	}
276 276
 }
277 277
 
278 278
 
279 279
 if (! function_exists('espresso_event_reg_button')) {
280
-    /**
281
-     * espresso_event_reg_button
282
-     * returns the "Register Now" button if event is active,
283
-     * an inactive button like status banner if the event is not active
284
-     * or a "Read More" button if so desired
285
-     *
286
-     * @param null $btn_text_if_active
287
-     * @param bool $btn_text_if_inactive
288
-     * @param bool $EVT_ID
289
-     * @return void
290
-     * @throws EE_Error
291
-     * @throws ReflectionException
292
-     */
293
-    function espresso_event_reg_button($btn_text_if_active = null, $btn_text_if_inactive = false, $EVT_ID = false)
294
-    {
295
-        $event = EEH_Event_View::get_event($EVT_ID);
296
-        if (! $event instanceof EE_Event) {
297
-            return;
298
-        }
299
-        $event_status = $event->get_active_status();
300
-        switch ($event_status) {
301
-            case EE_Datetime::sold_out :
302
-                $btn_text = __('Sold Out', 'event_espresso');
303
-                $class    = 'ee-pink';
304
-                break;
305
-            case EE_Datetime::expired :
306
-                $btn_text = __('Event is Over', 'event_espresso');
307
-                $class    = 'ee-grey';
308
-                break;
309
-            case EE_Datetime::inactive :
310
-                $btn_text = __('Event Not Active', 'event_espresso');
311
-                $class    = 'ee-grey';
312
-                break;
313
-            case EE_Datetime::cancelled :
314
-                $btn_text = __('Event was Cancelled', 'event_espresso');
315
-                $class    = 'ee-red';
316
-                break;
317
-            case EE_Datetime::upcoming :
318
-            case EE_Datetime::active :
319
-            default :
320
-                $btn_text = ! empty($btn_text_if_active)
321
-                    ? $btn_text_if_active
322
-                    : __('Register Now', 'event_espresso');
323
-                $class    = 'ee-green';
324
-        }
325
-        if ($event_status < 1 && ! empty($btn_text_if_inactive)) {
326
-            $btn_text = $btn_text_if_inactive;
327
-            $class    = 'ee-grey';
328
-        }
329
-        ?>
280
+	/**
281
+	 * espresso_event_reg_button
282
+	 * returns the "Register Now" button if event is active,
283
+	 * an inactive button like status banner if the event is not active
284
+	 * or a "Read More" button if so desired
285
+	 *
286
+	 * @param null $btn_text_if_active
287
+	 * @param bool $btn_text_if_inactive
288
+	 * @param bool $EVT_ID
289
+	 * @return void
290
+	 * @throws EE_Error
291
+	 * @throws ReflectionException
292
+	 */
293
+	function espresso_event_reg_button($btn_text_if_active = null, $btn_text_if_inactive = false, $EVT_ID = false)
294
+	{
295
+		$event = EEH_Event_View::get_event($EVT_ID);
296
+		if (! $event instanceof EE_Event) {
297
+			return;
298
+		}
299
+		$event_status = $event->get_active_status();
300
+		switch ($event_status) {
301
+			case EE_Datetime::sold_out :
302
+				$btn_text = __('Sold Out', 'event_espresso');
303
+				$class    = 'ee-pink';
304
+				break;
305
+			case EE_Datetime::expired :
306
+				$btn_text = __('Event is Over', 'event_espresso');
307
+				$class    = 'ee-grey';
308
+				break;
309
+			case EE_Datetime::inactive :
310
+				$btn_text = __('Event Not Active', 'event_espresso');
311
+				$class    = 'ee-grey';
312
+				break;
313
+			case EE_Datetime::cancelled :
314
+				$btn_text = __('Event was Cancelled', 'event_espresso');
315
+				$class    = 'ee-red';
316
+				break;
317
+			case EE_Datetime::upcoming :
318
+			case EE_Datetime::active :
319
+			default :
320
+				$btn_text = ! empty($btn_text_if_active)
321
+					? $btn_text_if_active
322
+					: __('Register Now', 'event_espresso');
323
+				$class    = 'ee-green';
324
+		}
325
+		if ($event_status < 1 && ! empty($btn_text_if_inactive)) {
326
+			$btn_text = $btn_text_if_inactive;
327
+			$class    = 'ee-grey';
328
+		}
329
+		?>
330 330
         <a class="ee-button ee-register-button <?php echo esc_attr($class); ?>"
331 331
            href="<?php espresso_event_link_url($EVT_ID); ?>"
332 332
             <?php echo EED_Events_Archive::link_target(); // already escaped
333
-            ?>
333
+			?>
334 334
         >
335 335
             <?php echo esc_html($btn_text); ?>
336 336
         </a>
337 337
         <?php
338
-    }
338
+	}
339 339
 }
340 340
 
341 341
 
342 342
 if (! function_exists('espresso_display_ticket_selector')) {
343
-    /**
344
-     * espresso_display_ticket_selector
345
-     * whether or not to display the Ticket Selector for an event
346
-     *
347
-     * @param bool $EVT_ID
348
-     * @return boolean
349
-     * @throws EE_Error
350
-     * @throws ReflectionException
351
-     */
352
-    function espresso_display_ticket_selector($EVT_ID = false)
353
-    {
354
-        return EEH_Event_View::display_ticket_selector($EVT_ID);
355
-    }
343
+	/**
344
+	 * espresso_display_ticket_selector
345
+	 * whether or not to display the Ticket Selector for an event
346
+	 *
347
+	 * @param bool $EVT_ID
348
+	 * @return boolean
349
+	 * @throws EE_Error
350
+	 * @throws ReflectionException
351
+	 */
352
+	function espresso_display_ticket_selector($EVT_ID = false)
353
+	{
354
+		return EEH_Event_View::display_ticket_selector($EVT_ID);
355
+	}
356 356
 }
357 357
 
358 358
 
359 359
 if (! function_exists('espresso_event_status_banner')) {
360
-    /**
361
-     * espresso_event_status
362
-     * returns a banner showing the event status if it is sold out, expired, or inactive
363
-     *
364
-     * @param bool $EVT_ID
365
-     * @return string
366
-     * @throws EE_Error
367
-     * @throws ReflectionException
368
-     */
369
-    function espresso_event_status_banner($EVT_ID = false)
370
-    {
371
-        return EEH_Event_View::event_status($EVT_ID);
372
-    }
360
+	/**
361
+	 * espresso_event_status
362
+	 * returns a banner showing the event status if it is sold out, expired, or inactive
363
+	 *
364
+	 * @param bool $EVT_ID
365
+	 * @return string
366
+	 * @throws EE_Error
367
+	 * @throws ReflectionException
368
+	 */
369
+	function espresso_event_status_banner($EVT_ID = false)
370
+	{
371
+		return EEH_Event_View::event_status($EVT_ID);
372
+	}
373 373
 }
374 374
 
375 375
 
376 376
 if (! function_exists('espresso_event_status')) {
377
-    /**
378
-     * espresso_event_status
379
-     * returns the event status if it is sold out, expired, or inactive
380
-     *
381
-     * @param int  $EVT_ID
382
-     * @param bool $echo
383
-     * @return string
384
-     * @throws EE_Error
385
-     * @throws ReflectionException
386
-     */
387
-    function espresso_event_status($EVT_ID = 0, $echo = true)
388
-    {
389
-        return EEH_Event_View::event_active_status($EVT_ID, $echo);
390
-    }
377
+	/**
378
+	 * espresso_event_status
379
+	 * returns the event status if it is sold out, expired, or inactive
380
+	 *
381
+	 * @param int  $EVT_ID
382
+	 * @param bool $echo
383
+	 * @return string
384
+	 * @throws EE_Error
385
+	 * @throws ReflectionException
386
+	 */
387
+	function espresso_event_status($EVT_ID = 0, $echo = true)
388
+	{
389
+		return EEH_Event_View::event_active_status($EVT_ID, $echo);
390
+	}
391 391
 }
392 392
 
393 393
 
394 394
 if (! function_exists('espresso_event_categories')) {
395
-    /**
396
-     * espresso_event_categories
397
-     * returns the terms associated with an event
398
-     *
399
-     * @param int  $EVT_ID
400
-     * @param bool $hide_uncategorized
401
-     * @param bool $echo
402
-     * @return string
403
-     * @throws EE_Error
404
-     * @throws ReflectionException
405
-     */
406
-    function espresso_event_categories($EVT_ID = 0, $hide_uncategorized = true, $echo = true)
407
-    {
408
-        if ($echo) {
409
-            echo EEH_Event_View::event_categories($EVT_ID, $hide_uncategorized); // already escaped
410
-            return '';
411
-        }
412
-        return EEH_Event_View::event_categories($EVT_ID, $hide_uncategorized);
413
-    }
395
+	/**
396
+	 * espresso_event_categories
397
+	 * returns the terms associated with an event
398
+	 *
399
+	 * @param int  $EVT_ID
400
+	 * @param bool $hide_uncategorized
401
+	 * @param bool $echo
402
+	 * @return string
403
+	 * @throws EE_Error
404
+	 * @throws ReflectionException
405
+	 */
406
+	function espresso_event_categories($EVT_ID = 0, $hide_uncategorized = true, $echo = true)
407
+	{
408
+		if ($echo) {
409
+			echo EEH_Event_View::event_categories($EVT_ID, $hide_uncategorized); // already escaped
410
+			return '';
411
+		}
412
+		return EEH_Event_View::event_categories($EVT_ID, $hide_uncategorized);
413
+	}
414 414
 }
415 415
 
416 416
 
417 417
 if (! function_exists('espresso_event_tickets_available')) {
418
-    /**
419
-     * espresso_event_tickets_available
420
-     * returns the ticket types available for purchase for an event
421
-     *
422
-     * @param int  $EVT_ID
423
-     * @param bool $echo
424
-     * @param bool $format
425
-     * @return string
426
-     * @throws EE_Error
427
-     * @throws ReflectionException
428
-     */
429
-    function espresso_event_tickets_available($EVT_ID = 0, $echo = true, $format = true)
430
-    {
431
-        $tickets = EEH_Event_View::event_tickets_available($EVT_ID);
432
-        if (is_array($tickets) && ! empty($tickets)) {
433
-            // if formatting then $html will be a string, else it will be an array of ticket objects
434
-            $html =
435
-                $format ? '<ul id="ee-event-tickets-ul-' . esc_attr($EVT_ID) . '" class="ee-event-tickets-ul">' : [];
436
-            foreach ($tickets as $ticket) {
437
-                if ($ticket instanceof EE_Ticket) {
438
-                    if ($format) {
439
-                        $html .= '<li id="ee-event-tickets-li-'
440
-                                 . esc_attr($ticket->ID())
441
-                                 . '" class="ee-event-tickets-li">';
442
-                        $html .= esc_html($ticket->name()) . ' ';
443
-                        $html .= EEH_Template::format_currency(
444
-                            $ticket->get_ticket_total_with_taxes()
445
-                        ); // already escaped
446
-                        $html .= '</li>';
447
-                    } else {
448
-                        $html[] = $ticket;
449
-                    }
450
-                }
451
-            }
452
-            if ($format) {
453
-                $html .= '</ul>';
454
-            }
455
-            if ($echo && $format) {
456
-                echo wp_kses($html, AllowedTags::getAllowedTags());
457
-                return '';
458
-            }
459
-            return $html;
460
-        }
461
-        return '';
462
-    }
418
+	/**
419
+	 * espresso_event_tickets_available
420
+	 * returns the ticket types available for purchase for an event
421
+	 *
422
+	 * @param int  $EVT_ID
423
+	 * @param bool $echo
424
+	 * @param bool $format
425
+	 * @return string
426
+	 * @throws EE_Error
427
+	 * @throws ReflectionException
428
+	 */
429
+	function espresso_event_tickets_available($EVT_ID = 0, $echo = true, $format = true)
430
+	{
431
+		$tickets = EEH_Event_View::event_tickets_available($EVT_ID);
432
+		if (is_array($tickets) && ! empty($tickets)) {
433
+			// if formatting then $html will be a string, else it will be an array of ticket objects
434
+			$html =
435
+				$format ? '<ul id="ee-event-tickets-ul-' . esc_attr($EVT_ID) . '" class="ee-event-tickets-ul">' : [];
436
+			foreach ($tickets as $ticket) {
437
+				if ($ticket instanceof EE_Ticket) {
438
+					if ($format) {
439
+						$html .= '<li id="ee-event-tickets-li-'
440
+								 . esc_attr($ticket->ID())
441
+								 . '" class="ee-event-tickets-li">';
442
+						$html .= esc_html($ticket->name()) . ' ';
443
+						$html .= EEH_Template::format_currency(
444
+							$ticket->get_ticket_total_with_taxes()
445
+						); // already escaped
446
+						$html .= '</li>';
447
+					} else {
448
+						$html[] = $ticket;
449
+					}
450
+				}
451
+			}
452
+			if ($format) {
453
+				$html .= '</ul>';
454
+			}
455
+			if ($echo && $format) {
456
+				echo wp_kses($html, AllowedTags::getAllowedTags());
457
+				return '';
458
+			}
459
+			return $html;
460
+		}
461
+		return '';
462
+	}
463 463
 }
464 464
 
465 465
 if (! function_exists('espresso_event_date_obj')) {
466
-    /**
467
-     * espresso_event_date_obj
468
-     * returns the primary date object for an event
469
-     *
470
-     * @param bool $EVT_ID
471
-     * @return EE_Datetime|null
472
-     * @throws EE_Error
473
-     * @throws ReflectionException
474
-     */
475
-    function espresso_event_date_obj($EVT_ID = false)
476
-    {
477
-        return EEH_Event_View::get_primary_date_obj($EVT_ID);
478
-    }
466
+	/**
467
+	 * espresso_event_date_obj
468
+	 * returns the primary date object for an event
469
+	 *
470
+	 * @param bool $EVT_ID
471
+	 * @return EE_Datetime|null
472
+	 * @throws EE_Error
473
+	 * @throws ReflectionException
474
+	 */
475
+	function espresso_event_date_obj($EVT_ID = false)
476
+	{
477
+		return EEH_Event_View::get_primary_date_obj($EVT_ID);
478
+	}
479 479
 }
480 480
 
481 481
 
482 482
 if (! function_exists('espresso_event_date')) {
483
-    /**
484
-     * espresso_event_date
485
-     * returns the primary date for an event
486
-     *
487
-     * @param string $date_format
488
-     * @param string $time_format
489
-     * @param bool   $EVT_ID
490
-     * @param bool   $echo
491
-     * @return string
492
-     * @throws EE_Error
493
-     * @throws ReflectionException
494
-     */
495
-    function espresso_event_date($date_format = '', $time_format = '', $EVT_ID = false, $echo = true)
496
-    {
497
-        $date_format = ! empty($date_format) ? $date_format : get_option('date_format');
498
-        $time_format = ! empty($time_format) ? $time_format : get_option('time_format');
499
-        $date_format = apply_filters('FHEE__espresso_event_date__date_format', $date_format);
500
-        $time_format = apply_filters('FHEE__espresso_event_date__time_format', $time_format);
501
-        if ($echo) {
502
-            echo EEH_Event_View::the_event_date($date_format, $time_format, $EVT_ID); // already escaped
503
-            return '';
504
-        }
505
-        return EEH_Event_View::the_event_date($date_format, $time_format, $EVT_ID);
506
-
507
-    }
483
+	/**
484
+	 * espresso_event_date
485
+	 * returns the primary date for an event
486
+	 *
487
+	 * @param string $date_format
488
+	 * @param string $time_format
489
+	 * @param bool   $EVT_ID
490
+	 * @param bool   $echo
491
+	 * @return string
492
+	 * @throws EE_Error
493
+	 * @throws ReflectionException
494
+	 */
495
+	function espresso_event_date($date_format = '', $time_format = '', $EVT_ID = false, $echo = true)
496
+	{
497
+		$date_format = ! empty($date_format) ? $date_format : get_option('date_format');
498
+		$time_format = ! empty($time_format) ? $time_format : get_option('time_format');
499
+		$date_format = apply_filters('FHEE__espresso_event_date__date_format', $date_format);
500
+		$time_format = apply_filters('FHEE__espresso_event_date__time_format', $time_format);
501
+		if ($echo) {
502
+			echo EEH_Event_View::the_event_date($date_format, $time_format, $EVT_ID); // already escaped
503
+			return '';
504
+		}
505
+		return EEH_Event_View::the_event_date($date_format, $time_format, $EVT_ID);
506
+
507
+	}
508 508
 }
509 509
 
510 510
 
511 511
 if (! function_exists('espresso_list_of_event_dates')) {
512
-    /**
513
-     * espresso_list_of_event_dates
514
-     * returns a unordered list of dates for an event
515
-     *
516
-     * @param int    $EVT_ID
517
-     * @param string $date_format
518
-     * @param string $time_format
519
-     * @param bool   $echo
520
-     * @param null   $show_expired
521
-     * @param bool   $format
522
-     * @param bool   $add_breaks
523
-     * @param null   $limit
524
-     * @return string
525
-     * @throws EE_Error
526
-     * @throws ReflectionException
527
-     */
528
-    function espresso_list_of_event_dates(
529
-        $EVT_ID = 0,
530
-        $date_format = '',
531
-        $time_format = '',
532
-        $echo = true,
533
-        $show_expired = null,
534
-        $format = true,
535
-        $add_breaks = true,
536
-        $limit = null
537
-    ) {
538
-        $allowedtags = AllowedTags::getAllowedTags();
539
-	    $arguments = apply_filters(
540
-            'FHEE__espresso_list_of_event_dates__arguments',
541
-            [ $EVT_ID, $date_format, $time_format, $echo, $show_expired, $format, $add_breaks, $limit ]
542
-        );
543
-        [$EVT_ID, $date_format, $time_format, $echo, $show_expired, $format, $add_breaks, $limit] = $arguments;
544
-        $date_format = ! empty($date_format) ? $date_format : get_option('date_format');
545
-        $time_format = ! empty($time_format) ? $time_format : get_option('time_format');
546
-        $date_format = apply_filters('FHEE__espresso_list_of_event_dates__date_format', $date_format);
547
-        $time_format = apply_filters('FHEE__espresso_list_of_event_dates__time_format', $time_format);
548
-        $datetimes   = EEH_Event_View::get_all_date_obj($EVT_ID, $show_expired, false, $limit);
549
-        if (! $format) {
550
-            return apply_filters('FHEE__espresso_list_of_event_dates__datetimes', $datetimes);
551
-        }
552
-        $newline = $add_breaks ? '<br />' : '';
553
-        if (is_array($datetimes) && ! empty($datetimes)) {
554
-            global $post;
512
+	/**
513
+	 * espresso_list_of_event_dates
514
+	 * returns a unordered list of dates for an event
515
+	 *
516
+	 * @param int    $EVT_ID
517
+	 * @param string $date_format
518
+	 * @param string $time_format
519
+	 * @param bool   $echo
520
+	 * @param null   $show_expired
521
+	 * @param bool   $format
522
+	 * @param bool   $add_breaks
523
+	 * @param null   $limit
524
+	 * @return string
525
+	 * @throws EE_Error
526
+	 * @throws ReflectionException
527
+	 */
528
+	function espresso_list_of_event_dates(
529
+		$EVT_ID = 0,
530
+		$date_format = '',
531
+		$time_format = '',
532
+		$echo = true,
533
+		$show_expired = null,
534
+		$format = true,
535
+		$add_breaks = true,
536
+		$limit = null
537
+	) {
538
+		$allowedtags = AllowedTags::getAllowedTags();
539
+		$arguments = apply_filters(
540
+			'FHEE__espresso_list_of_event_dates__arguments',
541
+			[ $EVT_ID, $date_format, $time_format, $echo, $show_expired, $format, $add_breaks, $limit ]
542
+		);
543
+		[$EVT_ID, $date_format, $time_format, $echo, $show_expired, $format, $add_breaks, $limit] = $arguments;
544
+		$date_format = ! empty($date_format) ? $date_format : get_option('date_format');
545
+		$time_format = ! empty($time_format) ? $time_format : get_option('time_format');
546
+		$date_format = apply_filters('FHEE__espresso_list_of_event_dates__date_format', $date_format);
547
+		$time_format = apply_filters('FHEE__espresso_list_of_event_dates__time_format', $time_format);
548
+		$datetimes   = EEH_Event_View::get_all_date_obj($EVT_ID, $show_expired, false, $limit);
549
+		if (! $format) {
550
+			return apply_filters('FHEE__espresso_list_of_event_dates__datetimes', $datetimes);
551
+		}
552
+		$newline = $add_breaks ? '<br />' : '';
553
+		if (is_array($datetimes) && ! empty($datetimes)) {
554
+			global $post;
555 555
 			$cols = count($datetimes);
556 556
 			$cols = $cols >= 3 ? 'big' : 'small';
557 557
 			$ul_class = "ee-event-datetimes-ul ee-event-datetimes-ul--{$cols}";
558 558
 			$html = '<ul id="ee-event-datetimes-ul-' . esc_attr($post->ID) . '" class="'. $ul_class.'">';
559 559
 
560
-            foreach ($datetimes as $datetime) {
561
-                if ($datetime instanceof EE_Datetime) {
560
+			foreach ($datetimes as $datetime) {
561
+				if ($datetime instanceof EE_Datetime) {
562 562
 
563
-                    $datetime_name        = $datetime->name();
564
-                    $datetime_html        = ! empty($datetime_name)
565
-                        ? '
563
+					$datetime_name        = $datetime->name();
564
+					$datetime_html        = ! empty($datetime_name)
565
+						? '
566 566
                         <strong class="ee-event-datetimes-li-date-name">
567 567
                           ' . esc_html($datetime_name) . '
568 568
                        </strong>' . $newline
569
-                        : '';
569
+						: '';
570 570
 
571
-                    $datetime_html .= '
571
+					$datetime_html .= '
572 572
                         <span class="ee-event-datetimes-li-daterange">
573 573
 							<span class="dashicons dashicons-calendar"></span>&nbsp;'
574 574
 							. $datetime->date_range($date_format). '
@@ -580,502 +580,502 @@  discard block
 block discarded – undo
580 580
 						</span>
581 581
                         ';
582 582
 
583
-                    $venue = $datetime->venue();
584
-                    if ($venue instanceof EE_Venue) {
585
-                    	$venue_name      = esc_html($venue->name());
586
-                        $datetime_html .= '<br /><span class="ee-event-datetimes-li-venue">';
587
-                        $datetime_html .= '<span class="dashicons dashicons-admin-home"></span>&nbsp;';
588
-                        $datetime_html .= '<a href="'. esc_url_raw($venue->get_permalink()) .'" ';
589
-                        $datetime_html .= 'alt="'. $venue_name .'" target="_blank">';
590
-                        $datetime_html .= $venue_name . '</a></span>';
591
-                    }
592
-
593
-                    $datetime_description = $datetime->description();
594
-                    $datetime_html .= ! empty($datetime_description)
595
-                        ? '
583
+					$venue = $datetime->venue();
584
+					if ($venue instanceof EE_Venue) {
585
+						$venue_name      = esc_html($venue->name());
586
+						$datetime_html .= '<br /><span class="ee-event-datetimes-li-venue">';
587
+						$datetime_html .= '<span class="dashicons dashicons-admin-home"></span>&nbsp;';
588
+						$datetime_html .= '<a href="'. esc_url_raw($venue->get_permalink()) .'" ';
589
+						$datetime_html .= 'alt="'. $venue_name .'" target="_blank">';
590
+						$datetime_html .= $venue_name . '</a></span>';
591
+					}
592
+
593
+					$datetime_description = $datetime->description();
594
+					$datetime_html .= ! empty($datetime_description)
595
+						? '
596 596
                         <span class="ee-event-datetimes-li-date-desc">
597 597
                             ' . wp_kses($datetime_description, $allowedtags) . '
598 598
                         </span>' . $newline
599
-                        : '';
599
+						: '';
600 600
 
601
-                    $datetime_html = apply_filters(
602
-                        'FHEE__espresso_list_of_event_dates__datetime_html',
603
-                        $datetime_html,
604
-                        $datetime,
605
-                        $arguments
606
-                    );
601
+					$datetime_html = apply_filters(
602
+						'FHEE__espresso_list_of_event_dates__datetime_html',
603
+						$datetime_html,
604
+						$datetime,
605
+						$arguments
606
+					);
607 607
 
608
-                    $DTD_ID        = esc_attr($datetime->ID());
609
-                    $active_status = esc_attr('ee-event-datetimes-li-' . $datetime->get_active_status());
608
+					$DTD_ID        = esc_attr($datetime->ID());
609
+					$active_status = esc_attr('ee-event-datetimes-li-' . $datetime->get_active_status());
610 610
 
611
-                    $html .= '
611
+					$html .= '
612 612
                     <li id="ee-event-datetimes-li-' . $DTD_ID . '" class="ee-event-datetimes-li ' . $active_status . '">
613 613
                         ' . $datetime_html . '
614 614
                     </li>';
615
-                }
616
-            }
617
-            $html .= '</ul>';
618
-            $html = apply_filters('FHEE__espresso_list_of_event_dates__html', $html, $arguments, $datetime);
619
-        } else {
620
-            $html =
621
-                '
615
+				}
616
+			}
617
+			$html .= '</ul>';
618
+			$html = apply_filters('FHEE__espresso_list_of_event_dates__html', $html, $arguments, $datetime);
619
+		} else {
620
+			$html =
621
+				'
622 622
             <p>
623 623
                 <span class="dashicons dashicons-marker pink-text"></span>
624 624
                 ' . esc_html__(
625
-                    'There are no upcoming dates for this event.',
626
-                    'event_espresso'
627
-                ) . '
625
+					'There are no upcoming dates for this event.',
626
+					'event_espresso'
627
+				) . '
628 628
             </p>
629 629
             <br/>';
630
-        }
631
-        if ($echo) {
632
-            echo wp_kses($html, AllowedTags::getAllowedTags());
633
-            return '';
634
-        }
635
-        return $html;
636
-    }
630
+		}
631
+		if ($echo) {
632
+			echo wp_kses($html, AllowedTags::getAllowedTags());
633
+			return '';
634
+		}
635
+		return $html;
636
+	}
637 637
 }
638 638
 
639 639
 
640 640
 if (! function_exists('espresso_event_end_date')) {
641
-    /**
642
-     * espresso_event_end_date
643
-     * returns the last date for an event
644
-     *
645
-     * @param string $date_format
646
-     * @param string $time_format
647
-     * @param bool   $EVT_ID
648
-     * @param bool   $echo
649
-     * @return string
650
-     * @throws EE_Error
651
-     * @throws ReflectionException
652
-     */
653
-    function espresso_event_end_date($date_format = '', $time_format = '', $EVT_ID = false, $echo = true)
654
-    {
655
-        $date_format = ! empty($date_format) ? $date_format : get_option('date_format');
656
-        $time_format = ! empty($time_format) ? $time_format : get_option('time_format');
657
-        $date_format = apply_filters('FHEE__espresso_event_end_date__date_format', $date_format);
658
-        $time_format = apply_filters('FHEE__espresso_event_end_date__time_format', $time_format);
659
-        if ($echo) {
660
-            echo EEH_Event_View::the_event_end_date($date_format, $time_format, $EVT_ID); // already escaped
661
-            return '';
662
-        }
663
-        return EEH_Event_View::the_event_end_date($date_format, $time_format, $EVT_ID);
664
-    }
641
+	/**
642
+	 * espresso_event_end_date
643
+	 * returns the last date for an event
644
+	 *
645
+	 * @param string $date_format
646
+	 * @param string $time_format
647
+	 * @param bool   $EVT_ID
648
+	 * @param bool   $echo
649
+	 * @return string
650
+	 * @throws EE_Error
651
+	 * @throws ReflectionException
652
+	 */
653
+	function espresso_event_end_date($date_format = '', $time_format = '', $EVT_ID = false, $echo = true)
654
+	{
655
+		$date_format = ! empty($date_format) ? $date_format : get_option('date_format');
656
+		$time_format = ! empty($time_format) ? $time_format : get_option('time_format');
657
+		$date_format = apply_filters('FHEE__espresso_event_end_date__date_format', $date_format);
658
+		$time_format = apply_filters('FHEE__espresso_event_end_date__time_format', $time_format);
659
+		if ($echo) {
660
+			echo EEH_Event_View::the_event_end_date($date_format, $time_format, $EVT_ID); // already escaped
661
+			return '';
662
+		}
663
+		return EEH_Event_View::the_event_end_date($date_format, $time_format, $EVT_ID);
664
+	}
665 665
 }
666 666
 
667 667
 if (! function_exists('espresso_event_date_range')) {
668
-    /**
669
-     * espresso_event_date_range
670
-     * returns the first and last chronologically ordered dates for an event (if different)
671
-     *
672
-     * @param string $date_format
673
-     * @param string $time_format
674
-     * @param string $single_date_format
675
-     * @param string $single_time_format
676
-     * @param bool   $EVT_ID
677
-     * @param bool   $echo
678
-     * @return string
679
-     * @throws EE_Error
680
-     * @throws ReflectionException
681
-     */
682
-    function espresso_event_date_range(
683
-        $date_format = '',
684
-        $time_format = '',
685
-        $single_date_format = '',
686
-        $single_time_format = '',
687
-        $EVT_ID = false,
688
-        $echo = true
689
-    ) {
690
-        // set and filter date and time formats when a range is returned
691
-        $date_format = ! empty($date_format) ? $date_format : get_option('date_format');
692
-        $date_format = apply_filters('FHEE__espresso_event_date_range__date_format', $date_format);
693
-        // get the start and end date with NO time portion
694
-        $the_event_date     = EEH_Event_View::the_earliest_event_date($date_format, '', $EVT_ID);
695
-        $the_event_end_date = EEH_Event_View::the_latest_event_date($date_format, '', $EVT_ID);
696
-        // now we can determine if date range spans more than one day
697
-        if ($the_event_date != $the_event_end_date) {
698
-            $time_format = ! empty($time_format) ? $time_format : get_option('time_format');
699
-            $time_format = apply_filters('FHEE__espresso_event_date_range__time_format', $time_format);
700
-            $html        = sprintf(
701
-            /* translators: 1: first event date, 2: last event date */
702
-                esc_html__('%1$s - %2$s', 'event_espresso'),
703
-                EEH_Event_View::the_earliest_event_date($date_format, $time_format, $EVT_ID),
704
-                EEH_Event_View::the_latest_event_date($date_format, $time_format, $EVT_ID)
705
-            );
706
-        } else {
707
-            // set and filter date and time formats when only a single datetime is returned
708
-            $single_date_format = ! empty($single_date_format) ? $single_date_format : get_option('date_format');
709
-            $single_time_format = ! empty($single_time_format) ? $single_time_format : get_option('time_format');
710
-            $single_date_format =
711
-                apply_filters('FHEE__espresso_event_date_range__single_date_format', $single_date_format);
712
-            $single_time_format =
713
-                apply_filters('FHEE__espresso_event_date_range__single_time_format', $single_time_format);
714
-            $html               =
715
-                EEH_Event_View::the_earliest_event_date($single_date_format, $single_time_format, $EVT_ID);
716
-        }
717
-        if ($echo) {
718
-            echo wp_kses($html, AllowedTags::getAllowedTags());
719
-            return '';
720
-        }
721
-        return $html;
722
-    }
668
+	/**
669
+	 * espresso_event_date_range
670
+	 * returns the first and last chronologically ordered dates for an event (if different)
671
+	 *
672
+	 * @param string $date_format
673
+	 * @param string $time_format
674
+	 * @param string $single_date_format
675
+	 * @param string $single_time_format
676
+	 * @param bool   $EVT_ID
677
+	 * @param bool   $echo
678
+	 * @return string
679
+	 * @throws EE_Error
680
+	 * @throws ReflectionException
681
+	 */
682
+	function espresso_event_date_range(
683
+		$date_format = '',
684
+		$time_format = '',
685
+		$single_date_format = '',
686
+		$single_time_format = '',
687
+		$EVT_ID = false,
688
+		$echo = true
689
+	) {
690
+		// set and filter date and time formats when a range is returned
691
+		$date_format = ! empty($date_format) ? $date_format : get_option('date_format');
692
+		$date_format = apply_filters('FHEE__espresso_event_date_range__date_format', $date_format);
693
+		// get the start and end date with NO time portion
694
+		$the_event_date     = EEH_Event_View::the_earliest_event_date($date_format, '', $EVT_ID);
695
+		$the_event_end_date = EEH_Event_View::the_latest_event_date($date_format, '', $EVT_ID);
696
+		// now we can determine if date range spans more than one day
697
+		if ($the_event_date != $the_event_end_date) {
698
+			$time_format = ! empty($time_format) ? $time_format : get_option('time_format');
699
+			$time_format = apply_filters('FHEE__espresso_event_date_range__time_format', $time_format);
700
+			$html        = sprintf(
701
+			/* translators: 1: first event date, 2: last event date */
702
+				esc_html__('%1$s - %2$s', 'event_espresso'),
703
+				EEH_Event_View::the_earliest_event_date($date_format, $time_format, $EVT_ID),
704
+				EEH_Event_View::the_latest_event_date($date_format, $time_format, $EVT_ID)
705
+			);
706
+		} else {
707
+			// set and filter date and time formats when only a single datetime is returned
708
+			$single_date_format = ! empty($single_date_format) ? $single_date_format : get_option('date_format');
709
+			$single_time_format = ! empty($single_time_format) ? $single_time_format : get_option('time_format');
710
+			$single_date_format =
711
+				apply_filters('FHEE__espresso_event_date_range__single_date_format', $single_date_format);
712
+			$single_time_format =
713
+				apply_filters('FHEE__espresso_event_date_range__single_time_format', $single_time_format);
714
+			$html               =
715
+				EEH_Event_View::the_earliest_event_date($single_date_format, $single_time_format, $EVT_ID);
716
+		}
717
+		if ($echo) {
718
+			echo wp_kses($html, AllowedTags::getAllowedTags());
719
+			return '';
720
+		}
721
+		return $html;
722
+	}
723 723
 }
724 724
 
725 725
 if (! function_exists('espresso_next_upcoming_datetime_obj')) {
726
-    /**
727
-     * espresso_next_upcoming_datetime_obj
728
-     * returns the next upcoming datetime object for an event
729
-     *
730
-     * @param int $EVT_ID
731
-     * @return EE_Datetime|null
732
-     * @throws EE_Error
733
-     */
734
-    function espresso_next_upcoming_datetime_obj($EVT_ID = 0)
735
-    {
736
-        return EEH_Event_View::get_next_upcoming_date_obj($EVT_ID);
737
-    }
726
+	/**
727
+	 * espresso_next_upcoming_datetime_obj
728
+	 * returns the next upcoming datetime object for an event
729
+	 *
730
+	 * @param int $EVT_ID
731
+	 * @return EE_Datetime|null
732
+	 * @throws EE_Error
733
+	 */
734
+	function espresso_next_upcoming_datetime_obj($EVT_ID = 0)
735
+	{
736
+		return EEH_Event_View::get_next_upcoming_date_obj($EVT_ID);
737
+	}
738 738
 }
739 739
 
740 740
 if (! function_exists('espresso_next_upcoming_datetime')) {
741
-    /**
742
-     * espresso_next_upcoming_datetime
743
-     * returns the start date and time for the next upcoming event.
744
-     *
745
-     * @param string $date_format
746
-     * @param string $time_format
747
-     * @param int    $EVT_ID
748
-     * @param bool   $echo
749
-     * @return string
750
-     * @throws EE_Error
751
-     * @throws ReflectionException
752
-     */
753
-    function espresso_next_upcoming_datetime($date_format = '', $time_format = '', $EVT_ID = 0, $echo = true)
754
-    {
755
-
756
-        $date_format = ! empty($date_format) ? $date_format : get_option('date_format');
757
-        $date_format = apply_filters('FHEE__espresso_next_upcoming_datetime__date_format', $date_format);
758
-
759
-        $time_format = ! empty($time_format) ? $time_format : get_option('time_format');
760
-        $time_format = apply_filters('FHEE__espresso_next_upcoming_datetime__time_format', $time_format);
761
-
762
-        $datetime_format = trim($date_format . ' ' . $time_format);
763
-
764
-        $datetime = espresso_next_upcoming_datetime_obj($EVT_ID);
765
-
766
-        if (! $datetime instanceof EE_Datetime) {
767
-            return '';
768
-        }
769
-        if ($echo) {
770
-            echo esc_html($datetime->get_i18n_datetime('DTT_EVT_start', $datetime_format));
771
-            return '';
772
-        }
773
-        return $datetime->get_i18n_datetime('DTT_EVT_start', $datetime_format);
774
-    }
741
+	/**
742
+	 * espresso_next_upcoming_datetime
743
+	 * returns the start date and time for the next upcoming event.
744
+	 *
745
+	 * @param string $date_format
746
+	 * @param string $time_format
747
+	 * @param int    $EVT_ID
748
+	 * @param bool   $echo
749
+	 * @return string
750
+	 * @throws EE_Error
751
+	 * @throws ReflectionException
752
+	 */
753
+	function espresso_next_upcoming_datetime($date_format = '', $time_format = '', $EVT_ID = 0, $echo = true)
754
+	{
755
+
756
+		$date_format = ! empty($date_format) ? $date_format : get_option('date_format');
757
+		$date_format = apply_filters('FHEE__espresso_next_upcoming_datetime__date_format', $date_format);
758
+
759
+		$time_format = ! empty($time_format) ? $time_format : get_option('time_format');
760
+		$time_format = apply_filters('FHEE__espresso_next_upcoming_datetime__time_format', $time_format);
761
+
762
+		$datetime_format = trim($date_format . ' ' . $time_format);
763
+
764
+		$datetime = espresso_next_upcoming_datetime_obj($EVT_ID);
765
+
766
+		if (! $datetime instanceof EE_Datetime) {
767
+			return '';
768
+		}
769
+		if ($echo) {
770
+			echo esc_html($datetime->get_i18n_datetime('DTT_EVT_start', $datetime_format));
771
+			return '';
772
+		}
773
+		return $datetime->get_i18n_datetime('DTT_EVT_start', $datetime_format);
774
+	}
775 775
 }
776 776
 
777 777
 if (! function_exists('espresso_event_date_as_calendar_page')) {
778
-    /**
779
-     * espresso_event_date_as_calendar_page
780
-     * returns the primary date for an event, stylized to appear as the page of a calendar
781
-     *
782
-     * @param bool $EVT_ID
783
-     * @return void
784
-     * @throws EE_Error
785
-     * @throws ReflectionException
786
-     */
787
-    function espresso_event_date_as_calendar_page($EVT_ID = false)
788
-    {
789
-        EEH_Event_View::event_date_as_calendar_page($EVT_ID);
790
-    }
778
+	/**
779
+	 * espresso_event_date_as_calendar_page
780
+	 * returns the primary date for an event, stylized to appear as the page of a calendar
781
+	 *
782
+	 * @param bool $EVT_ID
783
+	 * @return void
784
+	 * @throws EE_Error
785
+	 * @throws ReflectionException
786
+	 */
787
+	function espresso_event_date_as_calendar_page($EVT_ID = false)
788
+	{
789
+		EEH_Event_View::event_date_as_calendar_page($EVT_ID);
790
+	}
791 791
 }
792 792
 
793 793
 
794 794
 if (! function_exists('espresso_event_link_url')) {
795
-    /**
796
-     * espresso_event_link_url
797
-     *
798
-     * @param int  $EVT_ID
799
-     * @param bool $echo
800
-     * @return string
801
-     * @throws EE_Error
802
-     * @throws ReflectionException
803
-     */
804
-    function espresso_event_link_url($EVT_ID = 0, $echo = true)
805
-    {
806
-        if ($echo) {
807
-            echo EEH_Event_View::event_link_url($EVT_ID); // already escaped
808
-            return '';
809
-        }
810
-        return EEH_Event_View::event_link_url($EVT_ID);
811
-    }
795
+	/**
796
+	 * espresso_event_link_url
797
+	 *
798
+	 * @param int  $EVT_ID
799
+	 * @param bool $echo
800
+	 * @return string
801
+	 * @throws EE_Error
802
+	 * @throws ReflectionException
803
+	 */
804
+	function espresso_event_link_url($EVT_ID = 0, $echo = true)
805
+	{
806
+		if ($echo) {
807
+			echo EEH_Event_View::event_link_url($EVT_ID); // already escaped
808
+			return '';
809
+		}
810
+		return EEH_Event_View::event_link_url($EVT_ID);
811
+	}
812 812
 }
813 813
 
814 814
 
815 815
 if (! function_exists('espresso_event_has_content_or_excerpt')) {
816
-    /**
817
-     *    espresso_event_has_content_or_excerpt
818
-     *
819
-     * @access    public
820
-     * @param bool $EVT_ID
821
-     * @return    boolean
822
-     * @throws EE_Error
823
-     * @throws ReflectionException
824
-     */
825
-    function espresso_event_has_content_or_excerpt($EVT_ID = false)
826
-    {
827
-        return EEH_Event_View::event_has_content_or_excerpt($EVT_ID);
828
-    }
816
+	/**
817
+	 *    espresso_event_has_content_or_excerpt
818
+	 *
819
+	 * @access    public
820
+	 * @param bool $EVT_ID
821
+	 * @return    boolean
822
+	 * @throws EE_Error
823
+	 * @throws ReflectionException
824
+	 */
825
+	function espresso_event_has_content_or_excerpt($EVT_ID = false)
826
+	{
827
+		return EEH_Event_View::event_has_content_or_excerpt($EVT_ID);
828
+	}
829 829
 }
830 830
 
831 831
 
832 832
 if (! function_exists('espresso_event_content_or_excerpt')) {
833
-    /**
834
-     * espresso_event_content_or_excerpt
835
-     *
836
-     * @param int  $num_words
837
-     * @param null $more
838
-     * @param bool $echo
839
-     * @return string
840
-     */
841
-    function espresso_event_content_or_excerpt($num_words = 55, $more = null, $echo = true)
842
-    {
843
-        if ($echo) {
844
-            echo EEH_Event_View::event_content_or_excerpt($num_words, $more); // already escaped
845
-            return '';
846
-        }
847
-        return EEH_Event_View::event_content_or_excerpt($num_words, $more);
848
-    }
833
+	/**
834
+	 * espresso_event_content_or_excerpt
835
+	 *
836
+	 * @param int  $num_words
837
+	 * @param null $more
838
+	 * @param bool $echo
839
+	 * @return string
840
+	 */
841
+	function espresso_event_content_or_excerpt($num_words = 55, $more = null, $echo = true)
842
+	{
843
+		if ($echo) {
844
+			echo EEH_Event_View::event_content_or_excerpt($num_words, $more); // already escaped
845
+			return '';
846
+		}
847
+		return EEH_Event_View::event_content_or_excerpt($num_words, $more);
848
+	}
849 849
 }
850 850
 
851 851
 
852 852
 if (! function_exists('espresso_event_phone')) {
853
-    /**
854
-     * espresso_event_phone
855
-     *
856
-     * @param int  $EVT_ID
857
-     * @param bool $echo
858
-     * @return string
859
-     * @throws EE_Error
860
-     * @throws ReflectionException
861
-     */
862
-    function espresso_event_phone($EVT_ID = 0, $echo = true)
863
-    {
864
-        if ($echo) {
865
-            echo EEH_Event_View::event_phone($EVT_ID); // already escaped
866
-            return '';
867
-        }
868
-        return EEH_Event_View::event_phone($EVT_ID);
869
-    }
853
+	/**
854
+	 * espresso_event_phone
855
+	 *
856
+	 * @param int  $EVT_ID
857
+	 * @param bool $echo
858
+	 * @return string
859
+	 * @throws EE_Error
860
+	 * @throws ReflectionException
861
+	 */
862
+	function espresso_event_phone($EVT_ID = 0, $echo = true)
863
+	{
864
+		if ($echo) {
865
+			echo EEH_Event_View::event_phone($EVT_ID); // already escaped
866
+			return '';
867
+		}
868
+		return EEH_Event_View::event_phone($EVT_ID);
869
+	}
870 870
 }
871 871
 
872 872
 
873 873
 if (! function_exists('espresso_edit_event_link')) {
874
-    /**
875
-     * espresso_edit_event_link
876
-     * returns a link to edit an event
877
-     *
878
-     * @param int  $EVT_ID
879
-     * @param bool $echo
880
-     * @return string
881
-     * @throws EE_Error
882
-     * @throws ReflectionException
883
-     */
884
-    function espresso_edit_event_link($EVT_ID = 0, $echo = true)
885
-    {
886
-        if ($echo) {
887
-            echo EEH_Event_View::edit_event_link($EVT_ID); // already escaped
888
-            return '';
889
-        }
890
-        return EEH_Event_View::edit_event_link($EVT_ID);
891
-    }
874
+	/**
875
+	 * espresso_edit_event_link
876
+	 * returns a link to edit an event
877
+	 *
878
+	 * @param int  $EVT_ID
879
+	 * @param bool $echo
880
+	 * @return string
881
+	 * @throws EE_Error
882
+	 * @throws ReflectionException
883
+	 */
884
+	function espresso_edit_event_link($EVT_ID = 0, $echo = true)
885
+	{
886
+		if ($echo) {
887
+			echo EEH_Event_View::edit_event_link($EVT_ID); // already escaped
888
+			return '';
889
+		}
890
+		return EEH_Event_View::edit_event_link($EVT_ID);
891
+	}
892 892
 }
893 893
 
894 894
 
895 895
 if (! function_exists('espresso_organization_name')) {
896
-    /**
897
-     * espresso_organization_name
898
-     *
899
-     * @param bool $echo
900
-     * @return string
901
-     * @throws EE_Error
902
-     */
903
-    function espresso_organization_name($echo = true)
904
-    {
905
-        if ($echo) {
906
-            echo EE_Registry::instance()->CFG->organization->get_pretty('name'); // already escaped
907
-            return '';
908
-        }
909
-        return EE_Registry::instance()->CFG->organization->get_pretty('name');
910
-    }
896
+	/**
897
+	 * espresso_organization_name
898
+	 *
899
+	 * @param bool $echo
900
+	 * @return string
901
+	 * @throws EE_Error
902
+	 */
903
+	function espresso_organization_name($echo = true)
904
+	{
905
+		if ($echo) {
906
+			echo EE_Registry::instance()->CFG->organization->get_pretty('name'); // already escaped
907
+			return '';
908
+		}
909
+		return EE_Registry::instance()->CFG->organization->get_pretty('name');
910
+	}
911 911
 }
912 912
 
913 913
 if (! function_exists('espresso_organization_address')) {
914
-    /**
915
-     * espresso_organization_address
916
-     *
917
-     * @param string $type
918
-     * @return string
919
-     */
920
-    function espresso_organization_address($type = 'inline')
921
-    {
922
-        if (EE_Registry::instance()->CFG->organization instanceof EE_Organization_Config) {
923
-            $address = new EventEspresso\core\domain\entities\GenericAddress(
924
-                EE_Registry::instance()->CFG->organization->address_1,
925
-                EE_Registry::instance()->CFG->organization->address_2,
926
-                EE_Registry::instance()->CFG->organization->city,
927
-                EE_Registry::instance()->CFG->organization->STA_ID,
928
-                EE_Registry::instance()->CFG->organization->zip,
929
-                EE_Registry::instance()->CFG->organization->CNT_ISO
930
-            );
931
-            return EEH_Address::format($address, $type);
932
-        }
933
-        return '';
934
-    }
914
+	/**
915
+	 * espresso_organization_address
916
+	 *
917
+	 * @param string $type
918
+	 * @return string
919
+	 */
920
+	function espresso_organization_address($type = 'inline')
921
+	{
922
+		if (EE_Registry::instance()->CFG->organization instanceof EE_Organization_Config) {
923
+			$address = new EventEspresso\core\domain\entities\GenericAddress(
924
+				EE_Registry::instance()->CFG->organization->address_1,
925
+				EE_Registry::instance()->CFG->organization->address_2,
926
+				EE_Registry::instance()->CFG->organization->city,
927
+				EE_Registry::instance()->CFG->organization->STA_ID,
928
+				EE_Registry::instance()->CFG->organization->zip,
929
+				EE_Registry::instance()->CFG->organization->CNT_ISO
930
+			);
931
+			return EEH_Address::format($address, $type);
932
+		}
933
+		return '';
934
+	}
935 935
 }
936 936
 
937 937
 if (! function_exists('espresso_organization_email')) {
938
-    /**
939
-     * espresso_organization_email
940
-     *
941
-     * @param bool $echo
942
-     * @return string
943
-     * @throws EE_Error
944
-     */
945
-    function espresso_organization_email($echo = true)
946
-    {
947
-        if ($echo) {
948
-            echo EE_Registry::instance()->CFG->organization->get_pretty('email'); // already escaped
949
-            return '';
950
-        }
951
-        return EE_Registry::instance()->CFG->organization->get_pretty('email');
952
-    }
938
+	/**
939
+	 * espresso_organization_email
940
+	 *
941
+	 * @param bool $echo
942
+	 * @return string
943
+	 * @throws EE_Error
944
+	 */
945
+	function espresso_organization_email($echo = true)
946
+	{
947
+		if ($echo) {
948
+			echo EE_Registry::instance()->CFG->organization->get_pretty('email'); // already escaped
949
+			return '';
950
+		}
951
+		return EE_Registry::instance()->CFG->organization->get_pretty('email');
952
+	}
953 953
 }
954 954
 
955 955
 if (! function_exists('espresso_organization_logo_url')) {
956
-    /**
957
-     * espresso_organization_logo_url
958
-     *
959
-     * @param bool $echo
960
-     * @return string
961
-     * @throws EE_Error
962
-     */
963
-    function espresso_organization_logo_url($echo = true)
964
-    {
965
-        if ($echo) {
966
-            echo EE_Registry::instance()->CFG->organization->get_pretty('logo_url'); // already escaped
967
-            return '';
968
-        }
969
-        return EE_Registry::instance()->CFG->organization->get_pretty('logo_url');
970
-    }
956
+	/**
957
+	 * espresso_organization_logo_url
958
+	 *
959
+	 * @param bool $echo
960
+	 * @return string
961
+	 * @throws EE_Error
962
+	 */
963
+	function espresso_organization_logo_url($echo = true)
964
+	{
965
+		if ($echo) {
966
+			echo EE_Registry::instance()->CFG->organization->get_pretty('logo_url'); // already escaped
967
+			return '';
968
+		}
969
+		return EE_Registry::instance()->CFG->organization->get_pretty('logo_url');
970
+	}
971 971
 }
972 972
 
973 973
 if (! function_exists('espresso_organization_facebook')) {
974
-    /**
975
-     * espresso_organization_facebook
976
-     *
977
-     * @param bool $echo
978
-     * @return string
979
-     * @throws EE_Error
980
-     */
981
-    function espresso_organization_facebook($echo = true)
982
-    {
983
-        if ($echo) {
984
-            echo EE_Registry::instance()->CFG->organization->get_pretty('facebook'); // already escaped
985
-            return '';
986
-        }
987
-        return EE_Registry::instance()->CFG->organization->get_pretty('facebook');
988
-    }
974
+	/**
975
+	 * espresso_organization_facebook
976
+	 *
977
+	 * @param bool $echo
978
+	 * @return string
979
+	 * @throws EE_Error
980
+	 */
981
+	function espresso_organization_facebook($echo = true)
982
+	{
983
+		if ($echo) {
984
+			echo EE_Registry::instance()->CFG->organization->get_pretty('facebook'); // already escaped
985
+			return '';
986
+		}
987
+		return EE_Registry::instance()->CFG->organization->get_pretty('facebook');
988
+	}
989 989
 }
990 990
 
991 991
 if (! function_exists('espresso_organization_twitter')) {
992
-    /**
993
-     * espresso_organization_twitter
994
-     *
995
-     * @param bool $echo
996
-     * @return string
997
-     * @throws EE_Error
998
-     */
999
-    function espresso_organization_twitter($echo = true)
1000
-    {
1001
-        if ($echo) {
1002
-            echo EE_Registry::instance()->CFG->organization->get_pretty('twitter'); // already escaped
1003
-            return '';
1004
-        }
1005
-        return EE_Registry::instance()->CFG->organization->get_pretty('twitter');
1006
-    }
992
+	/**
993
+	 * espresso_organization_twitter
994
+	 *
995
+	 * @param bool $echo
996
+	 * @return string
997
+	 * @throws EE_Error
998
+	 */
999
+	function espresso_organization_twitter($echo = true)
1000
+	{
1001
+		if ($echo) {
1002
+			echo EE_Registry::instance()->CFG->organization->get_pretty('twitter'); // already escaped
1003
+			return '';
1004
+		}
1005
+		return EE_Registry::instance()->CFG->organization->get_pretty('twitter');
1006
+	}
1007 1007
 }
1008 1008
 
1009 1009
 if (! function_exists('espresso_organization_linkedin')) {
1010
-    /**
1011
-     * espresso_organization_linkedin
1012
-     *
1013
-     * @param bool $echo
1014
-     * @return string
1015
-     * @throws EE_Error
1016
-     */
1017
-    function espresso_organization_linkedin($echo = true)
1018
-    {
1019
-        if ($echo) {
1020
-            echo EE_Registry::instance()->CFG->organization->get_pretty('linkedin'); // already escaped
1021
-            return '';
1022
-        }
1023
-        return EE_Registry::instance()->CFG->organization->get_pretty('linkedin');
1024
-    }
1010
+	/**
1011
+	 * espresso_organization_linkedin
1012
+	 *
1013
+	 * @param bool $echo
1014
+	 * @return string
1015
+	 * @throws EE_Error
1016
+	 */
1017
+	function espresso_organization_linkedin($echo = true)
1018
+	{
1019
+		if ($echo) {
1020
+			echo EE_Registry::instance()->CFG->organization->get_pretty('linkedin'); // already escaped
1021
+			return '';
1022
+		}
1023
+		return EE_Registry::instance()->CFG->organization->get_pretty('linkedin');
1024
+	}
1025 1025
 }
1026 1026
 
1027 1027
 if (! function_exists('espresso_organization_pinterest')) {
1028
-    /**
1029
-     * espresso_organization_pinterest
1030
-     *
1031
-     * @param bool $echo
1032
-     * @return string
1033
-     * @throws EE_Error
1034
-     */
1035
-    function espresso_organization_pinterest($echo = true)
1036
-    {
1037
-        if ($echo) {
1038
-            echo EE_Registry::instance()->CFG->organization->get_pretty('pinterest'); // already escaped
1039
-            return '';
1040
-        }
1041
-        return EE_Registry::instance()->CFG->organization->get_pretty('pinterest');
1042
-    }
1028
+	/**
1029
+	 * espresso_organization_pinterest
1030
+	 *
1031
+	 * @param bool $echo
1032
+	 * @return string
1033
+	 * @throws EE_Error
1034
+	 */
1035
+	function espresso_organization_pinterest($echo = true)
1036
+	{
1037
+		if ($echo) {
1038
+			echo EE_Registry::instance()->CFG->organization->get_pretty('pinterest'); // already escaped
1039
+			return '';
1040
+		}
1041
+		return EE_Registry::instance()->CFG->organization->get_pretty('pinterest');
1042
+	}
1043 1043
 }
1044 1044
 
1045 1045
 if (! function_exists('espresso_organization_google')) {
1046
-    /**
1047
-     * espresso_organization_google
1048
-     *
1049
-     * @param bool $echo
1050
-     * @return string
1051
-     * @throws EE_Error
1052
-     */
1053
-    function espresso_organization_google($echo = true)
1054
-    {
1055
-        if ($echo) {
1056
-            echo EE_Registry::instance()->CFG->organization->get_pretty('google'); // already escaped
1057
-            return '';
1058
-        }
1059
-        return EE_Registry::instance()->CFG->organization->get_pretty('google');
1060
-    }
1046
+	/**
1047
+	 * espresso_organization_google
1048
+	 *
1049
+	 * @param bool $echo
1050
+	 * @return string
1051
+	 * @throws EE_Error
1052
+	 */
1053
+	function espresso_organization_google($echo = true)
1054
+	{
1055
+		if ($echo) {
1056
+			echo EE_Registry::instance()->CFG->organization->get_pretty('google'); // already escaped
1057
+			return '';
1058
+		}
1059
+		return EE_Registry::instance()->CFG->organization->get_pretty('google');
1060
+	}
1061 1061
 }
1062 1062
 
1063 1063
 if (! function_exists('espresso_organization_instagram')) {
1064
-    /**
1065
-     * espresso_organization_instagram
1066
-     *
1067
-     * @param bool $echo
1068
-     * @return string
1069
-     * @throws EE_Error
1070
-     */
1071
-    function espresso_organization_instagram($echo = true)
1072
-    {
1073
-        if ($echo) {
1074
-            echo EE_Registry::instance()->CFG->organization->get_pretty('instagram'); // already escaped
1075
-            return '';
1076
-        }
1077
-        return EE_Registry::instance()->CFG->organization->get_pretty('instagram');
1078
-    }
1064
+	/**
1065
+	 * espresso_organization_instagram
1066
+	 *
1067
+	 * @param bool $echo
1068
+	 * @return string
1069
+	 * @throws EE_Error
1070
+	 */
1071
+	function espresso_organization_instagram($echo = true)
1072
+	{
1073
+		if ($echo) {
1074
+			echo EE_Registry::instance()->CFG->organization->get_pretty('instagram'); // already escaped
1075
+			return '';
1076
+		}
1077
+		return EE_Registry::instance()->CFG->organization->get_pretty('instagram');
1078
+	}
1079 1079
 }
1080 1080
 
1081 1081
 
@@ -1083,345 +1083,345 @@  discard block
 block discarded – undo
1083 1083
 
1084 1084
 
1085 1085
 if (! function_exists('espresso_event_venues')) {
1086
-    /**
1087
-     * espresso_event_venues
1088
-     *
1089
-     * @return array  all venues related to an event
1090
-     * @throws EE_Error
1091
-     * @throws ReflectionException
1092
-     */
1093
-    function espresso_event_venues()
1094
-    {
1095
-        return EEH_Venue_View::get_event_venues();
1096
-    }
1086
+	/**
1087
+	 * espresso_event_venues
1088
+	 *
1089
+	 * @return array  all venues related to an event
1090
+	 * @throws EE_Error
1091
+	 * @throws ReflectionException
1092
+	 */
1093
+	function espresso_event_venues()
1094
+	{
1095
+		return EEH_Venue_View::get_event_venues();
1096
+	}
1097 1097
 }
1098 1098
 
1099 1099
 
1100 1100
 if (! function_exists('espresso_venue_id')) {
1101
-    /**
1102
-     *    espresso_venue_name
1103
-     *
1104
-     * @access    public
1105
-     * @param int $EVT_ID
1106
-     * @return    string
1107
-     * @throws EE_Error
1108
-     * @throws ReflectionException
1109
-     */
1110
-    function espresso_venue_id($EVT_ID = 0)
1111
-    {
1112
-        $venue = EEH_Venue_View::get_venue($EVT_ID);
1113
-        return $venue instanceof EE_Venue ? $venue->ID() : 0;
1114
-    }
1101
+	/**
1102
+	 *    espresso_venue_name
1103
+	 *
1104
+	 * @access    public
1105
+	 * @param int $EVT_ID
1106
+	 * @return    string
1107
+	 * @throws EE_Error
1108
+	 * @throws ReflectionException
1109
+	 */
1110
+	function espresso_venue_id($EVT_ID = 0)
1111
+	{
1112
+		$venue = EEH_Venue_View::get_venue($EVT_ID);
1113
+		return $venue instanceof EE_Venue ? $venue->ID() : 0;
1114
+	}
1115 1115
 }
1116 1116
 
1117 1117
 
1118 1118
 if (! function_exists('espresso_is_venue_private')) {
1119
-    /**
1120
-     * Return whether a venue is private or not.
1121
-     *
1122
-     * @param int $VNU_ID optional, the venue id to check.
1123
-     *
1124
-     * @return bool | null
1125
-     * @throws EE_Error
1126
-     * @throws ReflectionException
1127
-     * @see EEH_Venue_View::get_venue() for more info on expected return results.
1128
-     */
1129
-    function espresso_is_venue_private($VNU_ID = 0)
1130
-    {
1131
-        return EEH_Venue_View::is_venue_private($VNU_ID);
1132
-    }
1119
+	/**
1120
+	 * Return whether a venue is private or not.
1121
+	 *
1122
+	 * @param int $VNU_ID optional, the venue id to check.
1123
+	 *
1124
+	 * @return bool | null
1125
+	 * @throws EE_Error
1126
+	 * @throws ReflectionException
1127
+	 * @see EEH_Venue_View::get_venue() for more info on expected return results.
1128
+	 */
1129
+	function espresso_is_venue_private($VNU_ID = 0)
1130
+	{
1131
+		return EEH_Venue_View::is_venue_private($VNU_ID);
1132
+	}
1133 1133
 }
1134 1134
 
1135 1135
 
1136 1136
 if (! function_exists('espresso_venue_is_password_protected')) {
1137
-    /**
1138
-     * returns true or false if a venue is password protected or not
1139
-     *
1140
-     * @param int $VNU_ID optional, the venue id to check.
1141
-     * @return bool
1142
-     * @throws EE_Error
1143
-     * @throws ReflectionException
1144
-     */
1145
-    function espresso_venue_is_password_protected($VNU_ID = 0)
1146
-    {
1147
-        EE_Registry::instance()->load_helper('Venue_View');
1148
-        return EEH_Venue_View::is_venue_password_protected($VNU_ID);
1149
-    }
1137
+	/**
1138
+	 * returns true or false if a venue is password protected or not
1139
+	 *
1140
+	 * @param int $VNU_ID optional, the venue id to check.
1141
+	 * @return bool
1142
+	 * @throws EE_Error
1143
+	 * @throws ReflectionException
1144
+	 */
1145
+	function espresso_venue_is_password_protected($VNU_ID = 0)
1146
+	{
1147
+		EE_Registry::instance()->load_helper('Venue_View');
1148
+		return EEH_Venue_View::is_venue_password_protected($VNU_ID);
1149
+	}
1150 1150
 }
1151 1151
 
1152 1152
 
1153 1153
 if (! function_exists('espresso_password_protected_venue_form')) {
1154
-    /**
1155
-     * Returns a password form if venue is password protected.
1156
-     *
1157
-     * @param int $VNU_ID optional, the venue id to check.
1158
-     * @return string
1159
-     * @throws EE_Error
1160
-     * @throws ReflectionException
1161
-     */
1162
-    function espresso_password_protected_venue_form($VNU_ID = 0)
1163
-    {
1164
-        EE_Registry::instance()->load_helper('Venue_View');
1165
-        return EEH_Venue_View::password_protected_venue_form($VNU_ID);
1166
-    }
1154
+	/**
1155
+	 * Returns a password form if venue is password protected.
1156
+	 *
1157
+	 * @param int $VNU_ID optional, the venue id to check.
1158
+	 * @return string
1159
+	 * @throws EE_Error
1160
+	 * @throws ReflectionException
1161
+	 */
1162
+	function espresso_password_protected_venue_form($VNU_ID = 0)
1163
+	{
1164
+		EE_Registry::instance()->load_helper('Venue_View');
1165
+		return EEH_Venue_View::password_protected_venue_form($VNU_ID);
1166
+	}
1167 1167
 }
1168 1168
 
1169 1169
 
1170 1170
 if (! function_exists('espresso_venue_name')) {
1171
-    /**
1172
-     *    espresso_venue_name
1173
-     *
1174
-     * @access    public
1175
-     * @param int    $VNU_ID
1176
-     * @param string $link_to - options( details, website, none ) whether to turn Venue name into a clickable link to the Venue's details page or website
1177
-     * @param bool   $echo
1178
-     * @return    string
1179
-     * @throws EE_Error
1180
-     * @throws ReflectionException
1181
-     */
1182
-    function espresso_venue_name($VNU_ID = 0, $link_to = 'details', $echo = true)
1183
-    {
1184
-        if ($echo) {
1185
-            echo EEH_Venue_View::venue_name($link_to, $VNU_ID); // already escaped
1186
-            return '';
1187
-        }
1188
-        return EEH_Venue_View::venue_name($link_to, $VNU_ID);
1189
-    }
1171
+	/**
1172
+	 *    espresso_venue_name
1173
+	 *
1174
+	 * @access    public
1175
+	 * @param int    $VNU_ID
1176
+	 * @param string $link_to - options( details, website, none ) whether to turn Venue name into a clickable link to the Venue's details page or website
1177
+	 * @param bool   $echo
1178
+	 * @return    string
1179
+	 * @throws EE_Error
1180
+	 * @throws ReflectionException
1181
+	 */
1182
+	function espresso_venue_name($VNU_ID = 0, $link_to = 'details', $echo = true)
1183
+	{
1184
+		if ($echo) {
1185
+			echo EEH_Venue_View::venue_name($link_to, $VNU_ID); // already escaped
1186
+			return '';
1187
+		}
1188
+		return EEH_Venue_View::venue_name($link_to, $VNU_ID);
1189
+	}
1190 1190
 }
1191 1191
 
1192 1192
 
1193 1193
 if (! function_exists('espresso_venue_link')) {
1194
-    /**
1195
-     *    espresso_venue_link
1196
-     *
1197
-     * @access    public
1198
-     * @param int    $VNU_ID
1199
-     * @param string $text
1200
-     * @return    string
1201
-     * @throws EE_Error
1202
-     * @throws ReflectionException
1203
-     */
1204
-    function espresso_venue_link($VNU_ID = 0, $text = '')
1205
-    {
1206
-        return EEH_Venue_View::venue_details_link($VNU_ID, $text);
1207
-    }
1194
+	/**
1195
+	 *    espresso_venue_link
1196
+	 *
1197
+	 * @access    public
1198
+	 * @param int    $VNU_ID
1199
+	 * @param string $text
1200
+	 * @return    string
1201
+	 * @throws EE_Error
1202
+	 * @throws ReflectionException
1203
+	 */
1204
+	function espresso_venue_link($VNU_ID = 0, $text = '')
1205
+	{
1206
+		return EEH_Venue_View::venue_details_link($VNU_ID, $text);
1207
+	}
1208 1208
 }
1209 1209
 
1210 1210
 
1211 1211
 if (! function_exists('espresso_venue_description')) {
1212
-    /**
1213
-     *    espresso_venue_description
1214
-     *
1215
-     * @access    public
1216
-     * @param bool $VNU_ID
1217
-     * @param bool $echo
1218
-     * @return    string
1219
-     * @throws EE_Error
1220
-     * @throws ReflectionException
1221
-     */
1222
-    function espresso_venue_description($VNU_ID = false, $echo = true)
1223
-    {
1224
-        if ($echo) {
1225
-            echo EEH_Venue_View::venue_description($VNU_ID); // already escaped
1226
-            return '';
1227
-        }
1228
-        return EEH_Venue_View::venue_description($VNU_ID);
1229
-    }
1212
+	/**
1213
+	 *    espresso_venue_description
1214
+	 *
1215
+	 * @access    public
1216
+	 * @param bool $VNU_ID
1217
+	 * @param bool $echo
1218
+	 * @return    string
1219
+	 * @throws EE_Error
1220
+	 * @throws ReflectionException
1221
+	 */
1222
+	function espresso_venue_description($VNU_ID = false, $echo = true)
1223
+	{
1224
+		if ($echo) {
1225
+			echo EEH_Venue_View::venue_description($VNU_ID); // already escaped
1226
+			return '';
1227
+		}
1228
+		return EEH_Venue_View::venue_description($VNU_ID);
1229
+	}
1230 1230
 }
1231 1231
 
1232 1232
 
1233 1233
 if (! function_exists('espresso_venue_excerpt')) {
1234
-    /**
1235
-     *    espresso_venue_excerpt
1236
-     *
1237
-     * @access    public
1238
-     * @param int  $VNU_ID
1239
-     * @param bool $echo
1240
-     * @return    string
1241
-     * @throws EE_Error
1242
-     * @throws ReflectionException
1243
-     */
1244
-    function espresso_venue_excerpt($VNU_ID = 0, $echo = true)
1245
-    {
1246
-        if ($echo) {
1247
-            echo EEH_Venue_View::venue_excerpt($VNU_ID); // already escaped
1248
-            return '';
1249
-        }
1250
-        return EEH_Venue_View::venue_excerpt($VNU_ID);
1251
-    }
1234
+	/**
1235
+	 *    espresso_venue_excerpt
1236
+	 *
1237
+	 * @access    public
1238
+	 * @param int  $VNU_ID
1239
+	 * @param bool $echo
1240
+	 * @return    string
1241
+	 * @throws EE_Error
1242
+	 * @throws ReflectionException
1243
+	 */
1244
+	function espresso_venue_excerpt($VNU_ID = 0, $echo = true)
1245
+	{
1246
+		if ($echo) {
1247
+			echo EEH_Venue_View::venue_excerpt($VNU_ID); // already escaped
1248
+			return '';
1249
+		}
1250
+		return EEH_Venue_View::venue_excerpt($VNU_ID);
1251
+	}
1252 1252
 }
1253 1253
 
1254 1254
 
1255 1255
 if (! function_exists('espresso_venue_categories')) {
1256
-    /**
1257
-     * espresso_venue_categories
1258
-     * returns the terms associated with a venue
1259
-     *
1260
-     * @param int  $VNU_ID
1261
-     * @param bool $hide_uncategorized
1262
-     * @param bool $echo
1263
-     * @return string
1264
-     * @throws EE_Error
1265
-     * @throws ReflectionException
1266
-     */
1267
-    function espresso_venue_categories($VNU_ID = 0, $hide_uncategorized = true, $echo = true)
1268
-    {
1269
-        if ($echo) {
1270
-            echo EEH_Venue_View::venue_categories($VNU_ID, $hide_uncategorized); // already escaped
1271
-            return '';
1272
-        }
1273
-        return EEH_Venue_View::venue_categories($VNU_ID, $hide_uncategorized);
1274
-    }
1256
+	/**
1257
+	 * espresso_venue_categories
1258
+	 * returns the terms associated with a venue
1259
+	 *
1260
+	 * @param int  $VNU_ID
1261
+	 * @param bool $hide_uncategorized
1262
+	 * @param bool $echo
1263
+	 * @return string
1264
+	 * @throws EE_Error
1265
+	 * @throws ReflectionException
1266
+	 */
1267
+	function espresso_venue_categories($VNU_ID = 0, $hide_uncategorized = true, $echo = true)
1268
+	{
1269
+		if ($echo) {
1270
+			echo EEH_Venue_View::venue_categories($VNU_ID, $hide_uncategorized); // already escaped
1271
+			return '';
1272
+		}
1273
+		return EEH_Venue_View::venue_categories($VNU_ID, $hide_uncategorized);
1274
+	}
1275 1275
 }
1276 1276
 
1277 1277
 
1278 1278
 if (! function_exists('espresso_venue_address')) {
1279
-    /**
1280
-     * espresso_venue_address
1281
-     * returns a formatted block of html  for displaying a venue's address
1282
-     *
1283
-     * @param string $type 'inline' or 'multiline'
1284
-     * @param int    $VNU_ID
1285
-     * @param bool   $echo
1286
-     * @return string
1287
-     * @throws EE_Error
1288
-     * @throws ReflectionException
1289
-     */
1290
-    function espresso_venue_address($type = 'multiline', $VNU_ID = 0, $echo = true)
1291
-    {
1292
-        if ($echo) {
1293
-            echo EEH_Venue_View::venue_address($type, $VNU_ID); // already escaped
1294
-            return '';
1295
-        }
1296
-        return EEH_Venue_View::venue_address($type, $VNU_ID);
1297
-    }
1279
+	/**
1280
+	 * espresso_venue_address
1281
+	 * returns a formatted block of html  for displaying a venue's address
1282
+	 *
1283
+	 * @param string $type 'inline' or 'multiline'
1284
+	 * @param int    $VNU_ID
1285
+	 * @param bool   $echo
1286
+	 * @return string
1287
+	 * @throws EE_Error
1288
+	 * @throws ReflectionException
1289
+	 */
1290
+	function espresso_venue_address($type = 'multiline', $VNU_ID = 0, $echo = true)
1291
+	{
1292
+		if ($echo) {
1293
+			echo EEH_Venue_View::venue_address($type, $VNU_ID); // already escaped
1294
+			return '';
1295
+		}
1296
+		return EEH_Venue_View::venue_address($type, $VNU_ID);
1297
+	}
1298 1298
 }
1299 1299
 
1300 1300
 
1301 1301
 if (! function_exists('espresso_venue_raw_address')) {
1302
-    /**
1303
-     * espresso_venue_address
1304
-     * returns an UN-formatted string containing a venue's address
1305
-     *
1306
-     * @param string $type 'inline' or 'multiline'
1307
-     * @param int    $VNU_ID
1308
-     * @param bool   $echo
1309
-     * @return string
1310
-     * @throws EE_Error
1311
-     * @throws ReflectionException
1312
-     */
1313
-    function espresso_venue_raw_address($type = 'multiline', $VNU_ID = 0, $echo = true)
1314
-    {
1315
-        if ($echo) {
1316
-            echo EEH_Venue_View::venue_address($type, $VNU_ID, false, false); // already escaped
1317
-            return '';
1318
-        }
1319
-        return EEH_Venue_View::venue_address($type, $VNU_ID, false, false);
1320
-    }
1302
+	/**
1303
+	 * espresso_venue_address
1304
+	 * returns an UN-formatted string containing a venue's address
1305
+	 *
1306
+	 * @param string $type 'inline' or 'multiline'
1307
+	 * @param int    $VNU_ID
1308
+	 * @param bool   $echo
1309
+	 * @return string
1310
+	 * @throws EE_Error
1311
+	 * @throws ReflectionException
1312
+	 */
1313
+	function espresso_venue_raw_address($type = 'multiline', $VNU_ID = 0, $echo = true)
1314
+	{
1315
+		if ($echo) {
1316
+			echo EEH_Venue_View::venue_address($type, $VNU_ID, false, false); // already escaped
1317
+			return '';
1318
+		}
1319
+		return EEH_Venue_View::venue_address($type, $VNU_ID, false, false);
1320
+	}
1321 1321
 }
1322 1322
 
1323 1323
 
1324 1324
 if (! function_exists('espresso_venue_has_address')) {
1325
-    /**
1326
-     * espresso_venue_has_address
1327
-     * returns TRUE or FALSE if a Venue has address information
1328
-     *
1329
-     * @param int $VNU_ID
1330
-     * @return bool
1331
-     * @throws EE_Error
1332
-     * @throws ReflectionException
1333
-     */
1334
-    function espresso_venue_has_address($VNU_ID = 0)
1335
-    {
1336
-        return EEH_Venue_View::venue_has_address($VNU_ID);
1337
-    }
1325
+	/**
1326
+	 * espresso_venue_has_address
1327
+	 * returns TRUE or FALSE if a Venue has address information
1328
+	 *
1329
+	 * @param int $VNU_ID
1330
+	 * @return bool
1331
+	 * @throws EE_Error
1332
+	 * @throws ReflectionException
1333
+	 */
1334
+	function espresso_venue_has_address($VNU_ID = 0)
1335
+	{
1336
+		return EEH_Venue_View::venue_has_address($VNU_ID);
1337
+	}
1338 1338
 }
1339 1339
 
1340 1340
 
1341 1341
 if (! function_exists('espresso_venue_gmap')) {
1342
-    /**
1343
-     * espresso_venue_gmap
1344
-     * returns a google map for the venue address
1345
-     *
1346
-     * @param int   $VNU_ID
1347
-     * @param bool  $map_ID
1348
-     * @param array $gmap
1349
-     * @param bool  $echo
1350
-     * @return string
1351
-     * @throws EE_Error
1352
-     * @throws ReflectionException
1353
-     */
1354
-    function espresso_venue_gmap($VNU_ID = 0, $map_ID = false, $gmap = [], $echo = true)
1355
-    {
1356
-        if ($echo) {
1357
-            echo EEH_Venue_View::venue_gmap($VNU_ID, $map_ID, $gmap); // already escaped
1358
-            return '';
1359
-        }
1360
-        return EEH_Venue_View::venue_gmap($VNU_ID, $map_ID, $gmap);
1361
-    }
1342
+	/**
1343
+	 * espresso_venue_gmap
1344
+	 * returns a google map for the venue address
1345
+	 *
1346
+	 * @param int   $VNU_ID
1347
+	 * @param bool  $map_ID
1348
+	 * @param array $gmap
1349
+	 * @param bool  $echo
1350
+	 * @return string
1351
+	 * @throws EE_Error
1352
+	 * @throws ReflectionException
1353
+	 */
1354
+	function espresso_venue_gmap($VNU_ID = 0, $map_ID = false, $gmap = [], $echo = true)
1355
+	{
1356
+		if ($echo) {
1357
+			echo EEH_Venue_View::venue_gmap($VNU_ID, $map_ID, $gmap); // already escaped
1358
+			return '';
1359
+		}
1360
+		return EEH_Venue_View::venue_gmap($VNU_ID, $map_ID, $gmap);
1361
+	}
1362 1362
 }
1363 1363
 
1364 1364
 
1365 1365
 if (! function_exists('espresso_venue_phone')) {
1366
-    /**
1367
-     * espresso_venue_phone
1368
-     *
1369
-     * @param int  $VNU_ID
1370
-     * @param bool $echo
1371
-     * @return string
1372
-     * @throws EE_Error
1373
-     * @throws ReflectionException
1374
-     */
1375
-    function espresso_venue_phone($VNU_ID = 0, $echo = true)
1376
-    {
1377
-        if ($echo) {
1378
-            echo EEH_Venue_View::venue_phone($VNU_ID); // already escaped
1379
-            return '';
1380
-        }
1381
-        return EEH_Venue_View::venue_phone($VNU_ID);
1382
-    }
1366
+	/**
1367
+	 * espresso_venue_phone
1368
+	 *
1369
+	 * @param int  $VNU_ID
1370
+	 * @param bool $echo
1371
+	 * @return string
1372
+	 * @throws EE_Error
1373
+	 * @throws ReflectionException
1374
+	 */
1375
+	function espresso_venue_phone($VNU_ID = 0, $echo = true)
1376
+	{
1377
+		if ($echo) {
1378
+			echo EEH_Venue_View::venue_phone($VNU_ID); // already escaped
1379
+			return '';
1380
+		}
1381
+		return EEH_Venue_View::venue_phone($VNU_ID);
1382
+	}
1383 1383
 }
1384 1384
 
1385 1385
 
1386 1386
 if (! function_exists('espresso_venue_website')) {
1387
-    /**
1388
-     * espresso_venue_website
1389
-     *
1390
-     * @param int  $VNU_ID
1391
-     * @param bool $echo
1392
-     * @return string
1393
-     * @throws EE_Error
1394
-     * @throws ReflectionException
1395
-     */
1396
-    function espresso_venue_website($VNU_ID = 0, $echo = true)
1397
-    {
1398
-        if ($echo) {
1399
-            echo EEH_Venue_View::venue_website_link($VNU_ID); // already escaped
1400
-            return '';
1401
-        }
1402
-        return EEH_Venue_View::venue_website_link($VNU_ID);
1403
-    }
1387
+	/**
1388
+	 * espresso_venue_website
1389
+	 *
1390
+	 * @param int  $VNU_ID
1391
+	 * @param bool $echo
1392
+	 * @return string
1393
+	 * @throws EE_Error
1394
+	 * @throws ReflectionException
1395
+	 */
1396
+	function espresso_venue_website($VNU_ID = 0, $echo = true)
1397
+	{
1398
+		if ($echo) {
1399
+			echo EEH_Venue_View::venue_website_link($VNU_ID); // already escaped
1400
+			return '';
1401
+		}
1402
+		return EEH_Venue_View::venue_website_link($VNU_ID);
1403
+	}
1404 1404
 }
1405 1405
 
1406 1406
 
1407 1407
 if (! function_exists('espresso_edit_venue_link')) {
1408
-    /**
1409
-     * espresso_edit_venue_link
1410
-     *
1411
-     * @param int  $VNU_ID
1412
-     * @param bool $echo
1413
-     * @return string
1414
-     * @throws EE_Error
1415
-     * @throws ReflectionException
1416
-     */
1417
-    function espresso_edit_venue_link($VNU_ID = 0, $echo = true)
1418
-    {
1419
-        if ($echo) {
1420
-            echo EEH_Venue_View::edit_venue_link($VNU_ID); // already escaped
1421
-            return '';
1422
-        }
1423
-        return EEH_Venue_View::edit_venue_link($VNU_ID);
1424
-    }
1408
+	/**
1409
+	 * espresso_edit_venue_link
1410
+	 *
1411
+	 * @param int  $VNU_ID
1412
+	 * @param bool $echo
1413
+	 * @return string
1414
+	 * @throws EE_Error
1415
+	 * @throws ReflectionException
1416
+	 */
1417
+	function espresso_edit_venue_link($VNU_ID = 0, $echo = true)
1418
+	{
1419
+		if ($echo) {
1420
+			echo EEH_Venue_View::edit_venue_link($VNU_ID); // already escaped
1421
+			return '';
1422
+		}
1423
+		return EEH_Venue_View::edit_venue_link($VNU_ID);
1424
+	}
1425 1425
 }
1426 1426
 
1427 1427
 
Please login to merge, or discard this patch.
Spacing   +74 added lines, -74 removed lines patch added patch discarded remove patch
@@ -148,7 +148,7 @@  discard block
 block discarded – undo
148 148
  */
149 149
 function can_use_espresso_conditionals($conditional_tag)
150 150
 {
151
-    if (! did_action('AHEE__EE_System__initialize')) {
151
+    if ( ! did_action('AHEE__EE_System__initialize')) {
152 152
         EE_Error::doing_it_wrong(
153 153
             __FUNCTION__,
154 154
             sprintf(
@@ -168,7 +168,7 @@  discard block
 block discarded – undo
168 168
 
169 169
 /*************************** Event Queries ***************************/
170 170
 
171
-if (! function_exists('espresso_get_events')) {
171
+if ( ! function_exists('espresso_get_events')) {
172 172
     /**
173 173
      *    espresso_get_events
174 174
      *
@@ -218,10 +218,10 @@  discard block
 block discarded – undo
218 218
  */
219 219
 function espresso_load_ticket_selector()
220 220
 {
221
-    EE_Registry::instance()->load_file(EE_MODULES . 'ticket_selector', 'EED_Ticket_Selector', 'module');
221
+    EE_Registry::instance()->load_file(EE_MODULES.'ticket_selector', 'EED_Ticket_Selector', 'module');
222 222
 }
223 223
 
224
-if (! function_exists('espresso_ticket_selector')) {
224
+if ( ! function_exists('espresso_ticket_selector')) {
225 225
     /**
226 226
      * espresso_ticket_selector
227 227
      *
@@ -231,7 +231,7 @@  discard block
 block discarded – undo
231 231
      */
232 232
     function espresso_ticket_selector($event = null)
233 233
     {
234
-        if (! apply_filters('FHEE_disable_espresso_ticket_selector', false)) {
234
+        if ( ! apply_filters('FHEE_disable_espresso_ticket_selector', false)) {
235 235
             espresso_load_ticket_selector();
236 236
             EED_Ticket_Selector::set_definitions();
237 237
             echo EED_Ticket_Selector::display_ticket_selector($event); // already escaped
@@ -240,7 +240,7 @@  discard block
 block discarded – undo
240 240
 }
241 241
 
242 242
 
243
-if (! function_exists('espresso_view_details_btn')) {
243
+if ( ! function_exists('espresso_view_details_btn')) {
244 244
     /**
245 245
      * espresso_view_details_btn
246 246
      *
@@ -250,7 +250,7 @@  discard block
 block discarded – undo
250 250
      */
251 251
     function espresso_view_details_btn($event = null)
252 252
     {
253
-        if (! apply_filters('FHEE_disable_espresso_view_details_btn', false)) {
253
+        if ( ! apply_filters('FHEE_disable_espresso_view_details_btn', false)) {
254 254
             espresso_load_ticket_selector();
255 255
             echo EED_Ticket_Selector::display_ticket_selector($event, true); // already escaped
256 256
         }
@@ -260,7 +260,7 @@  discard block
 block discarded – undo
260 260
 
261 261
 /*************************** EEH_Event_View ***************************/
262 262
 
263
-if (! function_exists('espresso_load_event_list_assets')) {
263
+if ( ! function_exists('espresso_load_event_list_assets')) {
264 264
     /**
265 265
      * espresso_load_event_list_assets
266 266
      * ensures that event list styles and scripts are loaded
@@ -276,7 +276,7 @@  discard block
 block discarded – undo
276 276
 }
277 277
 
278 278
 
279
-if (! function_exists('espresso_event_reg_button')) {
279
+if ( ! function_exists('espresso_event_reg_button')) {
280 280
     /**
281 281
      * espresso_event_reg_button
282 282
      * returns the "Register Now" button if event is active,
@@ -293,7 +293,7 @@  discard block
 block discarded – undo
293 293
     function espresso_event_reg_button($btn_text_if_active = null, $btn_text_if_inactive = false, $EVT_ID = false)
294 294
     {
295 295
         $event = EEH_Event_View::get_event($EVT_ID);
296
-        if (! $event instanceof EE_Event) {
296
+        if ( ! $event instanceof EE_Event) {
297 297
             return;
298 298
         }
299 299
         $event_status = $event->get_active_status();
@@ -339,7 +339,7 @@  discard block
 block discarded – undo
339 339
 }
340 340
 
341 341
 
342
-if (! function_exists('espresso_display_ticket_selector')) {
342
+if ( ! function_exists('espresso_display_ticket_selector')) {
343 343
     /**
344 344
      * espresso_display_ticket_selector
345 345
      * whether or not to display the Ticket Selector for an event
@@ -356,7 +356,7 @@  discard block
 block discarded – undo
356 356
 }
357 357
 
358 358
 
359
-if (! function_exists('espresso_event_status_banner')) {
359
+if ( ! function_exists('espresso_event_status_banner')) {
360 360
     /**
361 361
      * espresso_event_status
362 362
      * returns a banner showing the event status if it is sold out, expired, or inactive
@@ -373,7 +373,7 @@  discard block
 block discarded – undo
373 373
 }
374 374
 
375 375
 
376
-if (! function_exists('espresso_event_status')) {
376
+if ( ! function_exists('espresso_event_status')) {
377 377
     /**
378 378
      * espresso_event_status
379 379
      * returns the event status if it is sold out, expired, or inactive
@@ -391,7 +391,7 @@  discard block
 block discarded – undo
391 391
 }
392 392
 
393 393
 
394
-if (! function_exists('espresso_event_categories')) {
394
+if ( ! function_exists('espresso_event_categories')) {
395 395
     /**
396 396
      * espresso_event_categories
397 397
      * returns the terms associated with an event
@@ -414,7 +414,7 @@  discard block
 block discarded – undo
414 414
 }
415 415
 
416 416
 
417
-if (! function_exists('espresso_event_tickets_available')) {
417
+if ( ! function_exists('espresso_event_tickets_available')) {
418 418
     /**
419 419
      * espresso_event_tickets_available
420 420
      * returns the ticket types available for purchase for an event
@@ -432,14 +432,14 @@  discard block
 block discarded – undo
432 432
         if (is_array($tickets) && ! empty($tickets)) {
433 433
             // if formatting then $html will be a string, else it will be an array of ticket objects
434 434
             $html =
435
-                $format ? '<ul id="ee-event-tickets-ul-' . esc_attr($EVT_ID) . '" class="ee-event-tickets-ul">' : [];
435
+                $format ? '<ul id="ee-event-tickets-ul-'.esc_attr($EVT_ID).'" class="ee-event-tickets-ul">' : [];
436 436
             foreach ($tickets as $ticket) {
437 437
                 if ($ticket instanceof EE_Ticket) {
438 438
                     if ($format) {
439 439
                         $html .= '<li id="ee-event-tickets-li-'
440 440
                                  . esc_attr($ticket->ID())
441 441
                                  . '" class="ee-event-tickets-li">';
442
-                        $html .= esc_html($ticket->name()) . ' ';
442
+                        $html .= esc_html($ticket->name()).' ';
443 443
                         $html .= EEH_Template::format_currency(
444 444
                             $ticket->get_ticket_total_with_taxes()
445 445
                         ); // already escaped
@@ -462,7 +462,7 @@  discard block
 block discarded – undo
462 462
     }
463 463
 }
464 464
 
465
-if (! function_exists('espresso_event_date_obj')) {
465
+if ( ! function_exists('espresso_event_date_obj')) {
466 466
     /**
467 467
      * espresso_event_date_obj
468 468
      * returns the primary date object for an event
@@ -479,7 +479,7 @@  discard block
 block discarded – undo
479 479
 }
480 480
 
481 481
 
482
-if (! function_exists('espresso_event_date')) {
482
+if ( ! function_exists('espresso_event_date')) {
483 483
     /**
484 484
      * espresso_event_date
485 485
      * returns the primary date for an event
@@ -508,7 +508,7 @@  discard block
 block discarded – undo
508 508
 }
509 509
 
510 510
 
511
-if (! function_exists('espresso_list_of_event_dates')) {
511
+if ( ! function_exists('espresso_list_of_event_dates')) {
512 512
     /**
513 513
      * espresso_list_of_event_dates
514 514
      * returns a unordered list of dates for an event
@@ -538,7 +538,7 @@  discard block
 block discarded – undo
538 538
         $allowedtags = AllowedTags::getAllowedTags();
539 539
 	    $arguments = apply_filters(
540 540
             'FHEE__espresso_list_of_event_dates__arguments',
541
-            [ $EVT_ID, $date_format, $time_format, $echo, $show_expired, $format, $add_breaks, $limit ]
541
+            [$EVT_ID, $date_format, $time_format, $echo, $show_expired, $format, $add_breaks, $limit]
542 542
         );
543 543
         [$EVT_ID, $date_format, $time_format, $echo, $show_expired, $format, $add_breaks, $limit] = $arguments;
544 544
         $date_format = ! empty($date_format) ? $date_format : get_option('date_format');
@@ -546,7 +546,7 @@  discard block
 block discarded – undo
546 546
         $date_format = apply_filters('FHEE__espresso_list_of_event_dates__date_format', $date_format);
547 547
         $time_format = apply_filters('FHEE__espresso_list_of_event_dates__time_format', $time_format);
548 548
         $datetimes   = EEH_Event_View::get_all_date_obj($EVT_ID, $show_expired, false, $limit);
549
-        if (! $format) {
549
+        if ( ! $format) {
550 550
             return apply_filters('FHEE__espresso_list_of_event_dates__datetimes', $datetimes);
551 551
         }
552 552
         $newline = $add_breaks ? '<br />' : '';
@@ -555,7 +555,7 @@  discard block
 block discarded – undo
555 555
 			$cols = count($datetimes);
556 556
 			$cols = $cols >= 3 ? 'big' : 'small';
557 557
 			$ul_class = "ee-event-datetimes-ul ee-event-datetimes-ul--{$cols}";
558
-			$html = '<ul id="ee-event-datetimes-ul-' . esc_attr($post->ID) . '" class="'. $ul_class.'">';
558
+			$html = '<ul id="ee-event-datetimes-ul-'.esc_attr($post->ID).'" class="'.$ul_class.'">';
559 559
 
560 560
             foreach ($datetimes as $datetime) {
561 561
                 if ($datetime instanceof EE_Datetime) {
@@ -564,37 +564,37 @@  discard block
 block discarded – undo
564 564
                     $datetime_html        = ! empty($datetime_name)
565 565
                         ? '
566 566
                         <strong class="ee-event-datetimes-li-date-name">
567
-                          ' . esc_html($datetime_name) . '
567
+                          ' . esc_html($datetime_name).'
568 568
                        </strong>' . $newline
569 569
                         : '';
570 570
 
571 571
                     $datetime_html .= '
572 572
                         <span class="ee-event-datetimes-li-daterange">
573 573
 							<span class="dashicons dashicons-calendar"></span>&nbsp;'
574
-							. $datetime->date_range($date_format). '
574
+							. $datetime->date_range($date_format).'
575 575
 						</span>
576 576
                         <br/>
577 577
                         <span class="ee-event-datetimes-li-timerange">
578 578
 							<span class="dashicons dashicons-clock"></span>&nbsp;'
579
-							. $datetime->time_range($time_format) . '
579
+							. $datetime->time_range($time_format).'
580 580
 						</span>
581 581
                         ';
582 582
 
583 583
                     $venue = $datetime->venue();
584 584
                     if ($venue instanceof EE_Venue) {
585
-                    	$venue_name      = esc_html($venue->name());
585
+                    	$venue_name = esc_html($venue->name());
586 586
                         $datetime_html .= '<br /><span class="ee-event-datetimes-li-venue">';
587 587
                         $datetime_html .= '<span class="dashicons dashicons-admin-home"></span>&nbsp;';
588
-                        $datetime_html .= '<a href="'. esc_url_raw($venue->get_permalink()) .'" ';
589
-                        $datetime_html .= 'alt="'. $venue_name .'" target="_blank">';
590
-                        $datetime_html .= $venue_name . '</a></span>';
588
+                        $datetime_html .= '<a href="'.esc_url_raw($venue->get_permalink()).'" ';
589
+                        $datetime_html .= 'alt="'.$venue_name.'" target="_blank">';
590
+                        $datetime_html .= $venue_name.'</a></span>';
591 591
                     }
592 592
 
593 593
                     $datetime_description = $datetime->description();
594 594
                     $datetime_html .= ! empty($datetime_description)
595 595
                         ? '
596 596
                         <span class="ee-event-datetimes-li-date-desc">
597
-                            ' . wp_kses($datetime_description, $allowedtags) . '
597
+                            ' . wp_kses($datetime_description, $allowedtags).'
598 598
                         </span>' . $newline
599 599
                         : '';
600 600
 
@@ -606,11 +606,11 @@  discard block
 block discarded – undo
606 606
                     );
607 607
 
608 608
                     $DTD_ID        = esc_attr($datetime->ID());
609
-                    $active_status = esc_attr('ee-event-datetimes-li-' . $datetime->get_active_status());
609
+                    $active_status = esc_attr('ee-event-datetimes-li-'.$datetime->get_active_status());
610 610
 
611 611
                     $html .= '
612
-                    <li id="ee-event-datetimes-li-' . $DTD_ID . '" class="ee-event-datetimes-li ' . $active_status . '">
613
-                        ' . $datetime_html . '
612
+                    <li id="ee-event-datetimes-li-' . $DTD_ID.'" class="ee-event-datetimes-li '.$active_status.'">
613
+                        ' . $datetime_html.'
614 614
                     </li>';
615 615
                 }
616 616
             }
@@ -624,7 +624,7 @@  discard block
 block discarded – undo
624 624
                 ' . esc_html__(
625 625
                     'There are no upcoming dates for this event.',
626 626
                     'event_espresso'
627
-                ) . '
627
+                ).'
628 628
             </p>
629 629
             <br/>';
630 630
         }
@@ -637,7 +637,7 @@  discard block
 block discarded – undo
637 637
 }
638 638
 
639 639
 
640
-if (! function_exists('espresso_event_end_date')) {
640
+if ( ! function_exists('espresso_event_end_date')) {
641 641
     /**
642 642
      * espresso_event_end_date
643 643
      * returns the last date for an event
@@ -664,7 +664,7 @@  discard block
 block discarded – undo
664 664
     }
665 665
 }
666 666
 
667
-if (! function_exists('espresso_event_date_range')) {
667
+if ( ! function_exists('espresso_event_date_range')) {
668 668
     /**
669 669
      * espresso_event_date_range
670 670
      * returns the first and last chronologically ordered dates for an event (if different)
@@ -722,7 +722,7 @@  discard block
 block discarded – undo
722 722
     }
723 723
 }
724 724
 
725
-if (! function_exists('espresso_next_upcoming_datetime_obj')) {
725
+if ( ! function_exists('espresso_next_upcoming_datetime_obj')) {
726 726
     /**
727 727
      * espresso_next_upcoming_datetime_obj
728 728
      * returns the next upcoming datetime object for an event
@@ -737,7 +737,7 @@  discard block
 block discarded – undo
737 737
     }
738 738
 }
739 739
 
740
-if (! function_exists('espresso_next_upcoming_datetime')) {
740
+if ( ! function_exists('espresso_next_upcoming_datetime')) {
741 741
     /**
742 742
      * espresso_next_upcoming_datetime
743 743
      * returns the start date and time for the next upcoming event.
@@ -759,11 +759,11 @@  discard block
 block discarded – undo
759 759
         $time_format = ! empty($time_format) ? $time_format : get_option('time_format');
760 760
         $time_format = apply_filters('FHEE__espresso_next_upcoming_datetime__time_format', $time_format);
761 761
 
762
-        $datetime_format = trim($date_format . ' ' . $time_format);
762
+        $datetime_format = trim($date_format.' '.$time_format);
763 763
 
764 764
         $datetime = espresso_next_upcoming_datetime_obj($EVT_ID);
765 765
 
766
-        if (! $datetime instanceof EE_Datetime) {
766
+        if ( ! $datetime instanceof EE_Datetime) {
767 767
             return '';
768 768
         }
769 769
         if ($echo) {
@@ -774,7 +774,7 @@  discard block
 block discarded – undo
774 774
     }
775 775
 }
776 776
 
777
-if (! function_exists('espresso_event_date_as_calendar_page')) {
777
+if ( ! function_exists('espresso_event_date_as_calendar_page')) {
778 778
     /**
779 779
      * espresso_event_date_as_calendar_page
780 780
      * returns the primary date for an event, stylized to appear as the page of a calendar
@@ -791,7 +791,7 @@  discard block
 block discarded – undo
791 791
 }
792 792
 
793 793
 
794
-if (! function_exists('espresso_event_link_url')) {
794
+if ( ! function_exists('espresso_event_link_url')) {
795 795
     /**
796 796
      * espresso_event_link_url
797 797
      *
@@ -812,7 +812,7 @@  discard block
 block discarded – undo
812 812
 }
813 813
 
814 814
 
815
-if (! function_exists('espresso_event_has_content_or_excerpt')) {
815
+if ( ! function_exists('espresso_event_has_content_or_excerpt')) {
816 816
     /**
817 817
      *    espresso_event_has_content_or_excerpt
818 818
      *
@@ -829,7 +829,7 @@  discard block
 block discarded – undo
829 829
 }
830 830
 
831 831
 
832
-if (! function_exists('espresso_event_content_or_excerpt')) {
832
+if ( ! function_exists('espresso_event_content_or_excerpt')) {
833 833
     /**
834 834
      * espresso_event_content_or_excerpt
835 835
      *
@@ -849,7 +849,7 @@  discard block
 block discarded – undo
849 849
 }
850 850
 
851 851
 
852
-if (! function_exists('espresso_event_phone')) {
852
+if ( ! function_exists('espresso_event_phone')) {
853 853
     /**
854 854
      * espresso_event_phone
855 855
      *
@@ -870,7 +870,7 @@  discard block
 block discarded – undo
870 870
 }
871 871
 
872 872
 
873
-if (! function_exists('espresso_edit_event_link')) {
873
+if ( ! function_exists('espresso_edit_event_link')) {
874 874
     /**
875 875
      * espresso_edit_event_link
876 876
      * returns a link to edit an event
@@ -892,7 +892,7 @@  discard block
 block discarded – undo
892 892
 }
893 893
 
894 894
 
895
-if (! function_exists('espresso_organization_name')) {
895
+if ( ! function_exists('espresso_organization_name')) {
896 896
     /**
897 897
      * espresso_organization_name
898 898
      *
@@ -910,7 +910,7 @@  discard block
 block discarded – undo
910 910
     }
911 911
 }
912 912
 
913
-if (! function_exists('espresso_organization_address')) {
913
+if ( ! function_exists('espresso_organization_address')) {
914 914
     /**
915 915
      * espresso_organization_address
916 916
      *
@@ -934,7 +934,7 @@  discard block
 block discarded – undo
934 934
     }
935 935
 }
936 936
 
937
-if (! function_exists('espresso_organization_email')) {
937
+if ( ! function_exists('espresso_organization_email')) {
938 938
     /**
939 939
      * espresso_organization_email
940 940
      *
@@ -952,7 +952,7 @@  discard block
 block discarded – undo
952 952
     }
953 953
 }
954 954
 
955
-if (! function_exists('espresso_organization_logo_url')) {
955
+if ( ! function_exists('espresso_organization_logo_url')) {
956 956
     /**
957 957
      * espresso_organization_logo_url
958 958
      *
@@ -970,7 +970,7 @@  discard block
 block discarded – undo
970 970
     }
971 971
 }
972 972
 
973
-if (! function_exists('espresso_organization_facebook')) {
973
+if ( ! function_exists('espresso_organization_facebook')) {
974 974
     /**
975 975
      * espresso_organization_facebook
976 976
      *
@@ -988,7 +988,7 @@  discard block
 block discarded – undo
988 988
     }
989 989
 }
990 990
 
991
-if (! function_exists('espresso_organization_twitter')) {
991
+if ( ! function_exists('espresso_organization_twitter')) {
992 992
     /**
993 993
      * espresso_organization_twitter
994 994
      *
@@ -1006,7 +1006,7 @@  discard block
 block discarded – undo
1006 1006
     }
1007 1007
 }
1008 1008
 
1009
-if (! function_exists('espresso_organization_linkedin')) {
1009
+if ( ! function_exists('espresso_organization_linkedin')) {
1010 1010
     /**
1011 1011
      * espresso_organization_linkedin
1012 1012
      *
@@ -1024,7 +1024,7 @@  discard block
 block discarded – undo
1024 1024
     }
1025 1025
 }
1026 1026
 
1027
-if (! function_exists('espresso_organization_pinterest')) {
1027
+if ( ! function_exists('espresso_organization_pinterest')) {
1028 1028
     /**
1029 1029
      * espresso_organization_pinterest
1030 1030
      *
@@ -1042,7 +1042,7 @@  discard block
 block discarded – undo
1042 1042
     }
1043 1043
 }
1044 1044
 
1045
-if (! function_exists('espresso_organization_google')) {
1045
+if ( ! function_exists('espresso_organization_google')) {
1046 1046
     /**
1047 1047
      * espresso_organization_google
1048 1048
      *
@@ -1060,7 +1060,7 @@  discard block
 block discarded – undo
1060 1060
     }
1061 1061
 }
1062 1062
 
1063
-if (! function_exists('espresso_organization_instagram')) {
1063
+if ( ! function_exists('espresso_organization_instagram')) {
1064 1064
     /**
1065 1065
      * espresso_organization_instagram
1066 1066
      *
@@ -1082,7 +1082,7 @@  discard block
 block discarded – undo
1082 1082
 /*************************** EEH_Venue_View ***************************/
1083 1083
 
1084 1084
 
1085
-if (! function_exists('espresso_event_venues')) {
1085
+if ( ! function_exists('espresso_event_venues')) {
1086 1086
     /**
1087 1087
      * espresso_event_venues
1088 1088
      *
@@ -1097,7 +1097,7 @@  discard block
 block discarded – undo
1097 1097
 }
1098 1098
 
1099 1099
 
1100
-if (! function_exists('espresso_venue_id')) {
1100
+if ( ! function_exists('espresso_venue_id')) {
1101 1101
     /**
1102 1102
      *    espresso_venue_name
1103 1103
      *
@@ -1115,7 +1115,7 @@  discard block
 block discarded – undo
1115 1115
 }
1116 1116
 
1117 1117
 
1118
-if (! function_exists('espresso_is_venue_private')) {
1118
+if ( ! function_exists('espresso_is_venue_private')) {
1119 1119
     /**
1120 1120
      * Return whether a venue is private or not.
1121 1121
      *
@@ -1133,7 +1133,7 @@  discard block
 block discarded – undo
1133 1133
 }
1134 1134
 
1135 1135
 
1136
-if (! function_exists('espresso_venue_is_password_protected')) {
1136
+if ( ! function_exists('espresso_venue_is_password_protected')) {
1137 1137
     /**
1138 1138
      * returns true or false if a venue is password protected or not
1139 1139
      *
@@ -1150,7 +1150,7 @@  discard block
 block discarded – undo
1150 1150
 }
1151 1151
 
1152 1152
 
1153
-if (! function_exists('espresso_password_protected_venue_form')) {
1153
+if ( ! function_exists('espresso_password_protected_venue_form')) {
1154 1154
     /**
1155 1155
      * Returns a password form if venue is password protected.
1156 1156
      *
@@ -1167,7 +1167,7 @@  discard block
 block discarded – undo
1167 1167
 }
1168 1168
 
1169 1169
 
1170
-if (! function_exists('espresso_venue_name')) {
1170
+if ( ! function_exists('espresso_venue_name')) {
1171 1171
     /**
1172 1172
      *    espresso_venue_name
1173 1173
      *
@@ -1190,7 +1190,7 @@  discard block
 block discarded – undo
1190 1190
 }
1191 1191
 
1192 1192
 
1193
-if (! function_exists('espresso_venue_link')) {
1193
+if ( ! function_exists('espresso_venue_link')) {
1194 1194
     /**
1195 1195
      *    espresso_venue_link
1196 1196
      *
@@ -1208,7 +1208,7 @@  discard block
 block discarded – undo
1208 1208
 }
1209 1209
 
1210 1210
 
1211
-if (! function_exists('espresso_venue_description')) {
1211
+if ( ! function_exists('espresso_venue_description')) {
1212 1212
     /**
1213 1213
      *    espresso_venue_description
1214 1214
      *
@@ -1230,7 +1230,7 @@  discard block
 block discarded – undo
1230 1230
 }
1231 1231
 
1232 1232
 
1233
-if (! function_exists('espresso_venue_excerpt')) {
1233
+if ( ! function_exists('espresso_venue_excerpt')) {
1234 1234
     /**
1235 1235
      *    espresso_venue_excerpt
1236 1236
      *
@@ -1252,7 +1252,7 @@  discard block
 block discarded – undo
1252 1252
 }
1253 1253
 
1254 1254
 
1255
-if (! function_exists('espresso_venue_categories')) {
1255
+if ( ! function_exists('espresso_venue_categories')) {
1256 1256
     /**
1257 1257
      * espresso_venue_categories
1258 1258
      * returns the terms associated with a venue
@@ -1275,7 +1275,7 @@  discard block
 block discarded – undo
1275 1275
 }
1276 1276
 
1277 1277
 
1278
-if (! function_exists('espresso_venue_address')) {
1278
+if ( ! function_exists('espresso_venue_address')) {
1279 1279
     /**
1280 1280
      * espresso_venue_address
1281 1281
      * returns a formatted block of html  for displaying a venue's address
@@ -1298,7 +1298,7 @@  discard block
 block discarded – undo
1298 1298
 }
1299 1299
 
1300 1300
 
1301
-if (! function_exists('espresso_venue_raw_address')) {
1301
+if ( ! function_exists('espresso_venue_raw_address')) {
1302 1302
     /**
1303 1303
      * espresso_venue_address
1304 1304
      * returns an UN-formatted string containing a venue's address
@@ -1321,7 +1321,7 @@  discard block
 block discarded – undo
1321 1321
 }
1322 1322
 
1323 1323
 
1324
-if (! function_exists('espresso_venue_has_address')) {
1324
+if ( ! function_exists('espresso_venue_has_address')) {
1325 1325
     /**
1326 1326
      * espresso_venue_has_address
1327 1327
      * returns TRUE or FALSE if a Venue has address information
@@ -1338,7 +1338,7 @@  discard block
 block discarded – undo
1338 1338
 }
1339 1339
 
1340 1340
 
1341
-if (! function_exists('espresso_venue_gmap')) {
1341
+if ( ! function_exists('espresso_venue_gmap')) {
1342 1342
     /**
1343 1343
      * espresso_venue_gmap
1344 1344
      * returns a google map for the venue address
@@ -1362,7 +1362,7 @@  discard block
 block discarded – undo
1362 1362
 }
1363 1363
 
1364 1364
 
1365
-if (! function_exists('espresso_venue_phone')) {
1365
+if ( ! function_exists('espresso_venue_phone')) {
1366 1366
     /**
1367 1367
      * espresso_venue_phone
1368 1368
      *
@@ -1383,7 +1383,7 @@  discard block
 block discarded – undo
1383 1383
 }
1384 1384
 
1385 1385
 
1386
-if (! function_exists('espresso_venue_website')) {
1386
+if ( ! function_exists('espresso_venue_website')) {
1387 1387
     /**
1388 1388
      * espresso_venue_website
1389 1389
      *
@@ -1404,7 +1404,7 @@  discard block
 block discarded – undo
1404 1404
 }
1405 1405
 
1406 1406
 
1407
-if (! function_exists('espresso_edit_venue_link')) {
1407
+if ( ! function_exists('espresso_edit_venue_link')) {
1408 1408
     /**
1409 1409
      * espresso_edit_venue_link
1410 1410
      *
Please login to merge, or discard this patch.
languages/event_espresso-translations-js.php 1 patch
Spacing   +700 added lines, -700 removed lines patch added patch discarded remove patch
@@ -2,137 +2,137 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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:6
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 */
Please login to merge, or discard this patch.
templates/thank-you-page-registration-details.template.php 1 patch
Indentation   +65 added lines, -65 removed lines patch added patch discarded remove patch
@@ -12,22 +12,22 @@  discard block
 block discarded – undo
12 12
 
13 13
 <div class="ee-registration-details-dv">
14 14
     <?php
15
-    $registrations = $transaction->registrations();
16
-    $registrations = is_array($registrations) ? $registrations : [];
17
-    $reg_count     = count($registrations);
18
-    $reg_cntr      = 0;
19
-    $event_name    = '';
20
-    $wait_list     = false;
21
-    foreach ($registrations as $registration) {
22
-        if ($registration instanceof EE_Registration) {
23
-            if ($event_name != $registration->event_name() && ! empty($event_name)) { ?>
15
+	$registrations = $transaction->registrations();
16
+	$registrations = is_array($registrations) ? $registrations : [];
17
+	$reg_count     = count($registrations);
18
+	$reg_cntr      = 0;
19
+	$event_name    = '';
20
+	$wait_list     = false;
21
+	foreach ($registrations as $registration) {
22
+		if ($registration instanceof EE_Registration) {
23
+			if ($event_name != $registration->event_name() && ! empty($event_name)) { ?>
24 24
                 </tbody>
25 25
                 </table>
26 26
                 <?php
27
-            }
28
-            $reg_cntr++;
29
-            if ($event_name != $registration->event_name()) {
30
-                ?>
27
+			}
28
+			$reg_cntr++;
29
+			if ($event_name != $registration->event_name()) {
30
+				?>
31 31
                 <h5>
32 32
                     <span class="smaller-text grey-text">
33 33
                         <?php esc_html_e('for', 'event_espresso'); ?> :
@@ -50,25 +50,25 @@  discard block
 block discarded – undo
50 50
                 </thead>
51 51
                 <tbody>
52 52
                 <?php
53
-            }
54
-            if ($is_primary || (! $is_primary && $reg_url_link == $registration->reg_url_link())) { ?>
53
+			}
54
+			if ($is_primary || (! $is_primary && $reg_url_link == $registration->reg_url_link())) { ?>
55 55
                 <tr>
56 56
                     <td width="40%">
57 57
                         <?php
58
-                        if ($registration->attendee() instanceof EE_Attendee) {
59
-                            echo esc_html($registration->attendee()->full_name(true));
60
-                        }
61
-                        ?>
58
+						if ($registration->attendee() instanceof EE_Attendee) {
59
+							echo esc_html($registration->attendee()->full_name(true));
60
+						}
61
+						?>
62 62
                         <p class="tiny-text" style="margin: .75em 0 0;">
63 63
                             <?php
64
-                            if ($registration->count_question_groups()) {
65
-                                ?>
64
+							if ($registration->count_question_groups()) {
65
+								?>
66 66
                                 <a class="ee-icon-only-lnk"
67 67
                                    href="<?php echo esc_url_raw($registration->edit_attendee_information_url()); ?>"
68 68
                                    title="<?php esc_attr_e(
69
-                                       'Click here to edit Attendee Information',
70
-                                       'event_espresso'
71
-                                   ); ?>"
69
+									   'Click here to edit Attendee Information',
70
+									   'event_espresso'
71
+								   ); ?>"
72 72
                                 >
73 73
                                     <span class="dashicons dashicons-groups"></span>
74 74
                                     <?php esc_html_e('edit info', 'event_espresso'); ?>
@@ -76,13 +76,13 @@  discard block
 block discarded – undo
76 76
                             <?php } ?>
77 77
                             <a class="ee-resend-reg-confirmation-email ee-icon-only-lnk"
78 78
                                href="<?php echo add_query_arg(
79
-                                   ['token' => $registration->reg_url_link(), 'resend_reg_confirmation' => 'true'],
80
-                                   EE_Registry::instance()->CFG->core->thank_you_page_url()
81
-                               ); ?>"
79
+								   ['token' => $registration->reg_url_link(), 'resend_reg_confirmation' => 'true'],
80
+								   EE_Registry::instance()->CFG->core->thank_you_page_url()
81
+							   ); ?>"
82 82
                                title="<?php esc_attr_e(
83
-                                   'Click here to resend the Registration Confirmation email',
84
-                                   'event_espresso'
85
-                               ); ?>"
83
+								   'Click here to resend the Registration Confirmation email',
84
+								   'event_espresso'
85
+							   ); ?>"
86 86
                                rel="<?php echo esc_attr($registration->reg_url_link()); ?>"
87 87
                             >
88 88
                                 <span class="dashicons dashicons-email-alt"></span>
@@ -96,55 +96,55 @@  discard block
 block discarded – undo
96 96
                     <td width="35%" class="jst-left">
97 97
                         <?php $registration->e_pretty_status(true) ?>
98 98
                         <?php
99
-                        if ($registration->status_ID() === EEM_Registration::status_id_wait_list) {
100
-                            $wait_list = true;
101
-                        }
102
-                        ?>
99
+						if ($registration->status_ID() === EEM_Registration::status_id_wait_list) {
100
+							$wait_list = true;
101
+						}
102
+						?>
103 103
                     </td>
104 104
                 </tr>
105 105
                 <?php
106
-                do_action(
107
-                    'AHEE__thank_you_page_registration_details_template__after_registration_table_row',
108
-                    $registration
109
-                );
110
-                $event_name = $registration->event_name();
111
-            }
112
-            if ($reg_cntr >= $reg_count) {
113
-                ?>
106
+				do_action(
107
+					'AHEE__thank_you_page_registration_details_template__after_registration_table_row',
108
+					$registration
109
+				);
110
+				$event_name = $registration->event_name();
111
+			}
112
+			if ($reg_cntr >= $reg_count) {
113
+				?>
114 114
                 </tbody>
115 115
                 </table>
116 116
                 <?php
117
-            }
118
-        }
119
-    }
120
-    ?>
117
+			}
118
+		}
119
+	}
120
+	?>
121 121
     <?php if ($is_primary && $SPCO_attendee_information_url) { ?>
122 122
         <p class="small-text jst-rght">
123 123
             <a href='<?php echo esc_url_raw($SPCO_attendee_information_url) ?>'>
124 124
                 <?php esc_html_e(
125
-                    "Click here to edit All Attendee Information",
126
-                    'event_espresso'
127
-                ); ?>
125
+					"Click here to edit All Attendee Information",
126
+					'event_espresso'
127
+				); ?>
128 128
             </a>
129 129
         </p>
130 130
     <?php }
131
-    if ($wait_list) {
132
-        echo apply_filters(
133
-            'AFEE__thank_you_page_registration_details_template__wait_list_notice',
134
-            sprintf(
135
-                esc_html__(
136
-                    '%1$sre: Wait List Registrations%2$sPlease note that the total cost listed below in the Transaction Details is for ALL registrations, including those that are on the wait list, even though they can not be currently paid for. If any spaces become available however, you may be notified by the Event admin and have the opportunity to secure the remaining tickets by making a payment for them.%3$s',
137
-                    'event_espresso'
138
-                ),
139
-                '<h6 class="" style="margin-bottom:.25em;"><span class="dashicons dashicons-clipboard ee-icon-size-16 purple-text"></span>',
140
-                '</h6 ><p class="ee-wait-list-notice">',
141
-                '</p ><br />'
142
-            )
143
-        );
144
-    }
131
+	if ($wait_list) {
132
+		echo apply_filters(
133
+			'AFEE__thank_you_page_registration_details_template__wait_list_notice',
134
+			sprintf(
135
+				esc_html__(
136
+					'%1$sre: Wait List Registrations%2$sPlease note that the total cost listed below in the Transaction Details is for ALL registrations, including those that are on the wait list, even though they can not be currently paid for. If any spaces become available however, you may be notified by the Event admin and have the opportunity to secure the remaining tickets by making a payment for them.%3$s',
137
+					'event_espresso'
138
+				),
139
+				'<h6 class="" style="margin-bottom:.25em;"><span class="dashicons dashicons-clipboard ee-icon-size-16 purple-text"></span>',
140
+				'</h6 ><p class="ee-wait-list-notice">',
141
+				'</p ><br />'
142
+			)
143
+		);
144
+	}
145 145
 
146
-    do_action('AHEE__thank_you_page_registration_details_template__after_registration_details');
147
-    ?>
146
+	do_action('AHEE__thank_you_page_registration_details_template__after_registration_details');
147
+	?>
148 148
 
149 149
 </div>
150 150
 <!-- end of .registration-details -->
Please login to merge, or discard this patch.
admin_pages/maintenance/templates/ee_migration_page.template.php 1 patch
Indentation   +118 added lines, -118 removed lines patch added patch discarded remove patch
@@ -36,55 +36,55 @@  discard block
 block discarded – undo
36 36
             <h3 class="espresso-header ee-status-bg--info">
37 37
                 <span class="dashicons dashicons-flag ee-icon-size-22"></span>
38 38
                 <?php
39
-                echo esc_html(
40
-                    apply_filters(
41
-                        'FHEE__ee_migration_page__header',
42
-                        sprintf(
43
-                            __("Your Event Espresso data needs to be updated.", "event_espresso"),
44
-                            $current_db_state,
45
-                            $next_db_state
46
-                        ),
47
-                        $current_db_state,
48
-                        $next_db_state
49
-                    )
50
-                );
51
-                ?>
39
+				echo esc_html(
40
+					apply_filters(
41
+						'FHEE__ee_migration_page__header',
42
+						sprintf(
43
+							__("Your Event Espresso data needs to be updated.", "event_espresso"),
44
+							$current_db_state,
45
+							$next_db_state
46
+						),
47
+						$current_db_state,
48
+						$next_db_state
49
+					)
50
+				);
51
+				?>
52 52
             </h3>
53 53
         <?php } elseif ($show_most_recent_migration) { ?>
54 54
             <h3 class="espresso-header ee-status-bg--info">
55 55
                 <span class="dashicons dashicons-awards ee-icon-size-22"></span>
56 56
                 <?php echo esc_html(
57
-                    apply_filters(
58
-                        'FHEE__ee_migration_page__done_migration_header',
59
-                        sprintf(
60
-                            __(
61
-                                'Congratulations! Your database is "up-to-date" and you are ready to begin using %s',
62
-                                "event_espresso"
63
-                            ),
64
-                            $ultimate_db_state
65
-                        )
66
-                    )
67
-                ); ?>
57
+					apply_filters(
58
+						'FHEE__ee_migration_page__done_migration_header',
59
+						sprintf(
60
+							__(
61
+								'Congratulations! Your database is "up-to-date" and you are ready to begin using %s',
62
+								"event_espresso"
63
+							),
64
+							$ultimate_db_state
65
+						)
66
+					)
67
+				); ?>
68 68
             </h3>
69 69
             <p>
70 70
                 <?php echo esc_html(
71
-                    apply_filters(
72
-                        'FHEE__ee_migration_page__p_after_done_migration_header',
73
-                        sprintf(
74
-                            __(
75
-                                "Time to find out about all the great new features %s has to offer.",
76
-                                "event_espresso"
77
-                            ),
78
-                            $ultimate_db_state
79
-                        )
80
-                    )
81
-                ); ?> &nbsp;
71
+					apply_filters(
72
+						'FHEE__ee_migration_page__p_after_done_migration_header',
73
+						sprintf(
74
+							__(
75
+								"Time to find out about all the great new features %s has to offer.",
76
+								"event_espresso"
77
+							),
78
+							$ultimate_db_state
79
+						)
80
+					)
81
+				); ?> &nbsp;
82 82
                 <b>
83 83
                     <a class="button--primary"
84 84
                        id='get-started-after-migrate'
85 85
                        href="<?php
86
-                        echo esc_url_raw(add_query_arg(['page' => 'espresso_about'], admin_url('admin.php')));
87
-                        ?>"
86
+						echo esc_url_raw(add_query_arg(['page' => 'espresso_about'], admin_url('admin.php')));
87
+						?>"
88 88
                     >
89 89
                         <?php esc_html_e("Let's Get Started", "event_espresso"); ?>&nbsp;
90 90
                         <span class="dashicons dashicons-arrow-right ee-icon-size-22" style="margin:0;"></span>
@@ -95,46 +95,46 @@  discard block
 block discarded – undo
95 95
 
96 96
 
97 97
         <?php
98
-        if ($show_backup_db_text) {
99
-            echo wp_kses($migration_options_html, AllowedTags::getAllowedTags());
100
-        } ?>
98
+		if ($show_backup_db_text) {
99
+			echo wp_kses($migration_options_html, AllowedTags::getAllowedTags());
100
+		} ?>
101 101
 
102 102
         <?php
103
-        if ($show_most_recent_migration) {
104
-            if ($most_recent_migration instanceof EE_Data_Migration_Script_Base) {
105
-                if ($most_recent_migration->can_continue()) {
106
-                    // tell the user they should continue their migration because it appears to be unfinished... well, assuming there were no errors ?>
103
+		if ($show_most_recent_migration) {
104
+			if ($most_recent_migration instanceof EE_Data_Migration_Script_Base) {
105
+				if ($most_recent_migration->can_continue()) {
106
+					// tell the user they should continue their migration because it appears to be unfinished... well, assuming there were no errors ?>
107 107
                     <h3 class="espresso-header ee-status-bg--info">
108 108
                         <span class="dashicons dashicons-star-half ee-icon-size-22"></span>
109 109
                         <?php printf(
110
-                            esc_html__(
111
-                                "It appears that your previous Database Update (%s) is incomplete, and should be resumed",
112
-                                "event_espresso"
113
-                            ),
114
-                            $most_recent_migration->pretty_name()
115
-                        ); ?>
110
+							esc_html__(
111
+								"It appears that your previous Database Update (%s) is incomplete, and should be resumed",
112
+								"event_espresso"
113
+							),
114
+							$most_recent_migration->pretty_name()
115
+						); ?>
116 116
                     </h3>
117 117
                     <?php
118
-                } elseif ($most_recent_migration->is_broken()) {
119
-                    // tell the user the migration failed, and they should notify EE?>
118
+				} elseif ($most_recent_migration->is_broken()) {
119
+					// tell the user the migration failed, and they should notify EE?>
120 120
                     <h3 class="espresso-header ee-status-bg--info">
121 121
                         <span class="dashicons dashicons-no ee-icon-size-22"></span>
122 122
                         <?php echo esc_html($most_recent_migration->get_feedback_message()) ?>
123 123
                     </h3>
124 124
                     <?php
125
-                }
126
-                // display errors or not of the most recent migration ran
127
-                if ($most_recent_migration->get_errors()) {
128
-                    ?>
125
+				}
126
+				// display errors or not of the most recent migration ran
127
+				if ($most_recent_migration->get_errors()) {
128
+					?>
129 129
                     <div class="ee-attention">
130 130
                         <strong>
131 131
                             <?php printf(
132
-                                esc_html__(
133
-                                    "Warnings occurred during your last Database Update (%s):",
134
-                                    'event_espresso'
135
-                                ),
136
-                                $most_recent_migration->pretty_name()
137
-                            ); ?>
132
+								esc_html__(
133
+									"Warnings occurred during your last Database Update (%s):",
134
+									'event_espresso'
135
+								),
136
+								$most_recent_migration->pretty_name()
137
+							); ?>
138 138
                         </strong>
139 139
                         <a id="show-hide-migration-warnings" class="display-the-hidden">
140 140
                             <?php esc_html_e("Show Warnings", 'event_espresso'); ?>
@@ -146,32 +146,32 @@  discard block
 block discarded – undo
146 146
                         </ul>
147 147
                     </div>
148 148
                     <?php
149
-                } else {
150
-                    // there were no errors during the last migration, just say so?>
149
+				} else {
150
+					// there were no errors during the last migration, just say so?>
151 151
                     <h2>
152 152
                         <?php printf(
153
-                            esc_html__(
154
-                                "The last Database Update (%s) ran successfully without errors.",
155
-                                "event_espresso"
156
-                            ),
157
-                            $most_recent_migration->pretty_name()
158
-                        ); ?>
153
+							esc_html__(
154
+								"The last Database Update (%s) ran successfully without errors.",
155
+								"event_espresso"
156
+							),
157
+							$most_recent_migration->pretty_name()
158
+						); ?>
159 159
                     </h2>
160 160
                     <?php
161
-                }
162
-            }
163
-        }
164
-        // end of: if ( $show_most_recent_migration )
165
-        ?>
161
+				}
162
+			}
163
+		}
164
+		// end of: if ( $show_most_recent_migration )
165
+		?>
166 166
 
167 167
     </div>
168 168
     <!--end of #migration-prep-->
169 169
 
170 170
     <?php
171
-    if ($show_migration_progress) { ?>
171
+	if ($show_migration_progress) { ?>
172 172
         <div id='migration-monitor' <?php echo ($show_backup_db_text ? "style='display:none'" : ''); ?>>
173 173
             <?php
174
-            if ($show_backup_db_text) { ?>
174
+			if ($show_backup_db_text) { ?>
175 175
                 <p>
176 176
                     <a class="toggle-migration-monitor small-text" style="cursor: pointer;">
177 177
                         <span class="dashicons dashicons-arrow-left-alt2" style="top:0;"></span>
@@ -181,19 +181,19 @@  discard block
 block discarded – undo
181 181
 
182 182
                 </p>
183 183
                 <?php
184
-            } ?>
184
+			} ?>
185 185
             <div id='progress-area'>
186 186
                 <h3 class="espresso-header ee-status-bg--info">
187 187
                     <?php
188
-                    echo sprintf(
189
-                        _n(
190
-                            "The following task needs to be performed:",
191
-                            "The following %s tasks need to be performed:",
192
-                            count($script_names),
193
-                            "event_espresso"
194
-                        ),
195
-                        count($script_names)
196
-                    ); ?>
188
+					echo sprintf(
189
+						_n(
190
+							"The following task needs to be performed:",
191
+							"The following %s tasks need to be performed:",
192
+							count($script_names),
193
+							"event_espresso"
194
+						),
195
+						count($script_names)
196
+					); ?>
197 197
                 </h3>
198 198
                 <ul style="list-style: inside;">
199 199
                     <?php foreach ($script_names as $script_name) { ?>
@@ -204,9 +204,9 @@  discard block
 block discarded – undo
204 204
                 <?php if (count($script_names) > 1) { ?>
205 205
                     <p>
206 206
                         <?php esc_html_e(
207
-                            "Please note: after each task is completed you will need to continue the Database Update, or report an error to Event Espresso.",
208
-                            "event_espresso"
209
-                        ); ?>
207
+							"Please note: after each task is completed you will need to continue the Database Update, or report an error to Event Espresso.",
208
+							"event_espresso"
209
+						); ?>
210 210
                     </p>
211 211
                 <?php } ?>
212 212
 
@@ -217,19 +217,19 @@  discard block
 block discarded – undo
217 217
                         </span>
218 218
                         <br />
219 219
                         <?php esc_html_e(
220
-                            "Depending on the number of events and the complexity of the information in your database, this could take a few minutes.",
221
-                            "event_espresso"
222
-                        ); ?>
220
+							"Depending on the number of events and the complexity of the information in your database, this could take a few minutes.",
221
+							"event_espresso"
222
+						); ?>
223 223
                     </p>
224 224
                     <p>
225 225
                         <?php printf(
226
-                            esc_html__(
227
-                                "%sPlease be patient and do NOT navigate away from this page once the migration has begun%s. If any issues arise due to existing malformed data, an itemized report will be made available to you after the migration has completed.",
228
-                                "event_espresso"
229
-                            ),
230
-                            '<strong>',
231
-                            '</strong>'
232
-                        ); ?>
226
+							esc_html__(
227
+								"%sPlease be patient and do NOT navigate away from this page once the migration has begun%s. If any issues arise due to existing malformed data, an itemized report will be made available to you after the migration has completed.",
228
+								"event_espresso"
229
+							),
230
+							'<strong>',
231
+							'</strong>'
232
+						); ?>
233 233
                     </p>
234 234
                     <p>
235 235
                         <?php esc_html_e("Click the button below to begin the migration process.", "event_espresso") ?>
@@ -245,8 +245,8 @@  discard block
 block discarded – undo
245 245
 
246 246
                 <button id='start-migration' class='button button--primary'>
247 247
                     <?php echo ($show_continue_current_migration_script
248
-                        ? esc_html__("Continue Database Update", "event_espresso")
249
-                        : esc_html__("Begin Database Update", "event_espresso")); ?>
248
+						? esc_html__("Continue Database Update", "event_espresso")
249
+						: esc_html__("Begin Database Update", "event_espresso")); ?>
250 250
                 </button>
251 251
                 <br class="clear" />
252 252
 
@@ -262,9 +262,9 @@  discard block
 block discarded – undo
262 262
         </div>
263 263
 
264 264
         <?php
265
-    }
266
-    if ($show_maintenance_switch) {
267
-        ?>
265
+	}
266
+	if ($show_maintenance_switch) {
267
+		?>
268 268
         <h2>
269 269
             <span class="dashicons dashicons-admin-tools"></span>
270 270
             <?php esc_html_e('Set Event Espresso Maintenance Mode', 'event_espresso'); ?>
@@ -279,9 +279,9 @@  discard block
 block discarded – undo
279 279
                                    type='radio'
280 280
                                    value="0"
281 281
                                 <?php echo ($mMode_level === EE_Maintenance_Mode::level_0_not_in_maintenance
282
-                                    ? 'checked="checked"'
283
-                                    : '');
284
-                                ?>
282
+									? 'checked="checked"'
283
+									: '');
284
+								?>
285 285
                             />
286 286
                         </td>
287 287
                         <th align="left">
@@ -290,9 +290,9 @@  discard block
 block discarded – undo
290 290
                             </label>
291 291
                             <p class='description' style="font-weight: normal;">
292 292
                                 <?php esc_html_e(
293
-                                    "This is the normal operating mode for Event Espresso and allows all functionality to be viewed by all site visitors.",
294
-                                    "event_espresso"
295
-                                ); ?>
293
+									"This is the normal operating mode for Event Espresso and allows all functionality to be viewed by all site visitors.",
294
+									"event_espresso"
295
+								); ?>
296 296
                             </p>
297 297
                         </th>
298 298
                     </tr>
@@ -303,9 +303,9 @@  discard block
 block discarded – undo
303 303
                                    type='radio'
304 304
                                    value="1"
305 305
                                 <?php echo ($mMode_level === EE_Maintenance_Mode::level_1_frontend_only_maintenance
306
-                                    ? 'checked="checked"'
307
-                                    : '');
308
-                                ?>
306
+									? 'checked="checked"'
307
+									: '');
308
+								?>
309 309
                             />
310 310
                         </td>
311 311
                         <th align="left">
@@ -314,9 +314,9 @@  discard block
 block discarded – undo
314 314
                             </label>
315 315
                             <p class='description' style="font-weight: normal;">
316 316
                                 <?php esc_html_e(
317
-                                    "This disables Event Espresso frontend functionality for all site visitors that are not administrators, and allows you to configure and/or test things on the frontend of your website before others can see.",
318
-                                    "event_espresso"
319
-                                ); ?>
317
+									"This disables Event Espresso frontend functionality for all site visitors that are not administrators, and allows you to configure and/or test things on the frontend of your website before others can see.",
318
+									"event_espresso"
319
+								); ?>
320 320
                             </p>
321 321
                         </th>
322 322
                     </tr>
@@ -330,6 +330,6 @@  discard block
 block discarded – undo
330 330
             </p>
331 331
         </form>
332 332
         <?php
333
-    } ?>
333
+	} ?>
334 334
 
335 335
 </div>
Please login to merge, or discard this patch.
admin_pages/maintenance/templates/ee_data_reset_and_delete.template.php 1 patch
Indentation   +51 added lines, -51 removed lines patch added patch discarded remove patch
@@ -24,9 +24,9 @@  discard block
 block discarded – undo
24 24
             <?php esc_html_e('Reset Ticket and Datetime Reserved Counts', 'event_espresso'); ?>
25 25
         </h4>
26 26
         <p><?php esc_html_e(
27
-            'Use this to reset the counts for ticket and datetime reservations.',
28
-            'event_espresso'
29
-        ); ?></p>
27
+			'Use this to reset the counts for ticket and datetime reservations.',
28
+			'event_espresso'
29
+		); ?></p>
30 30
         <div class="ee-admin-button-row">
31 31
             <?php echo wp_kses($reset_reservations_button, AllowedTags::getAllowedTags()); ?>
32 32
         </div>
@@ -41,9 +41,9 @@  discard block
 block discarded – undo
41 41
         </h4>
42 42
         <p>
43 43
             <?php esc_html_e(
44
-                'Use this to reset the capabilities on WP roles to the defaults as defined via EE_Capabilities.  Note this reset does not REMOVE any existing capabilities, it just ensures that all the defaults are ADDED to the roles.',
45
-                'event_espresso'
46
-            ); ?>
44
+				'Use this to reset the capabilities on WP roles to the defaults as defined via EE_Capabilities.  Note this reset does not REMOVE any existing capabilities, it just ensures that all the defaults are ADDED to the roles.',
45
+				'event_espresso'
46
+			); ?>
47 47
         </p>
48 48
         <div class="ee-admin-button-row">
49 49
             <?php echo wp_kses($reset_capabilities_button, AllowedTags::getAllowedTags()); ?>
@@ -57,19 +57,19 @@  discard block
 block discarded – undo
57 57
         </h4>
58 58
         <p>
59 59
             <?php esc_html_e(
60
-                ' This will reset data for Event Espresso 4, and for all active add-ons. Inactive add-ons will not be affected.',
61
-                'event_espresso'
62
-            ); ?>
60
+				' This will reset data for Event Espresso 4, and for all active add-ons. Inactive add-ons will not be affected.',
61
+				'event_espresso'
62
+			); ?>
63 63
         </p>
64 64
         <p>
65 65
             <?php esc_html_e(
66
-                'Your Event Espresso data will return to its default settings. The rest of your website will be unaffected.',
67
-                'event_espresso'
68
-            ); ?>
66
+				'Your Event Espresso data will return to its default settings. The rest of your website will be unaffected.',
67
+				'event_espresso'
68
+			); ?>
69 69
         </p>
70 70
         <div class="ee-admin-button-row">
71 71
             <a class="button button--caution ee-confirm" href="<?php echo esc_url_raw($reset_db_url);
72
-            ?>"
72
+			?>"
73 73
             >
74 74
                 <?php esc_html_e('Reset Event Espresso Tables', 'event_espresso'); ?>
75 75
             </a>
@@ -83,64 +83,64 @@  discard block
 block discarded – undo
83 83
         </h4>
84 84
         <p>
85 85
             <?php esc_html_e(
86
-                ' This will delete data for Event Espresso 4, and all currently active add-ons. Event Espresso will then be deactivated. You may need to manually deactivate each add-on individually.',
87
-                'event_espresso'
88
-            ); ?>
86
+				' This will delete data for Event Espresso 4, and all currently active add-ons. Event Espresso will then be deactivated. You may need to manually deactivate each add-on individually.',
87
+				'event_espresso'
88
+			); ?>
89 89
         </p>
90 90
         <p>
91 91
             <?php esc_html_e(
92
-                'If you know for certain that you will no longer be using Event Espresso and you wish to remove ALL traces of the plugin from your system, then perform the following steps.',
93
-                'event_espresso'
94
-            ); ?>
92
+				'If you know for certain that you will no longer be using Event Espresso and you wish to remove ALL traces of the plugin from your system, then perform the following steps.',
93
+				'event_espresso'
94
+			); ?>
95 95
         </p>
96 96
         <p class="ee-important-notice">
97 97
             <?php printf(
98
-                esc_html__('Please note: %sThis is permanent and can NOT be undone.%s', 'event_espresso'),
99
-                '&nbsp;<em>',
100
-                '</em>'
101
-            ); ?>
98
+				esc_html__('Please note: %sThis is permanent and can NOT be undone.%s', 'event_espresso'),
99
+				'&nbsp;<em>',
100
+				'</em>'
101
+			); ?>
102 102
             <br />
103 103
         </p>
104 104
         <ol>
105 105
             <li>
106 106
                 <?php printf(
107
-                    esc_html__(
108
-                        'First, click the button below to permanently delete all Event Espresso tables, records, and options from your WordPress database . If you receive a "500 Internal Server Error" or a blank white screen, it means the server has timed out due to the large number of records being updated. This is not a cause for concern. Simply %1$srefresh the page%2$s and the Database Update will continue where it left off.',
109
-                        'event_espresso'
110
-                    ),
111
-                    '<strong>',
112
-                    '</strong>'
113
-                ); ?>
107
+					esc_html__(
108
+						'First, click the button below to permanently delete all Event Espresso tables, records, and options from your WordPress database . If you receive a "500 Internal Server Error" or a blank white screen, it means the server has timed out due to the large number of records being updated. This is not a cause for concern. Simply %1$srefresh the page%2$s and the Database Update will continue where it left off.',
109
+						'event_espresso'
110
+					),
111
+					'<strong>',
112
+					'</strong>'
113
+				); ?>
114 114
             </li>
115 115
             <li>
116 116
                 <?php printf(
117
-                    esc_html__(
118
-                        'Then, locate Event Espresso on the WordPress Plugins page, and click on %sDelete%s',
119
-                        'event_espresso'
120
-                    ),
121
-                    '<strong>',
122
-                    '</strong>'
123
-                ); ?>
117
+					esc_html__(
118
+						'Then, locate Event Espresso on the WordPress Plugins page, and click on %sDelete%s',
119
+						'event_espresso'
120
+					),
121
+					'<strong>',
122
+					'</strong>'
123
+				); ?>
124 124
             </li>
125 125
             <li>
126 126
                 <?php printf(
127
-                    esc_html__(
128
-                        'Once you are on the Delete Plugin page, click on %sYes, Delete these files and data%s',
129
-                        'event_espresso'
130
-                    ),
131
-                    '<strong>',
132
-                    '</strong>'
133
-                ); ?>
127
+					esc_html__(
128
+						'Once you are on the Delete Plugin page, click on %sYes, Delete these files and data%s',
129
+						'event_espresso'
130
+					),
131
+					'<strong>',
132
+					'</strong>'
133
+				); ?>
134 134
             </li>
135 135
             <li>
136 136
                 <?php printf(
137
-                    esc_html__(
138
-                        'Note: Event Espresso 4 categories are %snot%s deleted by this script',
139
-                        'event_espresso'
140
-                    ),
141
-                    '<strong>',
142
-                    '</strong>'
143
-                ); ?>
137
+					esc_html__(
138
+						'Note: Event Espresso 4 categories are %snot%s deleted by this script',
139
+						'event_espresso'
140
+					),
141
+					'<strong>',
142
+					'</strong>'
143
+				); ?>
144 144
                 <br>
145 145
                 <a href="<?php echo esc_url_raw(admin_url('edit-tags.php?taxonomy=espresso_event_categories')); ?>">
146 146
                     <?php esc_html_e('You can go here to delete Event Espresso categories', 'event_espresso'); ?>
Please login to merge, or discard this patch.
admin_pages/registrations/templates/reg_admin_details_header.template.php 1 patch
Indentation   +19 added lines, -19 removed lines patch added patch discarded remove patch
@@ -19,36 +19,36 @@
 block discarded – undo
19 19
 <div class='ee-admin-page-nav-strip-wrap'>
20 20
     <div class='ee-admin-page-nav-strip'>
21 21
         <?php
22
-        echo wp_kses($previous_registration, AllowedTags::getAllowedTags());
23
-        echo '<span>';
24
-        printf(
25
-            /* translators: %s: registration number */
26
-            esc_html__('Registration # %1$s', 'event_espresso'),
27
-            esc_html($reg_nmbr['value'])
28
-        );
29
-        echo '</span>';
30
-        echo wp_kses($next_registration, AllowedTags::getAllowedTags());
31
-        ?>
22
+		echo wp_kses($previous_registration, AllowedTags::getAllowedTags());
23
+		echo '<span>';
24
+		printf(
25
+			/* translators: %s: registration number */
26
+			esc_html__('Registration # %1$s', 'event_espresso'),
27
+			esc_html($reg_nmbr['value'])
28
+		);
29
+		echo '</span>';
30
+		echo wp_kses($next_registration, AllowedTags::getAllowedTags());
31
+		?>
32 32
     </div>
33 33
     <div class='ee-admin-page-nav-strip'>
34 34
         <?php if ($registration->group_size() > 1) : ?>
35 35
             <span class='ee-admin-page-nav-strip-item'>
36 36
             <a id="scroll-to-other-attendees" class="scroll-to" href="#other-attendees">
37 37
                 <?php echo esc_html__(
38
-                    'Scroll to Other Registrations in the Same Transaction',
39
-                    'event_espresso'
40
-                ); ?>
38
+					'Scroll to Other Registrations in the Same Transaction',
39
+					'event_espresso'
40
+				); ?>
41 41
             </a>
42 42
         </span>
43 43
         <?php endif; ?>
44 44
         <span class='ee-admin-page-nav-strip-item'>
45 45
         <?php echo sprintf(
46
-            esc_html__('View %1$sRegistrations%4$s /  %2$sTransactions%4$s for this %3$sevent%4$s.', 'event_espresso'),
47
-            '<a href="' . esc_url_raw($filtered_registrations_link) . '">',
48
-            '<a href="' . esc_url_raw($filtered_registrations_link) . '">',
49
-            '<a href="' . esc_url_raw($event_link) . '">',
50
-            '</a>'
51
-        ); ?>
46
+			esc_html__('View %1$sRegistrations%4$s /  %2$sTransactions%4$s for this %3$sevent%4$s.', 'event_espresso'),
47
+			'<a href="' . esc_url_raw($filtered_registrations_link) . '">',
48
+			'<a href="' . esc_url_raw($filtered_registrations_link) . '">',
49
+			'<a href="' . esc_url_raw($event_link) . '">',
50
+			'</a>'
51
+		); ?>
52 52
         </span>
53 53
     </div>
54 54
 </div>
Please login to merge, or discard this patch.