@@ -14,41 +14,41 @@ |
||
14 | 14 | */ |
15 | 15 | class SessionLifespanOption extends WordPressOption |
16 | 16 | { |
17 | - const DEFAULT_LIFESPAN = HOUR_IN_SECONDS; |
|
18 | - |
|
19 | - const OPTION_NAME = 'ee-session-lifespan'; |
|
20 | - |
|
21 | - |
|
22 | - /** |
|
23 | - * SessionLifespanOption constructor. |
|
24 | - */ |
|
25 | - public function __construct() |
|
26 | - { |
|
27 | - parent::__construct( |
|
28 | - SessionLifespanOption::OPTION_NAME, |
|
29 | - SessionLifespanOption::DEFAULT_LIFESPAN, |
|
30 | - false |
|
31 | - ); |
|
32 | - } |
|
33 | - |
|
34 | - |
|
35 | - /** |
|
36 | - * @return false|mixed|void |
|
37 | - */ |
|
38 | - public function getSessionLifespan() |
|
39 | - { |
|
40 | - return $this->loadOption(); |
|
41 | - } |
|
42 | - |
|
43 | - /** |
|
44 | - * @param int $value |
|
45 | - * @return false|mixed|void |
|
46 | - */ |
|
47 | - public function setSessionLifespan(int $value) |
|
48 | - { |
|
49 | - if ($value <= 0) { |
|
50 | - $value = SessionLifespanOption::DEFAULT_LIFESPAN; |
|
51 | - } |
|
52 | - return $this->updateOption($value); |
|
53 | - } |
|
17 | + const DEFAULT_LIFESPAN = HOUR_IN_SECONDS; |
|
18 | + |
|
19 | + const OPTION_NAME = 'ee-session-lifespan'; |
|
20 | + |
|
21 | + |
|
22 | + /** |
|
23 | + * SessionLifespanOption constructor. |
|
24 | + */ |
|
25 | + public function __construct() |
|
26 | + { |
|
27 | + parent::__construct( |
|
28 | + SessionLifespanOption::OPTION_NAME, |
|
29 | + SessionLifespanOption::DEFAULT_LIFESPAN, |
|
30 | + false |
|
31 | + ); |
|
32 | + } |
|
33 | + |
|
34 | + |
|
35 | + /** |
|
36 | + * @return false|mixed|void |
|
37 | + */ |
|
38 | + public function getSessionLifespan() |
|
39 | + { |
|
40 | + return $this->loadOption(); |
|
41 | + } |
|
42 | + |
|
43 | + /** |
|
44 | + * @param int $value |
|
45 | + * @return false|mixed|void |
|
46 | + */ |
|
47 | + public function setSessionLifespan(int $value) |
|
48 | + { |
|
49 | + if ($value <= 0) { |
|
50 | + $value = SessionLifespanOption::DEFAULT_LIFESPAN; |
|
51 | + } |
|
52 | + return $this->updateOption($value); |
|
53 | + } |
|
54 | 54 | } |
@@ -19,96 +19,96 @@ |
||
19 | 19 | */ |
20 | 20 | class SessionLifespan |
21 | 21 | { |
22 | - /** |
|
23 | - * how long an EE session lasts in seconds |
|
24 | - * default session lifespan of 1 hour (for not so instant IPNs) |
|
25 | - * |
|
26 | - * @var int $lifespan |
|
27 | - */ |
|
28 | - private $lifespan; |
|
22 | + /** |
|
23 | + * how long an EE session lasts in seconds |
|
24 | + * default session lifespan of 1 hour (for not so instant IPNs) |
|
25 | + * |
|
26 | + * @var int $lifespan |
|
27 | + */ |
|
28 | + private $lifespan; |
|
29 | 29 | |
30 | 30 | |
31 | - /** |
|
32 | - * SessionLifespan constructor. |
|
33 | - * |
|
34 | - * @param SessionLifespanOption $session_lifespan_option |
|
35 | - * @throws DomainException |
|
36 | - */ |
|
37 | - public function __construct(SessionLifespanOption $session_lifespan_option) |
|
38 | - { |
|
39 | - $this->setLifespan($session_lifespan_option->getSessionLifespan()); |
|
40 | - } |
|
31 | + /** |
|
32 | + * SessionLifespan constructor. |
|
33 | + * |
|
34 | + * @param SessionLifespanOption $session_lifespan_option |
|
35 | + * @throws DomainException |
|
36 | + */ |
|
37 | + public function __construct(SessionLifespanOption $session_lifespan_option) |
|
38 | + { |
|
39 | + $this->setLifespan($session_lifespan_option->getSessionLifespan()); |
|
40 | + } |
|
41 | 41 | |
42 | 42 | |
43 | - /** |
|
44 | - * @param int $lifespan |
|
45 | - * @throws DomainException |
|
46 | - */ |
|
47 | - protected function setLifespan($lifespan) |
|
48 | - { |
|
49 | - if ($lifespan < 60) { |
|
50 | - throw new DomainException( |
|
51 | - esc_html__( |
|
52 | - 'The session lifespan needs to be at least 60 seconds, and even that is extremely short', |
|
53 | - 'event_espresso' |
|
54 | - ) |
|
55 | - ); |
|
56 | - } |
|
57 | - $this->lifespan = apply_filters( |
|
58 | - 'FHEE__EventEspresso_core_domain_values_session_SessionLifespan__setLifespan___lifespan', |
|
59 | - // apply legacy filter for now but add doing it wrong notice in future |
|
60 | - apply_filters( |
|
61 | - 'FHEE__EE_Session__construct___lifespan', |
|
62 | - $lifespan |
|
63 | - ) |
|
64 | - ) + 1; |
|
65 | - } |
|
43 | + /** |
|
44 | + * @param int $lifespan |
|
45 | + * @throws DomainException |
|
46 | + */ |
|
47 | + protected function setLifespan($lifespan) |
|
48 | + { |
|
49 | + if ($lifespan < 60) { |
|
50 | + throw new DomainException( |
|
51 | + esc_html__( |
|
52 | + 'The session lifespan needs to be at least 60 seconds, and even that is extremely short', |
|
53 | + 'event_espresso' |
|
54 | + ) |
|
55 | + ); |
|
56 | + } |
|
57 | + $this->lifespan = apply_filters( |
|
58 | + 'FHEE__EventEspresso_core_domain_values_session_SessionLifespan__setLifespan___lifespan', |
|
59 | + // apply legacy filter for now but add doing it wrong notice in future |
|
60 | + apply_filters( |
|
61 | + 'FHEE__EE_Session__construct___lifespan', |
|
62 | + $lifespan |
|
63 | + ) |
|
64 | + ) + 1; |
|
65 | + } |
|
66 | 66 | |
67 | 67 | |
68 | - /** |
|
69 | - * @return int |
|
70 | - */ |
|
71 | - public function inSeconds() |
|
72 | - { |
|
73 | - return $this->lifespan; |
|
74 | - } |
|
68 | + /** |
|
69 | + * @return int |
|
70 | + */ |
|
71 | + public function inSeconds() |
|
72 | + { |
|
73 | + return $this->lifespan; |
|
74 | + } |
|
75 | 75 | |
76 | 76 | |
77 | - /** |
|
78 | - * @param string $separator |
|
79 | - * @return string |
|
80 | - */ |
|
81 | - public function inHoursMinutesSeconds($separator = ':') |
|
82 | - { |
|
83 | - return sprintf( |
|
84 | - '%02d%s%02d%s%02d', |
|
85 | - floor($this->lifespan / 3600), |
|
86 | - $separator, |
|
87 | - ($this->lifespan / 60) % 60, |
|
88 | - $separator, |
|
89 | - $this->lifespan % 60 |
|
90 | - ); |
|
91 | - } |
|
77 | + /** |
|
78 | + * @param string $separator |
|
79 | + * @return string |
|
80 | + */ |
|
81 | + public function inHoursMinutesSeconds($separator = ':') |
|
82 | + { |
|
83 | + return sprintf( |
|
84 | + '%02d%s%02d%s%02d', |
|
85 | + floor($this->lifespan / 3600), |
|
86 | + $separator, |
|
87 | + ($this->lifespan / 60) % 60, |
|
88 | + $separator, |
|
89 | + $this->lifespan % 60 |
|
90 | + ); |
|
91 | + } |
|
92 | 92 | |
93 | 93 | |
94 | - /** |
|
95 | - * Returns a timestamp for when the session would expire based on this lifespan |
|
96 | - * |
|
97 | - * @param bool $utc If true, displays expiration in UTC |
|
98 | - * If false, displays expiration in local time |
|
99 | - * @return int |
|
100 | - */ |
|
101 | - public function expiration($utc = true) |
|
102 | - { |
|
103 | - return (int) current_time('timestamp', $utc) - $this->lifespan; |
|
104 | - } |
|
94 | + /** |
|
95 | + * Returns a timestamp for when the session would expire based on this lifespan |
|
96 | + * |
|
97 | + * @param bool $utc If true, displays expiration in UTC |
|
98 | + * If false, displays expiration in local time |
|
99 | + * @return int |
|
100 | + */ |
|
101 | + public function expiration($utc = true) |
|
102 | + { |
|
103 | + return (int) current_time('timestamp', $utc) - $this->lifespan; |
|
104 | + } |
|
105 | 105 | |
106 | 106 | |
107 | - /** |
|
108 | - * @return string |
|
109 | - */ |
|
110 | - public function __toString() |
|
111 | - { |
|
112 | - return (string) $this->inSeconds(); |
|
113 | - } |
|
107 | + /** |
|
108 | + * @return string |
|
109 | + */ |
|
110 | + public function __toString() |
|
111 | + { |
|
112 | + return (string) $this->inSeconds(); |
|
113 | + } |
|
114 | 114 | } |
@@ -12,44 +12,44 @@ |
||
12 | 12 | |
13 | 13 | class SessionLifespanForm extends EE_Form_Section_Proper |
14 | 14 | { |
15 | - /** |
|
16 | - * SessionLifespanForm constructor. |
|
17 | - * |
|
18 | - * @param SessionLifespanOption $session_lifespan_option |
|
19 | - * @throws EE_Error |
|
20 | - */ |
|
21 | - public function __construct(SessionLifespanOption $session_lifespan_option) |
|
22 | - { |
|
23 | - parent::__construct([ |
|
24 | - 'name' => 'session_lifespan', |
|
25 | - 'html_id' => 'session_lifespan', |
|
26 | - 'layout_strategy' => new EE_Admin_Two_Column_Layout(), |
|
27 | - 'subsections' => apply_filters( |
|
28 | - 'FHEE__EventEspresso_caffeinated_admin_extend_registration_form_forms_SessionLifespanForm__construct__form_subsections', |
|
29 | - [ |
|
30 | - 'session_lifespan_hdr' => new EE_Form_Section_HTML( |
|
31 | - EEH_HTML::h2(esc_html__('Session Settings', 'event_espresso')) |
|
32 | - ), |
|
33 | - 'session_lifespan' => new EE_Select_Input( |
|
34 | - [ |
|
35 | - 300 => esc_html__('Five Minutes', 'event_espresso'), |
|
36 | - 900 => esc_html__('Fifteen Minutes', 'event_espresso'), |
|
37 | - 1800 => esc_html__('Thirty Minutes', 'event_espresso'), |
|
38 | - 3600 => esc_html__('One Hour', 'event_espresso'), |
|
39 | - 7200 => esc_html__('Two Hours', 'event_espresso'), |
|
40 | - ], |
|
41 | - [ |
|
42 | - 'html_label_text' => esc_html__('Session Lifespan', 'event_espresso'), |
|
43 | - 'html_help_text' => esc_html__( |
|
44 | - 'Controls how long a user has to complete the registration form. Defaults to 1 hour.', |
|
45 | - 'event_espresso' |
|
46 | - ), |
|
47 | - 'default' => $session_lifespan_option->getSessionLifespan(), |
|
48 | - 'required' => false, |
|
49 | - ] |
|
50 | - ), |
|
51 | - ] |
|
52 | - ), |
|
53 | - ]); |
|
54 | - } |
|
15 | + /** |
|
16 | + * SessionLifespanForm constructor. |
|
17 | + * |
|
18 | + * @param SessionLifespanOption $session_lifespan_option |
|
19 | + * @throws EE_Error |
|
20 | + */ |
|
21 | + public function __construct(SessionLifespanOption $session_lifespan_option) |
|
22 | + { |
|
23 | + parent::__construct([ |
|
24 | + 'name' => 'session_lifespan', |
|
25 | + 'html_id' => 'session_lifespan', |
|
26 | + 'layout_strategy' => new EE_Admin_Two_Column_Layout(), |
|
27 | + 'subsections' => apply_filters( |
|
28 | + 'FHEE__EventEspresso_caffeinated_admin_extend_registration_form_forms_SessionLifespanForm__construct__form_subsections', |
|
29 | + [ |
|
30 | + 'session_lifespan_hdr' => new EE_Form_Section_HTML( |
|
31 | + EEH_HTML::h2(esc_html__('Session Settings', 'event_espresso')) |
|
32 | + ), |
|
33 | + 'session_lifespan' => new EE_Select_Input( |
|
34 | + [ |
|
35 | + 300 => esc_html__('Five Minutes', 'event_espresso'), |
|
36 | + 900 => esc_html__('Fifteen Minutes', 'event_espresso'), |
|
37 | + 1800 => esc_html__('Thirty Minutes', 'event_espresso'), |
|
38 | + 3600 => esc_html__('One Hour', 'event_espresso'), |
|
39 | + 7200 => esc_html__('Two Hours', 'event_espresso'), |
|
40 | + ], |
|
41 | + [ |
|
42 | + 'html_label_text' => esc_html__('Session Lifespan', 'event_espresso'), |
|
43 | + 'html_help_text' => esc_html__( |
|
44 | + 'Controls how long a user has to complete the registration form. Defaults to 1 hour.', |
|
45 | + 'event_espresso' |
|
46 | + ), |
|
47 | + 'default' => $session_lifespan_option->getSessionLifespan(), |
|
48 | + 'required' => false, |
|
49 | + ] |
|
50 | + ), |
|
51 | + ] |
|
52 | + ), |
|
53 | + ]); |
|
54 | + } |
|
55 | 55 | } |
@@ -12,59 +12,59 @@ |
||
12 | 12 | |
13 | 13 | class SessionLifespanFormHandler |
14 | 14 | { |
15 | - /** |
|
16 | - * @var SessionLifespanOption |
|
17 | - */ |
|
18 | - private $session_lifespan_option; |
|
15 | + /** |
|
16 | + * @var SessionLifespanOption |
|
17 | + */ |
|
18 | + private $session_lifespan_option; |
|
19 | 19 | |
20 | 20 | |
21 | - /** |
|
22 | - * SessionLifespanForm constructor. |
|
23 | - * |
|
24 | - * @param SessionLifespanOption $session_lifespan_option |
|
25 | - */ |
|
26 | - public function __construct(SessionLifespanOption $session_lifespan_option) |
|
27 | - { |
|
28 | - $this->session_lifespan_option = $session_lifespan_option; |
|
29 | - } |
|
21 | + /** |
|
22 | + * SessionLifespanForm constructor. |
|
23 | + * |
|
24 | + * @param SessionLifespanOption $session_lifespan_option |
|
25 | + */ |
|
26 | + public function __construct(SessionLifespanOption $session_lifespan_option) |
|
27 | + { |
|
28 | + $this->session_lifespan_option = $session_lifespan_option; |
|
29 | + } |
|
30 | 30 | |
31 | 31 | |
32 | - public function process(SessionLifespanForm $form) |
|
33 | - { |
|
34 | - try { |
|
35 | - // if not displaying a form, then check for form submission |
|
36 | - if ($form->was_submitted()) { |
|
37 | - // capture form data |
|
38 | - $form->receive_form_submission(); |
|
39 | - // validate form data |
|
40 | - if ($form->is_valid()) { |
|
41 | - // grab validated data from form |
|
42 | - $valid_data = $form->valid_data(); |
|
43 | - if (isset($valid_data['session_lifespan'])) { |
|
44 | - $session_lifespan = (int) $valid_data['session_lifespan']; |
|
45 | - $this->session_lifespan_option->setSessionLifespan($session_lifespan); |
|
46 | - } else { |
|
47 | - EE_Error::add_error( |
|
48 | - esc_html__( |
|
49 | - 'Invalid or missing Email Validation settings. Please refresh the form and try again.', |
|
50 | - 'event_espresso' |
|
51 | - ), |
|
52 | - __FILE__, |
|
53 | - __FUNCTION__, |
|
54 | - __LINE__ |
|
55 | - ); |
|
56 | - } |
|
57 | - } elseif ($form->submission_error_message() !== '') { |
|
58 | - EE_Error::add_error( |
|
59 | - $form->submission_error_message(), |
|
60 | - __FILE__, |
|
61 | - __FUNCTION__, |
|
62 | - __LINE__ |
|
63 | - ); |
|
64 | - } |
|
65 | - } |
|
66 | - } catch (EE_Error $e) { |
|
67 | - $e->get_error(); |
|
68 | - } |
|
69 | - } |
|
32 | + public function process(SessionLifespanForm $form) |
|
33 | + { |
|
34 | + try { |
|
35 | + // if not displaying a form, then check for form submission |
|
36 | + if ($form->was_submitted()) { |
|
37 | + // capture form data |
|
38 | + $form->receive_form_submission(); |
|
39 | + // validate form data |
|
40 | + if ($form->is_valid()) { |
|
41 | + // grab validated data from form |
|
42 | + $valid_data = $form->valid_data(); |
|
43 | + if (isset($valid_data['session_lifespan'])) { |
|
44 | + $session_lifespan = (int) $valid_data['session_lifespan']; |
|
45 | + $this->session_lifespan_option->setSessionLifespan($session_lifespan); |
|
46 | + } else { |
|
47 | + EE_Error::add_error( |
|
48 | + esc_html__( |
|
49 | + 'Invalid or missing Email Validation settings. Please refresh the form and try again.', |
|
50 | + 'event_espresso' |
|
51 | + ), |
|
52 | + __FILE__, |
|
53 | + __FUNCTION__, |
|
54 | + __LINE__ |
|
55 | + ); |
|
56 | + } |
|
57 | + } elseif ($form->submission_error_message() !== '') { |
|
58 | + EE_Error::add_error( |
|
59 | + $form->submission_error_message(), |
|
60 | + __FILE__, |
|
61 | + __FUNCTION__, |
|
62 | + __LINE__ |
|
63 | + ); |
|
64 | + } |
|
65 | + } |
|
66 | + } catch (EE_Error $e) { |
|
67 | + $e->get_error(); |
|
68 | + } |
|
69 | + } |
|
70 | 70 | } |
@@ -17,1460 +17,1460 @@ |
||
17 | 17 | */ |
18 | 18 | class Extend_Registration_Form_Admin_Page extends Registration_Form_Admin_Page |
19 | 19 | { |
20 | - /** |
|
21 | - * @param bool $routing indicate whether we want to just load the object and handle routing or just load the object. |
|
22 | - */ |
|
23 | - public function __construct($routing = true) |
|
24 | - { |
|
25 | - define('REGISTRATION_FORM_CAF_ADMIN', EE_CORE_CAF_ADMIN_EXTEND . 'registration_form/'); |
|
26 | - define('REGISTRATION_FORM_CAF_ASSETS_PATH', REGISTRATION_FORM_CAF_ADMIN . 'assets/'); |
|
27 | - define('REGISTRATION_FORM_CAF_ASSETS_URL', EE_CORE_CAF_ADMIN_EXTEND_URL . 'registration_form/assets/'); |
|
28 | - define('REGISTRATION_FORM_CAF_TEMPLATE_PATH', REGISTRATION_FORM_CAF_ADMIN . 'templates/'); |
|
29 | - define('REGISTRATION_FORM_CAF_TEMPLATE_URL', EE_CORE_CAF_ADMIN_EXTEND_URL . 'registration_form/templates/'); |
|
30 | - parent::__construct($routing); |
|
31 | - } |
|
32 | - |
|
33 | - |
|
34 | - /** |
|
35 | - * @return void |
|
36 | - */ |
|
37 | - protected function _extend_page_config() |
|
38 | - { |
|
39 | - $this->_admin_base_path = REGISTRATION_FORM_CAF_ADMIN; |
|
40 | - $qst_id = ! empty($this->_req_data['QST_ID']) && ! is_array($this->_req_data['QST_ID']) |
|
41 | - ? $this->_req_data['QST_ID'] : 0; |
|
42 | - $qsg_id = ! empty($this->_req_data['QSG_ID']) && ! is_array($this->_req_data['QSG_ID']) |
|
43 | - ? $this->_req_data['QSG_ID'] : 0; |
|
44 | - |
|
45 | - $new_page_routes = array( |
|
46 | - 'question_groups' => array( |
|
47 | - 'func' => '_question_groups_overview_list_table', |
|
48 | - 'capability' => 'ee_read_question_groups', |
|
49 | - ), |
|
50 | - 'add_question' => array( |
|
51 | - 'func' => '_edit_question', |
|
52 | - 'capability' => 'ee_edit_questions', |
|
53 | - ), |
|
54 | - 'insert_question' => array( |
|
55 | - 'func' => '_insert_or_update_question', |
|
56 | - 'args' => array('new_question' => true), |
|
57 | - 'capability' => 'ee_edit_questions', |
|
58 | - 'noheader' => true, |
|
59 | - ), |
|
60 | - 'duplicate_question' => array( |
|
61 | - 'func' => '_duplicate_question', |
|
62 | - 'capability' => 'ee_edit_questions', |
|
63 | - 'noheader' => true, |
|
64 | - ), |
|
65 | - 'trash_question' => array( |
|
66 | - 'func' => '_trash_question', |
|
67 | - 'capability' => 'ee_delete_question', |
|
68 | - 'obj_id' => $qst_id, |
|
69 | - 'noheader' => true, |
|
70 | - ), |
|
71 | - |
|
72 | - 'restore_question' => array( |
|
73 | - 'func' => '_trash_or_restore_questions', |
|
74 | - 'capability' => 'ee_delete_question', |
|
75 | - 'obj_id' => $qst_id, |
|
76 | - 'args' => array('trash' => false), |
|
77 | - 'noheader' => true, |
|
78 | - ), |
|
79 | - |
|
80 | - 'delete_question' => array( |
|
81 | - 'func' => '_delete_question', |
|
82 | - 'capability' => 'ee_delete_question', |
|
83 | - 'obj_id' => $qst_id, |
|
84 | - 'noheader' => true, |
|
85 | - ), |
|
86 | - |
|
87 | - 'trash_questions' => array( |
|
88 | - 'func' => '_trash_or_restore_questions', |
|
89 | - 'capability' => 'ee_delete_questions', |
|
90 | - 'args' => array('trash' => true), |
|
91 | - 'noheader' => true, |
|
92 | - ), |
|
93 | - |
|
94 | - 'restore_questions' => array( |
|
95 | - 'func' => '_trash_or_restore_questions', |
|
96 | - 'capability' => 'ee_delete_questions', |
|
97 | - 'args' => array('trash' => false), |
|
98 | - 'noheader' => true, |
|
99 | - ), |
|
100 | - |
|
101 | - 'delete_questions' => array( |
|
102 | - 'func' => '_delete_questions', |
|
103 | - 'args' => array(), |
|
104 | - 'capability' => 'ee_delete_questions', |
|
105 | - 'noheader' => true, |
|
106 | - ), |
|
107 | - |
|
108 | - 'add_question_group' => array( |
|
109 | - 'func' => '_edit_question_group', |
|
110 | - 'capability' => 'ee_edit_question_groups', |
|
111 | - ), |
|
112 | - |
|
113 | - 'edit_question_group' => array( |
|
114 | - 'func' => '_edit_question_group', |
|
115 | - 'capability' => 'ee_edit_question_group', |
|
116 | - 'obj_id' => $qsg_id, |
|
117 | - 'args' => array('edit'), |
|
118 | - ), |
|
119 | - |
|
120 | - 'delete_question_groups' => array( |
|
121 | - 'func' => '_delete_question_groups', |
|
122 | - 'capability' => 'ee_delete_question_groups', |
|
123 | - 'noheader' => true, |
|
124 | - ), |
|
125 | - |
|
126 | - 'delete_question_group' => array( |
|
127 | - 'func' => '_delete_question_groups', |
|
128 | - 'capability' => 'ee_delete_question_group', |
|
129 | - 'obj_id' => $qsg_id, |
|
130 | - 'noheader' => true, |
|
131 | - ), |
|
132 | - |
|
133 | - 'trash_question_group' => array( |
|
134 | - 'func' => '_trash_or_restore_question_groups', |
|
135 | - 'args' => array('trash' => true), |
|
136 | - 'capability' => 'ee_delete_question_group', |
|
137 | - 'obj_id' => $qsg_id, |
|
138 | - 'noheader' => true, |
|
139 | - ), |
|
140 | - |
|
141 | - 'restore_question_group' => array( |
|
142 | - 'func' => '_trash_or_restore_question_groups', |
|
143 | - 'args' => array('trash' => false), |
|
144 | - 'capability' => 'ee_delete_question_group', |
|
145 | - 'obj_id' => $qsg_id, |
|
146 | - 'noheader' => true, |
|
147 | - ), |
|
148 | - |
|
149 | - 'insert_question_group' => array( |
|
150 | - 'func' => '_insert_or_update_question_group', |
|
151 | - 'args' => array('new_question_group' => true), |
|
152 | - 'capability' => 'ee_edit_question_groups', |
|
153 | - 'noheader' => true, |
|
154 | - ), |
|
155 | - |
|
156 | - 'update_question_group' => array( |
|
157 | - 'func' => '_insert_or_update_question_group', |
|
158 | - 'args' => array('new_question_group' => false), |
|
159 | - 'capability' => 'ee_edit_question_group', |
|
160 | - 'obj_id' => $qsg_id, |
|
161 | - 'noheader' => true, |
|
162 | - ), |
|
163 | - |
|
164 | - 'trash_question_groups' => array( |
|
165 | - 'func' => '_trash_or_restore_question_groups', |
|
166 | - 'args' => array('trash' => true), |
|
167 | - 'capability' => 'ee_delete_question_groups', |
|
168 | - 'noheader' => array('trash' => false), |
|
169 | - ), |
|
170 | - |
|
171 | - 'restore_question_groups' => array( |
|
172 | - 'func' => '_trash_or_restore_question_groups', |
|
173 | - 'args' => array('trash' => false), |
|
174 | - 'capability' => 'ee_delete_question_groups', |
|
175 | - 'noheader' => true, |
|
176 | - ), |
|
177 | - |
|
178 | - |
|
179 | - 'espresso_update_question_group_order' => array( |
|
180 | - 'func' => 'update_question_group_order', |
|
181 | - 'capability' => 'ee_edit_question_groups', |
|
182 | - 'noheader' => true, |
|
183 | - ), |
|
184 | - |
|
185 | - 'view_reg_form_settings' => array( |
|
186 | - 'func' => '_reg_form_settings', |
|
187 | - 'capability' => 'manage_options', |
|
188 | - ), |
|
189 | - |
|
190 | - 'update_reg_form_settings' => array( |
|
191 | - 'func' => '_update_reg_form_settings', |
|
192 | - 'capability' => 'manage_options', |
|
193 | - 'noheader' => true, |
|
194 | - ), |
|
195 | - ); |
|
196 | - $this->_page_routes = array_merge($this->_page_routes, $new_page_routes); |
|
197 | - |
|
198 | - $new_page_config = array( |
|
199 | - |
|
200 | - 'question_groups' => array( |
|
201 | - 'nav' => array( |
|
202 | - 'label' => esc_html__('Question Groups', 'event_espresso'), |
|
203 | - 'icon' => 'dashicons-forms', |
|
204 | - 'order' => 20, |
|
205 | - ), |
|
206 | - 'list_table' => 'Registration_Form_Question_Groups_Admin_List_Table', |
|
207 | - 'help_tabs' => array( |
|
208 | - 'registration_form_question_groups_help_tab' => array( |
|
209 | - 'title' => esc_html__('Question Groups', 'event_espresso'), |
|
210 | - 'filename' => 'registration_form_question_groups', |
|
211 | - ), |
|
212 | - 'registration_form_question_groups_table_column_headings_help_tab' => array( |
|
213 | - 'title' => esc_html__('Question Groups Table Column Headings', 'event_espresso'), |
|
214 | - 'filename' => 'registration_form_question_groups_table_column_headings', |
|
215 | - ), |
|
216 | - 'registration_form_question_groups_views_bulk_actions_search_help_tab' => array( |
|
217 | - 'title' => esc_html__('Question Groups Views & Bulk Actions & Search', 'event_espresso'), |
|
218 | - 'filename' => 'registration_form_question_groups_views_bulk_actions_search', |
|
219 | - ), |
|
220 | - ), |
|
221 | - 'metaboxes' => $this->_default_espresso_metaboxes, |
|
222 | - 'require_nonce' => false, |
|
223 | - ), |
|
224 | - |
|
225 | - 'add_question' => array( |
|
226 | - 'nav' => array( |
|
227 | - 'label' => esc_html__('Add Question', 'event_espresso'), |
|
228 | - 'icon' => 'dashicons-plus-alt', |
|
229 | - 'order' => 15, |
|
230 | - 'persistent' => false, |
|
231 | - ), |
|
232 | - 'metaboxes' => array_merge($this->_default_espresso_metaboxes, array('_publish_post_box')), |
|
233 | - 'help_tabs' => array( |
|
234 | - 'registration_form_add_question_help_tab' => array( |
|
235 | - 'title' => esc_html__('Add Question', 'event_espresso'), |
|
236 | - 'filename' => 'registration_form_add_question', |
|
237 | - ), |
|
238 | - ), |
|
239 | - 'require_nonce' => false, |
|
240 | - ), |
|
241 | - |
|
242 | - 'add_question_group' => array( |
|
243 | - 'nav' => array( |
|
244 | - 'label' => esc_html__('Add Question Group', 'event_espresso'), |
|
245 | - 'icon' => 'dashicons-plus-alt', |
|
246 | - 'order' => 25, |
|
247 | - 'persistent' => false, |
|
248 | - ), |
|
249 | - 'metaboxes' => array_merge($this->_default_espresso_metaboxes, array('_publish_post_box')), |
|
250 | - 'help_tabs' => array( |
|
251 | - 'registration_form_add_question_group_help_tab' => array( |
|
252 | - 'title' => esc_html__('Add Question Group', 'event_espresso'), |
|
253 | - 'filename' => 'registration_form_add_question_group', |
|
254 | - ), |
|
255 | - ), |
|
256 | - 'require_nonce' => false, |
|
257 | - ), |
|
258 | - |
|
259 | - 'edit_question_group' => array( |
|
260 | - 'nav' => array( |
|
261 | - 'label' => esc_html__('Edit Question Group', 'event_espresso'), |
|
262 | - 'icon' => 'dashicons-edit-large', |
|
263 | - 'order' => 25, |
|
264 | - 'persistent' => false, |
|
265 | - 'url' => isset($this->_req_data['question_group_id']) ? add_query_arg( |
|
266 | - array('question_group_id' => $this->_req_data['question_group_id']), |
|
267 | - $this->_current_page_view_url |
|
268 | - ) : $this->_admin_base_url, |
|
269 | - ), |
|
270 | - 'metaboxes' => array_merge($this->_default_espresso_metaboxes, array('_publish_post_box')), |
|
271 | - 'help_tabs' => array( |
|
272 | - 'registration_form_edit_question_group_help_tab' => array( |
|
273 | - 'title' => esc_html__('Edit Question Group', 'event_espresso'), |
|
274 | - 'filename' => 'registration_form_edit_question_group', |
|
275 | - ), |
|
276 | - ), |
|
277 | - 'require_nonce' => false, |
|
278 | - ), |
|
279 | - |
|
280 | - 'view_reg_form_settings' => array( |
|
281 | - 'nav' => array( |
|
282 | - 'label' => esc_html__('Reg Form Settings', 'event_espresso'), |
|
283 | - 'icon' => 'dashicons-admin-generic', |
|
284 | - 'order' => 40, |
|
285 | - ), |
|
286 | - 'labels' => array( |
|
287 | - 'publishbox' => esc_html__('Update Settings', 'event_espresso'), |
|
288 | - ), |
|
289 | - 'metaboxes' => array_merge($this->_default_espresso_metaboxes, array('_publish_post_box')), |
|
290 | - 'help_tabs' => array( |
|
291 | - 'registration_form_reg_form_settings_help_tab' => array( |
|
292 | - 'title' => esc_html__('Registration Form Settings', 'event_espresso'), |
|
293 | - 'filename' => 'registration_form_reg_form_settings', |
|
294 | - ), |
|
295 | - ), |
|
296 | - 'require_nonce' => false, |
|
297 | - ), |
|
298 | - |
|
299 | - ); |
|
300 | - $this->_page_config = array_merge($this->_page_config, $new_page_config); |
|
301 | - |
|
302 | - // change the list table we're going to use so it's the NEW list table! |
|
303 | - $this->_page_config['default']['list_table'] = 'Extend_Registration_Form_Questions_Admin_List_Table'; |
|
304 | - |
|
305 | - |
|
306 | - // additional labels |
|
307 | - $new_labels = array( |
|
308 | - 'add_question' => esc_html__('Add New Question', 'event_espresso'), |
|
309 | - 'delete_question' => esc_html__('Delete Question', 'event_espresso'), |
|
310 | - 'add_question_group' => esc_html__('Add New Question Group', 'event_espresso'), |
|
311 | - 'edit_question_group' => esc_html__('Edit Question Group', 'event_espresso'), |
|
312 | - 'delete_question_group' => esc_html__('Delete Question Group', 'event_espresso'), |
|
313 | - ); |
|
314 | - $this->_labels['buttons'] = array_merge($this->_labels['buttons'], $new_labels); |
|
315 | - } |
|
316 | - |
|
317 | - |
|
318 | - /** |
|
319 | - * @return void |
|
320 | - */ |
|
321 | - protected function _ajax_hooks() |
|
322 | - { |
|
323 | - add_action('wp_ajax_espresso_update_question_group_order', array($this, 'update_question_group_order')); |
|
324 | - } |
|
325 | - |
|
326 | - |
|
327 | - /** |
|
328 | - * @return void |
|
329 | - */ |
|
330 | - public function load_scripts_styles_question_groups() |
|
331 | - { |
|
332 | - wp_enqueue_script('espresso_ajax_table_sorting'); |
|
333 | - } |
|
334 | - |
|
335 | - |
|
336 | - /** |
|
337 | - * @return void |
|
338 | - */ |
|
339 | - public function load_scripts_styles_add_question_group() |
|
340 | - { |
|
341 | - $this->load_scripts_styles_forms(); |
|
342 | - $this->load_sortable_question_script(); |
|
343 | - } |
|
344 | - |
|
345 | - |
|
346 | - /** |
|
347 | - * @return void |
|
348 | - */ |
|
349 | - public function load_scripts_styles_edit_question_group() |
|
350 | - { |
|
351 | - $this->load_scripts_styles_forms(); |
|
352 | - $this->load_sortable_question_script(); |
|
353 | - } |
|
354 | - |
|
355 | - |
|
356 | - /** |
|
357 | - * registers and enqueues script for questions |
|
358 | - * |
|
359 | - * @return void |
|
360 | - */ |
|
361 | - public function load_sortable_question_script() |
|
362 | - { |
|
363 | - wp_register_script( |
|
364 | - 'ee-question-sortable', |
|
365 | - REGISTRATION_FORM_CAF_ASSETS_URL . 'ee_question_order.js', |
|
366 | - array('jquery-ui-sortable'), |
|
367 | - EVENT_ESPRESSO_VERSION, |
|
368 | - true |
|
369 | - ); |
|
370 | - wp_enqueue_script('ee-question-sortable'); |
|
371 | - } |
|
372 | - |
|
373 | - |
|
374 | - /** |
|
375 | - * @return void |
|
376 | - */ |
|
377 | - protected function _set_list_table_views_default() |
|
378 | - { |
|
379 | - $this->_views = array( |
|
380 | - 'all' => array( |
|
381 | - 'slug' => 'all', |
|
382 | - 'label' => esc_html__('View All Questions', 'event_espresso'), |
|
383 | - 'count' => 0, |
|
384 | - 'bulk_action' => array( |
|
385 | - 'trash_questions' => esc_html__('Trash', 'event_espresso'), |
|
386 | - ), |
|
387 | - ), |
|
388 | - ); |
|
389 | - |
|
390 | - if ( |
|
391 | - EE_Registry::instance()->CAP->current_user_can( |
|
392 | - 'ee_delete_questions', |
|
393 | - 'espresso_registration_form_trash_questions' |
|
394 | - ) |
|
395 | - ) { |
|
396 | - $this->_views['trash'] = array( |
|
397 | - 'slug' => 'trash', |
|
398 | - 'label' => esc_html__('Trash', 'event_espresso'), |
|
399 | - 'count' => 0, |
|
400 | - 'bulk_action' => array( |
|
401 | - 'delete_questions' => esc_html__('Delete Permanently', 'event_espresso'), |
|
402 | - 'restore_questions' => esc_html__('Restore', 'event_espresso'), |
|
403 | - ), |
|
404 | - ); |
|
405 | - } |
|
406 | - } |
|
407 | - |
|
408 | - |
|
409 | - /** |
|
410 | - * @return void |
|
411 | - */ |
|
412 | - protected function _set_list_table_views_question_groups() |
|
413 | - { |
|
414 | - $this->_views = array( |
|
415 | - 'all' => array( |
|
416 | - 'slug' => 'all', |
|
417 | - 'label' => esc_html__('All', 'event_espresso'), |
|
418 | - 'count' => 0, |
|
419 | - 'bulk_action' => array( |
|
420 | - 'trash_question_groups' => esc_html__('Trash', 'event_espresso'), |
|
421 | - ), |
|
422 | - ), |
|
423 | - ); |
|
424 | - |
|
425 | - if ( |
|
426 | - EE_Registry::instance()->CAP->current_user_can( |
|
427 | - 'ee_delete_question_groups', |
|
428 | - 'espresso_registration_form_trash_question_groups' |
|
429 | - ) |
|
430 | - ) { |
|
431 | - $this->_views['trash'] = array( |
|
432 | - 'slug' => 'trash', |
|
433 | - 'label' => esc_html__('Trash', 'event_espresso'), |
|
434 | - 'count' => 0, |
|
435 | - 'bulk_action' => array( |
|
436 | - 'delete_question_groups' => esc_html__('Delete Permanently', 'event_espresso'), |
|
437 | - 'restore_question_groups' => esc_html__('Restore', 'event_espresso'), |
|
438 | - ), |
|
439 | - ); |
|
440 | - } |
|
441 | - } |
|
442 | - |
|
443 | - |
|
444 | - /** |
|
445 | - * @return void |
|
446 | - * @throws EE_Error |
|
447 | - * @throws InvalidArgumentException |
|
448 | - * @throws InvalidDataTypeException |
|
449 | - * @throws InvalidInterfaceException |
|
450 | - */ |
|
451 | - protected function _questions_overview_list_table() |
|
452 | - { |
|
453 | - $this->_admin_page_title .= ' ' . $this->get_action_link_or_button( |
|
454 | - 'add_question', |
|
455 | - 'add_question', |
|
456 | - array(), |
|
457 | - 'add-new-h2' |
|
458 | - ); |
|
459 | - parent::_questions_overview_list_table(); |
|
460 | - } |
|
461 | - |
|
462 | - |
|
463 | - /** |
|
464 | - * @return void |
|
465 | - * @throws DomainException |
|
466 | - * @throws EE_Error |
|
467 | - * @throws InvalidArgumentException |
|
468 | - * @throws InvalidDataTypeException |
|
469 | - * @throws InvalidInterfaceException |
|
470 | - */ |
|
471 | - protected function _question_groups_overview_list_table() |
|
472 | - { |
|
473 | - $this->_search_btn_label = esc_html__('Question Groups', 'event_espresso'); |
|
474 | - $this->_admin_page_title .= ' ' . $this->get_action_link_or_button( |
|
475 | - 'add_question_group', |
|
476 | - 'add_question_group', |
|
477 | - array(), |
|
478 | - 'add-new-h2' |
|
479 | - ); |
|
480 | - $this->display_admin_list_table_page_with_sidebar(); |
|
481 | - } |
|
482 | - |
|
483 | - |
|
484 | - /** |
|
485 | - * @return void |
|
486 | - * @throws EE_Error |
|
487 | - * @throws InvalidArgumentException |
|
488 | - * @throws InvalidDataTypeException |
|
489 | - * @throws InvalidInterfaceException |
|
490 | - */ |
|
491 | - protected function _delete_question() |
|
492 | - { |
|
493 | - $success = $this->_delete_items($this->_question_model); |
|
494 | - $this->_redirect_after_action( |
|
495 | - $success, |
|
496 | - $this->_question_model->item_name($success), |
|
497 | - 'deleted', |
|
498 | - array('action' => 'default', 'status' => 'all') |
|
499 | - ); |
|
500 | - } |
|
501 | - |
|
502 | - |
|
503 | - /** |
|
504 | - * @return void |
|
505 | - * @throws EE_Error |
|
506 | - * @throws InvalidArgumentException |
|
507 | - * @throws InvalidDataTypeException |
|
508 | - * @throws InvalidInterfaceException |
|
509 | - */ |
|
510 | - protected function _delete_questions() |
|
511 | - { |
|
512 | - $success = $this->_delete_items($this->_question_model); |
|
513 | - $this->_redirect_after_action( |
|
514 | - $success, |
|
515 | - $this->_question_model->item_name($success), |
|
516 | - 'deleted permanently', |
|
517 | - array('action' => 'default', 'status' => 'trash') |
|
518 | - ); |
|
519 | - } |
|
520 | - |
|
521 | - |
|
522 | - /** |
|
523 | - * Performs the deletion of a single or multiple questions or question groups. |
|
524 | - * |
|
525 | - * @param EEM_Soft_Delete_Base $model |
|
526 | - * @return int number of items deleted permanently |
|
527 | - * @throws EE_Error |
|
528 | - * @throws InvalidArgumentException |
|
529 | - * @throws InvalidDataTypeException |
|
530 | - * @throws InvalidInterfaceException |
|
531 | - */ |
|
532 | - private function _delete_items(EEM_Soft_Delete_Base $model) |
|
533 | - { |
|
534 | - $success = 0; |
|
535 | - do_action('AHEE_log', __FILE__, __FUNCTION__, ''); |
|
536 | - if (! empty($this->_req_data['checkbox']) && is_array($this->_req_data['checkbox'])) { |
|
537 | - // if array has more than one element than success message should be plural |
|
538 | - $success = count($this->_req_data['checkbox']) > 1 ? 2 : 1; |
|
539 | - // cycle thru bulk action checkboxes |
|
540 | - while (list($ID, $value) = each($this->_req_data['checkbox'])) { |
|
541 | - if (! $this->_delete_item($ID, $model)) { |
|
542 | - $success = 0; |
|
543 | - } |
|
544 | - } |
|
545 | - } elseif (! empty($this->_req_data['QSG_ID'])) { |
|
546 | - $success = $this->_delete_item($this->_req_data['QSG_ID'], $model); |
|
547 | - } elseif (! empty($this->_req_data['QST_ID'])) { |
|
548 | - $success = $this->_delete_item($this->_req_data['QST_ID'], $model); |
|
549 | - } else { |
|
550 | - EE_Error::add_error( |
|
551 | - sprintf( |
|
552 | - esc_html__( |
|
553 | - "No Questions or Question Groups were selected for deleting. This error usually shows when you've attempted to delete via bulk action but there were no selections.", |
|
554 | - "event_espresso" |
|
555 | - ) |
|
556 | - ), |
|
557 | - __FILE__, |
|
558 | - __FUNCTION__, |
|
559 | - __LINE__ |
|
560 | - ); |
|
561 | - } |
|
562 | - return $success; |
|
563 | - } |
|
564 | - |
|
565 | - |
|
566 | - /** |
|
567 | - * Deletes the specified question (and its associated question options) or question group |
|
568 | - * |
|
569 | - * @param int $id |
|
570 | - * @param EEM_Soft_Delete_Base $model |
|
571 | - * @return boolean |
|
572 | - * @throws EE_Error |
|
573 | - * @throws InvalidArgumentException |
|
574 | - * @throws InvalidDataTypeException |
|
575 | - * @throws InvalidInterfaceException |
|
576 | - */ |
|
577 | - protected function _delete_item($id, $model) |
|
578 | - { |
|
579 | - if ($model instanceof EEM_Question) { |
|
580 | - EEM_Question_Option::instance()->delete_permanently(array(array('QST_ID' => absint($id)))); |
|
581 | - } |
|
582 | - return $model->delete_permanently_by_ID(absint($id)); |
|
583 | - } |
|
584 | - |
|
585 | - |
|
586 | - /****************************** QUESTION GROUPS ******************************/ |
|
587 | - |
|
588 | - |
|
589 | - /** |
|
590 | - * @param string $type |
|
591 | - * @return void |
|
592 | - * @throws DomainException |
|
593 | - * @throws EE_Error |
|
594 | - * @throws InvalidArgumentException |
|
595 | - * @throws InvalidDataTypeException |
|
596 | - * @throws InvalidInterfaceException |
|
597 | - */ |
|
598 | - protected function _edit_question_group($type = 'add') |
|
599 | - { |
|
600 | - do_action('AHEE_log', __FILE__, __FUNCTION__, ''); |
|
601 | - $ID = isset($this->_req_data['QSG_ID']) && ! empty($this->_req_data['QSG_ID']) |
|
602 | - ? absint($this->_req_data['QSG_ID']) |
|
603 | - : false; |
|
604 | - |
|
605 | - switch ($this->_req_action) { |
|
606 | - case 'add_question_group': |
|
607 | - $this->_admin_page_title = esc_html__('Add Question Group', 'event_espresso'); |
|
608 | - break; |
|
609 | - case 'edit_question_group': |
|
610 | - $this->_admin_page_title = esc_html__('Edit Question Group', 'event_espresso'); |
|
611 | - break; |
|
612 | - default: |
|
613 | - $this->_admin_page_title = ucwords(str_replace('_', ' ', $this->_req_action)); |
|
614 | - } |
|
615 | - // add ID to title if editing |
|
616 | - $this->_admin_page_title = $ID ? $this->_admin_page_title . ' # ' . $ID : $this->_admin_page_title; |
|
617 | - if ($ID) { |
|
618 | - /** @var EE_Question_Group $questionGroup */ |
|
619 | - $questionGroup = $this->_question_group_model->get_one_by_ID($ID); |
|
620 | - $additional_hidden_fields = array('QSG_ID' => array('type' => 'hidden', 'value' => $ID)); |
|
621 | - $this->_set_add_edit_form_tags('update_question_group', $additional_hidden_fields); |
|
622 | - } else { |
|
623 | - /** @var EE_Question_Group $questionGroup */ |
|
624 | - $questionGroup = EEM_Question_Group::instance()->create_default_object(); |
|
625 | - $questionGroup->set_order_to_latest(); |
|
626 | - $this->_set_add_edit_form_tags('insert_question_group'); |
|
627 | - } |
|
628 | - $this->_template_args['values'] = $this->_yes_no_values; |
|
629 | - $this->_template_args['all_questions'] = $questionGroup->questions_in_and_not_in_group(); |
|
630 | - $this->_template_args['QSG_ID'] = $ID ? $ID : true; |
|
631 | - $this->_template_args['question_group'] = $questionGroup; |
|
632 | - |
|
633 | - $redirect_URL = add_query_arg(array('action' => 'question_groups'), $this->_admin_base_url); |
|
634 | - $this->_set_publish_post_box_vars('id', $ID, false, $redirect_URL); |
|
635 | - $this->_template_args['admin_page_content'] = EEH_Template::display_template( |
|
636 | - REGISTRATION_FORM_CAF_TEMPLATE_PATH . 'question_groups_main_meta_box.template.php', |
|
637 | - $this->_template_args, |
|
638 | - true |
|
639 | - ); |
|
640 | - |
|
641 | - // the details template wrapper |
|
642 | - $this->display_admin_page_with_sidebar(); |
|
643 | - } |
|
644 | - |
|
645 | - |
|
646 | - /** |
|
647 | - * @return void |
|
648 | - * @throws EE_Error |
|
649 | - * @throws InvalidArgumentException |
|
650 | - * @throws InvalidDataTypeException |
|
651 | - * @throws InvalidInterfaceException |
|
652 | - */ |
|
653 | - protected function _delete_question_groups() |
|
654 | - { |
|
655 | - $success = $this->_delete_items($this->_question_group_model); |
|
656 | - $this->_redirect_after_action( |
|
657 | - $success, |
|
658 | - $this->_question_group_model->item_name($success), |
|
659 | - 'deleted permanently', |
|
660 | - array('action' => 'question_groups', 'status' => 'trash') |
|
661 | - ); |
|
662 | - } |
|
663 | - |
|
664 | - |
|
665 | - /** |
|
666 | - * @param bool $new_question_group |
|
667 | - * @throws EE_Error |
|
668 | - * @throws InvalidArgumentException |
|
669 | - * @throws InvalidDataTypeException |
|
670 | - * @throws InvalidInterfaceException |
|
671 | - */ |
|
672 | - protected function _insert_or_update_question_group($new_question_group = true) |
|
673 | - { |
|
674 | - do_action('AHEE_log', __FILE__, __FUNCTION__, ''); |
|
675 | - $set_column_values = $this->_set_column_values_for($this->_question_group_model); |
|
676 | - |
|
677 | - // make sure identifier is unique |
|
678 | - $identifier_value = isset($set_column_values['QSG_identifier']) ? $set_column_values['QSG_identifier'] : ''; |
|
679 | - $where_values = ['QSG_identifier' => $set_column_values['QSG_identifier']]; |
|
680 | - if (! $new_question_group && isset($set_column_values['QSG_ID'])) { |
|
681 | - $where_values['QSG_ID'] = ['!=', $set_column_values['QSG_ID']]; |
|
682 | - } |
|
683 | - $identifier_exists = ! empty($identifier_value) |
|
684 | - ? $this->_question_group_model->count([$where_values]) > 0 |
|
685 | - : false; |
|
686 | - if ($identifier_exists) { |
|
687 | - $set_column_values['QSG_identifier'] .= uniqid('id', true); |
|
688 | - } |
|
689 | - |
|
690 | - if ($new_question_group) { |
|
691 | - $QSG_ID = $this->_question_group_model->insert($set_column_values); |
|
692 | - $success = $QSG_ID ? 1 : 0; |
|
693 | - if ($success === 0) { |
|
694 | - EE_Error::add_error( |
|
695 | - esc_html__('Something went wrong saving the question group.', 'event_espresso'), |
|
696 | - __FILE__, |
|
697 | - __FUNCTION__, |
|
698 | - __LINE__ |
|
699 | - ); |
|
700 | - $this->_redirect_after_action( |
|
701 | - false, |
|
702 | - '', |
|
703 | - '', |
|
704 | - array('action' => 'edit_question_group', 'QSG_ID' => $QSG_ID), |
|
705 | - true |
|
706 | - ); |
|
707 | - } |
|
708 | - } else { |
|
709 | - $QSG_ID = absint($this->_req_data['QSG_ID']); |
|
710 | - unset($set_column_values['QSG_ID']); |
|
711 | - $success = $this->_question_group_model->update($set_column_values, array(array('QSG_ID' => $QSG_ID))); |
|
712 | - } |
|
713 | - |
|
714 | - $phone_question_id = EEM_Question::instance()->get_Question_ID_from_system_string( |
|
715 | - EEM_Attendee::system_question_phone |
|
716 | - ); |
|
717 | - // update the existing related questions |
|
718 | - // BUT FIRST... delete the phone question from the Question_Group_Question |
|
719 | - // if it is being added to this question group (therefore removed from the existing group) |
|
720 | - if (isset($this->_req_data['questions'], $this->_req_data['questions'][ $phone_question_id ])) { |
|
721 | - // delete where QST ID = system phone question ID and Question Group ID is NOT this group |
|
722 | - EEM_Question_Group_Question::instance()->delete( |
|
723 | - array( |
|
724 | - array( |
|
725 | - 'QST_ID' => $phone_question_id, |
|
726 | - 'QSG_ID' => array('!=', $QSG_ID), |
|
727 | - ), |
|
728 | - ) |
|
729 | - ); |
|
730 | - } |
|
731 | - /** @type EE_Question_Group $question_group */ |
|
732 | - $question_group = $this->_question_group_model->get_one_by_ID($QSG_ID); |
|
733 | - $questions = $question_group->questions(); |
|
734 | - // make sure system phone question is added to list of questions for this group |
|
735 | - if (! isset($questions[ $phone_question_id ])) { |
|
736 | - $questions[ $phone_question_id ] = EEM_Question::instance()->get_one_by_ID($phone_question_id); |
|
737 | - } |
|
738 | - |
|
739 | - foreach ($questions as $question_ID => $question) { |
|
740 | - // first we always check for order. |
|
741 | - if (! empty($this->_req_data['question_orders'][ $question_ID ])) { |
|
742 | - // update question order |
|
743 | - $question_group->update_question_order( |
|
744 | - $question_ID, |
|
745 | - $this->_req_data['question_orders'][ $question_ID ] |
|
746 | - ); |
|
747 | - } |
|
748 | - |
|
749 | - // then we always check if adding or removing. |
|
750 | - if (isset($this->_req_data['questions'], $this->_req_data['questions'][ $question_ID ])) { |
|
751 | - $question_group->add_question($question_ID); |
|
752 | - } else { |
|
753 | - // not found, remove it (but only if not a system question for the personal group |
|
754 | - // with the exception of lname system question - we allow removal of it) |
|
755 | - if ( |
|
756 | - in_array( |
|
757 | - $question->system_ID(), |
|
758 | - EEM_Question::instance()->required_system_questions_in_system_question_group( |
|
759 | - $question_group->system_group() |
|
760 | - ) |
|
761 | - ) |
|
762 | - ) { |
|
763 | - continue; |
|
764 | - } else { |
|
765 | - $question_group->remove_question($question_ID); |
|
766 | - } |
|
767 | - } |
|
768 | - } |
|
769 | - // save new related questions |
|
770 | - if (isset($this->_req_data['questions'])) { |
|
771 | - foreach ($this->_req_data['questions'] as $QST_ID) { |
|
772 | - $question_group->add_question($QST_ID); |
|
773 | - if (isset($this->_req_data['question_orders'][ $QST_ID ])) { |
|
774 | - $question_group->update_question_order($QST_ID, $this->_req_data['question_orders'][ $QST_ID ]); |
|
775 | - } |
|
776 | - } |
|
777 | - } |
|
778 | - |
|
779 | - if ($success !== false) { |
|
780 | - $msg = $new_question_group |
|
781 | - ? sprintf( |
|
782 | - esc_html__('The %s has been created', 'event_espresso'), |
|
783 | - $this->_question_group_model->item_name() |
|
784 | - ) |
|
785 | - : sprintf( |
|
786 | - esc_html__( |
|
787 | - 'The %s has been updated', |
|
788 | - 'event_espresso' |
|
789 | - ), |
|
790 | - $this->_question_group_model->item_name() |
|
791 | - ); |
|
792 | - EE_Error::add_success($msg); |
|
793 | - } |
|
794 | - $this->_redirect_after_action( |
|
795 | - false, |
|
796 | - '', |
|
797 | - '', |
|
798 | - array('action' => 'edit_question_group', 'QSG_ID' => $QSG_ID), |
|
799 | - true |
|
800 | - ); |
|
801 | - } |
|
802 | - |
|
803 | - |
|
804 | - /** |
|
805 | - * duplicates a question and all its question options and redirects to the new question. |
|
806 | - * |
|
807 | - * @return void |
|
808 | - * @throws EE_Error |
|
809 | - * @throws InvalidArgumentException |
|
810 | - * @throws ReflectionException |
|
811 | - * @throws InvalidDataTypeException |
|
812 | - * @throws InvalidInterfaceException |
|
813 | - */ |
|
814 | - public function _duplicate_question() |
|
815 | - { |
|
816 | - $question_ID = (int) $this->_req_data['QST_ID']; |
|
817 | - $question = EEM_Question::instance()->get_one_by_ID($question_ID); |
|
818 | - if ($question instanceof EE_Question) { |
|
819 | - $new_question = $question->duplicate(); |
|
820 | - if ($new_question instanceof EE_Question) { |
|
821 | - $this->_redirect_after_action( |
|
822 | - true, |
|
823 | - esc_html__('Question', 'event_espresso'), |
|
824 | - esc_html__('Duplicated', 'event_espresso'), |
|
825 | - array('action' => 'edit_question', 'QST_ID' => $new_question->ID()), |
|
826 | - true |
|
827 | - ); |
|
828 | - } else { |
|
829 | - global $wpdb; |
|
830 | - EE_Error::add_error( |
|
831 | - sprintf( |
|
832 | - esc_html__( |
|
833 | - 'Could not duplicate question with ID %1$d because: %2$s', |
|
834 | - 'event_espresso' |
|
835 | - ), |
|
836 | - $question_ID, |
|
837 | - $wpdb->last_error |
|
838 | - ), |
|
839 | - __FILE__, |
|
840 | - __FUNCTION__, |
|
841 | - __LINE__ |
|
842 | - ); |
|
843 | - $this->_redirect_after_action(false, '', '', array('action' => 'default'), false); |
|
844 | - } |
|
845 | - } else { |
|
846 | - EE_Error::add_error( |
|
847 | - sprintf( |
|
848 | - esc_html__( |
|
849 | - 'Could not duplicate question with ID %d because it didn\'t exist!', |
|
850 | - 'event_espresso' |
|
851 | - ), |
|
852 | - $question_ID |
|
853 | - ), |
|
854 | - __FILE__, |
|
855 | - __FUNCTION__, |
|
856 | - __LINE__ |
|
857 | - ); |
|
858 | - $this->_redirect_after_action(false, '', '', array('action' => 'default'), false); |
|
859 | - } |
|
860 | - } |
|
861 | - |
|
862 | - |
|
863 | - /** |
|
864 | - * @param bool $trash |
|
865 | - * @throws EE_Error |
|
866 | - */ |
|
867 | - protected function _trash_or_restore_question_groups($trash = true) |
|
868 | - { |
|
869 | - $this->_trash_or_restore_items($this->_question_group_model, $trash); |
|
870 | - } |
|
871 | - |
|
872 | - |
|
873 | - /** |
|
874 | - *_trash_question |
|
875 | - * |
|
876 | - * @return void |
|
877 | - * @throws EE_Error |
|
878 | - */ |
|
879 | - protected function _trash_question() |
|
880 | - { |
|
881 | - $success = $this->_question_model->delete_by_ID((int) $this->_req_data['QST_ID']); |
|
882 | - $query_args = array('action' => 'default', 'status' => 'all'); |
|
883 | - $this->_redirect_after_action($success, $this->_question_model->item_name($success), 'trashed', $query_args); |
|
884 | - } |
|
885 | - |
|
886 | - |
|
887 | - /** |
|
888 | - * @param bool $trash |
|
889 | - * @throws EE_Error |
|
890 | - */ |
|
891 | - protected function _trash_or_restore_questions($trash = true) |
|
892 | - { |
|
893 | - $this->_trash_or_restore_items($this->_question_model, $trash); |
|
894 | - } |
|
895 | - |
|
896 | - |
|
897 | - /** |
|
898 | - * Internally used to delete or restore items, using the request data. Meant to be |
|
899 | - * flexible between question or question groups |
|
900 | - * |
|
901 | - * @param EEM_Soft_Delete_Base $model |
|
902 | - * @param boolean $trash whether to trash or restore |
|
903 | - * @throws EE_Error |
|
904 | - */ |
|
905 | - private function _trash_or_restore_items(EEM_Soft_Delete_Base $model, $trash = true) |
|
906 | - { |
|
907 | - |
|
908 | - do_action('AHEE_log', __FILE__, __FUNCTION__, ''); |
|
909 | - |
|
910 | - $success = 1; |
|
911 | - // Checkboxes |
|
912 | - // echo "trash $trash"; |
|
913 | - // var_dump($this->_req_data['checkbox']);die; |
|
914 | - if (isset($this->_req_data['checkbox'])) { |
|
915 | - if (! empty($this->_req_data['checkbox']) && is_array($this->_req_data['checkbox'])) { |
|
916 | - // if array has more than one element than success message should be plural |
|
917 | - $success = count($this->_req_data['checkbox']) > 1 ? 2 : 1; |
|
918 | - // cycle thru bulk action checkboxes |
|
919 | - while (list($ID, $value) = each($this->_req_data['checkbox'])) { |
|
920 | - if (! $model->delete_or_restore_by_ID($trash, absint($ID))) { |
|
921 | - $success = 0; |
|
922 | - } |
|
923 | - } |
|
924 | - } else { |
|
925 | - // grab single id and delete |
|
926 | - $ID = absint($this->_req_data['checkbox']); |
|
927 | - if (! $model->delete_or_restore_by_ID($trash, $ID)) { |
|
928 | - $success = 0; |
|
929 | - } |
|
930 | - } |
|
931 | - } else { |
|
932 | - // delete via trash link |
|
933 | - // grab single id and delete |
|
934 | - $ID = absint($this->_req_data[ $model->primary_key_name() ]); |
|
935 | - if (! $model->delete_or_restore_by_ID($trash, $ID)) { |
|
936 | - $success = 0; |
|
937 | - } |
|
938 | - } |
|
939 | - |
|
940 | - |
|
941 | - $action = $model instanceof EEM_Question ? 'default' : 'question_groups';// strtolower( $model->item_name(2) ); |
|
942 | - // echo "action :$action"; |
|
943 | - // $action = 'questions' ? 'default' : $action; |
|
944 | - if ($trash) { |
|
945 | - $action_desc = 'trashed'; |
|
946 | - $status = 'trash'; |
|
947 | - } else { |
|
948 | - $action_desc = 'restored'; |
|
949 | - $status = 'all'; |
|
950 | - } |
|
951 | - $this->_redirect_after_action( |
|
952 | - $success, |
|
953 | - $model->item_name($success), |
|
954 | - $action_desc, |
|
955 | - array('action' => $action, 'status' => $status) |
|
956 | - ); |
|
957 | - } |
|
958 | - |
|
959 | - |
|
960 | - /** |
|
961 | - * @param $per_page |
|
962 | - * @param int $current_page |
|
963 | - * @param bool|false $count |
|
964 | - * @return EE_Soft_Delete_Base_Class[]|int |
|
965 | - * @throws EE_Error |
|
966 | - * @throws InvalidArgumentException |
|
967 | - * @throws InvalidDataTypeException |
|
968 | - * @throws InvalidInterfaceException |
|
969 | - */ |
|
970 | - public function get_trashed_questions($per_page, $current_page = 1, $count = false) |
|
971 | - { |
|
972 | - $query_params = $this->get_query_params(EEM_Question::instance(), $per_page, $current_page); |
|
973 | - |
|
974 | - if ($count) { |
|
975 | - // note: this a subclass of EEM_Soft_Delete_Base, so this is actually only getting non-trashed items |
|
976 | - $where = isset($query_params[0]) ? array($query_params[0]) : array(); |
|
977 | - $results = $this->_question_model->count_deleted($where); |
|
978 | - } else { |
|
979 | - // note: this a subclass of EEM_Soft_Delete_Base, so this is actually only getting non-trashed items |
|
980 | - $results = $this->_question_model->get_all_deleted($query_params); |
|
981 | - } |
|
982 | - return $results; |
|
983 | - } |
|
984 | - |
|
985 | - |
|
986 | - /** |
|
987 | - * @param $per_page |
|
988 | - * @param int $current_page |
|
989 | - * @param bool|false $count |
|
990 | - * @return EE_Soft_Delete_Base_Class[]|int |
|
991 | - * @throws EE_Error |
|
992 | - * @throws InvalidArgumentException |
|
993 | - * @throws InvalidDataTypeException |
|
994 | - * @throws InvalidInterfaceException |
|
995 | - */ |
|
996 | - public function get_question_groups($per_page, $current_page = 1, $count = false) |
|
997 | - { |
|
998 | - $questionGroupModel = EEM_Question_Group::instance(); |
|
999 | - $query_params = $this->get_query_params($questionGroupModel, $per_page, $current_page); |
|
1000 | - if ($count) { |
|
1001 | - $where = isset($query_params[0]) ? array($query_params[0]) : array(); |
|
1002 | - $results = $questionGroupModel->count($where); |
|
1003 | - } else { |
|
1004 | - $results = $questionGroupModel->get_all($query_params); |
|
1005 | - } |
|
1006 | - return $results; |
|
1007 | - } |
|
1008 | - |
|
1009 | - |
|
1010 | - /** |
|
1011 | - * @param $per_page |
|
1012 | - * @param int $current_page |
|
1013 | - * @param bool $count |
|
1014 | - * @return EE_Soft_Delete_Base_Class[]|int |
|
1015 | - * @throws EE_Error |
|
1016 | - * @throws InvalidArgumentException |
|
1017 | - * @throws InvalidDataTypeException |
|
1018 | - * @throws InvalidInterfaceException |
|
1019 | - */ |
|
1020 | - public function get_trashed_question_groups($per_page, $current_page = 1, $count = false) |
|
1021 | - { |
|
1022 | - $questionGroupModel = EEM_Question_Group::instance(); |
|
1023 | - $query_params = $this->get_query_params($questionGroupModel, $per_page, $current_page); |
|
1024 | - if ($count) { |
|
1025 | - $where = isset($query_params[0]) ? array($query_params[0]) : array(); |
|
1026 | - $query_params['limit'] = null; |
|
1027 | - $results = $questionGroupModel->count_deleted($where); |
|
1028 | - } else { |
|
1029 | - $results = $questionGroupModel->get_all_deleted($query_params); |
|
1030 | - } |
|
1031 | - return $results; |
|
1032 | - } |
|
1033 | - |
|
1034 | - |
|
1035 | - /** |
|
1036 | - * method for performing updates to question order |
|
1037 | - * |
|
1038 | - * @return void results array |
|
1039 | - * @throws EE_Error |
|
1040 | - * @throws InvalidArgumentException |
|
1041 | - * @throws InvalidDataTypeException |
|
1042 | - * @throws InvalidInterfaceException |
|
1043 | - */ |
|
1044 | - public function update_question_group_order() |
|
1045 | - { |
|
1046 | - |
|
1047 | - $success = esc_html__('Question group order was updated successfully.', 'event_espresso'); |
|
1048 | - |
|
1049 | - // grab our row IDs |
|
1050 | - $row_ids = isset($this->_req_data['row_ids']) && ! empty($this->_req_data['row_ids']) |
|
1051 | - ? explode(',', rtrim($this->_req_data['row_ids'], ',')) |
|
1052 | - : array(); |
|
1053 | - |
|
1054 | - $perpage = ! empty($this->_req_data['perpage']) |
|
1055 | - ? (int) $this->_req_data['perpage'] |
|
1056 | - : null; |
|
1057 | - $curpage = ! empty($this->_req_data['curpage']) |
|
1058 | - ? (int) $this->_req_data['curpage'] |
|
1059 | - : null; |
|
1060 | - |
|
1061 | - if (! empty($row_ids)) { |
|
1062 | - // figure out where we start the row_id count at for the current page. |
|
1063 | - $qsgcount = empty($curpage) ? 0 : ($curpage - 1) * $perpage; |
|
1064 | - |
|
1065 | - $row_count = count($row_ids); |
|
1066 | - for ($i = 0; $i < $row_count; $i++) { |
|
1067 | - // Update the questions when re-ordering |
|
1068 | - $updated = EEM_Question_Group::instance()->update( |
|
1069 | - array('QSG_order' => $qsgcount), |
|
1070 | - array(array('QSG_ID' => $row_ids[ $i ])) |
|
1071 | - ); |
|
1072 | - if ($updated === false) { |
|
1073 | - $success = false; |
|
1074 | - } |
|
1075 | - $qsgcount++; |
|
1076 | - } |
|
1077 | - } else { |
|
1078 | - $success = false; |
|
1079 | - } |
|
1080 | - |
|
1081 | - $errors = ! $success |
|
1082 | - ? esc_html__('An error occurred. The question group order was not updated.', 'event_espresso') |
|
1083 | - : false; |
|
1084 | - |
|
1085 | - echo wp_json_encode(array('return_data' => false, 'success' => $success, 'errors' => $errors)); |
|
1086 | - die(); |
|
1087 | - } |
|
1088 | - |
|
1089 | - |
|
1090 | - |
|
1091 | - /*************************************** REGISTRATION SETTINGS ***************************************/ |
|
1092 | - |
|
1093 | - |
|
1094 | - /** |
|
1095 | - * @throws DomainException |
|
1096 | - * @throws EE_Error |
|
1097 | - * @throws InvalidArgumentException |
|
1098 | - * @throws InvalidDataTypeException |
|
1099 | - * @throws InvalidInterfaceException |
|
1100 | - */ |
|
1101 | - protected function _reg_form_settings() |
|
1102 | - { |
|
1103 | - $this->_template_args['values'] = $this->_yes_no_values; |
|
1104 | - add_action( |
|
1105 | - 'AHEE__Extend_Registration_Form_Admin_Page___reg_form_settings_template', |
|
1106 | - array($this, 'email_validation_settings_form'), |
|
1107 | - 2 |
|
1108 | - ); |
|
1109 | - add_action( |
|
1110 | - 'AHEE__Extend_Registration_Form_Admin_Page___reg_form_settings_template', |
|
1111 | - array($this, 'copy_attendee_info_settings_form'), |
|
1112 | - 4 |
|
1113 | - ); |
|
1114 | - add_action( |
|
1115 | - 'AHEE__Extend_Registration_Form_Admin_Page___reg_form_settings_template', |
|
1116 | - array($this, 'setSessionLifespan'), |
|
1117 | - 4.9 |
|
1118 | - ); |
|
1119 | - $this->_template_args = (array) apply_filters( |
|
1120 | - 'FHEE__Extend_Registration_Form_Admin_Page___reg_form_settings___template_args', |
|
1121 | - $this->_template_args |
|
1122 | - ); |
|
1123 | - $this->_set_add_edit_form_tags('update_reg_form_settings'); |
|
1124 | - $this->_set_publish_post_box_vars(null, false, false, null, false); |
|
1125 | - $this->_template_args['admin_page_content'] = EEH_Template::display_template( |
|
1126 | - REGISTRATION_FORM_CAF_TEMPLATE_PATH . 'reg_form_settings.template.php', |
|
1127 | - $this->_template_args, |
|
1128 | - true |
|
1129 | - ); |
|
1130 | - $this->display_admin_page_with_sidebar(); |
|
1131 | - } |
|
1132 | - |
|
1133 | - |
|
1134 | - /** |
|
1135 | - * @return void |
|
1136 | - * @throws EE_Error |
|
1137 | - * @throws InvalidArgumentException |
|
1138 | - * @throws ReflectionException |
|
1139 | - * @throws InvalidDataTypeException |
|
1140 | - * @throws InvalidInterfaceException |
|
1141 | - */ |
|
1142 | - protected function _update_reg_form_settings() |
|
1143 | - { |
|
1144 | - EE_Registry::instance()->CFG->registration = $this->update_email_validation_settings_form( |
|
1145 | - EE_Registry::instance()->CFG->registration |
|
1146 | - ); |
|
1147 | - EE_Registry::instance()->CFG->registration = $this->update_copy_attendee_info_settings_form( |
|
1148 | - EE_Registry::instance()->CFG->registration |
|
1149 | - ); |
|
1150 | - $this->updateSessionLifespan(); |
|
1151 | - EE_Registry::instance()->CFG->registration = apply_filters( |
|
1152 | - 'FHEE__Extend_Registration_Form_Admin_Page___update_reg_form_settings__CFG_registration', |
|
1153 | - EE_Registry::instance()->CFG->registration |
|
1154 | - ); |
|
1155 | - $success = $this->_update_espresso_configuration( |
|
1156 | - esc_html__('Registration Form Options', 'event_espresso'), |
|
1157 | - EE_Registry::instance()->CFG, |
|
1158 | - __FILE__, |
|
1159 | - __FUNCTION__, |
|
1160 | - __LINE__ |
|
1161 | - ); |
|
1162 | - $this->_redirect_after_action( |
|
1163 | - $success, |
|
1164 | - esc_html__('Registration Form Options', 'event_espresso'), |
|
1165 | - 'updated', |
|
1166 | - array('action' => 'view_reg_form_settings') |
|
1167 | - ); |
|
1168 | - } |
|
1169 | - |
|
1170 | - |
|
1171 | - /** |
|
1172 | - * @return void |
|
1173 | - * @throws EE_Error |
|
1174 | - * @throws InvalidArgumentException |
|
1175 | - * @throws InvalidDataTypeException |
|
1176 | - * @throws InvalidInterfaceException |
|
1177 | - */ |
|
1178 | - public function copy_attendee_info_settings_form() |
|
1179 | - { |
|
1180 | - echo wp_kses($this->_copy_attendee_info_settings_form()->get_html(), AllowedTags::getWithFormTags()); |
|
1181 | - } |
|
1182 | - |
|
1183 | - /** |
|
1184 | - * _copy_attendee_info_settings_form |
|
1185 | - * |
|
1186 | - * @access protected |
|
1187 | - * @return EE_Form_Section_Proper |
|
1188 | - * @throws \EE_Error |
|
1189 | - */ |
|
1190 | - protected function _copy_attendee_info_settings_form() |
|
1191 | - { |
|
1192 | - return new EE_Form_Section_Proper( |
|
1193 | - array( |
|
1194 | - 'name' => 'copy_attendee_info_settings', |
|
1195 | - 'html_id' => 'copy_attendee_info_settings', |
|
1196 | - 'layout_strategy' => new EE_Admin_Two_Column_Layout(), |
|
1197 | - 'subsections' => apply_filters( |
|
1198 | - 'FHEE__Extend_Registration_Form_Admin_Page___copy_attendee_info_settings_form__form_subsections', |
|
1199 | - array( |
|
1200 | - 'copy_attendee_info_hdr' => new EE_Form_Section_HTML( |
|
1201 | - EEH_HTML::h2(esc_html__('Copy Attendee Info Settings', 'event_espresso')) |
|
1202 | - ), |
|
1203 | - 'copy_attendee_info' => new EE_Yes_No_Input( |
|
1204 | - array( |
|
1205 | - 'html_label_text' => esc_html__( |
|
1206 | - 'Allow copy #1 attendee info to extra attendees?', |
|
1207 | - 'event_espresso' |
|
1208 | - ), |
|
1209 | - 'html_help_text' => esc_html__( |
|
1210 | - 'Set to yes if you want to enable the copy of #1 attendee info to extra attendees at Registration Form.', |
|
1211 | - 'event_espresso' |
|
1212 | - ), |
|
1213 | - 'default' => EE_Registry::instance()->CFG->registration->copyAttendeeInfo(), |
|
1214 | - 'required' => false, |
|
1215 | - 'display_html_label_text' => false, |
|
1216 | - ) |
|
1217 | - ), |
|
1218 | - ) |
|
1219 | - ), |
|
1220 | - ) |
|
1221 | - ); |
|
1222 | - } |
|
1223 | - |
|
1224 | - /** |
|
1225 | - * @param EE_Registration_Config $EE_Registration_Config |
|
1226 | - * @return EE_Registration_Config |
|
1227 | - * @throws EE_Error |
|
1228 | - * @throws InvalidArgumentException |
|
1229 | - * @throws ReflectionException |
|
1230 | - * @throws InvalidDataTypeException |
|
1231 | - * @throws InvalidInterfaceException |
|
1232 | - */ |
|
1233 | - public function update_copy_attendee_info_settings_form(EE_Registration_Config $EE_Registration_Config) |
|
1234 | - { |
|
1235 | - $prev_copy_attendee_info = $EE_Registration_Config->copyAttendeeInfo(); |
|
1236 | - try { |
|
1237 | - $copy_attendee_info_settings_form = $this->_copy_attendee_info_settings_form(); |
|
1238 | - // if not displaying a form, then check for form submission |
|
1239 | - if ($copy_attendee_info_settings_form->was_submitted()) { |
|
1240 | - // capture form data |
|
1241 | - $copy_attendee_info_settings_form->receive_form_submission(); |
|
1242 | - // validate form data |
|
1243 | - if ($copy_attendee_info_settings_form->is_valid()) { |
|
1244 | - // grab validated data from form |
|
1245 | - $valid_data = $copy_attendee_info_settings_form->valid_data(); |
|
1246 | - if (isset($valid_data['copy_attendee_info'])) { |
|
1247 | - $EE_Registration_Config->setCopyAttendeeInfo($valid_data['copy_attendee_info']); |
|
1248 | - } else { |
|
1249 | - EE_Error::add_error( |
|
1250 | - esc_html__( |
|
1251 | - 'Invalid or missing Copy Attendee Info settings. Please refresh the form and try again.', |
|
1252 | - 'event_espresso' |
|
1253 | - ), |
|
1254 | - __FILE__, |
|
1255 | - __FUNCTION__, |
|
1256 | - __LINE__ |
|
1257 | - ); |
|
1258 | - } |
|
1259 | - } elseif ($copy_attendee_info_settings_form->submission_error_message() !== '') { |
|
1260 | - EE_Error::add_error( |
|
1261 | - $copy_attendee_info_settings_form->submission_error_message(), |
|
1262 | - __FILE__, |
|
1263 | - __FUNCTION__, |
|
1264 | - __LINE__ |
|
1265 | - ); |
|
1266 | - } |
|
1267 | - } |
|
1268 | - } catch (EE_Error $e) { |
|
1269 | - $e->get_error(); |
|
1270 | - } |
|
1271 | - return $EE_Registration_Config; |
|
1272 | - } |
|
1273 | - |
|
1274 | - |
|
1275 | - /** |
|
1276 | - * @return void |
|
1277 | - * @throws EE_Error |
|
1278 | - * @throws InvalidArgumentException |
|
1279 | - * @throws InvalidDataTypeException |
|
1280 | - * @throws InvalidInterfaceException |
|
1281 | - */ |
|
1282 | - public function email_validation_settings_form() |
|
1283 | - { |
|
1284 | - echo wp_kses($this->_email_validation_settings_form()->get_html(), AllowedTags::getWithFormTags()); |
|
1285 | - } |
|
1286 | - |
|
1287 | - |
|
1288 | - /** |
|
1289 | - * _email_validation_settings_form |
|
1290 | - * |
|
1291 | - * @access protected |
|
1292 | - * @return EE_Form_Section_Proper |
|
1293 | - * @throws \EE_Error |
|
1294 | - */ |
|
1295 | - protected function _email_validation_settings_form() |
|
1296 | - { |
|
1297 | - return new EE_Form_Section_Proper( |
|
1298 | - array( |
|
1299 | - 'name' => 'email_validation_settings', |
|
1300 | - 'html_id' => 'email_validation_settings', |
|
1301 | - 'layout_strategy' => new EE_Admin_Two_Column_Layout(), |
|
1302 | - 'subsections' => apply_filters( |
|
1303 | - 'FHEE__Extend_Registration_Form_Admin_Page___email_validation_settings_form__form_subsections', |
|
1304 | - array( |
|
1305 | - 'email_validation_hdr' => new EE_Form_Section_HTML( |
|
1306 | - EEH_HTML::h2(esc_html__('Email Validation Settings', 'event_espresso')) |
|
1307 | - ), |
|
1308 | - 'email_validation_level' => new EE_Select_Input( |
|
1309 | - array( |
|
1310 | - 'basic' => esc_html__('Basic', 'event_espresso'), |
|
1311 | - 'wp_default' => esc_html__('WordPress Default', 'event_espresso'), |
|
1312 | - 'i18n' => esc_html__('International', 'event_espresso'), |
|
1313 | - 'i18n_dns' => esc_html__('International + DNS Check', 'event_espresso'), |
|
1314 | - ), |
|
1315 | - array( |
|
1316 | - 'html_label_text' => esc_html__('Email Validation Level', 'event_espresso') |
|
1317 | - . EEH_Template::get_help_tab_link('email_validation_info'), |
|
1318 | - 'html_help_text' => esc_html__( |
|
1319 | - 'These levels range from basic validation ( ie: [email protected] ) to more advanced checks against international email addresses (ie: üñîçøðé@example.com ) with additional MX and A record checks to confirm the domain actually exists. More information on on each level can be found within the help section.', |
|
1320 | - 'event_espresso' |
|
1321 | - ), |
|
1322 | - 'default' => isset( |
|
1323 | - EE_Registry::instance()->CFG->registration->email_validation_level |
|
1324 | - ) |
|
1325 | - ? EE_Registry::instance()->CFG->registration->email_validation_level |
|
1326 | - : 'wp_default', |
|
1327 | - 'required' => false, |
|
1328 | - ) |
|
1329 | - ), |
|
1330 | - ) |
|
1331 | - ), |
|
1332 | - ) |
|
1333 | - ); |
|
1334 | - } |
|
1335 | - |
|
1336 | - |
|
1337 | - /** |
|
1338 | - * @param EE_Registration_Config $EE_Registration_Config |
|
1339 | - * @return EE_Registration_Config |
|
1340 | - * @throws EE_Error |
|
1341 | - * @throws InvalidArgumentException |
|
1342 | - * @throws ReflectionException |
|
1343 | - * @throws InvalidDataTypeException |
|
1344 | - * @throws InvalidInterfaceException |
|
1345 | - */ |
|
1346 | - public function update_email_validation_settings_form(EE_Registration_Config $EE_Registration_Config) |
|
1347 | - { |
|
1348 | - $prev_email_validation_level = $EE_Registration_Config->email_validation_level; |
|
1349 | - try { |
|
1350 | - $email_validation_settings_form = $this->_email_validation_settings_form(); |
|
1351 | - // if not displaying a form, then check for form submission |
|
1352 | - if ($email_validation_settings_form->was_submitted()) { |
|
1353 | - // capture form data |
|
1354 | - $email_validation_settings_form->receive_form_submission(); |
|
1355 | - // validate form data |
|
1356 | - if ($email_validation_settings_form->is_valid()) { |
|
1357 | - // grab validated data from form |
|
1358 | - $valid_data = $email_validation_settings_form->valid_data(); |
|
1359 | - if (isset($valid_data['email_validation_level'])) { |
|
1360 | - $email_validation_level = $valid_data['email_validation_level']; |
|
1361 | - // now if they want to use international email addresses |
|
1362 | - if ($email_validation_level === 'i18n' || $email_validation_level === 'i18n_dns') { |
|
1363 | - // in case we need to reset their email validation level, |
|
1364 | - // make sure that the previous value wasn't already set to one of the i18n options. |
|
1365 | - if ($prev_email_validation_level === 'i18n' || $prev_email_validation_level === 'i18n_dns') { |
|
1366 | - // if so, then reset it back to "basic" since that is the only other option that, |
|
1367 | - // despite offering poor validation, supports i18n email addresses |
|
1368 | - $prev_email_validation_level = 'basic'; |
|
1369 | - } |
|
1370 | - // confirm our i18n email validation will work on the server |
|
1371 | - if (! $this->_verify_pcre_support($EE_Registration_Config, $email_validation_level)) { |
|
1372 | - // or reset email validation level to previous value |
|
1373 | - $email_validation_level = $prev_email_validation_level; |
|
1374 | - } |
|
1375 | - } |
|
1376 | - $EE_Registration_Config->email_validation_level = $email_validation_level; |
|
1377 | - } else { |
|
1378 | - EE_Error::add_error( |
|
1379 | - esc_html__( |
|
1380 | - 'Invalid or missing Email Validation settings. Please refresh the form and try again.', |
|
1381 | - 'event_espresso' |
|
1382 | - ), |
|
1383 | - __FILE__, |
|
1384 | - __FUNCTION__, |
|
1385 | - __LINE__ |
|
1386 | - ); |
|
1387 | - } |
|
1388 | - } elseif ($email_validation_settings_form->submission_error_message() !== '') { |
|
1389 | - EE_Error::add_error( |
|
1390 | - $email_validation_settings_form->submission_error_message(), |
|
1391 | - __FILE__, |
|
1392 | - __FUNCTION__, |
|
1393 | - __LINE__ |
|
1394 | - ); |
|
1395 | - } |
|
1396 | - } |
|
1397 | - } catch (EE_Error $e) { |
|
1398 | - $e->get_error(); |
|
1399 | - } |
|
1400 | - return $EE_Registration_Config; |
|
1401 | - } |
|
1402 | - |
|
1403 | - |
|
1404 | - /** |
|
1405 | - * confirms that the server's PHP version has the PCRE module enabled, |
|
1406 | - * and that the PCRE version works with our i18n email validation |
|
1407 | - * |
|
1408 | - * @param EE_Registration_Config $EE_Registration_Config |
|
1409 | - * @param string $email_validation_level |
|
1410 | - * @return bool |
|
1411 | - */ |
|
1412 | - private function _verify_pcre_support(EE_Registration_Config $EE_Registration_Config, $email_validation_level) |
|
1413 | - { |
|
1414 | - // first check that PCRE is enabled |
|
1415 | - if (! defined('PREG_BAD_UTF8_ERROR')) { |
|
1416 | - EE_Error::add_error( |
|
1417 | - sprintf( |
|
1418 | - esc_html__( |
|
1419 | - 'We\'re sorry, but it appears that your server\'s version of PHP was not compiled with PCRE unicode support.%1$sPlease contact your hosting company and ask them whether the PCRE compiled with your version of PHP on your server can be been built with the "--enable-unicode-properties" and "--enable-utf8" configuration switches to enable more complex regex expressions.%1$sIf they are unable, or unwilling to do so, then your server will not support international email addresses using UTF-8 unicode characters. This means you will either have to lower your email validation level to "Basic" or "WordPress Default", or switch to a hosting company that has/can enable PCRE unicode support on the server.', |
|
1420 | - 'event_espresso' |
|
1421 | - ), |
|
1422 | - '<br />' |
|
1423 | - ), |
|
1424 | - __FILE__, |
|
1425 | - __FUNCTION__, |
|
1426 | - __LINE__ |
|
1427 | - ); |
|
1428 | - return false; |
|
1429 | - } else { |
|
1430 | - // PCRE support is enabled, but let's still |
|
1431 | - // perform a test to see if the server will support it. |
|
1432 | - // but first, save the updated validation level to the config, |
|
1433 | - // so that the validation strategy picks it up. |
|
1434 | - // this will get bumped back down if it doesn't work |
|
1435 | - $EE_Registration_Config->email_validation_level = $email_validation_level; |
|
1436 | - try { |
|
1437 | - $email_validator = new EE_Email_Validation_Strategy(); |
|
1438 | - $i18n_email_address = apply_filters( |
|
1439 | - 'FHEE__Extend_Registration_Form_Admin_Page__update_email_validation_settings_form__i18n_email_address', |
|
1440 | - 'jägerjü[email protected]' |
|
1441 | - ); |
|
1442 | - $email_validator->validate($i18n_email_address); |
|
1443 | - } catch (Exception $e) { |
|
1444 | - EE_Error::add_error( |
|
1445 | - sprintf( |
|
1446 | - esc_html__( |
|
1447 | - 'We\'re sorry, but it appears that your server\'s configuration will not support the "International" or "International + DNS Check" email validation levels.%1$sTo correct this issue, please consult with your hosting company regarding your server\'s PCRE settings.%1$sIt is recommended that your PHP version be configured to use PCRE 8.10 or newer.%1$sMore information regarding PCRE versions and installation can be found here: %2$s', |
|
1448 | - 'event_espresso' |
|
1449 | - ), |
|
1450 | - '<br />', |
|
1451 | - '<a href="http://php.net/manual/en/pcre.installation.php" target="_blank" rel="noopener noreferrer">http://php.net/manual/en/pcre.installation.php</a>' |
|
1452 | - ), |
|
1453 | - __FILE__, |
|
1454 | - __FUNCTION__, |
|
1455 | - __LINE__ |
|
1456 | - ); |
|
1457 | - return false; |
|
1458 | - } |
|
1459 | - } |
|
1460 | - return true; |
|
1461 | - } |
|
1462 | - |
|
1463 | - |
|
1464 | - public function setSessionLifespan() |
|
1465 | - { |
|
1466 | - $session_lifespan_form = $this->loader->getNew(SessionLifespanForm::class); |
|
1467 | - echo wp_kses($session_lifespan_form->get_html(), AllowedTags::getWithFormTags()); |
|
1468 | - } |
|
1469 | - |
|
1470 | - |
|
1471 | - public function updateSessionLifespan() |
|
1472 | - { |
|
1473 | - $handler = $this->loader->getNew(SessionLifespanFormHandler::class); |
|
1474 | - $handler->process($this->loader->getNew(SessionLifespanForm::class)); |
|
1475 | - } |
|
20 | + /** |
|
21 | + * @param bool $routing indicate whether we want to just load the object and handle routing or just load the object. |
|
22 | + */ |
|
23 | + public function __construct($routing = true) |
|
24 | + { |
|
25 | + define('REGISTRATION_FORM_CAF_ADMIN', EE_CORE_CAF_ADMIN_EXTEND . 'registration_form/'); |
|
26 | + define('REGISTRATION_FORM_CAF_ASSETS_PATH', REGISTRATION_FORM_CAF_ADMIN . 'assets/'); |
|
27 | + define('REGISTRATION_FORM_CAF_ASSETS_URL', EE_CORE_CAF_ADMIN_EXTEND_URL . 'registration_form/assets/'); |
|
28 | + define('REGISTRATION_FORM_CAF_TEMPLATE_PATH', REGISTRATION_FORM_CAF_ADMIN . 'templates/'); |
|
29 | + define('REGISTRATION_FORM_CAF_TEMPLATE_URL', EE_CORE_CAF_ADMIN_EXTEND_URL . 'registration_form/templates/'); |
|
30 | + parent::__construct($routing); |
|
31 | + } |
|
32 | + |
|
33 | + |
|
34 | + /** |
|
35 | + * @return void |
|
36 | + */ |
|
37 | + protected function _extend_page_config() |
|
38 | + { |
|
39 | + $this->_admin_base_path = REGISTRATION_FORM_CAF_ADMIN; |
|
40 | + $qst_id = ! empty($this->_req_data['QST_ID']) && ! is_array($this->_req_data['QST_ID']) |
|
41 | + ? $this->_req_data['QST_ID'] : 0; |
|
42 | + $qsg_id = ! empty($this->_req_data['QSG_ID']) && ! is_array($this->_req_data['QSG_ID']) |
|
43 | + ? $this->_req_data['QSG_ID'] : 0; |
|
44 | + |
|
45 | + $new_page_routes = array( |
|
46 | + 'question_groups' => array( |
|
47 | + 'func' => '_question_groups_overview_list_table', |
|
48 | + 'capability' => 'ee_read_question_groups', |
|
49 | + ), |
|
50 | + 'add_question' => array( |
|
51 | + 'func' => '_edit_question', |
|
52 | + 'capability' => 'ee_edit_questions', |
|
53 | + ), |
|
54 | + 'insert_question' => array( |
|
55 | + 'func' => '_insert_or_update_question', |
|
56 | + 'args' => array('new_question' => true), |
|
57 | + 'capability' => 'ee_edit_questions', |
|
58 | + 'noheader' => true, |
|
59 | + ), |
|
60 | + 'duplicate_question' => array( |
|
61 | + 'func' => '_duplicate_question', |
|
62 | + 'capability' => 'ee_edit_questions', |
|
63 | + 'noheader' => true, |
|
64 | + ), |
|
65 | + 'trash_question' => array( |
|
66 | + 'func' => '_trash_question', |
|
67 | + 'capability' => 'ee_delete_question', |
|
68 | + 'obj_id' => $qst_id, |
|
69 | + 'noheader' => true, |
|
70 | + ), |
|
71 | + |
|
72 | + 'restore_question' => array( |
|
73 | + 'func' => '_trash_or_restore_questions', |
|
74 | + 'capability' => 'ee_delete_question', |
|
75 | + 'obj_id' => $qst_id, |
|
76 | + 'args' => array('trash' => false), |
|
77 | + 'noheader' => true, |
|
78 | + ), |
|
79 | + |
|
80 | + 'delete_question' => array( |
|
81 | + 'func' => '_delete_question', |
|
82 | + 'capability' => 'ee_delete_question', |
|
83 | + 'obj_id' => $qst_id, |
|
84 | + 'noheader' => true, |
|
85 | + ), |
|
86 | + |
|
87 | + 'trash_questions' => array( |
|
88 | + 'func' => '_trash_or_restore_questions', |
|
89 | + 'capability' => 'ee_delete_questions', |
|
90 | + 'args' => array('trash' => true), |
|
91 | + 'noheader' => true, |
|
92 | + ), |
|
93 | + |
|
94 | + 'restore_questions' => array( |
|
95 | + 'func' => '_trash_or_restore_questions', |
|
96 | + 'capability' => 'ee_delete_questions', |
|
97 | + 'args' => array('trash' => false), |
|
98 | + 'noheader' => true, |
|
99 | + ), |
|
100 | + |
|
101 | + 'delete_questions' => array( |
|
102 | + 'func' => '_delete_questions', |
|
103 | + 'args' => array(), |
|
104 | + 'capability' => 'ee_delete_questions', |
|
105 | + 'noheader' => true, |
|
106 | + ), |
|
107 | + |
|
108 | + 'add_question_group' => array( |
|
109 | + 'func' => '_edit_question_group', |
|
110 | + 'capability' => 'ee_edit_question_groups', |
|
111 | + ), |
|
112 | + |
|
113 | + 'edit_question_group' => array( |
|
114 | + 'func' => '_edit_question_group', |
|
115 | + 'capability' => 'ee_edit_question_group', |
|
116 | + 'obj_id' => $qsg_id, |
|
117 | + 'args' => array('edit'), |
|
118 | + ), |
|
119 | + |
|
120 | + 'delete_question_groups' => array( |
|
121 | + 'func' => '_delete_question_groups', |
|
122 | + 'capability' => 'ee_delete_question_groups', |
|
123 | + 'noheader' => true, |
|
124 | + ), |
|
125 | + |
|
126 | + 'delete_question_group' => array( |
|
127 | + 'func' => '_delete_question_groups', |
|
128 | + 'capability' => 'ee_delete_question_group', |
|
129 | + 'obj_id' => $qsg_id, |
|
130 | + 'noheader' => true, |
|
131 | + ), |
|
132 | + |
|
133 | + 'trash_question_group' => array( |
|
134 | + 'func' => '_trash_or_restore_question_groups', |
|
135 | + 'args' => array('trash' => true), |
|
136 | + 'capability' => 'ee_delete_question_group', |
|
137 | + 'obj_id' => $qsg_id, |
|
138 | + 'noheader' => true, |
|
139 | + ), |
|
140 | + |
|
141 | + 'restore_question_group' => array( |
|
142 | + 'func' => '_trash_or_restore_question_groups', |
|
143 | + 'args' => array('trash' => false), |
|
144 | + 'capability' => 'ee_delete_question_group', |
|
145 | + 'obj_id' => $qsg_id, |
|
146 | + 'noheader' => true, |
|
147 | + ), |
|
148 | + |
|
149 | + 'insert_question_group' => array( |
|
150 | + 'func' => '_insert_or_update_question_group', |
|
151 | + 'args' => array('new_question_group' => true), |
|
152 | + 'capability' => 'ee_edit_question_groups', |
|
153 | + 'noheader' => true, |
|
154 | + ), |
|
155 | + |
|
156 | + 'update_question_group' => array( |
|
157 | + 'func' => '_insert_or_update_question_group', |
|
158 | + 'args' => array('new_question_group' => false), |
|
159 | + 'capability' => 'ee_edit_question_group', |
|
160 | + 'obj_id' => $qsg_id, |
|
161 | + 'noheader' => true, |
|
162 | + ), |
|
163 | + |
|
164 | + 'trash_question_groups' => array( |
|
165 | + 'func' => '_trash_or_restore_question_groups', |
|
166 | + 'args' => array('trash' => true), |
|
167 | + 'capability' => 'ee_delete_question_groups', |
|
168 | + 'noheader' => array('trash' => false), |
|
169 | + ), |
|
170 | + |
|
171 | + 'restore_question_groups' => array( |
|
172 | + 'func' => '_trash_or_restore_question_groups', |
|
173 | + 'args' => array('trash' => false), |
|
174 | + 'capability' => 'ee_delete_question_groups', |
|
175 | + 'noheader' => true, |
|
176 | + ), |
|
177 | + |
|
178 | + |
|
179 | + 'espresso_update_question_group_order' => array( |
|
180 | + 'func' => 'update_question_group_order', |
|
181 | + 'capability' => 'ee_edit_question_groups', |
|
182 | + 'noheader' => true, |
|
183 | + ), |
|
184 | + |
|
185 | + 'view_reg_form_settings' => array( |
|
186 | + 'func' => '_reg_form_settings', |
|
187 | + 'capability' => 'manage_options', |
|
188 | + ), |
|
189 | + |
|
190 | + 'update_reg_form_settings' => array( |
|
191 | + 'func' => '_update_reg_form_settings', |
|
192 | + 'capability' => 'manage_options', |
|
193 | + 'noheader' => true, |
|
194 | + ), |
|
195 | + ); |
|
196 | + $this->_page_routes = array_merge($this->_page_routes, $new_page_routes); |
|
197 | + |
|
198 | + $new_page_config = array( |
|
199 | + |
|
200 | + 'question_groups' => array( |
|
201 | + 'nav' => array( |
|
202 | + 'label' => esc_html__('Question Groups', 'event_espresso'), |
|
203 | + 'icon' => 'dashicons-forms', |
|
204 | + 'order' => 20, |
|
205 | + ), |
|
206 | + 'list_table' => 'Registration_Form_Question_Groups_Admin_List_Table', |
|
207 | + 'help_tabs' => array( |
|
208 | + 'registration_form_question_groups_help_tab' => array( |
|
209 | + 'title' => esc_html__('Question Groups', 'event_espresso'), |
|
210 | + 'filename' => 'registration_form_question_groups', |
|
211 | + ), |
|
212 | + 'registration_form_question_groups_table_column_headings_help_tab' => array( |
|
213 | + 'title' => esc_html__('Question Groups Table Column Headings', 'event_espresso'), |
|
214 | + 'filename' => 'registration_form_question_groups_table_column_headings', |
|
215 | + ), |
|
216 | + 'registration_form_question_groups_views_bulk_actions_search_help_tab' => array( |
|
217 | + 'title' => esc_html__('Question Groups Views & Bulk Actions & Search', 'event_espresso'), |
|
218 | + 'filename' => 'registration_form_question_groups_views_bulk_actions_search', |
|
219 | + ), |
|
220 | + ), |
|
221 | + 'metaboxes' => $this->_default_espresso_metaboxes, |
|
222 | + 'require_nonce' => false, |
|
223 | + ), |
|
224 | + |
|
225 | + 'add_question' => array( |
|
226 | + 'nav' => array( |
|
227 | + 'label' => esc_html__('Add Question', 'event_espresso'), |
|
228 | + 'icon' => 'dashicons-plus-alt', |
|
229 | + 'order' => 15, |
|
230 | + 'persistent' => false, |
|
231 | + ), |
|
232 | + 'metaboxes' => array_merge($this->_default_espresso_metaboxes, array('_publish_post_box')), |
|
233 | + 'help_tabs' => array( |
|
234 | + 'registration_form_add_question_help_tab' => array( |
|
235 | + 'title' => esc_html__('Add Question', 'event_espresso'), |
|
236 | + 'filename' => 'registration_form_add_question', |
|
237 | + ), |
|
238 | + ), |
|
239 | + 'require_nonce' => false, |
|
240 | + ), |
|
241 | + |
|
242 | + 'add_question_group' => array( |
|
243 | + 'nav' => array( |
|
244 | + 'label' => esc_html__('Add Question Group', 'event_espresso'), |
|
245 | + 'icon' => 'dashicons-plus-alt', |
|
246 | + 'order' => 25, |
|
247 | + 'persistent' => false, |
|
248 | + ), |
|
249 | + 'metaboxes' => array_merge($this->_default_espresso_metaboxes, array('_publish_post_box')), |
|
250 | + 'help_tabs' => array( |
|
251 | + 'registration_form_add_question_group_help_tab' => array( |
|
252 | + 'title' => esc_html__('Add Question Group', 'event_espresso'), |
|
253 | + 'filename' => 'registration_form_add_question_group', |
|
254 | + ), |
|
255 | + ), |
|
256 | + 'require_nonce' => false, |
|
257 | + ), |
|
258 | + |
|
259 | + 'edit_question_group' => array( |
|
260 | + 'nav' => array( |
|
261 | + 'label' => esc_html__('Edit Question Group', 'event_espresso'), |
|
262 | + 'icon' => 'dashicons-edit-large', |
|
263 | + 'order' => 25, |
|
264 | + 'persistent' => false, |
|
265 | + 'url' => isset($this->_req_data['question_group_id']) ? add_query_arg( |
|
266 | + array('question_group_id' => $this->_req_data['question_group_id']), |
|
267 | + $this->_current_page_view_url |
|
268 | + ) : $this->_admin_base_url, |
|
269 | + ), |
|
270 | + 'metaboxes' => array_merge($this->_default_espresso_metaboxes, array('_publish_post_box')), |
|
271 | + 'help_tabs' => array( |
|
272 | + 'registration_form_edit_question_group_help_tab' => array( |
|
273 | + 'title' => esc_html__('Edit Question Group', 'event_espresso'), |
|
274 | + 'filename' => 'registration_form_edit_question_group', |
|
275 | + ), |
|
276 | + ), |
|
277 | + 'require_nonce' => false, |
|
278 | + ), |
|
279 | + |
|
280 | + 'view_reg_form_settings' => array( |
|
281 | + 'nav' => array( |
|
282 | + 'label' => esc_html__('Reg Form Settings', 'event_espresso'), |
|
283 | + 'icon' => 'dashicons-admin-generic', |
|
284 | + 'order' => 40, |
|
285 | + ), |
|
286 | + 'labels' => array( |
|
287 | + 'publishbox' => esc_html__('Update Settings', 'event_espresso'), |
|
288 | + ), |
|
289 | + 'metaboxes' => array_merge($this->_default_espresso_metaboxes, array('_publish_post_box')), |
|
290 | + 'help_tabs' => array( |
|
291 | + 'registration_form_reg_form_settings_help_tab' => array( |
|
292 | + 'title' => esc_html__('Registration Form Settings', 'event_espresso'), |
|
293 | + 'filename' => 'registration_form_reg_form_settings', |
|
294 | + ), |
|
295 | + ), |
|
296 | + 'require_nonce' => false, |
|
297 | + ), |
|
298 | + |
|
299 | + ); |
|
300 | + $this->_page_config = array_merge($this->_page_config, $new_page_config); |
|
301 | + |
|
302 | + // change the list table we're going to use so it's the NEW list table! |
|
303 | + $this->_page_config['default']['list_table'] = 'Extend_Registration_Form_Questions_Admin_List_Table'; |
|
304 | + |
|
305 | + |
|
306 | + // additional labels |
|
307 | + $new_labels = array( |
|
308 | + 'add_question' => esc_html__('Add New Question', 'event_espresso'), |
|
309 | + 'delete_question' => esc_html__('Delete Question', 'event_espresso'), |
|
310 | + 'add_question_group' => esc_html__('Add New Question Group', 'event_espresso'), |
|
311 | + 'edit_question_group' => esc_html__('Edit Question Group', 'event_espresso'), |
|
312 | + 'delete_question_group' => esc_html__('Delete Question Group', 'event_espresso'), |
|
313 | + ); |
|
314 | + $this->_labels['buttons'] = array_merge($this->_labels['buttons'], $new_labels); |
|
315 | + } |
|
316 | + |
|
317 | + |
|
318 | + /** |
|
319 | + * @return void |
|
320 | + */ |
|
321 | + protected function _ajax_hooks() |
|
322 | + { |
|
323 | + add_action('wp_ajax_espresso_update_question_group_order', array($this, 'update_question_group_order')); |
|
324 | + } |
|
325 | + |
|
326 | + |
|
327 | + /** |
|
328 | + * @return void |
|
329 | + */ |
|
330 | + public function load_scripts_styles_question_groups() |
|
331 | + { |
|
332 | + wp_enqueue_script('espresso_ajax_table_sorting'); |
|
333 | + } |
|
334 | + |
|
335 | + |
|
336 | + /** |
|
337 | + * @return void |
|
338 | + */ |
|
339 | + public function load_scripts_styles_add_question_group() |
|
340 | + { |
|
341 | + $this->load_scripts_styles_forms(); |
|
342 | + $this->load_sortable_question_script(); |
|
343 | + } |
|
344 | + |
|
345 | + |
|
346 | + /** |
|
347 | + * @return void |
|
348 | + */ |
|
349 | + public function load_scripts_styles_edit_question_group() |
|
350 | + { |
|
351 | + $this->load_scripts_styles_forms(); |
|
352 | + $this->load_sortable_question_script(); |
|
353 | + } |
|
354 | + |
|
355 | + |
|
356 | + /** |
|
357 | + * registers and enqueues script for questions |
|
358 | + * |
|
359 | + * @return void |
|
360 | + */ |
|
361 | + public function load_sortable_question_script() |
|
362 | + { |
|
363 | + wp_register_script( |
|
364 | + 'ee-question-sortable', |
|
365 | + REGISTRATION_FORM_CAF_ASSETS_URL . 'ee_question_order.js', |
|
366 | + array('jquery-ui-sortable'), |
|
367 | + EVENT_ESPRESSO_VERSION, |
|
368 | + true |
|
369 | + ); |
|
370 | + wp_enqueue_script('ee-question-sortable'); |
|
371 | + } |
|
372 | + |
|
373 | + |
|
374 | + /** |
|
375 | + * @return void |
|
376 | + */ |
|
377 | + protected function _set_list_table_views_default() |
|
378 | + { |
|
379 | + $this->_views = array( |
|
380 | + 'all' => array( |
|
381 | + 'slug' => 'all', |
|
382 | + 'label' => esc_html__('View All Questions', 'event_espresso'), |
|
383 | + 'count' => 0, |
|
384 | + 'bulk_action' => array( |
|
385 | + 'trash_questions' => esc_html__('Trash', 'event_espresso'), |
|
386 | + ), |
|
387 | + ), |
|
388 | + ); |
|
389 | + |
|
390 | + if ( |
|
391 | + EE_Registry::instance()->CAP->current_user_can( |
|
392 | + 'ee_delete_questions', |
|
393 | + 'espresso_registration_form_trash_questions' |
|
394 | + ) |
|
395 | + ) { |
|
396 | + $this->_views['trash'] = array( |
|
397 | + 'slug' => 'trash', |
|
398 | + 'label' => esc_html__('Trash', 'event_espresso'), |
|
399 | + 'count' => 0, |
|
400 | + 'bulk_action' => array( |
|
401 | + 'delete_questions' => esc_html__('Delete Permanently', 'event_espresso'), |
|
402 | + 'restore_questions' => esc_html__('Restore', 'event_espresso'), |
|
403 | + ), |
|
404 | + ); |
|
405 | + } |
|
406 | + } |
|
407 | + |
|
408 | + |
|
409 | + /** |
|
410 | + * @return void |
|
411 | + */ |
|
412 | + protected function _set_list_table_views_question_groups() |
|
413 | + { |
|
414 | + $this->_views = array( |
|
415 | + 'all' => array( |
|
416 | + 'slug' => 'all', |
|
417 | + 'label' => esc_html__('All', 'event_espresso'), |
|
418 | + 'count' => 0, |
|
419 | + 'bulk_action' => array( |
|
420 | + 'trash_question_groups' => esc_html__('Trash', 'event_espresso'), |
|
421 | + ), |
|
422 | + ), |
|
423 | + ); |
|
424 | + |
|
425 | + if ( |
|
426 | + EE_Registry::instance()->CAP->current_user_can( |
|
427 | + 'ee_delete_question_groups', |
|
428 | + 'espresso_registration_form_trash_question_groups' |
|
429 | + ) |
|
430 | + ) { |
|
431 | + $this->_views['trash'] = array( |
|
432 | + 'slug' => 'trash', |
|
433 | + 'label' => esc_html__('Trash', 'event_espresso'), |
|
434 | + 'count' => 0, |
|
435 | + 'bulk_action' => array( |
|
436 | + 'delete_question_groups' => esc_html__('Delete Permanently', 'event_espresso'), |
|
437 | + 'restore_question_groups' => esc_html__('Restore', 'event_espresso'), |
|
438 | + ), |
|
439 | + ); |
|
440 | + } |
|
441 | + } |
|
442 | + |
|
443 | + |
|
444 | + /** |
|
445 | + * @return void |
|
446 | + * @throws EE_Error |
|
447 | + * @throws InvalidArgumentException |
|
448 | + * @throws InvalidDataTypeException |
|
449 | + * @throws InvalidInterfaceException |
|
450 | + */ |
|
451 | + protected function _questions_overview_list_table() |
|
452 | + { |
|
453 | + $this->_admin_page_title .= ' ' . $this->get_action_link_or_button( |
|
454 | + 'add_question', |
|
455 | + 'add_question', |
|
456 | + array(), |
|
457 | + 'add-new-h2' |
|
458 | + ); |
|
459 | + parent::_questions_overview_list_table(); |
|
460 | + } |
|
461 | + |
|
462 | + |
|
463 | + /** |
|
464 | + * @return void |
|
465 | + * @throws DomainException |
|
466 | + * @throws EE_Error |
|
467 | + * @throws InvalidArgumentException |
|
468 | + * @throws InvalidDataTypeException |
|
469 | + * @throws InvalidInterfaceException |
|
470 | + */ |
|
471 | + protected function _question_groups_overview_list_table() |
|
472 | + { |
|
473 | + $this->_search_btn_label = esc_html__('Question Groups', 'event_espresso'); |
|
474 | + $this->_admin_page_title .= ' ' . $this->get_action_link_or_button( |
|
475 | + 'add_question_group', |
|
476 | + 'add_question_group', |
|
477 | + array(), |
|
478 | + 'add-new-h2' |
|
479 | + ); |
|
480 | + $this->display_admin_list_table_page_with_sidebar(); |
|
481 | + } |
|
482 | + |
|
483 | + |
|
484 | + /** |
|
485 | + * @return void |
|
486 | + * @throws EE_Error |
|
487 | + * @throws InvalidArgumentException |
|
488 | + * @throws InvalidDataTypeException |
|
489 | + * @throws InvalidInterfaceException |
|
490 | + */ |
|
491 | + protected function _delete_question() |
|
492 | + { |
|
493 | + $success = $this->_delete_items($this->_question_model); |
|
494 | + $this->_redirect_after_action( |
|
495 | + $success, |
|
496 | + $this->_question_model->item_name($success), |
|
497 | + 'deleted', |
|
498 | + array('action' => 'default', 'status' => 'all') |
|
499 | + ); |
|
500 | + } |
|
501 | + |
|
502 | + |
|
503 | + /** |
|
504 | + * @return void |
|
505 | + * @throws EE_Error |
|
506 | + * @throws InvalidArgumentException |
|
507 | + * @throws InvalidDataTypeException |
|
508 | + * @throws InvalidInterfaceException |
|
509 | + */ |
|
510 | + protected function _delete_questions() |
|
511 | + { |
|
512 | + $success = $this->_delete_items($this->_question_model); |
|
513 | + $this->_redirect_after_action( |
|
514 | + $success, |
|
515 | + $this->_question_model->item_name($success), |
|
516 | + 'deleted permanently', |
|
517 | + array('action' => 'default', 'status' => 'trash') |
|
518 | + ); |
|
519 | + } |
|
520 | + |
|
521 | + |
|
522 | + /** |
|
523 | + * Performs the deletion of a single or multiple questions or question groups. |
|
524 | + * |
|
525 | + * @param EEM_Soft_Delete_Base $model |
|
526 | + * @return int number of items deleted permanently |
|
527 | + * @throws EE_Error |
|
528 | + * @throws InvalidArgumentException |
|
529 | + * @throws InvalidDataTypeException |
|
530 | + * @throws InvalidInterfaceException |
|
531 | + */ |
|
532 | + private function _delete_items(EEM_Soft_Delete_Base $model) |
|
533 | + { |
|
534 | + $success = 0; |
|
535 | + do_action('AHEE_log', __FILE__, __FUNCTION__, ''); |
|
536 | + if (! empty($this->_req_data['checkbox']) && is_array($this->_req_data['checkbox'])) { |
|
537 | + // if array has more than one element than success message should be plural |
|
538 | + $success = count($this->_req_data['checkbox']) > 1 ? 2 : 1; |
|
539 | + // cycle thru bulk action checkboxes |
|
540 | + while (list($ID, $value) = each($this->_req_data['checkbox'])) { |
|
541 | + if (! $this->_delete_item($ID, $model)) { |
|
542 | + $success = 0; |
|
543 | + } |
|
544 | + } |
|
545 | + } elseif (! empty($this->_req_data['QSG_ID'])) { |
|
546 | + $success = $this->_delete_item($this->_req_data['QSG_ID'], $model); |
|
547 | + } elseif (! empty($this->_req_data['QST_ID'])) { |
|
548 | + $success = $this->_delete_item($this->_req_data['QST_ID'], $model); |
|
549 | + } else { |
|
550 | + EE_Error::add_error( |
|
551 | + sprintf( |
|
552 | + esc_html__( |
|
553 | + "No Questions or Question Groups were selected for deleting. This error usually shows when you've attempted to delete via bulk action but there were no selections.", |
|
554 | + "event_espresso" |
|
555 | + ) |
|
556 | + ), |
|
557 | + __FILE__, |
|
558 | + __FUNCTION__, |
|
559 | + __LINE__ |
|
560 | + ); |
|
561 | + } |
|
562 | + return $success; |
|
563 | + } |
|
564 | + |
|
565 | + |
|
566 | + /** |
|
567 | + * Deletes the specified question (and its associated question options) or question group |
|
568 | + * |
|
569 | + * @param int $id |
|
570 | + * @param EEM_Soft_Delete_Base $model |
|
571 | + * @return boolean |
|
572 | + * @throws EE_Error |
|
573 | + * @throws InvalidArgumentException |
|
574 | + * @throws InvalidDataTypeException |
|
575 | + * @throws InvalidInterfaceException |
|
576 | + */ |
|
577 | + protected function _delete_item($id, $model) |
|
578 | + { |
|
579 | + if ($model instanceof EEM_Question) { |
|
580 | + EEM_Question_Option::instance()->delete_permanently(array(array('QST_ID' => absint($id)))); |
|
581 | + } |
|
582 | + return $model->delete_permanently_by_ID(absint($id)); |
|
583 | + } |
|
584 | + |
|
585 | + |
|
586 | + /****************************** QUESTION GROUPS ******************************/ |
|
587 | + |
|
588 | + |
|
589 | + /** |
|
590 | + * @param string $type |
|
591 | + * @return void |
|
592 | + * @throws DomainException |
|
593 | + * @throws EE_Error |
|
594 | + * @throws InvalidArgumentException |
|
595 | + * @throws InvalidDataTypeException |
|
596 | + * @throws InvalidInterfaceException |
|
597 | + */ |
|
598 | + protected function _edit_question_group($type = 'add') |
|
599 | + { |
|
600 | + do_action('AHEE_log', __FILE__, __FUNCTION__, ''); |
|
601 | + $ID = isset($this->_req_data['QSG_ID']) && ! empty($this->_req_data['QSG_ID']) |
|
602 | + ? absint($this->_req_data['QSG_ID']) |
|
603 | + : false; |
|
604 | + |
|
605 | + switch ($this->_req_action) { |
|
606 | + case 'add_question_group': |
|
607 | + $this->_admin_page_title = esc_html__('Add Question Group', 'event_espresso'); |
|
608 | + break; |
|
609 | + case 'edit_question_group': |
|
610 | + $this->_admin_page_title = esc_html__('Edit Question Group', 'event_espresso'); |
|
611 | + break; |
|
612 | + default: |
|
613 | + $this->_admin_page_title = ucwords(str_replace('_', ' ', $this->_req_action)); |
|
614 | + } |
|
615 | + // add ID to title if editing |
|
616 | + $this->_admin_page_title = $ID ? $this->_admin_page_title . ' # ' . $ID : $this->_admin_page_title; |
|
617 | + if ($ID) { |
|
618 | + /** @var EE_Question_Group $questionGroup */ |
|
619 | + $questionGroup = $this->_question_group_model->get_one_by_ID($ID); |
|
620 | + $additional_hidden_fields = array('QSG_ID' => array('type' => 'hidden', 'value' => $ID)); |
|
621 | + $this->_set_add_edit_form_tags('update_question_group', $additional_hidden_fields); |
|
622 | + } else { |
|
623 | + /** @var EE_Question_Group $questionGroup */ |
|
624 | + $questionGroup = EEM_Question_Group::instance()->create_default_object(); |
|
625 | + $questionGroup->set_order_to_latest(); |
|
626 | + $this->_set_add_edit_form_tags('insert_question_group'); |
|
627 | + } |
|
628 | + $this->_template_args['values'] = $this->_yes_no_values; |
|
629 | + $this->_template_args['all_questions'] = $questionGroup->questions_in_and_not_in_group(); |
|
630 | + $this->_template_args['QSG_ID'] = $ID ? $ID : true; |
|
631 | + $this->_template_args['question_group'] = $questionGroup; |
|
632 | + |
|
633 | + $redirect_URL = add_query_arg(array('action' => 'question_groups'), $this->_admin_base_url); |
|
634 | + $this->_set_publish_post_box_vars('id', $ID, false, $redirect_URL); |
|
635 | + $this->_template_args['admin_page_content'] = EEH_Template::display_template( |
|
636 | + REGISTRATION_FORM_CAF_TEMPLATE_PATH . 'question_groups_main_meta_box.template.php', |
|
637 | + $this->_template_args, |
|
638 | + true |
|
639 | + ); |
|
640 | + |
|
641 | + // the details template wrapper |
|
642 | + $this->display_admin_page_with_sidebar(); |
|
643 | + } |
|
644 | + |
|
645 | + |
|
646 | + /** |
|
647 | + * @return void |
|
648 | + * @throws EE_Error |
|
649 | + * @throws InvalidArgumentException |
|
650 | + * @throws InvalidDataTypeException |
|
651 | + * @throws InvalidInterfaceException |
|
652 | + */ |
|
653 | + protected function _delete_question_groups() |
|
654 | + { |
|
655 | + $success = $this->_delete_items($this->_question_group_model); |
|
656 | + $this->_redirect_after_action( |
|
657 | + $success, |
|
658 | + $this->_question_group_model->item_name($success), |
|
659 | + 'deleted permanently', |
|
660 | + array('action' => 'question_groups', 'status' => 'trash') |
|
661 | + ); |
|
662 | + } |
|
663 | + |
|
664 | + |
|
665 | + /** |
|
666 | + * @param bool $new_question_group |
|
667 | + * @throws EE_Error |
|
668 | + * @throws InvalidArgumentException |
|
669 | + * @throws InvalidDataTypeException |
|
670 | + * @throws InvalidInterfaceException |
|
671 | + */ |
|
672 | + protected function _insert_or_update_question_group($new_question_group = true) |
|
673 | + { |
|
674 | + do_action('AHEE_log', __FILE__, __FUNCTION__, ''); |
|
675 | + $set_column_values = $this->_set_column_values_for($this->_question_group_model); |
|
676 | + |
|
677 | + // make sure identifier is unique |
|
678 | + $identifier_value = isset($set_column_values['QSG_identifier']) ? $set_column_values['QSG_identifier'] : ''; |
|
679 | + $where_values = ['QSG_identifier' => $set_column_values['QSG_identifier']]; |
|
680 | + if (! $new_question_group && isset($set_column_values['QSG_ID'])) { |
|
681 | + $where_values['QSG_ID'] = ['!=', $set_column_values['QSG_ID']]; |
|
682 | + } |
|
683 | + $identifier_exists = ! empty($identifier_value) |
|
684 | + ? $this->_question_group_model->count([$where_values]) > 0 |
|
685 | + : false; |
|
686 | + if ($identifier_exists) { |
|
687 | + $set_column_values['QSG_identifier'] .= uniqid('id', true); |
|
688 | + } |
|
689 | + |
|
690 | + if ($new_question_group) { |
|
691 | + $QSG_ID = $this->_question_group_model->insert($set_column_values); |
|
692 | + $success = $QSG_ID ? 1 : 0; |
|
693 | + if ($success === 0) { |
|
694 | + EE_Error::add_error( |
|
695 | + esc_html__('Something went wrong saving the question group.', 'event_espresso'), |
|
696 | + __FILE__, |
|
697 | + __FUNCTION__, |
|
698 | + __LINE__ |
|
699 | + ); |
|
700 | + $this->_redirect_after_action( |
|
701 | + false, |
|
702 | + '', |
|
703 | + '', |
|
704 | + array('action' => 'edit_question_group', 'QSG_ID' => $QSG_ID), |
|
705 | + true |
|
706 | + ); |
|
707 | + } |
|
708 | + } else { |
|
709 | + $QSG_ID = absint($this->_req_data['QSG_ID']); |
|
710 | + unset($set_column_values['QSG_ID']); |
|
711 | + $success = $this->_question_group_model->update($set_column_values, array(array('QSG_ID' => $QSG_ID))); |
|
712 | + } |
|
713 | + |
|
714 | + $phone_question_id = EEM_Question::instance()->get_Question_ID_from_system_string( |
|
715 | + EEM_Attendee::system_question_phone |
|
716 | + ); |
|
717 | + // update the existing related questions |
|
718 | + // BUT FIRST... delete the phone question from the Question_Group_Question |
|
719 | + // if it is being added to this question group (therefore removed from the existing group) |
|
720 | + if (isset($this->_req_data['questions'], $this->_req_data['questions'][ $phone_question_id ])) { |
|
721 | + // delete where QST ID = system phone question ID and Question Group ID is NOT this group |
|
722 | + EEM_Question_Group_Question::instance()->delete( |
|
723 | + array( |
|
724 | + array( |
|
725 | + 'QST_ID' => $phone_question_id, |
|
726 | + 'QSG_ID' => array('!=', $QSG_ID), |
|
727 | + ), |
|
728 | + ) |
|
729 | + ); |
|
730 | + } |
|
731 | + /** @type EE_Question_Group $question_group */ |
|
732 | + $question_group = $this->_question_group_model->get_one_by_ID($QSG_ID); |
|
733 | + $questions = $question_group->questions(); |
|
734 | + // make sure system phone question is added to list of questions for this group |
|
735 | + if (! isset($questions[ $phone_question_id ])) { |
|
736 | + $questions[ $phone_question_id ] = EEM_Question::instance()->get_one_by_ID($phone_question_id); |
|
737 | + } |
|
738 | + |
|
739 | + foreach ($questions as $question_ID => $question) { |
|
740 | + // first we always check for order. |
|
741 | + if (! empty($this->_req_data['question_orders'][ $question_ID ])) { |
|
742 | + // update question order |
|
743 | + $question_group->update_question_order( |
|
744 | + $question_ID, |
|
745 | + $this->_req_data['question_orders'][ $question_ID ] |
|
746 | + ); |
|
747 | + } |
|
748 | + |
|
749 | + // then we always check if adding or removing. |
|
750 | + if (isset($this->_req_data['questions'], $this->_req_data['questions'][ $question_ID ])) { |
|
751 | + $question_group->add_question($question_ID); |
|
752 | + } else { |
|
753 | + // not found, remove it (but only if not a system question for the personal group |
|
754 | + // with the exception of lname system question - we allow removal of it) |
|
755 | + if ( |
|
756 | + in_array( |
|
757 | + $question->system_ID(), |
|
758 | + EEM_Question::instance()->required_system_questions_in_system_question_group( |
|
759 | + $question_group->system_group() |
|
760 | + ) |
|
761 | + ) |
|
762 | + ) { |
|
763 | + continue; |
|
764 | + } else { |
|
765 | + $question_group->remove_question($question_ID); |
|
766 | + } |
|
767 | + } |
|
768 | + } |
|
769 | + // save new related questions |
|
770 | + if (isset($this->_req_data['questions'])) { |
|
771 | + foreach ($this->_req_data['questions'] as $QST_ID) { |
|
772 | + $question_group->add_question($QST_ID); |
|
773 | + if (isset($this->_req_data['question_orders'][ $QST_ID ])) { |
|
774 | + $question_group->update_question_order($QST_ID, $this->_req_data['question_orders'][ $QST_ID ]); |
|
775 | + } |
|
776 | + } |
|
777 | + } |
|
778 | + |
|
779 | + if ($success !== false) { |
|
780 | + $msg = $new_question_group |
|
781 | + ? sprintf( |
|
782 | + esc_html__('The %s has been created', 'event_espresso'), |
|
783 | + $this->_question_group_model->item_name() |
|
784 | + ) |
|
785 | + : sprintf( |
|
786 | + esc_html__( |
|
787 | + 'The %s has been updated', |
|
788 | + 'event_espresso' |
|
789 | + ), |
|
790 | + $this->_question_group_model->item_name() |
|
791 | + ); |
|
792 | + EE_Error::add_success($msg); |
|
793 | + } |
|
794 | + $this->_redirect_after_action( |
|
795 | + false, |
|
796 | + '', |
|
797 | + '', |
|
798 | + array('action' => 'edit_question_group', 'QSG_ID' => $QSG_ID), |
|
799 | + true |
|
800 | + ); |
|
801 | + } |
|
802 | + |
|
803 | + |
|
804 | + /** |
|
805 | + * duplicates a question and all its question options and redirects to the new question. |
|
806 | + * |
|
807 | + * @return void |
|
808 | + * @throws EE_Error |
|
809 | + * @throws InvalidArgumentException |
|
810 | + * @throws ReflectionException |
|
811 | + * @throws InvalidDataTypeException |
|
812 | + * @throws InvalidInterfaceException |
|
813 | + */ |
|
814 | + public function _duplicate_question() |
|
815 | + { |
|
816 | + $question_ID = (int) $this->_req_data['QST_ID']; |
|
817 | + $question = EEM_Question::instance()->get_one_by_ID($question_ID); |
|
818 | + if ($question instanceof EE_Question) { |
|
819 | + $new_question = $question->duplicate(); |
|
820 | + if ($new_question instanceof EE_Question) { |
|
821 | + $this->_redirect_after_action( |
|
822 | + true, |
|
823 | + esc_html__('Question', 'event_espresso'), |
|
824 | + esc_html__('Duplicated', 'event_espresso'), |
|
825 | + array('action' => 'edit_question', 'QST_ID' => $new_question->ID()), |
|
826 | + true |
|
827 | + ); |
|
828 | + } else { |
|
829 | + global $wpdb; |
|
830 | + EE_Error::add_error( |
|
831 | + sprintf( |
|
832 | + esc_html__( |
|
833 | + 'Could not duplicate question with ID %1$d because: %2$s', |
|
834 | + 'event_espresso' |
|
835 | + ), |
|
836 | + $question_ID, |
|
837 | + $wpdb->last_error |
|
838 | + ), |
|
839 | + __FILE__, |
|
840 | + __FUNCTION__, |
|
841 | + __LINE__ |
|
842 | + ); |
|
843 | + $this->_redirect_after_action(false, '', '', array('action' => 'default'), false); |
|
844 | + } |
|
845 | + } else { |
|
846 | + EE_Error::add_error( |
|
847 | + sprintf( |
|
848 | + esc_html__( |
|
849 | + 'Could not duplicate question with ID %d because it didn\'t exist!', |
|
850 | + 'event_espresso' |
|
851 | + ), |
|
852 | + $question_ID |
|
853 | + ), |
|
854 | + __FILE__, |
|
855 | + __FUNCTION__, |
|
856 | + __LINE__ |
|
857 | + ); |
|
858 | + $this->_redirect_after_action(false, '', '', array('action' => 'default'), false); |
|
859 | + } |
|
860 | + } |
|
861 | + |
|
862 | + |
|
863 | + /** |
|
864 | + * @param bool $trash |
|
865 | + * @throws EE_Error |
|
866 | + */ |
|
867 | + protected function _trash_or_restore_question_groups($trash = true) |
|
868 | + { |
|
869 | + $this->_trash_or_restore_items($this->_question_group_model, $trash); |
|
870 | + } |
|
871 | + |
|
872 | + |
|
873 | + /** |
|
874 | + *_trash_question |
|
875 | + * |
|
876 | + * @return void |
|
877 | + * @throws EE_Error |
|
878 | + */ |
|
879 | + protected function _trash_question() |
|
880 | + { |
|
881 | + $success = $this->_question_model->delete_by_ID((int) $this->_req_data['QST_ID']); |
|
882 | + $query_args = array('action' => 'default', 'status' => 'all'); |
|
883 | + $this->_redirect_after_action($success, $this->_question_model->item_name($success), 'trashed', $query_args); |
|
884 | + } |
|
885 | + |
|
886 | + |
|
887 | + /** |
|
888 | + * @param bool $trash |
|
889 | + * @throws EE_Error |
|
890 | + */ |
|
891 | + protected function _trash_or_restore_questions($trash = true) |
|
892 | + { |
|
893 | + $this->_trash_or_restore_items($this->_question_model, $trash); |
|
894 | + } |
|
895 | + |
|
896 | + |
|
897 | + /** |
|
898 | + * Internally used to delete or restore items, using the request data. Meant to be |
|
899 | + * flexible between question or question groups |
|
900 | + * |
|
901 | + * @param EEM_Soft_Delete_Base $model |
|
902 | + * @param boolean $trash whether to trash or restore |
|
903 | + * @throws EE_Error |
|
904 | + */ |
|
905 | + private function _trash_or_restore_items(EEM_Soft_Delete_Base $model, $trash = true) |
|
906 | + { |
|
907 | + |
|
908 | + do_action('AHEE_log', __FILE__, __FUNCTION__, ''); |
|
909 | + |
|
910 | + $success = 1; |
|
911 | + // Checkboxes |
|
912 | + // echo "trash $trash"; |
|
913 | + // var_dump($this->_req_data['checkbox']);die; |
|
914 | + if (isset($this->_req_data['checkbox'])) { |
|
915 | + if (! empty($this->_req_data['checkbox']) && is_array($this->_req_data['checkbox'])) { |
|
916 | + // if array has more than one element than success message should be plural |
|
917 | + $success = count($this->_req_data['checkbox']) > 1 ? 2 : 1; |
|
918 | + // cycle thru bulk action checkboxes |
|
919 | + while (list($ID, $value) = each($this->_req_data['checkbox'])) { |
|
920 | + if (! $model->delete_or_restore_by_ID($trash, absint($ID))) { |
|
921 | + $success = 0; |
|
922 | + } |
|
923 | + } |
|
924 | + } else { |
|
925 | + // grab single id and delete |
|
926 | + $ID = absint($this->_req_data['checkbox']); |
|
927 | + if (! $model->delete_or_restore_by_ID($trash, $ID)) { |
|
928 | + $success = 0; |
|
929 | + } |
|
930 | + } |
|
931 | + } else { |
|
932 | + // delete via trash link |
|
933 | + // grab single id and delete |
|
934 | + $ID = absint($this->_req_data[ $model->primary_key_name() ]); |
|
935 | + if (! $model->delete_or_restore_by_ID($trash, $ID)) { |
|
936 | + $success = 0; |
|
937 | + } |
|
938 | + } |
|
939 | + |
|
940 | + |
|
941 | + $action = $model instanceof EEM_Question ? 'default' : 'question_groups';// strtolower( $model->item_name(2) ); |
|
942 | + // echo "action :$action"; |
|
943 | + // $action = 'questions' ? 'default' : $action; |
|
944 | + if ($trash) { |
|
945 | + $action_desc = 'trashed'; |
|
946 | + $status = 'trash'; |
|
947 | + } else { |
|
948 | + $action_desc = 'restored'; |
|
949 | + $status = 'all'; |
|
950 | + } |
|
951 | + $this->_redirect_after_action( |
|
952 | + $success, |
|
953 | + $model->item_name($success), |
|
954 | + $action_desc, |
|
955 | + array('action' => $action, 'status' => $status) |
|
956 | + ); |
|
957 | + } |
|
958 | + |
|
959 | + |
|
960 | + /** |
|
961 | + * @param $per_page |
|
962 | + * @param int $current_page |
|
963 | + * @param bool|false $count |
|
964 | + * @return EE_Soft_Delete_Base_Class[]|int |
|
965 | + * @throws EE_Error |
|
966 | + * @throws InvalidArgumentException |
|
967 | + * @throws InvalidDataTypeException |
|
968 | + * @throws InvalidInterfaceException |
|
969 | + */ |
|
970 | + public function get_trashed_questions($per_page, $current_page = 1, $count = false) |
|
971 | + { |
|
972 | + $query_params = $this->get_query_params(EEM_Question::instance(), $per_page, $current_page); |
|
973 | + |
|
974 | + if ($count) { |
|
975 | + // note: this a subclass of EEM_Soft_Delete_Base, so this is actually only getting non-trashed items |
|
976 | + $where = isset($query_params[0]) ? array($query_params[0]) : array(); |
|
977 | + $results = $this->_question_model->count_deleted($where); |
|
978 | + } else { |
|
979 | + // note: this a subclass of EEM_Soft_Delete_Base, so this is actually only getting non-trashed items |
|
980 | + $results = $this->_question_model->get_all_deleted($query_params); |
|
981 | + } |
|
982 | + return $results; |
|
983 | + } |
|
984 | + |
|
985 | + |
|
986 | + /** |
|
987 | + * @param $per_page |
|
988 | + * @param int $current_page |
|
989 | + * @param bool|false $count |
|
990 | + * @return EE_Soft_Delete_Base_Class[]|int |
|
991 | + * @throws EE_Error |
|
992 | + * @throws InvalidArgumentException |
|
993 | + * @throws InvalidDataTypeException |
|
994 | + * @throws InvalidInterfaceException |
|
995 | + */ |
|
996 | + public function get_question_groups($per_page, $current_page = 1, $count = false) |
|
997 | + { |
|
998 | + $questionGroupModel = EEM_Question_Group::instance(); |
|
999 | + $query_params = $this->get_query_params($questionGroupModel, $per_page, $current_page); |
|
1000 | + if ($count) { |
|
1001 | + $where = isset($query_params[0]) ? array($query_params[0]) : array(); |
|
1002 | + $results = $questionGroupModel->count($where); |
|
1003 | + } else { |
|
1004 | + $results = $questionGroupModel->get_all($query_params); |
|
1005 | + } |
|
1006 | + return $results; |
|
1007 | + } |
|
1008 | + |
|
1009 | + |
|
1010 | + /** |
|
1011 | + * @param $per_page |
|
1012 | + * @param int $current_page |
|
1013 | + * @param bool $count |
|
1014 | + * @return EE_Soft_Delete_Base_Class[]|int |
|
1015 | + * @throws EE_Error |
|
1016 | + * @throws InvalidArgumentException |
|
1017 | + * @throws InvalidDataTypeException |
|
1018 | + * @throws InvalidInterfaceException |
|
1019 | + */ |
|
1020 | + public function get_trashed_question_groups($per_page, $current_page = 1, $count = false) |
|
1021 | + { |
|
1022 | + $questionGroupModel = EEM_Question_Group::instance(); |
|
1023 | + $query_params = $this->get_query_params($questionGroupModel, $per_page, $current_page); |
|
1024 | + if ($count) { |
|
1025 | + $where = isset($query_params[0]) ? array($query_params[0]) : array(); |
|
1026 | + $query_params['limit'] = null; |
|
1027 | + $results = $questionGroupModel->count_deleted($where); |
|
1028 | + } else { |
|
1029 | + $results = $questionGroupModel->get_all_deleted($query_params); |
|
1030 | + } |
|
1031 | + return $results; |
|
1032 | + } |
|
1033 | + |
|
1034 | + |
|
1035 | + /** |
|
1036 | + * method for performing updates to question order |
|
1037 | + * |
|
1038 | + * @return void results array |
|
1039 | + * @throws EE_Error |
|
1040 | + * @throws InvalidArgumentException |
|
1041 | + * @throws InvalidDataTypeException |
|
1042 | + * @throws InvalidInterfaceException |
|
1043 | + */ |
|
1044 | + public function update_question_group_order() |
|
1045 | + { |
|
1046 | + |
|
1047 | + $success = esc_html__('Question group order was updated successfully.', 'event_espresso'); |
|
1048 | + |
|
1049 | + // grab our row IDs |
|
1050 | + $row_ids = isset($this->_req_data['row_ids']) && ! empty($this->_req_data['row_ids']) |
|
1051 | + ? explode(',', rtrim($this->_req_data['row_ids'], ',')) |
|
1052 | + : array(); |
|
1053 | + |
|
1054 | + $perpage = ! empty($this->_req_data['perpage']) |
|
1055 | + ? (int) $this->_req_data['perpage'] |
|
1056 | + : null; |
|
1057 | + $curpage = ! empty($this->_req_data['curpage']) |
|
1058 | + ? (int) $this->_req_data['curpage'] |
|
1059 | + : null; |
|
1060 | + |
|
1061 | + if (! empty($row_ids)) { |
|
1062 | + // figure out where we start the row_id count at for the current page. |
|
1063 | + $qsgcount = empty($curpage) ? 0 : ($curpage - 1) * $perpage; |
|
1064 | + |
|
1065 | + $row_count = count($row_ids); |
|
1066 | + for ($i = 0; $i < $row_count; $i++) { |
|
1067 | + // Update the questions when re-ordering |
|
1068 | + $updated = EEM_Question_Group::instance()->update( |
|
1069 | + array('QSG_order' => $qsgcount), |
|
1070 | + array(array('QSG_ID' => $row_ids[ $i ])) |
|
1071 | + ); |
|
1072 | + if ($updated === false) { |
|
1073 | + $success = false; |
|
1074 | + } |
|
1075 | + $qsgcount++; |
|
1076 | + } |
|
1077 | + } else { |
|
1078 | + $success = false; |
|
1079 | + } |
|
1080 | + |
|
1081 | + $errors = ! $success |
|
1082 | + ? esc_html__('An error occurred. The question group order was not updated.', 'event_espresso') |
|
1083 | + : false; |
|
1084 | + |
|
1085 | + echo wp_json_encode(array('return_data' => false, 'success' => $success, 'errors' => $errors)); |
|
1086 | + die(); |
|
1087 | + } |
|
1088 | + |
|
1089 | + |
|
1090 | + |
|
1091 | + /*************************************** REGISTRATION SETTINGS ***************************************/ |
|
1092 | + |
|
1093 | + |
|
1094 | + /** |
|
1095 | + * @throws DomainException |
|
1096 | + * @throws EE_Error |
|
1097 | + * @throws InvalidArgumentException |
|
1098 | + * @throws InvalidDataTypeException |
|
1099 | + * @throws InvalidInterfaceException |
|
1100 | + */ |
|
1101 | + protected function _reg_form_settings() |
|
1102 | + { |
|
1103 | + $this->_template_args['values'] = $this->_yes_no_values; |
|
1104 | + add_action( |
|
1105 | + 'AHEE__Extend_Registration_Form_Admin_Page___reg_form_settings_template', |
|
1106 | + array($this, 'email_validation_settings_form'), |
|
1107 | + 2 |
|
1108 | + ); |
|
1109 | + add_action( |
|
1110 | + 'AHEE__Extend_Registration_Form_Admin_Page___reg_form_settings_template', |
|
1111 | + array($this, 'copy_attendee_info_settings_form'), |
|
1112 | + 4 |
|
1113 | + ); |
|
1114 | + add_action( |
|
1115 | + 'AHEE__Extend_Registration_Form_Admin_Page___reg_form_settings_template', |
|
1116 | + array($this, 'setSessionLifespan'), |
|
1117 | + 4.9 |
|
1118 | + ); |
|
1119 | + $this->_template_args = (array) apply_filters( |
|
1120 | + 'FHEE__Extend_Registration_Form_Admin_Page___reg_form_settings___template_args', |
|
1121 | + $this->_template_args |
|
1122 | + ); |
|
1123 | + $this->_set_add_edit_form_tags('update_reg_form_settings'); |
|
1124 | + $this->_set_publish_post_box_vars(null, false, false, null, false); |
|
1125 | + $this->_template_args['admin_page_content'] = EEH_Template::display_template( |
|
1126 | + REGISTRATION_FORM_CAF_TEMPLATE_PATH . 'reg_form_settings.template.php', |
|
1127 | + $this->_template_args, |
|
1128 | + true |
|
1129 | + ); |
|
1130 | + $this->display_admin_page_with_sidebar(); |
|
1131 | + } |
|
1132 | + |
|
1133 | + |
|
1134 | + /** |
|
1135 | + * @return void |
|
1136 | + * @throws EE_Error |
|
1137 | + * @throws InvalidArgumentException |
|
1138 | + * @throws ReflectionException |
|
1139 | + * @throws InvalidDataTypeException |
|
1140 | + * @throws InvalidInterfaceException |
|
1141 | + */ |
|
1142 | + protected function _update_reg_form_settings() |
|
1143 | + { |
|
1144 | + EE_Registry::instance()->CFG->registration = $this->update_email_validation_settings_form( |
|
1145 | + EE_Registry::instance()->CFG->registration |
|
1146 | + ); |
|
1147 | + EE_Registry::instance()->CFG->registration = $this->update_copy_attendee_info_settings_form( |
|
1148 | + EE_Registry::instance()->CFG->registration |
|
1149 | + ); |
|
1150 | + $this->updateSessionLifespan(); |
|
1151 | + EE_Registry::instance()->CFG->registration = apply_filters( |
|
1152 | + 'FHEE__Extend_Registration_Form_Admin_Page___update_reg_form_settings__CFG_registration', |
|
1153 | + EE_Registry::instance()->CFG->registration |
|
1154 | + ); |
|
1155 | + $success = $this->_update_espresso_configuration( |
|
1156 | + esc_html__('Registration Form Options', 'event_espresso'), |
|
1157 | + EE_Registry::instance()->CFG, |
|
1158 | + __FILE__, |
|
1159 | + __FUNCTION__, |
|
1160 | + __LINE__ |
|
1161 | + ); |
|
1162 | + $this->_redirect_after_action( |
|
1163 | + $success, |
|
1164 | + esc_html__('Registration Form Options', 'event_espresso'), |
|
1165 | + 'updated', |
|
1166 | + array('action' => 'view_reg_form_settings') |
|
1167 | + ); |
|
1168 | + } |
|
1169 | + |
|
1170 | + |
|
1171 | + /** |
|
1172 | + * @return void |
|
1173 | + * @throws EE_Error |
|
1174 | + * @throws InvalidArgumentException |
|
1175 | + * @throws InvalidDataTypeException |
|
1176 | + * @throws InvalidInterfaceException |
|
1177 | + */ |
|
1178 | + public function copy_attendee_info_settings_form() |
|
1179 | + { |
|
1180 | + echo wp_kses($this->_copy_attendee_info_settings_form()->get_html(), AllowedTags::getWithFormTags()); |
|
1181 | + } |
|
1182 | + |
|
1183 | + /** |
|
1184 | + * _copy_attendee_info_settings_form |
|
1185 | + * |
|
1186 | + * @access protected |
|
1187 | + * @return EE_Form_Section_Proper |
|
1188 | + * @throws \EE_Error |
|
1189 | + */ |
|
1190 | + protected function _copy_attendee_info_settings_form() |
|
1191 | + { |
|
1192 | + return new EE_Form_Section_Proper( |
|
1193 | + array( |
|
1194 | + 'name' => 'copy_attendee_info_settings', |
|
1195 | + 'html_id' => 'copy_attendee_info_settings', |
|
1196 | + 'layout_strategy' => new EE_Admin_Two_Column_Layout(), |
|
1197 | + 'subsections' => apply_filters( |
|
1198 | + 'FHEE__Extend_Registration_Form_Admin_Page___copy_attendee_info_settings_form__form_subsections', |
|
1199 | + array( |
|
1200 | + 'copy_attendee_info_hdr' => new EE_Form_Section_HTML( |
|
1201 | + EEH_HTML::h2(esc_html__('Copy Attendee Info Settings', 'event_espresso')) |
|
1202 | + ), |
|
1203 | + 'copy_attendee_info' => new EE_Yes_No_Input( |
|
1204 | + array( |
|
1205 | + 'html_label_text' => esc_html__( |
|
1206 | + 'Allow copy #1 attendee info to extra attendees?', |
|
1207 | + 'event_espresso' |
|
1208 | + ), |
|
1209 | + 'html_help_text' => esc_html__( |
|
1210 | + 'Set to yes if you want to enable the copy of #1 attendee info to extra attendees at Registration Form.', |
|
1211 | + 'event_espresso' |
|
1212 | + ), |
|
1213 | + 'default' => EE_Registry::instance()->CFG->registration->copyAttendeeInfo(), |
|
1214 | + 'required' => false, |
|
1215 | + 'display_html_label_text' => false, |
|
1216 | + ) |
|
1217 | + ), |
|
1218 | + ) |
|
1219 | + ), |
|
1220 | + ) |
|
1221 | + ); |
|
1222 | + } |
|
1223 | + |
|
1224 | + /** |
|
1225 | + * @param EE_Registration_Config $EE_Registration_Config |
|
1226 | + * @return EE_Registration_Config |
|
1227 | + * @throws EE_Error |
|
1228 | + * @throws InvalidArgumentException |
|
1229 | + * @throws ReflectionException |
|
1230 | + * @throws InvalidDataTypeException |
|
1231 | + * @throws InvalidInterfaceException |
|
1232 | + */ |
|
1233 | + public function update_copy_attendee_info_settings_form(EE_Registration_Config $EE_Registration_Config) |
|
1234 | + { |
|
1235 | + $prev_copy_attendee_info = $EE_Registration_Config->copyAttendeeInfo(); |
|
1236 | + try { |
|
1237 | + $copy_attendee_info_settings_form = $this->_copy_attendee_info_settings_form(); |
|
1238 | + // if not displaying a form, then check for form submission |
|
1239 | + if ($copy_attendee_info_settings_form->was_submitted()) { |
|
1240 | + // capture form data |
|
1241 | + $copy_attendee_info_settings_form->receive_form_submission(); |
|
1242 | + // validate form data |
|
1243 | + if ($copy_attendee_info_settings_form->is_valid()) { |
|
1244 | + // grab validated data from form |
|
1245 | + $valid_data = $copy_attendee_info_settings_form->valid_data(); |
|
1246 | + if (isset($valid_data['copy_attendee_info'])) { |
|
1247 | + $EE_Registration_Config->setCopyAttendeeInfo($valid_data['copy_attendee_info']); |
|
1248 | + } else { |
|
1249 | + EE_Error::add_error( |
|
1250 | + esc_html__( |
|
1251 | + 'Invalid or missing Copy Attendee Info settings. Please refresh the form and try again.', |
|
1252 | + 'event_espresso' |
|
1253 | + ), |
|
1254 | + __FILE__, |
|
1255 | + __FUNCTION__, |
|
1256 | + __LINE__ |
|
1257 | + ); |
|
1258 | + } |
|
1259 | + } elseif ($copy_attendee_info_settings_form->submission_error_message() !== '') { |
|
1260 | + EE_Error::add_error( |
|
1261 | + $copy_attendee_info_settings_form->submission_error_message(), |
|
1262 | + __FILE__, |
|
1263 | + __FUNCTION__, |
|
1264 | + __LINE__ |
|
1265 | + ); |
|
1266 | + } |
|
1267 | + } |
|
1268 | + } catch (EE_Error $e) { |
|
1269 | + $e->get_error(); |
|
1270 | + } |
|
1271 | + return $EE_Registration_Config; |
|
1272 | + } |
|
1273 | + |
|
1274 | + |
|
1275 | + /** |
|
1276 | + * @return void |
|
1277 | + * @throws EE_Error |
|
1278 | + * @throws InvalidArgumentException |
|
1279 | + * @throws InvalidDataTypeException |
|
1280 | + * @throws InvalidInterfaceException |
|
1281 | + */ |
|
1282 | + public function email_validation_settings_form() |
|
1283 | + { |
|
1284 | + echo wp_kses($this->_email_validation_settings_form()->get_html(), AllowedTags::getWithFormTags()); |
|
1285 | + } |
|
1286 | + |
|
1287 | + |
|
1288 | + /** |
|
1289 | + * _email_validation_settings_form |
|
1290 | + * |
|
1291 | + * @access protected |
|
1292 | + * @return EE_Form_Section_Proper |
|
1293 | + * @throws \EE_Error |
|
1294 | + */ |
|
1295 | + protected function _email_validation_settings_form() |
|
1296 | + { |
|
1297 | + return new EE_Form_Section_Proper( |
|
1298 | + array( |
|
1299 | + 'name' => 'email_validation_settings', |
|
1300 | + 'html_id' => 'email_validation_settings', |
|
1301 | + 'layout_strategy' => new EE_Admin_Two_Column_Layout(), |
|
1302 | + 'subsections' => apply_filters( |
|
1303 | + 'FHEE__Extend_Registration_Form_Admin_Page___email_validation_settings_form__form_subsections', |
|
1304 | + array( |
|
1305 | + 'email_validation_hdr' => new EE_Form_Section_HTML( |
|
1306 | + EEH_HTML::h2(esc_html__('Email Validation Settings', 'event_espresso')) |
|
1307 | + ), |
|
1308 | + 'email_validation_level' => new EE_Select_Input( |
|
1309 | + array( |
|
1310 | + 'basic' => esc_html__('Basic', 'event_espresso'), |
|
1311 | + 'wp_default' => esc_html__('WordPress Default', 'event_espresso'), |
|
1312 | + 'i18n' => esc_html__('International', 'event_espresso'), |
|
1313 | + 'i18n_dns' => esc_html__('International + DNS Check', 'event_espresso'), |
|
1314 | + ), |
|
1315 | + array( |
|
1316 | + 'html_label_text' => esc_html__('Email Validation Level', 'event_espresso') |
|
1317 | + . EEH_Template::get_help_tab_link('email_validation_info'), |
|
1318 | + 'html_help_text' => esc_html__( |
|
1319 | + 'These levels range from basic validation ( ie: [email protected] ) to more advanced checks against international email addresses (ie: üñîçøðé@example.com ) with additional MX and A record checks to confirm the domain actually exists. More information on on each level can be found within the help section.', |
|
1320 | + 'event_espresso' |
|
1321 | + ), |
|
1322 | + 'default' => isset( |
|
1323 | + EE_Registry::instance()->CFG->registration->email_validation_level |
|
1324 | + ) |
|
1325 | + ? EE_Registry::instance()->CFG->registration->email_validation_level |
|
1326 | + : 'wp_default', |
|
1327 | + 'required' => false, |
|
1328 | + ) |
|
1329 | + ), |
|
1330 | + ) |
|
1331 | + ), |
|
1332 | + ) |
|
1333 | + ); |
|
1334 | + } |
|
1335 | + |
|
1336 | + |
|
1337 | + /** |
|
1338 | + * @param EE_Registration_Config $EE_Registration_Config |
|
1339 | + * @return EE_Registration_Config |
|
1340 | + * @throws EE_Error |
|
1341 | + * @throws InvalidArgumentException |
|
1342 | + * @throws ReflectionException |
|
1343 | + * @throws InvalidDataTypeException |
|
1344 | + * @throws InvalidInterfaceException |
|
1345 | + */ |
|
1346 | + public function update_email_validation_settings_form(EE_Registration_Config $EE_Registration_Config) |
|
1347 | + { |
|
1348 | + $prev_email_validation_level = $EE_Registration_Config->email_validation_level; |
|
1349 | + try { |
|
1350 | + $email_validation_settings_form = $this->_email_validation_settings_form(); |
|
1351 | + // if not displaying a form, then check for form submission |
|
1352 | + if ($email_validation_settings_form->was_submitted()) { |
|
1353 | + // capture form data |
|
1354 | + $email_validation_settings_form->receive_form_submission(); |
|
1355 | + // validate form data |
|
1356 | + if ($email_validation_settings_form->is_valid()) { |
|
1357 | + // grab validated data from form |
|
1358 | + $valid_data = $email_validation_settings_form->valid_data(); |
|
1359 | + if (isset($valid_data['email_validation_level'])) { |
|
1360 | + $email_validation_level = $valid_data['email_validation_level']; |
|
1361 | + // now if they want to use international email addresses |
|
1362 | + if ($email_validation_level === 'i18n' || $email_validation_level === 'i18n_dns') { |
|
1363 | + // in case we need to reset their email validation level, |
|
1364 | + // make sure that the previous value wasn't already set to one of the i18n options. |
|
1365 | + if ($prev_email_validation_level === 'i18n' || $prev_email_validation_level === 'i18n_dns') { |
|
1366 | + // if so, then reset it back to "basic" since that is the only other option that, |
|
1367 | + // despite offering poor validation, supports i18n email addresses |
|
1368 | + $prev_email_validation_level = 'basic'; |
|
1369 | + } |
|
1370 | + // confirm our i18n email validation will work on the server |
|
1371 | + if (! $this->_verify_pcre_support($EE_Registration_Config, $email_validation_level)) { |
|
1372 | + // or reset email validation level to previous value |
|
1373 | + $email_validation_level = $prev_email_validation_level; |
|
1374 | + } |
|
1375 | + } |
|
1376 | + $EE_Registration_Config->email_validation_level = $email_validation_level; |
|
1377 | + } else { |
|
1378 | + EE_Error::add_error( |
|
1379 | + esc_html__( |
|
1380 | + 'Invalid or missing Email Validation settings. Please refresh the form and try again.', |
|
1381 | + 'event_espresso' |
|
1382 | + ), |
|
1383 | + __FILE__, |
|
1384 | + __FUNCTION__, |
|
1385 | + __LINE__ |
|
1386 | + ); |
|
1387 | + } |
|
1388 | + } elseif ($email_validation_settings_form->submission_error_message() !== '') { |
|
1389 | + EE_Error::add_error( |
|
1390 | + $email_validation_settings_form->submission_error_message(), |
|
1391 | + __FILE__, |
|
1392 | + __FUNCTION__, |
|
1393 | + __LINE__ |
|
1394 | + ); |
|
1395 | + } |
|
1396 | + } |
|
1397 | + } catch (EE_Error $e) { |
|
1398 | + $e->get_error(); |
|
1399 | + } |
|
1400 | + return $EE_Registration_Config; |
|
1401 | + } |
|
1402 | + |
|
1403 | + |
|
1404 | + /** |
|
1405 | + * confirms that the server's PHP version has the PCRE module enabled, |
|
1406 | + * and that the PCRE version works with our i18n email validation |
|
1407 | + * |
|
1408 | + * @param EE_Registration_Config $EE_Registration_Config |
|
1409 | + * @param string $email_validation_level |
|
1410 | + * @return bool |
|
1411 | + */ |
|
1412 | + private function _verify_pcre_support(EE_Registration_Config $EE_Registration_Config, $email_validation_level) |
|
1413 | + { |
|
1414 | + // first check that PCRE is enabled |
|
1415 | + if (! defined('PREG_BAD_UTF8_ERROR')) { |
|
1416 | + EE_Error::add_error( |
|
1417 | + sprintf( |
|
1418 | + esc_html__( |
|
1419 | + 'We\'re sorry, but it appears that your server\'s version of PHP was not compiled with PCRE unicode support.%1$sPlease contact your hosting company and ask them whether the PCRE compiled with your version of PHP on your server can be been built with the "--enable-unicode-properties" and "--enable-utf8" configuration switches to enable more complex regex expressions.%1$sIf they are unable, or unwilling to do so, then your server will not support international email addresses using UTF-8 unicode characters. This means you will either have to lower your email validation level to "Basic" or "WordPress Default", or switch to a hosting company that has/can enable PCRE unicode support on the server.', |
|
1420 | + 'event_espresso' |
|
1421 | + ), |
|
1422 | + '<br />' |
|
1423 | + ), |
|
1424 | + __FILE__, |
|
1425 | + __FUNCTION__, |
|
1426 | + __LINE__ |
|
1427 | + ); |
|
1428 | + return false; |
|
1429 | + } else { |
|
1430 | + // PCRE support is enabled, but let's still |
|
1431 | + // perform a test to see if the server will support it. |
|
1432 | + // but first, save the updated validation level to the config, |
|
1433 | + // so that the validation strategy picks it up. |
|
1434 | + // this will get bumped back down if it doesn't work |
|
1435 | + $EE_Registration_Config->email_validation_level = $email_validation_level; |
|
1436 | + try { |
|
1437 | + $email_validator = new EE_Email_Validation_Strategy(); |
|
1438 | + $i18n_email_address = apply_filters( |
|
1439 | + 'FHEE__Extend_Registration_Form_Admin_Page__update_email_validation_settings_form__i18n_email_address', |
|
1440 | + 'jägerjü[email protected]' |
|
1441 | + ); |
|
1442 | + $email_validator->validate($i18n_email_address); |
|
1443 | + } catch (Exception $e) { |
|
1444 | + EE_Error::add_error( |
|
1445 | + sprintf( |
|
1446 | + esc_html__( |
|
1447 | + 'We\'re sorry, but it appears that your server\'s configuration will not support the "International" or "International + DNS Check" email validation levels.%1$sTo correct this issue, please consult with your hosting company regarding your server\'s PCRE settings.%1$sIt is recommended that your PHP version be configured to use PCRE 8.10 or newer.%1$sMore information regarding PCRE versions and installation can be found here: %2$s', |
|
1448 | + 'event_espresso' |
|
1449 | + ), |
|
1450 | + '<br />', |
|
1451 | + '<a href="http://php.net/manual/en/pcre.installation.php" target="_blank" rel="noopener noreferrer">http://php.net/manual/en/pcre.installation.php</a>' |
|
1452 | + ), |
|
1453 | + __FILE__, |
|
1454 | + __FUNCTION__, |
|
1455 | + __LINE__ |
|
1456 | + ); |
|
1457 | + return false; |
|
1458 | + } |
|
1459 | + } |
|
1460 | + return true; |
|
1461 | + } |
|
1462 | + |
|
1463 | + |
|
1464 | + public function setSessionLifespan() |
|
1465 | + { |
|
1466 | + $session_lifespan_form = $this->loader->getNew(SessionLifespanForm::class); |
|
1467 | + echo wp_kses($session_lifespan_form->get_html(), AllowedTags::getWithFormTags()); |
|
1468 | + } |
|
1469 | + |
|
1470 | + |
|
1471 | + public function updateSessionLifespan() |
|
1472 | + { |
|
1473 | + $handler = $this->loader->getNew(SessionLifespanFormHandler::class); |
|
1474 | + $handler->process($this->loader->getNew(SessionLifespanForm::class)); |
|
1475 | + } |
|
1476 | 1476 | } |
@@ -20,1140 +20,1140 @@ |
||
20 | 20 | */ |
21 | 21 | class EE_Dependency_Map |
22 | 22 | { |
23 | - /** |
|
24 | - * This means that the requested class dependency is not present in the dependency map |
|
25 | - */ |
|
26 | - const not_registered = 0; |
|
27 | - |
|
28 | - /** |
|
29 | - * This instructs class loaders to ALWAYS return a newly instantiated object for the requested class. |
|
30 | - */ |
|
31 | - const load_new_object = 1; |
|
32 | - |
|
33 | - /** |
|
34 | - * This instructs class loaders to return a previously instantiated and cached object for the requested class. |
|
35 | - * IF a previously instantiated object does not exist, a new one will be created and added to the cache. |
|
36 | - */ |
|
37 | - const load_from_cache = 2; |
|
38 | - |
|
39 | - /** |
|
40 | - * When registering a dependency, |
|
41 | - * this indicates to keep any existing dependencies that already exist, |
|
42 | - * and simply discard any new dependencies declared in the incoming data |
|
43 | - */ |
|
44 | - const KEEP_EXISTING_DEPENDENCIES = 0; |
|
45 | - |
|
46 | - /** |
|
47 | - * When registering a dependency, |
|
48 | - * this indicates to overwrite any existing dependencies that already exist using the incoming data |
|
49 | - */ |
|
50 | - const OVERWRITE_DEPENDENCIES = 1; |
|
51 | - |
|
52 | - /** |
|
53 | - * @type EE_Dependency_Map $_instance |
|
54 | - */ |
|
55 | - protected static $_instance; |
|
56 | - |
|
57 | - /** |
|
58 | - * @var ClassInterfaceCache $class_cache |
|
59 | - */ |
|
60 | - private $class_cache; |
|
61 | - |
|
62 | - /** |
|
63 | - * @type RequestInterface $request |
|
64 | - */ |
|
65 | - protected $request; |
|
66 | - |
|
67 | - /** |
|
68 | - * @type LegacyRequestInterface $legacy_request |
|
69 | - */ |
|
70 | - protected $legacy_request; |
|
71 | - |
|
72 | - /** |
|
73 | - * @type ResponseInterface $response |
|
74 | - */ |
|
75 | - protected $response; |
|
76 | - |
|
77 | - /** |
|
78 | - * @type LoaderInterface $loader |
|
79 | - */ |
|
80 | - protected $loader; |
|
81 | - |
|
82 | - /** |
|
83 | - * @type array $_dependency_map |
|
84 | - */ |
|
85 | - protected $_dependency_map = []; |
|
86 | - |
|
87 | - /** |
|
88 | - * @type array $_class_loaders |
|
89 | - */ |
|
90 | - protected $_class_loaders = []; |
|
91 | - |
|
92 | - |
|
93 | - /** |
|
94 | - * EE_Dependency_Map constructor. |
|
95 | - * |
|
96 | - * @param ClassInterfaceCache $class_cache |
|
97 | - */ |
|
98 | - protected function __construct(ClassInterfaceCache $class_cache) |
|
99 | - { |
|
100 | - $this->class_cache = $class_cache; |
|
101 | - do_action('EE_Dependency_Map____construct', $this); |
|
102 | - } |
|
103 | - |
|
104 | - |
|
105 | - /** |
|
106 | - * @return void |
|
107 | - * @throws InvalidAliasException |
|
108 | - */ |
|
109 | - public function initialize() |
|
110 | - { |
|
111 | - $this->_register_core_dependencies(); |
|
112 | - $this->_register_core_class_loaders(); |
|
113 | - $this->_register_core_aliases(); |
|
114 | - } |
|
115 | - |
|
116 | - |
|
117 | - /** |
|
118 | - * @singleton method used to instantiate class object |
|
119 | - * @param ClassInterfaceCache|null $class_cache |
|
120 | - * @return EE_Dependency_Map |
|
121 | - */ |
|
122 | - public static function instance(ClassInterfaceCache $class_cache = null): EE_Dependency_Map |
|
123 | - { |
|
124 | - // check if class object is instantiated, and instantiated properly |
|
125 | - if ( |
|
126 | - ! EE_Dependency_Map::$_instance instanceof EE_Dependency_Map |
|
127 | - && $class_cache instanceof ClassInterfaceCache |
|
128 | - ) { |
|
129 | - EE_Dependency_Map::$_instance = new EE_Dependency_Map($class_cache); |
|
130 | - } |
|
131 | - return EE_Dependency_Map::$_instance; |
|
132 | - } |
|
133 | - |
|
134 | - |
|
135 | - /** |
|
136 | - * @param RequestInterface $request |
|
137 | - */ |
|
138 | - public function setRequest(RequestInterface $request) |
|
139 | - { |
|
140 | - $this->request = $request; |
|
141 | - } |
|
142 | - |
|
143 | - |
|
144 | - /** |
|
145 | - * @param LegacyRequestInterface $legacy_request |
|
146 | - */ |
|
147 | - public function setLegacyRequest(LegacyRequestInterface $legacy_request) |
|
148 | - { |
|
149 | - $this->legacy_request = $legacy_request; |
|
150 | - } |
|
151 | - |
|
152 | - |
|
153 | - /** |
|
154 | - * @param ResponseInterface $response |
|
155 | - */ |
|
156 | - public function setResponse(ResponseInterface $response) |
|
157 | - { |
|
158 | - $this->response = $response; |
|
159 | - } |
|
160 | - |
|
161 | - |
|
162 | - /** |
|
163 | - * @param LoaderInterface $loader |
|
164 | - */ |
|
165 | - public function setLoader(LoaderInterface $loader) |
|
166 | - { |
|
167 | - $this->loader = $loader; |
|
168 | - } |
|
169 | - |
|
170 | - |
|
171 | - /** |
|
172 | - * @param string $class |
|
173 | - * @param array $dependencies |
|
174 | - * @param int $overwrite |
|
175 | - * @return bool |
|
176 | - */ |
|
177 | - public static function register_dependencies( |
|
178 | - string $class, |
|
179 | - array $dependencies, |
|
180 | - int $overwrite = EE_Dependency_Map::KEEP_EXISTING_DEPENDENCIES |
|
181 | - ): bool { |
|
182 | - return EE_Dependency_Map::$_instance->registerDependencies($class, $dependencies, $overwrite); |
|
183 | - } |
|
184 | - |
|
185 | - |
|
186 | - /** |
|
187 | - * Assigns an array of class names and corresponding load sources (new or cached) |
|
188 | - * to the class specified by the first parameter. |
|
189 | - * IMPORTANT !!! |
|
190 | - * The order of elements in the incoming $dependencies array MUST match |
|
191 | - * the order of the constructor parameters for the class in question. |
|
192 | - * This is especially important when overriding any existing dependencies that are registered. |
|
193 | - * the third parameter controls whether any duplicate dependencies are overwritten or not. |
|
194 | - * |
|
195 | - * @param string $class |
|
196 | - * @param array $dependencies |
|
197 | - * @param int $overwrite |
|
198 | - * @return bool |
|
199 | - */ |
|
200 | - public function registerDependencies( |
|
201 | - string $class, |
|
202 | - array $dependencies, |
|
203 | - int $overwrite = EE_Dependency_Map::KEEP_EXISTING_DEPENDENCIES |
|
204 | - ): bool { |
|
205 | - $class = trim($class, '\\'); |
|
206 | - $registered = false; |
|
207 | - if (empty(EE_Dependency_Map::$_instance->_dependency_map[ $class ])) { |
|
208 | - EE_Dependency_Map::$_instance->_dependency_map[ $class ] = []; |
|
209 | - } |
|
210 | - // we need to make sure that any aliases used when registering a dependency |
|
211 | - // get resolved to the correct class name |
|
212 | - foreach ($dependencies as $dependency => $load_source) { |
|
213 | - $alias = EE_Dependency_Map::$_instance->getFqnForAlias($dependency); |
|
214 | - if ( |
|
215 | - $overwrite === EE_Dependency_Map::OVERWRITE_DEPENDENCIES |
|
216 | - || ! isset(EE_Dependency_Map::$_instance->_dependency_map[ $class ][ $alias ]) |
|
217 | - ) { |
|
218 | - unset($dependencies[ $dependency ]); |
|
219 | - $dependencies[ $alias ] = $load_source; |
|
220 | - $registered = true; |
|
221 | - } |
|
222 | - } |
|
223 | - // now add our two lists of dependencies together. |
|
224 | - // using Union (+=) favours the arrays in precedence from left to right, |
|
225 | - // so $dependencies is NOT overwritten because it is listed first |
|
226 | - // ie: with A = B + C, entries in B take precedence over duplicate entries in C |
|
227 | - // Union is way faster than array_merge() but should be used with caution... |
|
228 | - // especially with numerically indexed arrays |
|
229 | - $dependencies += EE_Dependency_Map::$_instance->_dependency_map[ $class ]; |
|
230 | - // now we need to ensure that the resulting dependencies |
|
231 | - // array only has the entries that are required for the class |
|
232 | - // so first count how many dependencies were originally registered for the class |
|
233 | - $dependency_count = count(EE_Dependency_Map::$_instance->_dependency_map[ $class ]); |
|
234 | - // if that count is non-zero (meaning dependencies were already registered) |
|
235 | - EE_Dependency_Map::$_instance->_dependency_map[ $class ] = $dependency_count |
|
236 | - // then truncate the final array to match that count |
|
237 | - ? array_slice($dependencies, 0, $dependency_count) |
|
238 | - // otherwise just take the incoming array because nothing previously existed |
|
239 | - : $dependencies; |
|
240 | - return $registered; |
|
241 | - } |
|
242 | - |
|
243 | - |
|
244 | - /** |
|
245 | - * @param string $class_name |
|
246 | - * @param callable|string $loader |
|
247 | - * @param bool $overwrite |
|
248 | - * @return bool |
|
249 | - * @throws DomainException |
|
250 | - */ |
|
251 | - public static function register_class_loader( |
|
252 | - string $class_name, |
|
253 | - $loader = 'load_core', |
|
254 | - bool $overwrite = false |
|
255 | - ): bool { |
|
256 | - return EE_Dependency_Map::$_instance->registerClassLoader($class_name, $loader, $overwrite); |
|
257 | - } |
|
258 | - |
|
259 | - |
|
260 | - /** |
|
261 | - * @param string $class_name |
|
262 | - * @param Closure|string $loader |
|
263 | - * @param bool $overwrite |
|
264 | - * @return bool |
|
265 | - * @throws DomainException |
|
266 | - */ |
|
267 | - public function registerClassLoader(string $class_name, $loader = 'load_core', bool $overwrite = false): bool |
|
268 | - { |
|
269 | - if (! $loader instanceof Closure && strpos($class_name, '\\') !== false) { |
|
270 | - throw new DomainException( |
|
271 | - esc_html__('Don\'t use class loaders for FQCNs.', 'event_espresso') |
|
272 | - ); |
|
273 | - } |
|
274 | - // check that loader is callable or method starts with "load_" and exists in EE_Registry |
|
275 | - if ( |
|
276 | - ! is_callable($loader) |
|
277 | - && ( |
|
278 | - strpos($loader, 'load_') !== 0 |
|
279 | - || ! method_exists('EE_Registry', $loader) |
|
280 | - ) |
|
281 | - ) { |
|
282 | - throw new DomainException( |
|
283 | - sprintf( |
|
284 | - esc_html__( |
|
285 | - '"%1$s" is not a valid loader method on EE_Registry.', |
|
286 | - 'event_espresso' |
|
287 | - ), |
|
288 | - $loader |
|
289 | - ) |
|
290 | - ); |
|
291 | - } |
|
292 | - $class_name = EE_Dependency_Map::$_instance->getFqnForAlias($class_name); |
|
293 | - if ($overwrite || ! isset(EE_Dependency_Map::$_instance->_class_loaders[ $class_name ])) { |
|
294 | - EE_Dependency_Map::$_instance->_class_loaders[ $class_name ] = $loader; |
|
295 | - return true; |
|
296 | - } |
|
297 | - return false; |
|
298 | - } |
|
299 | - |
|
300 | - |
|
301 | - /** |
|
302 | - * @return array |
|
303 | - */ |
|
304 | - public function dependency_map(): array |
|
305 | - { |
|
306 | - return $this->_dependency_map; |
|
307 | - } |
|
308 | - |
|
309 | - |
|
310 | - /** |
|
311 | - * returns TRUE if dependency map contains a listing for the provided class name |
|
312 | - * |
|
313 | - * @param string $class_name |
|
314 | - * @return boolean |
|
315 | - */ |
|
316 | - public function has(string $class_name = ''): bool |
|
317 | - { |
|
318 | - // all legacy models have the same dependencies |
|
319 | - if (strpos($class_name, 'EEM_') === 0) { |
|
320 | - $class_name = 'LEGACY_MODELS'; |
|
321 | - } |
|
322 | - return isset($this->_dependency_map[ $class_name ]); |
|
323 | - } |
|
324 | - |
|
325 | - |
|
326 | - /** |
|
327 | - * returns TRUE if dependency map contains a listing for the provided class name AND dependency |
|
328 | - * |
|
329 | - * @param string $class_name |
|
330 | - * @param string $dependency |
|
331 | - * @return bool |
|
332 | - */ |
|
333 | - public function has_dependency_for_class(string $class_name = '', string $dependency = ''): bool |
|
334 | - { |
|
335 | - // all legacy models have the same dependencies |
|
336 | - if (strpos($class_name, 'EEM_') === 0) { |
|
337 | - $class_name = 'LEGACY_MODELS'; |
|
338 | - } |
|
339 | - $dependency = $this->getFqnForAlias($dependency, $class_name); |
|
340 | - return isset($this->_dependency_map[ $class_name ][ $dependency ]); |
|
341 | - } |
|
342 | - |
|
343 | - |
|
344 | - /** |
|
345 | - * returns loading strategy for whether a previously cached dependency should be loaded or a new instance returned |
|
346 | - * |
|
347 | - * @param string $class_name |
|
348 | - * @param string $dependency |
|
349 | - * @return int |
|
350 | - */ |
|
351 | - public function loading_strategy_for_class_dependency(string $class_name = '', string $dependency = ''): int |
|
352 | - { |
|
353 | - // all legacy models have the same dependencies |
|
354 | - if (strpos($class_name, 'EEM_') === 0) { |
|
355 | - $class_name = 'LEGACY_MODELS'; |
|
356 | - } |
|
357 | - $dependency = $this->getFqnForAlias($dependency); |
|
358 | - return $this->has_dependency_for_class($class_name, $dependency) |
|
359 | - ? $this->_dependency_map[ $class_name ][ $dependency ] |
|
360 | - : EE_Dependency_Map::not_registered; |
|
361 | - } |
|
362 | - |
|
363 | - |
|
364 | - /** |
|
365 | - * @param string $class_name |
|
366 | - * @return string | Closure |
|
367 | - */ |
|
368 | - public function class_loader(string $class_name) |
|
369 | - { |
|
370 | - // all legacy models use load_model() |
|
371 | - if (strpos($class_name, 'EEM_') === 0) { |
|
372 | - return 'load_model'; |
|
373 | - } |
|
374 | - // EE_CPT_*_Strategy classes like EE_CPT_Event_Strategy, EE_CPT_Venue_Strategy, etc |
|
375 | - // perform strpos() first to avoid loading regex every time we load a class |
|
376 | - if ( |
|
377 | - strpos($class_name, 'EE_CPT_') === 0 |
|
378 | - && preg_match('/^EE_CPT_([a-zA-Z]+)_Strategy$/', $class_name) |
|
379 | - ) { |
|
380 | - return 'load_core'; |
|
381 | - } |
|
382 | - $class_name = $this->getFqnForAlias($class_name); |
|
383 | - return $this->_class_loaders[ $class_name ] ?? ''; |
|
384 | - } |
|
385 | - |
|
386 | - |
|
387 | - /** |
|
388 | - * @return array |
|
389 | - */ |
|
390 | - public function class_loaders(): array |
|
391 | - { |
|
392 | - return $this->_class_loaders; |
|
393 | - } |
|
394 | - |
|
395 | - |
|
396 | - /** |
|
397 | - * adds an alias for a classname |
|
398 | - * |
|
399 | - * @param string $fqcn the class name that should be used (concrete class to replace interface) |
|
400 | - * @param string $alias the class name that would be type hinted for (abstract parent or interface) |
|
401 | - * @param string $for_class the class that has the dependency (is type hinting for the interface) |
|
402 | - * @throws InvalidAliasException |
|
403 | - */ |
|
404 | - public function add_alias(string $fqcn, string $alias, string $for_class = '') |
|
405 | - { |
|
406 | - $this->class_cache->addAlias($fqcn, $alias, $for_class); |
|
407 | - } |
|
408 | - |
|
409 | - |
|
410 | - /** |
|
411 | - * Returns TRUE if the provided fully qualified name IS an alias |
|
412 | - * WHY? |
|
413 | - * Because if a class is type hinting for a concretion, |
|
414 | - * then why would we need to find another class to supply it? |
|
415 | - * ie: if a class asks for `Fully/Qualified/Namespace/SpecificClassName`, |
|
416 | - * then give it an instance of `Fully/Qualified/Namespace/SpecificClassName`. |
|
417 | - * Don't go looking for some substitute. |
|
418 | - * Whereas if a class is type hinting for an interface... |
|
419 | - * then we need to find an actual class to use. |
|
420 | - * So the interface IS the alias for some other FQN, |
|
421 | - * and we need to find out if `Fully/Qualified/Namespace/SomeInterface` |
|
422 | - * represents some other class. |
|
423 | - * |
|
424 | - * @param string $fqn |
|
425 | - * @param string $for_class |
|
426 | - * @return bool |
|
427 | - */ |
|
428 | - public function isAlias(string $fqn = '', string $for_class = ''): bool |
|
429 | - { |
|
430 | - return $this->class_cache->isAlias($fqn, $for_class); |
|
431 | - } |
|
432 | - |
|
433 | - |
|
434 | - /** |
|
435 | - * Returns a FQN for provided alias if one exists, otherwise returns the original $alias |
|
436 | - * functions recursively, so that multiple aliases can be used to drill down to a FQN |
|
437 | - * for example: |
|
438 | - * if the following two entries were added to the _aliases array: |
|
439 | - * array( |
|
440 | - * 'interface_alias' => 'some\namespace\interface' |
|
441 | - * 'some\namespace\interface' => 'some\namespace\classname' |
|
442 | - * ) |
|
443 | - * then one could use EE_Registry::instance()->create( 'interface_alias' ) |
|
444 | - * to load an instance of 'some\namespace\classname' |
|
445 | - * |
|
446 | - * @param string $alias |
|
447 | - * @param string $for_class |
|
448 | - * @return string |
|
449 | - */ |
|
450 | - public function getFqnForAlias(string $alias = '', string $for_class = ''): string |
|
451 | - { |
|
452 | - return $this->class_cache->getFqnForAlias($alias, $for_class); |
|
453 | - } |
|
454 | - |
|
455 | - |
|
456 | - /** |
|
457 | - * Registers the core dependencies and whether a previously instantiated object should be loaded from the cache, |
|
458 | - * if one exists, or whether a new object should be generated every time the requested class is loaded. |
|
459 | - * This is done by using the following class constants: |
|
460 | - * EE_Dependency_Map::load_from_cache - loads previously instantiated object |
|
461 | - * EE_Dependency_Map::load_new_object - generates a new object every time |
|
462 | - */ |
|
463 | - protected function _register_core_dependencies() |
|
464 | - { |
|
465 | - $this->_dependency_map = [ |
|
466 | - 'EE_Admin' => [ |
|
467 | - 'EventEspresso\core\services\loaders\Loader' => EE_Dependency_Map::load_from_cache, |
|
468 | - 'EventEspresso\core\services\request\Request' => EE_Dependency_Map::load_from_cache, |
|
469 | - ], |
|
470 | - 'EE_Request_Handler' => [ |
|
471 | - 'EventEspresso\core\services\request\Request' => EE_Dependency_Map::load_from_cache, |
|
472 | - 'EventEspresso\core\services\request\Response' => EE_Dependency_Map::load_from_cache, |
|
473 | - ], |
|
474 | - 'EE_System' => [ |
|
475 | - 'EventEspresso\core\services\loaders\Loader' => EE_Dependency_Map::load_from_cache, |
|
476 | - 'EE_Maintenance_Mode' => EE_Dependency_Map::load_from_cache, |
|
477 | - 'EE_Registry' => EE_Dependency_Map::load_from_cache, |
|
478 | - 'EventEspresso\core\services\request\Request' => EE_Dependency_Map::load_from_cache, |
|
479 | - 'EventEspresso\core\services\routing\Router' => EE_Dependency_Map::load_from_cache, |
|
480 | - ], |
|
481 | - 'EE_Session' => [ |
|
482 | - 'EventEspresso\core\services\cache\TransientCacheStorage' => EE_Dependency_Map::load_from_cache, |
|
483 | - 'EventEspresso\core\domain\values\session\SessionLifespan' => EE_Dependency_Map::load_from_cache, |
|
484 | - 'EventEspresso\core\services\request\Request' => EE_Dependency_Map::load_from_cache, |
|
485 | - 'EventEspresso\core\services\session\SessionStartHandler' => EE_Dependency_Map::load_from_cache, |
|
486 | - 'EE_Encryption' => EE_Dependency_Map::load_from_cache, |
|
487 | - ], |
|
488 | - 'EE_Cart' => [ |
|
489 | - 'EE_Session' => EE_Dependency_Map::load_from_cache, |
|
490 | - ], |
|
491 | - 'EE_Messenger_Collection_Loader' => [ |
|
492 | - 'EE_Messenger_Collection' => EE_Dependency_Map::load_new_object, |
|
493 | - ], |
|
494 | - 'EE_Message_Type_Collection_Loader' => [ |
|
495 | - 'EE_Message_Type_Collection' => EE_Dependency_Map::load_new_object, |
|
496 | - ], |
|
497 | - 'EE_Message_Resource_Manager' => [ |
|
498 | - 'EE_Messenger_Collection_Loader' => EE_Dependency_Map::load_new_object, |
|
499 | - 'EE_Message_Type_Collection_Loader' => EE_Dependency_Map::load_new_object, |
|
500 | - 'EEM_Message_Template_Group' => EE_Dependency_Map::load_from_cache, |
|
501 | - ], |
|
502 | - 'EE_Message_Factory' => [ |
|
503 | - 'EE_Message_Resource_Manager' => EE_Dependency_Map::load_from_cache, |
|
504 | - ], |
|
505 | - 'EE_messages' => [ |
|
506 | - 'EE_Message_Resource_Manager' => EE_Dependency_Map::load_from_cache, |
|
507 | - ], |
|
508 | - 'EE_Messages_Generator' => [ |
|
509 | - 'EE_Messages_Queue' => EE_Dependency_Map::load_new_object, |
|
510 | - 'EE_Messages_Data_Handler_Collection' => EE_Dependency_Map::load_new_object, |
|
511 | - 'EE_Message_Template_Group_Collection' => EE_Dependency_Map::load_new_object, |
|
512 | - 'EEH_Parse_Shortcodes' => EE_Dependency_Map::load_from_cache, |
|
513 | - ], |
|
514 | - 'EE_Messages_Processor' => [ |
|
515 | - 'EE_Message_Resource_Manager' => EE_Dependency_Map::load_from_cache, |
|
516 | - ], |
|
517 | - 'EE_Messages_Queue' => [ |
|
518 | - 'EE_Message_Repository' => EE_Dependency_Map::load_new_object, |
|
519 | - ], |
|
520 | - 'EE_Messages_Template_Defaults' => [ |
|
521 | - 'EEM_Message_Template_Group' => EE_Dependency_Map::load_from_cache, |
|
522 | - 'EEM_Message_Template' => EE_Dependency_Map::load_from_cache, |
|
523 | - ], |
|
524 | - 'EE_Message_To_Generate_From_Request' => [ |
|
525 | - 'EE_Message_Resource_Manager' => EE_Dependency_Map::load_from_cache, |
|
526 | - 'EventEspresso\core\services\request\Request' => EE_Dependency_Map::load_from_cache, |
|
527 | - ], |
|
528 | - 'EventEspresso\core\services\commands\CommandBus' => [ |
|
529 | - 'EventEspresso\core\services\commands\CommandHandlerManager' => EE_Dependency_Map::load_from_cache, |
|
530 | - ], |
|
531 | - 'EventEspresso\services\commands\CommandHandler' => [ |
|
532 | - 'EE_Registry' => EE_Dependency_Map::load_from_cache, |
|
533 | - 'CommandBusInterface' => EE_Dependency_Map::load_from_cache, |
|
534 | - ], |
|
535 | - 'EventEspresso\core\services\commands\CommandHandlerManager' => [ |
|
536 | - 'EventEspresso\core\services\loaders\Loader' => EE_Dependency_Map::load_from_cache, |
|
537 | - ], |
|
538 | - 'EventEspresso\core\services\commands\CompositeCommandHandler' => [ |
|
539 | - 'EventEspresso\core\services\commands\CommandBus' => EE_Dependency_Map::load_from_cache, |
|
540 | - 'EventEspresso\core\services\commands\CommandFactory' => EE_Dependency_Map::load_from_cache, |
|
541 | - ], |
|
542 | - 'EventEspresso\core\services\commands\CommandFactory' => [ |
|
543 | - 'EventEspresso\core\services\loaders\Loader' => EE_Dependency_Map::load_from_cache, |
|
544 | - ], |
|
545 | - 'EventEspresso\core\services\commands\middleware\CapChecker' => [ |
|
546 | - 'EventEspresso\core\domain\services\capabilities\CapabilitiesChecker' => EE_Dependency_Map::load_from_cache, |
|
547 | - ], |
|
548 | - 'EventEspresso\core\domain\services\capabilities\CapabilitiesChecker' => [ |
|
549 | - 'EE_Capabilities' => EE_Dependency_Map::load_from_cache, |
|
550 | - ], |
|
551 | - 'EventEspresso\core\domain\services\capabilities\RegistrationsCapChecker' => [ |
|
552 | - 'EE_Capabilities' => EE_Dependency_Map::load_from_cache, |
|
553 | - ], |
|
554 | - 'EventEspresso\core\domain\services\commands\registration\CreateRegistrationCommandHandler' => [ |
|
555 | - 'EventEspresso\core\domain\services\registration\CreateRegistrationService' => EE_Dependency_Map::load_from_cache, |
|
556 | - ], |
|
557 | - 'EventEspresso\core\domain\services\commands\registration\CopyRegistrationDetailsCommandHandler' => [ |
|
558 | - 'EventEspresso\core\domain\services\registration\CopyRegistrationService' => EE_Dependency_Map::load_from_cache, |
|
559 | - ], |
|
560 | - 'EventEspresso\core\domain\services\commands\registration\CopyRegistrationPaymentsCommandHandler' => [ |
|
561 | - 'EventEspresso\core\domain\services\registration\CopyRegistrationService' => EE_Dependency_Map::load_from_cache, |
|
562 | - ], |
|
563 | - 'EventEspresso\core\domain\services\commands\registration\CancelRegistrationAndTicketLineItemCommandHandler' => [ |
|
564 | - 'EventEspresso\core\domain\services\registration\CancelTicketLineItemService' => EE_Dependency_Map::load_from_cache, |
|
565 | - ], |
|
566 | - 'EventEspresso\core\domain\services\commands\registration\UpdateRegistrationAndTransactionAfterChangeCommandHandler' => [ |
|
567 | - 'EventEspresso\core\domain\services\registration\UpdateRegistrationService' => EE_Dependency_Map::load_from_cache, |
|
568 | - ], |
|
569 | - 'EventEspresso\core\domain\services\commands\ticket\CreateTicketLineItemCommandHandler' => [ |
|
570 | - 'EventEspresso\core\domain\services\ticket\CreateTicketLineItemService' => EE_Dependency_Map::load_from_cache, |
|
571 | - ], |
|
572 | - 'EventEspresso\core\domain\services\commands\ticket\CancelTicketLineItemCommandHandler' => [ |
|
573 | - 'EventEspresso\core\domain\services\ticket\CancelTicketLineItemService' => EE_Dependency_Map::load_from_cache, |
|
574 | - ], |
|
575 | - 'EventEspresso\core\domain\services\registration\CancelRegistrationService' => [ |
|
576 | - 'EventEspresso\core\domain\services\ticket\CancelTicketLineItemService' => EE_Dependency_Map::load_from_cache, |
|
577 | - ], |
|
578 | - 'EventEspresso\core\domain\services\commands\attendee\CreateAttendeeCommandHandler' => [ |
|
579 | - 'EEM_Attendee' => EE_Dependency_Map::load_from_cache, |
|
580 | - ], |
|
581 | - 'EventEspresso\core\domain\values\session\SessionLifespan' => [ |
|
582 | - 'EventEspresso\core\domain\values\session\SessionLifespanOption' => EE_Dependency_Map::load_from_cache, |
|
583 | - ], |
|
584 | - 'EventEspresso\caffeinated\admin\extend\registration_form\forms\SessionLifespanForm' => [ |
|
585 | - 'EventEspresso\core\domain\values\session\SessionLifespanOption' => EE_Dependency_Map::load_from_cache, |
|
586 | - ], |
|
587 | - 'EventEspresso\caffeinated\admin\extend\registration_form\forms\SessionLifespanFormHandler' => [ |
|
588 | - 'EventEspresso\core\domain\values\session\SessionLifespanOption' => EE_Dependency_Map::load_from_cache, |
|
589 | - ], |
|
590 | - 'EventEspresso\core\services\database\TableManager' => [ |
|
591 | - 'EventEspresso\core\services\database\TableAnalysis' => EE_Dependency_Map::load_from_cache, |
|
592 | - ], |
|
593 | - 'EE_Data_Migration_Class_Base' => [ |
|
594 | - 'EventEspresso\core\services\database\TableAnalysis' => EE_Dependency_Map::load_from_cache, |
|
595 | - 'EventEspresso\core\services\database\TableManager' => EE_Dependency_Map::load_from_cache, |
|
596 | - ], |
|
597 | - 'EE_DMS_Core_4_1_0' => [ |
|
598 | - 'EventEspresso\core\services\database\TableAnalysis' => EE_Dependency_Map::load_from_cache, |
|
599 | - 'EventEspresso\core\services\database\TableManager' => EE_Dependency_Map::load_from_cache, |
|
600 | - ], |
|
601 | - 'EE_DMS_Core_4_2_0' => [ |
|
602 | - 'EventEspresso\core\services\database\TableAnalysis' => EE_Dependency_Map::load_from_cache, |
|
603 | - 'EventEspresso\core\services\database\TableManager' => EE_Dependency_Map::load_from_cache, |
|
604 | - ], |
|
605 | - 'EE_DMS_Core_4_3_0' => [ |
|
606 | - 'EventEspresso\core\services\database\TableAnalysis' => EE_Dependency_Map::load_from_cache, |
|
607 | - 'EventEspresso\core\services\database\TableManager' => EE_Dependency_Map::load_from_cache, |
|
608 | - ], |
|
609 | - 'EE_DMS_Core_4_4_0' => [ |
|
610 | - 'EventEspresso\core\services\database\TableAnalysis' => EE_Dependency_Map::load_from_cache, |
|
611 | - 'EventEspresso\core\services\database\TableManager' => EE_Dependency_Map::load_from_cache, |
|
612 | - ], |
|
613 | - 'EE_DMS_Core_4_5_0' => [ |
|
614 | - 'EventEspresso\core\services\database\TableAnalysis' => EE_Dependency_Map::load_from_cache, |
|
615 | - 'EventEspresso\core\services\database\TableManager' => EE_Dependency_Map::load_from_cache, |
|
616 | - ], |
|
617 | - 'EE_DMS_Core_4_6_0' => [ |
|
618 | - 'EventEspresso\core\services\database\TableAnalysis' => EE_Dependency_Map::load_from_cache, |
|
619 | - 'EventEspresso\core\services\database\TableManager' => EE_Dependency_Map::load_from_cache, |
|
620 | - ], |
|
621 | - 'EE_DMS_Core_4_7_0' => [ |
|
622 | - 'EventEspresso\core\services\database\TableAnalysis' => EE_Dependency_Map::load_from_cache, |
|
623 | - 'EventEspresso\core\services\database\TableManager' => EE_Dependency_Map::load_from_cache, |
|
624 | - ], |
|
625 | - 'EE_DMS_Core_4_8_0' => [ |
|
626 | - 'EventEspresso\core\services\database\TableAnalysis' => EE_Dependency_Map::load_from_cache, |
|
627 | - 'EventEspresso\core\services\database\TableManager' => EE_Dependency_Map::load_from_cache, |
|
628 | - ], |
|
629 | - 'EE_DMS_Core_4_9_0' => [ |
|
630 | - 'EventEspresso\core\services\database\TableAnalysis' => EE_Dependency_Map::load_from_cache, |
|
631 | - 'EventEspresso\core\services\database\TableManager' => EE_Dependency_Map::load_from_cache, |
|
632 | - ], |
|
633 | - 'EE_DMS_Core_4_10_0' => [ |
|
634 | - 'EventEspresso\core\services\database\TableAnalysis' => EE_Dependency_Map::load_from_cache, |
|
635 | - 'EventEspresso\core\services\database\TableManager' => EE_Dependency_Map::load_from_cache, |
|
636 | - 'EE_DMS_Core_4_9_0' => EE_Dependency_Map::load_from_cache, |
|
637 | - ], |
|
638 | - 'EE_DMS_Core_4_11_0' => [ |
|
639 | - 'EE_DMS_Core_4_10_0' => EE_Dependency_Map::load_from_cache, |
|
640 | - 'EventEspresso\core\services\database\TableAnalysis' => EE_Dependency_Map::load_from_cache, |
|
641 | - 'EventEspresso\core\services\database\TableManager' => EE_Dependency_Map::load_from_cache, |
|
642 | - ], |
|
643 | - 'EE_DMS_Core_4_12_0' => [ |
|
644 | - 'EE_DMS_Core_4_11_0' => EE_Dependency_Map::load_from_cache, |
|
645 | - 'EventEspresso\core\services\database\TableAnalysis' => EE_Dependency_Map::load_from_cache, |
|
646 | - 'EventEspresso\core\services\database\TableManager' => EE_Dependency_Map::load_from_cache, |
|
647 | - ], |
|
648 | - 'EventEspresso\core\services\assets\I18nRegistry' => [ |
|
649 | - 'EventEspresso\core\domain\Domain' => EE_Dependency_Map::load_from_cache, |
|
650 | - ], |
|
651 | - 'EventEspresso\core\services\assets\Registry' => [ |
|
652 | - 'EventEspresso\core\services\assets\AssetCollection' => EE_Dependency_Map::load_from_cache, |
|
653 | - 'EventEspresso\core\services\assets\AssetManifest' => EE_Dependency_Map::load_from_cache, |
|
654 | - ], |
|
655 | - 'EventEspresso\core\domain\entities\shortcodes\EspressoCancelled' => [ |
|
656 | - 'EventEspresso\core\services\cache\PostRelatedCacheManager' => EE_Dependency_Map::load_from_cache, |
|
657 | - ], |
|
658 | - 'EventEspresso\core\domain\entities\shortcodes\EspressoCheckout' => [ |
|
659 | - 'EventEspresso\core\services\cache\PostRelatedCacheManager' => EE_Dependency_Map::load_from_cache, |
|
660 | - ], |
|
661 | - 'EventEspresso\core\domain\entities\shortcodes\EspressoEventAttendees' => [ |
|
662 | - 'EventEspresso\core\services\cache\PostRelatedCacheManager' => EE_Dependency_Map::load_from_cache, |
|
663 | - ], |
|
664 | - 'EventEspresso\core\domain\entities\shortcodes\EspressoEvents' => [ |
|
665 | - 'EventEspresso\core\services\cache\PostRelatedCacheManager' => EE_Dependency_Map::load_from_cache, |
|
666 | - ], |
|
667 | - 'EventEspresso\core\domain\entities\shortcodes\EspressoThankYou' => [ |
|
668 | - 'EventEspresso\core\services\cache\PostRelatedCacheManager' => EE_Dependency_Map::load_from_cache, |
|
669 | - ], |
|
670 | - 'EventEspresso\core\domain\entities\shortcodes\EspressoTicketSelector' => [ |
|
671 | - 'EventEspresso\core\services\cache\PostRelatedCacheManager' => EE_Dependency_Map::load_from_cache, |
|
672 | - ], |
|
673 | - 'EventEspresso\core\domain\entities\shortcodes\EspressoTxnPage' => [ |
|
674 | - 'EventEspresso\core\services\cache\PostRelatedCacheManager' => EE_Dependency_Map::load_from_cache, |
|
675 | - ], |
|
676 | - 'EventEspresso\core\services\cache\BasicCacheManager' => [ |
|
677 | - 'EventEspresso\core\services\cache\TransientCacheStorage' => EE_Dependency_Map::load_from_cache, |
|
678 | - ], |
|
679 | - 'EventEspresso\core\services\cache\PostRelatedCacheManager' => [ |
|
680 | - 'EventEspresso\core\services\cache\TransientCacheStorage' => EE_Dependency_Map::load_from_cache, |
|
681 | - ], |
|
682 | - 'EventEspresso\core\domain\services\validation\email\EmailValidationService' => [ |
|
683 | - 'EE_Registration_Config' => EE_Dependency_Map::load_from_cache, |
|
684 | - 'EventEspresso\core\services\loaders\Loader' => EE_Dependency_Map::load_from_cache, |
|
685 | - ], |
|
686 | - 'EventEspresso\core\domain\values\EmailAddress' => [ |
|
687 | - null, |
|
688 | - 'EventEspresso\core\domain\services\validation\email\EmailValidationService' => EE_Dependency_Map::load_from_cache, |
|
689 | - ], |
|
690 | - 'EventEspresso\core\services\orm\ModelFieldFactory' => [ |
|
691 | - 'EventEspresso\core\services\loaders\Loader' => EE_Dependency_Map::load_from_cache, |
|
692 | - ], |
|
693 | - 'LEGACY_MODELS' => [ |
|
694 | - null, |
|
695 | - 'EventEspresso\core\services\database\ModelFieldFactory' => EE_Dependency_Map::load_from_cache, |
|
696 | - ], |
|
697 | - 'EE_Module_Request_Router' => [ |
|
698 | - 'EventEspresso\core\services\request\Request' => EE_Dependency_Map::load_from_cache, |
|
699 | - ], |
|
700 | - 'EE_Registration_Processor' => [ |
|
701 | - 'EventEspresso\core\services\request\Request' => EE_Dependency_Map::load_from_cache, |
|
702 | - ], |
|
703 | - 'EventEspresso\core\services\notifications\PersistentAdminNoticeManager' => [ |
|
704 | - 'EventEspresso\core\domain\services\capabilities\CapabilitiesChecker' => EE_Dependency_Map::load_from_cache, |
|
705 | - 'EventEspresso\core\services\request\Request' => EE_Dependency_Map::load_from_cache, |
|
706 | - ], |
|
707 | - 'EventEspresso\caffeinated\modules\recaptcha_invisible\InvisibleRecaptcha' => [ |
|
708 | - 'EE_Registration_Config' => EE_Dependency_Map::load_from_cache, |
|
709 | - 'EE_Session' => EE_Dependency_Map::load_from_cache, |
|
710 | - ], |
|
711 | - 'EventEspresso\modules\ticket_selector\DisplayTicketSelector' => [ |
|
712 | - 'EventEspresso\core\domain\entities\users\CurrentUser' => EE_Dependency_Map::load_from_cache, |
|
713 | - 'EventEspresso\core\services\request\Request' => EE_Dependency_Map::load_from_cache, |
|
714 | - 'EE_Ticket_Selector_Config' => EE_Dependency_Map::load_from_cache, |
|
715 | - ], |
|
716 | - 'EventEspresso\modules\ticket_selector\ProcessTicketSelector' => [ |
|
717 | - 'EE_Core_Config' => EE_Dependency_Map::load_from_cache, |
|
718 | - 'EventEspresso\core\services\request\Request' => EE_Dependency_Map::load_from_cache, |
|
719 | - 'EE_Session' => EE_Dependency_Map::load_from_cache, |
|
720 | - 'EEM_Ticket' => EE_Dependency_Map::load_from_cache, |
|
721 | - 'EventEspresso\modules\ticket_selector\TicketDatetimeAvailabilityTracker' => EE_Dependency_Map::load_from_cache, |
|
722 | - ], |
|
723 | - 'EventEspresso\modules\ticket_selector\TicketDatetimeAvailabilityTracker' => [ |
|
724 | - 'EEM_Datetime' => EE_Dependency_Map::load_from_cache, |
|
725 | - ], |
|
726 | - 'EventEspresso\core\domain\entities\custom_post_types\CustomPostTypeDefinitions' => [ |
|
727 | - 'EE_Core_Config' => EE_Dependency_Map::load_from_cache, |
|
728 | - 'EventEspresso\core\services\loaders\Loader' => EE_Dependency_Map::load_from_cache, |
|
729 | - ], |
|
730 | - 'EventEspresso\core\domain\services\custom_post_types\RegisterCustomPostTypes' => [ |
|
731 | - 'EventEspresso\core\domain\entities\custom_post_types\CustomPostTypeDefinitions' => EE_Dependency_Map::load_from_cache, |
|
732 | - ], |
|
733 | - 'EventEspresso\core\domain\services\custom_post_types\RegisterCustomTaxonomies' => [ |
|
734 | - 'EventEspresso\core\domain\entities\custom_post_types\CustomTaxonomyDefinitions' => EE_Dependency_Map::load_from_cache, |
|
735 | - ], |
|
736 | - 'EE_CPT_Strategy' => [ |
|
737 | - 'EventEspresso\core\domain\entities\custom_post_types\CustomPostTypeDefinitions' => EE_Dependency_Map::load_from_cache, |
|
738 | - 'EventEspresso\core\domain\entities\custom_post_types\CustomTaxonomyDefinitions' => EE_Dependency_Map::load_from_cache, |
|
739 | - ], |
|
740 | - 'EventEspresso\core\services\loaders\ObjectIdentifier' => [ |
|
741 | - 'EventEspresso\core\services\loaders\ClassInterfaceCache' => EE_Dependency_Map::load_from_cache, |
|
742 | - ], |
|
743 | - 'EventEspresso\core\CPTs\CptQueryModifier' => [ |
|
744 | - null, |
|
745 | - null, |
|
746 | - null, |
|
747 | - 'EventEspresso\core\services\request\CurrentPage' => EE_Dependency_Map::load_from_cache, |
|
748 | - 'EventEspresso\core\services\request\Request' => EE_Dependency_Map::load_from_cache, |
|
749 | - 'EventEspresso\core\services\loaders\Loader' => EE_Dependency_Map::load_from_cache, |
|
750 | - ], |
|
751 | - 'EventEspresso\core\services\dependencies\DependencyResolver' => [ |
|
752 | - 'EventEspresso\core\services\container\Mirror' => EE_Dependency_Map::load_from_cache, |
|
753 | - 'EventEspresso\core\services\loaders\ClassInterfaceCache' => EE_Dependency_Map::load_from_cache, |
|
754 | - 'EE_Dependency_Map' => EE_Dependency_Map::load_from_cache, |
|
755 | - ], |
|
756 | - 'EventEspresso\core\services\routing\RouteMatchSpecificationDependencyResolver' => [ |
|
757 | - 'EventEspresso\core\services\container\Mirror' => EE_Dependency_Map::load_from_cache, |
|
758 | - 'EventEspresso\core\services\loaders\ClassInterfaceCache' => EE_Dependency_Map::load_from_cache, |
|
759 | - 'EE_Dependency_Map' => EE_Dependency_Map::load_from_cache, |
|
760 | - ], |
|
761 | - 'EventEspresso\core\services\routing\RouteMatchSpecificationFactory' => [ |
|
762 | - 'EventEspresso\core\services\routing\RouteMatchSpecificationDependencyResolver' => EE_Dependency_Map::load_from_cache, |
|
763 | - 'EventEspresso\core\services\loaders\Loader' => EE_Dependency_Map::load_from_cache, |
|
764 | - ], |
|
765 | - 'EventEspresso\core\services\routing\RouteMatchSpecificationManager' => [ |
|
766 | - 'EventEspresso\core\services\routing\RouteMatchSpecificationCollection' => EE_Dependency_Map::load_from_cache, |
|
767 | - 'EventEspresso\core\services\routing\RouteMatchSpecificationFactory' => EE_Dependency_Map::load_from_cache, |
|
768 | - ], |
|
769 | - 'EE_URL_Validation_Strategy' => [ |
|
770 | - null, |
|
771 | - null, |
|
772 | - 'EventEspresso\core\services\validators\URLValidator' => EE_Dependency_Map::load_from_cache, |
|
773 | - ], |
|
774 | - 'EventEspresso\core\services\request\files\FilesDataHandler' => [ |
|
775 | - 'EventEspresso\core\services\request\Request' => EE_Dependency_Map::load_from_cache, |
|
776 | - ], |
|
777 | - 'EventEspressoBatchRequest\BatchRequestProcessor' => [ |
|
778 | - 'EventEspresso\core\services\loaders\Loader' => EE_Dependency_Map::load_from_cache, |
|
779 | - 'EventEspresso\core\services\request\Request' => EE_Dependency_Map::load_from_cache, |
|
780 | - ], |
|
781 | - 'EventEspresso\core\domain\services\converters\RestApiSpoofer' => [ |
|
782 | - 'WP_REST_Server' => EE_Dependency_Map::load_from_cache, |
|
783 | - 'EED_Core_Rest_Api' => EE_Dependency_Map::load_from_cache, |
|
784 | - 'EventEspresso\core\libraries\rest_api\controllers\model\Read' => EE_Dependency_Map::load_from_cache, |
|
785 | - null, |
|
786 | - ], |
|
787 | - 'EventEspresso\core\services\routing\RouteHandler' => [ |
|
788 | - 'EventEspresso\core\domain\services\capabilities\CapabilitiesChecker' => EE_Dependency_Map::load_from_cache, |
|
789 | - 'EventEspresso\core\services\json\JsonDataNodeHandler' => EE_Dependency_Map::load_from_cache, |
|
790 | - 'EventEspresso\core\services\loaders\Loader' => EE_Dependency_Map::load_from_cache, |
|
791 | - 'EventEspresso\core\services\request\Request' => EE_Dependency_Map::load_from_cache, |
|
792 | - 'EventEspresso\core\services\routing\RouteCollection' => EE_Dependency_Map::load_from_cache, |
|
793 | - ], |
|
794 | - 'EventEspresso\core\services\json\JsonDataNodeHandler' => [ |
|
795 | - 'EventEspresso\core\services\json\JsonDataNodeValidator' => EE_Dependency_Map::load_from_cache, |
|
796 | - ], |
|
797 | - 'EventEspresso\core\services\routing\Router' => [ |
|
798 | - 'EE_Dependency_Map' => EE_Dependency_Map::load_from_cache, |
|
799 | - 'EventEspresso\core\services\loaders\Loader' => EE_Dependency_Map::load_from_cache, |
|
800 | - 'EventEspresso\core\services\routing\RouteHandler' => EE_Dependency_Map::load_from_cache, |
|
801 | - ], |
|
802 | - 'EventEspresso\core\services\assets\AssetManifest' => [ |
|
803 | - 'EventEspresso\core\domain\Domain' => EE_Dependency_Map::load_from_cache, |
|
804 | - ], |
|
805 | - 'EventEspresso\core\services\assets\AssetManifestFactory' => [ |
|
806 | - 'EventEspresso\core\services\loaders\Loader' => EE_Dependency_Map::load_from_cache, |
|
807 | - ], |
|
808 | - 'EventEspresso\core\services\assets\BaristaFactory' => [ |
|
809 | - 'EventEspresso\core\services\assets\AssetManifestFactory' => EE_Dependency_Map::load_from_cache, |
|
810 | - 'EventEspresso\core\services\loaders\Loader' => EE_Dependency_Map::load_from_cache, |
|
811 | - ], |
|
812 | - 'EventEspresso\core\domain\services\capabilities\FeatureFlags' => [ |
|
813 | - 'EventEspresso\core\domain\services\capabilities\CapabilitiesChecker' => EE_Dependency_Map::load_from_cache, |
|
814 | - 'EventEspresso\core\domain\Domain' => EE_Dependency_Map::load_from_cache, |
|
815 | - ], |
|
816 | - 'EventEspresso\core\services\addon\AddonManager' => [ |
|
817 | - 'EventEspresso\core\services\addon\AddonCollection' => EE_Dependency_Map::load_from_cache, |
|
818 | - 'EventEspresso\core\Psr4Autoloader' => EE_Dependency_Map::load_from_cache, |
|
819 | - 'EventEspresso\core\services\addon\api\v1\RegisterAddon' => EE_Dependency_Map::load_from_cache, |
|
820 | - 'EventEspresso\core\services\addon\api\IncompatibleAddonHandler' => EE_Dependency_Map::load_from_cache, |
|
821 | - 'EventEspresso\core\services\addon\api\ThirdPartyPluginHandler' => EE_Dependency_Map::load_from_cache, |
|
822 | - ], |
|
823 | - 'EventEspresso\core\services\addon\api\ThirdPartyPluginHandler' => [ |
|
824 | - 'EventEspresso\core\services\request\Request' => EE_Dependency_Map::load_from_cache, |
|
825 | - ], |
|
826 | - 'EventEspressoBatchRequest\JobHandlers\ExecuteBatchDeletion' => [ |
|
827 | - 'EventEspresso\core\services\orm\tree_traversal\NodeGroupDao' => EE_Dependency_Map::load_from_cache, |
|
828 | - ], |
|
829 | - 'EventEspressoBatchRequest\JobHandlers\PreviewEventDeletion' => [ |
|
830 | - 'EventEspresso\core\services\orm\tree_traversal\NodeGroupDao' => EE_Dependency_Map::load_from_cache, |
|
831 | - ], |
|
832 | - 'EventEspresso\core\domain\services\admin\events\data\PreviewDeletion' => [ |
|
833 | - 'EventEspresso\core\services\orm\tree_traversal\NodeGroupDao' => EE_Dependency_Map::load_from_cache, |
|
834 | - 'EEM_Event' => EE_Dependency_Map::load_from_cache, |
|
835 | - 'EEM_Datetime' => EE_Dependency_Map::load_from_cache, |
|
836 | - 'EEM_Registration' => EE_Dependency_Map::load_from_cache, |
|
837 | - ], |
|
838 | - 'EventEspresso\core\domain\services\admin\events\data\ConfirmDeletion' => [ |
|
839 | - 'EventEspresso\core\services\orm\tree_traversal\NodeGroupDao' => EE_Dependency_Map::load_from_cache, |
|
840 | - ], |
|
841 | - 'EventEspresso\core\services\request\CurrentPage' => [ |
|
842 | - 'EE_CPT_Strategy' => EE_Dependency_Map::load_from_cache, |
|
843 | - 'EventEspresso\core\services\request\Request' => EE_Dependency_Map::load_from_cache, |
|
844 | - ], |
|
845 | - 'EventEspresso\core\services\shortcodes\LegacyShortcodesManager' => [ |
|
846 | - 'EE_Registry' => EE_Dependency_Map::load_from_cache, |
|
847 | - 'EventEspresso\core\services\request\CurrentPage' => EE_Dependency_Map::load_from_cache, |
|
848 | - ], |
|
849 | - 'EventEspresso\core\services\shortcodes\ShortcodesManager' => [ |
|
850 | - 'EventEspresso\core\services\shortcodes\LegacyShortcodesManager' => EE_Dependency_Map::load_from_cache, |
|
851 | - 'EventEspresso\core\services\request\CurrentPage' => EE_Dependency_Map::load_from_cache, |
|
852 | - ], |
|
853 | - 'EventEspresso\core\domain\entities\users\CurrentUser' => [ |
|
854 | - 'EventEspresso\core\domain\entities\users\EventManagers' => EE_Dependency_Map::load_from_cache, |
|
855 | - ], |
|
856 | - 'EventEspresso\core\services\form\meta\InputTypes' => [ |
|
857 | - 'EventEspresso\core\services\form\meta\inputs\Block' => EE_Dependency_Map::load_from_cache, |
|
858 | - 'EventEspresso\core\services\form\meta\inputs\Button' => EE_Dependency_Map::load_from_cache, |
|
859 | - 'EventEspresso\core\services\form\meta\inputs\DateTime' => EE_Dependency_Map::load_from_cache, |
|
860 | - 'EventEspresso\core\services\form\meta\inputs\Input' => EE_Dependency_Map::load_from_cache, |
|
861 | - 'EventEspresso\core\services\form\meta\inputs\Number' => EE_Dependency_Map::load_from_cache, |
|
862 | - 'EventEspresso\core\services\form\meta\inputs\Phone' => EE_Dependency_Map::load_from_cache, |
|
863 | - 'EventEspresso\core\services\form\meta\inputs\Select' => EE_Dependency_Map::load_from_cache, |
|
864 | - 'EventEspresso\core\services\form\meta\inputs\Text' => EE_Dependency_Map::load_from_cache, |
|
865 | - ], |
|
866 | - 'EventEspresso\core\domain\services\registration\form\v1\RegFormDependencyHandler' => [ |
|
867 | - 'EE_Dependency_Map' => EE_Dependency_Map::load_from_cache, |
|
868 | - ], |
|
869 | - 'EventEspresso\core\services\calculators\LineItemCalculator' => [ |
|
870 | - 'EventEspresso\core\services\helpers\DecimalValues' => EE_Dependency_Map::load_from_cache, |
|
871 | - ], |
|
872 | - 'EventEspresso\core\services\helpers\DecimalValues' => [ |
|
873 | - 'EE_Currency_Config' => EE_Dependency_Map::load_from_cache, |
|
874 | - ], |
|
875 | - ]; |
|
876 | - } |
|
877 | - |
|
878 | - |
|
879 | - /** |
|
880 | - * Registers how core classes are loaded. |
|
881 | - * This can either be done by simply providing the name of one of the EE_Registry loader methods such as: |
|
882 | - * 'EE_Request_Handler' => 'load_core' |
|
883 | - * 'EE_Messages_Queue' => 'load_lib' |
|
884 | - * 'EEH_Debug_Tools' => 'load_helper' |
|
885 | - * or, if greater control is required, by providing a custom closure. For example: |
|
886 | - * 'Some_Class' => function () { |
|
887 | - * return new Some_Class(); |
|
888 | - * }, |
|
889 | - * This is required for instantiating dependencies |
|
890 | - * where an interface has been type hinted in a class constructor. For example: |
|
891 | - * 'Required_Interface' => function () { |
|
892 | - * return new A_Class_That_Implements_Required_Interface(); |
|
893 | - * }, |
|
894 | - */ |
|
895 | - protected function _register_core_class_loaders() |
|
896 | - { |
|
897 | - $this->_class_loaders = [ |
|
898 | - // load_core |
|
899 | - 'EE_Dependency_Map' => function () { |
|
900 | - return $this; |
|
901 | - }, |
|
902 | - 'EE_Capabilities' => 'load_core', |
|
903 | - 'EE_Encryption' => 'load_core', |
|
904 | - 'EE_Front_Controller' => 'load_core', |
|
905 | - 'EE_Module_Request_Router' => 'load_core', |
|
906 | - 'EE_Registry' => 'load_core', |
|
907 | - 'EE_Request' => function () { |
|
908 | - return $this->legacy_request; |
|
909 | - }, |
|
910 | - 'EventEspresso\core\services\request\Request' => function () { |
|
911 | - return $this->request; |
|
912 | - }, |
|
913 | - 'EventEspresso\core\services\request\Response' => function () { |
|
914 | - return $this->response; |
|
915 | - }, |
|
916 | - 'EE_Base' => 'load_core', |
|
917 | - 'EE_Request_Handler' => 'load_core', |
|
918 | - 'EE_Session' => 'load_core', |
|
919 | - 'EE_Cron_Tasks' => 'load_core', |
|
920 | - 'EE_System' => 'load_core', |
|
921 | - 'EE_Maintenance_Mode' => 'load_core', |
|
922 | - 'EE_Register_CPTs' => 'load_core', |
|
923 | - 'EE_Admin' => 'load_core', |
|
924 | - 'EE_CPT_Strategy' => 'load_core', |
|
925 | - // load_class |
|
926 | - 'EE_Registration_Processor' => 'load_class', |
|
927 | - // load_lib |
|
928 | - 'EE_Message_Resource_Manager' => 'load_lib', |
|
929 | - 'EE_Message_Type_Collection' => 'load_lib', |
|
930 | - 'EE_Message_Type_Collection_Loader' => 'load_lib', |
|
931 | - 'EE_Messenger_Collection' => 'load_lib', |
|
932 | - 'EE_Messenger_Collection_Loader' => 'load_lib', |
|
933 | - 'EE_Messages_Processor' => 'load_lib', |
|
934 | - 'EE_Message_Repository' => 'load_lib', |
|
935 | - 'EE_Messages_Queue' => 'load_lib', |
|
936 | - 'EE_Messages_Data_Handler_Collection' => 'load_lib', |
|
937 | - 'EE_Message_Template_Group_Collection' => 'load_lib', |
|
938 | - 'EE_Payment_Method_Manager' => 'load_lib', |
|
939 | - 'EE_DMS_Core_4_1_0' => 'load_dms', |
|
940 | - 'EE_DMS_Core_4_2_0' => 'load_dms', |
|
941 | - 'EE_DMS_Core_4_3_0' => 'load_dms', |
|
942 | - 'EE_DMS_Core_4_5_0' => 'load_dms', |
|
943 | - 'EE_DMS_Core_4_6_0' => 'load_dms', |
|
944 | - 'EE_DMS_Core_4_7_0' => 'load_dms', |
|
945 | - 'EE_DMS_Core_4_8_0' => 'load_dms', |
|
946 | - 'EE_DMS_Core_4_9_0' => 'load_dms', |
|
947 | - 'EE_DMS_Core_4_10_0' => 'load_dms', |
|
948 | - 'EE_DMS_Core_4_11_0' => 'load_dms', |
|
949 | - 'EE_DMS_Core_4_12_0' => 'load_dms', |
|
950 | - 'EE_Messages_Generator' => static function () { |
|
951 | - return EE_Registry::instance()->load_lib( |
|
952 | - 'Messages_Generator', |
|
953 | - [], |
|
954 | - false, |
|
955 | - false |
|
956 | - ); |
|
957 | - }, |
|
958 | - 'EE_Messages_Template_Defaults' => static function ($arguments = []) { |
|
959 | - return EE_Registry::instance()->load_lib( |
|
960 | - 'Messages_Template_Defaults', |
|
961 | - $arguments, |
|
962 | - false, |
|
963 | - false |
|
964 | - ); |
|
965 | - }, |
|
966 | - // load_helper |
|
967 | - 'EEH_Parse_Shortcodes' => static function () { |
|
968 | - if (EE_Registry::instance()->load_helper('Parse_Shortcodes')) { |
|
969 | - return new EEH_Parse_Shortcodes(); |
|
970 | - } |
|
971 | - return null; |
|
972 | - }, |
|
973 | - 'EE_Template_Config' => static function () { |
|
974 | - return EE_Config::instance()->template_settings; |
|
975 | - }, |
|
976 | - 'EE_Currency_Config' => static function () { |
|
977 | - return EE_Currency_Config::getCurrencyConfig(); |
|
978 | - }, |
|
979 | - 'EE_Registration_Config' => static function () { |
|
980 | - return EE_Config::instance()->registration; |
|
981 | - }, |
|
982 | - 'EE_Core_Config' => static function () { |
|
983 | - return EE_Config::instance()->core; |
|
984 | - }, |
|
985 | - 'EventEspresso\core\services\loaders\Loader' => static function () { |
|
986 | - return LoaderFactory::getLoader(); |
|
987 | - }, |
|
988 | - 'EE_Network_Config' => static function () { |
|
989 | - return EE_Network_Config::instance(); |
|
990 | - }, |
|
991 | - 'EE_Config' => static function () { |
|
992 | - return EE_Config::instance(); |
|
993 | - }, |
|
994 | - 'EventEspresso\core\domain\Domain' => static function () { |
|
995 | - return DomainFactory::getEventEspressoCoreDomain(); |
|
996 | - }, |
|
997 | - 'EE_Admin_Config' => static function () { |
|
998 | - return EE_Config::instance()->admin; |
|
999 | - }, |
|
1000 | - 'EE_Organization_Config' => static function () { |
|
1001 | - return EE_Config::instance()->organization; |
|
1002 | - }, |
|
1003 | - 'EE_Network_Core_Config' => static function () { |
|
1004 | - return EE_Network_Config::instance()->core; |
|
1005 | - }, |
|
1006 | - 'EE_Environment_Config' => static function () { |
|
1007 | - return EE_Config::instance()->environment; |
|
1008 | - }, |
|
1009 | - 'EED_Core_Rest_Api' => static function () { |
|
1010 | - return EED_Core_Rest_Api::instance(); |
|
1011 | - }, |
|
1012 | - 'WP_REST_Server' => static function () { |
|
1013 | - return rest_get_server(); |
|
1014 | - }, |
|
1015 | - 'EventEspresso\core\Psr4Autoloader' => static function () { |
|
1016 | - return EE_Psr4AutoloaderInit::psr4_loader(); |
|
1017 | - }, |
|
1018 | - 'EE_Ticket_Selector_Config' => function () { |
|
1019 | - return EE_Config::instance()->template_settings->EED_Ticket_Selector; |
|
1020 | - }, |
|
1021 | - ]; |
|
1022 | - } |
|
1023 | - |
|
1024 | - |
|
1025 | - /** |
|
1026 | - * can be used for supplying alternate names for classes, |
|
1027 | - * or for connecting interface names to instantiable classes |
|
1028 | - * |
|
1029 | - * @throws InvalidAliasException |
|
1030 | - */ |
|
1031 | - protected function _register_core_aliases() |
|
1032 | - { |
|
1033 | - $aliases = [ |
|
1034 | - 'CommandBusInterface' => 'EventEspresso\core\services\commands\CommandBusInterface', |
|
1035 | - 'EventEspresso\core\services\commands\CommandBusInterface' => 'EventEspresso\core\services\commands\CommandBus', |
|
1036 | - 'CommandHandlerManagerInterface' => 'EventEspresso\core\services\commands\CommandHandlerManagerInterface', |
|
1037 | - 'EventEspresso\core\services\commands\CommandHandlerManagerInterface' => 'EventEspresso\core\services\commands\CommandHandlerManager', |
|
1038 | - 'CapChecker' => 'EventEspresso\core\services\commands\middleware\CapChecker', |
|
1039 | - 'AddActionHook' => 'EventEspresso\core\services\commands\middleware\AddActionHook', |
|
1040 | - 'CapabilitiesChecker' => 'EventEspresso\core\domain\services\capabilities\CapabilitiesChecker', |
|
1041 | - 'CapabilitiesCheckerInterface' => 'EventEspresso\core\domain\services\capabilities\CapabilitiesCheckerInterface', |
|
1042 | - 'EventEspresso\core\domain\services\capabilities\CapabilitiesCheckerInterface' => 'EventEspresso\core\domain\services\capabilities\CapabilitiesChecker', |
|
1043 | - 'CreateRegistrationService' => 'EventEspresso\core\domain\services\registration\CreateRegistrationService', |
|
1044 | - 'CreateRegistrationCommandHandler' => 'EventEspresso\core\domain\services\commands\registration\CreateRegistrationCommand', |
|
1045 | - 'CopyRegistrationDetailsCommandHandler' => 'EventEspresso\core\domain\services\commands\registration\CopyRegistrationDetailsCommand', |
|
1046 | - 'CopyRegistrationPaymentsCommandHandler' => 'EventEspresso\core\domain\services\commands\registration\CopyRegistrationPaymentsCommand', |
|
1047 | - 'CancelRegistrationAndTicketLineItemCommandHandler' => 'EventEspresso\core\domain\services\commands\registration\CancelRegistrationAndTicketLineItemCommandHandler', |
|
1048 | - 'UpdateRegistrationAndTransactionAfterChangeCommandHandler' => 'EventEspresso\core\domain\services\commands\registration\UpdateRegistrationAndTransactionAfterChangeCommandHandler', |
|
1049 | - 'CreateTicketLineItemCommandHandler' => 'EventEspresso\core\domain\services\commands\ticket\CreateTicketLineItemCommand', |
|
1050 | - 'CreateTransactionCommandHandler' => 'EventEspresso\core\domain\services\commands\transaction\CreateTransactionCommandHandler', |
|
1051 | - 'CreateAttendeeCommandHandler' => 'EventEspresso\core\domain\services\commands\attendee\CreateAttendeeCommandHandler', |
|
1052 | - 'TableManager' => 'EventEspresso\core\services\database\TableManager', |
|
1053 | - 'TableAnalysis' => 'EventEspresso\core\services\database\TableAnalysis', |
|
1054 | - 'EspressoShortcode' => 'EventEspresso\core\services\shortcodes\EspressoShortcode', |
|
1055 | - 'ShortcodeInterface' => 'EventEspresso\core\services\shortcodes\ShortcodeInterface', |
|
1056 | - 'EventEspresso\core\services\shortcodes\ShortcodeInterface' => 'EventEspresso\core\services\shortcodes\EspressoShortcode', |
|
1057 | - 'EventEspresso\core\services\cache\CacheStorageInterface' => 'EventEspresso\core\services\cache\TransientCacheStorage', |
|
1058 | - 'LoaderInterface' => 'EventEspresso\core\services\loaders\LoaderInterface', |
|
1059 | - 'EventEspresso\core\services\loaders\LoaderInterface' => 'EventEspresso\core\services\loaders\Loader', |
|
1060 | - 'CommandFactoryInterface' => 'EventEspresso\core\services\commands\CommandFactoryInterface', |
|
1061 | - 'EventEspresso\core\services\commands\CommandFactoryInterface' => 'EventEspresso\core\services\commands\CommandFactory', |
|
1062 | - 'EmailValidatorInterface' => 'EventEspresso\core\domain\services\validation\email\EmailValidatorInterface', |
|
1063 | - 'EventEspresso\core\domain\services\validation\email\EmailValidatorInterface' => 'EventEspresso\core\domain\services\validation\email\EmailValidationService', |
|
1064 | - 'NoticeConverterInterface' => 'EventEspresso\core\services\notices\NoticeConverterInterface', |
|
1065 | - 'EventEspresso\core\services\notices\NoticeConverterInterface' => 'EventEspresso\core\services\notices\ConvertNoticesToEeErrors', |
|
1066 | - 'NoticesContainerInterface' => 'EventEspresso\core\services\notices\NoticesContainerInterface', |
|
1067 | - 'EventEspresso\core\services\notices\NoticesContainerInterface' => 'EventEspresso\core\services\notices\NoticesContainer', |
|
1068 | - 'EventEspresso\core\services\request\RequestInterface' => 'EventEspresso\core\services\request\Request', |
|
1069 | - 'EventEspresso\core\services\request\ResponseInterface' => 'EventEspresso\core\services\request\Response', |
|
1070 | - 'EventEspresso\core\domain\DomainInterface' => 'EventEspresso\core\domain\Domain', |
|
1071 | - 'Registration_Processor' => 'EE_Registration_Processor', |
|
1072 | - 'EventEspresso\core\services\assets\AssetManifestInterface' => 'EventEspresso\core\services\assets\AssetManifest', |
|
1073 | - ]; |
|
1074 | - foreach ($aliases as $alias => $fqn) { |
|
1075 | - if (is_array($fqn)) { |
|
1076 | - foreach ($fqn as $class => $for_class) { |
|
1077 | - $this->class_cache->addAlias($class, $alias, $for_class); |
|
1078 | - } |
|
1079 | - continue; |
|
1080 | - } |
|
1081 | - $this->class_cache->addAlias($fqn, $alias); |
|
1082 | - } |
|
1083 | - if (! (defined('DOING_AJAX') && DOING_AJAX) && is_admin()) { |
|
1084 | - $this->class_cache->addAlias( |
|
1085 | - 'EventEspresso\core\services\notices\ConvertNoticesToAdminNotices', |
|
1086 | - 'EventEspresso\core\services\notices\NoticeConverterInterface' |
|
1087 | - ); |
|
1088 | - } |
|
1089 | - } |
|
1090 | - |
|
1091 | - |
|
1092 | - public function debug($for_class = '') |
|
1093 | - { |
|
1094 | - if (method_exists($this->class_cache, 'debug')) { |
|
1095 | - $this->class_cache->debug($for_class); |
|
1096 | - } |
|
1097 | - } |
|
1098 | - |
|
1099 | - |
|
1100 | - /** |
|
1101 | - * This is used to reset the internal map and class_loaders to their original default state at the beginning of the |
|
1102 | - * request Primarily used by unit tests. |
|
1103 | - */ |
|
1104 | - public function reset() |
|
1105 | - { |
|
1106 | - $this->_register_core_class_loaders(); |
|
1107 | - $this->_register_core_dependencies(); |
|
1108 | - } |
|
1109 | - |
|
1110 | - |
|
1111 | - /** |
|
1112 | - * PLZ NOTE: a better name for this method would be is_alias() |
|
1113 | - * because it returns TRUE if the provided fully qualified name IS an alias |
|
1114 | - * WHY? |
|
1115 | - * Because if a class is type hinting for a concretion, |
|
1116 | - * then why would we need to find another class to supply it? |
|
1117 | - * ie: if a class asks for `Fully/Qualified/Namespace/SpecificClassName`, |
|
1118 | - * then give it an instance of `Fully/Qualified/Namespace/SpecificClassName`. |
|
1119 | - * Don't go looking for some substitute. |
|
1120 | - * Whereas if a class is type hinting for an interface... |
|
1121 | - * then we need to find an actual class to use. |
|
1122 | - * So the interface IS the alias for some other FQN, |
|
1123 | - * and we need to find out if `Fully/Qualified/Namespace/SomeInterface` |
|
1124 | - * represents some other class. |
|
1125 | - * |
|
1126 | - * @param string $fqn |
|
1127 | - * @param string $for_class |
|
1128 | - * @return bool |
|
1129 | - * @deprecated 4.9.62.p |
|
1130 | - */ |
|
1131 | - public function has_alias(string $fqn = '', string $for_class = ''): bool |
|
1132 | - { |
|
1133 | - return $this->isAlias($fqn, $for_class); |
|
1134 | - } |
|
1135 | - |
|
1136 | - |
|
1137 | - /** |
|
1138 | - * PLZ NOTE: a better name for this method would be get_fqn_for_alias() |
|
1139 | - * because it returns a FQN for provided alias if one exists, otherwise returns the original $alias |
|
1140 | - * functions recursively, so that multiple aliases can be used to drill down to a FQN |
|
1141 | - * for example: |
|
1142 | - * if the following two entries were added to the _aliases array: |
|
1143 | - * array( |
|
1144 | - * 'interface_alias' => 'some\namespace\interface' |
|
1145 | - * 'some\namespace\interface' => 'some\namespace\classname' |
|
1146 | - * ) |
|
1147 | - * then one could use EE_Registry::instance()->create( 'interface_alias' ) |
|
1148 | - * to load an instance of 'some\namespace\classname' |
|
1149 | - * |
|
1150 | - * @param string $alias |
|
1151 | - * @param string $for_class |
|
1152 | - * @return string |
|
1153 | - * @deprecated 4.9.62.p |
|
1154 | - */ |
|
1155 | - public function get_alias(string $alias = '', string $for_class = ''): string |
|
1156 | - { |
|
1157 | - return $this->getFqnForAlias($alias, $for_class); |
|
1158 | - } |
|
23 | + /** |
|
24 | + * This means that the requested class dependency is not present in the dependency map |
|
25 | + */ |
|
26 | + const not_registered = 0; |
|
27 | + |
|
28 | + /** |
|
29 | + * This instructs class loaders to ALWAYS return a newly instantiated object for the requested class. |
|
30 | + */ |
|
31 | + const load_new_object = 1; |
|
32 | + |
|
33 | + /** |
|
34 | + * This instructs class loaders to return a previously instantiated and cached object for the requested class. |
|
35 | + * IF a previously instantiated object does not exist, a new one will be created and added to the cache. |
|
36 | + */ |
|
37 | + const load_from_cache = 2; |
|
38 | + |
|
39 | + /** |
|
40 | + * When registering a dependency, |
|
41 | + * this indicates to keep any existing dependencies that already exist, |
|
42 | + * and simply discard any new dependencies declared in the incoming data |
|
43 | + */ |
|
44 | + const KEEP_EXISTING_DEPENDENCIES = 0; |
|
45 | + |
|
46 | + /** |
|
47 | + * When registering a dependency, |
|
48 | + * this indicates to overwrite any existing dependencies that already exist using the incoming data |
|
49 | + */ |
|
50 | + const OVERWRITE_DEPENDENCIES = 1; |
|
51 | + |
|
52 | + /** |
|
53 | + * @type EE_Dependency_Map $_instance |
|
54 | + */ |
|
55 | + protected static $_instance; |
|
56 | + |
|
57 | + /** |
|
58 | + * @var ClassInterfaceCache $class_cache |
|
59 | + */ |
|
60 | + private $class_cache; |
|
61 | + |
|
62 | + /** |
|
63 | + * @type RequestInterface $request |
|
64 | + */ |
|
65 | + protected $request; |
|
66 | + |
|
67 | + /** |
|
68 | + * @type LegacyRequestInterface $legacy_request |
|
69 | + */ |
|
70 | + protected $legacy_request; |
|
71 | + |
|
72 | + /** |
|
73 | + * @type ResponseInterface $response |
|
74 | + */ |
|
75 | + protected $response; |
|
76 | + |
|
77 | + /** |
|
78 | + * @type LoaderInterface $loader |
|
79 | + */ |
|
80 | + protected $loader; |
|
81 | + |
|
82 | + /** |
|
83 | + * @type array $_dependency_map |
|
84 | + */ |
|
85 | + protected $_dependency_map = []; |
|
86 | + |
|
87 | + /** |
|
88 | + * @type array $_class_loaders |
|
89 | + */ |
|
90 | + protected $_class_loaders = []; |
|
91 | + |
|
92 | + |
|
93 | + /** |
|
94 | + * EE_Dependency_Map constructor. |
|
95 | + * |
|
96 | + * @param ClassInterfaceCache $class_cache |
|
97 | + */ |
|
98 | + protected function __construct(ClassInterfaceCache $class_cache) |
|
99 | + { |
|
100 | + $this->class_cache = $class_cache; |
|
101 | + do_action('EE_Dependency_Map____construct', $this); |
|
102 | + } |
|
103 | + |
|
104 | + |
|
105 | + /** |
|
106 | + * @return void |
|
107 | + * @throws InvalidAliasException |
|
108 | + */ |
|
109 | + public function initialize() |
|
110 | + { |
|
111 | + $this->_register_core_dependencies(); |
|
112 | + $this->_register_core_class_loaders(); |
|
113 | + $this->_register_core_aliases(); |
|
114 | + } |
|
115 | + |
|
116 | + |
|
117 | + /** |
|
118 | + * @singleton method used to instantiate class object |
|
119 | + * @param ClassInterfaceCache|null $class_cache |
|
120 | + * @return EE_Dependency_Map |
|
121 | + */ |
|
122 | + public static function instance(ClassInterfaceCache $class_cache = null): EE_Dependency_Map |
|
123 | + { |
|
124 | + // check if class object is instantiated, and instantiated properly |
|
125 | + if ( |
|
126 | + ! EE_Dependency_Map::$_instance instanceof EE_Dependency_Map |
|
127 | + && $class_cache instanceof ClassInterfaceCache |
|
128 | + ) { |
|
129 | + EE_Dependency_Map::$_instance = new EE_Dependency_Map($class_cache); |
|
130 | + } |
|
131 | + return EE_Dependency_Map::$_instance; |
|
132 | + } |
|
133 | + |
|
134 | + |
|
135 | + /** |
|
136 | + * @param RequestInterface $request |
|
137 | + */ |
|
138 | + public function setRequest(RequestInterface $request) |
|
139 | + { |
|
140 | + $this->request = $request; |
|
141 | + } |
|
142 | + |
|
143 | + |
|
144 | + /** |
|
145 | + * @param LegacyRequestInterface $legacy_request |
|
146 | + */ |
|
147 | + public function setLegacyRequest(LegacyRequestInterface $legacy_request) |
|
148 | + { |
|
149 | + $this->legacy_request = $legacy_request; |
|
150 | + } |
|
151 | + |
|
152 | + |
|
153 | + /** |
|
154 | + * @param ResponseInterface $response |
|
155 | + */ |
|
156 | + public function setResponse(ResponseInterface $response) |
|
157 | + { |
|
158 | + $this->response = $response; |
|
159 | + } |
|
160 | + |
|
161 | + |
|
162 | + /** |
|
163 | + * @param LoaderInterface $loader |
|
164 | + */ |
|
165 | + public function setLoader(LoaderInterface $loader) |
|
166 | + { |
|
167 | + $this->loader = $loader; |
|
168 | + } |
|
169 | + |
|
170 | + |
|
171 | + /** |
|
172 | + * @param string $class |
|
173 | + * @param array $dependencies |
|
174 | + * @param int $overwrite |
|
175 | + * @return bool |
|
176 | + */ |
|
177 | + public static function register_dependencies( |
|
178 | + string $class, |
|
179 | + array $dependencies, |
|
180 | + int $overwrite = EE_Dependency_Map::KEEP_EXISTING_DEPENDENCIES |
|
181 | + ): bool { |
|
182 | + return EE_Dependency_Map::$_instance->registerDependencies($class, $dependencies, $overwrite); |
|
183 | + } |
|
184 | + |
|
185 | + |
|
186 | + /** |
|
187 | + * Assigns an array of class names and corresponding load sources (new or cached) |
|
188 | + * to the class specified by the first parameter. |
|
189 | + * IMPORTANT !!! |
|
190 | + * The order of elements in the incoming $dependencies array MUST match |
|
191 | + * the order of the constructor parameters for the class in question. |
|
192 | + * This is especially important when overriding any existing dependencies that are registered. |
|
193 | + * the third parameter controls whether any duplicate dependencies are overwritten or not. |
|
194 | + * |
|
195 | + * @param string $class |
|
196 | + * @param array $dependencies |
|
197 | + * @param int $overwrite |
|
198 | + * @return bool |
|
199 | + */ |
|
200 | + public function registerDependencies( |
|
201 | + string $class, |
|
202 | + array $dependencies, |
|
203 | + int $overwrite = EE_Dependency_Map::KEEP_EXISTING_DEPENDENCIES |
|
204 | + ): bool { |
|
205 | + $class = trim($class, '\\'); |
|
206 | + $registered = false; |
|
207 | + if (empty(EE_Dependency_Map::$_instance->_dependency_map[ $class ])) { |
|
208 | + EE_Dependency_Map::$_instance->_dependency_map[ $class ] = []; |
|
209 | + } |
|
210 | + // we need to make sure that any aliases used when registering a dependency |
|
211 | + // get resolved to the correct class name |
|
212 | + foreach ($dependencies as $dependency => $load_source) { |
|
213 | + $alias = EE_Dependency_Map::$_instance->getFqnForAlias($dependency); |
|
214 | + if ( |
|
215 | + $overwrite === EE_Dependency_Map::OVERWRITE_DEPENDENCIES |
|
216 | + || ! isset(EE_Dependency_Map::$_instance->_dependency_map[ $class ][ $alias ]) |
|
217 | + ) { |
|
218 | + unset($dependencies[ $dependency ]); |
|
219 | + $dependencies[ $alias ] = $load_source; |
|
220 | + $registered = true; |
|
221 | + } |
|
222 | + } |
|
223 | + // now add our two lists of dependencies together. |
|
224 | + // using Union (+=) favours the arrays in precedence from left to right, |
|
225 | + // so $dependencies is NOT overwritten because it is listed first |
|
226 | + // ie: with A = B + C, entries in B take precedence over duplicate entries in C |
|
227 | + // Union is way faster than array_merge() but should be used with caution... |
|
228 | + // especially with numerically indexed arrays |
|
229 | + $dependencies += EE_Dependency_Map::$_instance->_dependency_map[ $class ]; |
|
230 | + // now we need to ensure that the resulting dependencies |
|
231 | + // array only has the entries that are required for the class |
|
232 | + // so first count how many dependencies were originally registered for the class |
|
233 | + $dependency_count = count(EE_Dependency_Map::$_instance->_dependency_map[ $class ]); |
|
234 | + // if that count is non-zero (meaning dependencies were already registered) |
|
235 | + EE_Dependency_Map::$_instance->_dependency_map[ $class ] = $dependency_count |
|
236 | + // then truncate the final array to match that count |
|
237 | + ? array_slice($dependencies, 0, $dependency_count) |
|
238 | + // otherwise just take the incoming array because nothing previously existed |
|
239 | + : $dependencies; |
|
240 | + return $registered; |
|
241 | + } |
|
242 | + |
|
243 | + |
|
244 | + /** |
|
245 | + * @param string $class_name |
|
246 | + * @param callable|string $loader |
|
247 | + * @param bool $overwrite |
|
248 | + * @return bool |
|
249 | + * @throws DomainException |
|
250 | + */ |
|
251 | + public static function register_class_loader( |
|
252 | + string $class_name, |
|
253 | + $loader = 'load_core', |
|
254 | + bool $overwrite = false |
|
255 | + ): bool { |
|
256 | + return EE_Dependency_Map::$_instance->registerClassLoader($class_name, $loader, $overwrite); |
|
257 | + } |
|
258 | + |
|
259 | + |
|
260 | + /** |
|
261 | + * @param string $class_name |
|
262 | + * @param Closure|string $loader |
|
263 | + * @param bool $overwrite |
|
264 | + * @return bool |
|
265 | + * @throws DomainException |
|
266 | + */ |
|
267 | + public function registerClassLoader(string $class_name, $loader = 'load_core', bool $overwrite = false): bool |
|
268 | + { |
|
269 | + if (! $loader instanceof Closure && strpos($class_name, '\\') !== false) { |
|
270 | + throw new DomainException( |
|
271 | + esc_html__('Don\'t use class loaders for FQCNs.', 'event_espresso') |
|
272 | + ); |
|
273 | + } |
|
274 | + // check that loader is callable or method starts with "load_" and exists in EE_Registry |
|
275 | + if ( |
|
276 | + ! is_callable($loader) |
|
277 | + && ( |
|
278 | + strpos($loader, 'load_') !== 0 |
|
279 | + || ! method_exists('EE_Registry', $loader) |
|
280 | + ) |
|
281 | + ) { |
|
282 | + throw new DomainException( |
|
283 | + sprintf( |
|
284 | + esc_html__( |
|
285 | + '"%1$s" is not a valid loader method on EE_Registry.', |
|
286 | + 'event_espresso' |
|
287 | + ), |
|
288 | + $loader |
|
289 | + ) |
|
290 | + ); |
|
291 | + } |
|
292 | + $class_name = EE_Dependency_Map::$_instance->getFqnForAlias($class_name); |
|
293 | + if ($overwrite || ! isset(EE_Dependency_Map::$_instance->_class_loaders[ $class_name ])) { |
|
294 | + EE_Dependency_Map::$_instance->_class_loaders[ $class_name ] = $loader; |
|
295 | + return true; |
|
296 | + } |
|
297 | + return false; |
|
298 | + } |
|
299 | + |
|
300 | + |
|
301 | + /** |
|
302 | + * @return array |
|
303 | + */ |
|
304 | + public function dependency_map(): array |
|
305 | + { |
|
306 | + return $this->_dependency_map; |
|
307 | + } |
|
308 | + |
|
309 | + |
|
310 | + /** |
|
311 | + * returns TRUE if dependency map contains a listing for the provided class name |
|
312 | + * |
|
313 | + * @param string $class_name |
|
314 | + * @return boolean |
|
315 | + */ |
|
316 | + public function has(string $class_name = ''): bool |
|
317 | + { |
|
318 | + // all legacy models have the same dependencies |
|
319 | + if (strpos($class_name, 'EEM_') === 0) { |
|
320 | + $class_name = 'LEGACY_MODELS'; |
|
321 | + } |
|
322 | + return isset($this->_dependency_map[ $class_name ]); |
|
323 | + } |
|
324 | + |
|
325 | + |
|
326 | + /** |
|
327 | + * returns TRUE if dependency map contains a listing for the provided class name AND dependency |
|
328 | + * |
|
329 | + * @param string $class_name |
|
330 | + * @param string $dependency |
|
331 | + * @return bool |
|
332 | + */ |
|
333 | + public function has_dependency_for_class(string $class_name = '', string $dependency = ''): bool |
|
334 | + { |
|
335 | + // all legacy models have the same dependencies |
|
336 | + if (strpos($class_name, 'EEM_') === 0) { |
|
337 | + $class_name = 'LEGACY_MODELS'; |
|
338 | + } |
|
339 | + $dependency = $this->getFqnForAlias($dependency, $class_name); |
|
340 | + return isset($this->_dependency_map[ $class_name ][ $dependency ]); |
|
341 | + } |
|
342 | + |
|
343 | + |
|
344 | + /** |
|
345 | + * returns loading strategy for whether a previously cached dependency should be loaded or a new instance returned |
|
346 | + * |
|
347 | + * @param string $class_name |
|
348 | + * @param string $dependency |
|
349 | + * @return int |
|
350 | + */ |
|
351 | + public function loading_strategy_for_class_dependency(string $class_name = '', string $dependency = ''): int |
|
352 | + { |
|
353 | + // all legacy models have the same dependencies |
|
354 | + if (strpos($class_name, 'EEM_') === 0) { |
|
355 | + $class_name = 'LEGACY_MODELS'; |
|
356 | + } |
|
357 | + $dependency = $this->getFqnForAlias($dependency); |
|
358 | + return $this->has_dependency_for_class($class_name, $dependency) |
|
359 | + ? $this->_dependency_map[ $class_name ][ $dependency ] |
|
360 | + : EE_Dependency_Map::not_registered; |
|
361 | + } |
|
362 | + |
|
363 | + |
|
364 | + /** |
|
365 | + * @param string $class_name |
|
366 | + * @return string | Closure |
|
367 | + */ |
|
368 | + public function class_loader(string $class_name) |
|
369 | + { |
|
370 | + // all legacy models use load_model() |
|
371 | + if (strpos($class_name, 'EEM_') === 0) { |
|
372 | + return 'load_model'; |
|
373 | + } |
|
374 | + // EE_CPT_*_Strategy classes like EE_CPT_Event_Strategy, EE_CPT_Venue_Strategy, etc |
|
375 | + // perform strpos() first to avoid loading regex every time we load a class |
|
376 | + if ( |
|
377 | + strpos($class_name, 'EE_CPT_') === 0 |
|
378 | + && preg_match('/^EE_CPT_([a-zA-Z]+)_Strategy$/', $class_name) |
|
379 | + ) { |
|
380 | + return 'load_core'; |
|
381 | + } |
|
382 | + $class_name = $this->getFqnForAlias($class_name); |
|
383 | + return $this->_class_loaders[ $class_name ] ?? ''; |
|
384 | + } |
|
385 | + |
|
386 | + |
|
387 | + /** |
|
388 | + * @return array |
|
389 | + */ |
|
390 | + public function class_loaders(): array |
|
391 | + { |
|
392 | + return $this->_class_loaders; |
|
393 | + } |
|
394 | + |
|
395 | + |
|
396 | + /** |
|
397 | + * adds an alias for a classname |
|
398 | + * |
|
399 | + * @param string $fqcn the class name that should be used (concrete class to replace interface) |
|
400 | + * @param string $alias the class name that would be type hinted for (abstract parent or interface) |
|
401 | + * @param string $for_class the class that has the dependency (is type hinting for the interface) |
|
402 | + * @throws InvalidAliasException |
|
403 | + */ |
|
404 | + public function add_alias(string $fqcn, string $alias, string $for_class = '') |
|
405 | + { |
|
406 | + $this->class_cache->addAlias($fqcn, $alias, $for_class); |
|
407 | + } |
|
408 | + |
|
409 | + |
|
410 | + /** |
|
411 | + * Returns TRUE if the provided fully qualified name IS an alias |
|
412 | + * WHY? |
|
413 | + * Because if a class is type hinting for a concretion, |
|
414 | + * then why would we need to find another class to supply it? |
|
415 | + * ie: if a class asks for `Fully/Qualified/Namespace/SpecificClassName`, |
|
416 | + * then give it an instance of `Fully/Qualified/Namespace/SpecificClassName`. |
|
417 | + * Don't go looking for some substitute. |
|
418 | + * Whereas if a class is type hinting for an interface... |
|
419 | + * then we need to find an actual class to use. |
|
420 | + * So the interface IS the alias for some other FQN, |
|
421 | + * and we need to find out if `Fully/Qualified/Namespace/SomeInterface` |
|
422 | + * represents some other class. |
|
423 | + * |
|
424 | + * @param string $fqn |
|
425 | + * @param string $for_class |
|
426 | + * @return bool |
|
427 | + */ |
|
428 | + public function isAlias(string $fqn = '', string $for_class = ''): bool |
|
429 | + { |
|
430 | + return $this->class_cache->isAlias($fqn, $for_class); |
|
431 | + } |
|
432 | + |
|
433 | + |
|
434 | + /** |
|
435 | + * Returns a FQN for provided alias if one exists, otherwise returns the original $alias |
|
436 | + * functions recursively, so that multiple aliases can be used to drill down to a FQN |
|
437 | + * for example: |
|
438 | + * if the following two entries were added to the _aliases array: |
|
439 | + * array( |
|
440 | + * 'interface_alias' => 'some\namespace\interface' |
|
441 | + * 'some\namespace\interface' => 'some\namespace\classname' |
|
442 | + * ) |
|
443 | + * then one could use EE_Registry::instance()->create( 'interface_alias' ) |
|
444 | + * to load an instance of 'some\namespace\classname' |
|
445 | + * |
|
446 | + * @param string $alias |
|
447 | + * @param string $for_class |
|
448 | + * @return string |
|
449 | + */ |
|
450 | + public function getFqnForAlias(string $alias = '', string $for_class = ''): string |
|
451 | + { |
|
452 | + return $this->class_cache->getFqnForAlias($alias, $for_class); |
|
453 | + } |
|
454 | + |
|
455 | + |
|
456 | + /** |
|
457 | + * Registers the core dependencies and whether a previously instantiated object should be loaded from the cache, |
|
458 | + * if one exists, or whether a new object should be generated every time the requested class is loaded. |
|
459 | + * This is done by using the following class constants: |
|
460 | + * EE_Dependency_Map::load_from_cache - loads previously instantiated object |
|
461 | + * EE_Dependency_Map::load_new_object - generates a new object every time |
|
462 | + */ |
|
463 | + protected function _register_core_dependencies() |
|
464 | + { |
|
465 | + $this->_dependency_map = [ |
|
466 | + 'EE_Admin' => [ |
|
467 | + 'EventEspresso\core\services\loaders\Loader' => EE_Dependency_Map::load_from_cache, |
|
468 | + 'EventEspresso\core\services\request\Request' => EE_Dependency_Map::load_from_cache, |
|
469 | + ], |
|
470 | + 'EE_Request_Handler' => [ |
|
471 | + 'EventEspresso\core\services\request\Request' => EE_Dependency_Map::load_from_cache, |
|
472 | + 'EventEspresso\core\services\request\Response' => EE_Dependency_Map::load_from_cache, |
|
473 | + ], |
|
474 | + 'EE_System' => [ |
|
475 | + 'EventEspresso\core\services\loaders\Loader' => EE_Dependency_Map::load_from_cache, |
|
476 | + 'EE_Maintenance_Mode' => EE_Dependency_Map::load_from_cache, |
|
477 | + 'EE_Registry' => EE_Dependency_Map::load_from_cache, |
|
478 | + 'EventEspresso\core\services\request\Request' => EE_Dependency_Map::load_from_cache, |
|
479 | + 'EventEspresso\core\services\routing\Router' => EE_Dependency_Map::load_from_cache, |
|
480 | + ], |
|
481 | + 'EE_Session' => [ |
|
482 | + 'EventEspresso\core\services\cache\TransientCacheStorage' => EE_Dependency_Map::load_from_cache, |
|
483 | + 'EventEspresso\core\domain\values\session\SessionLifespan' => EE_Dependency_Map::load_from_cache, |
|
484 | + 'EventEspresso\core\services\request\Request' => EE_Dependency_Map::load_from_cache, |
|
485 | + 'EventEspresso\core\services\session\SessionStartHandler' => EE_Dependency_Map::load_from_cache, |
|
486 | + 'EE_Encryption' => EE_Dependency_Map::load_from_cache, |
|
487 | + ], |
|
488 | + 'EE_Cart' => [ |
|
489 | + 'EE_Session' => EE_Dependency_Map::load_from_cache, |
|
490 | + ], |
|
491 | + 'EE_Messenger_Collection_Loader' => [ |
|
492 | + 'EE_Messenger_Collection' => EE_Dependency_Map::load_new_object, |
|
493 | + ], |
|
494 | + 'EE_Message_Type_Collection_Loader' => [ |
|
495 | + 'EE_Message_Type_Collection' => EE_Dependency_Map::load_new_object, |
|
496 | + ], |
|
497 | + 'EE_Message_Resource_Manager' => [ |
|
498 | + 'EE_Messenger_Collection_Loader' => EE_Dependency_Map::load_new_object, |
|
499 | + 'EE_Message_Type_Collection_Loader' => EE_Dependency_Map::load_new_object, |
|
500 | + 'EEM_Message_Template_Group' => EE_Dependency_Map::load_from_cache, |
|
501 | + ], |
|
502 | + 'EE_Message_Factory' => [ |
|
503 | + 'EE_Message_Resource_Manager' => EE_Dependency_Map::load_from_cache, |
|
504 | + ], |
|
505 | + 'EE_messages' => [ |
|
506 | + 'EE_Message_Resource_Manager' => EE_Dependency_Map::load_from_cache, |
|
507 | + ], |
|
508 | + 'EE_Messages_Generator' => [ |
|
509 | + 'EE_Messages_Queue' => EE_Dependency_Map::load_new_object, |
|
510 | + 'EE_Messages_Data_Handler_Collection' => EE_Dependency_Map::load_new_object, |
|
511 | + 'EE_Message_Template_Group_Collection' => EE_Dependency_Map::load_new_object, |
|
512 | + 'EEH_Parse_Shortcodes' => EE_Dependency_Map::load_from_cache, |
|
513 | + ], |
|
514 | + 'EE_Messages_Processor' => [ |
|
515 | + 'EE_Message_Resource_Manager' => EE_Dependency_Map::load_from_cache, |
|
516 | + ], |
|
517 | + 'EE_Messages_Queue' => [ |
|
518 | + 'EE_Message_Repository' => EE_Dependency_Map::load_new_object, |
|
519 | + ], |
|
520 | + 'EE_Messages_Template_Defaults' => [ |
|
521 | + 'EEM_Message_Template_Group' => EE_Dependency_Map::load_from_cache, |
|
522 | + 'EEM_Message_Template' => EE_Dependency_Map::load_from_cache, |
|
523 | + ], |
|
524 | + 'EE_Message_To_Generate_From_Request' => [ |
|
525 | + 'EE_Message_Resource_Manager' => EE_Dependency_Map::load_from_cache, |
|
526 | + 'EventEspresso\core\services\request\Request' => EE_Dependency_Map::load_from_cache, |
|
527 | + ], |
|
528 | + 'EventEspresso\core\services\commands\CommandBus' => [ |
|
529 | + 'EventEspresso\core\services\commands\CommandHandlerManager' => EE_Dependency_Map::load_from_cache, |
|
530 | + ], |
|
531 | + 'EventEspresso\services\commands\CommandHandler' => [ |
|
532 | + 'EE_Registry' => EE_Dependency_Map::load_from_cache, |
|
533 | + 'CommandBusInterface' => EE_Dependency_Map::load_from_cache, |
|
534 | + ], |
|
535 | + 'EventEspresso\core\services\commands\CommandHandlerManager' => [ |
|
536 | + 'EventEspresso\core\services\loaders\Loader' => EE_Dependency_Map::load_from_cache, |
|
537 | + ], |
|
538 | + 'EventEspresso\core\services\commands\CompositeCommandHandler' => [ |
|
539 | + 'EventEspresso\core\services\commands\CommandBus' => EE_Dependency_Map::load_from_cache, |
|
540 | + 'EventEspresso\core\services\commands\CommandFactory' => EE_Dependency_Map::load_from_cache, |
|
541 | + ], |
|
542 | + 'EventEspresso\core\services\commands\CommandFactory' => [ |
|
543 | + 'EventEspresso\core\services\loaders\Loader' => EE_Dependency_Map::load_from_cache, |
|
544 | + ], |
|
545 | + 'EventEspresso\core\services\commands\middleware\CapChecker' => [ |
|
546 | + 'EventEspresso\core\domain\services\capabilities\CapabilitiesChecker' => EE_Dependency_Map::load_from_cache, |
|
547 | + ], |
|
548 | + 'EventEspresso\core\domain\services\capabilities\CapabilitiesChecker' => [ |
|
549 | + 'EE_Capabilities' => EE_Dependency_Map::load_from_cache, |
|
550 | + ], |
|
551 | + 'EventEspresso\core\domain\services\capabilities\RegistrationsCapChecker' => [ |
|
552 | + 'EE_Capabilities' => EE_Dependency_Map::load_from_cache, |
|
553 | + ], |
|
554 | + 'EventEspresso\core\domain\services\commands\registration\CreateRegistrationCommandHandler' => [ |
|
555 | + 'EventEspresso\core\domain\services\registration\CreateRegistrationService' => EE_Dependency_Map::load_from_cache, |
|
556 | + ], |
|
557 | + 'EventEspresso\core\domain\services\commands\registration\CopyRegistrationDetailsCommandHandler' => [ |
|
558 | + 'EventEspresso\core\domain\services\registration\CopyRegistrationService' => EE_Dependency_Map::load_from_cache, |
|
559 | + ], |
|
560 | + 'EventEspresso\core\domain\services\commands\registration\CopyRegistrationPaymentsCommandHandler' => [ |
|
561 | + 'EventEspresso\core\domain\services\registration\CopyRegistrationService' => EE_Dependency_Map::load_from_cache, |
|
562 | + ], |
|
563 | + 'EventEspresso\core\domain\services\commands\registration\CancelRegistrationAndTicketLineItemCommandHandler' => [ |
|
564 | + 'EventEspresso\core\domain\services\registration\CancelTicketLineItemService' => EE_Dependency_Map::load_from_cache, |
|
565 | + ], |
|
566 | + 'EventEspresso\core\domain\services\commands\registration\UpdateRegistrationAndTransactionAfterChangeCommandHandler' => [ |
|
567 | + 'EventEspresso\core\domain\services\registration\UpdateRegistrationService' => EE_Dependency_Map::load_from_cache, |
|
568 | + ], |
|
569 | + 'EventEspresso\core\domain\services\commands\ticket\CreateTicketLineItemCommandHandler' => [ |
|
570 | + 'EventEspresso\core\domain\services\ticket\CreateTicketLineItemService' => EE_Dependency_Map::load_from_cache, |
|
571 | + ], |
|
572 | + 'EventEspresso\core\domain\services\commands\ticket\CancelTicketLineItemCommandHandler' => [ |
|
573 | + 'EventEspresso\core\domain\services\ticket\CancelTicketLineItemService' => EE_Dependency_Map::load_from_cache, |
|
574 | + ], |
|
575 | + 'EventEspresso\core\domain\services\registration\CancelRegistrationService' => [ |
|
576 | + 'EventEspresso\core\domain\services\ticket\CancelTicketLineItemService' => EE_Dependency_Map::load_from_cache, |
|
577 | + ], |
|
578 | + 'EventEspresso\core\domain\services\commands\attendee\CreateAttendeeCommandHandler' => [ |
|
579 | + 'EEM_Attendee' => EE_Dependency_Map::load_from_cache, |
|
580 | + ], |
|
581 | + 'EventEspresso\core\domain\values\session\SessionLifespan' => [ |
|
582 | + 'EventEspresso\core\domain\values\session\SessionLifespanOption' => EE_Dependency_Map::load_from_cache, |
|
583 | + ], |
|
584 | + 'EventEspresso\caffeinated\admin\extend\registration_form\forms\SessionLifespanForm' => [ |
|
585 | + 'EventEspresso\core\domain\values\session\SessionLifespanOption' => EE_Dependency_Map::load_from_cache, |
|
586 | + ], |
|
587 | + 'EventEspresso\caffeinated\admin\extend\registration_form\forms\SessionLifespanFormHandler' => [ |
|
588 | + 'EventEspresso\core\domain\values\session\SessionLifespanOption' => EE_Dependency_Map::load_from_cache, |
|
589 | + ], |
|
590 | + 'EventEspresso\core\services\database\TableManager' => [ |
|
591 | + 'EventEspresso\core\services\database\TableAnalysis' => EE_Dependency_Map::load_from_cache, |
|
592 | + ], |
|
593 | + 'EE_Data_Migration_Class_Base' => [ |
|
594 | + 'EventEspresso\core\services\database\TableAnalysis' => EE_Dependency_Map::load_from_cache, |
|
595 | + 'EventEspresso\core\services\database\TableManager' => EE_Dependency_Map::load_from_cache, |
|
596 | + ], |
|
597 | + 'EE_DMS_Core_4_1_0' => [ |
|
598 | + 'EventEspresso\core\services\database\TableAnalysis' => EE_Dependency_Map::load_from_cache, |
|
599 | + 'EventEspresso\core\services\database\TableManager' => EE_Dependency_Map::load_from_cache, |
|
600 | + ], |
|
601 | + 'EE_DMS_Core_4_2_0' => [ |
|
602 | + 'EventEspresso\core\services\database\TableAnalysis' => EE_Dependency_Map::load_from_cache, |
|
603 | + 'EventEspresso\core\services\database\TableManager' => EE_Dependency_Map::load_from_cache, |
|
604 | + ], |
|
605 | + 'EE_DMS_Core_4_3_0' => [ |
|
606 | + 'EventEspresso\core\services\database\TableAnalysis' => EE_Dependency_Map::load_from_cache, |
|
607 | + 'EventEspresso\core\services\database\TableManager' => EE_Dependency_Map::load_from_cache, |
|
608 | + ], |
|
609 | + 'EE_DMS_Core_4_4_0' => [ |
|
610 | + 'EventEspresso\core\services\database\TableAnalysis' => EE_Dependency_Map::load_from_cache, |
|
611 | + 'EventEspresso\core\services\database\TableManager' => EE_Dependency_Map::load_from_cache, |
|
612 | + ], |
|
613 | + 'EE_DMS_Core_4_5_0' => [ |
|
614 | + 'EventEspresso\core\services\database\TableAnalysis' => EE_Dependency_Map::load_from_cache, |
|
615 | + 'EventEspresso\core\services\database\TableManager' => EE_Dependency_Map::load_from_cache, |
|
616 | + ], |
|
617 | + 'EE_DMS_Core_4_6_0' => [ |
|
618 | + 'EventEspresso\core\services\database\TableAnalysis' => EE_Dependency_Map::load_from_cache, |
|
619 | + 'EventEspresso\core\services\database\TableManager' => EE_Dependency_Map::load_from_cache, |
|
620 | + ], |
|
621 | + 'EE_DMS_Core_4_7_0' => [ |
|
622 | + 'EventEspresso\core\services\database\TableAnalysis' => EE_Dependency_Map::load_from_cache, |
|
623 | + 'EventEspresso\core\services\database\TableManager' => EE_Dependency_Map::load_from_cache, |
|
624 | + ], |
|
625 | + 'EE_DMS_Core_4_8_0' => [ |
|
626 | + 'EventEspresso\core\services\database\TableAnalysis' => EE_Dependency_Map::load_from_cache, |
|
627 | + 'EventEspresso\core\services\database\TableManager' => EE_Dependency_Map::load_from_cache, |
|
628 | + ], |
|
629 | + 'EE_DMS_Core_4_9_0' => [ |
|
630 | + 'EventEspresso\core\services\database\TableAnalysis' => EE_Dependency_Map::load_from_cache, |
|
631 | + 'EventEspresso\core\services\database\TableManager' => EE_Dependency_Map::load_from_cache, |
|
632 | + ], |
|
633 | + 'EE_DMS_Core_4_10_0' => [ |
|
634 | + 'EventEspresso\core\services\database\TableAnalysis' => EE_Dependency_Map::load_from_cache, |
|
635 | + 'EventEspresso\core\services\database\TableManager' => EE_Dependency_Map::load_from_cache, |
|
636 | + 'EE_DMS_Core_4_9_0' => EE_Dependency_Map::load_from_cache, |
|
637 | + ], |
|
638 | + 'EE_DMS_Core_4_11_0' => [ |
|
639 | + 'EE_DMS_Core_4_10_0' => EE_Dependency_Map::load_from_cache, |
|
640 | + 'EventEspresso\core\services\database\TableAnalysis' => EE_Dependency_Map::load_from_cache, |
|
641 | + 'EventEspresso\core\services\database\TableManager' => EE_Dependency_Map::load_from_cache, |
|
642 | + ], |
|
643 | + 'EE_DMS_Core_4_12_0' => [ |
|
644 | + 'EE_DMS_Core_4_11_0' => EE_Dependency_Map::load_from_cache, |
|
645 | + 'EventEspresso\core\services\database\TableAnalysis' => EE_Dependency_Map::load_from_cache, |
|
646 | + 'EventEspresso\core\services\database\TableManager' => EE_Dependency_Map::load_from_cache, |
|
647 | + ], |
|
648 | + 'EventEspresso\core\services\assets\I18nRegistry' => [ |
|
649 | + 'EventEspresso\core\domain\Domain' => EE_Dependency_Map::load_from_cache, |
|
650 | + ], |
|
651 | + 'EventEspresso\core\services\assets\Registry' => [ |
|
652 | + 'EventEspresso\core\services\assets\AssetCollection' => EE_Dependency_Map::load_from_cache, |
|
653 | + 'EventEspresso\core\services\assets\AssetManifest' => EE_Dependency_Map::load_from_cache, |
|
654 | + ], |
|
655 | + 'EventEspresso\core\domain\entities\shortcodes\EspressoCancelled' => [ |
|
656 | + 'EventEspresso\core\services\cache\PostRelatedCacheManager' => EE_Dependency_Map::load_from_cache, |
|
657 | + ], |
|
658 | + 'EventEspresso\core\domain\entities\shortcodes\EspressoCheckout' => [ |
|
659 | + 'EventEspresso\core\services\cache\PostRelatedCacheManager' => EE_Dependency_Map::load_from_cache, |
|
660 | + ], |
|
661 | + 'EventEspresso\core\domain\entities\shortcodes\EspressoEventAttendees' => [ |
|
662 | + 'EventEspresso\core\services\cache\PostRelatedCacheManager' => EE_Dependency_Map::load_from_cache, |
|
663 | + ], |
|
664 | + 'EventEspresso\core\domain\entities\shortcodes\EspressoEvents' => [ |
|
665 | + 'EventEspresso\core\services\cache\PostRelatedCacheManager' => EE_Dependency_Map::load_from_cache, |
|
666 | + ], |
|
667 | + 'EventEspresso\core\domain\entities\shortcodes\EspressoThankYou' => [ |
|
668 | + 'EventEspresso\core\services\cache\PostRelatedCacheManager' => EE_Dependency_Map::load_from_cache, |
|
669 | + ], |
|
670 | + 'EventEspresso\core\domain\entities\shortcodes\EspressoTicketSelector' => [ |
|
671 | + 'EventEspresso\core\services\cache\PostRelatedCacheManager' => EE_Dependency_Map::load_from_cache, |
|
672 | + ], |
|
673 | + 'EventEspresso\core\domain\entities\shortcodes\EspressoTxnPage' => [ |
|
674 | + 'EventEspresso\core\services\cache\PostRelatedCacheManager' => EE_Dependency_Map::load_from_cache, |
|
675 | + ], |
|
676 | + 'EventEspresso\core\services\cache\BasicCacheManager' => [ |
|
677 | + 'EventEspresso\core\services\cache\TransientCacheStorage' => EE_Dependency_Map::load_from_cache, |
|
678 | + ], |
|
679 | + 'EventEspresso\core\services\cache\PostRelatedCacheManager' => [ |
|
680 | + 'EventEspresso\core\services\cache\TransientCacheStorage' => EE_Dependency_Map::load_from_cache, |
|
681 | + ], |
|
682 | + 'EventEspresso\core\domain\services\validation\email\EmailValidationService' => [ |
|
683 | + 'EE_Registration_Config' => EE_Dependency_Map::load_from_cache, |
|
684 | + 'EventEspresso\core\services\loaders\Loader' => EE_Dependency_Map::load_from_cache, |
|
685 | + ], |
|
686 | + 'EventEspresso\core\domain\values\EmailAddress' => [ |
|
687 | + null, |
|
688 | + 'EventEspresso\core\domain\services\validation\email\EmailValidationService' => EE_Dependency_Map::load_from_cache, |
|
689 | + ], |
|
690 | + 'EventEspresso\core\services\orm\ModelFieldFactory' => [ |
|
691 | + 'EventEspresso\core\services\loaders\Loader' => EE_Dependency_Map::load_from_cache, |
|
692 | + ], |
|
693 | + 'LEGACY_MODELS' => [ |
|
694 | + null, |
|
695 | + 'EventEspresso\core\services\database\ModelFieldFactory' => EE_Dependency_Map::load_from_cache, |
|
696 | + ], |
|
697 | + 'EE_Module_Request_Router' => [ |
|
698 | + 'EventEspresso\core\services\request\Request' => EE_Dependency_Map::load_from_cache, |
|
699 | + ], |
|
700 | + 'EE_Registration_Processor' => [ |
|
701 | + 'EventEspresso\core\services\request\Request' => EE_Dependency_Map::load_from_cache, |
|
702 | + ], |
|
703 | + 'EventEspresso\core\services\notifications\PersistentAdminNoticeManager' => [ |
|
704 | + 'EventEspresso\core\domain\services\capabilities\CapabilitiesChecker' => EE_Dependency_Map::load_from_cache, |
|
705 | + 'EventEspresso\core\services\request\Request' => EE_Dependency_Map::load_from_cache, |
|
706 | + ], |
|
707 | + 'EventEspresso\caffeinated\modules\recaptcha_invisible\InvisibleRecaptcha' => [ |
|
708 | + 'EE_Registration_Config' => EE_Dependency_Map::load_from_cache, |
|
709 | + 'EE_Session' => EE_Dependency_Map::load_from_cache, |
|
710 | + ], |
|
711 | + 'EventEspresso\modules\ticket_selector\DisplayTicketSelector' => [ |
|
712 | + 'EventEspresso\core\domain\entities\users\CurrentUser' => EE_Dependency_Map::load_from_cache, |
|
713 | + 'EventEspresso\core\services\request\Request' => EE_Dependency_Map::load_from_cache, |
|
714 | + 'EE_Ticket_Selector_Config' => EE_Dependency_Map::load_from_cache, |
|
715 | + ], |
|
716 | + 'EventEspresso\modules\ticket_selector\ProcessTicketSelector' => [ |
|
717 | + 'EE_Core_Config' => EE_Dependency_Map::load_from_cache, |
|
718 | + 'EventEspresso\core\services\request\Request' => EE_Dependency_Map::load_from_cache, |
|
719 | + 'EE_Session' => EE_Dependency_Map::load_from_cache, |
|
720 | + 'EEM_Ticket' => EE_Dependency_Map::load_from_cache, |
|
721 | + 'EventEspresso\modules\ticket_selector\TicketDatetimeAvailabilityTracker' => EE_Dependency_Map::load_from_cache, |
|
722 | + ], |
|
723 | + 'EventEspresso\modules\ticket_selector\TicketDatetimeAvailabilityTracker' => [ |
|
724 | + 'EEM_Datetime' => EE_Dependency_Map::load_from_cache, |
|
725 | + ], |
|
726 | + 'EventEspresso\core\domain\entities\custom_post_types\CustomPostTypeDefinitions' => [ |
|
727 | + 'EE_Core_Config' => EE_Dependency_Map::load_from_cache, |
|
728 | + 'EventEspresso\core\services\loaders\Loader' => EE_Dependency_Map::load_from_cache, |
|
729 | + ], |
|
730 | + 'EventEspresso\core\domain\services\custom_post_types\RegisterCustomPostTypes' => [ |
|
731 | + 'EventEspresso\core\domain\entities\custom_post_types\CustomPostTypeDefinitions' => EE_Dependency_Map::load_from_cache, |
|
732 | + ], |
|
733 | + 'EventEspresso\core\domain\services\custom_post_types\RegisterCustomTaxonomies' => [ |
|
734 | + 'EventEspresso\core\domain\entities\custom_post_types\CustomTaxonomyDefinitions' => EE_Dependency_Map::load_from_cache, |
|
735 | + ], |
|
736 | + 'EE_CPT_Strategy' => [ |
|
737 | + 'EventEspresso\core\domain\entities\custom_post_types\CustomPostTypeDefinitions' => EE_Dependency_Map::load_from_cache, |
|
738 | + 'EventEspresso\core\domain\entities\custom_post_types\CustomTaxonomyDefinitions' => EE_Dependency_Map::load_from_cache, |
|
739 | + ], |
|
740 | + 'EventEspresso\core\services\loaders\ObjectIdentifier' => [ |
|
741 | + 'EventEspresso\core\services\loaders\ClassInterfaceCache' => EE_Dependency_Map::load_from_cache, |
|
742 | + ], |
|
743 | + 'EventEspresso\core\CPTs\CptQueryModifier' => [ |
|
744 | + null, |
|
745 | + null, |
|
746 | + null, |
|
747 | + 'EventEspresso\core\services\request\CurrentPage' => EE_Dependency_Map::load_from_cache, |
|
748 | + 'EventEspresso\core\services\request\Request' => EE_Dependency_Map::load_from_cache, |
|
749 | + 'EventEspresso\core\services\loaders\Loader' => EE_Dependency_Map::load_from_cache, |
|
750 | + ], |
|
751 | + 'EventEspresso\core\services\dependencies\DependencyResolver' => [ |
|
752 | + 'EventEspresso\core\services\container\Mirror' => EE_Dependency_Map::load_from_cache, |
|
753 | + 'EventEspresso\core\services\loaders\ClassInterfaceCache' => EE_Dependency_Map::load_from_cache, |
|
754 | + 'EE_Dependency_Map' => EE_Dependency_Map::load_from_cache, |
|
755 | + ], |
|
756 | + 'EventEspresso\core\services\routing\RouteMatchSpecificationDependencyResolver' => [ |
|
757 | + 'EventEspresso\core\services\container\Mirror' => EE_Dependency_Map::load_from_cache, |
|
758 | + 'EventEspresso\core\services\loaders\ClassInterfaceCache' => EE_Dependency_Map::load_from_cache, |
|
759 | + 'EE_Dependency_Map' => EE_Dependency_Map::load_from_cache, |
|
760 | + ], |
|
761 | + 'EventEspresso\core\services\routing\RouteMatchSpecificationFactory' => [ |
|
762 | + 'EventEspresso\core\services\routing\RouteMatchSpecificationDependencyResolver' => EE_Dependency_Map::load_from_cache, |
|
763 | + 'EventEspresso\core\services\loaders\Loader' => EE_Dependency_Map::load_from_cache, |
|
764 | + ], |
|
765 | + 'EventEspresso\core\services\routing\RouteMatchSpecificationManager' => [ |
|
766 | + 'EventEspresso\core\services\routing\RouteMatchSpecificationCollection' => EE_Dependency_Map::load_from_cache, |
|
767 | + 'EventEspresso\core\services\routing\RouteMatchSpecificationFactory' => EE_Dependency_Map::load_from_cache, |
|
768 | + ], |
|
769 | + 'EE_URL_Validation_Strategy' => [ |
|
770 | + null, |
|
771 | + null, |
|
772 | + 'EventEspresso\core\services\validators\URLValidator' => EE_Dependency_Map::load_from_cache, |
|
773 | + ], |
|
774 | + 'EventEspresso\core\services\request\files\FilesDataHandler' => [ |
|
775 | + 'EventEspresso\core\services\request\Request' => EE_Dependency_Map::load_from_cache, |
|
776 | + ], |
|
777 | + 'EventEspressoBatchRequest\BatchRequestProcessor' => [ |
|
778 | + 'EventEspresso\core\services\loaders\Loader' => EE_Dependency_Map::load_from_cache, |
|
779 | + 'EventEspresso\core\services\request\Request' => EE_Dependency_Map::load_from_cache, |
|
780 | + ], |
|
781 | + 'EventEspresso\core\domain\services\converters\RestApiSpoofer' => [ |
|
782 | + 'WP_REST_Server' => EE_Dependency_Map::load_from_cache, |
|
783 | + 'EED_Core_Rest_Api' => EE_Dependency_Map::load_from_cache, |
|
784 | + 'EventEspresso\core\libraries\rest_api\controllers\model\Read' => EE_Dependency_Map::load_from_cache, |
|
785 | + null, |
|
786 | + ], |
|
787 | + 'EventEspresso\core\services\routing\RouteHandler' => [ |
|
788 | + 'EventEspresso\core\domain\services\capabilities\CapabilitiesChecker' => EE_Dependency_Map::load_from_cache, |
|
789 | + 'EventEspresso\core\services\json\JsonDataNodeHandler' => EE_Dependency_Map::load_from_cache, |
|
790 | + 'EventEspresso\core\services\loaders\Loader' => EE_Dependency_Map::load_from_cache, |
|
791 | + 'EventEspresso\core\services\request\Request' => EE_Dependency_Map::load_from_cache, |
|
792 | + 'EventEspresso\core\services\routing\RouteCollection' => EE_Dependency_Map::load_from_cache, |
|
793 | + ], |
|
794 | + 'EventEspresso\core\services\json\JsonDataNodeHandler' => [ |
|
795 | + 'EventEspresso\core\services\json\JsonDataNodeValidator' => EE_Dependency_Map::load_from_cache, |
|
796 | + ], |
|
797 | + 'EventEspresso\core\services\routing\Router' => [ |
|
798 | + 'EE_Dependency_Map' => EE_Dependency_Map::load_from_cache, |
|
799 | + 'EventEspresso\core\services\loaders\Loader' => EE_Dependency_Map::load_from_cache, |
|
800 | + 'EventEspresso\core\services\routing\RouteHandler' => EE_Dependency_Map::load_from_cache, |
|
801 | + ], |
|
802 | + 'EventEspresso\core\services\assets\AssetManifest' => [ |
|
803 | + 'EventEspresso\core\domain\Domain' => EE_Dependency_Map::load_from_cache, |
|
804 | + ], |
|
805 | + 'EventEspresso\core\services\assets\AssetManifestFactory' => [ |
|
806 | + 'EventEspresso\core\services\loaders\Loader' => EE_Dependency_Map::load_from_cache, |
|
807 | + ], |
|
808 | + 'EventEspresso\core\services\assets\BaristaFactory' => [ |
|
809 | + 'EventEspresso\core\services\assets\AssetManifestFactory' => EE_Dependency_Map::load_from_cache, |
|
810 | + 'EventEspresso\core\services\loaders\Loader' => EE_Dependency_Map::load_from_cache, |
|
811 | + ], |
|
812 | + 'EventEspresso\core\domain\services\capabilities\FeatureFlags' => [ |
|
813 | + 'EventEspresso\core\domain\services\capabilities\CapabilitiesChecker' => EE_Dependency_Map::load_from_cache, |
|
814 | + 'EventEspresso\core\domain\Domain' => EE_Dependency_Map::load_from_cache, |
|
815 | + ], |
|
816 | + 'EventEspresso\core\services\addon\AddonManager' => [ |
|
817 | + 'EventEspresso\core\services\addon\AddonCollection' => EE_Dependency_Map::load_from_cache, |
|
818 | + 'EventEspresso\core\Psr4Autoloader' => EE_Dependency_Map::load_from_cache, |
|
819 | + 'EventEspresso\core\services\addon\api\v1\RegisterAddon' => EE_Dependency_Map::load_from_cache, |
|
820 | + 'EventEspresso\core\services\addon\api\IncompatibleAddonHandler' => EE_Dependency_Map::load_from_cache, |
|
821 | + 'EventEspresso\core\services\addon\api\ThirdPartyPluginHandler' => EE_Dependency_Map::load_from_cache, |
|
822 | + ], |
|
823 | + 'EventEspresso\core\services\addon\api\ThirdPartyPluginHandler' => [ |
|
824 | + 'EventEspresso\core\services\request\Request' => EE_Dependency_Map::load_from_cache, |
|
825 | + ], |
|
826 | + 'EventEspressoBatchRequest\JobHandlers\ExecuteBatchDeletion' => [ |
|
827 | + 'EventEspresso\core\services\orm\tree_traversal\NodeGroupDao' => EE_Dependency_Map::load_from_cache, |
|
828 | + ], |
|
829 | + 'EventEspressoBatchRequest\JobHandlers\PreviewEventDeletion' => [ |
|
830 | + 'EventEspresso\core\services\orm\tree_traversal\NodeGroupDao' => EE_Dependency_Map::load_from_cache, |
|
831 | + ], |
|
832 | + 'EventEspresso\core\domain\services\admin\events\data\PreviewDeletion' => [ |
|
833 | + 'EventEspresso\core\services\orm\tree_traversal\NodeGroupDao' => EE_Dependency_Map::load_from_cache, |
|
834 | + 'EEM_Event' => EE_Dependency_Map::load_from_cache, |
|
835 | + 'EEM_Datetime' => EE_Dependency_Map::load_from_cache, |
|
836 | + 'EEM_Registration' => EE_Dependency_Map::load_from_cache, |
|
837 | + ], |
|
838 | + 'EventEspresso\core\domain\services\admin\events\data\ConfirmDeletion' => [ |
|
839 | + 'EventEspresso\core\services\orm\tree_traversal\NodeGroupDao' => EE_Dependency_Map::load_from_cache, |
|
840 | + ], |
|
841 | + 'EventEspresso\core\services\request\CurrentPage' => [ |
|
842 | + 'EE_CPT_Strategy' => EE_Dependency_Map::load_from_cache, |
|
843 | + 'EventEspresso\core\services\request\Request' => EE_Dependency_Map::load_from_cache, |
|
844 | + ], |
|
845 | + 'EventEspresso\core\services\shortcodes\LegacyShortcodesManager' => [ |
|
846 | + 'EE_Registry' => EE_Dependency_Map::load_from_cache, |
|
847 | + 'EventEspresso\core\services\request\CurrentPage' => EE_Dependency_Map::load_from_cache, |
|
848 | + ], |
|
849 | + 'EventEspresso\core\services\shortcodes\ShortcodesManager' => [ |
|
850 | + 'EventEspresso\core\services\shortcodes\LegacyShortcodesManager' => EE_Dependency_Map::load_from_cache, |
|
851 | + 'EventEspresso\core\services\request\CurrentPage' => EE_Dependency_Map::load_from_cache, |
|
852 | + ], |
|
853 | + 'EventEspresso\core\domain\entities\users\CurrentUser' => [ |
|
854 | + 'EventEspresso\core\domain\entities\users\EventManagers' => EE_Dependency_Map::load_from_cache, |
|
855 | + ], |
|
856 | + 'EventEspresso\core\services\form\meta\InputTypes' => [ |
|
857 | + 'EventEspresso\core\services\form\meta\inputs\Block' => EE_Dependency_Map::load_from_cache, |
|
858 | + 'EventEspresso\core\services\form\meta\inputs\Button' => EE_Dependency_Map::load_from_cache, |
|
859 | + 'EventEspresso\core\services\form\meta\inputs\DateTime' => EE_Dependency_Map::load_from_cache, |
|
860 | + 'EventEspresso\core\services\form\meta\inputs\Input' => EE_Dependency_Map::load_from_cache, |
|
861 | + 'EventEspresso\core\services\form\meta\inputs\Number' => EE_Dependency_Map::load_from_cache, |
|
862 | + 'EventEspresso\core\services\form\meta\inputs\Phone' => EE_Dependency_Map::load_from_cache, |
|
863 | + 'EventEspresso\core\services\form\meta\inputs\Select' => EE_Dependency_Map::load_from_cache, |
|
864 | + 'EventEspresso\core\services\form\meta\inputs\Text' => EE_Dependency_Map::load_from_cache, |
|
865 | + ], |
|
866 | + 'EventEspresso\core\domain\services\registration\form\v1\RegFormDependencyHandler' => [ |
|
867 | + 'EE_Dependency_Map' => EE_Dependency_Map::load_from_cache, |
|
868 | + ], |
|
869 | + 'EventEspresso\core\services\calculators\LineItemCalculator' => [ |
|
870 | + 'EventEspresso\core\services\helpers\DecimalValues' => EE_Dependency_Map::load_from_cache, |
|
871 | + ], |
|
872 | + 'EventEspresso\core\services\helpers\DecimalValues' => [ |
|
873 | + 'EE_Currency_Config' => EE_Dependency_Map::load_from_cache, |
|
874 | + ], |
|
875 | + ]; |
|
876 | + } |
|
877 | + |
|
878 | + |
|
879 | + /** |
|
880 | + * Registers how core classes are loaded. |
|
881 | + * This can either be done by simply providing the name of one of the EE_Registry loader methods such as: |
|
882 | + * 'EE_Request_Handler' => 'load_core' |
|
883 | + * 'EE_Messages_Queue' => 'load_lib' |
|
884 | + * 'EEH_Debug_Tools' => 'load_helper' |
|
885 | + * or, if greater control is required, by providing a custom closure. For example: |
|
886 | + * 'Some_Class' => function () { |
|
887 | + * return new Some_Class(); |
|
888 | + * }, |
|
889 | + * This is required for instantiating dependencies |
|
890 | + * where an interface has been type hinted in a class constructor. For example: |
|
891 | + * 'Required_Interface' => function () { |
|
892 | + * return new A_Class_That_Implements_Required_Interface(); |
|
893 | + * }, |
|
894 | + */ |
|
895 | + protected function _register_core_class_loaders() |
|
896 | + { |
|
897 | + $this->_class_loaders = [ |
|
898 | + // load_core |
|
899 | + 'EE_Dependency_Map' => function () { |
|
900 | + return $this; |
|
901 | + }, |
|
902 | + 'EE_Capabilities' => 'load_core', |
|
903 | + 'EE_Encryption' => 'load_core', |
|
904 | + 'EE_Front_Controller' => 'load_core', |
|
905 | + 'EE_Module_Request_Router' => 'load_core', |
|
906 | + 'EE_Registry' => 'load_core', |
|
907 | + 'EE_Request' => function () { |
|
908 | + return $this->legacy_request; |
|
909 | + }, |
|
910 | + 'EventEspresso\core\services\request\Request' => function () { |
|
911 | + return $this->request; |
|
912 | + }, |
|
913 | + 'EventEspresso\core\services\request\Response' => function () { |
|
914 | + return $this->response; |
|
915 | + }, |
|
916 | + 'EE_Base' => 'load_core', |
|
917 | + 'EE_Request_Handler' => 'load_core', |
|
918 | + 'EE_Session' => 'load_core', |
|
919 | + 'EE_Cron_Tasks' => 'load_core', |
|
920 | + 'EE_System' => 'load_core', |
|
921 | + 'EE_Maintenance_Mode' => 'load_core', |
|
922 | + 'EE_Register_CPTs' => 'load_core', |
|
923 | + 'EE_Admin' => 'load_core', |
|
924 | + 'EE_CPT_Strategy' => 'load_core', |
|
925 | + // load_class |
|
926 | + 'EE_Registration_Processor' => 'load_class', |
|
927 | + // load_lib |
|
928 | + 'EE_Message_Resource_Manager' => 'load_lib', |
|
929 | + 'EE_Message_Type_Collection' => 'load_lib', |
|
930 | + 'EE_Message_Type_Collection_Loader' => 'load_lib', |
|
931 | + 'EE_Messenger_Collection' => 'load_lib', |
|
932 | + 'EE_Messenger_Collection_Loader' => 'load_lib', |
|
933 | + 'EE_Messages_Processor' => 'load_lib', |
|
934 | + 'EE_Message_Repository' => 'load_lib', |
|
935 | + 'EE_Messages_Queue' => 'load_lib', |
|
936 | + 'EE_Messages_Data_Handler_Collection' => 'load_lib', |
|
937 | + 'EE_Message_Template_Group_Collection' => 'load_lib', |
|
938 | + 'EE_Payment_Method_Manager' => 'load_lib', |
|
939 | + 'EE_DMS_Core_4_1_0' => 'load_dms', |
|
940 | + 'EE_DMS_Core_4_2_0' => 'load_dms', |
|
941 | + 'EE_DMS_Core_4_3_0' => 'load_dms', |
|
942 | + 'EE_DMS_Core_4_5_0' => 'load_dms', |
|
943 | + 'EE_DMS_Core_4_6_0' => 'load_dms', |
|
944 | + 'EE_DMS_Core_4_7_0' => 'load_dms', |
|
945 | + 'EE_DMS_Core_4_8_0' => 'load_dms', |
|
946 | + 'EE_DMS_Core_4_9_0' => 'load_dms', |
|
947 | + 'EE_DMS_Core_4_10_0' => 'load_dms', |
|
948 | + 'EE_DMS_Core_4_11_0' => 'load_dms', |
|
949 | + 'EE_DMS_Core_4_12_0' => 'load_dms', |
|
950 | + 'EE_Messages_Generator' => static function () { |
|
951 | + return EE_Registry::instance()->load_lib( |
|
952 | + 'Messages_Generator', |
|
953 | + [], |
|
954 | + false, |
|
955 | + false |
|
956 | + ); |
|
957 | + }, |
|
958 | + 'EE_Messages_Template_Defaults' => static function ($arguments = []) { |
|
959 | + return EE_Registry::instance()->load_lib( |
|
960 | + 'Messages_Template_Defaults', |
|
961 | + $arguments, |
|
962 | + false, |
|
963 | + false |
|
964 | + ); |
|
965 | + }, |
|
966 | + // load_helper |
|
967 | + 'EEH_Parse_Shortcodes' => static function () { |
|
968 | + if (EE_Registry::instance()->load_helper('Parse_Shortcodes')) { |
|
969 | + return new EEH_Parse_Shortcodes(); |
|
970 | + } |
|
971 | + return null; |
|
972 | + }, |
|
973 | + 'EE_Template_Config' => static function () { |
|
974 | + return EE_Config::instance()->template_settings; |
|
975 | + }, |
|
976 | + 'EE_Currency_Config' => static function () { |
|
977 | + return EE_Currency_Config::getCurrencyConfig(); |
|
978 | + }, |
|
979 | + 'EE_Registration_Config' => static function () { |
|
980 | + return EE_Config::instance()->registration; |
|
981 | + }, |
|
982 | + 'EE_Core_Config' => static function () { |
|
983 | + return EE_Config::instance()->core; |
|
984 | + }, |
|
985 | + 'EventEspresso\core\services\loaders\Loader' => static function () { |
|
986 | + return LoaderFactory::getLoader(); |
|
987 | + }, |
|
988 | + 'EE_Network_Config' => static function () { |
|
989 | + return EE_Network_Config::instance(); |
|
990 | + }, |
|
991 | + 'EE_Config' => static function () { |
|
992 | + return EE_Config::instance(); |
|
993 | + }, |
|
994 | + 'EventEspresso\core\domain\Domain' => static function () { |
|
995 | + return DomainFactory::getEventEspressoCoreDomain(); |
|
996 | + }, |
|
997 | + 'EE_Admin_Config' => static function () { |
|
998 | + return EE_Config::instance()->admin; |
|
999 | + }, |
|
1000 | + 'EE_Organization_Config' => static function () { |
|
1001 | + return EE_Config::instance()->organization; |
|
1002 | + }, |
|
1003 | + 'EE_Network_Core_Config' => static function () { |
|
1004 | + return EE_Network_Config::instance()->core; |
|
1005 | + }, |
|
1006 | + 'EE_Environment_Config' => static function () { |
|
1007 | + return EE_Config::instance()->environment; |
|
1008 | + }, |
|
1009 | + 'EED_Core_Rest_Api' => static function () { |
|
1010 | + return EED_Core_Rest_Api::instance(); |
|
1011 | + }, |
|
1012 | + 'WP_REST_Server' => static function () { |
|
1013 | + return rest_get_server(); |
|
1014 | + }, |
|
1015 | + 'EventEspresso\core\Psr4Autoloader' => static function () { |
|
1016 | + return EE_Psr4AutoloaderInit::psr4_loader(); |
|
1017 | + }, |
|
1018 | + 'EE_Ticket_Selector_Config' => function () { |
|
1019 | + return EE_Config::instance()->template_settings->EED_Ticket_Selector; |
|
1020 | + }, |
|
1021 | + ]; |
|
1022 | + } |
|
1023 | + |
|
1024 | + |
|
1025 | + /** |
|
1026 | + * can be used for supplying alternate names for classes, |
|
1027 | + * or for connecting interface names to instantiable classes |
|
1028 | + * |
|
1029 | + * @throws InvalidAliasException |
|
1030 | + */ |
|
1031 | + protected function _register_core_aliases() |
|
1032 | + { |
|
1033 | + $aliases = [ |
|
1034 | + 'CommandBusInterface' => 'EventEspresso\core\services\commands\CommandBusInterface', |
|
1035 | + 'EventEspresso\core\services\commands\CommandBusInterface' => 'EventEspresso\core\services\commands\CommandBus', |
|
1036 | + 'CommandHandlerManagerInterface' => 'EventEspresso\core\services\commands\CommandHandlerManagerInterface', |
|
1037 | + 'EventEspresso\core\services\commands\CommandHandlerManagerInterface' => 'EventEspresso\core\services\commands\CommandHandlerManager', |
|
1038 | + 'CapChecker' => 'EventEspresso\core\services\commands\middleware\CapChecker', |
|
1039 | + 'AddActionHook' => 'EventEspresso\core\services\commands\middleware\AddActionHook', |
|
1040 | + 'CapabilitiesChecker' => 'EventEspresso\core\domain\services\capabilities\CapabilitiesChecker', |
|
1041 | + 'CapabilitiesCheckerInterface' => 'EventEspresso\core\domain\services\capabilities\CapabilitiesCheckerInterface', |
|
1042 | + 'EventEspresso\core\domain\services\capabilities\CapabilitiesCheckerInterface' => 'EventEspresso\core\domain\services\capabilities\CapabilitiesChecker', |
|
1043 | + 'CreateRegistrationService' => 'EventEspresso\core\domain\services\registration\CreateRegistrationService', |
|
1044 | + 'CreateRegistrationCommandHandler' => 'EventEspresso\core\domain\services\commands\registration\CreateRegistrationCommand', |
|
1045 | + 'CopyRegistrationDetailsCommandHandler' => 'EventEspresso\core\domain\services\commands\registration\CopyRegistrationDetailsCommand', |
|
1046 | + 'CopyRegistrationPaymentsCommandHandler' => 'EventEspresso\core\domain\services\commands\registration\CopyRegistrationPaymentsCommand', |
|
1047 | + 'CancelRegistrationAndTicketLineItemCommandHandler' => 'EventEspresso\core\domain\services\commands\registration\CancelRegistrationAndTicketLineItemCommandHandler', |
|
1048 | + 'UpdateRegistrationAndTransactionAfterChangeCommandHandler' => 'EventEspresso\core\domain\services\commands\registration\UpdateRegistrationAndTransactionAfterChangeCommandHandler', |
|
1049 | + 'CreateTicketLineItemCommandHandler' => 'EventEspresso\core\domain\services\commands\ticket\CreateTicketLineItemCommand', |
|
1050 | + 'CreateTransactionCommandHandler' => 'EventEspresso\core\domain\services\commands\transaction\CreateTransactionCommandHandler', |
|
1051 | + 'CreateAttendeeCommandHandler' => 'EventEspresso\core\domain\services\commands\attendee\CreateAttendeeCommandHandler', |
|
1052 | + 'TableManager' => 'EventEspresso\core\services\database\TableManager', |
|
1053 | + 'TableAnalysis' => 'EventEspresso\core\services\database\TableAnalysis', |
|
1054 | + 'EspressoShortcode' => 'EventEspresso\core\services\shortcodes\EspressoShortcode', |
|
1055 | + 'ShortcodeInterface' => 'EventEspresso\core\services\shortcodes\ShortcodeInterface', |
|
1056 | + 'EventEspresso\core\services\shortcodes\ShortcodeInterface' => 'EventEspresso\core\services\shortcodes\EspressoShortcode', |
|
1057 | + 'EventEspresso\core\services\cache\CacheStorageInterface' => 'EventEspresso\core\services\cache\TransientCacheStorage', |
|
1058 | + 'LoaderInterface' => 'EventEspresso\core\services\loaders\LoaderInterface', |
|
1059 | + 'EventEspresso\core\services\loaders\LoaderInterface' => 'EventEspresso\core\services\loaders\Loader', |
|
1060 | + 'CommandFactoryInterface' => 'EventEspresso\core\services\commands\CommandFactoryInterface', |
|
1061 | + 'EventEspresso\core\services\commands\CommandFactoryInterface' => 'EventEspresso\core\services\commands\CommandFactory', |
|
1062 | + 'EmailValidatorInterface' => 'EventEspresso\core\domain\services\validation\email\EmailValidatorInterface', |
|
1063 | + 'EventEspresso\core\domain\services\validation\email\EmailValidatorInterface' => 'EventEspresso\core\domain\services\validation\email\EmailValidationService', |
|
1064 | + 'NoticeConverterInterface' => 'EventEspresso\core\services\notices\NoticeConverterInterface', |
|
1065 | + 'EventEspresso\core\services\notices\NoticeConverterInterface' => 'EventEspresso\core\services\notices\ConvertNoticesToEeErrors', |
|
1066 | + 'NoticesContainerInterface' => 'EventEspresso\core\services\notices\NoticesContainerInterface', |
|
1067 | + 'EventEspresso\core\services\notices\NoticesContainerInterface' => 'EventEspresso\core\services\notices\NoticesContainer', |
|
1068 | + 'EventEspresso\core\services\request\RequestInterface' => 'EventEspresso\core\services\request\Request', |
|
1069 | + 'EventEspresso\core\services\request\ResponseInterface' => 'EventEspresso\core\services\request\Response', |
|
1070 | + 'EventEspresso\core\domain\DomainInterface' => 'EventEspresso\core\domain\Domain', |
|
1071 | + 'Registration_Processor' => 'EE_Registration_Processor', |
|
1072 | + 'EventEspresso\core\services\assets\AssetManifestInterface' => 'EventEspresso\core\services\assets\AssetManifest', |
|
1073 | + ]; |
|
1074 | + foreach ($aliases as $alias => $fqn) { |
|
1075 | + if (is_array($fqn)) { |
|
1076 | + foreach ($fqn as $class => $for_class) { |
|
1077 | + $this->class_cache->addAlias($class, $alias, $for_class); |
|
1078 | + } |
|
1079 | + continue; |
|
1080 | + } |
|
1081 | + $this->class_cache->addAlias($fqn, $alias); |
|
1082 | + } |
|
1083 | + if (! (defined('DOING_AJAX') && DOING_AJAX) && is_admin()) { |
|
1084 | + $this->class_cache->addAlias( |
|
1085 | + 'EventEspresso\core\services\notices\ConvertNoticesToAdminNotices', |
|
1086 | + 'EventEspresso\core\services\notices\NoticeConverterInterface' |
|
1087 | + ); |
|
1088 | + } |
|
1089 | + } |
|
1090 | + |
|
1091 | + |
|
1092 | + public function debug($for_class = '') |
|
1093 | + { |
|
1094 | + if (method_exists($this->class_cache, 'debug')) { |
|
1095 | + $this->class_cache->debug($for_class); |
|
1096 | + } |
|
1097 | + } |
|
1098 | + |
|
1099 | + |
|
1100 | + /** |
|
1101 | + * This is used to reset the internal map and class_loaders to their original default state at the beginning of the |
|
1102 | + * request Primarily used by unit tests. |
|
1103 | + */ |
|
1104 | + public function reset() |
|
1105 | + { |
|
1106 | + $this->_register_core_class_loaders(); |
|
1107 | + $this->_register_core_dependencies(); |
|
1108 | + } |
|
1109 | + |
|
1110 | + |
|
1111 | + /** |
|
1112 | + * PLZ NOTE: a better name for this method would be is_alias() |
|
1113 | + * because it returns TRUE if the provided fully qualified name IS an alias |
|
1114 | + * WHY? |
|
1115 | + * Because if a class is type hinting for a concretion, |
|
1116 | + * then why would we need to find another class to supply it? |
|
1117 | + * ie: if a class asks for `Fully/Qualified/Namespace/SpecificClassName`, |
|
1118 | + * then give it an instance of `Fully/Qualified/Namespace/SpecificClassName`. |
|
1119 | + * Don't go looking for some substitute. |
|
1120 | + * Whereas if a class is type hinting for an interface... |
|
1121 | + * then we need to find an actual class to use. |
|
1122 | + * So the interface IS the alias for some other FQN, |
|
1123 | + * and we need to find out if `Fully/Qualified/Namespace/SomeInterface` |
|
1124 | + * represents some other class. |
|
1125 | + * |
|
1126 | + * @param string $fqn |
|
1127 | + * @param string $for_class |
|
1128 | + * @return bool |
|
1129 | + * @deprecated 4.9.62.p |
|
1130 | + */ |
|
1131 | + public function has_alias(string $fqn = '', string $for_class = ''): bool |
|
1132 | + { |
|
1133 | + return $this->isAlias($fqn, $for_class); |
|
1134 | + } |
|
1135 | + |
|
1136 | + |
|
1137 | + /** |
|
1138 | + * PLZ NOTE: a better name for this method would be get_fqn_for_alias() |
|
1139 | + * because it returns a FQN for provided alias if one exists, otherwise returns the original $alias |
|
1140 | + * functions recursively, so that multiple aliases can be used to drill down to a FQN |
|
1141 | + * for example: |
|
1142 | + * if the following two entries were added to the _aliases array: |
|
1143 | + * array( |
|
1144 | + * 'interface_alias' => 'some\namespace\interface' |
|
1145 | + * 'some\namespace\interface' => 'some\namespace\classname' |
|
1146 | + * ) |
|
1147 | + * then one could use EE_Registry::instance()->create( 'interface_alias' ) |
|
1148 | + * to load an instance of 'some\namespace\classname' |
|
1149 | + * |
|
1150 | + * @param string $alias |
|
1151 | + * @param string $for_class |
|
1152 | + * @return string |
|
1153 | + * @deprecated 4.9.62.p |
|
1154 | + */ |
|
1155 | + public function get_alias(string $alias = '', string $for_class = ''): string |
|
1156 | + { |
|
1157 | + return $this->getFqnForAlias($alias, $for_class); |
|
1158 | + } |
|
1159 | 1159 | } |
@@ -2,137 +2,137 @@ discard block |
||
2 | 2 | /* THIS IS A GENERATED FILE. DO NOT EDIT DIRECTLY. */ |
3 | 3 | $generated_i18n_strings = array( |
4 | 4 | // Reference: packages/ui-components/src/Pagination/constants.ts:6 |
5 | - __( '2', 'event_espresso' ), |
|
5 | + __('2', 'event_espresso'), |
|
6 | 6 | |
7 | 7 | // Reference: packages/ui-components/src/Pagination/constants.ts:7 |
8 | - __( '6', 'event_espresso' ), |
|
8 | + __('6', 'event_espresso'), |
|
9 | 9 | |
10 | 10 | // Reference: packages/ui-components/src/Pagination/constants.ts:8 |
11 | - __( '12', 'event_espresso' ), |
|
11 | + __('12', 'event_espresso'), |
|
12 | 12 | |
13 | 13 | // Reference: packages/ui-components/src/Pagination/constants.ts:9 |
14 | - __( '24', 'event_espresso' ), |
|
14 | + __('24', 'event_espresso'), |
|
15 | 15 | |
16 | 16 | // Reference: packages/ui-components/src/Pagination/constants.ts:10 |
17 | - __( '48', 'event_espresso' ), |
|
17 | + __('48', 'event_espresso'), |
|
18 | 18 | |
19 | 19 | // Reference: domains/core/admin/blocks/src/components/AvatarImage.tsx:27 |
20 | - __( 'contact avatar', 'event_espresso' ), |
|
20 | + __('contact avatar', 'event_espresso'), |
|
21 | 21 | |
22 | 22 | // Reference: domains/core/admin/blocks/src/components/OrderByControl.tsx:12 |
23 | - __( 'Order by', 'event_espresso' ), |
|
23 | + __('Order by', 'event_espresso'), |
|
24 | 24 | |
25 | 25 | // Reference: domains/core/admin/blocks/src/components/RegStatusControl.tsx:17 |
26 | 26 | // Reference: domains/core/admin/blocks/src/event-attendees/controls/SelectStatus.tsx:13 |
27 | - __( 'Select Registration Status', 'event_espresso' ), |
|
27 | + __('Select Registration Status', 'event_espresso'), |
|
28 | 28 | |
29 | 29 | // Reference: domains/core/admin/blocks/src/components/SortOrderControl.tsx:14 |
30 | - __( 'Ascending', 'event_espresso' ), |
|
30 | + __('Ascending', 'event_espresso'), |
|
31 | 31 | |
32 | 32 | // Reference: domains/core/admin/blocks/src/components/SortOrderControl.tsx:18 |
33 | - __( 'Descending', 'event_espresso' ), |
|
33 | + __('Descending', 'event_espresso'), |
|
34 | 34 | |
35 | 35 | // Reference: domains/core/admin/blocks/src/components/SortOrderControl.tsx:24 |
36 | - __( 'Sort order:', 'event_espresso' ), |
|
36 | + __('Sort order:', 'event_espresso'), |
|
37 | 37 | |
38 | 38 | // Reference: domains/core/admin/blocks/src/event-attendees/AttendeesDisplay.tsx:41 |
39 | - __( 'There was some error fetching attendees list', 'event_espresso' ), |
|
39 | + __('There was some error fetching attendees list', 'event_espresso'), |
|
40 | 40 | |
41 | 41 | // Reference: domains/core/admin/blocks/src/event-attendees/AttendeesDisplay.tsx:47 |
42 | - __( 'To get started, select what event you want to show attendees from in the block settings.', 'event_espresso' ), |
|
42 | + __('To get started, select what event you want to show attendees from in the block settings.', 'event_espresso'), |
|
43 | 43 | |
44 | 44 | // Reference: domains/core/admin/blocks/src/event-attendees/AttendeesDisplay.tsx:53 |
45 | - __( 'There are no attendees for selected options.', 'event_espresso' ), |
|
45 | + __('There are no attendees for selected options.', 'event_espresso'), |
|
46 | 46 | |
47 | 47 | // Reference: domains/core/admin/blocks/src/event-attendees/controls/ArchiveSettings.tsx:12 |
48 | - __( 'Display on Archives', 'event_espresso' ), |
|
48 | + __('Display on Archives', 'event_espresso'), |
|
49 | 49 | |
50 | 50 | // Reference: domains/core/admin/blocks/src/event-attendees/controls/ArchiveSettings.tsx:17 |
51 | - __( 'Attendees are shown whenever this post is listed in an archive view.', 'event_espresso' ), |
|
51 | + __('Attendees are shown whenever this post is listed in an archive view.', 'event_espresso'), |
|
52 | 52 | |
53 | 53 | // Reference: domains/core/admin/blocks/src/event-attendees/controls/ArchiveSettings.tsx:18 |
54 | - __( 'Attendees are hidden whenever this post is listed in an archive view.', 'event_espresso' ), |
|
54 | + __('Attendees are hidden whenever this post is listed in an archive view.', 'event_espresso'), |
|
55 | 55 | |
56 | 56 | // Reference: domains/core/admin/blocks/src/event-attendees/controls/AttendeeLimit.tsx:29 |
57 | - __( 'Number of Attendees to Display:', 'event_espresso' ), |
|
57 | + __('Number of Attendees to Display:', 'event_espresso'), |
|
58 | 58 | |
59 | 59 | // Reference: domains/core/admin/blocks/src/event-attendees/controls/AttendeeLimit.tsx:34 |
60 | 60 | /* translators: %d attendees count */ |
61 | - _n_noop( 'Used to adjust the number of attendees displayed (There is %d total attendee for the current filter settings).', 'Used to adjust the number of attendees displayed (There are %d total attendees for the current filter settings).', 'event_espresso' ), |
|
61 | + _n_noop('Used to adjust the number of attendees displayed (There is %d total attendee for the current filter settings).', 'Used to adjust the number of attendees displayed (There are %d total attendees for the current filter settings).', 'event_espresso'), |
|
62 | 62 | |
63 | 63 | // Reference: domains/core/admin/blocks/src/event-attendees/controls/GravatarSettings.tsx:27 |
64 | - __( 'Display Gravatar', 'event_espresso' ), |
|
64 | + __('Display Gravatar', 'event_espresso'), |
|
65 | 65 | |
66 | 66 | // Reference: domains/core/admin/blocks/src/event-attendees/controls/GravatarSettings.tsx:32 |
67 | - __( 'Gravatar images are shown for each attendee.', 'event_espresso' ), |
|
67 | + __('Gravatar images are shown for each attendee.', 'event_espresso'), |
|
68 | 68 | |
69 | 69 | // Reference: domains/core/admin/blocks/src/event-attendees/controls/GravatarSettings.tsx:33 |
70 | - __( 'No gravatar images are shown for each attendee.', 'event_espresso' ), |
|
70 | + __('No gravatar images are shown for each attendee.', 'event_espresso'), |
|
71 | 71 | |
72 | 72 | // Reference: domains/core/admin/blocks/src/event-attendees/controls/GravatarSettings.tsx:38 |
73 | - __( 'Size of Gravatar', 'event_espresso' ), |
|
73 | + __('Size of Gravatar', 'event_espresso'), |
|
74 | 74 | |
75 | 75 | // Reference: domains/core/admin/blocks/src/event-attendees/controls/SelectDatetime.tsx:22 |
76 | - __( 'Select Datetime', 'event_espresso' ), |
|
76 | + __('Select Datetime', 'event_espresso'), |
|
77 | 77 | |
78 | 78 | // Reference: domains/core/admin/blocks/src/event-attendees/controls/SelectEvent.tsx:22 |
79 | 79 | // Reference: domains/core/admin/blocks/src/event/controls/SelectEvent.tsx:22 |
80 | - __( 'Select Event', 'event_espresso' ), |
|
80 | + __('Select Event', 'event_espresso'), |
|
81 | 81 | |
82 | 82 | // Reference: domains/core/admin/blocks/src/event-attendees/controls/SelectOrderBy.tsx:11 |
83 | - __( 'Attendee id', 'event_espresso' ), |
|
83 | + __('Attendee id', 'event_espresso'), |
|
84 | 84 | |
85 | 85 | // Reference: domains/core/admin/blocks/src/event-attendees/controls/SelectOrderBy.tsx:15 |
86 | - __( 'Last name only', 'event_espresso' ), |
|
86 | + __('Last name only', 'event_espresso'), |
|
87 | 87 | |
88 | 88 | // Reference: domains/core/admin/blocks/src/event-attendees/controls/SelectOrderBy.tsx:19 |
89 | - __( 'First name only', 'event_espresso' ), |
|
89 | + __('First name only', 'event_espresso'), |
|
90 | 90 | |
91 | 91 | // Reference: domains/core/admin/blocks/src/event-attendees/controls/SelectOrderBy.tsx:23 |
92 | - __( 'First, then Last name', 'event_espresso' ), |
|
92 | + __('First, then Last name', 'event_espresso'), |
|
93 | 93 | |
94 | 94 | // Reference: domains/core/admin/blocks/src/event-attendees/controls/SelectOrderBy.tsx:27 |
95 | - __( 'Last, then First name', 'event_espresso' ), |
|
95 | + __('Last, then First name', 'event_espresso'), |
|
96 | 96 | |
97 | 97 | // Reference: domains/core/admin/blocks/src/event-attendees/controls/SelectOrderBy.tsx:41 |
98 | - __( 'Order Attendees by:', 'event_espresso' ), |
|
98 | + __('Order Attendees by:', 'event_espresso'), |
|
99 | 99 | |
100 | 100 | // Reference: domains/core/admin/blocks/src/event-attendees/controls/SelectTicket.tsx:22 |
101 | - __( 'Select Ticket', 'event_espresso' ), |
|
101 | + __('Select Ticket', 'event_espresso'), |
|
102 | 102 | |
103 | 103 | // Reference: domains/core/admin/blocks/src/event-attendees/controls/index.tsx:21 |
104 | - __( 'Filter By Settings', 'event_espresso' ), |
|
104 | + __('Filter By Settings', 'event_espresso'), |
|
105 | 105 | |
106 | 106 | // Reference: domains/core/admin/blocks/src/event-attendees/controls/index.tsx:36 |
107 | - __( 'Gravatar Setttings', 'event_espresso' ), |
|
107 | + __('Gravatar Setttings', 'event_espresso'), |
|
108 | 108 | |
109 | 109 | // Reference: domains/core/admin/blocks/src/event-attendees/controls/index.tsx:39 |
110 | - __( 'Archive Settings', 'event_espresso' ), |
|
110 | + __('Archive Settings', 'event_espresso'), |
|
111 | 111 | |
112 | 112 | // Reference: domains/core/admin/blocks/src/event-attendees/index.tsx:10 |
113 | - __( 'Event Attendees', 'event_espresso' ), |
|
113 | + __('Event Attendees', 'event_espresso'), |
|
114 | 114 | |
115 | 115 | // Reference: domains/core/admin/blocks/src/event-attendees/index.tsx:11 |
116 | - __( 'Displays a list of people that have registered for the specified event', 'event_espresso' ), |
|
116 | + __('Displays a list of people that have registered for the specified event', 'event_espresso'), |
|
117 | 117 | |
118 | 118 | // Reference: domains/core/admin/blocks/src/event-attendees/index.tsx:14 |
119 | 119 | // Reference: domains/core/admin/blocks/src/event/index.tsx:12 |
120 | 120 | // Reference: packages/edtr-services/src/constants.ts:25 |
121 | - __( 'event', 'event_espresso' ), |
|
121 | + __('event', 'event_espresso'), |
|
122 | 122 | |
123 | 123 | // Reference: domains/core/admin/blocks/src/event-attendees/index.tsx:14 |
124 | - __( 'attendees', 'event_espresso' ), |
|
124 | + __('attendees', 'event_espresso'), |
|
125 | 125 | |
126 | 126 | // Reference: domains/core/admin/blocks/src/event-attendees/index.tsx:14 |
127 | - __( 'list', 'event_espresso' ), |
|
127 | + __('list', 'event_espresso'), |
|
128 | 128 | |
129 | 129 | // Reference: domains/core/admin/blocks/src/event/DisplayField.tsx:41 |
130 | - __( 'An unknown error occurred while fetching event details.', 'event_espresso' ), |
|
130 | + __('An unknown error occurred while fetching event details.', 'event_espresso'), |
|
131 | 131 | |
132 | 132 | // Reference: domains/core/admin/blocks/src/event/controls/SelectField.tsx:10 |
133 | 133 | // Reference: domains/core/admin/blocks/src/services/utils.ts:24 |
134 | 134 | // Reference: packages/utils/src/list/index.ts:14 |
135 | - __( 'Select…', 'event_espresso' ), |
|
135 | + __('Select…', 'event_espresso'), |
|
136 | 136 | |
137 | 137 | // Reference: domains/core/admin/blocks/src/event/controls/SelectField.tsx:15 |
138 | 138 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/dateForm/useDateFormConfig.ts:75 |
@@ -141,7 +141,7 @@ discard block |
||
141 | 141 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketForm/useTicketFormConfig.ts:195 |
142 | 142 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/bulkEdit/details/useBulkEditFormConfig.ts:49 |
143 | 143 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/tableView/useHeaderRowGenerator.tsx:40 |
144 | - __( 'Name', 'event_espresso' ), |
|
144 | + __('Name', 'event_espresso'), |
|
145 | 145 | |
146 | 146 | // Reference: domains/core/admin/blocks/src/event/controls/SelectField.tsx:19 |
147 | 147 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/dateForm/useDateFormConfig.ts:80 |
@@ -149,404 +149,404 @@ discard block |
||
149 | 149 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketForm/useTicketFormConfig.ts:200 |
150 | 150 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/bulkEdit/details/useBulkEditFormConfig.ts:55 |
151 | 151 | // Reference: packages/tpc/src/components/table/useHeaderRowGenerator.ts:47 |
152 | - __( 'Description', 'event_espresso' ), |
|
152 | + __('Description', 'event_espresso'), |
|
153 | 153 | |
154 | 154 | // Reference: domains/core/admin/blocks/src/event/controls/SelectField.tsx:23 |
155 | - __( 'Short description', 'event_espresso' ), |
|
155 | + __('Short description', 'event_espresso'), |
|
156 | 156 | |
157 | 157 | // Reference: domains/core/admin/blocks/src/event/controls/SelectField.tsx:35 |
158 | - __( 'Select Field', 'event_espresso' ), |
|
158 | + __('Select Field', 'event_espresso'), |
|
159 | 159 | |
160 | 160 | // Reference: domains/core/admin/blocks/src/event/controls/index.tsx:27 |
161 | - __( 'Text Color', 'event_espresso' ), |
|
161 | + __('Text Color', 'event_espresso'), |
|
162 | 162 | |
163 | 163 | // Reference: domains/core/admin/blocks/src/event/controls/index.tsx:32 |
164 | - __( 'Background Color', 'event_espresso' ), |
|
164 | + __('Background Color', 'event_espresso'), |
|
165 | 165 | |
166 | 166 | // Reference: domains/core/admin/blocks/src/event/controls/index.tsx:41 |
167 | 167 | // Reference: packages/form-builder/src/FormElement/Tabs/FormElementTabs.tsx:22 |
168 | 168 | // Reference: packages/form-builder/src/FormSection/Tabs/FormSectionTabs.tsx:21 |
169 | - __( 'Settings', 'event_espresso' ), |
|
169 | + __('Settings', 'event_espresso'), |
|
170 | 170 | |
171 | 171 | // Reference: domains/core/admin/blocks/src/event/controls/index.tsx:45 |
172 | - __( 'Typography', 'event_espresso' ), |
|
172 | + __('Typography', 'event_espresso'), |
|
173 | 173 | |
174 | 174 | // Reference: domains/core/admin/blocks/src/event/controls/index.tsx:48 |
175 | - __( 'Color', 'event_espresso' ), |
|
175 | + __('Color', 'event_espresso'), |
|
176 | 176 | |
177 | 177 | // Reference: domains/core/admin/blocks/src/event/index.tsx:12 |
178 | - __( 'field', 'event_espresso' ), |
|
178 | + __('field', 'event_espresso'), |
|
179 | 179 | |
180 | 180 | // Reference: domains/core/admin/blocks/src/event/index.tsx:8 |
181 | - __( 'Event Field', 'event_espresso' ), |
|
181 | + __('Event Field', 'event_espresso'), |
|
182 | 182 | |
183 | 183 | // Reference: domains/core/admin/blocks/src/event/index.tsx:9 |
184 | - __( 'Displays the selected field of an event', 'event_espresso' ), |
|
184 | + __('Displays the selected field of an event', 'event_espresso'), |
|
185 | 185 | |
186 | 186 | // Reference: domains/core/admin/blocks/src/services/utils.ts:17 |
187 | - __( 'Error', 'event_espresso' ), |
|
187 | + __('Error', 'event_espresso'), |
|
188 | 188 | |
189 | 189 | // Reference: domains/core/admin/blocks/src/services/utils.ts:9 |
190 | - __( 'Loading…', 'event_espresso' ), |
|
190 | + __('Loading…', 'event_espresso'), |
|
191 | 191 | |
192 | 192 | // Reference: domains/core/admin/eventEditor/src/ui/EventDescription.tsx:33 |
193 | - __( 'Event Description', 'event_espresso' ), |
|
193 | + __('Event Description', 'event_espresso'), |
|
194 | 194 | |
195 | 195 | // Reference: domains/core/admin/eventEditor/src/ui/EventRegistrationOptions/ActiveStatus.tsx:29 |
196 | - __( 'Active status', 'event_espresso' ), |
|
196 | + __('Active status', 'event_espresso'), |
|
197 | 197 | |
198 | 198 | // Reference: domains/core/admin/eventEditor/src/ui/EventRegistrationOptions/AltRegPage.tsx:12 |
199 | - __( 'Alternative Registration Page', 'event_espresso' ), |
|
199 | + __('Alternative Registration Page', 'event_espresso'), |
|
200 | 200 | |
201 | 201 | // Reference: domains/core/admin/eventEditor/src/ui/EventRegistrationOptions/DefaultRegistrationStatus.tsx:26 |
202 | - __( 'Default Registration Status', 'event_espresso' ), |
|
202 | + __('Default Registration Status', 'event_espresso'), |
|
203 | 203 | |
204 | 204 | // Reference: domains/core/admin/eventEditor/src/ui/EventRegistrationOptions/Donations.tsx:8 |
205 | - __( 'Donations Enabled', 'event_espresso' ), |
|
205 | + __('Donations Enabled', 'event_espresso'), |
|
206 | 206 | |
207 | 207 | // Reference: domains/core/admin/eventEditor/src/ui/EventRegistrationOptions/Donations.tsx:8 |
208 | - __( 'Donations Disabled', 'event_espresso' ), |
|
208 | + __('Donations Disabled', 'event_espresso'), |
|
209 | 209 | |
210 | 210 | // Reference: domains/core/admin/eventEditor/src/ui/EventRegistrationOptions/EventManager.tsx:16 |
211 | - __( 'Event Manager', 'event_espresso' ), |
|
211 | + __('Event Manager', 'event_espresso'), |
|
212 | 212 | |
213 | 213 | // Reference: domains/core/admin/eventEditor/src/ui/EventRegistrationOptions/EventPhoneNumber.tsx:15 |
214 | - __( 'Event Phone Number', 'event_espresso' ), |
|
214 | + __('Event Phone Number', 'event_espresso'), |
|
215 | 215 | |
216 | 216 | // Reference: domains/core/admin/eventEditor/src/ui/EventRegistrationOptions/MaxRegistrations.tsx:13 |
217 | - __( 'Max Registrations per Transaction', 'event_espresso' ), |
|
217 | + __('Max Registrations per Transaction', 'event_espresso'), |
|
218 | 218 | |
219 | 219 | // Reference: domains/core/admin/eventEditor/src/ui/EventRegistrationOptions/TicketSelector.tsx:8 |
220 | - __( 'Ticket Selector Enabled', 'event_espresso' ), |
|
220 | + __('Ticket Selector Enabled', 'event_espresso'), |
|
221 | 221 | |
222 | 222 | // Reference: domains/core/admin/eventEditor/src/ui/EventRegistrationOptions/TicketSelector.tsx:8 |
223 | - __( 'Ticket Selector Disabled', 'event_espresso' ), |
|
223 | + __('Ticket Selector Disabled', 'event_espresso'), |
|
224 | 224 | |
225 | 225 | // Reference: domains/core/admin/eventEditor/src/ui/EventRegistrationOptions/index.tsx:41 |
226 | - __( 'Event Details', 'event_espresso' ), |
|
226 | + __('Event Details', 'event_espresso'), |
|
227 | 227 | |
228 | 228 | // Reference: domains/core/admin/eventEditor/src/ui/EventRegistrationOptions/index.tsx:47 |
229 | - __( 'Registration Options', 'event_espresso' ), |
|
229 | + __('Registration Options', 'event_espresso'), |
|
230 | 230 | |
231 | 231 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/dateForm/multiStep/DateFormSteps.tsx:10 |
232 | - __( 'primary information about the date', 'event_espresso' ), |
|
232 | + __('primary information about the date', 'event_espresso'), |
|
233 | 233 | |
234 | 234 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/dateForm/multiStep/DateFormSteps.tsx:10 |
235 | - __( 'Date Details', 'event_espresso' ), |
|
235 | + __('Date Details', 'event_espresso'), |
|
236 | 236 | |
237 | 237 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/dateForm/multiStep/DateFormSteps.tsx:11 |
238 | 238 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/defaultTickets/multiStep/TicketFormSteps.tsx:16 |
239 | 239 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketForm/multiStep/TicketFormSteps.tsx:16 |
240 | - __( 'relations between tickets and dates', 'event_espresso' ), |
|
240 | + __('relations between tickets and dates', 'event_espresso'), |
|
241 | 241 | |
242 | 242 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/dateForm/multiStep/DateFormSteps.tsx:11 |
243 | - __( 'Assign Tickets', 'event_espresso' ), |
|
243 | + __('Assign Tickets', 'event_espresso'), |
|
244 | 244 | |
245 | 245 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/dateForm/multiStep/FooterButtons.tsx:22 |
246 | - __( 'Save and assign tickets', 'event_espresso' ), |
|
246 | + __('Save and assign tickets', 'event_espresso'), |
|
247 | 247 | |
248 | 248 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/dateForm/multiStep/Modal.tsx:27 |
249 | 249 | /* translators: %s datetime id */ |
250 | - __( 'Edit datetime %s', 'event_espresso' ), |
|
250 | + __('Edit datetime %s', 'event_espresso'), |
|
251 | 251 | |
252 | 252 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/dateForm/multiStep/Modal.tsx:30 |
253 | - __( 'New Datetime', 'event_espresso' ), |
|
253 | + __('New Datetime', 'event_espresso'), |
|
254 | 254 | |
255 | 255 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/dateForm/useDateFormConfig.ts:110 |
256 | 256 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/bulkEdit/details/useBulkEditFormConfig.ts:108 |
257 | 257 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketForm/useTicketFormConfig.ts:230 |
258 | 258 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/bulkEdit/details/useBulkEditFormConfig.ts:108 |
259 | - __( 'Details', 'event_espresso' ), |
|
259 | + __('Details', 'event_espresso'), |
|
260 | 260 | |
261 | 261 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/dateForm/useDateFormConfig.ts:114 |
262 | 262 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/bulkEdit/details/useBulkEditFormConfig.ts:112 |
263 | 263 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/tableView/useHeaderRowGenerator.tsx:81 |
264 | - __( 'Capacity', 'event_espresso' ), |
|
264 | + __('Capacity', 'event_espresso'), |
|
265 | 265 | |
266 | 266 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/dateForm/useDateFormConfig.ts:119 |
267 | - __( 'The maximum number of registrants that can attend the event at this particular date.', 'event_espresso' ), |
|
267 | + __('The maximum number of registrants that can attend the event at this particular date.', 'event_espresso'), |
|
268 | 268 | |
269 | 269 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/dateForm/useDateFormConfig.ts:123 |
270 | - __( 'Set to 0 to close registration or leave blank for no limit.', 'event_espresso' ), |
|
270 | + __('Set to 0 to close registration or leave blank for no limit.', 'event_espresso'), |
|
271 | 271 | |
272 | 272 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/dateForm/useDateFormConfig.ts:129 |
273 | 273 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketForm/useTicketFormConfig.ts:168 |
274 | - __( 'Trash', 'event_espresso' ), |
|
274 | + __('Trash', 'event_espresso'), |
|
275 | 275 | |
276 | 276 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/dateForm/useDateFormConfig.ts:71 |
277 | 277 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/bulkEdit/details/useBulkEditFormConfig.ts:45 |
278 | 278 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketForm/useTicketFormConfig.ts:191 |
279 | 279 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/bulkEdit/details/useBulkEditFormConfig.ts:45 |
280 | - __( 'Basics', 'event_espresso' ), |
|
280 | + __('Basics', 'event_espresso'), |
|
281 | 281 | |
282 | 282 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/dateForm/useDateFormConfig.ts:88 |
283 | 283 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/bulkEdit/details/useBulkEditFormConfig.ts:63 |
284 | 284 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/bulkEdit/details/useBulkEditFormConfig.ts:63 |
285 | - __( 'Dates', 'event_espresso' ), |
|
285 | + __('Dates', 'event_espresso'), |
|
286 | 286 | |
287 | 287 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/dateForm/useDateFormConfig.ts:92 |
288 | 288 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/tableView/useHeaderRowGenerator.tsx:51 |
289 | 289 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketForm/useTicketFormConfig.ts:212 |
290 | - __( 'Start Date', 'event_espresso' ), |
|
290 | + __('Start Date', 'event_espresso'), |
|
291 | 291 | |
292 | 292 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/dateForm/useDateFormConfig.ts:99 |
293 | 293 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/tableView/useHeaderRowGenerator.tsx:65 |
294 | 294 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketForm/useTicketFormConfig.ts:219 |
295 | - __( 'End Date', 'event_espresso' ), |
|
295 | + __('End Date', 'event_espresso'), |
|
296 | 296 | |
297 | 297 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/DateRegistrationsLink.tsx:13 |
298 | - __( 'view ALL registrations for this date.', 'event_espresso' ), |
|
298 | + __('view ALL registrations for this date.', 'event_espresso'), |
|
299 | 299 | |
300 | 300 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/DateSoldLink.tsx:13 |
301 | - __( 'view approved registrations for this date.', 'event_espresso' ), |
|
301 | + __('view approved registrations for this date.', 'event_espresso'), |
|
302 | 302 | |
303 | 303 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/DatesList.tsx:35 |
304 | 304 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/tableView/TableView.tsx:33 |
305 | - __( 'Event Dates', 'event_espresso' ), |
|
305 | + __('Event Dates', 'event_espresso'), |
|
306 | 306 | |
307 | 307 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/DatesList.tsx:38 |
308 | - __( 'loading event dates…', 'event_espresso' ), |
|
308 | + __('loading event dates…', 'event_espresso'), |
|
309 | 309 | |
310 | 310 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/DatesListButtons.tsx:22 |
311 | - __( 'Add a date or a ticket in order to use Ticket Assignment Manager', 'event_espresso' ), |
|
311 | + __('Add a date or a ticket in order to use Ticket Assignment Manager', 'event_espresso'), |
|
312 | 312 | |
313 | 313 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/DatesListButtons.tsx:32 |
314 | - __( 'Ticket Assignments', 'event_espresso' ), |
|
314 | + __('Ticket Assignments', 'event_espresso'), |
|
315 | 315 | |
316 | 316 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/actionsMenu/AssignTicketsButton.tsx:25 |
317 | - __( 'Number of related tickets', 'event_espresso' ), |
|
317 | + __('Number of related tickets', 'event_espresso'), |
|
318 | 318 | |
319 | 319 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/actionsMenu/AssignTicketsButton.tsx:26 |
320 | - __( 'There are no tickets assigned to this datetime. Please click the ticket icon to update the assignments.', 'event_espresso' ), |
|
320 | + __('There are no tickets assigned to this datetime. Please click the ticket icon to update the assignments.', 'event_espresso'), |
|
321 | 321 | |
322 | 322 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/actionsMenu/AssignTicketsButton.tsx:34 |
323 | - __( 'assign tickets', 'event_espresso' ), |
|
323 | + __('assign tickets', 'event_espresso'), |
|
324 | 324 | |
325 | 325 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/actionsMenu/dropdown/DateMainMenu.tsx:21 |
326 | - __( 'event date main menu', 'event_espresso' ), |
|
326 | + __('event date main menu', 'event_espresso'), |
|
327 | 327 | |
328 | 328 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/actionsMenu/dropdown/DateMainMenu.tsx:33 |
329 | - __( 'edit datetime', 'event_espresso' ), |
|
329 | + __('edit datetime', 'event_espresso'), |
|
330 | 330 | |
331 | 331 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/actionsMenu/dropdown/DateMainMenu.tsx:34 |
332 | - __( 'copy datetime', 'event_espresso' ), |
|
332 | + __('copy datetime', 'event_espresso'), |
|
333 | 333 | |
334 | 334 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/actionsMenu/dropdown/DeleteDatetime.tsx:15 |
335 | 335 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/actionsMenu/dropdown/DeleteTicket.tsx:48 |
336 | - __( 'delete permanently', 'event_espresso' ), |
|
336 | + __('delete permanently', 'event_espresso'), |
|
337 | 337 | |
338 | 338 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/actionsMenu/dropdown/DeleteDatetime.tsx:15 |
339 | - __( 'trash datetime', 'event_espresso' ), |
|
339 | + __('trash datetime', 'event_espresso'), |
|
340 | 340 | |
341 | 341 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/actionsMenu/dropdown/DeleteDatetime.tsx:18 |
342 | - __( 'Permanently Delete Datetime?', 'event_espresso' ), |
|
342 | + __('Permanently Delete Datetime?', 'event_espresso'), |
|
343 | 343 | |
344 | 344 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/actionsMenu/dropdown/DeleteDatetime.tsx:18 |
345 | - __( 'Move Datetime to Trash?', 'event_espresso' ), |
|
345 | + __('Move Datetime to Trash?', 'event_espresso'), |
|
346 | 346 | |
347 | 347 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/actionsMenu/dropdown/DeleteDatetime.tsx:20 |
348 | - __( 'Are you sure you want to permanently delete this datetime? This action is permanent and can not be undone.', 'event_espresso' ), |
|
348 | + __('Are you sure you want to permanently delete this datetime? This action is permanent and can not be undone.', 'event_espresso'), |
|
349 | 349 | |
350 | 350 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/actionsMenu/dropdown/DeleteDatetime.tsx:23 |
351 | - __( 'Are you sure you want to move this datetime to the trash? You can "untrash" this datetime later if you need to.', 'event_espresso' ), |
|
351 | + __('Are you sure you want to move this datetime to the trash? You can "untrash" this datetime later if you need to.', 'event_espresso'), |
|
352 | 352 | |
353 | 353 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/actionsMenu/dropdown/DeleteDatetime.tsx:33 |
354 | - __( 'delete', 'event_espresso' ), |
|
354 | + __('delete', 'event_espresso'), |
|
355 | 355 | |
356 | 356 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/bulkEdit/actions/Actions.tsx:36 |
357 | 357 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/bulkEdit/actions/Actions.tsx:40 |
358 | 358 | // Reference: packages/ui-components/src/bulkEdit/BulkActions.tsx:43 |
359 | - __( 'bulk actions', 'event_espresso' ), |
|
359 | + __('bulk actions', 'event_espresso'), |
|
360 | 360 | |
361 | 361 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/bulkEdit/actions/Actions.tsx:40 |
362 | - __( 'edit datetime details', 'event_espresso' ), |
|
362 | + __('edit datetime details', 'event_espresso'), |
|
363 | 363 | |
364 | 364 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/bulkEdit/actions/Actions.tsx:44 |
365 | - __( 'delete datetimes', 'event_espresso' ), |
|
365 | + __('delete datetimes', 'event_espresso'), |
|
366 | 366 | |
367 | 367 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/bulkEdit/actions/Actions.tsx:44 |
368 | - __( 'trash datetimes', 'event_espresso' ), |
|
368 | + __('trash datetimes', 'event_espresso'), |
|
369 | 369 | |
370 | 370 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/bulkEdit/delete/Delete.tsx:14 |
371 | - __( 'Are you sure you want to permanently delete these datetimes? This action can NOT be undone!', 'event_espresso' ), |
|
371 | + __('Are you sure you want to permanently delete these datetimes? This action can NOT be undone!', 'event_espresso'), |
|
372 | 372 | |
373 | 373 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/bulkEdit/delete/Delete.tsx:15 |
374 | - __( 'Are you sure you want to trash these datetimes?', 'event_espresso' ), |
|
374 | + __('Are you sure you want to trash these datetimes?', 'event_espresso'), |
|
375 | 375 | |
376 | 376 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/bulkEdit/delete/Delete.tsx:16 |
377 | - __( 'Delete datetimes permanently', 'event_espresso' ), |
|
377 | + __('Delete datetimes permanently', 'event_espresso'), |
|
378 | 378 | |
379 | 379 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/bulkEdit/delete/Delete.tsx:16 |
380 | - __( 'Trash datetimes', 'event_espresso' ), |
|
380 | + __('Trash datetimes', 'event_espresso'), |
|
381 | 381 | |
382 | 382 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/bulkEdit/details/EditDetails.tsx:21 |
383 | - __( 'Bulk edit date details', 'event_espresso' ), |
|
383 | + __('Bulk edit date details', 'event_espresso'), |
|
384 | 384 | |
385 | 385 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/bulkEdit/details/EditDetails.tsx:22 |
386 | - __( 'any changes will be applied to ALL of the selected dates.', 'event_espresso' ), |
|
386 | + __('any changes will be applied to ALL of the selected dates.', 'event_espresso'), |
|
387 | 387 | |
388 | 388 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/bulkEdit/details/formValidation.ts:12 |
389 | 389 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/bulkEdit/details/formValidation.ts:12 |
390 | - __( 'Name must be at least three characters', 'event_espresso' ), |
|
390 | + __('Name must be at least three characters', 'event_espresso'), |
|
391 | 391 | |
392 | 392 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/bulkEdit/details/useBulkEditFormConfig.ts:67 |
393 | 393 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/bulkEdit/details/useBulkEditFormConfig.ts:67 |
394 | - __( 'Shift dates', 'event_espresso' ), |
|
394 | + __('Shift dates', 'event_espresso'), |
|
395 | 395 | |
396 | 396 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/bulkEdit/details/useBulkEditFormConfig.ts:92 |
397 | 397 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/bulkEdit/details/useBulkEditFormConfig.ts:92 |
398 | - __( 'earlier', 'event_espresso' ), |
|
398 | + __('earlier', 'event_espresso'), |
|
399 | 399 | |
400 | 400 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/bulkEdit/details/useBulkEditFormConfig.ts:96 |
401 | 401 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/bulkEdit/details/useBulkEditFormConfig.ts:96 |
402 | - __( 'later', 'event_espresso' ), |
|
402 | + __('later', 'event_espresso'), |
|
403 | 403 | |
404 | 404 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/cardView/DateCapacity.tsx:31 |
405 | 405 | /* translators: click to edit capacity<linebreak>(registration limit)… */ |
406 | - __( 'click to edit capacity%s(registration limit)…', 'event_espresso' ), |
|
406 | + __('click to edit capacity%s(registration limit)…', 'event_espresso'), |
|
407 | 407 | |
408 | 408 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/cardView/DateCardSidebar.tsx:31 |
409 | 409 | // Reference: packages/ee-components/src/SimpleTicketCard/SimpleTicketCard.tsx:27 |
410 | 410 | // Reference: packages/ui-components/src/CalendarDateSwitcher/CalendarDateSwitcher.tsx:34 |
411 | - __( 'starts', 'event_espresso' ), |
|
411 | + __('starts', 'event_espresso'), |
|
412 | 412 | |
413 | 413 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/cardView/DateCardSidebar.tsx:32 |
414 | 414 | // Reference: packages/ee-components/src/SimpleTicketCard/SimpleTicketCard.tsx:34 |
415 | 415 | // Reference: packages/ui-components/src/CalendarDateSwitcher/CalendarDateSwitcher.tsx:47 |
416 | - __( 'ends', 'event_espresso' ), |
|
416 | + __('ends', 'event_espresso'), |
|
417 | 417 | |
418 | 418 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/cardView/DateCardSidebar.tsx:32 |
419 | - __( 'started', 'event_espresso' ), |
|
419 | + __('started', 'event_espresso'), |
|
420 | 420 | |
421 | 421 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/cardView/DateCardSidebar.tsx:32 |
422 | - __( 'ended', 'event_espresso' ), |
|
422 | + __('ended', 'event_espresso'), |
|
423 | 423 | |
424 | 424 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/cardView/DateCardSidebar.tsx:46 |
425 | - __( 'Edit Event Date', 'event_espresso' ), |
|
425 | + __('Edit Event Date', 'event_espresso'), |
|
426 | 426 | |
427 | 427 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/cardView/DateCardSidebar.tsx:50 |
428 | - __( 'edit start and end dates', 'event_espresso' ), |
|
428 | + __('edit start and end dates', 'event_espresso'), |
|
429 | 429 | |
430 | 430 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/cardView/DateDetailsPanel.tsx:16 |
431 | 431 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/cardView/TicketDetailsPanel.tsx:16 |
432 | - __( 'sold', 'event_espresso' ), |
|
432 | + __('sold', 'event_espresso'), |
|
433 | 433 | |
434 | 434 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/cardView/DateDetailsPanel.tsx:21 |
435 | - __( 'capacity', 'event_espresso' ), |
|
435 | + __('capacity', 'event_espresso'), |
|
436 | 436 | |
437 | 437 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/cardView/DateDetailsPanel.tsx:27 |
438 | 438 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/cardView/TicketDetailsPanel.tsx:26 |
439 | - __( 'reg list', 'event_espresso' ), |
|
439 | + __('reg list', 'event_espresso'), |
|
440 | 440 | |
441 | 441 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/cardView/Details.tsx:43 |
442 | 442 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/cardView/Details.tsx:35 |
443 | - __( 'add description…', 'event_espresso' ), |
|
443 | + __('add description…', 'event_espresso'), |
|
444 | 444 | |
445 | 445 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/cardView/Details.tsx:44 |
446 | 446 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/cardView/Details.tsx:36 |
447 | - __( 'Edit description', 'event_espresso' ), |
|
447 | + __('Edit description', 'event_espresso'), |
|
448 | 448 | |
449 | 449 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/cardView/Details.tsx:45 |
450 | 450 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/cardView/Details.tsx:37 |
451 | - __( 'click to edit description…', 'event_espresso' ), |
|
451 | + __('click to edit description…', 'event_espresso'), |
|
452 | 452 | |
453 | 453 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/config.ts:10 |
454 | - __( 'Move Date to Trash', 'event_espresso' ), |
|
454 | + __('Move Date to Trash', 'event_espresso'), |
|
455 | 455 | |
456 | 456 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/config.ts:13 |
457 | 457 | // Reference: packages/constants/src/datetime.ts:6 |
458 | - __( 'Active', 'event_espresso' ), |
|
458 | + __('Active', 'event_espresso'), |
|
459 | 459 | |
460 | 460 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/config.ts:14 |
461 | 461 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/config.ts:13 |
462 | - __( 'Trashed', 'event_espresso' ), |
|
462 | + __('Trashed', 'event_espresso'), |
|
463 | 463 | |
464 | 464 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/config.ts:15 |
465 | 465 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/config.ts:14 |
466 | 466 | // Reference: packages/constants/src/datetime.ts:8 |
467 | - __( 'Expired', 'event_espresso' ), |
|
467 | + __('Expired', 'event_espresso'), |
|
468 | 468 | |
469 | 469 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/config.ts:16 |
470 | 470 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/config.ts:16 |
471 | - __( 'Sold Out', 'event_espresso' ), |
|
471 | + __('Sold Out', 'event_espresso'), |
|
472 | 472 | |
473 | 473 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/config.ts:17 |
474 | 474 | // Reference: packages/constants/src/datetime.ts:12 |
475 | - __( 'Upcoming', 'event_espresso' ), |
|
475 | + __('Upcoming', 'event_espresso'), |
|
476 | 476 | |
477 | 477 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/config.ts:7 |
478 | - __( 'Edit Event Date Details', 'event_espresso' ), |
|
478 | + __('Edit Event Date Details', 'event_espresso'), |
|
479 | 479 | |
480 | 480 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/config.ts:8 |
481 | - __( 'View Registrations for this Date', 'event_espresso' ), |
|
481 | + __('View Registrations for this Date', 'event_espresso'), |
|
482 | 482 | |
483 | 483 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/config.ts:9 |
484 | - __( 'Manage Ticket Assignments', 'event_espresso' ), |
|
484 | + __('Manage Ticket Assignments', 'event_espresso'), |
|
485 | 485 | |
486 | 486 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/editable/EditableName.tsx:41 |
487 | 487 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/editable/EditableName.tsx:41 |
488 | - __( 'click to edit title…', 'event_espresso' ), |
|
488 | + __('click to edit title…', 'event_espresso'), |
|
489 | 489 | |
490 | 490 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/editable/EditableName.tsx:42 |
491 | 491 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/editable/EditableName.tsx:42 |
492 | - __( 'add title…', 'event_espresso' ), |
|
492 | + __('add title…', 'event_espresso'), |
|
493 | 493 | |
494 | 494 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/filterBar/ActiveDatesFilters.tsx:17 |
495 | 495 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/filterBar/ActiveTicketsFilters.tsx:17 |
496 | - __( 'ON', 'event_espresso' ), |
|
496 | + __('ON', 'event_espresso'), |
|
497 | 497 | |
498 | 498 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:10 |
499 | - __( 'end dates only', 'event_espresso' ), |
|
499 | + __('end dates only', 'event_espresso'), |
|
500 | 500 | |
501 | 501 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:11 |
502 | - __( 'start and end dates', 'event_espresso' ), |
|
502 | + __('start and end dates', 'event_espresso'), |
|
503 | 503 | |
504 | 504 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:16 |
505 | - __( 'dates above 90% capacity', 'event_espresso' ), |
|
505 | + __('dates above 90% capacity', 'event_espresso'), |
|
506 | 506 | |
507 | 507 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:17 |
508 | - __( 'dates above 75% capacity', 'event_espresso' ), |
|
508 | + __('dates above 75% capacity', 'event_espresso'), |
|
509 | 509 | |
510 | 510 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:18 |
511 | - __( 'dates above 50% capacity', 'event_espresso' ), |
|
511 | + __('dates above 50% capacity', 'event_espresso'), |
|
512 | 512 | |
513 | 513 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:19 |
514 | - __( 'dates below 50% capacity', 'event_espresso' ), |
|
514 | + __('dates below 50% capacity', 'event_espresso'), |
|
515 | 515 | |
516 | 516 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:23 |
517 | - __( 'all dates', 'event_espresso' ), |
|
517 | + __('all dates', 'event_espresso'), |
|
518 | 518 | |
519 | 519 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:24 |
520 | - __( 'all active and upcoming', 'event_espresso' ), |
|
520 | + __('all active and upcoming', 'event_espresso'), |
|
521 | 521 | |
522 | 522 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:25 |
523 | - __( 'active dates only', 'event_espresso' ), |
|
523 | + __('active dates only', 'event_espresso'), |
|
524 | 524 | |
525 | 525 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:26 |
526 | - __( 'upcoming dates only', 'event_espresso' ), |
|
526 | + __('upcoming dates only', 'event_espresso'), |
|
527 | 527 | |
528 | 528 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:27 |
529 | - __( 'next active or upcoming only', 'event_espresso' ), |
|
529 | + __('next active or upcoming only', 'event_espresso'), |
|
530 | 530 | |
531 | 531 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:28 |
532 | - __( 'sold out dates only', 'event_espresso' ), |
|
532 | + __('sold out dates only', 'event_espresso'), |
|
533 | 533 | |
534 | 534 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:29 |
535 | - __( 'recently expired dates', 'event_espresso' ), |
|
535 | + __('recently expired dates', 'event_espresso'), |
|
536 | 536 | |
537 | 537 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:30 |
538 | - __( 'all expired dates', 'event_espresso' ), |
|
538 | + __('all expired dates', 'event_espresso'), |
|
539 | 539 | |
540 | 540 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:31 |
541 | - __( 'trashed dates only', 'event_espresso' ), |
|
541 | + __('trashed dates only', 'event_espresso'), |
|
542 | 542 | |
543 | 543 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:35 |
544 | 544 | // Reference: packages/dates/src/components/DateRangePicker/DateRangePickerLegend.tsx:9 |
545 | 545 | // Reference: packages/dates/src/components/DateRangePicker/index.tsx:61 |
546 | - __( 'start date', 'event_espresso' ), |
|
546 | + __('start date', 'event_espresso'), |
|
547 | 547 | |
548 | 548 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:36 |
549 | - __( 'name', 'event_espresso' ), |
|
549 | + __('name', 'event_espresso'), |
|
550 | 550 | |
551 | 551 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:37 |
552 | 552 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/tableView/useHeaderRowGenerator.tsx:31 |
@@ -554,181 +554,181 @@ discard block |
||
554 | 554 | // Reference: domains/core/admin/eventEditor/src/ui/ticketAssignmentsManager/components/table/HeaderCell.tsx:27 |
555 | 555 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/tableView/useHeaderRowGenerator.tsx:31 |
556 | 556 | // Reference: packages/tpc/src/components/table/useHeaderRowGenerator.ts:23 |
557 | - __( 'ID', 'event_espresso' ), |
|
557 | + __('ID', 'event_espresso'), |
|
558 | 558 | |
559 | 559 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:38 |
560 | 560 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:47 |
561 | - __( 'custom order', 'event_espresso' ), |
|
561 | + __('custom order', 'event_espresso'), |
|
562 | 562 | |
563 | 563 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:42 |
564 | 564 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:51 |
565 | - __( 'display', 'event_espresso' ), |
|
565 | + __('display', 'event_espresso'), |
|
566 | 566 | |
567 | 567 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:43 |
568 | - __( 'recurrence', 'event_espresso' ), |
|
568 | + __('recurrence', 'event_espresso'), |
|
569 | 569 | |
570 | 570 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:44 |
571 | 571 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:53 |
572 | - __( 'sales', 'event_espresso' ), |
|
572 | + __('sales', 'event_espresso'), |
|
573 | 573 | |
574 | 574 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:45 |
575 | 575 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:55 |
576 | - __( 'sort by', 'event_espresso' ), |
|
576 | + __('sort by', 'event_espresso'), |
|
577 | 577 | |
578 | 578 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:46 |
579 | 579 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:54 |
580 | 580 | // Reference: packages/ee-components/src/EntityList/EntityListFilterBar.tsx:46 |
581 | - __( 'search', 'event_espresso' ), |
|
581 | + __('search', 'event_espresso'), |
|
582 | 582 | |
583 | 583 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:47 |
584 | 584 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:56 |
585 | - __( 'status', 'event_espresso' ), |
|
585 | + __('status', 'event_espresso'), |
|
586 | 586 | |
587 | 587 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:9 |
588 | - __( 'start dates only', 'event_espresso' ), |
|
588 | + __('start dates only', 'event_espresso'), |
|
589 | 589 | |
590 | 590 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/newDateOptions/AddSingleDate.tsx:26 |
591 | 591 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/newDateOptions/NewDateModal.tsx:12 |
592 | 592 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/newDateOptions/OptionsModalButton.tsx:18 |
593 | - __( 'Add New Date', 'event_espresso' ), |
|
593 | + __('Add New Date', 'event_espresso'), |
|
594 | 594 | |
595 | 595 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/newDateOptions/AddSingleDate.tsx:26 |
596 | - __( 'Add Single Date', 'event_espresso' ), |
|
596 | + __('Add Single Date', 'event_espresso'), |
|
597 | 597 | |
598 | 598 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/newDateOptions/AddSingleDate.tsx:44 |
599 | - __( 'Add a single date that only occurs once', 'event_espresso' ), |
|
599 | + __('Add a single date that only occurs once', 'event_espresso'), |
|
600 | 600 | |
601 | 601 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/newDateOptions/AddSingleDate.tsx:46 |
602 | - __( 'Single Date', 'event_espresso' ), |
|
602 | + __('Single Date', 'event_espresso'), |
|
603 | 603 | |
604 | 604 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/tableView/useHeaderRowGenerator.tsx:106 |
605 | - __( 'Reg list', 'event_espresso' ), |
|
605 | + __('Reg list', 'event_espresso'), |
|
606 | 606 | |
607 | 607 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/tableView/useHeaderRowGenerator.tsx:107 |
608 | 608 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/tableView/useHeaderRowGenerator.tsx:111 |
609 | - __( 'Regs', 'event_espresso' ), |
|
609 | + __('Regs', 'event_espresso'), |
|
610 | 610 | |
611 | 611 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/tableView/useHeaderRowGenerator.tsx:122 |
612 | 612 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/tableView/useHeaderRowGenerator.tsx:126 |
613 | 613 | // Reference: packages/tpc/src/components/table/useHeaderRowGenerator.ts:59 |
614 | - __( 'Actions', 'event_espresso' ), |
|
614 | + __('Actions', 'event_espresso'), |
|
615 | 615 | |
616 | 616 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/tableView/useHeaderRowGenerator.tsx:52 |
617 | - __( 'Start', 'event_espresso' ), |
|
617 | + __('Start', 'event_espresso'), |
|
618 | 618 | |
619 | 619 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/tableView/useHeaderRowGenerator.tsx:66 |
620 | - __( 'End', 'event_espresso' ), |
|
620 | + __('End', 'event_espresso'), |
|
621 | 621 | |
622 | 622 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/tableView/useHeaderRowGenerator.tsx:82 |
623 | - __( 'Cap', 'event_espresso' ), |
|
623 | + __('Cap', 'event_espresso'), |
|
624 | 624 | |
625 | 625 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/tableView/useHeaderRowGenerator.tsx:94 |
626 | 626 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/tableView/useHeaderRowGenerator.tsx:98 |
627 | - __( 'Sold', 'event_espresso' ), |
|
627 | + __('Sold', 'event_espresso'), |
|
628 | 628 | |
629 | 629 | // Reference: domains/core/admin/eventEditor/src/ui/registrationForm/ErrorMessage.tsx:33 |
630 | 630 | // Reference: packages/form-builder/src/constants.ts:67 |
631 | - __( 'Text Input', 'event_espresso' ), |
|
631 | + __('Text Input', 'event_espresso'), |
|
632 | 632 | |
633 | 633 | // Reference: domains/core/admin/eventEditor/src/ui/registrationForm/ErrorMessage.tsx:34 |
634 | 634 | // Reference: domains/core/admin/eventEditor/src/ui/registrationForm/constants.ts:32 |
635 | - __( 'Attendee First Name', 'event_espresso' ), |
|
635 | + __('Attendee First Name', 'event_espresso'), |
|
636 | 636 | |
637 | 637 | // Reference: domains/core/admin/eventEditor/src/ui/registrationForm/ErrorMessage.tsx:39 |
638 | 638 | /* translators: field name */ |
639 | - __( 'Registration form must have a field of type "%1$s" which maps to "%2$s"', 'event_espresso' ), |
|
639 | + __('Registration form must have a field of type "%1$s" which maps to "%2$s"', 'event_espresso'), |
|
640 | 640 | |
641 | 641 | // Reference: domains/core/admin/eventEditor/src/ui/registrationForm/ErrorMessage.tsx:40 |
642 | 642 | // Reference: packages/form-builder/src/constants.ts:82 |
643 | - __( 'Email Address', 'event_espresso' ), |
|
643 | + __('Email Address', 'event_espresso'), |
|
644 | 644 | |
645 | 645 | // Reference: domains/core/admin/eventEditor/src/ui/registrationForm/ErrorMessage.tsx:41 |
646 | 646 | // Reference: domains/core/admin/eventEditor/src/ui/registrationForm/constants.ts:40 |
647 | - __( 'Attendee Email Address', 'event_espresso' ), |
|
647 | + __('Attendee Email Address', 'event_espresso'), |
|
648 | 648 | |
649 | 649 | // Reference: domains/core/admin/eventEditor/src/ui/registrationForm/ErrorMessage.tsx:49 |
650 | - __( 'Please add the required fields', 'event_espresso' ), |
|
650 | + __('Please add the required fields', 'event_espresso'), |
|
651 | 651 | |
652 | 652 | // Reference: domains/core/admin/eventEditor/src/ui/registrationForm/RegistrationForm.tsx:12 |
653 | - __( 'Registration Form', 'event_espresso' ), |
|
653 | + __('Registration Form', 'event_espresso'), |
|
654 | 654 | |
655 | 655 | // Reference: domains/core/admin/eventEditor/src/ui/registrationForm/constants.ts:13 |
656 | - __( 'primary registrant', 'event_espresso' ), |
|
656 | + __('primary registrant', 'event_espresso'), |
|
657 | 657 | |
658 | 658 | // Reference: domains/core/admin/eventEditor/src/ui/registrationForm/constants.ts:17 |
659 | - __( 'purchaser', 'event_espresso' ), |
|
659 | + __('purchaser', 'event_espresso'), |
|
660 | 660 | |
661 | 661 | // Reference: domains/core/admin/eventEditor/src/ui/registrationForm/constants.ts:21 |
662 | - __( 'registrants', 'event_espresso' ), |
|
662 | + __('registrants', 'event_espresso'), |
|
663 | 663 | |
664 | 664 | // Reference: domains/core/admin/eventEditor/src/ui/registrationForm/constants.ts:36 |
665 | - __( 'Attendee Last Name', 'event_espresso' ), |
|
665 | + __('Attendee Last Name', 'event_espresso'), |
|
666 | 666 | |
667 | 667 | // Reference: domains/core/admin/eventEditor/src/ui/registrationForm/constants.ts:44 |
668 | - __( 'Attendee Address', 'event_espresso' ), |
|
668 | + __('Attendee Address', 'event_espresso'), |
|
669 | 669 | |
670 | 670 | // Reference: domains/core/admin/eventEditor/src/ui/registrationForm/constants.ts:9 |
671 | - __( 'all', 'event_espresso' ), |
|
671 | + __('all', 'event_espresso'), |
|
672 | 672 | |
673 | 673 | // Reference: domains/core/admin/eventEditor/src/ui/ticketAssignmentsManager/components/ErrorMessage.tsx:18 |
674 | - __( 'Tickets must always have at least one date assigned to them but one or more of the tickets below does not have any. |
|
675 | -Please correct the assignments for the highlighted cells.', 'event_espresso' ), |
|
674 | + __('Tickets must always have at least one date assigned to them but one or more of the tickets below does not have any. |
|
675 | +Please correct the assignments for the highlighted cells.', 'event_espresso'), |
|
676 | 676 | |
677 | 677 | // Reference: domains/core/admin/eventEditor/src/ui/ticketAssignmentsManager/components/ErrorMessage.tsx:22 |
678 | - __( '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. |
|
679 | -Please correct the assignments for the highlighted cells.', 'event_espresso' ), |
|
678 | + __('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. |
|
679 | +Please correct the assignments for the highlighted cells.', 'event_espresso'), |
|
680 | 680 | |
681 | 681 | // Reference: domains/core/admin/eventEditor/src/ui/ticketAssignmentsManager/components/ErrorMessage.tsx:32 |
682 | - __( 'Please Update Assignments', 'event_espresso' ), |
|
682 | + __('Please Update Assignments', 'event_espresso'), |
|
683 | 683 | |
684 | 684 | // Reference: domains/core/admin/eventEditor/src/ui/ticketAssignmentsManager/components/ModalContainer.tsx:26 |
685 | - __( 'There seem to be some dates/tickets which have no tickets/dates assigned. Do you want to fix them now?', 'event_espresso' ), |
|
685 | + __('There seem to be some dates/tickets which have no tickets/dates assigned. Do you want to fix them now?', 'event_espresso'), |
|
686 | 686 | |
687 | 687 | // Reference: domains/core/admin/eventEditor/src/ui/ticketAssignmentsManager/components/ModalContainer.tsx:29 |
688 | 688 | // Reference: packages/tpc/src/hooks/useLockedTicketAction.ts:74 |
689 | - __( 'Alert!', 'event_espresso' ), |
|
689 | + __('Alert!', 'event_espresso'), |
|
690 | 690 | |
691 | 691 | // Reference: domains/core/admin/eventEditor/src/ui/ticketAssignmentsManager/components/ModalContainer.tsx:42 |
692 | 692 | /* translators: 1 entity id, 2 entity name */ |
693 | - __( 'Ticket Assignment Manager for Datetime: %1$s - %2$s', 'event_espresso' ), |
|
693 | + __('Ticket Assignment Manager for Datetime: %1$s - %2$s', 'event_espresso'), |
|
694 | 694 | |
695 | 695 | // Reference: domains/core/admin/eventEditor/src/ui/ticketAssignmentsManager/components/ModalContainer.tsx:49 |
696 | 696 | /* translators: 1 entity id, 2 entity name */ |
697 | - __( 'Ticket Assignment Manager for Ticket: %1$s - %2$s', 'event_espresso' ), |
|
697 | + __('Ticket Assignment Manager for Ticket: %1$s - %2$s', 'event_espresso'), |
|
698 | 698 | |
699 | 699 | // Reference: domains/core/admin/eventEditor/src/ui/ticketAssignmentsManager/components/TicketAssignmentsManagerModal.tsx:28 |
700 | 700 | // Reference: domains/core/admin/eventEditor/src/ui/ticketAssignmentsManager/components/table/Table.tsx:13 |
701 | - __( 'Ticket Assignment Manager', 'event_espresso' ), |
|
701 | + __('Ticket Assignment Manager', 'event_espresso'), |
|
702 | 702 | |
703 | 703 | // Reference: domains/core/admin/eventEditor/src/ui/ticketAssignmentsManager/components/config.ts:10 |
704 | - __( 'existing relation', 'event_espresso' ), |
|
704 | + __('existing relation', 'event_espresso'), |
|
705 | 705 | |
706 | 706 | // Reference: domains/core/admin/eventEditor/src/ui/ticketAssignmentsManager/components/config.ts:15 |
707 | - __( 'remove existing relation', 'event_espresso' ), |
|
707 | + __('remove existing relation', 'event_espresso'), |
|
708 | 708 | |
709 | 709 | // Reference: domains/core/admin/eventEditor/src/ui/ticketAssignmentsManager/components/config.ts:20 |
710 | - __( 'add new relation', 'event_espresso' ), |
|
710 | + __('add new relation', 'event_espresso'), |
|
711 | 711 | |
712 | 712 | // Reference: domains/core/admin/eventEditor/src/ui/ticketAssignmentsManager/components/config.ts:25 |
713 | - __( 'invalid relation', 'event_espresso' ), |
|
713 | + __('invalid relation', 'event_espresso'), |
|
714 | 714 | |
715 | 715 | // Reference: domains/core/admin/eventEditor/src/ui/ticketAssignmentsManager/components/config.ts:29 |
716 | - __( 'no relation', 'event_espresso' ), |
|
716 | + __('no relation', 'event_espresso'), |
|
717 | 717 | |
718 | 718 | // Reference: domains/core/admin/eventEditor/src/ui/ticketAssignmentsManager/components/table/BodyCell.tsx:23 |
719 | - __( 'assign ticket', 'event_espresso' ), |
|
719 | + __('assign ticket', 'event_espresso'), |
|
720 | 720 | |
721 | 721 | // Reference: domains/core/admin/eventEditor/src/ui/ticketAssignmentsManager/components/table/useGetHeaderRows.tsx:15 |
722 | - __( 'Assignments', 'event_espresso' ), |
|
722 | + __('Assignments', 'event_espresso'), |
|
723 | 723 | |
724 | 724 | // Reference: domains/core/admin/eventEditor/src/ui/ticketAssignmentsManager/components/table/useGetHeaderRows.tsx:16 |
725 | - __( 'Event Dates are listed below', 'event_espresso' ), |
|
725 | + __('Event Dates are listed below', 'event_espresso'), |
|
726 | 726 | |
727 | 727 | // Reference: domains/core/admin/eventEditor/src/ui/ticketAssignmentsManager/components/table/useGetHeaderRows.tsx:17 |
728 | - __( 'Tickets are listed along the top', 'event_espresso' ), |
|
728 | + __('Tickets are listed along the top', 'event_espresso'), |
|
729 | 729 | |
730 | 730 | // Reference: domains/core/admin/eventEditor/src/ui/ticketAssignmentsManager/components/table/useGetHeaderRows.tsx:18 |
731 | - __( 'Click the cell buttons to toggle assigments', 'event_espresso' ), |
|
731 | + __('Click the cell buttons to toggle assigments', 'event_espresso'), |
|
732 | 732 | |
733 | 733 | // Reference: domains/core/admin/eventEditor/src/ui/ticketAssignmentsManager/components/useSubmitButtonProps.ts:29 |
734 | 734 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/bulkEdit/prices/buttons/FooterButtons.tsx:16 |
@@ -737,1530 +737,1530 @@ discard block |
||
737 | 737 | // Reference: packages/tpc/src/buttons/useSubmitButtonProps.tsx:29 |
738 | 738 | // Reference: packages/ui-components/src/Modal/useSubmitButtonProps.tsx:13 |
739 | 739 | // Reference: packages/ui-components/src/Stepper/buttons/Submit.tsx:7 |
740 | - __( 'Submit', 'event_espresso' ), |
|
740 | + __('Submit', 'event_espresso'), |
|
741 | 741 | |
742 | 742 | // Reference: domains/core/admin/eventEditor/src/ui/ticketAssignmentsManager/filters/controls/DatesByMonthControl.tsx:20 |
743 | - __( 'All Dates', 'event_espresso' ), |
|
743 | + __('All Dates', 'event_espresso'), |
|
744 | 744 | |
745 | 745 | // Reference: domains/core/admin/eventEditor/src/ui/ticketAssignmentsManager/filters/controls/DatesByMonthControl.tsx:27 |
746 | - __( 'dates by month', 'event_espresso' ), |
|
746 | + __('dates by month', 'event_espresso'), |
|
747 | 747 | |
748 | 748 | // Reference: domains/core/admin/eventEditor/src/ui/ticketAssignmentsManager/filters/controls/ShowExpiredTicketsControl.tsx:16 |
749 | - __( 'show expired tickets', 'event_espresso' ), |
|
749 | + __('show expired tickets', 'event_espresso'), |
|
750 | 750 | |
751 | 751 | // Reference: domains/core/admin/eventEditor/src/ui/ticketAssignmentsManager/filters/controls/ShowTrashedDatesControl.tsx:13 |
752 | - __( 'show trashed dates', 'event_espresso' ), |
|
752 | + __('show trashed dates', 'event_espresso'), |
|
753 | 753 | |
754 | 754 | // Reference: domains/core/admin/eventEditor/src/ui/ticketAssignmentsManager/filters/controls/ShowTrashedTicketsControl.tsx:16 |
755 | - __( 'show trashed tickets', 'event_espresso' ), |
|
755 | + __('show trashed tickets', 'event_espresso'), |
|
756 | 756 | |
757 | 757 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/defaultTickets/Container.tsx:38 |
758 | 758 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/actions/Actions.tsx:21 |
759 | - __( 'Default tickets', 'event_espresso' ), |
|
759 | + __('Default tickets', 'event_espresso'), |
|
760 | 760 | |
761 | 761 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/defaultTickets/ModalBody.tsx:63 |
762 | 762 | // Reference: packages/edtr-services/src/constants.ts:26 |
763 | - __( 'ticket', 'event_espresso' ), |
|
763 | + __('ticket', 'event_espresso'), |
|
764 | 764 | |
765 | 765 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/defaultTickets/multiStep/FooterButtons.tsx:26 |
766 | 766 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketForm/multiStep/FooterButtons.tsx:33 |
767 | - __( 'Set ticket prices', 'event_espresso' ), |
|
767 | + __('Set ticket prices', 'event_espresso'), |
|
768 | 768 | |
769 | 769 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/defaultTickets/multiStep/FooterButtons.tsx:31 |
770 | - __( 'Skip prices - Save', 'event_espresso' ), |
|
770 | + __('Skip prices - Save', 'event_espresso'), |
|
771 | 771 | |
772 | 772 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/defaultTickets/multiStep/FooterButtons.tsx:37 |
773 | 773 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketForm/multiStep/FooterButtons.tsx:57 |
774 | - __( 'Ticket details', 'event_espresso' ), |
|
774 | + __('Ticket details', 'event_espresso'), |
|
775 | 775 | |
776 | 776 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/defaultTickets/multiStep/FooterButtons.tsx:38 |
777 | - __( 'Save', 'event_espresso' ), |
|
777 | + __('Save', 'event_espresso'), |
|
778 | 778 | |
779 | 779 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/defaultTickets/multiStep/Modal.tsx:22 |
780 | 780 | /* translators: %s ticket id */ |
781 | - __( 'Edit ticket %s', 'event_espresso' ), |
|
781 | + __('Edit ticket %s', 'event_espresso'), |
|
782 | 782 | |
783 | 783 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/defaultTickets/multiStep/Modal.tsx:25 |
784 | 784 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketForm/multiStep/Modal.tsx:30 |
785 | - __( 'New Ticket Details', 'event_espresso' ), |
|
785 | + __('New Ticket Details', 'event_espresso'), |
|
786 | 786 | |
787 | 787 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/defaultTickets/multiStep/TicketFormSteps.tsx:10 |
788 | 788 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketForm/multiStep/TicketFormSteps.tsx:10 |
789 | - __( 'primary information about the ticket', 'event_espresso' ), |
|
789 | + __('primary information about the ticket', 'event_espresso'), |
|
790 | 790 | |
791 | 791 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/defaultTickets/multiStep/TicketFormSteps.tsx:10 |
792 | 792 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketForm/multiStep/TicketFormSteps.tsx:10 |
793 | - __( 'Ticket Details', 'event_espresso' ), |
|
793 | + __('Ticket Details', 'event_espresso'), |
|
794 | 794 | |
795 | 795 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/defaultTickets/multiStep/TicketFormSteps.tsx:12 |
796 | 796 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketForm/multiStep/TicketFormSteps.tsx:12 |
797 | - __( 'apply ticket price modifiers and taxes', 'event_espresso' ), |
|
797 | + __('apply ticket price modifiers and taxes', 'event_espresso'), |
|
798 | 798 | |
799 | 799 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/defaultTickets/multiStep/TicketFormSteps.tsx:14 |
800 | 800 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketForm/multiStep/TicketFormSteps.tsx:14 |
801 | - __( 'Price Calculator', 'event_espresso' ), |
|
801 | + __('Price Calculator', 'event_espresso'), |
|
802 | 802 | |
803 | 803 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/defaultTickets/multiStep/TicketFormSteps.tsx:16 |
804 | 804 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketForm/multiStep/TicketFormSteps.tsx:16 |
805 | - __( 'Assign Dates', 'event_espresso' ), |
|
805 | + __('Assign Dates', 'event_espresso'), |
|
806 | 806 | |
807 | 807 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketForm/multiStep/FooterButtons.tsx:39 |
808 | - __( 'Skip prices - assign dates', 'event_espresso' ), |
|
808 | + __('Skip prices - assign dates', 'event_espresso'), |
|
809 | 809 | |
810 | 810 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketForm/multiStep/FooterButtons.tsx:50 |
811 | - __( 'Save and assign dates', 'event_espresso' ), |
|
811 | + __('Save and assign dates', 'event_espresso'), |
|
812 | 812 | |
813 | 813 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketForm/multiStep/Modal.tsx:26 |
814 | 814 | /* translators: 1 ticket name, 2 ticket id */ |
815 | - __( 'Edit ticket "%1$s" - %2$s', 'event_espresso' ), |
|
815 | + __('Edit ticket "%1$s" - %2$s', 'event_espresso'), |
|
816 | 816 | |
817 | 817 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketForm/useTicketFormConfig.ts:100 |
818 | - __( 'Set to 0 to stop sales, or leave blank for no limit.', 'event_espresso' ), |
|
818 | + __('Set to 0 to stop sales, or leave blank for no limit.', 'event_espresso'), |
|
819 | 819 | |
820 | 820 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketForm/useTicketFormConfig.ts:111 |
821 | 821 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/bulkEdit/details/useBulkEditFormConfig.ts:121 |
822 | - __( 'Number of Uses', 'event_espresso' ), |
|
822 | + __('Number of Uses', 'event_espresso'), |
|
823 | 823 | |
824 | 824 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketForm/useTicketFormConfig.ts:117 |
825 | - __( 'Controls the total number of times this ticket can be used, regardless of the number of dates it is assigned to.', 'event_espresso' ), |
|
825 | + __('Controls the total number of times this ticket can be used, regardless of the number of dates it is assigned to.', 'event_espresso'), |
|
826 | 826 | |
827 | 827 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketForm/useTicketFormConfig.ts:121 |
828 | - __( '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' ), |
|
828 | + __('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'), |
|
829 | 829 | |
830 | 830 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketForm/useTicketFormConfig.ts:129 |
831 | 831 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/bulkEdit/details/useBulkEditFormConfig.ts:129 |
832 | - __( 'Minimum Quantity', 'event_espresso' ), |
|
832 | + __('Minimum Quantity', 'event_espresso'), |
|
833 | 833 | |
834 | 834 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketForm/useTicketFormConfig.ts:134 |
835 | - __( 'The minimum quantity that can be selected for this ticket. Use this to create ticket bundles or graduated pricing.', 'event_espresso' ), |
|
835 | + __('The minimum quantity that can be selected for this ticket. Use this to create ticket bundles or graduated pricing.', 'event_espresso'), |
|
836 | 836 | |
837 | 837 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketForm/useTicketFormConfig.ts:138 |
838 | - __( 'Leave blank for no minimum.', 'event_espresso' ), |
|
838 | + __('Leave blank for no minimum.', 'event_espresso'), |
|
839 | 839 | |
840 | 840 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketForm/useTicketFormConfig.ts:144 |
841 | 841 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/bulkEdit/details/useBulkEditFormConfig.ts:137 |
842 | - __( 'Maximum Quantity', 'event_espresso' ), |
|
842 | + __('Maximum Quantity', 'event_espresso'), |
|
843 | 843 | |
844 | 844 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketForm/useTicketFormConfig.ts:150 |
845 | - __( 'The maximum quantity that can be selected for this ticket. Use this to create ticket bundles or graduated pricing.', 'event_espresso' ), |
|
845 | + __('The maximum quantity that can be selected for this ticket. Use this to create ticket bundles or graduated pricing.', 'event_espresso'), |
|
846 | 846 | |
847 | 847 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketForm/useTicketFormConfig.ts:154 |
848 | - __( 'Leave blank for no maximum.', 'event_espresso' ), |
|
848 | + __('Leave blank for no maximum.', 'event_espresso'), |
|
849 | 849 | |
850 | 850 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketForm/useTicketFormConfig.ts:160 |
851 | 851 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/bulkEdit/details/useBulkEditFormConfig.ts:146 |
852 | - __( 'Required Ticket', 'event_espresso' ), |
|
852 | + __('Required Ticket', 'event_espresso'), |
|
853 | 853 | |
854 | 854 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketForm/useTicketFormConfig.ts:162 |
855 | - __( 'If enabled, the ticket must be selected and will appear first in frontend ticket lists.', 'event_espresso' ), |
|
855 | + __('If enabled, the ticket must be selected and will appear first in frontend ticket lists.', 'event_espresso'), |
|
856 | 856 | |
857 | 857 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketForm/useTicketFormConfig.ts:174 |
858 | - __( 'Visibility', 'event_espresso' ), |
|
858 | + __('Visibility', 'event_espresso'), |
|
859 | 859 | |
860 | 860 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketForm/useTicketFormConfig.ts:176 |
861 | - __( 'Where the ticket can be viewed throughout the UI.', 'event_espresso' ), |
|
861 | + __('Where the ticket can be viewed throughout the UI.', 'event_espresso'), |
|
862 | 862 | |
863 | 863 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketForm/useTicketFormConfig.ts:208 |
864 | - __( 'Ticket Sales', 'event_espresso' ), |
|
864 | + __('Ticket Sales', 'event_espresso'), |
|
865 | 865 | |
866 | 866 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketForm/useTicketFormConfig.ts:92 |
867 | 867 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/bulkEdit/details/useBulkEditFormConfig.ts:112 |
868 | - __( 'Quantity For Sale', 'event_espresso' ), |
|
868 | + __('Quantity For Sale', 'event_espresso'), |
|
869 | 869 | |
870 | 870 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketForm/useTicketFormConfig.ts:98 |
871 | - __( 'The maximum number of this ticket available for sale.', 'event_espresso' ), |
|
871 | + __('The maximum number of this ticket available for sale.', 'event_espresso'), |
|
872 | 872 | |
873 | 873 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/TicketRegistrationsLink.tsx:13 |
874 | - __( 'total registrations.', 'event_espresso' ), |
|
874 | + __('total registrations.', 'event_espresso'), |
|
875 | 875 | |
876 | 876 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/TicketRegistrationsLink.tsx:14 |
877 | - __( 'view ALL registrations for this ticket.', 'event_espresso' ), |
|
877 | + __('view ALL registrations for this ticket.', 'event_espresso'), |
|
878 | 878 | |
879 | 879 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/TicketSoldLink.tsx:13 |
880 | - __( 'view approved registrations for this ticket.', 'event_espresso' ), |
|
880 | + __('view approved registrations for this ticket.', 'event_espresso'), |
|
881 | 881 | |
882 | 882 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/TicketsList.tsx:36 |
883 | - __( 'Available Tickets', 'event_espresso' ), |
|
883 | + __('Available Tickets', 'event_espresso'), |
|
884 | 884 | |
885 | 885 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/TicketsList.tsx:39 |
886 | - __( 'loading tickets…', 'event_espresso' ), |
|
886 | + __('loading tickets…', 'event_espresso'), |
|
887 | 887 | |
888 | 888 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/actionsMenu/AssignDatesButton.tsx:26 |
889 | - __( 'Number of related dates', 'event_espresso' ), |
|
889 | + __('Number of related dates', 'event_espresso'), |
|
890 | 890 | |
891 | 891 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/actionsMenu/AssignDatesButton.tsx:27 |
892 | - __( 'There are no event dates assigned to this ticket. Please click the calendar icon to update the assignments.', 'event_espresso' ), |
|
892 | + __('There are no event dates assigned to this ticket. Please click the calendar icon to update the assignments.', 'event_espresso'), |
|
893 | 893 | |
894 | 894 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/actionsMenu/AssignDatesButton.tsx:37 |
895 | - __( 'assign dates', 'event_espresso' ), |
|
895 | + __('assign dates', 'event_espresso'), |
|
896 | 896 | |
897 | 897 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/actionsMenu/dropdown/DeleteTicket.tsx:19 |
898 | - __( 'Permanently Delete Ticket?', 'event_espresso' ), |
|
898 | + __('Permanently Delete Ticket?', 'event_espresso'), |
|
899 | 899 | |
900 | 900 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/actionsMenu/dropdown/DeleteTicket.tsx:19 |
901 | - __( 'Move Ticket to Trash?', 'event_espresso' ), |
|
901 | + __('Move Ticket to Trash?', 'event_espresso'), |
|
902 | 902 | |
903 | 903 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/actionsMenu/dropdown/DeleteTicket.tsx:22 |
904 | - __( 'Are you sure you want to permanently delete this ticket? This action is permanent and can not be undone.', 'event_espresso' ), |
|
904 | + __('Are you sure you want to permanently delete this ticket? This action is permanent and can not be undone.', 'event_espresso'), |
|
905 | 905 | |
906 | 906 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/actionsMenu/dropdown/DeleteTicket.tsx:48 |
907 | 907 | // Reference: packages/ee-components/src/SimpleTicketCard/actions/Trash.tsx:6 |
908 | - __( 'trash ticket', 'event_espresso' ), |
|
908 | + __('trash ticket', 'event_espresso'), |
|
909 | 909 | |
910 | 910 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/actionsMenu/dropdown/TicketMainMenu.tsx:25 |
911 | - __( 'ticket main menu', 'event_espresso' ), |
|
911 | + __('ticket main menu', 'event_espresso'), |
|
912 | 912 | |
913 | 913 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/actionsMenu/dropdown/TicketMainMenu.tsx:38 |
914 | 914 | // Reference: packages/ee-components/src/SimpleTicketCard/actions/Edit.tsx:15 |
915 | - __( 'edit ticket', 'event_espresso' ), |
|
915 | + __('edit ticket', 'event_espresso'), |
|
916 | 916 | |
917 | 917 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/actionsMenu/dropdown/TicketMainMenu.tsx:39 |
918 | - __( 'copy ticket', 'event_espresso' ), |
|
918 | + __('copy ticket', 'event_espresso'), |
|
919 | 919 | |
920 | 920 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/bulkEdit/actions/Actions.tsx:44 |
921 | - __( 'edit ticket details', 'event_espresso' ), |
|
921 | + __('edit ticket details', 'event_espresso'), |
|
922 | 922 | |
923 | 923 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/bulkEdit/actions/Actions.tsx:48 |
924 | - __( 'delete tickets', 'event_espresso' ), |
|
924 | + __('delete tickets', 'event_espresso'), |
|
925 | 925 | |
926 | 926 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/bulkEdit/actions/Actions.tsx:48 |
927 | - __( 'trash tickets', 'event_espresso' ), |
|
927 | + __('trash tickets', 'event_espresso'), |
|
928 | 928 | |
929 | 929 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/bulkEdit/actions/Actions.tsx:52 |
930 | - __( 'edit ticket prices', 'event_espresso' ), |
|
930 | + __('edit ticket prices', 'event_espresso'), |
|
931 | 931 | |
932 | 932 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/bulkEdit/delete/Delete.tsx:14 |
933 | - __( 'Are you sure you want to permanently delete these tickets? This action can NOT be undone!', 'event_espresso' ), |
|
933 | + __('Are you sure you want to permanently delete these tickets? This action can NOT be undone!', 'event_espresso'), |
|
934 | 934 | |
935 | 935 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/bulkEdit/delete/Delete.tsx:15 |
936 | - __( 'Are you sure you want to trash these tickets?', 'event_espresso' ), |
|
936 | + __('Are you sure you want to trash these tickets?', 'event_espresso'), |
|
937 | 937 | |
938 | 938 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/bulkEdit/delete/Delete.tsx:16 |
939 | - __( 'Delete tickets permanently', 'event_espresso' ), |
|
939 | + __('Delete tickets permanently', 'event_espresso'), |
|
940 | 940 | |
941 | 941 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/bulkEdit/delete/Delete.tsx:16 |
942 | - __( 'Trash tickets', 'event_espresso' ), |
|
942 | + __('Trash tickets', 'event_espresso'), |
|
943 | 943 | |
944 | 944 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/bulkEdit/details/EditDetails.tsx:21 |
945 | - __( 'Bulk edit ticket details', 'event_espresso' ), |
|
945 | + __('Bulk edit ticket details', 'event_espresso'), |
|
946 | 946 | |
947 | 947 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/bulkEdit/details/EditDetails.tsx:22 |
948 | - __( 'any changes will be applied to ALL of the selected tickets.', 'event_espresso' ), |
|
948 | + __('any changes will be applied to ALL of the selected tickets.', 'event_espresso'), |
|
949 | 949 | |
950 | 950 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/bulkEdit/prices/EditPrices.tsx:19 |
951 | - __( 'Bulk edit ticket prices', 'event_espresso' ), |
|
951 | + __('Bulk edit ticket prices', 'event_espresso'), |
|
952 | 952 | |
953 | 953 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/bulkEdit/prices/buttons/EditModeButtons.tsx:20 |
954 | - __( 'Edit all prices together', 'event_espresso' ), |
|
954 | + __('Edit all prices together', 'event_espresso'), |
|
955 | 955 | |
956 | 956 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/bulkEdit/prices/buttons/EditModeButtons.tsx:21 |
957 | - __( 'Edit all the selected ticket prices dynamically', 'event_espresso' ), |
|
957 | + __('Edit all the selected ticket prices dynamically', 'event_espresso'), |
|
958 | 958 | |
959 | 959 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/bulkEdit/prices/buttons/EditModeButtons.tsx:25 |
960 | - __( 'Edit prices individually', 'event_espresso' ), |
|
960 | + __('Edit prices individually', 'event_espresso'), |
|
961 | 961 | |
962 | 962 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/bulkEdit/prices/buttons/EditModeButtons.tsx:26 |
963 | - __( 'Edit prices for each ticket individually', 'event_espresso' ), |
|
963 | + __('Edit prices for each ticket individually', 'event_espresso'), |
|
964 | 964 | |
965 | 965 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/bulkEdit/prices/buttons/FooterButtons.tsx:14 |
966 | 966 | // Reference: packages/ee-components/src/bulkEdit/details/Submit.tsx:34 |
967 | 967 | // Reference: packages/form/src/ResetButton.tsx:18 |
968 | 968 | // Reference: packages/tpc/src/buttons/useResetButtonProps.tsx:12 |
969 | - __( 'Reset', 'event_espresso' ), |
|
969 | + __('Reset', 'event_espresso'), |
|
970 | 970 | |
971 | 971 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/bulkEdit/prices/buttons/FooterButtons.tsx:15 |
972 | 972 | // Reference: packages/tpc/src/hooks/useLockedTicketAction.ts:76 |
973 | 973 | // Reference: packages/ui-components/src/Modal/useCancelButtonProps.tsx:10 |
974 | - __( 'Cancel', 'event_espresso' ), |
|
974 | + __('Cancel', 'event_espresso'), |
|
975 | 975 | |
976 | 976 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/bulkEdit/prices/editSeparately/TPCInstance.tsx:26 |
977 | 977 | /* translators: %s ticket name */ |
978 | - __( 'Edit prices for Ticket: %s', 'event_espresso' ), |
|
978 | + __('Edit prices for Ticket: %s', 'event_espresso'), |
|
979 | 979 | |
980 | 980 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/cardView/TicketCardSidebar.tsx:30 |
981 | - __( 'sales start', 'event_espresso' ), |
|
981 | + __('sales start', 'event_espresso'), |
|
982 | 982 | |
983 | 983 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/cardView/TicketCardSidebar.tsx:33 |
984 | - __( 'sales began', 'event_espresso' ), |
|
984 | + __('sales began', 'event_espresso'), |
|
985 | 985 | |
986 | 986 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/cardView/TicketCardSidebar.tsx:35 |
987 | - __( 'sales ended', 'event_espresso' ), |
|
987 | + __('sales ended', 'event_espresso'), |
|
988 | 988 | |
989 | 989 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/cardView/TicketCardSidebar.tsx:36 |
990 | - __( 'sales end', 'event_espresso' ), |
|
990 | + __('sales end', 'event_espresso'), |
|
991 | 991 | |
992 | 992 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/cardView/TicketCardSidebar.tsx:50 |
993 | - __( 'Edit Ticket Sale Dates', 'event_espresso' ), |
|
993 | + __('Edit Ticket Sale Dates', 'event_espresso'), |
|
994 | 994 | |
995 | 995 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/cardView/TicketCardSidebar.tsx:54 |
996 | - __( 'edit ticket sales start and end dates', 'event_espresso' ), |
|
996 | + __('edit ticket sales start and end dates', 'event_espresso'), |
|
997 | 997 | |
998 | 998 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/cardView/TicketDetailsPanel.tsx:21 |
999 | - __( 'quantity', 'event_espresso' ), |
|
999 | + __('quantity', 'event_espresso'), |
|
1000 | 1000 | |
1001 | 1001 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/cardView/TicketQuantity.tsx:28 |
1002 | 1002 | // Reference: packages/edtr-services/src/apollo/mutations/tickets/useUpdateTicketQtyByCapacity.ts:78 |
1003 | - __( 'Ticket quantity has been adjusted because it cannot be more than the related event date capacity.', 'event_espresso' ), |
|
1003 | + __('Ticket quantity has been adjusted because it cannot be more than the related event date capacity.', 'event_espresso'), |
|
1004 | 1004 | |
1005 | 1005 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/cardView/TicketQuantity.tsx:51 |
1006 | - __( 'edit quantity of tickets available…', 'event_espresso' ), |
|
1006 | + __('edit quantity of tickets available…', 'event_espresso'), |
|
1007 | 1007 | |
1008 | 1008 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/config.ts:10 |
1009 | - __( 'Move Ticket to Trash', 'event_espresso' ), |
|
1009 | + __('Move Ticket to Trash', 'event_espresso'), |
|
1010 | 1010 | |
1011 | 1011 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/config.ts:15 |
1012 | 1012 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/tableView/useHeaderRowGenerator.tsx:52 |
1013 | - __( 'On Sale', 'event_espresso' ), |
|
1013 | + __('On Sale', 'event_espresso'), |
|
1014 | 1014 | |
1015 | 1015 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/config.ts:17 |
1016 | - __( 'Pending', 'event_espresso' ), |
|
1016 | + __('Pending', 'event_espresso'), |
|
1017 | 1017 | |
1018 | 1018 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/config.ts:7 |
1019 | - __( 'Edit Ticket Details', 'event_espresso' ), |
|
1019 | + __('Edit Ticket Details', 'event_espresso'), |
|
1020 | 1020 | |
1021 | 1021 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/config.ts:8 |
1022 | - __( 'Manage Date Assignments', 'event_espresso' ), |
|
1022 | + __('Manage Date Assignments', 'event_espresso'), |
|
1023 | 1023 | |
1024 | 1024 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/config.ts:9 |
1025 | 1025 | // Reference: packages/tpc/src/components/table/Table.tsx:43 |
1026 | - __( 'Ticket Price Calculator', 'event_espresso' ), |
|
1026 | + __('Ticket Price Calculator', 'event_espresso'), |
|
1027 | 1027 | |
1028 | 1028 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/editable/EditablePrice.tsx:39 |
1029 | - __( 'edit ticket total…', 'event_espresso' ), |
|
1029 | + __('edit ticket total…', 'event_espresso'), |
|
1030 | 1030 | |
1031 | 1031 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/editable/EditablePrice.tsx:53 |
1032 | - __( 'set price…', 'event_espresso' ), |
|
1032 | + __('set price…', 'event_espresso'), |
|
1033 | 1033 | |
1034 | 1034 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/IsChainedButton.tsx:23 |
1035 | - __( 'tickets list is linked to dates list and is showing tickets for above dates only', 'event_espresso' ), |
|
1035 | + __('tickets list is linked to dates list and is showing tickets for above dates only', 'event_espresso'), |
|
1036 | 1036 | |
1037 | 1037 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/IsChainedButton.tsx:24 |
1038 | - __( 'tickets list is unlinked and is showing tickets for all event dates', 'event_espresso' ), |
|
1038 | + __('tickets list is unlinked and is showing tickets for all event dates', 'event_espresso'), |
|
1039 | 1039 | |
1040 | 1040 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:10 |
1041 | - __( 'ticket sales start and end dates', 'event_espresso' ), |
|
1041 | + __('ticket sales start and end dates', 'event_espresso'), |
|
1042 | 1042 | |
1043 | 1043 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:15 |
1044 | - __( 'tickets with 90% or more sold', 'event_espresso' ), |
|
1044 | + __('tickets with 90% or more sold', 'event_espresso'), |
|
1045 | 1045 | |
1046 | 1046 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:16 |
1047 | - __( 'tickets with 75% or more sold', 'event_espresso' ), |
|
1047 | + __('tickets with 75% or more sold', 'event_espresso'), |
|
1048 | 1048 | |
1049 | 1049 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:17 |
1050 | - __( 'tickets with 50% or more sold', 'event_espresso' ), |
|
1050 | + __('tickets with 50% or more sold', 'event_espresso'), |
|
1051 | 1051 | |
1052 | 1052 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:19 |
1053 | - __( 'tickets with less than 50% sold', 'event_espresso' ), |
|
1053 | + __('tickets with less than 50% sold', 'event_espresso'), |
|
1054 | 1054 | |
1055 | 1055 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:28 |
1056 | - __( 'all tickets for all dates', 'event_espresso' ), |
|
1056 | + __('all tickets for all dates', 'event_espresso'), |
|
1057 | 1057 | |
1058 | 1058 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:29 |
1059 | - __( 'all on sale and sale pending', 'event_espresso' ), |
|
1059 | + __('all on sale and sale pending', 'event_espresso'), |
|
1060 | 1060 | |
1061 | 1061 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:30 |
1062 | - __( 'on sale tickets only', 'event_espresso' ), |
|
1062 | + __('on sale tickets only', 'event_espresso'), |
|
1063 | 1063 | |
1064 | 1064 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:31 |
1065 | - __( 'sale pending tickets only', 'event_espresso' ), |
|
1065 | + __('sale pending tickets only', 'event_espresso'), |
|
1066 | 1066 | |
1067 | 1067 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:32 |
1068 | - __( 'next on sale or sale pending only', 'event_espresso' ), |
|
1068 | + __('next on sale or sale pending only', 'event_espresso'), |
|
1069 | 1069 | |
1070 | 1070 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:33 |
1071 | - __( 'sold out tickets only', 'event_espresso' ), |
|
1071 | + __('sold out tickets only', 'event_espresso'), |
|
1072 | 1072 | |
1073 | 1073 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:34 |
1074 | - __( 'expired tickets only', 'event_espresso' ), |
|
1074 | + __('expired tickets only', 'event_espresso'), |
|
1075 | 1075 | |
1076 | 1076 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:35 |
1077 | - __( 'trashed tickets only', 'event_espresso' ), |
|
1077 | + __('trashed tickets only', 'event_espresso'), |
|
1078 | 1078 | |
1079 | 1079 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:40 |
1080 | - __( 'all tickets for above dates', 'event_espresso' ), |
|
1080 | + __('all tickets for above dates', 'event_espresso'), |
|
1081 | 1081 | |
1082 | 1082 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:44 |
1083 | - __( 'ticket sale date', 'event_espresso' ), |
|
1083 | + __('ticket sale date', 'event_espresso'), |
|
1084 | 1084 | |
1085 | 1085 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:45 |
1086 | - __( 'ticket name', 'event_espresso' ), |
|
1086 | + __('ticket name', 'event_espresso'), |
|
1087 | 1087 | |
1088 | 1088 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:46 |
1089 | - __( 'ticket ID', 'event_espresso' ), |
|
1089 | + __('ticket ID', 'event_espresso'), |
|
1090 | 1090 | |
1091 | 1091 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:52 |
1092 | - __( 'link', 'event_espresso' ), |
|
1092 | + __('link', 'event_espresso'), |
|
1093 | 1093 | |
1094 | 1094 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:8 |
1095 | - __( 'ticket sales start date only', 'event_espresso' ), |
|
1095 | + __('ticket sales start date only', 'event_espresso'), |
|
1096 | 1096 | |
1097 | 1097 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:9 |
1098 | - __( 'ticket sales end date only', 'event_espresso' ), |
|
1098 | + __('ticket sales end date only', 'event_espresso'), |
|
1099 | 1099 | |
1100 | 1100 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/newTicketOptions/AddSingleTicket.tsx:18 |
1101 | - __( 'Add New Ticket', 'event_espresso' ), |
|
1101 | + __('Add New Ticket', 'event_espresso'), |
|
1102 | 1102 | |
1103 | 1103 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/newTicketOptions/AddSingleTicket.tsx:32 |
1104 | - __( 'Add a single ticket and assign the dates to it', 'event_espresso' ), |
|
1104 | + __('Add a single ticket and assign the dates to it', 'event_espresso'), |
|
1105 | 1105 | |
1106 | 1106 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/newTicketOptions/AddSingleTicket.tsx:34 |
1107 | - __( 'Single Ticket', 'event_espresso' ), |
|
1107 | + __('Single Ticket', 'event_espresso'), |
|
1108 | 1108 | |
1109 | 1109 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/tableView/TableView.tsx:39 |
1110 | - __( 'Tickets', 'event_espresso' ), |
|
1110 | + __('Tickets', 'event_espresso'), |
|
1111 | 1111 | |
1112 | 1112 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/tableView/useHeaderRowGenerator.tsx:110 |
1113 | - __( 'Registrations', 'event_espresso' ), |
|
1113 | + __('Registrations', 'event_espresso'), |
|
1114 | 1114 | |
1115 | 1115 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/tableView/useHeaderRowGenerator.tsx:51 |
1116 | - __( 'Goes on Sale', 'event_espresso' ), |
|
1116 | + __('Goes on Sale', 'event_espresso'), |
|
1117 | 1117 | |
1118 | 1118 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/tableView/useHeaderRowGenerator.tsx:65 |
1119 | - __( 'Sale Ends', 'event_espresso' ), |
|
1119 | + __('Sale Ends', 'event_espresso'), |
|
1120 | 1120 | |
1121 | 1121 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/tableView/useHeaderRowGenerator.tsx:66 |
1122 | - __( 'Ends', 'event_espresso' ), |
|
1122 | + __('Ends', 'event_espresso'), |
|
1123 | 1123 | |
1124 | 1124 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/tableView/useHeaderRowGenerator.tsx:78 |
1125 | - __( 'Price', 'event_espresso' ), |
|
1125 | + __('Price', 'event_espresso'), |
|
1126 | 1126 | |
1127 | 1127 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/tableView/useHeaderRowGenerator.tsx:88 |
1128 | - __( 'Quantity', 'event_espresso' ), |
|
1128 | + __('Quantity', 'event_espresso'), |
|
1129 | 1129 | |
1130 | 1130 | // Reference: domains/core/admin/eventEditor/src/ui/venue/VenueDetails.tsx:105 |
1131 | - __( 'Select a Venue for the Event', 'event_espresso' ), |
|
1131 | + __('Select a Venue for the Event', 'event_espresso'), |
|
1132 | 1132 | |
1133 | 1133 | // Reference: domains/core/admin/eventEditor/src/ui/venue/VenueDetails.tsx:21 |
1134 | - __( 'Venue Details', 'event_espresso' ), |
|
1134 | + __('Venue Details', 'event_espresso'), |
|
1135 | 1135 | |
1136 | 1136 | // Reference: domains/core/admin/eventEditor/src/ui/venue/VenueDetails.tsx:38 |
1137 | - __( 'unlimited space', 'event_espresso' ), |
|
1137 | + __('unlimited space', 'event_espresso'), |
|
1138 | 1138 | |
1139 | 1139 | // Reference: domains/core/admin/eventEditor/src/ui/venue/VenueDetails.tsx:41 |
1140 | 1140 | /* translators: %d venue capacity */ |
1141 | - __( 'Space for up to %d people', 'event_espresso' ), |
|
1141 | + __('Space for up to %d people', 'event_espresso'), |
|
1142 | 1142 | |
1143 | 1143 | // Reference: domains/core/admin/eventEditor/src/ui/venue/VenueDetails.tsx:60 |
1144 | - __( 'no image', 'event_espresso' ), |
|
1144 | + __('no image', 'event_espresso'), |
|
1145 | 1145 | |
1146 | 1146 | // Reference: domains/core/admin/eventEditor/src/ui/venue/VenueDetails.tsx:96 |
1147 | - __( 'Edit this Venue', 'event_espresso' ), |
|
1147 | + __('Edit this Venue', 'event_espresso'), |
|
1148 | 1148 | |
1149 | 1149 | // Reference: domains/core/admin/wpPluginsPage/src/exitSurvey/Popup.tsx:29 |
1150 | - __( 'Do you have a moment to share why you are deactivating Event Espresso?', 'event_espresso' ), |
|
1150 | + __('Do you have a moment to share why you are deactivating Event Espresso?', 'event_espresso'), |
|
1151 | 1151 | |
1152 | 1152 | // Reference: domains/core/admin/wpPluginsPage/src/exitSurvey/Popup.tsx:40 |
1153 | - __( 'Skip', 'event_espresso' ), |
|
1153 | + __('Skip', 'event_espresso'), |
|
1154 | 1154 | |
1155 | 1155 | // Reference: domains/core/admin/wpPluginsPage/src/exitSurvey/Popup.tsx:42 |
1156 | - __( 'Sure I\'ll help', 'event_espresso' ), |
|
1156 | + __('Sure I\'ll help', 'event_espresso'), |
|
1157 | 1157 | |
1158 | 1158 | // Reference: packages/adapters/src/Pagination/Pagination.tsx:23 |
1159 | - __( 'pagination', 'event_espresso' ), |
|
1159 | + __('pagination', 'event_espresso'), |
|
1160 | 1160 | |
1161 | 1161 | // Reference: packages/adapters/src/TagSelector/TagSelector.tsx:112 |
1162 | - __( 'toggle menu', 'event_espresso' ), |
|
1162 | + __('toggle menu', 'event_espresso'), |
|
1163 | 1163 | |
1164 | 1164 | // Reference: packages/constants/src/datetime.ts:10 |
1165 | - __( 'Postponed', 'event_espresso' ), |
|
1165 | + __('Postponed', 'event_espresso'), |
|
1166 | 1166 | |
1167 | 1167 | // Reference: packages/constants/src/datetime.ts:11 |
1168 | - __( 'SoldOut', 'event_espresso' ), |
|
1168 | + __('SoldOut', 'event_espresso'), |
|
1169 | 1169 | |
1170 | 1170 | // Reference: packages/constants/src/datetime.ts:7 |
1171 | 1171 | // Reference: packages/predicates/src/registration/statusOptions.ts:11 |
1172 | - __( 'Cancelled', 'event_espresso' ), |
|
1172 | + __('Cancelled', 'event_espresso'), |
|
1173 | 1173 | |
1174 | 1174 | // Reference: packages/constants/src/datetime.ts:9 |
1175 | - __( 'Inactive', 'event_espresso' ), |
|
1175 | + __('Inactive', 'event_espresso'), |
|
1176 | 1176 | |
1177 | 1177 | // Reference: packages/data/src/mutations/useMutationWithFeedback.ts:25 |
1178 | - __( 'error creating %s', 'event_espresso' ), |
|
1178 | + __('error creating %s', 'event_espresso'), |
|
1179 | 1179 | |
1180 | 1180 | // Reference: packages/data/src/mutations/useMutationWithFeedback.ts:26 |
1181 | - __( 'error deleting %s', 'event_espresso' ), |
|
1181 | + __('error deleting %s', 'event_espresso'), |
|
1182 | 1182 | |
1183 | 1183 | // Reference: packages/data/src/mutations/useMutationWithFeedback.ts:27 |
1184 | - __( 'error updating %s', 'event_espresso' ), |
|
1184 | + __('error updating %s', 'event_espresso'), |
|
1185 | 1185 | |
1186 | 1186 | // Reference: packages/data/src/mutations/useMutationWithFeedback.ts:28 |
1187 | - __( 'creating %s', 'event_espresso' ), |
|
1187 | + __('creating %s', 'event_espresso'), |
|
1188 | 1188 | |
1189 | 1189 | // Reference: packages/data/src/mutations/useMutationWithFeedback.ts:29 |
1190 | - __( 'deleting %s', 'event_espresso' ), |
|
1190 | + __('deleting %s', 'event_espresso'), |
|
1191 | 1191 | |
1192 | 1192 | // Reference: packages/data/src/mutations/useMutationWithFeedback.ts:30 |
1193 | - __( 'updating %s', 'event_espresso' ), |
|
1193 | + __('updating %s', 'event_espresso'), |
|
1194 | 1194 | |
1195 | 1195 | // Reference: packages/data/src/mutations/useMutationWithFeedback.ts:31 |
1196 | - __( 'successfully created %s', 'event_espresso' ), |
|
1196 | + __('successfully created %s', 'event_espresso'), |
|
1197 | 1197 | |
1198 | 1198 | // Reference: packages/data/src/mutations/useMutationWithFeedback.ts:32 |
1199 | - __( 'successfully deleted %s', 'event_espresso' ), |
|
1199 | + __('successfully deleted %s', 'event_espresso'), |
|
1200 | 1200 | |
1201 | 1201 | // Reference: packages/data/src/mutations/useMutationWithFeedback.ts:33 |
1202 | - __( 'successfully updated %s', 'event_espresso' ), |
|
1202 | + __('successfully updated %s', 'event_espresso'), |
|
1203 | 1203 | |
1204 | 1204 | // Reference: packages/dates/src/components/DateRangePicker/DateRangePickerLegend.tsx:13 |
1205 | - __( 'day in range', 'event_espresso' ), |
|
1205 | + __('day in range', 'event_espresso'), |
|
1206 | 1206 | |
1207 | 1207 | // Reference: packages/dates/src/components/DateRangePicker/DateRangePickerLegend.tsx:17 |
1208 | 1208 | // Reference: packages/dates/src/components/DateRangePicker/index.tsx:79 |
1209 | - __( 'end date', 'event_espresso' ), |
|
1209 | + __('end date', 'event_espresso'), |
|
1210 | 1210 | |
1211 | 1211 | // Reference: packages/dates/src/components/DateTimePicker.tsx:13 |
1212 | 1212 | // Reference: packages/dates/src/components/TimePicker.tsx:14 |
1213 | 1213 | // Reference: packages/form-builder/src/state/utils.ts:433 |
1214 | - __( 'time', 'event_espresso' ), |
|
1214 | + __('time', 'event_espresso'), |
|
1215 | 1215 | |
1216 | 1216 | // Reference: packages/dates/src/constants.ts:5 |
1217 | - __( 'End Date & Time must be set later than the Start Date & Time', 'event_espresso' ), |
|
1217 | + __('End Date & Time must be set later than the Start Date & Time', 'event_espresso'), |
|
1218 | 1218 | |
1219 | 1219 | // Reference: packages/dates/src/constants.ts:7 |
1220 | - __( 'Start Date & Time must be set before the End Date & Time', 'event_espresso' ), |
|
1220 | + __('Start Date & Time must be set before the End Date & Time', 'event_espresso'), |
|
1221 | 1221 | |
1222 | 1222 | // Reference: packages/dates/src/utils/misc.ts:16 |
1223 | - __( 'month(s)', 'event_espresso' ), |
|
1223 | + __('month(s)', 'event_espresso'), |
|
1224 | 1224 | |
1225 | 1225 | // Reference: packages/dates/src/utils/misc.ts:17 |
1226 | - __( 'week(s)', 'event_espresso' ), |
|
1226 | + __('week(s)', 'event_espresso'), |
|
1227 | 1227 | |
1228 | 1228 | // Reference: packages/dates/src/utils/misc.ts:18 |
1229 | - __( 'day(s)', 'event_espresso' ), |
|
1229 | + __('day(s)', 'event_espresso'), |
|
1230 | 1230 | |
1231 | 1231 | // Reference: packages/dates/src/utils/misc.ts:19 |
1232 | - __( 'hour(s)', 'event_espresso' ), |
|
1232 | + __('hour(s)', 'event_espresso'), |
|
1233 | 1233 | |
1234 | 1234 | // Reference: packages/dates/src/utils/misc.ts:20 |
1235 | - __( 'minute(s)', 'event_espresso' ), |
|
1235 | + __('minute(s)', 'event_espresso'), |
|
1236 | 1236 | |
1237 | 1237 | // Reference: packages/edtr-services/src/apollo/initialization/useCacheRehydration.ts:107 |
1238 | - __( 'price types initialized', 'event_espresso' ), |
|
1238 | + __('price types initialized', 'event_espresso'), |
|
1239 | 1239 | |
1240 | 1240 | // Reference: packages/edtr-services/src/apollo/initialization/useCacheRehydration.ts:117 |
1241 | - __( 'datetimes initialized', 'event_espresso' ), |
|
1241 | + __('datetimes initialized', 'event_espresso'), |
|
1242 | 1242 | |
1243 | 1243 | // Reference: packages/edtr-services/src/apollo/initialization/useCacheRehydration.ts:127 |
1244 | - __( 'tickets initialized', 'event_espresso' ), |
|
1244 | + __('tickets initialized', 'event_espresso'), |
|
1245 | 1245 | |
1246 | 1246 | // Reference: packages/edtr-services/src/apollo/initialization/useCacheRehydration.ts:137 |
1247 | - __( 'prices initialized', 'event_espresso' ), |
|
1247 | + __('prices initialized', 'event_espresso'), |
|
1248 | 1248 | |
1249 | 1249 | // Reference: packages/edtr-services/src/apollo/mutations/useReorderEntities.ts:63 |
1250 | - __( 'order updated', 'event_espresso' ), |
|
1250 | + __('order updated', 'event_espresso'), |
|
1251 | 1251 | |
1252 | 1252 | // Reference: packages/edtr-services/src/constants.ts:24 |
1253 | - __( 'datetime', 'event_espresso' ), |
|
1253 | + __('datetime', 'event_espresso'), |
|
1254 | 1254 | |
1255 | 1255 | // Reference: packages/edtr-services/src/constants.ts:27 |
1256 | - __( 'price', 'event_espresso' ), |
|
1256 | + __('price', 'event_espresso'), |
|
1257 | 1257 | |
1258 | 1258 | // Reference: packages/edtr-services/src/constants.ts:28 |
1259 | 1259 | // Reference: packages/tpc/src/inputs/PriceTypeInput.tsx:19 |
1260 | - __( 'price type', 'event_espresso' ), |
|
1260 | + __('price type', 'event_espresso'), |
|
1261 | 1261 | |
1262 | 1262 | // Reference: packages/edtr-services/src/utils/dateAndTime.ts:38 |
1263 | 1263 | // Reference: packages/ui-components/src/EditDateRangeButton/EditDateRangeButton.tsx:39 |
1264 | - __( 'End date has been adjusted', 'event_espresso' ), |
|
1264 | + __('End date has been adjusted', 'event_espresso'), |
|
1265 | 1265 | |
1266 | 1266 | // Reference: packages/edtr-services/src/utils/dateAndTime.ts:59 |
1267 | - __( 'Required', 'event_espresso' ), |
|
1267 | + __('Required', 'event_espresso'), |
|
1268 | 1268 | |
1269 | 1269 | // Reference: packages/edtr-services/src/utils/dateAndTime.ts:64 |
1270 | - __( 'Start Date is required', 'event_espresso' ), |
|
1270 | + __('Start Date is required', 'event_espresso'), |
|
1271 | 1271 | |
1272 | 1272 | // Reference: packages/edtr-services/src/utils/dateAndTime.ts:68 |
1273 | - __( 'End Date is required', 'event_espresso' ), |
|
1273 | + __('End Date is required', 'event_espresso'), |
|
1274 | 1274 | |
1275 | 1275 | // Reference: packages/ee-components/src/EntityList/EntityList.tsx:32 |
1276 | - __( 'no results found', 'event_espresso' ), |
|
1276 | + __('no results found', 'event_espresso'), |
|
1277 | 1277 | |
1278 | 1278 | // Reference: packages/ee-components/src/EntityList/EntityList.tsx:33 |
1279 | - __( 'try changing filter settings', 'event_espresso' ), |
|
1279 | + __('try changing filter settings', 'event_espresso'), |
|
1280 | 1280 | |
1281 | 1281 | // Reference: packages/ee-components/src/bulkEdit/ActionCheckbox.tsx:38 |
1282 | 1282 | /* translators: %d entity id */ |
1283 | - __( 'select entity with id %d', 'event_espresso' ), |
|
1283 | + __('select entity with id %d', 'event_espresso'), |
|
1284 | 1284 | |
1285 | 1285 | // Reference: packages/ee-components/src/bulkEdit/ActionCheckbox.tsx:41 |
1286 | - __( 'select all entities', 'event_espresso' ), |
|
1286 | + __('select all entities', 'event_espresso'), |
|
1287 | 1287 | |
1288 | 1288 | // Reference: packages/ee-components/src/bulkEdit/details/BulkEditDetails.tsx:20 |
1289 | - __( 'Note: ', 'event_espresso' ), |
|
1289 | + __('Note: ', 'event_espresso'), |
|
1290 | 1290 | |
1291 | 1291 | // Reference: packages/ee-components/src/bulkEdit/details/BulkEditDetails.tsx:20 |
1292 | - __( 'any changes will be applied to ALL of the selected entities.', 'event_espresso' ), |
|
1292 | + __('any changes will be applied to ALL of the selected entities.', 'event_espresso'), |
|
1293 | 1293 | |
1294 | 1294 | // Reference: packages/ee-components/src/bulkEdit/details/BulkEditDetails.tsx:27 |
1295 | - __( 'Bulk edit details', 'event_espresso' ), |
|
1295 | + __('Bulk edit details', 'event_espresso'), |
|
1296 | 1296 | |
1297 | 1297 | // Reference: packages/ee-components/src/bulkEdit/details/Submit.tsx:17 |
1298 | - __( 'Are you sure you want to bulk update the details?', 'event_espresso' ), |
|
1298 | + __('Are you sure you want to bulk update the details?', 'event_espresso'), |
|
1299 | 1299 | |
1300 | 1300 | // Reference: packages/ee-components/src/bulkEdit/details/Submit.tsx:18 |
1301 | - __( 'Bulk update details', 'event_espresso' ), |
|
1301 | + __('Bulk update details', 'event_espresso'), |
|
1302 | 1302 | |
1303 | 1303 | // Reference: packages/ee-components/src/filterBar/SortByControl/index.tsx:27 |
1304 | - __( 'reorder dates', 'event_espresso' ), |
|
1304 | + __('reorder dates', 'event_espresso'), |
|
1305 | 1305 | |
1306 | 1306 | // Reference: packages/ee-components/src/filterBar/SortByControl/index.tsx:27 |
1307 | - __( 'reorder tickets', 'event_espresso' ), |
|
1307 | + __('reorder tickets', 'event_espresso'), |
|
1308 | 1308 | |
1309 | 1309 | // Reference: packages/form-builder/src/FormElement/FormElementToolbar.tsx:32 |
1310 | - __( 'delete form element', 'event_espresso' ), |
|
1310 | + __('delete form element', 'event_espresso'), |
|
1311 | 1311 | |
1312 | 1312 | // Reference: packages/form-builder/src/FormElement/FormElementToolbar.tsx:49 |
1313 | - __( 'form element settings', 'event_espresso' ), |
|
1313 | + __('form element settings', 'event_espresso'), |
|
1314 | 1314 | |
1315 | 1315 | // Reference: packages/form-builder/src/FormElement/FormElementToolbar.tsx:59 |
1316 | - __( 'copy form element', 'event_espresso' ), |
|
1316 | + __('copy form element', 'event_espresso'), |
|
1317 | 1317 | |
1318 | 1318 | // Reference: packages/form-builder/src/FormElement/FormElementToolbar.tsx:69 |
1319 | - __( 'click, hold, and drag to reorder form element', 'event_espresso' ), |
|
1319 | + __('click, hold, and drag to reorder form element', 'event_espresso'), |
|
1320 | 1320 | |
1321 | 1321 | // Reference: packages/form-builder/src/FormElement/Tabs/FieldOption.tsx:20 |
1322 | - __( 'remove option', 'event_espresso' ), |
|
1322 | + __('remove option', 'event_espresso'), |
|
1323 | 1323 | |
1324 | 1324 | // Reference: packages/form-builder/src/FormElement/Tabs/FieldOption.tsx:42 |
1325 | - __( 'value', 'event_espresso' ), |
|
1325 | + __('value', 'event_espresso'), |
|
1326 | 1326 | |
1327 | 1327 | // Reference: packages/form-builder/src/FormElement/Tabs/FieldOption.tsx:52 |
1328 | - __( 'label', 'event_espresso' ), |
|
1328 | + __('label', 'event_espresso'), |
|
1329 | 1329 | |
1330 | 1330 | // Reference: packages/form-builder/src/FormElement/Tabs/FieldOption.tsx:63 |
1331 | - __( 'click, hold, and drag to reorder field option', 'event_espresso' ), |
|
1331 | + __('click, hold, and drag to reorder field option', 'event_espresso'), |
|
1332 | 1332 | |
1333 | 1333 | // Reference: packages/form-builder/src/FormElement/Tabs/FieldOptions.tsx:61 |
1334 | - __( 'Options are the choices you give people to select from.', 'event_espresso' ), |
|
1334 | + __('Options are the choices you give people to select from.', 'event_espresso'), |
|
1335 | 1335 | |
1336 | 1336 | // Reference: packages/form-builder/src/FormElement/Tabs/FieldOptions.tsx:63 |
1337 | - __( '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' ), |
|
1337 | + __('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 | 1338 | |
1339 | 1339 | // Reference: packages/form-builder/src/FormElement/Tabs/FieldOptions.tsx:96 |
1340 | - __( 'add new option', 'event_espresso' ), |
|
1340 | + __('add new option', 'event_espresso'), |
|
1341 | 1341 | |
1342 | 1342 | // Reference: packages/form-builder/src/FormElement/Tabs/FormElementTabs.tsx:26 |
1343 | 1343 | // Reference: packages/form-builder/src/FormSection/Tabs/FormSectionTabs.tsx:25 |
1344 | - __( 'Styles', 'event_espresso' ), |
|
1344 | + __('Styles', 'event_espresso'), |
|
1345 | 1345 | |
1346 | 1346 | // Reference: packages/form-builder/src/FormElement/Tabs/FormElementTabs.tsx:30 |
1347 | - __( 'Validation', 'event_espresso' ), |
|
1347 | + __('Validation', 'event_espresso'), |
|
1348 | 1348 | |
1349 | 1349 | // Reference: packages/form-builder/src/FormElement/Tabs/InputType.tsx:18 |
1350 | - __( 'Change input type', 'event_espresso' ), |
|
1350 | + __('Change input type', 'event_espresso'), |
|
1351 | 1351 | |
1352 | 1352 | // Reference: packages/form-builder/src/FormElement/Tabs/InputType.tsx:19 |
1353 | - __( 'Some configurations might be lost. Are you sure you want to change the input type?', 'event_espresso' ), |
|
1353 | + __('Some configurations might be lost. Are you sure you want to change the input type?', 'event_espresso'), |
|
1354 | 1354 | |
1355 | 1355 | // Reference: packages/form-builder/src/FormElement/Tabs/InputType.tsx:40 |
1356 | - __( 'type', 'event_espresso' ), |
|
1356 | + __('type', 'event_espresso'), |
|
1357 | 1357 | |
1358 | 1358 | // Reference: packages/form-builder/src/FormElement/Tabs/Settings.tsx:26 |
1359 | 1359 | // Reference: packages/form-builder/src/FormSection/Tabs/Settings.tsx:17 |
1360 | - __( 'public label', 'event_espresso' ), |
|
1360 | + __('public label', 'event_espresso'), |
|
1361 | 1361 | |
1362 | 1362 | // Reference: packages/form-builder/src/FormElement/Tabs/Settings.tsx:33 |
1363 | 1363 | // Reference: packages/form-builder/src/FormSection/Tabs/Settings.tsx:22 |
1364 | - __( 'admin label', 'event_espresso' ), |
|
1364 | + __('admin label', 'event_espresso'), |
|
1365 | 1365 | |
1366 | 1366 | // Reference: packages/form-builder/src/FormElement/Tabs/Settings.tsx:40 |
1367 | - __( 'content', 'event_espresso' ), |
|
1367 | + __('content', 'event_espresso'), |
|
1368 | 1368 | |
1369 | 1369 | // Reference: packages/form-builder/src/FormElement/Tabs/Settings.tsx:48 |
1370 | - __( 'options', 'event_espresso' ), |
|
1370 | + __('options', 'event_espresso'), |
|
1371 | 1371 | |
1372 | 1372 | // Reference: packages/form-builder/src/FormElement/Tabs/Settings.tsx:51 |
1373 | - __( 'placeholder', 'event_espresso' ), |
|
1373 | + __('placeholder', 'event_espresso'), |
|
1374 | 1374 | |
1375 | 1375 | // Reference: packages/form-builder/src/FormElement/Tabs/Settings.tsx:57 |
1376 | - __( 'admin only', 'event_espresso' ), |
|
1376 | + __('admin only', 'event_espresso'), |
|
1377 | 1377 | |
1378 | 1378 | // Reference: packages/form-builder/src/FormElement/Tabs/Settings.tsx:62 |
1379 | - __( 'help text', 'event_espresso' ), |
|
1379 | + __('help text', 'event_espresso'), |
|
1380 | 1380 | |
1381 | 1381 | // Reference: packages/form-builder/src/FormElement/Tabs/Settings.tsx:71 |
1382 | - __( 'maps to', 'event_espresso' ), |
|
1382 | + __('maps to', 'event_espresso'), |
|
1383 | 1383 | |
1384 | 1384 | // Reference: packages/form-builder/src/FormElement/Tabs/Styles.tsx:15 |
1385 | 1385 | // Reference: packages/form-builder/src/FormSection/Tabs/Styles.tsx:13 |
1386 | - __( 'css class', 'event_espresso' ), |
|
1386 | + __('css class', 'event_espresso'), |
|
1387 | 1387 | |
1388 | 1388 | // Reference: packages/form-builder/src/FormElement/Tabs/Styles.tsx:20 |
1389 | - __( 'help text css class', 'event_espresso' ), |
|
1389 | + __('help text css class', 'event_espresso'), |
|
1390 | 1390 | |
1391 | 1391 | // Reference: packages/form-builder/src/FormElement/Tabs/Styles.tsx:27 |
1392 | - __( 'size', 'event_espresso' ), |
|
1392 | + __('size', 'event_espresso'), |
|
1393 | 1393 | |
1394 | 1394 | // Reference: packages/form-builder/src/FormElement/Tabs/Styles.tsx:35 |
1395 | - __( 'step', 'event_espresso' ), |
|
1395 | + __('step', 'event_espresso'), |
|
1396 | 1396 | |
1397 | 1397 | // Reference: packages/form-builder/src/FormElement/Tabs/Styles.tsx:41 |
1398 | - __( 'maxlength', 'event_espresso' ), |
|
1398 | + __('maxlength', 'event_espresso'), |
|
1399 | 1399 | |
1400 | 1400 | // Reference: packages/form-builder/src/FormElement/Tabs/Validation.tsx:123 |
1401 | - __( 'min', 'event_espresso' ), |
|
1401 | + __('min', 'event_espresso'), |
|
1402 | 1402 | |
1403 | 1403 | // Reference: packages/form-builder/src/FormElement/Tabs/Validation.tsx:128 |
1404 | - __( 'max', 'event_espresso' ), |
|
1404 | + __('max', 'event_espresso'), |
|
1405 | 1405 | |
1406 | 1406 | // Reference: packages/form-builder/src/FormElement/Tabs/Validation.tsx:28 |
1407 | - __( 'Germany', 'event_espresso' ), |
|
1407 | + __('Germany', 'event_espresso'), |
|
1408 | 1408 | |
1409 | 1409 | // Reference: packages/form-builder/src/FormElement/Tabs/Validation.tsx:32 |
1410 | - __( 'France', 'event_espresso' ), |
|
1410 | + __('France', 'event_espresso'), |
|
1411 | 1411 | |
1412 | 1412 | // Reference: packages/form-builder/src/FormElement/Tabs/Validation.tsx:36 |
1413 | - __( 'United Kingdom', 'event_espresso' ), |
|
1413 | + __('United Kingdom', 'event_espresso'), |
|
1414 | 1414 | |
1415 | 1415 | // Reference: packages/form-builder/src/FormElement/Tabs/Validation.tsx:40 |
1416 | - __( 'United States', 'event_espresso' ), |
|
1416 | + __('United States', 'event_espresso'), |
|
1417 | 1417 | |
1418 | 1418 | // Reference: packages/form-builder/src/FormElement/Tabs/Validation.tsx:44 |
1419 | - __( 'Custom', 'event_espresso' ), |
|
1419 | + __('Custom', 'event_espresso'), |
|
1420 | 1420 | |
1421 | 1421 | // Reference: packages/form-builder/src/FormElement/Tabs/Validation.tsx:54 |
1422 | - __( 'required', 'event_espresso' ), |
|
1422 | + __('required', 'event_espresso'), |
|
1423 | 1423 | |
1424 | 1424 | // Reference: packages/form-builder/src/FormElement/Tabs/Validation.tsx:59 |
1425 | - __( 'required text', 'event_espresso' ), |
|
1425 | + __('required text', 'event_espresso'), |
|
1426 | 1426 | |
1427 | 1427 | // Reference: packages/form-builder/src/FormElement/Tabs/Validation.tsx:66 |
1428 | - __( 'autocomplete', 'event_espresso' ), |
|
1428 | + __('autocomplete', 'event_espresso'), |
|
1429 | 1429 | |
1430 | 1430 | // Reference: packages/form-builder/src/FormElement/Tabs/Validation.tsx:74 |
1431 | - __( 'custom format', 'event_espresso' ), |
|
1431 | + __('custom format', 'event_espresso'), |
|
1432 | 1432 | |
1433 | 1433 | // Reference: packages/form-builder/src/FormElement/Tabs/Validation.tsx:75 |
1434 | - __( 'format', 'event_espresso' ), |
|
1434 | + __('format', 'event_espresso'), |
|
1435 | 1435 | |
1436 | 1436 | // Reference: packages/form-builder/src/FormElement/Tabs/Validation.tsx:83 |
1437 | - __( 'pattern', 'event_espresso' ), |
|
1437 | + __('pattern', 'event_espresso'), |
|
1438 | 1438 | |
1439 | 1439 | // Reference: packages/form-builder/src/FormSection/AddFormElementPopover.tsx:110 |
1440 | - __( 'add new form element', 'event_espresso' ), |
|
1440 | + __('add new form element', 'event_espresso'), |
|
1441 | 1441 | |
1442 | 1442 | // Reference: packages/form-builder/src/FormSection/AddFormElementPopover.tsx:117 |
1443 | 1443 | // Reference: packages/form/src/renderers/RepeatableRenderer.tsx:52 |
1444 | - __( 'Add', 'event_espresso' ), |
|
1444 | + __('Add', 'event_espresso'), |
|
1445 | 1445 | |
1446 | 1446 | // Reference: packages/form-builder/src/FormSection/AddFormElementPopover.tsx:76 |
1447 | - __( 'Add Form Element', 'event_espresso' ), |
|
1447 | + __('Add Form Element', 'event_espresso'), |
|
1448 | 1448 | |
1449 | 1449 | // Reference: packages/form-builder/src/FormSection/AddFormElementPopover.tsx:85 |
1450 | - __( 'form element order can be changed after adding by using the drag handles in the form element toolbar', 'event_espresso' ), |
|
1450 | + __('form element order can be changed after adding by using the drag handles in the form element toolbar', 'event_espresso'), |
|
1451 | 1451 | |
1452 | 1452 | // Reference: packages/form-builder/src/FormSection/AddFormElementPopover.tsx:92 |
1453 | - __( 'load existing form section', 'event_espresso' ), |
|
1453 | + __('load existing form section', 'event_espresso'), |
|
1454 | 1454 | |
1455 | 1455 | // Reference: packages/form-builder/src/FormSection/FormSectionToolbar.tsx:32 |
1456 | - __( 'delete form section', 'event_espresso' ), |
|
1456 | + __('delete form section', 'event_espresso'), |
|
1457 | 1457 | |
1458 | 1458 | // Reference: packages/form-builder/src/FormSection/FormSectionToolbar.tsx:47 |
1459 | - __( 'form section settings', 'event_espresso' ), |
|
1459 | + __('form section settings', 'event_espresso'), |
|
1460 | 1460 | |
1461 | 1461 | // Reference: packages/form-builder/src/FormSection/FormSectionToolbar.tsx:57 |
1462 | - __( 'copy form section', 'event_espresso' ), |
|
1462 | + __('copy form section', 'event_espresso'), |
|
1463 | 1463 | |
1464 | 1464 | // Reference: packages/form-builder/src/FormSection/FormSectionToolbar.tsx:74 |
1465 | - __( 'click, hold, and drag to reorder form section', 'event_espresso' ), |
|
1465 | + __('click, hold, and drag to reorder form section', 'event_espresso'), |
|
1466 | 1466 | |
1467 | 1467 | // Reference: packages/form-builder/src/FormSection/FormSections.tsx:26 |
1468 | - __( 'Add Form Section', 'event_espresso' ), |
|
1468 | + __('Add Form Section', 'event_espresso'), |
|
1469 | 1469 | |
1470 | 1470 | // Reference: packages/form-builder/src/FormSection/SaveSection.tsx:47 |
1471 | - __( 'save form section for use in other forms', 'event_espresso' ), |
|
1471 | + __('save form section for use in other forms', 'event_espresso'), |
|
1472 | 1472 | |
1473 | 1473 | // Reference: packages/form-builder/src/FormSection/SaveSection.tsx:51 |
1474 | - __( 'save as', 'event_espresso' ), |
|
1474 | + __('save as', 'event_espresso'), |
|
1475 | 1475 | |
1476 | 1476 | // Reference: packages/form-builder/src/FormSection/SaveSection.tsx:55 |
1477 | - __( 'default', 'event_espresso' ), |
|
1477 | + __('default', 'event_espresso'), |
|
1478 | 1478 | |
1479 | 1479 | // Reference: packages/form-builder/src/FormSection/SaveSection.tsx:58 |
1480 | - __( ' a copy of this form section will be automatically added to ALL new events', 'event_espresso' ), |
|
1480 | + __(' a copy of this form section will be automatically added to ALL new events', 'event_espresso'), |
|
1481 | 1481 | |
1482 | 1482 | // Reference: packages/form-builder/src/FormSection/SaveSection.tsx:61 |
1483 | - __( 'shared', 'event_espresso' ), |
|
1483 | + __('shared', 'event_espresso'), |
|
1484 | 1484 | |
1485 | 1485 | // Reference: packages/form-builder/src/FormSection/SaveSection.tsx:64 |
1486 | - __( 'a copy of this form section will be saved for use in other events but not loaded by default', 'event_espresso' ), |
|
1486 | + __('a copy of this form section will be saved for use in other events but not loaded by default', 'event_espresso'), |
|
1487 | 1487 | |
1488 | 1488 | // Reference: packages/form-builder/src/FormSection/Tabs/Settings.tsx:27 |
1489 | - __( 'show label', 'event_espresso' ), |
|
1489 | + __('show label', 'event_espresso'), |
|
1490 | 1490 | |
1491 | 1491 | // Reference: packages/form-builder/src/FormSection/Tabs/Settings.tsx:33 |
1492 | - __( 'applies to', 'event_espresso' ), |
|
1492 | + __('applies to', 'event_espresso'), |
|
1493 | 1493 | |
1494 | 1494 | // Reference: packages/form-builder/src/constants.ts:102 |
1495 | 1495 | // Reference: packages/form-builder/src/state/utils.ts:436 |
1496 | - __( 'URL', 'event_espresso' ), |
|
1496 | + __('URL', 'event_espresso'), |
|
1497 | 1497 | |
1498 | 1498 | // Reference: packages/form-builder/src/constants.ts:104 |
1499 | - __( 'adds a text input for entering a URL address', 'event_espresso' ), |
|
1499 | + __('adds a text input for entering a URL address', 'event_espresso'), |
|
1500 | 1500 | |
1501 | 1501 | // Reference: packages/form-builder/src/constants.ts:107 |
1502 | - __( 'Date', 'event_espresso' ), |
|
1502 | + __('Date', 'event_espresso'), |
|
1503 | 1503 | |
1504 | 1504 | // Reference: packages/form-builder/src/constants.ts:109 |
1505 | - __( 'adds a text input that allows users to enter a date directly via keyboard or a datepicker', 'event_espresso' ), |
|
1505 | + __('adds a text input that allows users to enter a date directly via keyboard or a datepicker', 'event_espresso'), |
|
1506 | 1506 | |
1507 | 1507 | // Reference: packages/form-builder/src/constants.ts:112 |
1508 | 1508 | // Reference: packages/form-builder/src/state/utils.ts:369 |
1509 | - __( 'Local Date', 'event_espresso' ), |
|
1509 | + __('Local Date', 'event_espresso'), |
|
1510 | 1510 | |
1511 | 1511 | // Reference: packages/form-builder/src/constants.ts:117 |
1512 | - __( 'Month', 'event_espresso' ), |
|
1512 | + __('Month', 'event_espresso'), |
|
1513 | 1513 | |
1514 | 1514 | // Reference: packages/form-builder/src/constants.ts:119 |
1515 | - __( 'adds a text input that allows users to enter a month and year directly via keyboard or a datepicker', 'event_espresso' ), |
|
1515 | + __('adds a text input that allows users to enter a month and year directly via keyboard or a datepicker', 'event_espresso'), |
|
1516 | 1516 | |
1517 | 1517 | // Reference: packages/form-builder/src/constants.ts:122 |
1518 | - __( 'Time', 'event_espresso' ), |
|
1518 | + __('Time', 'event_espresso'), |
|
1519 | 1519 | |
1520 | 1520 | // Reference: packages/form-builder/src/constants.ts:124 |
1521 | - __( 'adds a text input that allows users to enter a time directly via keyboard or a timepicker', 'event_espresso' ), |
|
1521 | + __('adds a text input that allows users to enter a time directly via keyboard or a timepicker', 'event_espresso'), |
|
1522 | 1522 | |
1523 | 1523 | // Reference: packages/form-builder/src/constants.ts:127 |
1524 | - __( 'Week', 'event_espresso' ), |
|
1524 | + __('Week', 'event_espresso'), |
|
1525 | 1525 | |
1526 | 1526 | // Reference: packages/form-builder/src/constants.ts:129 |
1527 | - __( 'adds a text input that allows users to enter a week and year directly via keyboard or a datepicker', 'event_espresso' ), |
|
1527 | + __('adds a text input that allows users to enter a week and year directly via keyboard or a datepicker', 'event_espresso'), |
|
1528 | 1528 | |
1529 | 1529 | // Reference: packages/form-builder/src/constants.ts:132 |
1530 | - __( 'Day Selector', 'event_espresso' ), |
|
1530 | + __('Day Selector', 'event_espresso'), |
|
1531 | 1531 | |
1532 | 1532 | // Reference: packages/form-builder/src/constants.ts:134 |
1533 | - __( 'adds a dropdown selector that allows users to select the day of the month (01 to 31)', 'event_espresso' ), |
|
1533 | + __('adds a dropdown selector that allows users to select the day of the month (01 to 31)', 'event_espresso'), |
|
1534 | 1534 | |
1535 | 1535 | // Reference: packages/form-builder/src/constants.ts:137 |
1536 | - __( 'Month Selector', 'event_espresso' ), |
|
1536 | + __('Month Selector', 'event_espresso'), |
|
1537 | 1537 | |
1538 | 1538 | // Reference: packages/form-builder/src/constants.ts:139 |
1539 | - __( 'adds a dropdown selector that allows users to select the month of the year (01 to 12)', 'event_espresso' ), |
|
1539 | + __('adds a dropdown selector that allows users to select the month of the year (01 to 12)', 'event_espresso'), |
|
1540 | 1540 | |
1541 | 1541 | // Reference: packages/form-builder/src/constants.ts:142 |
1542 | - __( 'Year Selector', 'event_espresso' ), |
|
1542 | + __('Year Selector', 'event_espresso'), |
|
1543 | 1543 | |
1544 | 1544 | // Reference: packages/form-builder/src/constants.ts:144 |
1545 | - __( 'adds a dropdown selector that allows users to select the year from a configurable range', 'event_espresso' ), |
|
1545 | + __('adds a dropdown selector that allows users to select the year from a configurable range', 'event_espresso'), |
|
1546 | 1546 | |
1547 | 1547 | // Reference: packages/form-builder/src/constants.ts:147 |
1548 | - __( 'Radio Buttons', 'event_espresso' ), |
|
1548 | + __('Radio Buttons', 'event_espresso'), |
|
1549 | 1549 | |
1550 | 1550 | // Reference: packages/form-builder/src/constants.ts:149 |
1551 | - __( 'adds one or more radio buttons that allow users to only select one option from those provided', 'event_espresso' ), |
|
1551 | + __('adds one or more radio buttons that allow users to only select one option from those provided', 'event_espresso'), |
|
1552 | 1552 | |
1553 | 1553 | // Reference: packages/form-builder/src/constants.ts:152 |
1554 | 1554 | // Reference: packages/form-builder/src/state/utils.ts:375 |
1555 | - __( 'Decimal Number', 'event_espresso' ), |
|
1555 | + __('Decimal Number', 'event_espresso'), |
|
1556 | 1556 | |
1557 | 1557 | // Reference: packages/form-builder/src/constants.ts:154 |
1558 | - __( 'adds a text input that only accepts numbers whose value is a decimal (float)', 'event_espresso' ), |
|
1558 | + __('adds a text input that only accepts numbers whose value is a decimal (float)', 'event_espresso'), |
|
1559 | 1559 | |
1560 | 1560 | // Reference: packages/form-builder/src/constants.ts:157 |
1561 | 1561 | // Reference: packages/form-builder/src/state/utils.ts:378 |
1562 | - __( 'Whole Number', 'event_espresso' ), |
|
1562 | + __('Whole Number', 'event_espresso'), |
|
1563 | 1563 | |
1564 | 1564 | // Reference: packages/form-builder/src/constants.ts:159 |
1565 | - __( 'adds a text input that only accepts numbers whose value is an integer (whole number)', 'event_espresso' ), |
|
1565 | + __('adds a text input that only accepts numbers whose value is an integer (whole number)', 'event_espresso'), |
|
1566 | 1566 | |
1567 | 1567 | // Reference: packages/form-builder/src/constants.ts:162 |
1568 | - __( 'Number Range', 'event_espresso' ), |
|
1568 | + __('Number Range', 'event_espresso'), |
|
1569 | 1569 | |
1570 | 1570 | // Reference: packages/form-builder/src/constants.ts:167 |
1571 | - __( 'Phone Number', 'event_espresso' ), |
|
1571 | + __('Phone Number', 'event_espresso'), |
|
1572 | 1572 | |
1573 | 1573 | // Reference: packages/form-builder/src/constants.ts:172 |
1574 | - __( 'Dropdown', 'event_espresso' ), |
|
1574 | + __('Dropdown', 'event_espresso'), |
|
1575 | 1575 | |
1576 | 1576 | // Reference: packages/form-builder/src/constants.ts:174 |
1577 | - __( 'adds a dropdown selector that accepts a single value', 'event_espresso' ), |
|
1577 | + __('adds a dropdown selector that accepts a single value', 'event_espresso'), |
|
1578 | 1578 | |
1579 | 1579 | // Reference: packages/form-builder/src/constants.ts:177 |
1580 | - __( 'Multi Select', 'event_espresso' ), |
|
1580 | + __('Multi Select', 'event_espresso'), |
|
1581 | 1581 | |
1582 | 1582 | // Reference: packages/form-builder/src/constants.ts:179 |
1583 | - __( 'adds a dropdown selector that accepts multiple values', 'event_espresso' ), |
|
1583 | + __('adds a dropdown selector that accepts multiple values', 'event_espresso'), |
|
1584 | 1584 | |
1585 | 1585 | // Reference: packages/form-builder/src/constants.ts:182 |
1586 | - __( 'Toggle/Switch', 'event_espresso' ), |
|
1586 | + __('Toggle/Switch', 'event_espresso'), |
|
1587 | 1587 | |
1588 | 1588 | // Reference: packages/form-builder/src/constants.ts:184 |
1589 | - __( 'adds a toggle or a switch to accept true or false value', 'event_espresso' ), |
|
1589 | + __('adds a toggle or a switch to accept true or false value', 'event_espresso'), |
|
1590 | 1590 | |
1591 | 1591 | // Reference: packages/form-builder/src/constants.ts:187 |
1592 | - __( 'Multi Checkbox', 'event_espresso' ), |
|
1592 | + __('Multi Checkbox', 'event_espresso'), |
|
1593 | 1593 | |
1594 | 1594 | // Reference: packages/form-builder/src/constants.ts:189 |
1595 | - __( 'adds checkboxes that allow users to select zero or more options from those provided', 'event_espresso' ), |
|
1595 | + __('adds checkboxes that allow users to select zero or more options from those provided', 'event_espresso'), |
|
1596 | 1596 | |
1597 | 1597 | // Reference: packages/form-builder/src/constants.ts:192 |
1598 | - __( 'Country Selector', 'event_espresso' ), |
|
1598 | + __('Country Selector', 'event_espresso'), |
|
1599 | 1599 | |
1600 | 1600 | // Reference: packages/form-builder/src/constants.ts:194 |
1601 | - __( 'adds a dropdown selector populated with names of countries that are enabled for the site', 'event_espresso' ), |
|
1601 | + __('adds a dropdown selector populated with names of countries that are enabled for the site', 'event_espresso'), |
|
1602 | 1602 | |
1603 | 1603 | // Reference: packages/form-builder/src/constants.ts:197 |
1604 | - __( 'State Selector', 'event_espresso' ), |
|
1604 | + __('State Selector', 'event_espresso'), |
|
1605 | 1605 | |
1606 | 1606 | // Reference: packages/form-builder/src/constants.ts:202 |
1607 | - __( 'Button', 'event_espresso' ), |
|
1607 | + __('Button', 'event_espresso'), |
|
1608 | 1608 | |
1609 | 1609 | // Reference: packages/form-builder/src/constants.ts:204 |
1610 | - __( 'adds a button to the form that can be used for triggering fucntionality (requires custom coding)', 'event_espresso' ), |
|
1610 | + __('adds a button to the form that can be used for triggering fucntionality (requires custom coding)', 'event_espresso'), |
|
1611 | 1611 | |
1612 | 1612 | // Reference: packages/form-builder/src/constants.ts:207 |
1613 | - __( 'Reset Button', 'event_espresso' ), |
|
1613 | + __('Reset Button', 'event_espresso'), |
|
1614 | 1614 | |
1615 | 1615 | // Reference: packages/form-builder/src/constants.ts:209 |
1616 | - __( 'adds a button that will reset the form back to its original state.', 'event_espresso' ), |
|
1616 | + __('adds a button that will reset the form back to its original state.', 'event_espresso'), |
|
1617 | 1617 | |
1618 | 1618 | // Reference: packages/form-builder/src/constants.ts:55 |
1619 | - __( 'Form Section', 'event_espresso' ), |
|
1619 | + __('Form Section', 'event_espresso'), |
|
1620 | 1620 | |
1621 | 1621 | // Reference: packages/form-builder/src/constants.ts:57 |
1622 | - __( 'Used for creating logical groupings for questions and form elements. Need to add a heading or description? Use the HTML form element.', 'event_espresso' ), |
|
1622 | + __('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 | 1623 | |
1624 | 1624 | // Reference: packages/form-builder/src/constants.ts:62 |
1625 | - __( 'HTML Block', 'event_espresso' ), |
|
1625 | + __('HTML Block', 'event_espresso'), |
|
1626 | 1626 | |
1627 | 1627 | // Reference: packages/form-builder/src/constants.ts:64 |
1628 | - __( 'allows you to add HTML like headings or text paragraphs to your form', 'event_espresso' ), |
|
1628 | + __('allows you to add HTML like headings or text paragraphs to your form', 'event_espresso'), |
|
1629 | 1629 | |
1630 | 1630 | // Reference: packages/form-builder/src/constants.ts:69 |
1631 | - __( 'adds a text input that only accepts plain text', 'event_espresso' ), |
|
1631 | + __('adds a text input that only accepts plain text', 'event_espresso'), |
|
1632 | 1632 | |
1633 | 1633 | // Reference: packages/form-builder/src/constants.ts:72 |
1634 | - __( 'Plain Text Area', 'event_espresso' ), |
|
1634 | + __('Plain Text Area', 'event_espresso'), |
|
1635 | 1635 | |
1636 | 1636 | // Reference: packages/form-builder/src/constants.ts:74 |
1637 | - __( 'adds a textarea block that only accepts plain text', 'event_espresso' ), |
|
1637 | + __('adds a textarea block that only accepts plain text', 'event_espresso'), |
|
1638 | 1638 | |
1639 | 1639 | // Reference: packages/form-builder/src/constants.ts:77 |
1640 | - __( 'HTML Text Area', 'event_espresso' ), |
|
1640 | + __('HTML Text Area', 'event_espresso'), |
|
1641 | 1641 | |
1642 | 1642 | // Reference: packages/form-builder/src/constants.ts:79 |
1643 | - __( 'adds a textarea block that accepts text including simple HTML markup', 'event_espresso' ), |
|
1643 | + __('adds a textarea block that accepts text including simple HTML markup', 'event_espresso'), |
|
1644 | 1644 | |
1645 | 1645 | // Reference: packages/form-builder/src/constants.ts:84 |
1646 | - __( 'adds a text input that only accepts a valid email address', 'event_espresso' ), |
|
1646 | + __('adds a text input that only accepts a valid email address', 'event_espresso'), |
|
1647 | 1647 | |
1648 | 1648 | // Reference: packages/form-builder/src/constants.ts:87 |
1649 | - __( 'Email Confirmation', 'event_espresso' ), |
|
1649 | + __('Email Confirmation', 'event_espresso'), |
|
1650 | 1650 | |
1651 | 1651 | // Reference: packages/form-builder/src/constants.ts:92 |
1652 | - __( 'Password', 'event_espresso' ), |
|
1652 | + __('Password', 'event_espresso'), |
|
1653 | 1653 | |
1654 | 1654 | // Reference: packages/form-builder/src/constants.ts:94 |
1655 | - __( 'adds a text input that accepts text but masks what the user enters', 'event_espresso' ), |
|
1655 | + __('adds a text input that accepts text but masks what the user enters', 'event_espresso'), |
|
1656 | 1656 | |
1657 | 1657 | // Reference: packages/form-builder/src/constants.ts:97 |
1658 | - __( 'Password Confirmation', 'event_espresso' ), |
|
1658 | + __('Password Confirmation', 'event_espresso'), |
|
1659 | 1659 | |
1660 | 1660 | // Reference: packages/form-builder/src/data/useElementMutator.ts:54 |
1661 | - __( 'element', 'event_espresso' ), |
|
1661 | + __('element', 'event_espresso'), |
|
1662 | 1662 | |
1663 | 1663 | // Reference: packages/form-builder/src/data/useSectionMutator.ts:54 |
1664 | - __( 'section', 'event_espresso' ), |
|
1664 | + __('section', 'event_espresso'), |
|
1665 | 1665 | |
1666 | 1666 | // Reference: packages/form-builder/src/state/utils.ts:360 |
1667 | - __( 'click', 'event_espresso' ), |
|
1667 | + __('click', 'event_espresso'), |
|
1668 | 1668 | |
1669 | 1669 | // Reference: packages/form-builder/src/state/utils.ts:363 |
1670 | - __( 'checkboxes', 'event_espresso' ), |
|
1670 | + __('checkboxes', 'event_espresso'), |
|
1671 | 1671 | |
1672 | 1672 | // Reference: packages/form-builder/src/state/utils.ts:366 |
1673 | - __( 'date', 'event_espresso' ), |
|
1673 | + __('date', 'event_espresso'), |
|
1674 | 1674 | |
1675 | 1675 | // Reference: packages/form-builder/src/state/utils.ts:372 |
1676 | - __( 'day', 'event_espresso' ), |
|
1676 | + __('day', 'event_espresso'), |
|
1677 | 1677 | |
1678 | 1678 | // Reference: packages/form-builder/src/state/utils.ts:381 |
1679 | - __( 'email address', 'event_espresso' ), |
|
1679 | + __('email address', 'event_espresso'), |
|
1680 | 1680 | |
1681 | 1681 | // Reference: packages/form-builder/src/state/utils.ts:384 |
1682 | - __( 'confirm email address', 'event_espresso' ), |
|
1682 | + __('confirm email address', 'event_espresso'), |
|
1683 | 1683 | |
1684 | 1684 | // Reference: packages/form-builder/src/state/utils.ts:388 |
1685 | - __( 'month', 'event_espresso' ), |
|
1685 | + __('month', 'event_espresso'), |
|
1686 | 1686 | |
1687 | 1687 | // Reference: packages/form-builder/src/state/utils.ts:391 |
1688 | - __( 'password', 'event_espresso' ), |
|
1688 | + __('password', 'event_espresso'), |
|
1689 | 1689 | |
1690 | 1690 | // Reference: packages/form-builder/src/state/utils.ts:394 |
1691 | - __( 'confirm password', 'event_espresso' ), |
|
1691 | + __('confirm password', 'event_espresso'), |
|
1692 | 1692 | |
1693 | 1693 | // Reference: packages/form-builder/src/state/utils.ts:397 |
1694 | - __( 'radio buttons', 'event_espresso' ), |
|
1694 | + __('radio buttons', 'event_espresso'), |
|
1695 | 1695 | |
1696 | 1696 | // Reference: packages/form-builder/src/state/utils.ts:400 |
1697 | - __( 'number range', 'event_espresso' ), |
|
1697 | + __('number range', 'event_espresso'), |
|
1698 | 1698 | |
1699 | 1699 | // Reference: packages/form-builder/src/state/utils.ts:403 |
1700 | - __( 'selection dropdown', 'event_espresso' ), |
|
1700 | + __('selection dropdown', 'event_espresso'), |
|
1701 | 1701 | |
1702 | 1702 | // Reference: packages/form-builder/src/state/utils.ts:406 |
1703 | - __( 'country', 'event_espresso' ), |
|
1703 | + __('country', 'event_espresso'), |
|
1704 | 1704 | |
1705 | 1705 | // Reference: packages/form-builder/src/state/utils.ts:409 |
1706 | - __( 'multi-select dropdown', 'event_espresso' ), |
|
1706 | + __('multi-select dropdown', 'event_espresso'), |
|
1707 | 1707 | |
1708 | 1708 | // Reference: packages/form-builder/src/state/utils.ts:412 |
1709 | - __( 'state/province', 'event_espresso' ), |
|
1709 | + __('state/province', 'event_espresso'), |
|
1710 | 1710 | |
1711 | 1711 | // Reference: packages/form-builder/src/state/utils.ts:415 |
1712 | - __( 'on/off switch', 'event_espresso' ), |
|
1712 | + __('on/off switch', 'event_espresso'), |
|
1713 | 1713 | |
1714 | 1714 | // Reference: packages/form-builder/src/state/utils.ts:418 |
1715 | - __( 'reset', 'event_espresso' ), |
|
1715 | + __('reset', 'event_espresso'), |
|
1716 | 1716 | |
1717 | 1717 | // Reference: packages/form-builder/src/state/utils.ts:421 |
1718 | - __( 'phone number', 'event_espresso' ), |
|
1718 | + __('phone number', 'event_espresso'), |
|
1719 | 1719 | |
1720 | 1720 | // Reference: packages/form-builder/src/state/utils.ts:424 |
1721 | - __( 'text', 'event_espresso' ), |
|
1721 | + __('text', 'event_espresso'), |
|
1722 | 1722 | |
1723 | 1723 | // Reference: packages/form-builder/src/state/utils.ts:427 |
1724 | - __( 'simple textarea', 'event_espresso' ), |
|
1724 | + __('simple textarea', 'event_espresso'), |
|
1725 | 1725 | |
1726 | 1726 | // Reference: packages/form-builder/src/state/utils.ts:430 |
1727 | - __( 'html textarea', 'event_espresso' ), |
|
1727 | + __('html textarea', 'event_espresso'), |
|
1728 | 1728 | |
1729 | 1729 | // Reference: packages/form-builder/src/state/utils.ts:439 |
1730 | - __( 'week', 'event_espresso' ), |
|
1730 | + __('week', 'event_espresso'), |
|
1731 | 1731 | |
1732 | 1732 | // Reference: packages/form-builder/src/state/utils.ts:442 |
1733 | - __( 'year', 'event_espresso' ), |
|
1733 | + __('year', 'event_espresso'), |
|
1734 | 1734 | |
1735 | 1735 | // Reference: packages/form/src/adapters/WPMediaImage.tsx:12 |
1736 | - __( 'Select Image', 'event_espresso' ), |
|
1736 | + __('Select Image', 'event_espresso'), |
|
1737 | 1737 | |
1738 | 1738 | // Reference: packages/form/src/adapters/WPMediaImage.tsx:44 |
1739 | 1739 | // Reference: packages/rich-text-editor/src/components/AdvancedTextEditor/toolbarButtons/WPMedia.tsx:11 |
1740 | 1740 | // Reference: packages/rich-text-editor/src/rte-old/components/toolbarButtons/WPMedia.tsx:12 |
1741 | 1741 | // Reference: packages/ui-components/src/SimpleEntityList/EntityTemplate.tsx:32 |
1742 | - __( 'Select', 'event_espresso' ), |
|
1742 | + __('Select', 'event_espresso'), |
|
1743 | 1743 | |
1744 | 1744 | // Reference: packages/form/src/renderers/RepeatableRenderer.tsx:36 |
1745 | 1745 | /* translators: %d the entry number */ |
1746 | - __( 'Entry %d', 'event_espresso' ), |
|
1746 | + __('Entry %d', 'event_espresso'), |
|
1747 | 1747 | |
1748 | 1748 | // Reference: packages/helpers/src/datetimes/getStatusTextLabel.ts:11 |
1749 | 1749 | // Reference: packages/helpers/src/tickets/getStatusTextLabel.ts:17 |
1750 | - __( 'sold out', 'event_espresso' ), |
|
1750 | + __('sold out', 'event_espresso'), |
|
1751 | 1751 | |
1752 | 1752 | // Reference: packages/helpers/src/datetimes/getStatusTextLabel.ts:14 |
1753 | 1753 | // Reference: packages/helpers/src/tickets/getStatusTextLabel.ts:14 |
1754 | - __( 'expired', 'event_espresso' ), |
|
1754 | + __('expired', 'event_espresso'), |
|
1755 | 1755 | |
1756 | 1756 | // Reference: packages/helpers/src/datetimes/getStatusTextLabel.ts:17 |
1757 | - __( 'upcoming', 'event_espresso' ), |
|
1757 | + __('upcoming', 'event_espresso'), |
|
1758 | 1758 | |
1759 | 1759 | // Reference: packages/helpers/src/datetimes/getStatusTextLabel.ts:20 |
1760 | - __( 'active', 'event_espresso' ), |
|
1760 | + __('active', 'event_espresso'), |
|
1761 | 1761 | |
1762 | 1762 | // Reference: packages/helpers/src/datetimes/getStatusTextLabel.ts:23 |
1763 | 1763 | // Reference: packages/helpers/src/tickets/getStatusTextLabel.ts:11 |
1764 | - __( 'trashed', 'event_espresso' ), |
|
1764 | + __('trashed', 'event_espresso'), |
|
1765 | 1765 | |
1766 | 1766 | // Reference: packages/helpers/src/datetimes/getStatusTextLabel.ts:26 |
1767 | - __( 'cancelled', 'event_espresso' ), |
|
1767 | + __('cancelled', 'event_espresso'), |
|
1768 | 1768 | |
1769 | 1769 | // Reference: packages/helpers/src/datetimes/getStatusTextLabel.ts:29 |
1770 | - __( 'postponed', 'event_espresso' ), |
|
1770 | + __('postponed', 'event_espresso'), |
|
1771 | 1771 | |
1772 | 1772 | // Reference: packages/helpers/src/datetimes/getStatusTextLabel.ts:33 |
1773 | - __( 'inactive', 'event_espresso' ), |
|
1773 | + __('inactive', 'event_espresso'), |
|
1774 | 1774 | |
1775 | 1775 | // Reference: packages/helpers/src/tickets/getStatusTextLabel.ts:20 |
1776 | - __( 'pending', 'event_espresso' ), |
|
1776 | + __('pending', 'event_espresso'), |
|
1777 | 1777 | |
1778 | 1778 | // Reference: packages/helpers/src/tickets/getStatusTextLabel.ts:23 |
1779 | - __( 'on sale', 'event_espresso' ), |
|
1779 | + __('on sale', 'event_espresso'), |
|
1780 | 1780 | |
1781 | 1781 | // Reference: packages/predicates/src/registration/statusOptions.ts:16 |
1782 | - __( 'Declined', 'event_espresso' ), |
|
1782 | + __('Declined', 'event_espresso'), |
|
1783 | 1783 | |
1784 | 1784 | // Reference: packages/predicates/src/registration/statusOptions.ts:21 |
1785 | - __( 'Incomplete', 'event_espresso' ), |
|
1785 | + __('Incomplete', 'event_espresso'), |
|
1786 | 1786 | |
1787 | 1787 | // Reference: packages/predicates/src/registration/statusOptions.ts:26 |
1788 | - __( 'Not Approved', 'event_espresso' ), |
|
1788 | + __('Not Approved', 'event_espresso'), |
|
1789 | 1789 | |
1790 | 1790 | // Reference: packages/predicates/src/registration/statusOptions.ts:31 |
1791 | - __( 'Pending Payment', 'event_espresso' ), |
|
1791 | + __('Pending Payment', 'event_espresso'), |
|
1792 | 1792 | |
1793 | 1793 | // Reference: packages/predicates/src/registration/statusOptions.ts:36 |
1794 | - __( 'Wait List', 'event_espresso' ), |
|
1794 | + __('Wait List', 'event_espresso'), |
|
1795 | 1795 | |
1796 | 1796 | // Reference: packages/predicates/src/registration/statusOptions.ts:6 |
1797 | - __( 'Approved', 'event_espresso' ), |
|
1797 | + __('Approved', 'event_espresso'), |
|
1798 | 1798 | |
1799 | 1799 | // Reference: packages/rich-text-editor/src/components/AdvancedTextEditor/toolbarButtons/WPMedia.tsx:9 |
1800 | 1800 | // Reference: packages/rich-text-editor/src/rte-old/components/toolbarButtons/WPMedia.tsx:10 |
1801 | - __( 'Select media', 'event_espresso' ), |
|
1801 | + __('Select media', 'event_espresso'), |
|
1802 | 1802 | |
1803 | 1803 | // Reference: packages/rich-text-editor/src/components/RichTextEditor/RichTextEditor.tsx:84 |
1804 | - __( 'Write something…', 'event_espresso' ), |
|
1804 | + __('Write something…', 'event_espresso'), |
|
1805 | 1805 | |
1806 | 1806 | // Reference: packages/rich-text-editor/src/components/RichTextEditor/Toolbar/Toolbar.tsx:20 |
1807 | - __( 'RTE Toolbar', 'event_espresso' ), |
|
1807 | + __('RTE Toolbar', 'event_espresso'), |
|
1808 | 1808 | |
1809 | 1809 | // Reference: packages/rich-text-editor/src/components/RichTextEditor/Toolbar/controls/blockType/Component.tsx:11 |
1810 | - __( 'Normal', 'event_espresso' ), |
|
1810 | + __('Normal', 'event_espresso'), |
|
1811 | 1811 | |
1812 | 1812 | // Reference: packages/rich-text-editor/src/components/RichTextEditor/Toolbar/controls/blockType/Component.tsx:12 |
1813 | - __( 'H1', 'event_espresso' ), |
|
1813 | + __('H1', 'event_espresso'), |
|
1814 | 1814 | |
1815 | 1815 | // Reference: packages/rich-text-editor/src/components/RichTextEditor/Toolbar/controls/blockType/Component.tsx:13 |
1816 | - __( 'H2', 'event_espresso' ), |
|
1816 | + __('H2', 'event_espresso'), |
|
1817 | 1817 | |
1818 | 1818 | // Reference: packages/rich-text-editor/src/components/RichTextEditor/Toolbar/controls/blockType/Component.tsx:14 |
1819 | - __( 'H3', 'event_espresso' ), |
|
1819 | + __('H3', 'event_espresso'), |
|
1820 | 1820 | |
1821 | 1821 | // Reference: packages/rich-text-editor/src/components/RichTextEditor/Toolbar/controls/blockType/Component.tsx:15 |
1822 | - __( 'H4', 'event_espresso' ), |
|
1822 | + __('H4', 'event_espresso'), |
|
1823 | 1823 | |
1824 | 1824 | // Reference: packages/rich-text-editor/src/components/RichTextEditor/Toolbar/controls/blockType/Component.tsx:16 |
1825 | - __( 'H5', 'event_espresso' ), |
|
1825 | + __('H5', 'event_espresso'), |
|
1826 | 1826 | |
1827 | 1827 | // Reference: packages/rich-text-editor/src/components/RichTextEditor/Toolbar/controls/blockType/Component.tsx:17 |
1828 | - __( 'H6', 'event_espresso' ), |
|
1828 | + __('H6', 'event_espresso'), |
|
1829 | 1829 | |
1830 | 1830 | // Reference: packages/rich-text-editor/src/components/RichTextEditor/Toolbar/controls/blockType/Component.tsx:18 |
1831 | - __( 'Block quote', 'event_espresso' ), |
|
1831 | + __('Block quote', 'event_espresso'), |
|
1832 | 1832 | |
1833 | 1833 | // Reference: packages/rich-text-editor/src/components/RichTextEditor/Toolbar/controls/blockType/Component.tsx:19 |
1834 | - __( 'Code', 'event_espresso' ), |
|
1834 | + __('Code', 'event_espresso'), |
|
1835 | 1835 | |
1836 | 1836 | // Reference: packages/rich-text-editor/src/components/RichTextEditor/Toolbar/controls/colorPicker/Component.tsx:36 |
1837 | - __( 'Set color', 'event_espresso' ), |
|
1837 | + __('Set color', 'event_espresso'), |
|
1838 | 1838 | |
1839 | 1839 | // Reference: packages/rich-text-editor/src/components/RichTextEditor/Toolbar/controls/colorPicker/Component.tsx:45 |
1840 | - __( 'Text color', 'event_espresso' ), |
|
1840 | + __('Text color', 'event_espresso'), |
|
1841 | 1841 | |
1842 | 1842 | // Reference: packages/rich-text-editor/src/components/RichTextEditor/Toolbar/controls/colorPicker/Component.tsx:47 |
1843 | - __( 'Background color', 'event_espresso' ), |
|
1843 | + __('Background color', 'event_espresso'), |
|
1844 | 1844 | |
1845 | 1845 | // Reference: packages/rich-text-editor/src/components/RichTextEditor/Toolbar/controls/image/Component.tsx:39 |
1846 | - __( 'Add image', 'event_espresso' ), |
|
1846 | + __('Add image', 'event_espresso'), |
|
1847 | 1847 | |
1848 | 1848 | // Reference: packages/rich-text-editor/src/components/RichTextEditor/Toolbar/controls/image/Component.tsx:51 |
1849 | - __( 'Image URL', 'event_espresso' ), |
|
1849 | + __('Image URL', 'event_espresso'), |
|
1850 | 1850 | |
1851 | 1851 | // Reference: packages/rich-text-editor/src/components/RichTextEditor/Toolbar/controls/image/Component.tsx:55 |
1852 | - __( 'Alt text', 'event_espresso' ), |
|
1852 | + __('Alt text', 'event_espresso'), |
|
1853 | 1853 | |
1854 | 1854 | // Reference: packages/rich-text-editor/src/components/RichTextEditor/Toolbar/controls/image/Component.tsx:56 |
1855 | - __( 'Width', 'event_espresso' ), |
|
1855 | + __('Width', 'event_espresso'), |
|
1856 | 1856 | |
1857 | 1857 | // Reference: packages/rich-text-editor/src/components/RichTextEditor/Toolbar/controls/image/Component.tsx:60 |
1858 | - __( 'Height', 'event_espresso' ), |
|
1858 | + __('Height', 'event_espresso'), |
|
1859 | 1859 | |
1860 | 1860 | // Reference: packages/rich-text-editor/src/components/RichTextEditor/Toolbar/controls/link/Component.tsx:54 |
1861 | - __( 'Edit link', 'event_espresso' ), |
|
1861 | + __('Edit link', 'event_espresso'), |
|
1862 | 1862 | |
1863 | 1863 | // Reference: packages/rich-text-editor/src/components/RichTextEditor/Toolbar/controls/link/Component.tsx:64 |
1864 | - __( 'URL title', 'event_espresso' ), |
|
1864 | + __('URL title', 'event_espresso'), |
|
1865 | 1865 | |
1866 | 1866 | // Reference: packages/rich-text-editor/src/components/RichTextEditor/Toolbar/controls/list/Component.tsx:11 |
1867 | - __( 'Unordered list', 'event_espresso' ), |
|
1867 | + __('Unordered list', 'event_espresso'), |
|
1868 | 1868 | |
1869 | 1869 | // Reference: packages/rich-text-editor/src/components/RichTextEditor/Toolbar/controls/list/Component.tsx:12 |
1870 | - __( 'Ordered list', 'event_espresso' ), |
|
1870 | + __('Ordered list', 'event_espresso'), |
|
1871 | 1871 | |
1872 | 1872 | // Reference: packages/rich-text-editor/src/components/RichTextEditor/Toolbar/controls/list/Component.tsx:13 |
1873 | 1873 | // Reference: packages/rich-text-editor/src/components/RichTextEditor/Toolbar/controls/textAlign/Component.tsx:13 |
1874 | - __( 'Indent', 'event_espresso' ), |
|
1874 | + __('Indent', 'event_espresso'), |
|
1875 | 1875 | |
1876 | 1876 | // Reference: packages/rich-text-editor/src/components/RichTextEditor/Toolbar/controls/list/Component.tsx:14 |
1877 | 1877 | // Reference: packages/rich-text-editor/src/components/RichTextEditor/Toolbar/controls/textAlign/Component.tsx:14 |
1878 | - __( 'Outdent', 'event_espresso' ), |
|
1878 | + __('Outdent', 'event_espresso'), |
|
1879 | 1879 | |
1880 | 1880 | // Reference: packages/rich-text-editor/src/components/RichTextEditor/Toolbar/controls/textAlign/Component.tsx:11 |
1881 | - __( 'Unordered textalign', 'event_espresso' ), |
|
1881 | + __('Unordered textalign', 'event_espresso'), |
|
1882 | 1882 | |
1883 | 1883 | // Reference: packages/rich-text-editor/src/components/RichTextEditor/Toolbar/controls/textAlign/Component.tsx:12 |
1884 | - __( 'Ordered textalign', 'event_espresso' ), |
|
1884 | + __('Ordered textalign', 'event_espresso'), |
|
1885 | 1885 | |
1886 | 1886 | // Reference: packages/rich-text-editor/src/components/RichTextEditor/render/Image/Toolbar.tsx:32 |
1887 | - __( 'Image toolbar', 'event_espresso' ), |
|
1887 | + __('Image toolbar', 'event_espresso'), |
|
1888 | 1888 | |
1889 | 1889 | // Reference: packages/rich-text-editor/src/components/WithEditMode/WithEditMode.tsx:62 |
1890 | 1890 | // Reference: packages/rich-text-editor/src/rte-old/components/RTEWithEditMode/RTEWithEditMode.tsx:35 |
1891 | - __( 'Visual editor', 'event_espresso' ), |
|
1891 | + __('Visual editor', 'event_espresso'), |
|
1892 | 1892 | |
1893 | 1893 | // Reference: packages/rich-text-editor/src/components/WithEditMode/WithEditMode.tsx:66 |
1894 | 1894 | // Reference: packages/rich-text-editor/src/rte-old/components/RTEWithEditMode/RTEWithEditMode.tsx:39 |
1895 | - __( 'HTML editor', 'event_espresso' ), |
|
1895 | + __('HTML editor', 'event_espresso'), |
|
1896 | 1896 | |
1897 | 1897 | // Reference: packages/rich-text-editor/src/rte-old/components/toolbarButtons/WPMedia.tsx:68 |
1898 | - __( 'Add Media', 'event_espresso' ), |
|
1898 | + __('Add Media', 'event_espresso'), |
|
1899 | 1899 | |
1900 | 1900 | // Reference: packages/tpc/src/buttons/AddPriceModifierButton.tsx:14 |
1901 | - __( 'add new price modifier after this row', 'event_espresso' ), |
|
1901 | + __('add new price modifier after this row', 'event_espresso'), |
|
1902 | 1902 | |
1903 | 1903 | // Reference: packages/tpc/src/buttons/DeleteAllPricesButton.tsx:14 |
1904 | - __( 'Delete all prices', 'event_espresso' ), |
|
1904 | + __('Delete all prices', 'event_espresso'), |
|
1905 | 1905 | |
1906 | 1906 | // Reference: packages/tpc/src/buttons/DeleteAllPricesButton.tsx:27 |
1907 | - __( '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' ), |
|
1907 | + __('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 | 1908 | |
1909 | 1909 | // Reference: packages/tpc/src/buttons/DeleteAllPricesButton.tsx:31 |
1910 | - __( 'Delete all prices?', 'event_espresso' ), |
|
1910 | + __('Delete all prices?', 'event_espresso'), |
|
1911 | 1911 | |
1912 | 1912 | // Reference: packages/tpc/src/buttons/DeletePriceModifierButton.tsx:12 |
1913 | - __( 'delete price modifier', 'event_espresso' ), |
|
1913 | + __('delete price modifier', 'event_espresso'), |
|
1914 | 1914 | |
1915 | 1915 | // Reference: packages/tpc/src/buttons/ReverseCalculateButton.tsx:14 |
1916 | - __( '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' ), |
|
1916 | + __('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 | 1917 | |
1918 | 1918 | // Reference: packages/tpc/src/buttons/ReverseCalculateButton.tsx:17 |
1919 | - __( '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' ), |
|
1919 | + __('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 | 1920 | |
1921 | 1921 | // Reference: packages/tpc/src/buttons/ReverseCalculateButton.tsx:21 |
1922 | - __( 'Disable reverse calculate', 'event_espresso' ), |
|
1922 | + __('Disable reverse calculate', 'event_espresso'), |
|
1923 | 1923 | |
1924 | 1924 | // Reference: packages/tpc/src/buttons/ReverseCalculateButton.tsx:21 |
1925 | - __( 'Enable reverse calculate', 'event_espresso' ), |
|
1925 | + __('Enable reverse calculate', 'event_espresso'), |
|
1926 | 1926 | |
1927 | 1927 | // Reference: packages/tpc/src/buttons/TicketPriceCalculatorButton.tsx:28 |
1928 | - __( 'ticket price calculator', 'event_espresso' ), |
|
1928 | + __('ticket price calculator', 'event_espresso'), |
|
1929 | 1929 | |
1930 | 1930 | // Reference: packages/tpc/src/buttons/taxes/AddDefaultTaxesButton.tsx:9 |
1931 | - __( 'Add default taxes', 'event_espresso' ), |
|
1931 | + __('Add default taxes', 'event_espresso'), |
|
1932 | 1932 | |
1933 | 1933 | // Reference: packages/tpc/src/buttons/taxes/RemoveTaxesButton.tsx:10 |
1934 | - __( 'Are you sure you want to remove all of this ticket\'s taxes?', 'event_espresso' ), |
|
1934 | + __('Are you sure you want to remove all of this ticket\'s taxes?', 'event_espresso'), |
|
1935 | 1935 | |
1936 | 1936 | // Reference: packages/tpc/src/buttons/taxes/RemoveTaxesButton.tsx:14 |
1937 | - __( 'Remove all taxes?', 'event_espresso' ), |
|
1937 | + __('Remove all taxes?', 'event_espresso'), |
|
1938 | 1938 | |
1939 | 1939 | // Reference: packages/tpc/src/buttons/taxes/RemoveTaxesButton.tsx:7 |
1940 | - __( 'Remove taxes', 'event_espresso' ), |
|
1940 | + __('Remove taxes', 'event_espresso'), |
|
1941 | 1941 | |
1942 | 1942 | // Reference: packages/tpc/src/components/DefaultPricesInfo.tsx:29 |
1943 | - __( 'Modify default prices.', 'event_espresso' ), |
|
1943 | + __('Modify default prices.', 'event_espresso'), |
|
1944 | 1944 | |
1945 | 1945 | // Reference: packages/tpc/src/components/DefaultTaxesInfo.tsx:29 |
1946 | - __( 'New default taxes are available. Click the - Add default taxes - button to add them now.', 'event_espresso' ), |
|
1946 | + __('New default taxes are available. Click the - Add default taxes - button to add them now.', 'event_espresso'), |
|
1947 | 1947 | |
1948 | 1948 | // Reference: packages/tpc/src/components/LockedTicketsBanner.tsx:12 |
1949 | - __( 'Editing of prices is disabled', 'event_espresso' ), |
|
1949 | + __('Editing of prices is disabled', 'event_espresso'), |
|
1950 | 1950 | |
1951 | 1951 | // Reference: packages/tpc/src/components/NoPricesBanner/AddDefaultPricesButton.tsx:9 |
1952 | - __( 'Add default prices', 'event_espresso' ), |
|
1952 | + __('Add default prices', 'event_espresso'), |
|
1953 | 1953 | |
1954 | 1954 | // Reference: packages/tpc/src/components/NoPricesBanner/index.tsx:13 |
1955 | - __( 'This Ticket is Currently Free', 'event_espresso' ), |
|
1955 | + __('This Ticket is Currently Free', 'event_espresso'), |
|
1956 | 1956 | |
1957 | 1957 | // Reference: packages/tpc/src/components/NoPricesBanner/index.tsx:21 |
1958 | 1958 | /* translators: %s default prices */ |
1959 | - __( 'Click the button below to load your %s into the calculator.', 'event_espresso' ), |
|
1959 | + __('Click the button below to load your %s into the calculator.', 'event_espresso'), |
|
1960 | 1960 | |
1961 | 1961 | // Reference: packages/tpc/src/components/NoPricesBanner/index.tsx:22 |
1962 | - __( 'default prices', 'event_espresso' ), |
|
1962 | + __('default prices', 'event_espresso'), |
|
1963 | 1963 | |
1964 | 1964 | // Reference: packages/tpc/src/components/NoPricesBanner/index.tsx:29 |
1965 | - __( 'Additional ticket price modifiers can be added or removed.', 'event_espresso' ), |
|
1965 | + __('Additional ticket price modifiers can be added or removed.', 'event_espresso'), |
|
1966 | 1966 | |
1967 | 1967 | // Reference: packages/tpc/src/components/NoPricesBanner/index.tsx:32 |
1968 | - __( 'Click the save button below to assign which dates this ticket will be available for purchase on.', 'event_espresso' ), |
|
1968 | + __('Click the save button below to assign which dates this ticket will be available for purchase on.', 'event_espresso'), |
|
1969 | 1969 | |
1970 | 1970 | // Reference: packages/tpc/src/components/TicketPriceCalculatorModal.tsx:32 |
1971 | 1971 | /* translators: %s ticket name */ |
1972 | - __( 'Price Calculator for Ticket: %s', 'event_espresso' ), |
|
1972 | + __('Price Calculator for Ticket: %s', 'event_espresso'), |
|
1973 | 1973 | |
1974 | 1974 | // Reference: packages/tpc/src/components/table/useFooterRowGenerator.tsx:48 |
1975 | - __( 'Total', 'event_espresso' ), |
|
1975 | + __('Total', 'event_espresso'), |
|
1976 | 1976 | |
1977 | 1977 | // Reference: packages/tpc/src/components/table/useFooterRowGenerator.tsx:57 |
1978 | - __( 'ticket total', 'event_espresso' ), |
|
1978 | + __('ticket total', 'event_espresso'), |
|
1979 | 1979 | |
1980 | 1980 | // Reference: packages/tpc/src/components/table/useHeaderRowGenerator.ts:29 |
1981 | - __( 'Order', 'event_espresso' ), |
|
1981 | + __('Order', 'event_espresso'), |
|
1982 | 1982 | |
1983 | 1983 | // Reference: packages/tpc/src/components/table/useHeaderRowGenerator.ts:35 |
1984 | - __( 'Price Type', 'event_espresso' ), |
|
1984 | + __('Price Type', 'event_espresso'), |
|
1985 | 1985 | |
1986 | 1986 | // Reference: packages/tpc/src/components/table/useHeaderRowGenerator.ts:41 |
1987 | - __( 'Label', 'event_espresso' ), |
|
1987 | + __('Label', 'event_espresso'), |
|
1988 | 1988 | |
1989 | 1989 | // Reference: packages/tpc/src/components/table/useHeaderRowGenerator.ts:53 |
1990 | - __( 'Amount', 'event_espresso' ), |
|
1990 | + __('Amount', 'event_espresso'), |
|
1991 | 1991 | |
1992 | 1992 | // Reference: packages/tpc/src/hooks/useLockedTicketAction.ts:22 |
1993 | - __( 'Copy ticket', 'event_espresso' ), |
|
1993 | + __('Copy ticket', 'event_espresso'), |
|
1994 | 1994 | |
1995 | 1995 | // Reference: packages/tpc/src/hooks/useLockedTicketAction.ts:26 |
1996 | - __( 'Copy and archive this ticket', 'event_espresso' ), |
|
1996 | + __('Copy and archive this ticket', 'event_espresso'), |
|
1997 | 1997 | |
1998 | 1998 | // Reference: packages/tpc/src/hooks/useLockedTicketAction.ts:29 |
1999 | - __( 'OK', 'event_espresso' ), |
|
1999 | + __('OK', 'event_espresso'), |
|
2000 | 2000 | |
2001 | 2001 | // Reference: packages/tpc/src/inputs/PriceAmountInput.tsx:32 |
2002 | - __( 'amount', 'event_espresso' ), |
|
2002 | + __('amount', 'event_espresso'), |
|
2003 | 2003 | |
2004 | 2004 | // Reference: packages/tpc/src/inputs/PriceAmountInput.tsx:44 |
2005 | - __( 'amount…', 'event_espresso' ), |
|
2005 | + __('amount…', 'event_espresso'), |
|
2006 | 2006 | |
2007 | 2007 | // Reference: packages/tpc/src/inputs/PriceDescriptionInput.tsx:14 |
2008 | - __( 'description…', 'event_espresso' ), |
|
2008 | + __('description…', 'event_espresso'), |
|
2009 | 2009 | |
2010 | 2010 | // Reference: packages/tpc/src/inputs/PriceDescriptionInput.tsx:9 |
2011 | - __( 'price description', 'event_espresso' ), |
|
2011 | + __('price description', 'event_espresso'), |
|
2012 | 2012 | |
2013 | 2013 | // Reference: packages/tpc/src/inputs/PriceIdInput.tsx:6 |
2014 | - __( 'price id', 'event_espresso' ), |
|
2014 | + __('price id', 'event_espresso'), |
|
2015 | 2015 | |
2016 | 2016 | // Reference: packages/tpc/src/inputs/PriceNameInput.tsx:13 |
2017 | - __( 'label…', 'event_espresso' ), |
|
2017 | + __('label…', 'event_espresso'), |
|
2018 | 2018 | |
2019 | 2019 | // Reference: packages/tpc/src/inputs/PriceNameInput.tsx:8 |
2020 | - __( 'price name', 'event_espresso' ), |
|
2020 | + __('price name', 'event_espresso'), |
|
2021 | 2021 | |
2022 | 2022 | // Reference: packages/tpc/src/inputs/PriceOrderInput.tsx:14 |
2023 | - __( 'price order', 'event_espresso' ), |
|
2023 | + __('price order', 'event_espresso'), |
|
2024 | 2024 | |
2025 | 2025 | // Reference: packages/tpc/src/utils/constants.ts:8 |
2026 | - __( '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' ), |
|
2026 | + __('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 | 2027 | |
2028 | 2028 | // Reference: packages/ui-components/src/ActiveFilters/ActiveFilters.tsx:8 |
2029 | - __( 'active filters:', 'event_espresso' ), |
|
2029 | + __('active filters:', 'event_espresso'), |
|
2030 | 2030 | |
2031 | 2031 | // Reference: packages/ui-components/src/ActiveFilters/FilterTag/index.tsx:15 |
2032 | 2032 | /* translators: %s filter name */ |
2033 | - __( 'remove filter - %s', 'event_espresso' ), |
|
2033 | + __('remove filter - %s', 'event_espresso'), |
|
2034 | 2034 | |
2035 | 2035 | // Reference: packages/ui-components/src/Address/Address.tsx:72 |
2036 | - __( 'Address:', 'event_espresso' ), |
|
2036 | + __('Address:', 'event_espresso'), |
|
2037 | 2037 | |
2038 | 2038 | // Reference: packages/ui-components/src/Address/Address.tsx:80 |
2039 | - __( 'City:', 'event_espresso' ), |
|
2039 | + __('City:', 'event_espresso'), |
|
2040 | 2040 | |
2041 | 2041 | // Reference: packages/ui-components/src/Address/Address.tsx:86 |
2042 | - __( 'State:', 'event_espresso' ), |
|
2042 | + __('State:', 'event_espresso'), |
|
2043 | 2043 | |
2044 | 2044 | // Reference: packages/ui-components/src/Address/Address.tsx:92 |
2045 | - __( 'Country:', 'event_espresso' ), |
|
2045 | + __('Country:', 'event_espresso'), |
|
2046 | 2046 | |
2047 | 2047 | // Reference: packages/ui-components/src/Address/Address.tsx:98 |
2048 | - __( 'Zip:', 'event_espresso' ), |
|
2048 | + __('Zip:', 'event_espresso'), |
|
2049 | 2049 | |
2050 | 2050 | // Reference: packages/ui-components/src/CalendarDateRange/CalendarDateRange.tsx:37 |
2051 | - __( 'to', 'event_espresso' ), |
|
2051 | + __('to', 'event_espresso'), |
|
2052 | 2052 | |
2053 | 2053 | // Reference: packages/ui-components/src/CalendarPageDate/CalendarPageDate.tsx:54 |
2054 | - __( 'TO', 'event_espresso' ), |
|
2054 | + __('TO', 'event_espresso'), |
|
2055 | 2055 | |
2056 | 2056 | // Reference: packages/ui-components/src/ColorPicker/ColorPicker.tsx:60 |
2057 | - __( 'Custom color', 'event_espresso' ), |
|
2057 | + __('Custom color', 'event_espresso'), |
|
2058 | 2058 | |
2059 | 2059 | // Reference: packages/ui-components/src/ColorPicker/Swatch.tsx:23 |
2060 | 2060 | /* translators: color name */ |
2061 | - __( 'Color: %s', 'event_espresso' ), |
|
2061 | + __('Color: %s', 'event_espresso'), |
|
2062 | 2062 | |
2063 | 2063 | // Reference: packages/ui-components/src/ColorPicker/constants.ts:13 |
2064 | - __( 'Cyan bluish gray', 'event_espresso' ), |
|
2064 | + __('Cyan bluish gray', 'event_espresso'), |
|
2065 | 2065 | |
2066 | 2066 | // Reference: packages/ui-components/src/ColorPicker/constants.ts:17 |
2067 | - __( 'White', 'event_espresso' ), |
|
2067 | + __('White', 'event_espresso'), |
|
2068 | 2068 | |
2069 | 2069 | // Reference: packages/ui-components/src/ColorPicker/constants.ts:21 |
2070 | - __( 'Pale pink', 'event_espresso' ), |
|
2070 | + __('Pale pink', 'event_espresso'), |
|
2071 | 2071 | |
2072 | 2072 | // Reference: packages/ui-components/src/ColorPicker/constants.ts:25 |
2073 | - __( 'Vivid red', 'event_espresso' ), |
|
2073 | + __('Vivid red', 'event_espresso'), |
|
2074 | 2074 | |
2075 | 2075 | // Reference: packages/ui-components/src/ColorPicker/constants.ts:29 |
2076 | - __( 'Luminous vivid orange', 'event_espresso' ), |
|
2076 | + __('Luminous vivid orange', 'event_espresso'), |
|
2077 | 2077 | |
2078 | 2078 | // Reference: packages/ui-components/src/ColorPicker/constants.ts:33 |
2079 | - __( 'Luminous vivid amber', 'event_espresso' ), |
|
2079 | + __('Luminous vivid amber', 'event_espresso'), |
|
2080 | 2080 | |
2081 | 2081 | // Reference: packages/ui-components/src/ColorPicker/constants.ts:37 |
2082 | - __( 'Light green cyan', 'event_espresso' ), |
|
2082 | + __('Light green cyan', 'event_espresso'), |
|
2083 | 2083 | |
2084 | 2084 | // Reference: packages/ui-components/src/ColorPicker/constants.ts:41 |
2085 | - __( 'Vivid green cyan', 'event_espresso' ), |
|
2085 | + __('Vivid green cyan', 'event_espresso'), |
|
2086 | 2086 | |
2087 | 2087 | // Reference: packages/ui-components/src/ColorPicker/constants.ts:45 |
2088 | - __( 'Pale cyan blue', 'event_espresso' ), |
|
2088 | + __('Pale cyan blue', 'event_espresso'), |
|
2089 | 2089 | |
2090 | 2090 | // Reference: packages/ui-components/src/ColorPicker/constants.ts:49 |
2091 | - __( 'Vivid cyan blue', 'event_espresso' ), |
|
2091 | + __('Vivid cyan blue', 'event_espresso'), |
|
2092 | 2092 | |
2093 | 2093 | // Reference: packages/ui-components/src/ColorPicker/constants.ts:53 |
2094 | - __( 'Vivid purple', 'event_espresso' ), |
|
2094 | + __('Vivid purple', 'event_espresso'), |
|
2095 | 2095 | |
2096 | 2096 | // Reference: packages/ui-components/src/ColorPicker/constants.ts:9 |
2097 | - __( 'Black', 'event_espresso' ), |
|
2097 | + __('Black', 'event_espresso'), |
|
2098 | 2098 | |
2099 | 2099 | // Reference: packages/ui-components/src/Confirm/ConfirmClose.tsx:7 |
2100 | 2100 | // Reference: packages/ui-components/src/Modal/ModalWithAlert.tsx:23 |
2101 | - __( 'Are you sure you want to close this?', 'event_espresso' ), |
|
2101 | + __('Are you sure you want to close this?', 'event_espresso'), |
|
2102 | 2102 | |
2103 | 2103 | // Reference: packages/ui-components/src/Confirm/ConfirmDelete.tsx:7 |
2104 | - __( 'Are you sure you want to delete this?', 'event_espresso' ), |
|
2104 | + __('Are you sure you want to delete this?', 'event_espresso'), |
|
2105 | 2105 | |
2106 | 2106 | // Reference: packages/ui-components/src/Confirm/useConfirmWithButton.tsx:10 |
2107 | - __( 'Please confirm this action.', 'event_espresso' ), |
|
2107 | + __('Please confirm this action.', 'event_espresso'), |
|
2108 | 2108 | |
2109 | 2109 | // Reference: packages/ui-components/src/Confirm/useConfirmationDialog.tsx:39 |
2110 | - __( 'cancel', 'event_espresso' ), |
|
2110 | + __('cancel', 'event_espresso'), |
|
2111 | 2111 | |
2112 | 2112 | // Reference: packages/ui-components/src/Confirm/useConfirmationDialog.tsx:40 |
2113 | - __( 'confirm', 'event_espresso' ), |
|
2113 | + __('confirm', 'event_espresso'), |
|
2114 | 2114 | |
2115 | 2115 | // Reference: packages/ui-components/src/CurrencyDisplay/CurrencyDisplay.tsx:34 |
2116 | - __( 'free', 'event_espresso' ), |
|
2116 | + __('free', 'event_espresso'), |
|
2117 | 2117 | |
2118 | 2118 | // Reference: packages/ui-components/src/DateTimeRangePicker/DateTimeRangePicker.tsx:117 |
2119 | 2119 | // Reference: packages/ui-components/src/Popover/PopoverForm/PopoverForm.tsx:44 |
2120 | - __( 'save', 'event_espresso' ), |
|
2120 | + __('save', 'event_espresso'), |
|
2121 | 2121 | |
2122 | 2122 | // Reference: packages/ui-components/src/DebugInfo/DebugInfo.tsx:36 |
2123 | - __( 'Hide Debug Info', 'event_espresso' ), |
|
2123 | + __('Hide Debug Info', 'event_espresso'), |
|
2124 | 2124 | |
2125 | 2125 | // Reference: packages/ui-components/src/DebugInfo/DebugInfo.tsx:36 |
2126 | - __( 'Show Debug Info', 'event_espresso' ), |
|
2126 | + __('Show Debug Info', 'event_espresso'), |
|
2127 | 2127 | |
2128 | 2128 | // Reference: packages/ui-components/src/EditDateRangeButton/EditDateRangeButton.tsx:49 |
2129 | - __( 'Edit Start and End Dates and Times', 'event_espresso' ), |
|
2129 | + __('Edit Start and End Dates and Times', 'event_espresso'), |
|
2130 | 2130 | |
2131 | 2131 | // Reference: packages/ui-components/src/EntityActionsMenu/entityMenuItems/CopyEntity.tsx:8 |
2132 | - __( 'copy', 'event_espresso' ), |
|
2132 | + __('copy', 'event_espresso'), |
|
2133 | 2133 | |
2134 | 2134 | // Reference: packages/ui-components/src/EntityActionsMenu/entityMenuItems/EditEntity.tsx:8 |
2135 | - __( 'edit', 'event_espresso' ), |
|
2135 | + __('edit', 'event_espresso'), |
|
2136 | 2136 | |
2137 | 2137 | // Reference: packages/ui-components/src/EntityActionsMenu/entityMenuItems/TrashEntity.tsx:8 |
2138 | - __( 'trash', 'event_espresso' ), |
|
2138 | + __('trash', 'event_espresso'), |
|
2139 | 2139 | |
2140 | 2140 | // Reference: packages/ui-components/src/EntityActionsMenu/entityMenuItems/Untrash.tsx:8 |
2141 | - __( 'untrash', 'event_espresso' ), |
|
2141 | + __('untrash', 'event_espresso'), |
|
2142 | 2142 | |
2143 | 2143 | // Reference: packages/ui-components/src/EntityList/RegistrationsLink/index.tsx:12 |
2144 | - __( 'click to open the registrations admin page in a new tab or window', 'event_espresso' ), |
|
2144 | + __('click to open the registrations admin page in a new tab or window', 'event_espresso'), |
|
2145 | 2145 | |
2146 | 2146 | // Reference: packages/ui-components/src/EntityList/filterBar/buttons/CardViewFilterButton.tsx:22 |
2147 | - __( 'card view', 'event_espresso' ), |
|
2147 | + __('card view', 'event_espresso'), |
|
2148 | 2148 | |
2149 | 2149 | // Reference: packages/ui-components/src/EntityList/filterBar/buttons/TableViewFilterButton.tsx:21 |
2150 | - __( 'table view', 'event_espresso' ), |
|
2150 | + __('table view', 'event_espresso'), |
|
2151 | 2151 | |
2152 | 2152 | // Reference: packages/ui-components/src/EntityList/filterBar/buttons/ToggleBulkActionsButton.tsx:8 |
2153 | - __( 'hide bulk actions', 'event_espresso' ), |
|
2153 | + __('hide bulk actions', 'event_espresso'), |
|
2154 | 2154 | |
2155 | 2155 | // Reference: packages/ui-components/src/EntityList/filterBar/buttons/ToggleBulkActionsButton.tsx:8 |
2156 | - __( 'show bulk actions', 'event_espresso' ), |
|
2156 | + __('show bulk actions', 'event_espresso'), |
|
2157 | 2157 | |
2158 | 2158 | // Reference: packages/ui-components/src/EntityList/filterBar/buttons/ToggleFiltersButton.tsx:9 |
2159 | - __( 'hide filters', 'event_espresso' ), |
|
2159 | + __('hide filters', 'event_espresso'), |
|
2160 | 2160 | |
2161 | 2161 | // Reference: packages/ui-components/src/EntityList/filterBar/buttons/ToggleFiltersButton.tsx:9 |
2162 | - __( 'show filters', 'event_espresso' ), |
|
2162 | + __('show filters', 'event_espresso'), |
|
2163 | 2163 | |
2164 | 2164 | // Reference: packages/ui-components/src/Legend/ToggleLegendButton.tsx:26 |
2165 | - __( 'hide legend', 'event_espresso' ), |
|
2165 | + __('hide legend', 'event_espresso'), |
|
2166 | 2166 | |
2167 | 2167 | // Reference: packages/ui-components/src/Legend/ToggleLegendButton.tsx:26 |
2168 | - __( 'show legend', 'event_espresso' ), |
|
2168 | + __('show legend', 'event_espresso'), |
|
2169 | 2169 | |
2170 | 2170 | // Reference: packages/ui-components/src/LoadingNotice/LoadingNotice.tsx:11 |
2171 | - __( 'loading…', 'event_espresso' ), |
|
2171 | + __('loading…', 'event_espresso'), |
|
2172 | 2172 | |
2173 | 2173 | // Reference: packages/ui-components/src/Modal/Modal.tsx:58 |
2174 | - __( 'close modal', 'event_espresso' ), |
|
2174 | + __('close modal', 'event_espresso'), |
|
2175 | 2175 | |
2176 | 2176 | // Reference: packages/ui-components/src/Pagination/ItemRender.tsx:10 |
2177 | - __( 'jump to previous', 'event_espresso' ), |
|
2177 | + __('jump to previous', 'event_espresso'), |
|
2178 | 2178 | |
2179 | 2179 | // Reference: packages/ui-components/src/Pagination/ItemRender.tsx:11 |
2180 | - __( 'jump to next', 'event_espresso' ), |
|
2180 | + __('jump to next', 'event_espresso'), |
|
2181 | 2181 | |
2182 | 2182 | // Reference: packages/ui-components/src/Pagination/ItemRender.tsx:12 |
2183 | - __( 'page', 'event_espresso' ), |
|
2183 | + __('page', 'event_espresso'), |
|
2184 | 2184 | |
2185 | 2185 | // Reference: packages/ui-components/src/Pagination/ItemRender.tsx:8 |
2186 | - __( 'previous', 'event_espresso' ), |
|
2186 | + __('previous', 'event_espresso'), |
|
2187 | 2187 | |
2188 | 2188 | // Reference: packages/ui-components/src/Pagination/ItemRender.tsx:9 |
2189 | - __( 'next', 'event_espresso' ), |
|
2189 | + __('next', 'event_espresso'), |
|
2190 | 2190 | |
2191 | 2191 | // Reference: packages/ui-components/src/Pagination/PerPage.tsx:37 |
2192 | - __( 'items per page', 'event_espresso' ), |
|
2192 | + __('items per page', 'event_espresso'), |
|
2193 | 2193 | |
2194 | 2194 | // Reference: packages/ui-components/src/Pagination/constants.ts:10 |
2195 | 2195 | /* translators: %s is per page value */ |
2196 | - __( '%s / page', 'event_espresso' ), |
|
2196 | + __('%s / page', 'event_espresso'), |
|
2197 | 2197 | |
2198 | 2198 | // Reference: packages/ui-components/src/Pagination/constants.ts:13 |
2199 | - __( 'Next Page', 'event_espresso' ), |
|
2199 | + __('Next Page', 'event_espresso'), |
|
2200 | 2200 | |
2201 | 2201 | // Reference: packages/ui-components/src/Pagination/constants.ts:14 |
2202 | - __( 'Previous Page', 'event_espresso' ), |
|
2202 | + __('Previous Page', 'event_espresso'), |
|
2203 | 2203 | |
2204 | 2204 | // Reference: packages/ui-components/src/PercentSign/index.tsx:10 |
2205 | - __( '%', 'event_espresso' ), |
|
2205 | + __('%', 'event_espresso'), |
|
2206 | 2206 | |
2207 | 2207 | // Reference: packages/ui-components/src/SimpleEntityList/EntityOptionsRow/index.tsx:31 |
2208 | 2208 | /* translators: entity type to select */ |
2209 | - __( 'Select an existing %s to use as a template.', 'event_espresso' ), |
|
2209 | + __('Select an existing %s to use as a template.', 'event_espresso'), |
|
2210 | 2210 | |
2211 | 2211 | // Reference: packages/ui-components/src/SimpleEntityList/EntityOptionsRow/index.tsx:38 |
2212 | - __( 'or', 'event_espresso' ), |
|
2212 | + __('or', 'event_espresso'), |
|
2213 | 2213 | |
2214 | 2214 | // Reference: packages/ui-components/src/SimpleEntityList/EntityOptionsRow/index.tsx:43 |
2215 | 2215 | /* translators: entity type to add */ |
2216 | - __( 'Add a new %s and insert details manually', 'event_espresso' ), |
|
2216 | + __('Add a new %s and insert details manually', 'event_espresso'), |
|
2217 | 2217 | |
2218 | 2218 | // Reference: packages/ui-components/src/SimpleEntityList/EntityOptionsRow/index.tsx:48 |
2219 | - __( 'Add New', 'event_espresso' ), |
|
2219 | + __('Add New', 'event_espresso'), |
|
2220 | 2220 | |
2221 | 2221 | // Reference: packages/ui-components/src/Stepper/buttons/Next.tsx:8 |
2222 | - __( 'Next', 'event_espresso' ), |
|
2222 | + __('Next', 'event_espresso'), |
|
2223 | 2223 | |
2224 | 2224 | // Reference: packages/ui-components/src/Stepper/buttons/Previous.tsx:8 |
2225 | - __( 'Previous', 'event_espresso' ), |
|
2225 | + __('Previous', 'event_espresso'), |
|
2226 | 2226 | |
2227 | 2227 | // Reference: packages/ui-components/src/Steps/Steps.tsx:31 |
2228 | - __( 'Steps', 'event_espresso' ), |
|
2228 | + __('Steps', 'event_espresso'), |
|
2229 | 2229 | |
2230 | 2230 | // Reference: packages/ui-components/src/TabbableText/index.tsx:21 |
2231 | - __( 'click to edit…', 'event_espresso' ), |
|
2231 | + __('click to edit…', 'event_espresso'), |
|
2232 | 2232 | |
2233 | 2233 | // Reference: packages/ui-components/src/TimezoneTimeInfo/Content.tsx:14 |
2234 | - __( 'The Website\'s Time Zone', 'event_espresso' ), |
|
2234 | + __('The Website\'s Time Zone', 'event_espresso'), |
|
2235 | 2235 | |
2236 | 2236 | // Reference: packages/ui-components/src/TimezoneTimeInfo/Content.tsx:19 |
2237 | - __( 'UTC (Greenwich Mean Time)', 'event_espresso' ), |
|
2237 | + __('UTC (Greenwich Mean Time)', 'event_espresso'), |
|
2238 | 2238 | |
2239 | 2239 | // Reference: packages/ui-components/src/TimezoneTimeInfo/Content.tsx:9 |
2240 | - __( 'Your Local Time Zone', 'event_espresso' ), |
|
2240 | + __('Your Local Time Zone', 'event_espresso'), |
|
2241 | 2241 | |
2242 | 2242 | // Reference: packages/ui-components/src/TimezoneTimeInfo/TimezoneTimeInfo.tsx:27 |
2243 | - __( 'click for timezone information', 'event_espresso' ), |
|
2243 | + __('click for timezone information', 'event_espresso'), |
|
2244 | 2244 | |
2245 | 2245 | // Reference: packages/ui-components/src/TimezoneTimeInfo/TimezoneTimeInfo.tsx:32 |
2246 | - __( 'This Date Converted To:', 'event_espresso' ), |
|
2246 | + __('This Date Converted To:', 'event_espresso'), |
|
2247 | 2247 | |
2248 | 2248 | // Reference: packages/ui-components/src/VenueSelector/VenueSelector.tsx:120 |
2249 | - __( 'Add New Venue', 'event_espresso' ), |
|
2249 | + __('Add New Venue', 'event_espresso'), |
|
2250 | 2250 | |
2251 | 2251 | // Reference: packages/ui-components/src/VenueSelector/VenueSelector.tsx:36 |
2252 | - __( '~ no venue ~', 'event_espresso' ), |
|
2252 | + __('~ no venue ~', 'event_espresso'), |
|
2253 | 2253 | |
2254 | 2254 | // Reference: packages/ui-components/src/VenueSelector/VenueSelector.tsx:43 |
2255 | - __( 'assign venue…', 'event_espresso' ), |
|
2255 | + __('assign venue…', 'event_espresso'), |
|
2256 | 2256 | |
2257 | 2257 | // Reference: packages/ui-components/src/VenueSelector/VenueSelector.tsx:44 |
2258 | - __( 'click to select a venue…', 'event_espresso' ), |
|
2258 | + __('click to select a venue…', 'event_espresso'), |
|
2259 | 2259 | |
2260 | 2260 | // Reference: packages/ui-components/src/bulkEdit/BulkActions.tsx:51 |
2261 | - __( 'select all', 'event_espresso' ), |
|
2261 | + __('select all', 'event_espresso'), |
|
2262 | 2262 | |
2263 | 2263 | // Reference: packages/ui-components/src/bulkEdit/BulkActions.tsx:54 |
2264 | - __( 'apply', 'event_espresso' ) |
|
2264 | + __('apply', 'event_espresso') |
|
2265 | 2265 | ); |
2266 | 2266 | /* THIS IS THE END OF THE GENERATED FILE */ |