@@ -13,109 +13,109 @@ |
||
13 | 13 | |
14 | 14 | class CountryOptions |
15 | 15 | { |
16 | - /** |
|
17 | - * the action being performed on the current step |
|
18 | - * |
|
19 | - * @var string |
|
20 | - */ |
|
21 | - public $action = ''; |
|
16 | + /** |
|
17 | + * the action being performed on the current step |
|
18 | + * |
|
19 | + * @var string |
|
20 | + */ |
|
21 | + public $action = ''; |
|
22 | 22 | |
23 | - /** |
|
24 | - * @var EEM_Answer |
|
25 | - */ |
|
26 | - public $answer_model; |
|
23 | + /** |
|
24 | + * @var EEM_Answer |
|
25 | + */ |
|
26 | + public $answer_model; |
|
27 | 27 | |
28 | - /** |
|
29 | - * @var EEM_Country |
|
30 | - */ |
|
31 | - public $country_model; |
|
28 | + /** |
|
29 | + * @var EEM_Country |
|
30 | + */ |
|
31 | + public $country_model; |
|
32 | 32 | |
33 | - /** |
|
34 | - * @var [][] |
|
35 | - */ |
|
36 | - private $country_options = []; |
|
33 | + /** |
|
34 | + * @var [][] |
|
35 | + */ |
|
36 | + private $country_options = []; |
|
37 | 37 | |
38 | 38 | |
39 | - /** |
|
40 | - * CountryOptions constructor. |
|
41 | - * |
|
42 | - * @param string $action |
|
43 | - * @param EEM_Answer $answer_model |
|
44 | - * @param EEM_Country $country_model |
|
45 | - */ |
|
46 | - public function __construct(string $action, EEM_Answer $answer_model, EEM_Country $country_model) |
|
47 | - { |
|
48 | - $this->action = $action; |
|
49 | - $this->answer_model = $answer_model; |
|
50 | - $this->country_model = $country_model; |
|
51 | - add_filter( |
|
52 | - 'FHEE__EE_Question__generate_form_input__country_options', |
|
53 | - [$this, 'forLegacyFormInput'], |
|
54 | - 10, |
|
55 | - 4 |
|
56 | - ); |
|
57 | - } |
|
39 | + /** |
|
40 | + * CountryOptions constructor. |
|
41 | + * |
|
42 | + * @param string $action |
|
43 | + * @param EEM_Answer $answer_model |
|
44 | + * @param EEM_Country $country_model |
|
45 | + */ |
|
46 | + public function __construct(string $action, EEM_Answer $answer_model, EEM_Country $country_model) |
|
47 | + { |
|
48 | + $this->action = $action; |
|
49 | + $this->answer_model = $answer_model; |
|
50 | + $this->country_model = $country_model; |
|
51 | + add_filter( |
|
52 | + 'FHEE__EE_Question__generate_form_input__country_options', |
|
53 | + [$this, 'forLegacyFormInput'], |
|
54 | + 10, |
|
55 | + 4 |
|
56 | + ); |
|
57 | + } |
|
58 | 58 | |
59 | 59 | |
60 | - /** |
|
61 | - * Gets the list of countries for the form input |
|
62 | - * |
|
63 | - * @param array|null $countries_list deprecated prop from an old hook |
|
64 | - * @param EE_Question|null $question |
|
65 | - * @param EE_Registration|null $registration |
|
66 | - * @param EE_Answer|null $answer deprecated prop from an old hook |
|
67 | - * @return array 2d keys are country IDs, values are their names |
|
68 | - * @throws EE_Error |
|
69 | - * @throws ReflectionException |
|
70 | - */ |
|
71 | - public function forLegacyFormInput( |
|
72 | - array $countries_list = null, |
|
73 | - EE_Question $question = null, |
|
74 | - EE_Registration $registration = null, |
|
75 | - EE_Answer $answer = null |
|
76 | - ): array { |
|
77 | - if (! isset($this->country_options[ $this->action ])) { |
|
78 | - $this->generateLegacyCountryOptions($question, $registration); |
|
79 | - } |
|
80 | - return $this->country_options[ $this->action ]; |
|
81 | - } |
|
60 | + /** |
|
61 | + * Gets the list of countries for the form input |
|
62 | + * |
|
63 | + * @param array|null $countries_list deprecated prop from an old hook |
|
64 | + * @param EE_Question|null $question |
|
65 | + * @param EE_Registration|null $registration |
|
66 | + * @param EE_Answer|null $answer deprecated prop from an old hook |
|
67 | + * @return array 2d keys are country IDs, values are their names |
|
68 | + * @throws EE_Error |
|
69 | + * @throws ReflectionException |
|
70 | + */ |
|
71 | + public function forLegacyFormInput( |
|
72 | + array $countries_list = null, |
|
73 | + EE_Question $question = null, |
|
74 | + EE_Registration $registration = null, |
|
75 | + EE_Answer $answer = null |
|
76 | + ): array { |
|
77 | + if (! isset($this->country_options[ $this->action ])) { |
|
78 | + $this->generateLegacyCountryOptions($question, $registration); |
|
79 | + } |
|
80 | + return $this->country_options[ $this->action ]; |
|
81 | + } |
|
82 | 82 | |
83 | 83 | |
84 | - /** |
|
85 | - * @param EE_Question|null $question |
|
86 | - * @param EE_Registration|null $registration |
|
87 | - * @throws EE_Error |
|
88 | - * @throws ReflectionException |
|
89 | - */ |
|
90 | - private function generateLegacyCountryOptions(EE_Question $question = null, EE_Registration $registration = null) |
|
91 | - { |
|
92 | - // get possibly cached list of countries |
|
93 | - $countries = $this->action === 'process_reg_step' |
|
94 | - ? $this->country_model->get_all_countries() |
|
95 | - : $this->country_model->get_all_active_countries(); |
|
96 | - // start with an empty option |
|
97 | - $country_options = ['' => '']; |
|
98 | - if (! empty($countries)) { |
|
99 | - foreach ($countries as $country) { |
|
100 | - if ($country instanceof EE_Country) { |
|
101 | - $country_options[ $country->ID() ] = $country->name(); |
|
102 | - } |
|
103 | - } |
|
104 | - } |
|
105 | - if ($question instanceof EE_Question && $registration instanceof EE_Registration) { |
|
106 | - $answer = $this->answer_model->get_one( |
|
107 | - [['QST_ID' => $question->ID(), 'REG_ID' => $registration->ID()]] |
|
108 | - ); |
|
109 | - } else { |
|
110 | - $answer = EE_Answer::new_instance(); |
|
111 | - } |
|
112 | - $this->country_options[ $this->action ] = apply_filters( |
|
113 | - 'FHEE__EE_SPCO_Reg_Step_Attendee_Information___generate_question_input__country_options', |
|
114 | - $country_options, |
|
115 | - $this, |
|
116 | - $registration, |
|
117 | - $question, |
|
118 | - $answer |
|
119 | - ); |
|
120 | - } |
|
84 | + /** |
|
85 | + * @param EE_Question|null $question |
|
86 | + * @param EE_Registration|null $registration |
|
87 | + * @throws EE_Error |
|
88 | + * @throws ReflectionException |
|
89 | + */ |
|
90 | + private function generateLegacyCountryOptions(EE_Question $question = null, EE_Registration $registration = null) |
|
91 | + { |
|
92 | + // get possibly cached list of countries |
|
93 | + $countries = $this->action === 'process_reg_step' |
|
94 | + ? $this->country_model->get_all_countries() |
|
95 | + : $this->country_model->get_all_active_countries(); |
|
96 | + // start with an empty option |
|
97 | + $country_options = ['' => '']; |
|
98 | + if (! empty($countries)) { |
|
99 | + foreach ($countries as $country) { |
|
100 | + if ($country instanceof EE_Country) { |
|
101 | + $country_options[ $country->ID() ] = $country->name(); |
|
102 | + } |
|
103 | + } |
|
104 | + } |
|
105 | + if ($question instanceof EE_Question && $registration instanceof EE_Registration) { |
|
106 | + $answer = $this->answer_model->get_one( |
|
107 | + [['QST_ID' => $question->ID(), 'REG_ID' => $registration->ID()]] |
|
108 | + ); |
|
109 | + } else { |
|
110 | + $answer = EE_Answer::new_instance(); |
|
111 | + } |
|
112 | + $this->country_options[ $this->action ] = apply_filters( |
|
113 | + 'FHEE__EE_SPCO_Reg_Step_Attendee_Information___generate_question_input__country_options', |
|
114 | + $country_options, |
|
115 | + $this, |
|
116 | + $registration, |
|
117 | + $question, |
|
118 | + $answer |
|
119 | + ); |
|
120 | + } |
|
121 | 121 | } |
@@ -74,10 +74,10 @@ discard block |
||
74 | 74 | EE_Registration $registration = null, |
75 | 75 | EE_Answer $answer = null |
76 | 76 | ): array { |
77 | - if (! isset($this->country_options[ $this->action ])) { |
|
77 | + if ( ! isset($this->country_options[$this->action])) { |
|
78 | 78 | $this->generateLegacyCountryOptions($question, $registration); |
79 | 79 | } |
80 | - return $this->country_options[ $this->action ]; |
|
80 | + return $this->country_options[$this->action]; |
|
81 | 81 | } |
82 | 82 | |
83 | 83 | |
@@ -95,10 +95,10 @@ discard block |
||
95 | 95 | : $this->country_model->get_all_active_countries(); |
96 | 96 | // start with an empty option |
97 | 97 | $country_options = ['' => '']; |
98 | - if (! empty($countries)) { |
|
98 | + if ( ! empty($countries)) { |
|
99 | 99 | foreach ($countries as $country) { |
100 | 100 | if ($country instanceof EE_Country) { |
101 | - $country_options[ $country->ID() ] = $country->name(); |
|
101 | + $country_options[$country->ID()] = $country->name(); |
|
102 | 102 | } |
103 | 103 | } |
104 | 104 | } |
@@ -109,7 +109,7 @@ discard block |
||
109 | 109 | } else { |
110 | 110 | $answer = EE_Answer::new_instance(); |
111 | 111 | } |
112 | - $this->country_options[ $this->action ] = apply_filters( |
|
112 | + $this->country_options[$this->action] = apply_filters( |
|
113 | 113 | 'FHEE__EE_SPCO_Reg_Step_Attendee_Information___generate_question_input__country_options', |
114 | 114 | $country_options, |
115 | 115 | $this, |
@@ -33,260 +33,260 @@ |
||
33 | 33 | class RegForm extends EE_Form_Section_Proper |
34 | 34 | { |
35 | 35 | |
36 | - /** |
|
37 | - * @var bool |
|
38 | - */ |
|
39 | - private $print_copy_info = false; |
|
36 | + /** |
|
37 | + * @var bool |
|
38 | + */ |
|
39 | + private $print_copy_info = false; |
|
40 | 40 | |
41 | - /** |
|
42 | - * @var EE_Registration_Config |
|
43 | - */ |
|
44 | - public $reg_config; |
|
41 | + /** |
|
42 | + * @var EE_Registration_Config |
|
43 | + */ |
|
44 | + public $reg_config; |
|
45 | 45 | |
46 | - /** |
|
47 | - * @var int |
|
48 | - */ |
|
49 | - protected $reg_form_count = 0; |
|
46 | + /** |
|
47 | + * @var int |
|
48 | + */ |
|
49 | + protected $reg_form_count = 0; |
|
50 | 50 | |
51 | - /** |
|
52 | - * @var EE_SPCO_Reg_Step_Attendee_Information |
|
53 | - */ |
|
54 | - public $reg_step; |
|
51 | + /** |
|
52 | + * @var EE_SPCO_Reg_Step_Attendee_Information |
|
53 | + */ |
|
54 | + public $reg_step; |
|
55 | 55 | |
56 | - /** |
|
57 | - * @var array |
|
58 | - */ |
|
59 | - private $template_args = []; |
|
56 | + /** |
|
57 | + * @var array |
|
58 | + */ |
|
59 | + private $template_args = []; |
|
60 | 60 | |
61 | 61 | |
62 | - /** |
|
63 | - * RegForm constructor. |
|
64 | - * |
|
65 | - * @param EE_SPCO_Reg_Step_Attendee_Information $reg_step |
|
66 | - * @param EE_Registration_Config $reg_config |
|
67 | - * @throws ReflectionException |
|
68 | - * @throws EE_Error |
|
69 | - */ |
|
70 | - public function __construct( |
|
71 | - EE_SPCO_Reg_Step_Attendee_Information $reg_step, |
|
72 | - EE_Registration_Config $reg_config |
|
73 | - ) { |
|
74 | - $this->reg_step = $reg_step; |
|
75 | - $this->reg_config = $reg_config; |
|
76 | - LoaderFactory::getShared(CountryOptions::class, [$this->reg_step->checkout->action]); |
|
77 | - LoaderFactory::getShared(StateOptions::class, [$this->reg_step->checkout->action]); |
|
78 | - parent::__construct( |
|
79 | - [ |
|
80 | - 'name' => $this->reg_step->reg_form_name(), |
|
81 | - 'html_id' => $this->reg_step->reg_form_name(), |
|
82 | - 'subsections' => $this->generateSubsections(), |
|
83 | - 'layout_strategy' => new EE_Template_Layout( |
|
84 | - [ |
|
85 | - 'layout_template_file' => $this->reg_step->template(), // layout_template |
|
86 | - 'template_args' => $this->template_args, |
|
87 | - ] |
|
88 | - ), |
|
89 | - ] |
|
90 | - ); |
|
91 | - } |
|
62 | + /** |
|
63 | + * RegForm constructor. |
|
64 | + * |
|
65 | + * @param EE_SPCO_Reg_Step_Attendee_Information $reg_step |
|
66 | + * @param EE_Registration_Config $reg_config |
|
67 | + * @throws ReflectionException |
|
68 | + * @throws EE_Error |
|
69 | + */ |
|
70 | + public function __construct( |
|
71 | + EE_SPCO_Reg_Step_Attendee_Information $reg_step, |
|
72 | + EE_Registration_Config $reg_config |
|
73 | + ) { |
|
74 | + $this->reg_step = $reg_step; |
|
75 | + $this->reg_config = $reg_config; |
|
76 | + LoaderFactory::getShared(CountryOptions::class, [$this->reg_step->checkout->action]); |
|
77 | + LoaderFactory::getShared(StateOptions::class, [$this->reg_step->checkout->action]); |
|
78 | + parent::__construct( |
|
79 | + [ |
|
80 | + 'name' => $this->reg_step->reg_form_name(), |
|
81 | + 'html_id' => $this->reg_step->reg_form_name(), |
|
82 | + 'subsections' => $this->generateSubsections(), |
|
83 | + 'layout_strategy' => new EE_Template_Layout( |
|
84 | + [ |
|
85 | + 'layout_template_file' => $this->reg_step->template(), // layout_template |
|
86 | + 'template_args' => $this->template_args, |
|
87 | + ] |
|
88 | + ), |
|
89 | + ] |
|
90 | + ); |
|
91 | + } |
|
92 | 92 | |
93 | - /** |
|
94 | - * @return bool |
|
95 | - */ |
|
96 | - public function printCopyInfo(): bool |
|
97 | - { |
|
98 | - return $this->print_copy_info; |
|
99 | - } |
|
93 | + /** |
|
94 | + * @return bool |
|
95 | + */ |
|
96 | + public function printCopyInfo(): bool |
|
97 | + { |
|
98 | + return $this->print_copy_info; |
|
99 | + } |
|
100 | 100 | |
101 | 101 | |
102 | - public function enablePrintCopyInfo(): void |
|
103 | - { |
|
104 | - $this->print_copy_info = true; |
|
105 | - } |
|
102 | + public function enablePrintCopyInfo(): void |
|
103 | + { |
|
104 | + $this->print_copy_info = true; |
|
105 | + } |
|
106 | 106 | |
107 | 107 | |
108 | - /** |
|
109 | - * @return int |
|
110 | - */ |
|
111 | - public function regFormCount(): int |
|
112 | - { |
|
113 | - return $this->reg_form_count; |
|
114 | - } |
|
108 | + /** |
|
109 | + * @return int |
|
110 | + */ |
|
111 | + public function regFormCount(): int |
|
112 | + { |
|
113 | + return $this->reg_form_count; |
|
114 | + } |
|
115 | 115 | |
116 | 116 | |
117 | - /** |
|
118 | - * @param EE_Registration $registration |
|
119 | - * @param EE_Question $question |
|
120 | - * @return EE_Form_Input_Base |
|
121 | - * @throws EE_Error |
|
122 | - * @throws ReflectionException |
|
123 | - */ |
|
124 | - public function regFormQuestion(EE_Registration $registration, EE_Question $question): EE_Form_Input_Base |
|
125 | - { |
|
126 | - /** @var RegFormQuestionFactory $reg_form_question_factory */ |
|
127 | - $reg_form_question_factory = LoaderFactory::getShared(RegFormQuestionFactory::class); |
|
128 | - return $reg_form_question_factory->create($registration, $question); |
|
129 | - } |
|
117 | + /** |
|
118 | + * @param EE_Registration $registration |
|
119 | + * @param EE_Question $question |
|
120 | + * @return EE_Form_Input_Base |
|
121 | + * @throws EE_Error |
|
122 | + * @throws ReflectionException |
|
123 | + */ |
|
124 | + public function regFormQuestion(EE_Registration $registration, EE_Question $question): EE_Form_Input_Base |
|
125 | + { |
|
126 | + /** @var RegFormQuestionFactory $reg_form_question_factory */ |
|
127 | + $reg_form_question_factory = LoaderFactory::getShared(RegFormQuestionFactory::class); |
|
128 | + return $reg_form_question_factory->create($registration, $question); |
|
129 | + } |
|
130 | 130 | |
131 | 131 | |
132 | - /** |
|
133 | - * @return EE_Form_Section_Proper[] |
|
134 | - * @throws DomainException |
|
135 | - * @throws EE_Error |
|
136 | - * @throws InvalidArgumentException |
|
137 | - * @throws ReflectionException |
|
138 | - * @throws EntityNotFoundException |
|
139 | - * @throws InvalidDataTypeException |
|
140 | - * @throws InvalidInterfaceException |
|
141 | - */ |
|
142 | - private function generateSubsections(): array |
|
143 | - { |
|
144 | - // Init reg forms count. |
|
145 | - $this->reg_form_count = 0; |
|
132 | + /** |
|
133 | + * @return EE_Form_Section_Proper[] |
|
134 | + * @throws DomainException |
|
135 | + * @throws EE_Error |
|
136 | + * @throws InvalidArgumentException |
|
137 | + * @throws ReflectionException |
|
138 | + * @throws EntityNotFoundException |
|
139 | + * @throws InvalidDataTypeException |
|
140 | + * @throws InvalidInterfaceException |
|
141 | + */ |
|
142 | + private function generateSubsections(): array |
|
143 | + { |
|
144 | + // Init reg forms count. |
|
145 | + $this->reg_form_count = 0; |
|
146 | 146 | |
147 | - $primary_registrant = null; |
|
148 | - // autoload Line_Item_Display classes |
|
149 | - EEH_Autoloader::register_line_item_display_autoloaders(); |
|
150 | - $Line_Item_Display = new EE_Line_Item_Display(); |
|
151 | - // calculate taxes |
|
152 | - $Line_Item_Display->display_line_item( |
|
153 | - $this->reg_step->checkout->cart->get_grand_total(), |
|
154 | - ['set_tax_rate' => true] |
|
155 | - ); |
|
156 | - $extra_inputs_section = $this->reg_step->reg_step_hidden_inputs(); |
|
157 | - $this->addPrivacyConsentCheckbox($extra_inputs_section); |
|
158 | - $subsections = [ |
|
159 | - 'default_hidden_inputs' => $extra_inputs_section, |
|
160 | - ]; |
|
147 | + $primary_registrant = null; |
|
148 | + // autoload Line_Item_Display classes |
|
149 | + EEH_Autoloader::register_line_item_display_autoloaders(); |
|
150 | + $Line_Item_Display = new EE_Line_Item_Display(); |
|
151 | + // calculate taxes |
|
152 | + $Line_Item_Display->display_line_item( |
|
153 | + $this->reg_step->checkout->cart->get_grand_total(), |
|
154 | + ['set_tax_rate' => true] |
|
155 | + ); |
|
156 | + $extra_inputs_section = $this->reg_step->reg_step_hidden_inputs(); |
|
157 | + $this->addPrivacyConsentCheckbox($extra_inputs_section); |
|
158 | + $subsections = [ |
|
159 | + 'default_hidden_inputs' => $extra_inputs_section, |
|
160 | + ]; |
|
161 | 161 | |
162 | - $this->template_args = [ |
|
163 | - 'revisit' => $this->reg_step->checkout->revisit, |
|
164 | - 'registrations' => [], |
|
165 | - 'ticket_count' => [], |
|
166 | - ]; |
|
167 | - // grab the saved registrations from the transaction |
|
168 | - $registrations |
|
169 | - = $this->reg_step->checkout->transaction->registrations($this->reg_step->checkout->reg_cache_where_params); |
|
170 | - if ($registrations) { |
|
171 | - foreach ($registrations as $registration) { |
|
172 | - // can this registration be processed during this visit ? |
|
173 | - if ( |
|
174 | - $registration instanceof EE_Registration |
|
175 | - && $this->reg_step->checkout->visit_allows_processing_of_this_registration($registration) |
|
176 | - ) { |
|
177 | - $reg_url_link = $registration->reg_url_link(); |
|
178 | - /** @var RegistrationForm $registrant_form */ |
|
179 | - $registrant_form = LoaderFactory::getNew( |
|
180 | - RegistrationForm::class, |
|
181 | - [ |
|
182 | - $registration, |
|
183 | - $this->reg_step->checkout->admin_request, |
|
184 | - $this->reg_config->copyAttendeeInfo(), |
|
185 | - [$this, 'enablePrintCopyInfo'] |
|
186 | - ] |
|
187 | - ); |
|
188 | - // Increment the reg forms number if form is valid. |
|
189 | - if ($registrant_form->hasQuestions()) { |
|
190 | - $this->reg_form_count++; |
|
191 | - $subsections[ $reg_url_link ] = $registrant_form; |
|
192 | - } else { |
|
193 | - // or just add a blank section if there are no questions |
|
194 | - $subsections[ $reg_url_link ] = new EE_Form_Section_HTML(); |
|
195 | - } |
|
162 | + $this->template_args = [ |
|
163 | + 'revisit' => $this->reg_step->checkout->revisit, |
|
164 | + 'registrations' => [], |
|
165 | + 'ticket_count' => [], |
|
166 | + ]; |
|
167 | + // grab the saved registrations from the transaction |
|
168 | + $registrations |
|
169 | + = $this->reg_step->checkout->transaction->registrations($this->reg_step->checkout->reg_cache_where_params); |
|
170 | + if ($registrations) { |
|
171 | + foreach ($registrations as $registration) { |
|
172 | + // can this registration be processed during this visit ? |
|
173 | + if ( |
|
174 | + $registration instanceof EE_Registration |
|
175 | + && $this->reg_step->checkout->visit_allows_processing_of_this_registration($registration) |
|
176 | + ) { |
|
177 | + $reg_url_link = $registration->reg_url_link(); |
|
178 | + /** @var RegistrationForm $registrant_form */ |
|
179 | + $registrant_form = LoaderFactory::getNew( |
|
180 | + RegistrationForm::class, |
|
181 | + [ |
|
182 | + $registration, |
|
183 | + $this->reg_step->checkout->admin_request, |
|
184 | + $this->reg_config->copyAttendeeInfo(), |
|
185 | + [$this, 'enablePrintCopyInfo'] |
|
186 | + ] |
|
187 | + ); |
|
188 | + // Increment the reg forms number if form is valid. |
|
189 | + if ($registrant_form->hasQuestions()) { |
|
190 | + $this->reg_form_count++; |
|
191 | + $subsections[ $reg_url_link ] = $registrant_form; |
|
192 | + } else { |
|
193 | + // or just add a blank section if there are no questions |
|
194 | + $subsections[ $reg_url_link ] = new EE_Form_Section_HTML(); |
|
195 | + } |
|
196 | 196 | |
197 | - $this->template_args['registrations'][ $reg_url_link ] = $registration; |
|
198 | - $this->template_args['ticket_count'][ $registration->ticket()->ID() ] = isset( |
|
199 | - $this->template_args['ticket_count'][ $registration->ticket()->ID() ] |
|
200 | - ) |
|
201 | - ? $this->template_args['ticket_count'][ $registration->ticket()->ID() ] + 1 |
|
202 | - : 1; |
|
203 | - $ticket_line_item |
|
204 | - = EEH_Line_Item::get_line_items_by_object_type_and_IDs( |
|
205 | - $this->reg_step->checkout->cart->get_grand_total(), |
|
206 | - 'Ticket', |
|
207 | - [$registration->ticket()->ID()] |
|
208 | - ); |
|
209 | - $ticket_line_item = is_array($ticket_line_item) |
|
210 | - ? reset($ticket_line_item) |
|
211 | - : $ticket_line_item; |
|
212 | - $this->template_args['ticket_line_item'][ $registration->ticket()->ID() ] |
|
213 | - = $Line_Item_Display->display_line_item($ticket_line_item); |
|
214 | - if ($registration->is_primary_registrant()) { |
|
215 | - $primary_registrant = $reg_url_link; |
|
216 | - } |
|
217 | - } |
|
218 | - } |
|
197 | + $this->template_args['registrations'][ $reg_url_link ] = $registration; |
|
198 | + $this->template_args['ticket_count'][ $registration->ticket()->ID() ] = isset( |
|
199 | + $this->template_args['ticket_count'][ $registration->ticket()->ID() ] |
|
200 | + ) |
|
201 | + ? $this->template_args['ticket_count'][ $registration->ticket()->ID() ] + 1 |
|
202 | + : 1; |
|
203 | + $ticket_line_item |
|
204 | + = EEH_Line_Item::get_line_items_by_object_type_and_IDs( |
|
205 | + $this->reg_step->checkout->cart->get_grand_total(), |
|
206 | + 'Ticket', |
|
207 | + [$registration->ticket()->ID()] |
|
208 | + ); |
|
209 | + $ticket_line_item = is_array($ticket_line_item) |
|
210 | + ? reset($ticket_line_item) |
|
211 | + : $ticket_line_item; |
|
212 | + $this->template_args['ticket_line_item'][ $registration->ticket()->ID() ] |
|
213 | + = $Line_Item_Display->display_line_item($ticket_line_item); |
|
214 | + if ($registration->is_primary_registrant()) { |
|
215 | + $primary_registrant = $reg_url_link; |
|
216 | + } |
|
217 | + } |
|
218 | + } |
|
219 | 219 | |
220 | - if ($primary_registrant && count($registrations) > 1) { |
|
221 | - $copy_options['spco_copy_attendee_chk'] = $this->print_copy_info |
|
222 | - ? new CopyAttendeeInfoForm($registrations, $this->reg_step->slug()) |
|
223 | - : new AutoCopyAttendeeInfoForm($this->reg_step->slug()); |
|
224 | - // generate hidden input |
|
225 | - if ( |
|
226 | - isset($subsections[ $primary_registrant ]) |
|
227 | - && $subsections[ $primary_registrant ] instanceof EE_Form_Section_Proper |
|
228 | - ) { |
|
229 | - $subsections[ $primary_registrant ]->add_subsections( |
|
230 | - $copy_options, |
|
231 | - 'primary_registrant', |
|
232 | - false |
|
233 | - ); |
|
234 | - } |
|
235 | - } |
|
236 | - } |
|
220 | + if ($primary_registrant && count($registrations) > 1) { |
|
221 | + $copy_options['spco_copy_attendee_chk'] = $this->print_copy_info |
|
222 | + ? new CopyAttendeeInfoForm($registrations, $this->reg_step->slug()) |
|
223 | + : new AutoCopyAttendeeInfoForm($this->reg_step->slug()); |
|
224 | + // generate hidden input |
|
225 | + if ( |
|
226 | + isset($subsections[ $primary_registrant ]) |
|
227 | + && $subsections[ $primary_registrant ] instanceof EE_Form_Section_Proper |
|
228 | + ) { |
|
229 | + $subsections[ $primary_registrant ]->add_subsections( |
|
230 | + $copy_options, |
|
231 | + 'primary_registrant', |
|
232 | + false |
|
233 | + ); |
|
234 | + } |
|
235 | + } |
|
236 | + } |
|
237 | 237 | |
238 | - // Set the registration form template (default: one form per ticket details table). |
|
239 | - // We decide the template to used based on the number of forms. |
|
240 | - $template = $this->reg_form_count > 1 |
|
241 | - ? SPCO_REG_STEPS_PATH . $this->reg_step->slug() . '/attendee_info_main.template.php' |
|
242 | - : SPCO_REG_STEPS_PATH . $this->reg_step->slug() . '/attendee_info_single.template.php'; |
|
243 | - $this->reg_step->setTemplate($template); |
|
238 | + // Set the registration form template (default: one form per ticket details table). |
|
239 | + // We decide the template to used based on the number of forms. |
|
240 | + $template = $this->reg_form_count > 1 |
|
241 | + ? SPCO_REG_STEPS_PATH . $this->reg_step->slug() . '/attendee_info_main.template.php' |
|
242 | + : SPCO_REG_STEPS_PATH . $this->reg_step->slug() . '/attendee_info_single.template.php'; |
|
243 | + $this->reg_step->setTemplate($template); |
|
244 | 244 | |
245 | - return $subsections; |
|
246 | - } |
|
245 | + return $subsections; |
|
246 | + } |
|
247 | 247 | |
248 | 248 | |
249 | - /** |
|
250 | - * @param EE_Form_Section_Proper $extra_inputs_section |
|
251 | - * @throws EE_Error |
|
252 | - */ |
|
253 | - private function addPrivacyConsentCheckbox(EE_Form_Section_Proper $extra_inputs_section) |
|
254 | - { |
|
255 | - // if this isn't a revisit, and they have the privacy consent box enabled, add it |
|
256 | - if (! $this->reg_step->checkout->revisit && $this->reg_config->isConsentCheckboxEnabled()) { |
|
257 | - $extra_inputs_section->add_subsections( |
|
258 | - [ |
|
259 | - 'consent_box' => new EE_Form_Section_Proper( |
|
260 | - [ |
|
261 | - 'layout_strategy' => |
|
262 | - new EE_Template_Layout( |
|
263 | - [ |
|
264 | - 'input_template_file' => SPCO_REG_STEPS_PATH |
|
265 | - . $this->reg_step->slug() |
|
266 | - . '/privacy_consent.template.php', |
|
267 | - ] |
|
268 | - ), |
|
269 | - 'subsections' => [ |
|
270 | - 'consent' => new EE_Checkbox_Multi_Input( |
|
271 | - [ |
|
272 | - 'consent' => $this->reg_config->getConsentCheckboxLabelText(), |
|
273 | - ], |
|
274 | - [ |
|
275 | - 'required' => true, |
|
276 | - 'required_validation_error_message' => esc_html__( |
|
277 | - 'You must consent to these terms in order to register.', |
|
278 | - 'event_espresso' |
|
279 | - ), |
|
280 | - 'html_label_text' => '', |
|
281 | - ] |
|
282 | - ), |
|
283 | - ], |
|
284 | - ] |
|
285 | - ), |
|
286 | - ], |
|
287 | - null, |
|
288 | - false |
|
289 | - ); |
|
290 | - } |
|
291 | - } |
|
249 | + /** |
|
250 | + * @param EE_Form_Section_Proper $extra_inputs_section |
|
251 | + * @throws EE_Error |
|
252 | + */ |
|
253 | + private function addPrivacyConsentCheckbox(EE_Form_Section_Proper $extra_inputs_section) |
|
254 | + { |
|
255 | + // if this isn't a revisit, and they have the privacy consent box enabled, add it |
|
256 | + if (! $this->reg_step->checkout->revisit && $this->reg_config->isConsentCheckboxEnabled()) { |
|
257 | + $extra_inputs_section->add_subsections( |
|
258 | + [ |
|
259 | + 'consent_box' => new EE_Form_Section_Proper( |
|
260 | + [ |
|
261 | + 'layout_strategy' => |
|
262 | + new EE_Template_Layout( |
|
263 | + [ |
|
264 | + 'input_template_file' => SPCO_REG_STEPS_PATH |
|
265 | + . $this->reg_step->slug() |
|
266 | + . '/privacy_consent.template.php', |
|
267 | + ] |
|
268 | + ), |
|
269 | + 'subsections' => [ |
|
270 | + 'consent' => new EE_Checkbox_Multi_Input( |
|
271 | + [ |
|
272 | + 'consent' => $this->reg_config->getConsentCheckboxLabelText(), |
|
273 | + ], |
|
274 | + [ |
|
275 | + 'required' => true, |
|
276 | + 'required_validation_error_message' => esc_html__( |
|
277 | + 'You must consent to these terms in order to register.', |
|
278 | + 'event_espresso' |
|
279 | + ), |
|
280 | + 'html_label_text' => '', |
|
281 | + ] |
|
282 | + ), |
|
283 | + ], |
|
284 | + ] |
|
285 | + ), |
|
286 | + ], |
|
287 | + null, |
|
288 | + false |
|
289 | + ); |
|
290 | + } |
|
291 | + } |
|
292 | 292 | } |
@@ -188,17 +188,17 @@ discard block |
||
188 | 188 | // Increment the reg forms number if form is valid. |
189 | 189 | if ($registrant_form->hasQuestions()) { |
190 | 190 | $this->reg_form_count++; |
191 | - $subsections[ $reg_url_link ] = $registrant_form; |
|
191 | + $subsections[$reg_url_link] = $registrant_form; |
|
192 | 192 | } else { |
193 | 193 | // or just add a blank section if there are no questions |
194 | - $subsections[ $reg_url_link ] = new EE_Form_Section_HTML(); |
|
194 | + $subsections[$reg_url_link] = new EE_Form_Section_HTML(); |
|
195 | 195 | } |
196 | 196 | |
197 | - $this->template_args['registrations'][ $reg_url_link ] = $registration; |
|
198 | - $this->template_args['ticket_count'][ $registration->ticket()->ID() ] = isset( |
|
199 | - $this->template_args['ticket_count'][ $registration->ticket()->ID() ] |
|
197 | + $this->template_args['registrations'][$reg_url_link] = $registration; |
|
198 | + $this->template_args['ticket_count'][$registration->ticket()->ID()] = isset( |
|
199 | + $this->template_args['ticket_count'][$registration->ticket()->ID()] |
|
200 | 200 | ) |
201 | - ? $this->template_args['ticket_count'][ $registration->ticket()->ID() ] + 1 |
|
201 | + ? $this->template_args['ticket_count'][$registration->ticket()->ID()] + 1 |
|
202 | 202 | : 1; |
203 | 203 | $ticket_line_item |
204 | 204 | = EEH_Line_Item::get_line_items_by_object_type_and_IDs( |
@@ -206,10 +206,10 @@ discard block |
||
206 | 206 | 'Ticket', |
207 | 207 | [$registration->ticket()->ID()] |
208 | 208 | ); |
209 | - $ticket_line_item = is_array($ticket_line_item) |
|
209 | + $ticket_line_item = is_array($ticket_line_item) |
|
210 | 210 | ? reset($ticket_line_item) |
211 | 211 | : $ticket_line_item; |
212 | - $this->template_args['ticket_line_item'][ $registration->ticket()->ID() ] |
|
212 | + $this->template_args['ticket_line_item'][$registration->ticket()->ID()] |
|
213 | 213 | = $Line_Item_Display->display_line_item($ticket_line_item); |
214 | 214 | if ($registration->is_primary_registrant()) { |
215 | 215 | $primary_registrant = $reg_url_link; |
@@ -223,10 +223,10 @@ discard block |
||
223 | 223 | : new AutoCopyAttendeeInfoForm($this->reg_step->slug()); |
224 | 224 | // generate hidden input |
225 | 225 | if ( |
226 | - isset($subsections[ $primary_registrant ]) |
|
227 | - && $subsections[ $primary_registrant ] instanceof EE_Form_Section_Proper |
|
226 | + isset($subsections[$primary_registrant]) |
|
227 | + && $subsections[$primary_registrant] instanceof EE_Form_Section_Proper |
|
228 | 228 | ) { |
229 | - $subsections[ $primary_registrant ]->add_subsections( |
|
229 | + $subsections[$primary_registrant]->add_subsections( |
|
230 | 230 | $copy_options, |
231 | 231 | 'primary_registrant', |
232 | 232 | false |
@@ -238,8 +238,8 @@ discard block |
||
238 | 238 | // Set the registration form template (default: one form per ticket details table). |
239 | 239 | // We decide the template to used based on the number of forms. |
240 | 240 | $template = $this->reg_form_count > 1 |
241 | - ? SPCO_REG_STEPS_PATH . $this->reg_step->slug() . '/attendee_info_main.template.php' |
|
242 | - : SPCO_REG_STEPS_PATH . $this->reg_step->slug() . '/attendee_info_single.template.php'; |
|
241 | + ? SPCO_REG_STEPS_PATH . $this->reg_step->slug().'/attendee_info_main.template.php' |
|
242 | + : SPCO_REG_STEPS_PATH.$this->reg_step->slug().'/attendee_info_single.template.php'; |
|
243 | 243 | $this->reg_step->setTemplate($template); |
244 | 244 | |
245 | 245 | return $subsections; |
@@ -253,7 +253,7 @@ discard block |
||
253 | 253 | private function addPrivacyConsentCheckbox(EE_Form_Section_Proper $extra_inputs_section) |
254 | 254 | { |
255 | 255 | // if this isn't a revisit, and they have the privacy consent box enabled, add it |
256 | - if (! $this->reg_step->checkout->revisit && $this->reg_config->isConsentCheckboxEnabled()) { |
|
256 | + if ( ! $this->reg_step->checkout->revisit && $this->reg_config->isConsentCheckboxEnabled()) { |
|
257 | 257 | $extra_inputs_section->add_subsections( |
258 | 258 | [ |
259 | 259 | 'consent_box' => new EE_Form_Section_Proper( |
@@ -17,197 +17,197 @@ |
||
17 | 17 | class RegistrationForm extends EE_Form_Section_Proper |
18 | 18 | { |
19 | 19 | |
20 | - /** |
|
21 | - * @var EEM_Event_Question_Group |
|
22 | - */ |
|
23 | - public $event_question_group_model; |
|
24 | - |
|
25 | - /** |
|
26 | - * @var bool |
|
27 | - */ |
|
28 | - private $has_questions = false; |
|
29 | - |
|
30 | - |
|
31 | - /** |
|
32 | - * RegistrationForm constructor. |
|
33 | - * |
|
34 | - * @param EE_Registration $registration |
|
35 | - * @param bool $admin_request |
|
36 | - * @param bool $copy_attendee_info |
|
37 | - * @param callable $enablePrintCopyInfo |
|
38 | - * @param EEM_Event_Question_Group $event_question_group_model |
|
39 | - * @throws EE_Error |
|
40 | - * @throws ReflectionException |
|
41 | - */ |
|
42 | - public function __construct( |
|
43 | - EE_Registration $registration, |
|
44 | - bool $admin_request, |
|
45 | - bool $copy_attendee_info, |
|
46 | - callable $enablePrintCopyInfo, |
|
47 | - EEM_Event_Question_Group $event_question_group_model |
|
48 | - ) { |
|
49 | - $this->event_question_group_model = $event_question_group_model; |
|
50 | - parent::__construct( |
|
51 | - $this->generateFormArgs($registration, $admin_request, $copy_attendee_info, $enablePrintCopyInfo) |
|
52 | - ); |
|
53 | - } |
|
54 | - |
|
55 | - |
|
56 | - /** |
|
57 | - * @return bool |
|
58 | - */ |
|
59 | - public function hasQuestions(): bool |
|
60 | - { |
|
61 | - return $this->has_questions; |
|
62 | - } |
|
63 | - |
|
64 | - |
|
65 | - /** |
|
66 | - * @param EE_Registration $registration |
|
67 | - * @param bool $admin_request |
|
68 | - * @param bool $copy_attendee_info |
|
69 | - * @param callable $enablePrintCopyInfo |
|
70 | - * @return array |
|
71 | - * @throws EE_Error |
|
72 | - * @throws ReflectionException |
|
73 | - */ |
|
74 | - private function generateFormArgs( |
|
75 | - EE_Registration $registration, |
|
76 | - bool $admin_request, |
|
77 | - bool $copy_attendee_info, |
|
78 | - callable $enablePrintCopyInfo |
|
79 | - ): array { |
|
80 | - static $attendee_nmbr = 1; |
|
81 | - $form_args = []; |
|
82 | - // verify that registration has valid event |
|
83 | - if ($registration->event() instanceof EE_Event) { |
|
84 | - $field_name = 'Event_Question_Group.' . $this->event_question_group_model->fieldNameForContext( |
|
85 | - $registration->is_primary_registrant() |
|
86 | - ); |
|
87 | - $question_groups = $registration->event()->question_groups( |
|
88 | - apply_filters( |
|
89 | - // @codingStandardsIgnoreStart |
|
90 | - 'FHEE__EE_SPCO_Reg_Step_Attendee_Information___registrations_reg_form__question_groups_query_parameters', |
|
91 | - // @codingStandardsIgnoreEnd |
|
92 | - [ |
|
93 | - [ |
|
94 | - 'Event.EVT_ID' => $registration->event()->ID(), |
|
95 | - $field_name => true, |
|
96 | - ], |
|
97 | - 'order_by' => ['QSG_order' => 'ASC'], |
|
98 | - ], |
|
99 | - $registration, |
|
100 | - $this |
|
101 | - ) |
|
102 | - ); |
|
103 | - if ($question_groups) { |
|
104 | - // array of params to pass to parent constructor |
|
105 | - $form_args = [ |
|
106 | - 'html_id' => 'ee-registration-' . $registration->reg_url_link(), |
|
107 | - 'html_class' => 'ee-reg-form-attendee-dv', |
|
108 | - 'html_style' => $admin_request |
|
109 | - ? 'padding:0em 2em 1em; margin:3em 0 0; border:1px solid #ddd;' |
|
110 | - : '', |
|
111 | - 'subsections' => [], |
|
112 | - 'layout_strategy' => new EE_Fieldset_Section_Layout( |
|
113 | - [ |
|
114 | - 'legend_class' => 'spco-attendee-lgnd smaller-text lt-grey-text', |
|
115 | - 'legend_text' => sprintf( |
|
116 | - esc_html_x( |
|
117 | - 'Attendee %d', |
|
118 | - 'Attendee 123', |
|
119 | - 'event_espresso' |
|
120 | - ), |
|
121 | - $attendee_nmbr |
|
122 | - ), |
|
123 | - ] |
|
124 | - ), |
|
125 | - ]; |
|
126 | - foreach ($question_groups as $question_group) { |
|
127 | - if ($question_group instanceof EE_Question_Group) { |
|
128 | - $question_group_reg_form = LoaderFactory::getNew( |
|
129 | - QuestionGroupRegForm::class, |
|
130 | - [ $registration, $question_group, $admin_request ] |
|
131 | - ); |
|
132 | - // new QuestionGroupRegForm( |
|
133 | - // $registration, |
|
134 | - // $question_group, |
|
135 | - // $admin_request, |
|
136 | - // $this->reg_form_question_factory |
|
137 | - // ); |
|
138 | - $form_args['subsections'][ $question_group->identifier() ] = apply_filters( |
|
139 | - 'FHEE__EE_SPCO_Reg_Step_Attendee_Information___question_group_reg_form__question_group_reg_form', |
|
140 | - $question_group_reg_form, |
|
141 | - $registration, |
|
142 | - $question_group, |
|
143 | - $this |
|
144 | - ); |
|
145 | - } |
|
146 | - } |
|
147 | - // add hidden input |
|
148 | - $form_args['subsections']['additional_attendee_reg_info'] = $this->additionalAttendeeRegInfoInput( |
|
149 | - $registration |
|
150 | - ); |
|
151 | - |
|
152 | - // If we have question groups for additional attendees, then display the copy options |
|
153 | - $enablePrintCopyInfo( |
|
154 | - apply_filters( |
|
155 | - 'FHEE__EE_SPCO_Reg_Step_Attendee_Information___registrations_reg_form___printCopyInfo', |
|
156 | - $attendee_nmbr > 1 && $copy_attendee_info, |
|
157 | - $attendee_nmbr |
|
158 | - ) |
|
159 | - ); |
|
160 | - |
|
161 | - if ($registration->is_primary_registrant()) { |
|
162 | - // generate hidden input |
|
163 | - $form_args['subsections']['primary_registrant'] = $this->additionalPrimaryRegistrantInputs( |
|
164 | - $registration |
|
165 | - ); |
|
166 | - } |
|
167 | - } |
|
168 | - } |
|
169 | - $attendee_nmbr++; |
|
170 | - |
|
171 | - // Increment the reg forms number if form is valid. |
|
172 | - if (! empty($form_args)) { |
|
173 | - $this->has_questions = true; |
|
174 | - } |
|
175 | - |
|
176 | - return $form_args; |
|
177 | - } |
|
178 | - |
|
179 | - |
|
180 | - /** |
|
181 | - * @param EE_Registration $registration |
|
182 | - * @return EE_Form_Input_Base |
|
183 | - * @throws EE_Error |
|
184 | - */ |
|
185 | - private function additionalAttendeeRegInfoInput(EE_Registration $registration) |
|
186 | - { |
|
187 | - // generate hidden input |
|
188 | - return new EE_Hidden_Input( |
|
189 | - [ |
|
190 | - 'html_id' => 'additional-attendee-reg-info-' . $registration->reg_url_link(), |
|
191 | - 'default' => true, |
|
192 | - ] |
|
193 | - ); |
|
194 | - } |
|
195 | - |
|
196 | - |
|
197 | - /** |
|
198 | - * @param EE_Registration $registration |
|
199 | - * @return EE_Form_Input_Base |
|
200 | - * @throws EE_Error |
|
201 | - */ |
|
202 | - private function additionalPrimaryRegistrantInputs(EE_Registration $registration) |
|
203 | - { |
|
204 | - // generate hidden input |
|
205 | - return new EE_Hidden_Input( |
|
206 | - [ |
|
207 | - 'html_id' => 'primary_registrant', |
|
208 | - 'default' => $registration->reg_url_link(), |
|
209 | - ] |
|
210 | - ); |
|
211 | - } |
|
20 | + /** |
|
21 | + * @var EEM_Event_Question_Group |
|
22 | + */ |
|
23 | + public $event_question_group_model; |
|
24 | + |
|
25 | + /** |
|
26 | + * @var bool |
|
27 | + */ |
|
28 | + private $has_questions = false; |
|
29 | + |
|
30 | + |
|
31 | + /** |
|
32 | + * RegistrationForm constructor. |
|
33 | + * |
|
34 | + * @param EE_Registration $registration |
|
35 | + * @param bool $admin_request |
|
36 | + * @param bool $copy_attendee_info |
|
37 | + * @param callable $enablePrintCopyInfo |
|
38 | + * @param EEM_Event_Question_Group $event_question_group_model |
|
39 | + * @throws EE_Error |
|
40 | + * @throws ReflectionException |
|
41 | + */ |
|
42 | + public function __construct( |
|
43 | + EE_Registration $registration, |
|
44 | + bool $admin_request, |
|
45 | + bool $copy_attendee_info, |
|
46 | + callable $enablePrintCopyInfo, |
|
47 | + EEM_Event_Question_Group $event_question_group_model |
|
48 | + ) { |
|
49 | + $this->event_question_group_model = $event_question_group_model; |
|
50 | + parent::__construct( |
|
51 | + $this->generateFormArgs($registration, $admin_request, $copy_attendee_info, $enablePrintCopyInfo) |
|
52 | + ); |
|
53 | + } |
|
54 | + |
|
55 | + |
|
56 | + /** |
|
57 | + * @return bool |
|
58 | + */ |
|
59 | + public function hasQuestions(): bool |
|
60 | + { |
|
61 | + return $this->has_questions; |
|
62 | + } |
|
63 | + |
|
64 | + |
|
65 | + /** |
|
66 | + * @param EE_Registration $registration |
|
67 | + * @param bool $admin_request |
|
68 | + * @param bool $copy_attendee_info |
|
69 | + * @param callable $enablePrintCopyInfo |
|
70 | + * @return array |
|
71 | + * @throws EE_Error |
|
72 | + * @throws ReflectionException |
|
73 | + */ |
|
74 | + private function generateFormArgs( |
|
75 | + EE_Registration $registration, |
|
76 | + bool $admin_request, |
|
77 | + bool $copy_attendee_info, |
|
78 | + callable $enablePrintCopyInfo |
|
79 | + ): array { |
|
80 | + static $attendee_nmbr = 1; |
|
81 | + $form_args = []; |
|
82 | + // verify that registration has valid event |
|
83 | + if ($registration->event() instanceof EE_Event) { |
|
84 | + $field_name = 'Event_Question_Group.' . $this->event_question_group_model->fieldNameForContext( |
|
85 | + $registration->is_primary_registrant() |
|
86 | + ); |
|
87 | + $question_groups = $registration->event()->question_groups( |
|
88 | + apply_filters( |
|
89 | + // @codingStandardsIgnoreStart |
|
90 | + 'FHEE__EE_SPCO_Reg_Step_Attendee_Information___registrations_reg_form__question_groups_query_parameters', |
|
91 | + // @codingStandardsIgnoreEnd |
|
92 | + [ |
|
93 | + [ |
|
94 | + 'Event.EVT_ID' => $registration->event()->ID(), |
|
95 | + $field_name => true, |
|
96 | + ], |
|
97 | + 'order_by' => ['QSG_order' => 'ASC'], |
|
98 | + ], |
|
99 | + $registration, |
|
100 | + $this |
|
101 | + ) |
|
102 | + ); |
|
103 | + if ($question_groups) { |
|
104 | + // array of params to pass to parent constructor |
|
105 | + $form_args = [ |
|
106 | + 'html_id' => 'ee-registration-' . $registration->reg_url_link(), |
|
107 | + 'html_class' => 'ee-reg-form-attendee-dv', |
|
108 | + 'html_style' => $admin_request |
|
109 | + ? 'padding:0em 2em 1em; margin:3em 0 0; border:1px solid #ddd;' |
|
110 | + : '', |
|
111 | + 'subsections' => [], |
|
112 | + 'layout_strategy' => new EE_Fieldset_Section_Layout( |
|
113 | + [ |
|
114 | + 'legend_class' => 'spco-attendee-lgnd smaller-text lt-grey-text', |
|
115 | + 'legend_text' => sprintf( |
|
116 | + esc_html_x( |
|
117 | + 'Attendee %d', |
|
118 | + 'Attendee 123', |
|
119 | + 'event_espresso' |
|
120 | + ), |
|
121 | + $attendee_nmbr |
|
122 | + ), |
|
123 | + ] |
|
124 | + ), |
|
125 | + ]; |
|
126 | + foreach ($question_groups as $question_group) { |
|
127 | + if ($question_group instanceof EE_Question_Group) { |
|
128 | + $question_group_reg_form = LoaderFactory::getNew( |
|
129 | + QuestionGroupRegForm::class, |
|
130 | + [ $registration, $question_group, $admin_request ] |
|
131 | + ); |
|
132 | + // new QuestionGroupRegForm( |
|
133 | + // $registration, |
|
134 | + // $question_group, |
|
135 | + // $admin_request, |
|
136 | + // $this->reg_form_question_factory |
|
137 | + // ); |
|
138 | + $form_args['subsections'][ $question_group->identifier() ] = apply_filters( |
|
139 | + 'FHEE__EE_SPCO_Reg_Step_Attendee_Information___question_group_reg_form__question_group_reg_form', |
|
140 | + $question_group_reg_form, |
|
141 | + $registration, |
|
142 | + $question_group, |
|
143 | + $this |
|
144 | + ); |
|
145 | + } |
|
146 | + } |
|
147 | + // add hidden input |
|
148 | + $form_args['subsections']['additional_attendee_reg_info'] = $this->additionalAttendeeRegInfoInput( |
|
149 | + $registration |
|
150 | + ); |
|
151 | + |
|
152 | + // If we have question groups for additional attendees, then display the copy options |
|
153 | + $enablePrintCopyInfo( |
|
154 | + apply_filters( |
|
155 | + 'FHEE__EE_SPCO_Reg_Step_Attendee_Information___registrations_reg_form___printCopyInfo', |
|
156 | + $attendee_nmbr > 1 && $copy_attendee_info, |
|
157 | + $attendee_nmbr |
|
158 | + ) |
|
159 | + ); |
|
160 | + |
|
161 | + if ($registration->is_primary_registrant()) { |
|
162 | + // generate hidden input |
|
163 | + $form_args['subsections']['primary_registrant'] = $this->additionalPrimaryRegistrantInputs( |
|
164 | + $registration |
|
165 | + ); |
|
166 | + } |
|
167 | + } |
|
168 | + } |
|
169 | + $attendee_nmbr++; |
|
170 | + |
|
171 | + // Increment the reg forms number if form is valid. |
|
172 | + if (! empty($form_args)) { |
|
173 | + $this->has_questions = true; |
|
174 | + } |
|
175 | + |
|
176 | + return $form_args; |
|
177 | + } |
|
178 | + |
|
179 | + |
|
180 | + /** |
|
181 | + * @param EE_Registration $registration |
|
182 | + * @return EE_Form_Input_Base |
|
183 | + * @throws EE_Error |
|
184 | + */ |
|
185 | + private function additionalAttendeeRegInfoInput(EE_Registration $registration) |
|
186 | + { |
|
187 | + // generate hidden input |
|
188 | + return new EE_Hidden_Input( |
|
189 | + [ |
|
190 | + 'html_id' => 'additional-attendee-reg-info-' . $registration->reg_url_link(), |
|
191 | + 'default' => true, |
|
192 | + ] |
|
193 | + ); |
|
194 | + } |
|
195 | + |
|
196 | + |
|
197 | + /** |
|
198 | + * @param EE_Registration $registration |
|
199 | + * @return EE_Form_Input_Base |
|
200 | + * @throws EE_Error |
|
201 | + */ |
|
202 | + private function additionalPrimaryRegistrantInputs(EE_Registration $registration) |
|
203 | + { |
|
204 | + // generate hidden input |
|
205 | + return new EE_Hidden_Input( |
|
206 | + [ |
|
207 | + 'html_id' => 'primary_registrant', |
|
208 | + 'default' => $registration->reg_url_link(), |
|
209 | + ] |
|
210 | + ); |
|
211 | + } |
|
212 | 212 | |
213 | 213 | } |
@@ -81,7 +81,7 @@ discard block |
||
81 | 81 | $form_args = []; |
82 | 82 | // verify that registration has valid event |
83 | 83 | if ($registration->event() instanceof EE_Event) { |
84 | - $field_name = 'Event_Question_Group.' . $this->event_question_group_model->fieldNameForContext( |
|
84 | + $field_name = 'Event_Question_Group.'.$this->event_question_group_model->fieldNameForContext( |
|
85 | 85 | $registration->is_primary_registrant() |
86 | 86 | ); |
87 | 87 | $question_groups = $registration->event()->question_groups( |
@@ -103,7 +103,7 @@ discard block |
||
103 | 103 | if ($question_groups) { |
104 | 104 | // array of params to pass to parent constructor |
105 | 105 | $form_args = [ |
106 | - 'html_id' => 'ee-registration-' . $registration->reg_url_link(), |
|
106 | + 'html_id' => 'ee-registration-'.$registration->reg_url_link(), |
|
107 | 107 | 'html_class' => 'ee-reg-form-attendee-dv', |
108 | 108 | 'html_style' => $admin_request |
109 | 109 | ? 'padding:0em 2em 1em; margin:3em 0 0; border:1px solid #ddd;' |
@@ -127,7 +127,7 @@ discard block |
||
127 | 127 | if ($question_group instanceof EE_Question_Group) { |
128 | 128 | $question_group_reg_form = LoaderFactory::getNew( |
129 | 129 | QuestionGroupRegForm::class, |
130 | - [ $registration, $question_group, $admin_request ] |
|
130 | + [$registration, $question_group, $admin_request] |
|
131 | 131 | ); |
132 | 132 | // new QuestionGroupRegForm( |
133 | 133 | // $registration, |
@@ -135,7 +135,7 @@ discard block |
||
135 | 135 | // $admin_request, |
136 | 136 | // $this->reg_form_question_factory |
137 | 137 | // ); |
138 | - $form_args['subsections'][ $question_group->identifier() ] = apply_filters( |
|
138 | + $form_args['subsections'][$question_group->identifier()] = apply_filters( |
|
139 | 139 | 'FHEE__EE_SPCO_Reg_Step_Attendee_Information___question_group_reg_form__question_group_reg_form', |
140 | 140 | $question_group_reg_form, |
141 | 141 | $registration, |
@@ -169,7 +169,7 @@ discard block |
||
169 | 169 | $attendee_nmbr++; |
170 | 170 | |
171 | 171 | // Increment the reg forms number if form is valid. |
172 | - if (! empty($form_args)) { |
|
172 | + if ( ! empty($form_args)) { |
|
173 | 173 | $this->has_questions = true; |
174 | 174 | } |
175 | 175 | |
@@ -187,7 +187,7 @@ discard block |
||
187 | 187 | // generate hidden input |
188 | 188 | return new EE_Hidden_Input( |
189 | 189 | [ |
190 | - 'html_id' => 'additional-attendee-reg-info-' . $registration->reg_url_link(), |
|
190 | + 'html_id' => 'additional-attendee-reg-info-'.$registration->reg_url_link(), |
|
191 | 191 | 'default' => true, |
192 | 192 | ] |
193 | 193 | ); |
@@ -12,97 +12,97 @@ |
||
12 | 12 | |
13 | 13 | class StateOptions |
14 | 14 | { |
15 | - /** |
|
16 | - * the action being performed on the current step |
|
17 | - * |
|
18 | - * @var string |
|
19 | - */ |
|
20 | - public $action = ''; |
|
15 | + /** |
|
16 | + * the action being performed on the current step |
|
17 | + * |
|
18 | + * @var string |
|
19 | + */ |
|
20 | + public $action = ''; |
|
21 | 21 | |
22 | - /** |
|
23 | - * @var EEM_State |
|
24 | - */ |
|
25 | - public $state_model; |
|
22 | + /** |
|
23 | + * @var EEM_State |
|
24 | + */ |
|
25 | + public $state_model; |
|
26 | 26 | |
27 | - /** |
|
28 | - * @var [][] |
|
29 | - */ |
|
30 | - private $state_options = []; |
|
27 | + /** |
|
28 | + * @var [][] |
|
29 | + */ |
|
30 | + private $state_options = []; |
|
31 | 31 | |
32 | 32 | |
33 | - /** |
|
34 | - * CountryOptions constructor. |
|
35 | - * |
|
36 | - * @param string $action |
|
37 | - * @param EEM_State $state_model |
|
38 | - */ |
|
39 | - public function __construct(string $action, EEM_State $state_model) |
|
40 | - { |
|
41 | - $this->action = $action; |
|
42 | - $this->state_model = $state_model; |
|
43 | - add_filter( |
|
44 | - 'FHEE__EE_Question__generate_form_input__state_options', |
|
45 | - [$this, 'forLegacyFormInput'], |
|
46 | - 10, |
|
47 | - 4 |
|
48 | - ); |
|
49 | - } |
|
33 | + /** |
|
34 | + * CountryOptions constructor. |
|
35 | + * |
|
36 | + * @param string $action |
|
37 | + * @param EEM_State $state_model |
|
38 | + */ |
|
39 | + public function __construct(string $action, EEM_State $state_model) |
|
40 | + { |
|
41 | + $this->action = $action; |
|
42 | + $this->state_model = $state_model; |
|
43 | + add_filter( |
|
44 | + 'FHEE__EE_Question__generate_form_input__state_options', |
|
45 | + [$this, 'forLegacyFormInput'], |
|
46 | + 10, |
|
47 | + 4 |
|
48 | + ); |
|
49 | + } |
|
50 | 50 | |
51 | 51 | |
52 | - /** |
|
53 | - * Gets the list of states for the form input |
|
54 | - * |
|
55 | - * @param array|null $states_list deprecated prop from an old hook |
|
56 | - * @param EE_Question|null $question |
|
57 | - * @param EE_Registration|null $registration |
|
58 | - * @param EE_Answer|null $answer |
|
59 | - * @return array 2d keys are state IDs, values are their names |
|
60 | - * @throws EE_Error |
|
61 | - * @throws ReflectionException |
|
62 | - */ |
|
63 | - public function forLegacyFormInput( |
|
64 | - array $states_list = null, |
|
65 | - EE_Question $question = null, |
|
66 | - EE_Registration $registration = null, |
|
67 | - EE_Answer $answer = null |
|
68 | - ): array { |
|
69 | - if (! isset($this->state_options[ $this->action ])) { |
|
70 | - $this->generateLegacyStateOptions($question, $registration, $answer); |
|
71 | - } |
|
72 | - return $this->state_options[ $this->action ]; |
|
73 | - } |
|
52 | + /** |
|
53 | + * Gets the list of states for the form input |
|
54 | + * |
|
55 | + * @param array|null $states_list deprecated prop from an old hook |
|
56 | + * @param EE_Question|null $question |
|
57 | + * @param EE_Registration|null $registration |
|
58 | + * @param EE_Answer|null $answer |
|
59 | + * @return array 2d keys are state IDs, values are their names |
|
60 | + * @throws EE_Error |
|
61 | + * @throws ReflectionException |
|
62 | + */ |
|
63 | + public function forLegacyFormInput( |
|
64 | + array $states_list = null, |
|
65 | + EE_Question $question = null, |
|
66 | + EE_Registration $registration = null, |
|
67 | + EE_Answer $answer = null |
|
68 | + ): array { |
|
69 | + if (! isset($this->state_options[ $this->action ])) { |
|
70 | + $this->generateLegacyStateOptions($question, $registration, $answer); |
|
71 | + } |
|
72 | + return $this->state_options[ $this->action ]; |
|
73 | + } |
|
74 | 74 | |
75 | 75 | |
76 | - /** |
|
77 | - * @param EE_Question|null $question |
|
78 | - * @param EE_Registration|null $registration |
|
79 | - * @param EE_Answer|null $answer |
|
80 | - * @throws EE_Error |
|
81 | - * @throws ReflectionException |
|
82 | - */ |
|
83 | - private function generateLegacyStateOptions( |
|
84 | - EE_Question $question = null, |
|
85 | - EE_Registration $registration = null, |
|
86 | - EE_Answer $answer = null |
|
87 | - ) { |
|
88 | - $state_options = ['' => ['' => '']]; |
|
89 | - $states = $this->action === 'process_reg_step' |
|
90 | - ? $this->state_model->get_all_states() |
|
91 | - : $this->state_model->get_all_active_states(); |
|
92 | - if (! empty($states)) { |
|
93 | - foreach ($states as $state) { |
|
94 | - if ($state instanceof EE_State) { |
|
95 | - $state_options[ $state->country()->name() ][ $state->ID() ] = $state->name(); |
|
96 | - } |
|
97 | - } |
|
98 | - } |
|
99 | - $this->state_options[ $this->action ] = apply_filters( |
|
100 | - 'FHEE__EE_SPCO_Reg_Step_Attendee_Information___generate_question_input__state_options', |
|
101 | - $state_options, |
|
102 | - $this, |
|
103 | - $registration, |
|
104 | - $question, |
|
105 | - $answer |
|
106 | - ); |
|
107 | - } |
|
76 | + /** |
|
77 | + * @param EE_Question|null $question |
|
78 | + * @param EE_Registration|null $registration |
|
79 | + * @param EE_Answer|null $answer |
|
80 | + * @throws EE_Error |
|
81 | + * @throws ReflectionException |
|
82 | + */ |
|
83 | + private function generateLegacyStateOptions( |
|
84 | + EE_Question $question = null, |
|
85 | + EE_Registration $registration = null, |
|
86 | + EE_Answer $answer = null |
|
87 | + ) { |
|
88 | + $state_options = ['' => ['' => '']]; |
|
89 | + $states = $this->action === 'process_reg_step' |
|
90 | + ? $this->state_model->get_all_states() |
|
91 | + : $this->state_model->get_all_active_states(); |
|
92 | + if (! empty($states)) { |
|
93 | + foreach ($states as $state) { |
|
94 | + if ($state instanceof EE_State) { |
|
95 | + $state_options[ $state->country()->name() ][ $state->ID() ] = $state->name(); |
|
96 | + } |
|
97 | + } |
|
98 | + } |
|
99 | + $this->state_options[ $this->action ] = apply_filters( |
|
100 | + 'FHEE__EE_SPCO_Reg_Step_Attendee_Information___generate_question_input__state_options', |
|
101 | + $state_options, |
|
102 | + $this, |
|
103 | + $registration, |
|
104 | + $question, |
|
105 | + $answer |
|
106 | + ); |
|
107 | + } |
|
108 | 108 | } |
@@ -66,10 +66,10 @@ discard block |
||
66 | 66 | EE_Registration $registration = null, |
67 | 67 | EE_Answer $answer = null |
68 | 68 | ): array { |
69 | - if (! isset($this->state_options[ $this->action ])) { |
|
69 | + if ( ! isset($this->state_options[$this->action])) { |
|
70 | 70 | $this->generateLegacyStateOptions($question, $registration, $answer); |
71 | 71 | } |
72 | - return $this->state_options[ $this->action ]; |
|
72 | + return $this->state_options[$this->action]; |
|
73 | 73 | } |
74 | 74 | |
75 | 75 | |
@@ -89,14 +89,14 @@ discard block |
||
89 | 89 | $states = $this->action === 'process_reg_step' |
90 | 90 | ? $this->state_model->get_all_states() |
91 | 91 | : $this->state_model->get_all_active_states(); |
92 | - if (! empty($states)) { |
|
92 | + if ( ! empty($states)) { |
|
93 | 93 | foreach ($states as $state) { |
94 | 94 | if ($state instanceof EE_State) { |
95 | - $state_options[ $state->country()->name() ][ $state->ID() ] = $state->name(); |
|
95 | + $state_options[$state->country()->name()][$state->ID()] = $state->name(); |
|
96 | 96 | } |
97 | 97 | } |
98 | 98 | } |
99 | - $this->state_options[ $this->action ] = apply_filters( |
|
99 | + $this->state_options[$this->action] = apply_filters( |
|
100 | 100 | 'FHEE__EE_SPCO_Reg_Step_Attendee_Information___generate_question_input__state_options', |
101 | 101 | $state_options, |
102 | 102 | $this, |
@@ -71,71 +71,71 @@ |
||
71 | 71 | class LoaderFactory |
72 | 72 | { |
73 | 73 | |
74 | - /** |
|
75 | - * @var LoaderInterface $loader ; |
|
76 | - */ |
|
77 | - private static $loader; |
|
74 | + /** |
|
75 | + * @var LoaderInterface $loader ; |
|
76 | + */ |
|
77 | + private static $loader; |
|
78 | 78 | |
79 | 79 | |
80 | - /** |
|
81 | - * @param EE_Registry|CoffeeShop $generator provided during very first instantiation in |
|
82 | - * BootstrapDependencyInjectionContainer::buildLoader() |
|
83 | - * otherwise can be left null |
|
84 | - * @param ClassInterfaceCache|null $class_cache also provided during first instantiation |
|
85 | - * @param ObjectIdentifier|null $object_identifier |
|
86 | - * @return LoaderInterface |
|
87 | - * @throws InvalidArgumentException |
|
88 | - * @throws InvalidDataTypeException |
|
89 | - * @throws InvalidInterfaceException |
|
90 | - */ |
|
91 | - public static function getLoader( |
|
92 | - $generator = null, |
|
93 | - ClassInterfaceCache $class_cache = null, |
|
94 | - ObjectIdentifier $object_identifier = null |
|
95 | - ): LoaderInterface { |
|
96 | - if ( |
|
97 | - ! LoaderFactory::$loader instanceof LoaderInterface |
|
98 | - && ($generator instanceof EE_Registry || $generator instanceof CoffeeShop) |
|
99 | - && $class_cache instanceof ClassInterfaceCache |
|
100 | - && $object_identifier instanceof ObjectIdentifier |
|
101 | - ) { |
|
102 | - $core_loader = new CoreLoader($generator); |
|
103 | - LoaderFactory::$loader = new Loader( |
|
104 | - $core_loader, |
|
105 | - new CachingLoader( |
|
106 | - $core_loader, |
|
107 | - new LooseCollection(''), |
|
108 | - $object_identifier |
|
109 | - ), |
|
110 | - $class_cache |
|
111 | - ); |
|
112 | - } |
|
113 | - return LoaderFactory::$loader; |
|
114 | - } |
|
80 | + /** |
|
81 | + * @param EE_Registry|CoffeeShop $generator provided during very first instantiation in |
|
82 | + * BootstrapDependencyInjectionContainer::buildLoader() |
|
83 | + * otherwise can be left null |
|
84 | + * @param ClassInterfaceCache|null $class_cache also provided during first instantiation |
|
85 | + * @param ObjectIdentifier|null $object_identifier |
|
86 | + * @return LoaderInterface |
|
87 | + * @throws InvalidArgumentException |
|
88 | + * @throws InvalidDataTypeException |
|
89 | + * @throws InvalidInterfaceException |
|
90 | + */ |
|
91 | + public static function getLoader( |
|
92 | + $generator = null, |
|
93 | + ClassInterfaceCache $class_cache = null, |
|
94 | + ObjectIdentifier $object_identifier = null |
|
95 | + ): LoaderInterface { |
|
96 | + if ( |
|
97 | + ! LoaderFactory::$loader instanceof LoaderInterface |
|
98 | + && ($generator instanceof EE_Registry || $generator instanceof CoffeeShop) |
|
99 | + && $class_cache instanceof ClassInterfaceCache |
|
100 | + && $object_identifier instanceof ObjectIdentifier |
|
101 | + ) { |
|
102 | + $core_loader = new CoreLoader($generator); |
|
103 | + LoaderFactory::$loader = new Loader( |
|
104 | + $core_loader, |
|
105 | + new CachingLoader( |
|
106 | + $core_loader, |
|
107 | + new LooseCollection(''), |
|
108 | + $object_identifier |
|
109 | + ), |
|
110 | + $class_cache |
|
111 | + ); |
|
112 | + } |
|
113 | + return LoaderFactory::$loader; |
|
114 | + } |
|
115 | 115 | |
116 | 116 | |
117 | - /** |
|
118 | - * Used for instantiating a new instance of a class |
|
119 | - * |
|
120 | - * @param FullyQualifiedName|string $fqcn |
|
121 | - * @param array $arguments |
|
122 | - * @return mixed |
|
123 | - */ |
|
124 | - public static function getNew($fqcn, array $arguments = []) |
|
125 | - { |
|
126 | - return LoaderFactory::getLoader()->getNew($fqcn, $arguments); |
|
127 | - } |
|
117 | + /** |
|
118 | + * Used for instantiating a new instance of a class |
|
119 | + * |
|
120 | + * @param FullyQualifiedName|string $fqcn |
|
121 | + * @param array $arguments |
|
122 | + * @return mixed |
|
123 | + */ |
|
124 | + public static function getNew($fqcn, array $arguments = []) |
|
125 | + { |
|
126 | + return LoaderFactory::getLoader()->getNew($fqcn, $arguments); |
|
127 | + } |
|
128 | 128 | |
129 | 129 | |
130 | - /** |
|
131 | - * Used for getting a shared instance of a class |
|
132 | - * |
|
133 | - * @param FullyQualifiedName|string $fqcn |
|
134 | - * @param array $arguments |
|
135 | - * @return mixed |
|
136 | - */ |
|
137 | - public static function getShared($fqcn, array $arguments = []) |
|
138 | - { |
|
139 | - return LoaderFactory::getLoader()->getShared($fqcn, $arguments); |
|
140 | - } |
|
130 | + /** |
|
131 | + * Used for getting a shared instance of a class |
|
132 | + * |
|
133 | + * @param FullyQualifiedName|string $fqcn |
|
134 | + * @param array $arguments |
|
135 | + * @return mixed |
|
136 | + */ |
|
137 | + public static function getShared($fqcn, array $arguments = []) |
|
138 | + { |
|
139 | + return LoaderFactory::getLoader()->getShared($fqcn, $arguments); |
|
140 | + } |
|
141 | 141 | } |
@@ -22,932 +22,932 @@ |
||
22 | 22 | class EE_SPCO_Reg_Step_Attendee_Information extends EE_SPCO_Reg_Step |
23 | 23 | { |
24 | 24 | |
25 | - /** |
|
26 | - * @var bool |
|
27 | - */ |
|
28 | - private $_print_copy_info = false; |
|
29 | - |
|
30 | - /** |
|
31 | - * @var array |
|
32 | - */ |
|
33 | - private $_attendee_data = array(); |
|
34 | - |
|
35 | - /** |
|
36 | - * @var array |
|
37 | - */ |
|
38 | - private $_required_questions = array(); |
|
39 | - |
|
40 | - /** |
|
41 | - * @var array |
|
42 | - */ |
|
43 | - private $_registration_answers = array(); |
|
44 | - |
|
45 | - /** |
|
46 | - * @var int |
|
47 | - */ |
|
48 | - protected $reg_form_count = 0; |
|
49 | - |
|
50 | - /** |
|
51 | - * class constructor |
|
52 | - * |
|
53 | - * @access public |
|
54 | - * @param EE_Checkout $checkout |
|
55 | - */ |
|
56 | - public function __construct(EE_Checkout $checkout) |
|
57 | - { |
|
58 | - $this->_slug = 'attendee_information'; |
|
59 | - $this->_name = esc_html__('Attendee Information', 'event_espresso'); |
|
60 | - $this->checkout = $checkout; |
|
61 | - $this->_reset_success_message(); |
|
62 | - $this->set_instructions( |
|
63 | - esc_html__('Please answer the following registration questions before proceeding.', 'event_espresso') |
|
64 | - ); |
|
65 | - } |
|
66 | - |
|
67 | - |
|
68 | - public function translate_js_strings() |
|
69 | - { |
|
70 | - EE_Registry::$i18n_js_strings['required_field'] = esc_html__( |
|
71 | - ' is a required question.', |
|
72 | - 'event_espresso' |
|
73 | - ); |
|
74 | - EE_Registry::$i18n_js_strings['required_multi_field'] = esc_html__( |
|
75 | - ' is a required question. Please enter a value for at least one of the options.', |
|
76 | - 'event_espresso' |
|
77 | - ); |
|
78 | - EE_Registry::$i18n_js_strings['answer_required_questions'] = esc_html__( |
|
79 | - 'Please answer all required questions correctly before proceeding.', |
|
80 | - 'event_espresso' |
|
81 | - ); |
|
82 | - EE_Registry::$i18n_js_strings['attendee_info_copied'] = sprintf( |
|
83 | - esc_html_x( |
|
84 | - 'The attendee information was successfully copied.%sPlease ensure the rest of the registration form is completed before proceeding.', |
|
85 | - 'The attendee information was successfully copied.(line break)Please ensure the rest of the registration form is completed before proceeding.', |
|
86 | - 'event_espresso' |
|
87 | - ), |
|
88 | - '<br/>' |
|
89 | - ); |
|
90 | - EE_Registry::$i18n_js_strings['attendee_info_copy_error'] = esc_html__( |
|
91 | - 'An unknown error occurred on the server while attempting to copy the attendee information. Please refresh the page and try again.', |
|
92 | - 'event_espresso' |
|
93 | - ); |
|
94 | - EE_Registry::$i18n_js_strings['enter_valid_email'] = esc_html__( |
|
95 | - 'You must enter a valid email address.', |
|
96 | - 'event_espresso' |
|
97 | - ); |
|
98 | - EE_Registry::$i18n_js_strings['valid_email_and_questions'] = esc_html__( |
|
99 | - 'You must enter a valid email address and answer all other required questions before you can proceed.', |
|
100 | - 'event_espresso' |
|
101 | - ); |
|
102 | - } |
|
103 | - |
|
104 | - |
|
105 | - public function enqueue_styles_and_scripts() |
|
106 | - { |
|
107 | - } |
|
108 | - |
|
109 | - |
|
110 | - /** |
|
111 | - * @return boolean |
|
112 | - */ |
|
113 | - public function initialize_reg_step(): bool |
|
114 | - { |
|
115 | - return true; |
|
116 | - } |
|
117 | - |
|
118 | - |
|
119 | - /** |
|
120 | - * @return RegForm |
|
121 | - * @throws DomainException |
|
122 | - * @throws InvalidArgumentException |
|
123 | - * @throws EntityNotFoundException |
|
124 | - * @throws InvalidDataTypeException |
|
125 | - * @throws InvalidInterfaceException |
|
126 | - */ |
|
127 | - public function generate_reg_form(): RegForm |
|
128 | - { |
|
129 | - // TODO detect if event has a reg form UUID and swap this out for new reg form builder generated form |
|
130 | - return LoaderFactory::getShared(RegForm::class, [$this]); |
|
131 | - } |
|
132 | - |
|
133 | - |
|
134 | - /** |
|
135 | - * looking for hooks? |
|
136 | - * this method has been replaced by: |
|
137 | - * EventEspresso\core\domain\services\registration\form\v1\RegForm::getRegForm() |
|
138 | - * |
|
139 | - * @deprecated $VID:$ |
|
140 | - */ |
|
141 | - private function _registrations_reg_form() |
|
142 | - { |
|
143 | - } |
|
144 | - |
|
145 | - |
|
146 | - /** |
|
147 | - * looking for hooks? |
|
148 | - * this method has been replaced by: |
|
149 | - * EventEspresso\core\domain\services\registration\form\v1\RegForm::additionalAttendeeRegInfoInput() |
|
150 | - * |
|
151 | - * @deprecated $VID:$ |
|
152 | - */ |
|
153 | - private function _additional_attendee_reg_info_input() { |
|
154 | - } |
|
155 | - |
|
156 | - |
|
157 | - /** |
|
158 | - * looking for hooks? |
|
159 | - * this method has been replaced by: |
|
160 | - * EventEspresso\core\domain\services\registration\form\v1\RegForm::questionGroupRegForm() |
|
161 | - * |
|
162 | - * @deprecated $VID:$ |
|
163 | - */ |
|
164 | - private function _question_group_reg_form() |
|
165 | - { |
|
166 | - } |
|
167 | - |
|
168 | - |
|
169 | - /** |
|
170 | - * looking for hooks? |
|
171 | - * this method has been replaced by: |
|
172 | - * EventEspresso\core\domain\services\registration\form\v1\RegForm::questionGroupHeader() |
|
173 | - * |
|
174 | - * @deprecated $VID:$ |
|
175 | - */ |
|
176 | - private function _question_group_header() |
|
177 | - { |
|
178 | - } |
|
179 | - |
|
180 | - |
|
181 | - /** |
|
182 | - * looking for hooks? |
|
183 | - * this method has been replaced by: |
|
184 | - * EventEspresso\core\domain\services\registration\form\v1\CopyAttendeeInfoForm |
|
185 | - * |
|
186 | - * @deprecated $VID:$ |
|
187 | - */ |
|
188 | - private function _copy_attendee_info_form() |
|
189 | - { |
|
190 | - } |
|
191 | - |
|
192 | - |
|
193 | - /** |
|
194 | - * looking for hooks? |
|
195 | - * this method has been replaced by: |
|
196 | - * EventEspresso\core\domain\services\registration\form\v1\AutoCopyAttendeeInfoForm |
|
197 | - * |
|
198 | - * @deprecated $VID:$ |
|
199 | - */ |
|
200 | - private function _auto_copy_attendee_info() |
|
201 | - { |
|
202 | - } |
|
203 | - |
|
204 | - |
|
205 | - /** |
|
206 | - * looking for hooks? |
|
207 | - * this method has been replaced by: |
|
208 | - * EventEspresso\core\domain\services\registration\form\v1\CopyAttendeeInfoForm |
|
209 | - * |
|
210 | - * @deprecated $VID:$ |
|
211 | - */ |
|
212 | - private function _copy_attendee_info_inputs() |
|
213 | - { |
|
214 | - } |
|
215 | - |
|
216 | - |
|
217 | - /** |
|
218 | - * looking for hooks? |
|
219 | - * this method has been replaced by: |
|
220 | - * EventEspresso\core\domain\services\registration\form\v1\RegForm::additionalPrimaryRegistrantInputs() |
|
221 | - * |
|
222 | - * @deprecated $VID:$ |
|
223 | - */ |
|
224 | - private function _additional_primary_registrant_inputs() |
|
225 | - { |
|
226 | - } |
|
227 | - |
|
228 | - |
|
229 | - /** |
|
230 | - * looking for hooks? |
|
231 | - * this method has been replaced by: |
|
232 | - * EventEspresso\core\domain\services\registration\form\v1\RegFormQuestionFactory::create() |
|
233 | - * |
|
234 | - * @param EE_Registration $registration |
|
235 | - * @param EE_Question $question |
|
236 | - * @return EE_Form_Input_Base |
|
237 | - * @throws EE_Error |
|
238 | - * @throws ReflectionException |
|
239 | - * @deprecated $VID:$ |
|
240 | - */ |
|
241 | - public function reg_form_question(EE_Registration $registration, EE_Question $question): EE_Form_Input_Base |
|
242 | - { |
|
243 | - /** @var RegFormQuestionFactory $reg_form_question_factory */ |
|
244 | - $reg_form_question_factory = LoaderFactory::getShared(RegFormQuestionFactory::class); |
|
245 | - return $reg_form_question_factory->create($registration, $question); |
|
246 | - } |
|
247 | - |
|
248 | - |
|
249 | - /** |
|
250 | - * looking for hooks? |
|
251 | - * this method has been replaced by: |
|
252 | - * EventEspresso\core\domain\services\registration\form\v1\RegForm::generateQuestionInput() |
|
253 | - * |
|
254 | - * @deprecated $VID:$ |
|
255 | - */ |
|
256 | - private function _generate_question_input() |
|
257 | - { |
|
258 | - } |
|
259 | - |
|
260 | - |
|
261 | - /** |
|
262 | - * looking for hooks? |
|
263 | - * this method has been replaced by: |
|
264 | - * EventEspresso\core\domain\services\registration\form\v1\CountryOptions::forLegacyFormInput() |
|
265 | - * |
|
266 | - * @param array|null $countries_list |
|
267 | - * @param EE_Question|null $question |
|
268 | - * @param EE_Registration|null $registration |
|
269 | - * @param EE_Answer|null $answer |
|
270 | - * @return array 2d keys are country IDs, values are their names |
|
271 | - * @throws EE_Error |
|
272 | - * @throws ReflectionException |
|
273 | - * @deprecated $VID:$ |
|
274 | - */ |
|
275 | - public function use_cached_countries_for_form_input( |
|
276 | - array $countries_list = null, |
|
277 | - EE_Question $question = null, |
|
278 | - EE_Registration $registration = null, |
|
279 | - EE_Answer $answer = null |
|
280 | - ): array { |
|
281 | - /** @var CountryOptions $country_options */ |
|
282 | - $country_options = LoaderFactory::getShared(CountryOptions::class, [$this->checkout->action]); |
|
283 | - return $country_options->forLegacyFormInput($countries_list, $question, $registration, $answer); |
|
284 | - } |
|
285 | - |
|
286 | - |
|
287 | - /** |
|
288 | - * looking for hooks? |
|
289 | - * this method has been replaced by: |
|
290 | - * EventEspresso\core\domain\services\registration\form\v1\StateOptions::forLegacyFormInput() |
|
291 | - * |
|
292 | - * @param array|null $states_list |
|
293 | - * @param EE_Question|null $question |
|
294 | - * @param EE_Registration|null $registration |
|
295 | - * @param EE_Answer|null $answer |
|
296 | - * @return array 2d keys are state IDs, values are their names |
|
297 | - * @throws EE_Error |
|
298 | - * @throws ReflectionException |
|
299 | - * @deprecated $VID:$ |
|
300 | - */ |
|
301 | - public function use_cached_states_for_form_input( |
|
302 | - array $states_list = null, |
|
303 | - EE_Question $question = null, |
|
304 | - EE_Registration $registration = null, |
|
305 | - EE_Answer $answer = null |
|
306 | - ): array { |
|
307 | - /** @var StateOptions $state_options */ |
|
308 | - $state_options = LoaderFactory::getShared(StateOptions::class, [$this->checkout->action]); |
|
309 | - return $state_options->forLegacyFormInput($states_list, $question, $registration, $answer); |
|
310 | - } |
|
311 | - |
|
312 | - |
|
313 | - /********************************************************************************************************/ |
|
314 | - /**************************************** PROCESS REG STEP ****************************************/ |
|
315 | - /********************************************************************************************************/ |
|
316 | - |
|
317 | - |
|
318 | - /** |
|
319 | - * @return bool |
|
320 | - * @throws EE_Error |
|
321 | - * @throws InvalidArgumentException |
|
322 | - * @throws ReflectionException |
|
323 | - * @throws RuntimeException |
|
324 | - * @throws InvalidDataTypeException |
|
325 | - * @throws InvalidInterfaceException |
|
326 | - */ |
|
327 | - public function process_reg_step() |
|
328 | - { |
|
329 | - do_action('AHEE_log', __FILE__, __FUNCTION__, ''); |
|
330 | - // grab validated data from form |
|
331 | - $valid_data = $this->checkout->current_step->valid_data(); |
|
332 | - // EEH_Debug_Tools::printr( $_REQUEST, '$_REQUEST', __FILE__, __LINE__ ); |
|
333 | - // EEH_Debug_Tools::printr( $valid_data, '$valid_data', __FILE__, __LINE__ ); |
|
334 | - // if we don't have any $valid_data then something went TERRIBLY WRONG !!! |
|
335 | - if (empty($valid_data)) { |
|
336 | - EE_Error::add_error( |
|
337 | - esc_html__('No valid question responses were received.', 'event_espresso'), |
|
338 | - __FILE__, |
|
339 | - __FUNCTION__, |
|
340 | - __LINE__ |
|
341 | - ); |
|
342 | - return false; |
|
343 | - } |
|
344 | - if (! $this->checkout->transaction instanceof EE_Transaction || ! $this->checkout->continue_reg) { |
|
345 | - EE_Error::add_error( |
|
346 | - esc_html__( |
|
347 | - 'A valid transaction could not be initiated for processing your registrations.', |
|
348 | - 'event_espresso' |
|
349 | - ), |
|
350 | - __FILE__, |
|
351 | - __FUNCTION__, |
|
352 | - __LINE__ |
|
353 | - ); |
|
354 | - return false; |
|
355 | - } |
|
356 | - // get cached registrations |
|
357 | - $registrations = $this->checkout->transaction->registrations($this->checkout->reg_cache_where_params); |
|
358 | - // verify we got the goods |
|
359 | - if (empty($registrations)) { |
|
360 | - // combine the old translated string with a new one, in order to not break translations |
|
361 | - $error_message = esc_html__( |
|
362 | - 'Your form data could not be applied to any valid registrations.', |
|
363 | - 'event_espresso' |
|
364 | - ) |
|
365 | - . sprintf( |
|
366 | - esc_html_x( |
|
367 | - '%3$sThis can sometimes happen if too much time has been taken to complete the registration process.%3$sPlease return to the %1$sEvent List%2$s and reselect your tickets. If the problem continues, please contact the site administrator.', |
|
368 | - '(line break)This can sometimes happen if too much time has been taken to complete the registration process.(line break)Please return to the (link)Event List(end link) and reselect your tickets. If the problem continues, please contact the site administrator.', |
|
369 | - 'event_espresso' |
|
370 | - ), |
|
371 | - '<a href="' . get_post_type_archive_link('espresso_events') . '" >', |
|
372 | - '</a>', |
|
373 | - '<br />' |
|
374 | - ); |
|
375 | - EE_Error::add_error( |
|
376 | - $error_message, |
|
377 | - __FILE__, |
|
378 | - __FUNCTION__, |
|
379 | - __LINE__ |
|
380 | - ); |
|
381 | - return false; |
|
382 | - } |
|
383 | - // extract attendee info from form data and save to model objects |
|
384 | - $registrations_processed = $this->_process_registrations($registrations, $valid_data); |
|
385 | - // if first pass thru SPCO, |
|
386 | - // then let's check processed registrations against the total number of tickets in the cart |
|
387 | - if ($registrations_processed === false) { |
|
388 | - // but return immediately if the previous step exited early due to errors |
|
389 | - return false; |
|
390 | - } |
|
391 | - if (! $this->checkout->revisit && $registrations_processed !== $this->checkout->total_ticket_count) { |
|
392 | - // generate a correctly translated string for all possible singular/plural combinations |
|
393 | - if ($this->checkout->total_ticket_count === 1 && $registrations_processed !== 1) { |
|
394 | - $error_msg = sprintf( |
|
395 | - esc_html_x( |
|
396 | - 'There was %1$d ticket in the Event Queue, but %2$ds registrations were processed', |
|
397 | - 'There was 1 ticket in the Event Queue, but 2 registrations were processed', |
|
398 | - 'event_espresso' |
|
399 | - ), |
|
400 | - $this->checkout->total_ticket_count, |
|
401 | - $registrations_processed |
|
402 | - ); |
|
403 | - } elseif ($this->checkout->total_ticket_count !== 1 && $registrations_processed === 1) { |
|
404 | - $error_msg = sprintf( |
|
405 | - esc_html_x( |
|
406 | - 'There was a total of %1$d tickets in the Event Queue, but only %2$ds registration was processed', |
|
407 | - 'There was a total of 2 tickets in the Event Queue, but only 1 registration was processed', |
|
408 | - 'event_espresso' |
|
409 | - ), |
|
410 | - $this->checkout->total_ticket_count, |
|
411 | - $registrations_processed |
|
412 | - ); |
|
413 | - } else { |
|
414 | - $error_msg = sprintf( |
|
415 | - esc_html__( |
|
416 | - 'There was a total of 2 tickets in the Event Queue, but 2 registrations were processed', |
|
417 | - 'event_espresso' |
|
418 | - ), |
|
419 | - $this->checkout->total_ticket_count, |
|
420 | - $registrations_processed |
|
421 | - ); |
|
422 | - } |
|
423 | - EE_Error::add_error($error_msg, __FILE__, __FUNCTION__, __LINE__); |
|
424 | - return false; |
|
425 | - } |
|
426 | - // mark this reg step as completed |
|
427 | - $this->set_completed(); |
|
428 | - $this->_set_success_message( |
|
429 | - esc_html__('The Attendee Information Step has been successfully completed.', 'event_espresso') |
|
430 | - ); |
|
431 | - // do action in case a plugin wants to do something with the data submitted in step 1. |
|
432 | - // passes EE_Single_Page_Checkout, and it's posted data |
|
433 | - do_action('AHEE__EE_Single_Page_Checkout__process_attendee_information__end', $this, $valid_data); |
|
434 | - return true; |
|
435 | - } |
|
436 | - |
|
437 | - |
|
438 | - /** |
|
439 | - * _process_registrations |
|
440 | - * |
|
441 | - * @param EE_Registration[] $registrations |
|
442 | - * @param array[][] $valid_data |
|
443 | - * @return bool|int |
|
444 | - * @throws EntityNotFoundException |
|
445 | - * @throws EE_Error |
|
446 | - * @throws InvalidArgumentException |
|
447 | - * @throws ReflectionException |
|
448 | - * @throws RuntimeException |
|
449 | - * @throws InvalidDataTypeException |
|
450 | - * @throws InvalidInterfaceException |
|
451 | - */ |
|
452 | - private function _process_registrations($registrations = array(), $valid_data = array()) |
|
453 | - { |
|
454 | - // load resources and set some defaults |
|
455 | - EE_Registry::instance()->load_model('Attendee'); |
|
456 | - // holder for primary registrant attendee object |
|
457 | - $this->checkout->primary_attendee_obj = null; |
|
458 | - // array for tracking reg form data for the primary registrant |
|
459 | - $primary_registrant = array( |
|
460 | - 'line_item_id' => null, |
|
461 | - ); |
|
462 | - $copy_primary = false; |
|
463 | - // reg form sections that do not contain inputs |
|
464 | - $non_input_form_sections = array( |
|
465 | - 'primary_registrant', |
|
466 | - 'additional_attendee_reg_info', |
|
467 | - 'spco_copy_attendee_chk', |
|
468 | - ); |
|
469 | - // attendee counter |
|
470 | - $att_nmbr = 0; |
|
471 | - // grab the saved registrations from the transaction |
|
472 | - foreach ($registrations as $registration) { |
|
473 | - // verify EE_Registration object |
|
474 | - if (! $registration instanceof EE_Registration) { |
|
475 | - EE_Error::add_error( |
|
476 | - esc_html__( |
|
477 | - 'An invalid Registration object was discovered when attempting to process your registration information.', |
|
478 | - 'event_espresso' |
|
479 | - ), |
|
480 | - __FILE__, |
|
481 | - __FUNCTION__, |
|
482 | - __LINE__ |
|
483 | - ); |
|
484 | - return false; |
|
485 | - } |
|
486 | - /** @var string $reg_url_link */ |
|
487 | - $reg_url_link = $registration->reg_url_link(); |
|
488 | - // reg_url_link exists ? |
|
489 | - if (! empty($reg_url_link)) { |
|
490 | - // should this registration be processed during this visit ? |
|
491 | - if ($this->checkout->visit_allows_processing_of_this_registration($registration)) { |
|
492 | - // if NOT revisiting, then let's save the registration now, |
|
493 | - // so that we have a REG_ID to use when generating other objects |
|
494 | - if (! $this->checkout->revisit) { |
|
495 | - $registration->save(); |
|
496 | - } |
|
497 | - /** |
|
498 | - * This allows plugins to trigger a fail on processing of a |
|
499 | - * registration for any conditions they may have for it to pass. |
|
500 | - * |
|
501 | - * @var bool if true is returned by the plugin then the |
|
502 | - * registration processing is halted. |
|
503 | - */ |
|
504 | - if ( |
|
505 | - apply_filters( |
|
506 | - 'FHEE__EE_SPCO_Reg_Step_Attendee_Information___process_registrations__pre_registration_process', |
|
507 | - false, |
|
508 | - $att_nmbr, |
|
509 | - $registration, |
|
510 | - $registrations, |
|
511 | - $valid_data, |
|
512 | - $this |
|
513 | - ) |
|
514 | - ) { |
|
515 | - return false; |
|
516 | - } |
|
517 | - |
|
518 | - // Houston, we have a registration! |
|
519 | - $att_nmbr++; |
|
520 | - $this->_attendee_data[ $reg_url_link ] = array(); |
|
521 | - // grab any existing related answer objects |
|
522 | - $this->_registration_answers = $registration->answers(); |
|
523 | - // unset( $valid_data[ $reg_url_link ]['additional_attendee_reg_info'] ); |
|
524 | - if (isset($valid_data[ $reg_url_link ])) { |
|
525 | - // do we need to copy basic info from primary attendee ? |
|
526 | - $copy_primary = isset($valid_data[ $reg_url_link ]['additional_attendee_reg_info']) |
|
527 | - && absint($valid_data[ $reg_url_link ]['additional_attendee_reg_info']) === 0; |
|
528 | - // filter form input data for this registration |
|
529 | - $valid_data[ $reg_url_link ] = (array) apply_filters( |
|
530 | - 'FHEE__EE_Single_Page_Checkout__process_attendee_information__valid_data_line_item', |
|
531 | - $valid_data[ $reg_url_link ] |
|
532 | - ); |
|
533 | - if (isset($valid_data['primary_attendee'])) { |
|
534 | - $primary_registrant['line_item_id'] = ! empty($valid_data['primary_attendee']) |
|
535 | - ? $valid_data['primary_attendee'] |
|
536 | - : false; |
|
537 | - unset($valid_data['primary_attendee']); |
|
538 | - } |
|
539 | - // now loop through our array of valid post data && process attendee reg forms |
|
540 | - foreach ($valid_data[ $reg_url_link ] as $form_section => $form_inputs) { |
|
541 | - if (! in_array($form_section, $non_input_form_sections, true)) { |
|
542 | - foreach ($form_inputs as $form_input => $input_value) { |
|
543 | - // \EEH_Debug_Tools::printr( $input_value, $form_input, __FILE__, __LINE__ ); |
|
544 | - // check for critical inputs |
|
545 | - if ( |
|
546 | - ! $this->_verify_critical_attendee_details_are_set_and_validate_email( |
|
547 | - $form_input, |
|
548 | - $input_value |
|
549 | - ) |
|
550 | - ) { |
|
551 | - return false; |
|
552 | - } |
|
553 | - // store a bit of data about the primary attendee |
|
554 | - if ( |
|
555 | - $att_nmbr === 1 |
|
556 | - && ! empty($input_value) |
|
557 | - && $reg_url_link === $primary_registrant['line_item_id'] |
|
558 | - ) { |
|
559 | - $primary_registrant[ $form_input ] = $input_value; |
|
560 | - } elseif ( |
|
561 | - $copy_primary |
|
562 | - && $input_value === null |
|
563 | - && isset($primary_registrant[ $form_input ]) |
|
564 | - ) { |
|
565 | - $input_value = $primary_registrant[ $form_input ]; |
|
566 | - } |
|
567 | - // now attempt to save the input data |
|
568 | - if ( |
|
569 | - ! $this->_save_registration_form_input( |
|
570 | - $registration, |
|
571 | - $form_input, |
|
572 | - $input_value |
|
573 | - ) |
|
574 | - ) { |
|
575 | - EE_Error::add_error( |
|
576 | - sprintf( |
|
577 | - esc_html_x( |
|
578 | - 'Unable to save registration form data for the form input: "%1$s" with the submitted value: "%2$s"', |
|
579 | - 'Unable to save registration form data for the form input: "form input name" with the submitted value: "form input value"', |
|
580 | - 'event_espresso' |
|
581 | - ), |
|
582 | - $form_input, |
|
583 | - $input_value |
|
584 | - ), |
|
585 | - __FILE__, |
|
586 | - __FUNCTION__, |
|
587 | - __LINE__ |
|
588 | - ); |
|
589 | - return false; |
|
590 | - } |
|
591 | - } |
|
592 | - } |
|
593 | - } // end of foreach ( $valid_data[ $reg_url_link ] as $form_section => $form_inputs ) |
|
594 | - } |
|
595 | - // EEH_Debug_Tools::printr( $this->_attendee_data, '$this->_attendee_data', __FILE__, __LINE__ ); |
|
596 | - // this registration does not require additional attendee information ? |
|
597 | - if ( |
|
598 | - $copy_primary |
|
599 | - && $att_nmbr > 1 |
|
600 | - && $this->checkout->primary_attendee_obj instanceof EE_Attendee |
|
601 | - ) { |
|
602 | - // just copy the primary registrant |
|
603 | - $attendee = $this->checkout->primary_attendee_obj; |
|
604 | - } else { |
|
605 | - // ensure critical details are set for additional attendees |
|
606 | - $this->_attendee_data[ $reg_url_link ] = $att_nmbr > 1 |
|
607 | - ? $this->_copy_critical_attendee_details_from_primary_registrant( |
|
608 | - $this->_attendee_data[ $reg_url_link ] |
|
609 | - ) |
|
610 | - : $this->_attendee_data[ $reg_url_link ]; |
|
611 | - // execute create attendee command (which may return an existing attendee) |
|
612 | - $attendee = EE_Registry::instance()->BUS->execute( |
|
613 | - new CreateAttendeeCommand( |
|
614 | - $this->_attendee_data[ $reg_url_link ], |
|
615 | - $registration |
|
616 | - ) |
|
617 | - ); |
|
618 | - // who's #1 ? |
|
619 | - if ($att_nmbr === 1) { |
|
620 | - $this->checkout->primary_attendee_obj = $attendee; |
|
621 | - } |
|
622 | - } |
|
623 | - // EEH_Debug_Tools::printr( $attendee, '$attendee', __FILE__, __LINE__ ); |
|
624 | - // add relation to registration, set attendee ID, and cache attendee |
|
625 | - $this->_associate_attendee_with_registration($registration, $attendee); |
|
626 | - // \EEH_Debug_Tools::printr( $registration, '$registration', __FILE__, __LINE__ ); |
|
627 | - if (! $registration->attendee() instanceof EE_Attendee) { |
|
628 | - EE_Error::add_error( |
|
629 | - sprintf( |
|
630 | - esc_html_x( |
|
631 | - 'Registration %s has an invalid or missing Attendee object.', |
|
632 | - 'Registration 123-456-789 has an invalid or missing Attendee object.', |
|
633 | - 'event_espresso' |
|
634 | - ), |
|
635 | - $reg_url_link |
|
636 | - ), |
|
637 | - __FILE__, |
|
638 | - __FUNCTION__, |
|
639 | - __LINE__ |
|
640 | - ); |
|
641 | - return false; |
|
642 | - } |
|
643 | - /** @type EE_Registration_Processor $registration_processor */ |
|
644 | - $registration_processor = EE_Registry::instance()->load_class('Registration_Processor'); |
|
645 | - // at this point, we should have enough details about the registrant to consider the registration |
|
646 | - // NOT incomplete |
|
647 | - $registration_processor->toggle_incomplete_registration_status_to_default( |
|
648 | - $registration, |
|
649 | - false, |
|
650 | - new Context( |
|
651 | - 'spco_reg_step_attendee_information_process_registrations', |
|
652 | - esc_html__( |
|
653 | - 'Finished populating registration with details from the registration form after submitting the Attendee Information Reg Step.', |
|
654 | - 'event_espresso' |
|
655 | - ) |
|
656 | - ) |
|
657 | - ); |
|
658 | - // we can also consider the TXN to not have been failed, so temporarily upgrade it's status to |
|
659 | - // abandoned |
|
660 | - $this->checkout->transaction->toggle_failed_transaction_status(); |
|
661 | - // if we've gotten this far, then let's save what we have |
|
662 | - $registration->save(); |
|
663 | - // add relation between TXN and registration |
|
664 | - $this->_associate_registration_with_transaction($registration); |
|
665 | - } |
|
666 | - } else { |
|
667 | - EE_Error::add_error( |
|
668 | - esc_html__( |
|
669 | - 'An invalid or missing line item ID was encountered while attempting to process the registration form.', |
|
670 | - 'event_espresso' |
|
671 | - ), |
|
672 | - __FILE__, |
|
673 | - __FUNCTION__, |
|
674 | - __LINE__ |
|
675 | - ); |
|
676 | - // remove malformed data |
|
677 | - unset($valid_data[ $reg_url_link ]); |
|
678 | - return false; |
|
679 | - } |
|
680 | - } // end of foreach ( $this->checkout->transaction->registrations() as $registration ) |
|
681 | - return $att_nmbr; |
|
682 | - } |
|
683 | - |
|
684 | - |
|
685 | - /** |
|
686 | - * _save_registration_form_input |
|
687 | - * |
|
688 | - * @param EE_Registration $registration |
|
689 | - * @param string $form_input |
|
690 | - * @param string $input_value |
|
691 | - * @return bool |
|
692 | - * @throws EE_Error |
|
693 | - * @throws InvalidArgumentException |
|
694 | - * @throws InvalidDataTypeException |
|
695 | - * @throws InvalidInterfaceException |
|
696 | - * @throws ReflectionException |
|
697 | - */ |
|
698 | - private function _save_registration_form_input( |
|
699 | - EE_Registration $registration, |
|
700 | - $form_input = '', |
|
701 | - $input_value = '' |
|
702 | - ) { |
|
703 | - // If email_confirm is sent it's not saved |
|
704 | - if ((string) $form_input === 'email_confirm') { |
|
705 | - return true; |
|
706 | - } |
|
707 | - |
|
708 | - // \EEH_Debug_Tools::printr( __FUNCTION__, __CLASS__, __FILE__, __LINE__, 2 ); |
|
709 | - // \EEH_Debug_Tools::printr( $form_input, '$form_input', __FILE__, __LINE__ ); |
|
710 | - // \EEH_Debug_Tools::printr( $input_value, '$input_value', __FILE__, __LINE__ ); |
|
711 | - // allow for plugins to hook in and do their own processing of the form input. |
|
712 | - // For plugins to bypass normal processing here, they just need to return a boolean value. |
|
713 | - if ( |
|
714 | - apply_filters( |
|
715 | - 'FHEE__EE_SPCO_Reg_Step_Attendee_Information___save_registration_form_input', |
|
716 | - false, |
|
717 | - $registration, |
|
718 | - $form_input, |
|
719 | - $input_value, |
|
720 | - $this |
|
721 | - ) |
|
722 | - ) { |
|
723 | - return true; |
|
724 | - } |
|
725 | - /* |
|
25 | + /** |
|
26 | + * @var bool |
|
27 | + */ |
|
28 | + private $_print_copy_info = false; |
|
29 | + |
|
30 | + /** |
|
31 | + * @var array |
|
32 | + */ |
|
33 | + private $_attendee_data = array(); |
|
34 | + |
|
35 | + /** |
|
36 | + * @var array |
|
37 | + */ |
|
38 | + private $_required_questions = array(); |
|
39 | + |
|
40 | + /** |
|
41 | + * @var array |
|
42 | + */ |
|
43 | + private $_registration_answers = array(); |
|
44 | + |
|
45 | + /** |
|
46 | + * @var int |
|
47 | + */ |
|
48 | + protected $reg_form_count = 0; |
|
49 | + |
|
50 | + /** |
|
51 | + * class constructor |
|
52 | + * |
|
53 | + * @access public |
|
54 | + * @param EE_Checkout $checkout |
|
55 | + */ |
|
56 | + public function __construct(EE_Checkout $checkout) |
|
57 | + { |
|
58 | + $this->_slug = 'attendee_information'; |
|
59 | + $this->_name = esc_html__('Attendee Information', 'event_espresso'); |
|
60 | + $this->checkout = $checkout; |
|
61 | + $this->_reset_success_message(); |
|
62 | + $this->set_instructions( |
|
63 | + esc_html__('Please answer the following registration questions before proceeding.', 'event_espresso') |
|
64 | + ); |
|
65 | + } |
|
66 | + |
|
67 | + |
|
68 | + public function translate_js_strings() |
|
69 | + { |
|
70 | + EE_Registry::$i18n_js_strings['required_field'] = esc_html__( |
|
71 | + ' is a required question.', |
|
72 | + 'event_espresso' |
|
73 | + ); |
|
74 | + EE_Registry::$i18n_js_strings['required_multi_field'] = esc_html__( |
|
75 | + ' is a required question. Please enter a value for at least one of the options.', |
|
76 | + 'event_espresso' |
|
77 | + ); |
|
78 | + EE_Registry::$i18n_js_strings['answer_required_questions'] = esc_html__( |
|
79 | + 'Please answer all required questions correctly before proceeding.', |
|
80 | + 'event_espresso' |
|
81 | + ); |
|
82 | + EE_Registry::$i18n_js_strings['attendee_info_copied'] = sprintf( |
|
83 | + esc_html_x( |
|
84 | + 'The attendee information was successfully copied.%sPlease ensure the rest of the registration form is completed before proceeding.', |
|
85 | + 'The attendee information was successfully copied.(line break)Please ensure the rest of the registration form is completed before proceeding.', |
|
86 | + 'event_espresso' |
|
87 | + ), |
|
88 | + '<br/>' |
|
89 | + ); |
|
90 | + EE_Registry::$i18n_js_strings['attendee_info_copy_error'] = esc_html__( |
|
91 | + 'An unknown error occurred on the server while attempting to copy the attendee information. Please refresh the page and try again.', |
|
92 | + 'event_espresso' |
|
93 | + ); |
|
94 | + EE_Registry::$i18n_js_strings['enter_valid_email'] = esc_html__( |
|
95 | + 'You must enter a valid email address.', |
|
96 | + 'event_espresso' |
|
97 | + ); |
|
98 | + EE_Registry::$i18n_js_strings['valid_email_and_questions'] = esc_html__( |
|
99 | + 'You must enter a valid email address and answer all other required questions before you can proceed.', |
|
100 | + 'event_espresso' |
|
101 | + ); |
|
102 | + } |
|
103 | + |
|
104 | + |
|
105 | + public function enqueue_styles_and_scripts() |
|
106 | + { |
|
107 | + } |
|
108 | + |
|
109 | + |
|
110 | + /** |
|
111 | + * @return boolean |
|
112 | + */ |
|
113 | + public function initialize_reg_step(): bool |
|
114 | + { |
|
115 | + return true; |
|
116 | + } |
|
117 | + |
|
118 | + |
|
119 | + /** |
|
120 | + * @return RegForm |
|
121 | + * @throws DomainException |
|
122 | + * @throws InvalidArgumentException |
|
123 | + * @throws EntityNotFoundException |
|
124 | + * @throws InvalidDataTypeException |
|
125 | + * @throws InvalidInterfaceException |
|
126 | + */ |
|
127 | + public function generate_reg_form(): RegForm |
|
128 | + { |
|
129 | + // TODO detect if event has a reg form UUID and swap this out for new reg form builder generated form |
|
130 | + return LoaderFactory::getShared(RegForm::class, [$this]); |
|
131 | + } |
|
132 | + |
|
133 | + |
|
134 | + /** |
|
135 | + * looking for hooks? |
|
136 | + * this method has been replaced by: |
|
137 | + * EventEspresso\core\domain\services\registration\form\v1\RegForm::getRegForm() |
|
138 | + * |
|
139 | + * @deprecated $VID:$ |
|
140 | + */ |
|
141 | + private function _registrations_reg_form() |
|
142 | + { |
|
143 | + } |
|
144 | + |
|
145 | + |
|
146 | + /** |
|
147 | + * looking for hooks? |
|
148 | + * this method has been replaced by: |
|
149 | + * EventEspresso\core\domain\services\registration\form\v1\RegForm::additionalAttendeeRegInfoInput() |
|
150 | + * |
|
151 | + * @deprecated $VID:$ |
|
152 | + */ |
|
153 | + private function _additional_attendee_reg_info_input() { |
|
154 | + } |
|
155 | + |
|
156 | + |
|
157 | + /** |
|
158 | + * looking for hooks? |
|
159 | + * this method has been replaced by: |
|
160 | + * EventEspresso\core\domain\services\registration\form\v1\RegForm::questionGroupRegForm() |
|
161 | + * |
|
162 | + * @deprecated $VID:$ |
|
163 | + */ |
|
164 | + private function _question_group_reg_form() |
|
165 | + { |
|
166 | + } |
|
167 | + |
|
168 | + |
|
169 | + /** |
|
170 | + * looking for hooks? |
|
171 | + * this method has been replaced by: |
|
172 | + * EventEspresso\core\domain\services\registration\form\v1\RegForm::questionGroupHeader() |
|
173 | + * |
|
174 | + * @deprecated $VID:$ |
|
175 | + */ |
|
176 | + private function _question_group_header() |
|
177 | + { |
|
178 | + } |
|
179 | + |
|
180 | + |
|
181 | + /** |
|
182 | + * looking for hooks? |
|
183 | + * this method has been replaced by: |
|
184 | + * EventEspresso\core\domain\services\registration\form\v1\CopyAttendeeInfoForm |
|
185 | + * |
|
186 | + * @deprecated $VID:$ |
|
187 | + */ |
|
188 | + private function _copy_attendee_info_form() |
|
189 | + { |
|
190 | + } |
|
191 | + |
|
192 | + |
|
193 | + /** |
|
194 | + * looking for hooks? |
|
195 | + * this method has been replaced by: |
|
196 | + * EventEspresso\core\domain\services\registration\form\v1\AutoCopyAttendeeInfoForm |
|
197 | + * |
|
198 | + * @deprecated $VID:$ |
|
199 | + */ |
|
200 | + private function _auto_copy_attendee_info() |
|
201 | + { |
|
202 | + } |
|
203 | + |
|
204 | + |
|
205 | + /** |
|
206 | + * looking for hooks? |
|
207 | + * this method has been replaced by: |
|
208 | + * EventEspresso\core\domain\services\registration\form\v1\CopyAttendeeInfoForm |
|
209 | + * |
|
210 | + * @deprecated $VID:$ |
|
211 | + */ |
|
212 | + private function _copy_attendee_info_inputs() |
|
213 | + { |
|
214 | + } |
|
215 | + |
|
216 | + |
|
217 | + /** |
|
218 | + * looking for hooks? |
|
219 | + * this method has been replaced by: |
|
220 | + * EventEspresso\core\domain\services\registration\form\v1\RegForm::additionalPrimaryRegistrantInputs() |
|
221 | + * |
|
222 | + * @deprecated $VID:$ |
|
223 | + */ |
|
224 | + private function _additional_primary_registrant_inputs() |
|
225 | + { |
|
226 | + } |
|
227 | + |
|
228 | + |
|
229 | + /** |
|
230 | + * looking for hooks? |
|
231 | + * this method has been replaced by: |
|
232 | + * EventEspresso\core\domain\services\registration\form\v1\RegFormQuestionFactory::create() |
|
233 | + * |
|
234 | + * @param EE_Registration $registration |
|
235 | + * @param EE_Question $question |
|
236 | + * @return EE_Form_Input_Base |
|
237 | + * @throws EE_Error |
|
238 | + * @throws ReflectionException |
|
239 | + * @deprecated $VID:$ |
|
240 | + */ |
|
241 | + public function reg_form_question(EE_Registration $registration, EE_Question $question): EE_Form_Input_Base |
|
242 | + { |
|
243 | + /** @var RegFormQuestionFactory $reg_form_question_factory */ |
|
244 | + $reg_form_question_factory = LoaderFactory::getShared(RegFormQuestionFactory::class); |
|
245 | + return $reg_form_question_factory->create($registration, $question); |
|
246 | + } |
|
247 | + |
|
248 | + |
|
249 | + /** |
|
250 | + * looking for hooks? |
|
251 | + * this method has been replaced by: |
|
252 | + * EventEspresso\core\domain\services\registration\form\v1\RegForm::generateQuestionInput() |
|
253 | + * |
|
254 | + * @deprecated $VID:$ |
|
255 | + */ |
|
256 | + private function _generate_question_input() |
|
257 | + { |
|
258 | + } |
|
259 | + |
|
260 | + |
|
261 | + /** |
|
262 | + * looking for hooks? |
|
263 | + * this method has been replaced by: |
|
264 | + * EventEspresso\core\domain\services\registration\form\v1\CountryOptions::forLegacyFormInput() |
|
265 | + * |
|
266 | + * @param array|null $countries_list |
|
267 | + * @param EE_Question|null $question |
|
268 | + * @param EE_Registration|null $registration |
|
269 | + * @param EE_Answer|null $answer |
|
270 | + * @return array 2d keys are country IDs, values are their names |
|
271 | + * @throws EE_Error |
|
272 | + * @throws ReflectionException |
|
273 | + * @deprecated $VID:$ |
|
274 | + */ |
|
275 | + public function use_cached_countries_for_form_input( |
|
276 | + array $countries_list = null, |
|
277 | + EE_Question $question = null, |
|
278 | + EE_Registration $registration = null, |
|
279 | + EE_Answer $answer = null |
|
280 | + ): array { |
|
281 | + /** @var CountryOptions $country_options */ |
|
282 | + $country_options = LoaderFactory::getShared(CountryOptions::class, [$this->checkout->action]); |
|
283 | + return $country_options->forLegacyFormInput($countries_list, $question, $registration, $answer); |
|
284 | + } |
|
285 | + |
|
286 | + |
|
287 | + /** |
|
288 | + * looking for hooks? |
|
289 | + * this method has been replaced by: |
|
290 | + * EventEspresso\core\domain\services\registration\form\v1\StateOptions::forLegacyFormInput() |
|
291 | + * |
|
292 | + * @param array|null $states_list |
|
293 | + * @param EE_Question|null $question |
|
294 | + * @param EE_Registration|null $registration |
|
295 | + * @param EE_Answer|null $answer |
|
296 | + * @return array 2d keys are state IDs, values are their names |
|
297 | + * @throws EE_Error |
|
298 | + * @throws ReflectionException |
|
299 | + * @deprecated $VID:$ |
|
300 | + */ |
|
301 | + public function use_cached_states_for_form_input( |
|
302 | + array $states_list = null, |
|
303 | + EE_Question $question = null, |
|
304 | + EE_Registration $registration = null, |
|
305 | + EE_Answer $answer = null |
|
306 | + ): array { |
|
307 | + /** @var StateOptions $state_options */ |
|
308 | + $state_options = LoaderFactory::getShared(StateOptions::class, [$this->checkout->action]); |
|
309 | + return $state_options->forLegacyFormInput($states_list, $question, $registration, $answer); |
|
310 | + } |
|
311 | + |
|
312 | + |
|
313 | + /********************************************************************************************************/ |
|
314 | + /**************************************** PROCESS REG STEP ****************************************/ |
|
315 | + /********************************************************************************************************/ |
|
316 | + |
|
317 | + |
|
318 | + /** |
|
319 | + * @return bool |
|
320 | + * @throws EE_Error |
|
321 | + * @throws InvalidArgumentException |
|
322 | + * @throws ReflectionException |
|
323 | + * @throws RuntimeException |
|
324 | + * @throws InvalidDataTypeException |
|
325 | + * @throws InvalidInterfaceException |
|
326 | + */ |
|
327 | + public function process_reg_step() |
|
328 | + { |
|
329 | + do_action('AHEE_log', __FILE__, __FUNCTION__, ''); |
|
330 | + // grab validated data from form |
|
331 | + $valid_data = $this->checkout->current_step->valid_data(); |
|
332 | + // EEH_Debug_Tools::printr( $_REQUEST, '$_REQUEST', __FILE__, __LINE__ ); |
|
333 | + // EEH_Debug_Tools::printr( $valid_data, '$valid_data', __FILE__, __LINE__ ); |
|
334 | + // if we don't have any $valid_data then something went TERRIBLY WRONG !!! |
|
335 | + if (empty($valid_data)) { |
|
336 | + EE_Error::add_error( |
|
337 | + esc_html__('No valid question responses were received.', 'event_espresso'), |
|
338 | + __FILE__, |
|
339 | + __FUNCTION__, |
|
340 | + __LINE__ |
|
341 | + ); |
|
342 | + return false; |
|
343 | + } |
|
344 | + if (! $this->checkout->transaction instanceof EE_Transaction || ! $this->checkout->continue_reg) { |
|
345 | + EE_Error::add_error( |
|
346 | + esc_html__( |
|
347 | + 'A valid transaction could not be initiated for processing your registrations.', |
|
348 | + 'event_espresso' |
|
349 | + ), |
|
350 | + __FILE__, |
|
351 | + __FUNCTION__, |
|
352 | + __LINE__ |
|
353 | + ); |
|
354 | + return false; |
|
355 | + } |
|
356 | + // get cached registrations |
|
357 | + $registrations = $this->checkout->transaction->registrations($this->checkout->reg_cache_where_params); |
|
358 | + // verify we got the goods |
|
359 | + if (empty($registrations)) { |
|
360 | + // combine the old translated string with a new one, in order to not break translations |
|
361 | + $error_message = esc_html__( |
|
362 | + 'Your form data could not be applied to any valid registrations.', |
|
363 | + 'event_espresso' |
|
364 | + ) |
|
365 | + . sprintf( |
|
366 | + esc_html_x( |
|
367 | + '%3$sThis can sometimes happen if too much time has been taken to complete the registration process.%3$sPlease return to the %1$sEvent List%2$s and reselect your tickets. If the problem continues, please contact the site administrator.', |
|
368 | + '(line break)This can sometimes happen if too much time has been taken to complete the registration process.(line break)Please return to the (link)Event List(end link) and reselect your tickets. If the problem continues, please contact the site administrator.', |
|
369 | + 'event_espresso' |
|
370 | + ), |
|
371 | + '<a href="' . get_post_type_archive_link('espresso_events') . '" >', |
|
372 | + '</a>', |
|
373 | + '<br />' |
|
374 | + ); |
|
375 | + EE_Error::add_error( |
|
376 | + $error_message, |
|
377 | + __FILE__, |
|
378 | + __FUNCTION__, |
|
379 | + __LINE__ |
|
380 | + ); |
|
381 | + return false; |
|
382 | + } |
|
383 | + // extract attendee info from form data and save to model objects |
|
384 | + $registrations_processed = $this->_process_registrations($registrations, $valid_data); |
|
385 | + // if first pass thru SPCO, |
|
386 | + // then let's check processed registrations against the total number of tickets in the cart |
|
387 | + if ($registrations_processed === false) { |
|
388 | + // but return immediately if the previous step exited early due to errors |
|
389 | + return false; |
|
390 | + } |
|
391 | + if (! $this->checkout->revisit && $registrations_processed !== $this->checkout->total_ticket_count) { |
|
392 | + // generate a correctly translated string for all possible singular/plural combinations |
|
393 | + if ($this->checkout->total_ticket_count === 1 && $registrations_processed !== 1) { |
|
394 | + $error_msg = sprintf( |
|
395 | + esc_html_x( |
|
396 | + 'There was %1$d ticket in the Event Queue, but %2$ds registrations were processed', |
|
397 | + 'There was 1 ticket in the Event Queue, but 2 registrations were processed', |
|
398 | + 'event_espresso' |
|
399 | + ), |
|
400 | + $this->checkout->total_ticket_count, |
|
401 | + $registrations_processed |
|
402 | + ); |
|
403 | + } elseif ($this->checkout->total_ticket_count !== 1 && $registrations_processed === 1) { |
|
404 | + $error_msg = sprintf( |
|
405 | + esc_html_x( |
|
406 | + 'There was a total of %1$d tickets in the Event Queue, but only %2$ds registration was processed', |
|
407 | + 'There was a total of 2 tickets in the Event Queue, but only 1 registration was processed', |
|
408 | + 'event_espresso' |
|
409 | + ), |
|
410 | + $this->checkout->total_ticket_count, |
|
411 | + $registrations_processed |
|
412 | + ); |
|
413 | + } else { |
|
414 | + $error_msg = sprintf( |
|
415 | + esc_html__( |
|
416 | + 'There was a total of 2 tickets in the Event Queue, but 2 registrations were processed', |
|
417 | + 'event_espresso' |
|
418 | + ), |
|
419 | + $this->checkout->total_ticket_count, |
|
420 | + $registrations_processed |
|
421 | + ); |
|
422 | + } |
|
423 | + EE_Error::add_error($error_msg, __FILE__, __FUNCTION__, __LINE__); |
|
424 | + return false; |
|
425 | + } |
|
426 | + // mark this reg step as completed |
|
427 | + $this->set_completed(); |
|
428 | + $this->_set_success_message( |
|
429 | + esc_html__('The Attendee Information Step has been successfully completed.', 'event_espresso') |
|
430 | + ); |
|
431 | + // do action in case a plugin wants to do something with the data submitted in step 1. |
|
432 | + // passes EE_Single_Page_Checkout, and it's posted data |
|
433 | + do_action('AHEE__EE_Single_Page_Checkout__process_attendee_information__end', $this, $valid_data); |
|
434 | + return true; |
|
435 | + } |
|
436 | + |
|
437 | + |
|
438 | + /** |
|
439 | + * _process_registrations |
|
440 | + * |
|
441 | + * @param EE_Registration[] $registrations |
|
442 | + * @param array[][] $valid_data |
|
443 | + * @return bool|int |
|
444 | + * @throws EntityNotFoundException |
|
445 | + * @throws EE_Error |
|
446 | + * @throws InvalidArgumentException |
|
447 | + * @throws ReflectionException |
|
448 | + * @throws RuntimeException |
|
449 | + * @throws InvalidDataTypeException |
|
450 | + * @throws InvalidInterfaceException |
|
451 | + */ |
|
452 | + private function _process_registrations($registrations = array(), $valid_data = array()) |
|
453 | + { |
|
454 | + // load resources and set some defaults |
|
455 | + EE_Registry::instance()->load_model('Attendee'); |
|
456 | + // holder for primary registrant attendee object |
|
457 | + $this->checkout->primary_attendee_obj = null; |
|
458 | + // array for tracking reg form data for the primary registrant |
|
459 | + $primary_registrant = array( |
|
460 | + 'line_item_id' => null, |
|
461 | + ); |
|
462 | + $copy_primary = false; |
|
463 | + // reg form sections that do not contain inputs |
|
464 | + $non_input_form_sections = array( |
|
465 | + 'primary_registrant', |
|
466 | + 'additional_attendee_reg_info', |
|
467 | + 'spco_copy_attendee_chk', |
|
468 | + ); |
|
469 | + // attendee counter |
|
470 | + $att_nmbr = 0; |
|
471 | + // grab the saved registrations from the transaction |
|
472 | + foreach ($registrations as $registration) { |
|
473 | + // verify EE_Registration object |
|
474 | + if (! $registration instanceof EE_Registration) { |
|
475 | + EE_Error::add_error( |
|
476 | + esc_html__( |
|
477 | + 'An invalid Registration object was discovered when attempting to process your registration information.', |
|
478 | + 'event_espresso' |
|
479 | + ), |
|
480 | + __FILE__, |
|
481 | + __FUNCTION__, |
|
482 | + __LINE__ |
|
483 | + ); |
|
484 | + return false; |
|
485 | + } |
|
486 | + /** @var string $reg_url_link */ |
|
487 | + $reg_url_link = $registration->reg_url_link(); |
|
488 | + // reg_url_link exists ? |
|
489 | + if (! empty($reg_url_link)) { |
|
490 | + // should this registration be processed during this visit ? |
|
491 | + if ($this->checkout->visit_allows_processing_of_this_registration($registration)) { |
|
492 | + // if NOT revisiting, then let's save the registration now, |
|
493 | + // so that we have a REG_ID to use when generating other objects |
|
494 | + if (! $this->checkout->revisit) { |
|
495 | + $registration->save(); |
|
496 | + } |
|
497 | + /** |
|
498 | + * This allows plugins to trigger a fail on processing of a |
|
499 | + * registration for any conditions they may have for it to pass. |
|
500 | + * |
|
501 | + * @var bool if true is returned by the plugin then the |
|
502 | + * registration processing is halted. |
|
503 | + */ |
|
504 | + if ( |
|
505 | + apply_filters( |
|
506 | + 'FHEE__EE_SPCO_Reg_Step_Attendee_Information___process_registrations__pre_registration_process', |
|
507 | + false, |
|
508 | + $att_nmbr, |
|
509 | + $registration, |
|
510 | + $registrations, |
|
511 | + $valid_data, |
|
512 | + $this |
|
513 | + ) |
|
514 | + ) { |
|
515 | + return false; |
|
516 | + } |
|
517 | + |
|
518 | + // Houston, we have a registration! |
|
519 | + $att_nmbr++; |
|
520 | + $this->_attendee_data[ $reg_url_link ] = array(); |
|
521 | + // grab any existing related answer objects |
|
522 | + $this->_registration_answers = $registration->answers(); |
|
523 | + // unset( $valid_data[ $reg_url_link ]['additional_attendee_reg_info'] ); |
|
524 | + if (isset($valid_data[ $reg_url_link ])) { |
|
525 | + // do we need to copy basic info from primary attendee ? |
|
526 | + $copy_primary = isset($valid_data[ $reg_url_link ]['additional_attendee_reg_info']) |
|
527 | + && absint($valid_data[ $reg_url_link ]['additional_attendee_reg_info']) === 0; |
|
528 | + // filter form input data for this registration |
|
529 | + $valid_data[ $reg_url_link ] = (array) apply_filters( |
|
530 | + 'FHEE__EE_Single_Page_Checkout__process_attendee_information__valid_data_line_item', |
|
531 | + $valid_data[ $reg_url_link ] |
|
532 | + ); |
|
533 | + if (isset($valid_data['primary_attendee'])) { |
|
534 | + $primary_registrant['line_item_id'] = ! empty($valid_data['primary_attendee']) |
|
535 | + ? $valid_data['primary_attendee'] |
|
536 | + : false; |
|
537 | + unset($valid_data['primary_attendee']); |
|
538 | + } |
|
539 | + // now loop through our array of valid post data && process attendee reg forms |
|
540 | + foreach ($valid_data[ $reg_url_link ] as $form_section => $form_inputs) { |
|
541 | + if (! in_array($form_section, $non_input_form_sections, true)) { |
|
542 | + foreach ($form_inputs as $form_input => $input_value) { |
|
543 | + // \EEH_Debug_Tools::printr( $input_value, $form_input, __FILE__, __LINE__ ); |
|
544 | + // check for critical inputs |
|
545 | + if ( |
|
546 | + ! $this->_verify_critical_attendee_details_are_set_and_validate_email( |
|
547 | + $form_input, |
|
548 | + $input_value |
|
549 | + ) |
|
550 | + ) { |
|
551 | + return false; |
|
552 | + } |
|
553 | + // store a bit of data about the primary attendee |
|
554 | + if ( |
|
555 | + $att_nmbr === 1 |
|
556 | + && ! empty($input_value) |
|
557 | + && $reg_url_link === $primary_registrant['line_item_id'] |
|
558 | + ) { |
|
559 | + $primary_registrant[ $form_input ] = $input_value; |
|
560 | + } elseif ( |
|
561 | + $copy_primary |
|
562 | + && $input_value === null |
|
563 | + && isset($primary_registrant[ $form_input ]) |
|
564 | + ) { |
|
565 | + $input_value = $primary_registrant[ $form_input ]; |
|
566 | + } |
|
567 | + // now attempt to save the input data |
|
568 | + if ( |
|
569 | + ! $this->_save_registration_form_input( |
|
570 | + $registration, |
|
571 | + $form_input, |
|
572 | + $input_value |
|
573 | + ) |
|
574 | + ) { |
|
575 | + EE_Error::add_error( |
|
576 | + sprintf( |
|
577 | + esc_html_x( |
|
578 | + 'Unable to save registration form data for the form input: "%1$s" with the submitted value: "%2$s"', |
|
579 | + 'Unable to save registration form data for the form input: "form input name" with the submitted value: "form input value"', |
|
580 | + 'event_espresso' |
|
581 | + ), |
|
582 | + $form_input, |
|
583 | + $input_value |
|
584 | + ), |
|
585 | + __FILE__, |
|
586 | + __FUNCTION__, |
|
587 | + __LINE__ |
|
588 | + ); |
|
589 | + return false; |
|
590 | + } |
|
591 | + } |
|
592 | + } |
|
593 | + } // end of foreach ( $valid_data[ $reg_url_link ] as $form_section => $form_inputs ) |
|
594 | + } |
|
595 | + // EEH_Debug_Tools::printr( $this->_attendee_data, '$this->_attendee_data', __FILE__, __LINE__ ); |
|
596 | + // this registration does not require additional attendee information ? |
|
597 | + if ( |
|
598 | + $copy_primary |
|
599 | + && $att_nmbr > 1 |
|
600 | + && $this->checkout->primary_attendee_obj instanceof EE_Attendee |
|
601 | + ) { |
|
602 | + // just copy the primary registrant |
|
603 | + $attendee = $this->checkout->primary_attendee_obj; |
|
604 | + } else { |
|
605 | + // ensure critical details are set for additional attendees |
|
606 | + $this->_attendee_data[ $reg_url_link ] = $att_nmbr > 1 |
|
607 | + ? $this->_copy_critical_attendee_details_from_primary_registrant( |
|
608 | + $this->_attendee_data[ $reg_url_link ] |
|
609 | + ) |
|
610 | + : $this->_attendee_data[ $reg_url_link ]; |
|
611 | + // execute create attendee command (which may return an existing attendee) |
|
612 | + $attendee = EE_Registry::instance()->BUS->execute( |
|
613 | + new CreateAttendeeCommand( |
|
614 | + $this->_attendee_data[ $reg_url_link ], |
|
615 | + $registration |
|
616 | + ) |
|
617 | + ); |
|
618 | + // who's #1 ? |
|
619 | + if ($att_nmbr === 1) { |
|
620 | + $this->checkout->primary_attendee_obj = $attendee; |
|
621 | + } |
|
622 | + } |
|
623 | + // EEH_Debug_Tools::printr( $attendee, '$attendee', __FILE__, __LINE__ ); |
|
624 | + // add relation to registration, set attendee ID, and cache attendee |
|
625 | + $this->_associate_attendee_with_registration($registration, $attendee); |
|
626 | + // \EEH_Debug_Tools::printr( $registration, '$registration', __FILE__, __LINE__ ); |
|
627 | + if (! $registration->attendee() instanceof EE_Attendee) { |
|
628 | + EE_Error::add_error( |
|
629 | + sprintf( |
|
630 | + esc_html_x( |
|
631 | + 'Registration %s has an invalid or missing Attendee object.', |
|
632 | + 'Registration 123-456-789 has an invalid or missing Attendee object.', |
|
633 | + 'event_espresso' |
|
634 | + ), |
|
635 | + $reg_url_link |
|
636 | + ), |
|
637 | + __FILE__, |
|
638 | + __FUNCTION__, |
|
639 | + __LINE__ |
|
640 | + ); |
|
641 | + return false; |
|
642 | + } |
|
643 | + /** @type EE_Registration_Processor $registration_processor */ |
|
644 | + $registration_processor = EE_Registry::instance()->load_class('Registration_Processor'); |
|
645 | + // at this point, we should have enough details about the registrant to consider the registration |
|
646 | + // NOT incomplete |
|
647 | + $registration_processor->toggle_incomplete_registration_status_to_default( |
|
648 | + $registration, |
|
649 | + false, |
|
650 | + new Context( |
|
651 | + 'spco_reg_step_attendee_information_process_registrations', |
|
652 | + esc_html__( |
|
653 | + 'Finished populating registration with details from the registration form after submitting the Attendee Information Reg Step.', |
|
654 | + 'event_espresso' |
|
655 | + ) |
|
656 | + ) |
|
657 | + ); |
|
658 | + // we can also consider the TXN to not have been failed, so temporarily upgrade it's status to |
|
659 | + // abandoned |
|
660 | + $this->checkout->transaction->toggle_failed_transaction_status(); |
|
661 | + // if we've gotten this far, then let's save what we have |
|
662 | + $registration->save(); |
|
663 | + // add relation between TXN and registration |
|
664 | + $this->_associate_registration_with_transaction($registration); |
|
665 | + } |
|
666 | + } else { |
|
667 | + EE_Error::add_error( |
|
668 | + esc_html__( |
|
669 | + 'An invalid or missing line item ID was encountered while attempting to process the registration form.', |
|
670 | + 'event_espresso' |
|
671 | + ), |
|
672 | + __FILE__, |
|
673 | + __FUNCTION__, |
|
674 | + __LINE__ |
|
675 | + ); |
|
676 | + // remove malformed data |
|
677 | + unset($valid_data[ $reg_url_link ]); |
|
678 | + return false; |
|
679 | + } |
|
680 | + } // end of foreach ( $this->checkout->transaction->registrations() as $registration ) |
|
681 | + return $att_nmbr; |
|
682 | + } |
|
683 | + |
|
684 | + |
|
685 | + /** |
|
686 | + * _save_registration_form_input |
|
687 | + * |
|
688 | + * @param EE_Registration $registration |
|
689 | + * @param string $form_input |
|
690 | + * @param string $input_value |
|
691 | + * @return bool |
|
692 | + * @throws EE_Error |
|
693 | + * @throws InvalidArgumentException |
|
694 | + * @throws InvalidDataTypeException |
|
695 | + * @throws InvalidInterfaceException |
|
696 | + * @throws ReflectionException |
|
697 | + */ |
|
698 | + private function _save_registration_form_input( |
|
699 | + EE_Registration $registration, |
|
700 | + $form_input = '', |
|
701 | + $input_value = '' |
|
702 | + ) { |
|
703 | + // If email_confirm is sent it's not saved |
|
704 | + if ((string) $form_input === 'email_confirm') { |
|
705 | + return true; |
|
706 | + } |
|
707 | + |
|
708 | + // \EEH_Debug_Tools::printr( __FUNCTION__, __CLASS__, __FILE__, __LINE__, 2 ); |
|
709 | + // \EEH_Debug_Tools::printr( $form_input, '$form_input', __FILE__, __LINE__ ); |
|
710 | + // \EEH_Debug_Tools::printr( $input_value, '$input_value', __FILE__, __LINE__ ); |
|
711 | + // allow for plugins to hook in and do their own processing of the form input. |
|
712 | + // For plugins to bypass normal processing here, they just need to return a boolean value. |
|
713 | + if ( |
|
714 | + apply_filters( |
|
715 | + 'FHEE__EE_SPCO_Reg_Step_Attendee_Information___save_registration_form_input', |
|
716 | + false, |
|
717 | + $registration, |
|
718 | + $form_input, |
|
719 | + $input_value, |
|
720 | + $this |
|
721 | + ) |
|
722 | + ) { |
|
723 | + return true; |
|
724 | + } |
|
725 | + /* |
|
726 | 726 | * $answer_cache_id is the key used to find the EE_Answer we want |
727 | 727 | * @see https://events.codebasehq.com/projects/event-espresso/tickets/10477 |
728 | 728 | */ |
729 | - $answer_cache_id = $this->checkout->reg_url_link |
|
730 | - ? $form_input . '-' . $registration->reg_url_link() |
|
731 | - : $form_input; |
|
732 | - $answer_is_obj = isset($this->_registration_answers[ $answer_cache_id ]) |
|
733 | - && $this->_registration_answers[ $answer_cache_id ] instanceof EE_Answer; |
|
734 | - // rename form_inputs if they are EE_Attendee properties |
|
735 | - switch ((string) $form_input) { |
|
736 | - case 'state': |
|
737 | - case 'STA_ID': |
|
738 | - $attendee_property = true; |
|
739 | - $form_input = 'STA_ID'; |
|
740 | - break; |
|
741 | - |
|
742 | - case 'country': |
|
743 | - case 'CNT_ISO': |
|
744 | - $attendee_property = true; |
|
745 | - $form_input = 'CNT_ISO'; |
|
746 | - break; |
|
747 | - |
|
748 | - default: |
|
749 | - $ATT_input = 'ATT_' . $form_input; |
|
750 | - // EEH_Debug_Tools::printr( $ATT_input, '$ATT_input', __FILE__, __LINE__ ); |
|
751 | - $attendee_property = EEM_Attendee::instance()->has_field($ATT_input) ? true : false; |
|
752 | - $form_input = $attendee_property ? 'ATT_' . $form_input : $form_input; |
|
753 | - } |
|
754 | - // EEH_Debug_Tools::printr( $answer_cache_id, '$answer_cache_id', __FILE__, __LINE__ ); |
|
755 | - // EEH_Debug_Tools::printr( $attendee_property, '$attendee_property', __FILE__, __LINE__ ); |
|
756 | - // EEH_Debug_Tools::printr( $answer_is_obj, '$answer_is_obj', __FILE__, __LINE__ ); |
|
757 | - // if this form input has a corresponding attendee property |
|
758 | - if ($attendee_property) { |
|
759 | - $this->_attendee_data[ $registration->reg_url_link() ][ $form_input ] = $input_value; |
|
760 | - if ($answer_is_obj) { |
|
761 | - // and delete the corresponding answer since we won't be storing this data in that object |
|
762 | - $registration->_remove_relation_to($this->_registration_answers[ $answer_cache_id ], 'Answer'); |
|
763 | - $this->_registration_answers[ $answer_cache_id ]->delete_permanently(); |
|
764 | - } |
|
765 | - return true; |
|
766 | - } |
|
767 | - if ($answer_is_obj) { |
|
768 | - // save this data to the answer object |
|
769 | - $this->_registration_answers[ $answer_cache_id ]->set_value($input_value); |
|
770 | - $result = $this->_registration_answers[ $answer_cache_id ]->save(); |
|
771 | - return $result !== false; |
|
772 | - } |
|
773 | - foreach ($this->_registration_answers as $answer) { |
|
774 | - if ($answer instanceof EE_Answer && $answer->question_ID() === $answer_cache_id) { |
|
775 | - $answer->set_value($input_value); |
|
776 | - $result = $answer->save(); |
|
777 | - return $result !== false; |
|
778 | - } |
|
779 | - } |
|
780 | - return false; |
|
781 | - } |
|
782 | - |
|
783 | - |
|
784 | - /** |
|
785 | - * _verify_critical_attendee_details_are_set |
|
786 | - * |
|
787 | - * @param string $form_input |
|
788 | - * @param string $input_value |
|
789 | - * @return boolean |
|
790 | - */ |
|
791 | - private function _verify_critical_attendee_details_are_set_and_validate_email( |
|
792 | - $form_input = '', |
|
793 | - $input_value = '' |
|
794 | - ) { |
|
795 | - if (empty($input_value)) { |
|
796 | - // if the form input isn't marked as being required, then just return |
|
797 | - if (! isset($this->_required_questions[ $form_input ]) || ! $this->_required_questions[ $form_input ]) { |
|
798 | - return true; |
|
799 | - } |
|
800 | - switch ($form_input) { |
|
801 | - case 'fname': |
|
802 | - EE_Error::add_error( |
|
803 | - esc_html__('First Name is a required value.', 'event_espresso'), |
|
804 | - __FILE__, |
|
805 | - __FUNCTION__, |
|
806 | - __LINE__ |
|
807 | - ); |
|
808 | - return false; |
|
809 | - break; |
|
810 | - case 'lname': |
|
811 | - EE_Error::add_error( |
|
812 | - esc_html__('Last Name is a required value.', 'event_espresso'), |
|
813 | - __FILE__, |
|
814 | - __FUNCTION__, |
|
815 | - __LINE__ |
|
816 | - ); |
|
817 | - return false; |
|
818 | - break; |
|
819 | - case 'email': |
|
820 | - EE_Error::add_error( |
|
821 | - esc_html__('Please enter a valid email address.', 'event_espresso'), |
|
822 | - __FILE__, |
|
823 | - __FUNCTION__, |
|
824 | - __LINE__ |
|
825 | - ); |
|
826 | - return false; |
|
827 | - break; |
|
828 | - } |
|
829 | - } |
|
830 | - return true; |
|
831 | - } |
|
832 | - |
|
833 | - |
|
834 | - /** |
|
835 | - * _associate_attendee_with_registration |
|
836 | - * |
|
837 | - * @param EE_Registration $registration |
|
838 | - * @param EE_Attendee $attendee |
|
839 | - * @return void |
|
840 | - * @throws EE_Error |
|
841 | - * @throws InvalidArgumentException |
|
842 | - * @throws ReflectionException |
|
843 | - * @throws RuntimeException |
|
844 | - * @throws InvalidDataTypeException |
|
845 | - * @throws InvalidInterfaceException |
|
846 | - */ |
|
847 | - private function _associate_attendee_with_registration(EE_Registration $registration, EE_Attendee $attendee) |
|
848 | - { |
|
849 | - // add relation to attendee |
|
850 | - $registration->_add_relation_to($attendee, 'Attendee'); |
|
851 | - $registration->set_attendee_id($attendee->ID()); |
|
852 | - $registration->update_cache_after_object_save('Attendee', $attendee); |
|
853 | - } |
|
854 | - |
|
855 | - |
|
856 | - /** |
|
857 | - * _associate_registration_with_transaction |
|
858 | - * |
|
859 | - * @param EE_Registration $registration |
|
860 | - * @return void |
|
861 | - * @throws EE_Error |
|
862 | - * @throws InvalidArgumentException |
|
863 | - * @throws ReflectionException |
|
864 | - * @throws InvalidDataTypeException |
|
865 | - * @throws InvalidInterfaceException |
|
866 | - */ |
|
867 | - private function _associate_registration_with_transaction(EE_Registration $registration) |
|
868 | - { |
|
869 | - // add relation to registration |
|
870 | - $this->checkout->transaction->_add_relation_to($registration, 'Registration'); |
|
871 | - $this->checkout->transaction->update_cache_after_object_save('Registration', $registration); |
|
872 | - } |
|
873 | - |
|
874 | - |
|
875 | - /** |
|
876 | - * _copy_critical_attendee_details_from_primary_registrant |
|
877 | - * ensures that all attendees at least have data for first name, last name, and email address |
|
878 | - * |
|
879 | - * @param array $attendee_data |
|
880 | - * @return array |
|
881 | - * @throws EE_Error |
|
882 | - * @throws InvalidArgumentException |
|
883 | - * @throws ReflectionException |
|
884 | - * @throws InvalidDataTypeException |
|
885 | - * @throws InvalidInterfaceException |
|
886 | - */ |
|
887 | - private function _copy_critical_attendee_details_from_primary_registrant($attendee_data = array()) |
|
888 | - { |
|
889 | - // bare minimum critical details include first name, last name, email address |
|
890 | - $critical_attendee_details = array('ATT_fname', 'ATT_lname', 'ATT_email'); |
|
891 | - // add address info to critical details? |
|
892 | - if ( |
|
893 | - apply_filters( |
|
894 | - 'FHEE__EE_SPCO_Reg_Step_Attendee_Information__merge_address_details_with_critical_attendee_details', |
|
895 | - false |
|
896 | - ) |
|
897 | - ) { |
|
898 | - $address_details = array( |
|
899 | - 'ATT_address', |
|
900 | - 'ATT_address2', |
|
901 | - 'ATT_city', |
|
902 | - 'STA_ID', |
|
903 | - 'CNT_ISO', |
|
904 | - 'ATT_zip', |
|
905 | - 'ATT_phone', |
|
906 | - ); |
|
907 | - $critical_attendee_details = array_merge($critical_attendee_details, $address_details); |
|
908 | - } |
|
909 | - foreach ($critical_attendee_details as $critical_attendee_detail) { |
|
910 | - if ( |
|
911 | - ! isset($attendee_data[ $critical_attendee_detail ]) |
|
912 | - || empty($attendee_data[ $critical_attendee_detail ]) |
|
913 | - ) { |
|
914 | - $attendee_data[ $critical_attendee_detail ] = $this->checkout->primary_attendee_obj->get( |
|
915 | - $critical_attendee_detail |
|
916 | - ); |
|
917 | - } |
|
918 | - } |
|
919 | - return $attendee_data; |
|
920 | - } |
|
921 | - |
|
922 | - |
|
923 | - /** |
|
924 | - * update_reg_step |
|
925 | - * this is the final step after a user revisits the site to edit their attendee information |
|
926 | - * this gets called AFTER the process_reg_step() method above |
|
927 | - * |
|
928 | - * @return bool |
|
929 | - * @throws EE_Error |
|
930 | - * @throws InvalidArgumentException |
|
931 | - * @throws ReflectionException |
|
932 | - * @throws RuntimeException |
|
933 | - * @throws InvalidDataTypeException |
|
934 | - * @throws InvalidInterfaceException |
|
935 | - */ |
|
936 | - public function update_reg_step() |
|
937 | - { |
|
938 | - // save everything |
|
939 | - if ($this->process_reg_step()) { |
|
940 | - $this->checkout->redirect = true; |
|
941 | - $this->checkout->redirect_url = add_query_arg( |
|
942 | - array( |
|
943 | - 'e_reg_url_link' => $this->checkout->reg_url_link, |
|
944 | - 'revisit' => true, |
|
945 | - ), |
|
946 | - $this->checkout->thank_you_page_url |
|
947 | - ); |
|
948 | - $this->checkout->json_response->set_redirect_url($this->checkout->redirect_url); |
|
949 | - return true; |
|
950 | - } |
|
951 | - return false; |
|
952 | - } |
|
729 | + $answer_cache_id = $this->checkout->reg_url_link |
|
730 | + ? $form_input . '-' . $registration->reg_url_link() |
|
731 | + : $form_input; |
|
732 | + $answer_is_obj = isset($this->_registration_answers[ $answer_cache_id ]) |
|
733 | + && $this->_registration_answers[ $answer_cache_id ] instanceof EE_Answer; |
|
734 | + // rename form_inputs if they are EE_Attendee properties |
|
735 | + switch ((string) $form_input) { |
|
736 | + case 'state': |
|
737 | + case 'STA_ID': |
|
738 | + $attendee_property = true; |
|
739 | + $form_input = 'STA_ID'; |
|
740 | + break; |
|
741 | + |
|
742 | + case 'country': |
|
743 | + case 'CNT_ISO': |
|
744 | + $attendee_property = true; |
|
745 | + $form_input = 'CNT_ISO'; |
|
746 | + break; |
|
747 | + |
|
748 | + default: |
|
749 | + $ATT_input = 'ATT_' . $form_input; |
|
750 | + // EEH_Debug_Tools::printr( $ATT_input, '$ATT_input', __FILE__, __LINE__ ); |
|
751 | + $attendee_property = EEM_Attendee::instance()->has_field($ATT_input) ? true : false; |
|
752 | + $form_input = $attendee_property ? 'ATT_' . $form_input : $form_input; |
|
753 | + } |
|
754 | + // EEH_Debug_Tools::printr( $answer_cache_id, '$answer_cache_id', __FILE__, __LINE__ ); |
|
755 | + // EEH_Debug_Tools::printr( $attendee_property, '$attendee_property', __FILE__, __LINE__ ); |
|
756 | + // EEH_Debug_Tools::printr( $answer_is_obj, '$answer_is_obj', __FILE__, __LINE__ ); |
|
757 | + // if this form input has a corresponding attendee property |
|
758 | + if ($attendee_property) { |
|
759 | + $this->_attendee_data[ $registration->reg_url_link() ][ $form_input ] = $input_value; |
|
760 | + if ($answer_is_obj) { |
|
761 | + // and delete the corresponding answer since we won't be storing this data in that object |
|
762 | + $registration->_remove_relation_to($this->_registration_answers[ $answer_cache_id ], 'Answer'); |
|
763 | + $this->_registration_answers[ $answer_cache_id ]->delete_permanently(); |
|
764 | + } |
|
765 | + return true; |
|
766 | + } |
|
767 | + if ($answer_is_obj) { |
|
768 | + // save this data to the answer object |
|
769 | + $this->_registration_answers[ $answer_cache_id ]->set_value($input_value); |
|
770 | + $result = $this->_registration_answers[ $answer_cache_id ]->save(); |
|
771 | + return $result !== false; |
|
772 | + } |
|
773 | + foreach ($this->_registration_answers as $answer) { |
|
774 | + if ($answer instanceof EE_Answer && $answer->question_ID() === $answer_cache_id) { |
|
775 | + $answer->set_value($input_value); |
|
776 | + $result = $answer->save(); |
|
777 | + return $result !== false; |
|
778 | + } |
|
779 | + } |
|
780 | + return false; |
|
781 | + } |
|
782 | + |
|
783 | + |
|
784 | + /** |
|
785 | + * _verify_critical_attendee_details_are_set |
|
786 | + * |
|
787 | + * @param string $form_input |
|
788 | + * @param string $input_value |
|
789 | + * @return boolean |
|
790 | + */ |
|
791 | + private function _verify_critical_attendee_details_are_set_and_validate_email( |
|
792 | + $form_input = '', |
|
793 | + $input_value = '' |
|
794 | + ) { |
|
795 | + if (empty($input_value)) { |
|
796 | + // if the form input isn't marked as being required, then just return |
|
797 | + if (! isset($this->_required_questions[ $form_input ]) || ! $this->_required_questions[ $form_input ]) { |
|
798 | + return true; |
|
799 | + } |
|
800 | + switch ($form_input) { |
|
801 | + case 'fname': |
|
802 | + EE_Error::add_error( |
|
803 | + esc_html__('First Name is a required value.', 'event_espresso'), |
|
804 | + __FILE__, |
|
805 | + __FUNCTION__, |
|
806 | + __LINE__ |
|
807 | + ); |
|
808 | + return false; |
|
809 | + break; |
|
810 | + case 'lname': |
|
811 | + EE_Error::add_error( |
|
812 | + esc_html__('Last Name is a required value.', 'event_espresso'), |
|
813 | + __FILE__, |
|
814 | + __FUNCTION__, |
|
815 | + __LINE__ |
|
816 | + ); |
|
817 | + return false; |
|
818 | + break; |
|
819 | + case 'email': |
|
820 | + EE_Error::add_error( |
|
821 | + esc_html__('Please enter a valid email address.', 'event_espresso'), |
|
822 | + __FILE__, |
|
823 | + __FUNCTION__, |
|
824 | + __LINE__ |
|
825 | + ); |
|
826 | + return false; |
|
827 | + break; |
|
828 | + } |
|
829 | + } |
|
830 | + return true; |
|
831 | + } |
|
832 | + |
|
833 | + |
|
834 | + /** |
|
835 | + * _associate_attendee_with_registration |
|
836 | + * |
|
837 | + * @param EE_Registration $registration |
|
838 | + * @param EE_Attendee $attendee |
|
839 | + * @return void |
|
840 | + * @throws EE_Error |
|
841 | + * @throws InvalidArgumentException |
|
842 | + * @throws ReflectionException |
|
843 | + * @throws RuntimeException |
|
844 | + * @throws InvalidDataTypeException |
|
845 | + * @throws InvalidInterfaceException |
|
846 | + */ |
|
847 | + private function _associate_attendee_with_registration(EE_Registration $registration, EE_Attendee $attendee) |
|
848 | + { |
|
849 | + // add relation to attendee |
|
850 | + $registration->_add_relation_to($attendee, 'Attendee'); |
|
851 | + $registration->set_attendee_id($attendee->ID()); |
|
852 | + $registration->update_cache_after_object_save('Attendee', $attendee); |
|
853 | + } |
|
854 | + |
|
855 | + |
|
856 | + /** |
|
857 | + * _associate_registration_with_transaction |
|
858 | + * |
|
859 | + * @param EE_Registration $registration |
|
860 | + * @return void |
|
861 | + * @throws EE_Error |
|
862 | + * @throws InvalidArgumentException |
|
863 | + * @throws ReflectionException |
|
864 | + * @throws InvalidDataTypeException |
|
865 | + * @throws InvalidInterfaceException |
|
866 | + */ |
|
867 | + private function _associate_registration_with_transaction(EE_Registration $registration) |
|
868 | + { |
|
869 | + // add relation to registration |
|
870 | + $this->checkout->transaction->_add_relation_to($registration, 'Registration'); |
|
871 | + $this->checkout->transaction->update_cache_after_object_save('Registration', $registration); |
|
872 | + } |
|
873 | + |
|
874 | + |
|
875 | + /** |
|
876 | + * _copy_critical_attendee_details_from_primary_registrant |
|
877 | + * ensures that all attendees at least have data for first name, last name, and email address |
|
878 | + * |
|
879 | + * @param array $attendee_data |
|
880 | + * @return array |
|
881 | + * @throws EE_Error |
|
882 | + * @throws InvalidArgumentException |
|
883 | + * @throws ReflectionException |
|
884 | + * @throws InvalidDataTypeException |
|
885 | + * @throws InvalidInterfaceException |
|
886 | + */ |
|
887 | + private function _copy_critical_attendee_details_from_primary_registrant($attendee_data = array()) |
|
888 | + { |
|
889 | + // bare minimum critical details include first name, last name, email address |
|
890 | + $critical_attendee_details = array('ATT_fname', 'ATT_lname', 'ATT_email'); |
|
891 | + // add address info to critical details? |
|
892 | + if ( |
|
893 | + apply_filters( |
|
894 | + 'FHEE__EE_SPCO_Reg_Step_Attendee_Information__merge_address_details_with_critical_attendee_details', |
|
895 | + false |
|
896 | + ) |
|
897 | + ) { |
|
898 | + $address_details = array( |
|
899 | + 'ATT_address', |
|
900 | + 'ATT_address2', |
|
901 | + 'ATT_city', |
|
902 | + 'STA_ID', |
|
903 | + 'CNT_ISO', |
|
904 | + 'ATT_zip', |
|
905 | + 'ATT_phone', |
|
906 | + ); |
|
907 | + $critical_attendee_details = array_merge($critical_attendee_details, $address_details); |
|
908 | + } |
|
909 | + foreach ($critical_attendee_details as $critical_attendee_detail) { |
|
910 | + if ( |
|
911 | + ! isset($attendee_data[ $critical_attendee_detail ]) |
|
912 | + || empty($attendee_data[ $critical_attendee_detail ]) |
|
913 | + ) { |
|
914 | + $attendee_data[ $critical_attendee_detail ] = $this->checkout->primary_attendee_obj->get( |
|
915 | + $critical_attendee_detail |
|
916 | + ); |
|
917 | + } |
|
918 | + } |
|
919 | + return $attendee_data; |
|
920 | + } |
|
921 | + |
|
922 | + |
|
923 | + /** |
|
924 | + * update_reg_step |
|
925 | + * this is the final step after a user revisits the site to edit their attendee information |
|
926 | + * this gets called AFTER the process_reg_step() method above |
|
927 | + * |
|
928 | + * @return bool |
|
929 | + * @throws EE_Error |
|
930 | + * @throws InvalidArgumentException |
|
931 | + * @throws ReflectionException |
|
932 | + * @throws RuntimeException |
|
933 | + * @throws InvalidDataTypeException |
|
934 | + * @throws InvalidInterfaceException |
|
935 | + */ |
|
936 | + public function update_reg_step() |
|
937 | + { |
|
938 | + // save everything |
|
939 | + if ($this->process_reg_step()) { |
|
940 | + $this->checkout->redirect = true; |
|
941 | + $this->checkout->redirect_url = add_query_arg( |
|
942 | + array( |
|
943 | + 'e_reg_url_link' => $this->checkout->reg_url_link, |
|
944 | + 'revisit' => true, |
|
945 | + ), |
|
946 | + $this->checkout->thank_you_page_url |
|
947 | + ); |
|
948 | + $this->checkout->json_response->set_redirect_url($this->checkout->redirect_url); |
|
949 | + return true; |
|
950 | + } |
|
951 | + return false; |
|
952 | + } |
|
953 | 953 | } |
@@ -341,7 +341,7 @@ discard block |
||
341 | 341 | ); |
342 | 342 | return false; |
343 | 343 | } |
344 | - if (! $this->checkout->transaction instanceof EE_Transaction || ! $this->checkout->continue_reg) { |
|
344 | + if ( ! $this->checkout->transaction instanceof EE_Transaction || ! $this->checkout->continue_reg) { |
|
345 | 345 | EE_Error::add_error( |
346 | 346 | esc_html__( |
347 | 347 | 'A valid transaction could not be initiated for processing your registrations.', |
@@ -368,7 +368,7 @@ discard block |
||
368 | 368 | '(line break)This can sometimes happen if too much time has been taken to complete the registration process.(line break)Please return to the (link)Event List(end link) and reselect your tickets. If the problem continues, please contact the site administrator.', |
369 | 369 | 'event_espresso' |
370 | 370 | ), |
371 | - '<a href="' . get_post_type_archive_link('espresso_events') . '" >', |
|
371 | + '<a href="'.get_post_type_archive_link('espresso_events').'" >', |
|
372 | 372 | '</a>', |
373 | 373 | '<br />' |
374 | 374 | ); |
@@ -388,7 +388,7 @@ discard block |
||
388 | 388 | // but return immediately if the previous step exited early due to errors |
389 | 389 | return false; |
390 | 390 | } |
391 | - if (! $this->checkout->revisit && $registrations_processed !== $this->checkout->total_ticket_count) { |
|
391 | + if ( ! $this->checkout->revisit && $registrations_processed !== $this->checkout->total_ticket_count) { |
|
392 | 392 | // generate a correctly translated string for all possible singular/plural combinations |
393 | 393 | if ($this->checkout->total_ticket_count === 1 && $registrations_processed !== 1) { |
394 | 394 | $error_msg = sprintf( |
@@ -471,7 +471,7 @@ discard block |
||
471 | 471 | // grab the saved registrations from the transaction |
472 | 472 | foreach ($registrations as $registration) { |
473 | 473 | // verify EE_Registration object |
474 | - if (! $registration instanceof EE_Registration) { |
|
474 | + if ( ! $registration instanceof EE_Registration) { |
|
475 | 475 | EE_Error::add_error( |
476 | 476 | esc_html__( |
477 | 477 | 'An invalid Registration object was discovered when attempting to process your registration information.', |
@@ -486,12 +486,12 @@ discard block |
||
486 | 486 | /** @var string $reg_url_link */ |
487 | 487 | $reg_url_link = $registration->reg_url_link(); |
488 | 488 | // reg_url_link exists ? |
489 | - if (! empty($reg_url_link)) { |
|
489 | + if ( ! empty($reg_url_link)) { |
|
490 | 490 | // should this registration be processed during this visit ? |
491 | 491 | if ($this->checkout->visit_allows_processing_of_this_registration($registration)) { |
492 | 492 | // if NOT revisiting, then let's save the registration now, |
493 | 493 | // so that we have a REG_ID to use when generating other objects |
494 | - if (! $this->checkout->revisit) { |
|
494 | + if ( ! $this->checkout->revisit) { |
|
495 | 495 | $registration->save(); |
496 | 496 | } |
497 | 497 | /** |
@@ -517,18 +517,18 @@ discard block |
||
517 | 517 | |
518 | 518 | // Houston, we have a registration! |
519 | 519 | $att_nmbr++; |
520 | - $this->_attendee_data[ $reg_url_link ] = array(); |
|
520 | + $this->_attendee_data[$reg_url_link] = array(); |
|
521 | 521 | // grab any existing related answer objects |
522 | 522 | $this->_registration_answers = $registration->answers(); |
523 | 523 | // unset( $valid_data[ $reg_url_link ]['additional_attendee_reg_info'] ); |
524 | - if (isset($valid_data[ $reg_url_link ])) { |
|
524 | + if (isset($valid_data[$reg_url_link])) { |
|
525 | 525 | // do we need to copy basic info from primary attendee ? |
526 | - $copy_primary = isset($valid_data[ $reg_url_link ]['additional_attendee_reg_info']) |
|
527 | - && absint($valid_data[ $reg_url_link ]['additional_attendee_reg_info']) === 0; |
|
526 | + $copy_primary = isset($valid_data[$reg_url_link]['additional_attendee_reg_info']) |
|
527 | + && absint($valid_data[$reg_url_link]['additional_attendee_reg_info']) === 0; |
|
528 | 528 | // filter form input data for this registration |
529 | - $valid_data[ $reg_url_link ] = (array) apply_filters( |
|
529 | + $valid_data[$reg_url_link] = (array) apply_filters( |
|
530 | 530 | 'FHEE__EE_Single_Page_Checkout__process_attendee_information__valid_data_line_item', |
531 | - $valid_data[ $reg_url_link ] |
|
531 | + $valid_data[$reg_url_link] |
|
532 | 532 | ); |
533 | 533 | if (isset($valid_data['primary_attendee'])) { |
534 | 534 | $primary_registrant['line_item_id'] = ! empty($valid_data['primary_attendee']) |
@@ -537,8 +537,8 @@ discard block |
||
537 | 537 | unset($valid_data['primary_attendee']); |
538 | 538 | } |
539 | 539 | // now loop through our array of valid post data && process attendee reg forms |
540 | - foreach ($valid_data[ $reg_url_link ] as $form_section => $form_inputs) { |
|
541 | - if (! in_array($form_section, $non_input_form_sections, true)) { |
|
540 | + foreach ($valid_data[$reg_url_link] as $form_section => $form_inputs) { |
|
541 | + if ( ! in_array($form_section, $non_input_form_sections, true)) { |
|
542 | 542 | foreach ($form_inputs as $form_input => $input_value) { |
543 | 543 | // \EEH_Debug_Tools::printr( $input_value, $form_input, __FILE__, __LINE__ ); |
544 | 544 | // check for critical inputs |
@@ -556,13 +556,13 @@ discard block |
||
556 | 556 | && ! empty($input_value) |
557 | 557 | && $reg_url_link === $primary_registrant['line_item_id'] |
558 | 558 | ) { |
559 | - $primary_registrant[ $form_input ] = $input_value; |
|
559 | + $primary_registrant[$form_input] = $input_value; |
|
560 | 560 | } elseif ( |
561 | 561 | $copy_primary |
562 | 562 | && $input_value === null |
563 | - && isset($primary_registrant[ $form_input ]) |
|
563 | + && isset($primary_registrant[$form_input]) |
|
564 | 564 | ) { |
565 | - $input_value = $primary_registrant[ $form_input ]; |
|
565 | + $input_value = $primary_registrant[$form_input]; |
|
566 | 566 | } |
567 | 567 | // now attempt to save the input data |
568 | 568 | if ( |
@@ -603,15 +603,15 @@ discard block |
||
603 | 603 | $attendee = $this->checkout->primary_attendee_obj; |
604 | 604 | } else { |
605 | 605 | // ensure critical details are set for additional attendees |
606 | - $this->_attendee_data[ $reg_url_link ] = $att_nmbr > 1 |
|
606 | + $this->_attendee_data[$reg_url_link] = $att_nmbr > 1 |
|
607 | 607 | ? $this->_copy_critical_attendee_details_from_primary_registrant( |
608 | - $this->_attendee_data[ $reg_url_link ] |
|
608 | + $this->_attendee_data[$reg_url_link] |
|
609 | 609 | ) |
610 | - : $this->_attendee_data[ $reg_url_link ]; |
|
610 | + : $this->_attendee_data[$reg_url_link]; |
|
611 | 611 | // execute create attendee command (which may return an existing attendee) |
612 | 612 | $attendee = EE_Registry::instance()->BUS->execute( |
613 | 613 | new CreateAttendeeCommand( |
614 | - $this->_attendee_data[ $reg_url_link ], |
|
614 | + $this->_attendee_data[$reg_url_link], |
|
615 | 615 | $registration |
616 | 616 | ) |
617 | 617 | ); |
@@ -624,7 +624,7 @@ discard block |
||
624 | 624 | // add relation to registration, set attendee ID, and cache attendee |
625 | 625 | $this->_associate_attendee_with_registration($registration, $attendee); |
626 | 626 | // \EEH_Debug_Tools::printr( $registration, '$registration', __FILE__, __LINE__ ); |
627 | - if (! $registration->attendee() instanceof EE_Attendee) { |
|
627 | + if ( ! $registration->attendee() instanceof EE_Attendee) { |
|
628 | 628 | EE_Error::add_error( |
629 | 629 | sprintf( |
630 | 630 | esc_html_x( |
@@ -674,7 +674,7 @@ discard block |
||
674 | 674 | __LINE__ |
675 | 675 | ); |
676 | 676 | // remove malformed data |
677 | - unset($valid_data[ $reg_url_link ]); |
|
677 | + unset($valid_data[$reg_url_link]); |
|
678 | 678 | return false; |
679 | 679 | } |
680 | 680 | } // end of foreach ( $this->checkout->transaction->registrations() as $registration ) |
@@ -727,10 +727,10 @@ discard block |
||
727 | 727 | * @see https://events.codebasehq.com/projects/event-espresso/tickets/10477 |
728 | 728 | */ |
729 | 729 | $answer_cache_id = $this->checkout->reg_url_link |
730 | - ? $form_input . '-' . $registration->reg_url_link() |
|
730 | + ? $form_input.'-'.$registration->reg_url_link() |
|
731 | 731 | : $form_input; |
732 | - $answer_is_obj = isset($this->_registration_answers[ $answer_cache_id ]) |
|
733 | - && $this->_registration_answers[ $answer_cache_id ] instanceof EE_Answer; |
|
732 | + $answer_is_obj = isset($this->_registration_answers[$answer_cache_id]) |
|
733 | + && $this->_registration_answers[$answer_cache_id] instanceof EE_Answer; |
|
734 | 734 | // rename form_inputs if they are EE_Attendee properties |
735 | 735 | switch ((string) $form_input) { |
736 | 736 | case 'state': |
@@ -746,28 +746,28 @@ discard block |
||
746 | 746 | break; |
747 | 747 | |
748 | 748 | default: |
749 | - $ATT_input = 'ATT_' . $form_input; |
|
749 | + $ATT_input = 'ATT_'.$form_input; |
|
750 | 750 | // EEH_Debug_Tools::printr( $ATT_input, '$ATT_input', __FILE__, __LINE__ ); |
751 | 751 | $attendee_property = EEM_Attendee::instance()->has_field($ATT_input) ? true : false; |
752 | - $form_input = $attendee_property ? 'ATT_' . $form_input : $form_input; |
|
752 | + $form_input = $attendee_property ? 'ATT_'.$form_input : $form_input; |
|
753 | 753 | } |
754 | 754 | // EEH_Debug_Tools::printr( $answer_cache_id, '$answer_cache_id', __FILE__, __LINE__ ); |
755 | 755 | // EEH_Debug_Tools::printr( $attendee_property, '$attendee_property', __FILE__, __LINE__ ); |
756 | 756 | // EEH_Debug_Tools::printr( $answer_is_obj, '$answer_is_obj', __FILE__, __LINE__ ); |
757 | 757 | // if this form input has a corresponding attendee property |
758 | 758 | if ($attendee_property) { |
759 | - $this->_attendee_data[ $registration->reg_url_link() ][ $form_input ] = $input_value; |
|
759 | + $this->_attendee_data[$registration->reg_url_link()][$form_input] = $input_value; |
|
760 | 760 | if ($answer_is_obj) { |
761 | 761 | // and delete the corresponding answer since we won't be storing this data in that object |
762 | - $registration->_remove_relation_to($this->_registration_answers[ $answer_cache_id ], 'Answer'); |
|
763 | - $this->_registration_answers[ $answer_cache_id ]->delete_permanently(); |
|
762 | + $registration->_remove_relation_to($this->_registration_answers[$answer_cache_id], 'Answer'); |
|
763 | + $this->_registration_answers[$answer_cache_id]->delete_permanently(); |
|
764 | 764 | } |
765 | 765 | return true; |
766 | 766 | } |
767 | 767 | if ($answer_is_obj) { |
768 | 768 | // save this data to the answer object |
769 | - $this->_registration_answers[ $answer_cache_id ]->set_value($input_value); |
|
770 | - $result = $this->_registration_answers[ $answer_cache_id ]->save(); |
|
769 | + $this->_registration_answers[$answer_cache_id]->set_value($input_value); |
|
770 | + $result = $this->_registration_answers[$answer_cache_id]->save(); |
|
771 | 771 | return $result !== false; |
772 | 772 | } |
773 | 773 | foreach ($this->_registration_answers as $answer) { |
@@ -794,7 +794,7 @@ discard block |
||
794 | 794 | ) { |
795 | 795 | if (empty($input_value)) { |
796 | 796 | // if the form input isn't marked as being required, then just return |
797 | - if (! isset($this->_required_questions[ $form_input ]) || ! $this->_required_questions[ $form_input ]) { |
|
797 | + if ( ! isset($this->_required_questions[$form_input]) || ! $this->_required_questions[$form_input]) { |
|
798 | 798 | return true; |
799 | 799 | } |
800 | 800 | switch ($form_input) { |
@@ -908,10 +908,10 @@ discard block |
||
908 | 908 | } |
909 | 909 | foreach ($critical_attendee_details as $critical_attendee_detail) { |
910 | 910 | if ( |
911 | - ! isset($attendee_data[ $critical_attendee_detail ]) |
|
912 | - || empty($attendee_data[ $critical_attendee_detail ]) |
|
911 | + ! isset($attendee_data[$critical_attendee_detail]) |
|
912 | + || empty($attendee_data[$critical_attendee_detail]) |
|
913 | 913 | ) { |
914 | - $attendee_data[ $critical_attendee_detail ] = $this->checkout->primary_attendee_obj->get( |
|
914 | + $attendee_data[$critical_attendee_detail] = $this->checkout->primary_attendee_obj->get( |
|
915 | 915 | $critical_attendee_detail |
916 | 916 | ); |
917 | 917 | } |
@@ -2,226 +2,226 @@ discard block |
||
2 | 2 | /* THIS IS A GENERATED FILE. DO NOT EDIT DIRECTLY. */ |
3 | 3 | $generated_i18n_strings = array( |
4 | 4 | // Reference: packages/ui-components/src/Pagination/constants.ts:6 |
5 | - __( '2', 'event_espresso' ), |
|
5 | + __('2', 'event_espresso'), |
|
6 | 6 | |
7 | 7 | // Reference: packages/ui-components/src/Pagination/constants.ts:7 |
8 | - __( '6', 'event_espresso' ), |
|
8 | + __('6', 'event_espresso'), |
|
9 | 9 | |
10 | 10 | // Reference: packages/ui-components/src/Pagination/constants.ts:8 |
11 | - __( '12', 'event_espresso' ), |
|
11 | + __('12', 'event_espresso'), |
|
12 | 12 | |
13 | 13 | // Reference: packages/ui-components/src/Pagination/constants.ts:9 |
14 | - __( '24', 'event_espresso' ), |
|
14 | + __('24', 'event_espresso'), |
|
15 | 15 | |
16 | 16 | // Reference: packages/ui-components/src/Pagination/constants.ts:10 |
17 | - __( '48', 'event_espresso' ), |
|
17 | + __('48', 'event_espresso'), |
|
18 | 18 | |
19 | 19 | // Reference: domains/core/admin/blocks/src/components/AvatarImage.tsx:27 |
20 | - __( 'contact avatar', 'event_espresso' ), |
|
20 | + __('contact avatar', 'event_espresso'), |
|
21 | 21 | |
22 | 22 | // Reference: domains/core/admin/blocks/src/components/OrderByControl.tsx:12 |
23 | - __( 'Order by', 'event_espresso' ), |
|
23 | + __('Order by', 'event_espresso'), |
|
24 | 24 | |
25 | 25 | // Reference: domains/core/admin/blocks/src/components/RegStatusControl.tsx:17 |
26 | 26 | // Reference: domains/core/admin/blocks/src/event-attendees/controls/SelectStatus.tsx:13 |
27 | - __( 'Select Registration Status', 'event_espresso' ), |
|
27 | + __('Select Registration Status', 'event_espresso'), |
|
28 | 28 | |
29 | 29 | // Reference: domains/core/admin/blocks/src/components/SortOrderControl.tsx:14 |
30 | - __( 'Ascending', 'event_espresso' ), |
|
30 | + __('Ascending', 'event_espresso'), |
|
31 | 31 | |
32 | 32 | // Reference: domains/core/admin/blocks/src/components/SortOrderControl.tsx:18 |
33 | - __( 'Descending', 'event_espresso' ), |
|
33 | + __('Descending', 'event_espresso'), |
|
34 | 34 | |
35 | 35 | // Reference: domains/core/admin/blocks/src/components/SortOrderControl.tsx:24 |
36 | - __( 'Sort order:', 'event_espresso' ), |
|
36 | + __('Sort order:', 'event_espresso'), |
|
37 | 37 | |
38 | 38 | // Reference: domains/core/admin/blocks/src/event-attendees/AttendeesDisplay.tsx:41 |
39 | - __( 'There was some error fetching attendees list', 'event_espresso' ), |
|
39 | + __('There was some error fetching attendees list', 'event_espresso'), |
|
40 | 40 | |
41 | 41 | // Reference: domains/core/admin/blocks/src/event-attendees/AttendeesDisplay.tsx:47 |
42 | - __( 'To get started, select what event you want to show attendees from in the block settings.', 'event_espresso' ), |
|
42 | + __('To get started, select what event you want to show attendees from in the block settings.', 'event_espresso'), |
|
43 | 43 | |
44 | 44 | // Reference: domains/core/admin/blocks/src/event-attendees/AttendeesDisplay.tsx:53 |
45 | - __( 'There are no attendees for selected options.', 'event_espresso' ), |
|
45 | + __('There are no attendees for selected options.', 'event_espresso'), |
|
46 | 46 | |
47 | 47 | // Reference: domains/core/admin/blocks/src/event-attendees/controls/ArchiveSettings.tsx:12 |
48 | - __( 'Display on Archives', 'event_espresso' ), |
|
48 | + __('Display on Archives', 'event_espresso'), |
|
49 | 49 | |
50 | 50 | // Reference: domains/core/admin/blocks/src/event-attendees/controls/ArchiveSettings.tsx:17 |
51 | - __( 'Attendees are shown whenever this post is listed in an archive view.', 'event_espresso' ), |
|
51 | + __('Attendees are shown whenever this post is listed in an archive view.', 'event_espresso'), |
|
52 | 52 | |
53 | 53 | // Reference: domains/core/admin/blocks/src/event-attendees/controls/ArchiveSettings.tsx:18 |
54 | - __( 'Attendees are hidden whenever this post is listed in an archive view.', 'event_espresso' ), |
|
54 | + __('Attendees are hidden whenever this post is listed in an archive view.', 'event_espresso'), |
|
55 | 55 | |
56 | 56 | // Reference: domains/core/admin/blocks/src/event-attendees/controls/AttendeeLimit.tsx:29 |
57 | - __( 'Number of Attendees to Display:', 'event_espresso' ), |
|
57 | + __('Number of Attendees to Display:', 'event_espresso'), |
|
58 | 58 | |
59 | 59 | // Reference: domains/core/admin/blocks/src/event-attendees/controls/AttendeeLimit.tsx:34 |
60 | 60 | /* translators: %d attendees count */ |
61 | - _n_noop( 'Used to adjust the number of attendees displayed (There is %d total attendee for the current filter settings).', 'Used to adjust the number of attendees displayed (There are %d total attendees for the current filter settings).', 'event_espresso' ), |
|
61 | + _n_noop('Used to adjust the number of attendees displayed (There is %d total attendee for the current filter settings).', 'Used to adjust the number of attendees displayed (There are %d total attendees for the current filter settings).', 'event_espresso'), |
|
62 | 62 | |
63 | 63 | // Reference: domains/core/admin/blocks/src/event-attendees/controls/GravatarSettings.tsx:27 |
64 | - __( 'Display Gravatar', 'event_espresso' ), |
|
64 | + __('Display Gravatar', 'event_espresso'), |
|
65 | 65 | |
66 | 66 | // Reference: domains/core/admin/blocks/src/event-attendees/controls/GravatarSettings.tsx:32 |
67 | - __( 'Gravatar images are shown for each attendee.', 'event_espresso' ), |
|
67 | + __('Gravatar images are shown for each attendee.', 'event_espresso'), |
|
68 | 68 | |
69 | 69 | // Reference: domains/core/admin/blocks/src/event-attendees/controls/GravatarSettings.tsx:33 |
70 | - __( 'No gravatar images are shown for each attendee.', 'event_espresso' ), |
|
70 | + __('No gravatar images are shown for each attendee.', 'event_espresso'), |
|
71 | 71 | |
72 | 72 | // Reference: domains/core/admin/blocks/src/event-attendees/controls/GravatarSettings.tsx:38 |
73 | - __( 'Size of Gravatar', 'event_espresso' ), |
|
73 | + __('Size of Gravatar', 'event_espresso'), |
|
74 | 74 | |
75 | 75 | // Reference: domains/core/admin/blocks/src/event-attendees/controls/SelectDatetime.tsx:22 |
76 | - __( 'Select Datetime', 'event_espresso' ), |
|
76 | + __('Select Datetime', 'event_espresso'), |
|
77 | 77 | |
78 | 78 | // Reference: domains/core/admin/blocks/src/event-attendees/controls/SelectEvent.tsx:22 |
79 | - __( 'Select Event', 'event_espresso' ), |
|
79 | + __('Select Event', 'event_espresso'), |
|
80 | 80 | |
81 | 81 | // Reference: domains/core/admin/blocks/src/event-attendees/controls/SelectOrderBy.tsx:11 |
82 | - __( 'Attendee id', 'event_espresso' ), |
|
82 | + __('Attendee id', 'event_espresso'), |
|
83 | 83 | |
84 | 84 | // Reference: domains/core/admin/blocks/src/event-attendees/controls/SelectOrderBy.tsx:15 |
85 | - __( 'Last name only', 'event_espresso' ), |
|
85 | + __('Last name only', 'event_espresso'), |
|
86 | 86 | |
87 | 87 | // Reference: domains/core/admin/blocks/src/event-attendees/controls/SelectOrderBy.tsx:19 |
88 | - __( 'First name only', 'event_espresso' ), |
|
88 | + __('First name only', 'event_espresso'), |
|
89 | 89 | |
90 | 90 | // Reference: domains/core/admin/blocks/src/event-attendees/controls/SelectOrderBy.tsx:23 |
91 | - __( 'First, then Last name', 'event_espresso' ), |
|
91 | + __('First, then Last name', 'event_espresso'), |
|
92 | 92 | |
93 | 93 | // Reference: domains/core/admin/blocks/src/event-attendees/controls/SelectOrderBy.tsx:27 |
94 | - __( 'Last, then First name', 'event_espresso' ), |
|
94 | + __('Last, then First name', 'event_espresso'), |
|
95 | 95 | |
96 | 96 | // Reference: domains/core/admin/blocks/src/event-attendees/controls/SelectOrderBy.tsx:41 |
97 | - __( 'Order Attendees by:', 'event_espresso' ), |
|
97 | + __('Order Attendees by:', 'event_espresso'), |
|
98 | 98 | |
99 | 99 | // Reference: domains/core/admin/blocks/src/event-attendees/controls/SelectTicket.tsx:22 |
100 | - __( 'Select Ticket', 'event_espresso' ), |
|
100 | + __('Select Ticket', 'event_espresso'), |
|
101 | 101 | |
102 | 102 | // Reference: domains/core/admin/blocks/src/event-attendees/controls/index.tsx:21 |
103 | - __( 'Filter By Settings', 'event_espresso' ), |
|
103 | + __('Filter By Settings', 'event_espresso'), |
|
104 | 104 | |
105 | 105 | // Reference: domains/core/admin/blocks/src/event-attendees/controls/index.tsx:36 |
106 | - __( 'Gravatar Setttings', 'event_espresso' ), |
|
106 | + __('Gravatar Setttings', 'event_espresso'), |
|
107 | 107 | |
108 | 108 | // Reference: domains/core/admin/blocks/src/event-attendees/controls/index.tsx:39 |
109 | - __( 'Archive Settings', 'event_espresso' ), |
|
109 | + __('Archive Settings', 'event_espresso'), |
|
110 | 110 | |
111 | 111 | // Reference: domains/core/admin/blocks/src/event-attendees/index.tsx:10 |
112 | - __( 'Event Attendees', 'event_espresso' ), |
|
112 | + __('Event Attendees', 'event_espresso'), |
|
113 | 113 | |
114 | 114 | // Reference: domains/core/admin/blocks/src/event-attendees/index.tsx:11 |
115 | - __( 'Displays a list of people that have registered for the specified event', 'event_espresso' ), |
|
115 | + __('Displays a list of people that have registered for the specified event', 'event_espresso'), |
|
116 | 116 | |
117 | 117 | // Reference: domains/core/admin/blocks/src/event-attendees/index.tsx:14 |
118 | - __( 'event', 'event_espresso' ), |
|
118 | + __('event', 'event_espresso'), |
|
119 | 119 | |
120 | 120 | // Reference: domains/core/admin/blocks/src/event-attendees/index.tsx:14 |
121 | - __( 'attendees', 'event_espresso' ), |
|
121 | + __('attendees', 'event_espresso'), |
|
122 | 122 | |
123 | 123 | // Reference: domains/core/admin/blocks/src/event-attendees/index.tsx:14 |
124 | - __( 'list', 'event_espresso' ), |
|
124 | + __('list', 'event_espresso'), |
|
125 | 125 | |
126 | 126 | // Reference: domains/core/admin/blocks/src/services/utils.ts:17 |
127 | - __( 'Error', 'event_espresso' ), |
|
127 | + __('Error', 'event_espresso'), |
|
128 | 128 | |
129 | 129 | // Reference: domains/core/admin/blocks/src/services/utils.ts:24 |
130 | 130 | // Reference: packages/ui-components/src/SimpleEntityList/EntityTemplate.tsx:16 |
131 | - __( 'Select…', 'event_espresso' ), |
|
131 | + __('Select…', 'event_espresso'), |
|
132 | 132 | |
133 | 133 | // Reference: domains/core/admin/blocks/src/services/utils.ts:9 |
134 | - __( 'Loading…', 'event_espresso' ), |
|
134 | + __('Loading…', 'event_espresso'), |
|
135 | 135 | |
136 | 136 | // Reference: domains/core/admin/eventEditor/src/ui/EventDescription.tsx:33 |
137 | - __( 'Event Description', 'event_espresso' ), |
|
137 | + __('Event Description', 'event_espresso'), |
|
138 | 138 | |
139 | 139 | // Reference: domains/core/admin/eventEditor/src/ui/EventRegistrationOptions/ActiveStatus.tsx:22 |
140 | - __( 'Active status', 'event_espresso' ), |
|
140 | + __('Active status', 'event_espresso'), |
|
141 | 141 | |
142 | 142 | // Reference: domains/core/admin/eventEditor/src/ui/EventRegistrationOptions/AltRegPage.tsx:14 |
143 | - __( 'Alternative Registration Page', 'event_espresso' ), |
|
143 | + __('Alternative Registration Page', 'event_espresso'), |
|
144 | 144 | |
145 | 145 | // Reference: domains/core/admin/eventEditor/src/ui/EventRegistrationOptions/DefaultRegistrationStatus.tsx:15 |
146 | - __( 'Default Registration Status', 'event_espresso' ), |
|
146 | + __('Default Registration Status', 'event_espresso'), |
|
147 | 147 | |
148 | 148 | // Reference: domains/core/admin/eventEditor/src/ui/EventRegistrationOptions/Donations.tsx:9 |
149 | - __( 'Donations Enabled', 'event_espresso' ), |
|
149 | + __('Donations Enabled', 'event_espresso'), |
|
150 | 150 | |
151 | 151 | // Reference: domains/core/admin/eventEditor/src/ui/EventRegistrationOptions/Donations.tsx:9 |
152 | - __( 'Donations Disabled', 'event_espresso' ), |
|
152 | + __('Donations Disabled', 'event_espresso'), |
|
153 | 153 | |
154 | 154 | // Reference: domains/core/admin/eventEditor/src/ui/EventRegistrationOptions/EventManager.tsx:16 |
155 | - __( 'Event Manager', 'event_espresso' ), |
|
155 | + __('Event Manager', 'event_espresso'), |
|
156 | 156 | |
157 | 157 | // Reference: domains/core/admin/eventEditor/src/ui/EventRegistrationOptions/EventPhoneNumber.tsx:11 |
158 | - __( 'Event Phone Number', 'event_espresso' ), |
|
158 | + __('Event Phone Number', 'event_espresso'), |
|
159 | 159 | |
160 | 160 | // Reference: domains/core/admin/eventEditor/src/ui/EventRegistrationOptions/MaxRegistrations.tsx:12 |
161 | - __( 'Max Registrations per Transaction', 'event_espresso' ), |
|
161 | + __('Max Registrations per Transaction', 'event_espresso'), |
|
162 | 162 | |
163 | 163 | // Reference: domains/core/admin/eventEditor/src/ui/EventRegistrationOptions/TicketSelector.tsx:9 |
164 | - __( 'Ticket Selector Enabled', 'event_espresso' ), |
|
164 | + __('Ticket Selector Enabled', 'event_espresso'), |
|
165 | 165 | |
166 | 166 | // Reference: domains/core/admin/eventEditor/src/ui/EventRegistrationOptions/TicketSelector.tsx:9 |
167 | - __( 'Ticket Selector Disabled', 'event_espresso' ), |
|
167 | + __('Ticket Selector Disabled', 'event_espresso'), |
|
168 | 168 | |
169 | 169 | // Reference: domains/core/admin/eventEditor/src/ui/EventRegistrationOptions/index.tsx:43 |
170 | - __( 'Registration Options', 'event_espresso' ), |
|
170 | + __('Registration Options', 'event_espresso'), |
|
171 | 171 | |
172 | 172 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/DateRegistrationsLink.tsx:13 |
173 | - __( 'view ALL registrations for this date.', 'event_espresso' ), |
|
173 | + __('view ALL registrations for this date.', 'event_espresso'), |
|
174 | 174 | |
175 | 175 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/dateForm/multiStep/DateFormSteps.tsx:10 |
176 | - __( 'primary information about the date', 'event_espresso' ), |
|
176 | + __('primary information about the date', 'event_espresso'), |
|
177 | 177 | |
178 | 178 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/dateForm/multiStep/DateFormSteps.tsx:10 |
179 | - __( 'Date Details', 'event_espresso' ), |
|
179 | + __('Date Details', 'event_espresso'), |
|
180 | 180 | |
181 | 181 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/dateForm/multiStep/DateFormSteps.tsx:11 |
182 | 182 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/defaultTickets/multiStep/TicketFormSteps.tsx:16 |
183 | 183 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketForm/multiStep/TicketFormSteps.tsx:16 |
184 | - __( 'relations between tickets and dates', 'event_espresso' ), |
|
184 | + __('relations between tickets and dates', 'event_espresso'), |
|
185 | 185 | |
186 | 186 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/dateForm/multiStep/DateFormSteps.tsx:11 |
187 | - __( 'Assign Tickets', 'event_espresso' ), |
|
187 | + __('Assign Tickets', 'event_espresso'), |
|
188 | 188 | |
189 | 189 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/dateForm/multiStep/FooterButtons.tsx:22 |
190 | - __( 'Save and assign tickets', 'event_espresso' ), |
|
190 | + __('Save and assign tickets', 'event_espresso'), |
|
191 | 191 | |
192 | 192 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/dateForm/multiStep/Modal.tsx:27 |
193 | 193 | /* translators: %s datetime id */ |
194 | - __( 'Edit datetime %s', 'event_espresso' ), |
|
194 | + __('Edit datetime %s', 'event_espresso'), |
|
195 | 195 | |
196 | 196 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/dateForm/multiStep/Modal.tsx:30 |
197 | - __( 'New Datetime', 'event_espresso' ), |
|
197 | + __('New Datetime', 'event_espresso'), |
|
198 | 198 | |
199 | 199 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/dateForm/useDateFormConfig.ts:110 |
200 | 200 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/bulkEdit/details/useBulkEditFormConfig.ts:108 |
201 | 201 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketForm/useTicketFormConfig.ts:126 |
202 | 202 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/bulkEdit/details/useBulkEditFormConfig.ts:108 |
203 | - __( 'Details', 'event_espresso' ), |
|
203 | + __('Details', 'event_espresso'), |
|
204 | 204 | |
205 | 205 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/dateForm/useDateFormConfig.ts:114 |
206 | 206 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/bulkEdit/details/useBulkEditFormConfig.ts:112 |
207 | 207 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/tableView/useHeaderRowGenerator.tsx:81 |
208 | - __( 'Capacity', 'event_espresso' ), |
|
208 | + __('Capacity', 'event_espresso'), |
|
209 | 209 | |
210 | 210 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/dateForm/useDateFormConfig.ts:119 |
211 | - __( 'The maximum number of registrants that can attend the event at this particular date.', 'event_espresso' ), |
|
211 | + __('The maximum number of registrants that can attend the event at this particular date.', 'event_espresso'), |
|
212 | 212 | |
213 | 213 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/dateForm/useDateFormConfig.ts:123 |
214 | - __( 'Set to 0 to close registration or leave blank for no limit.', 'event_espresso' ), |
|
214 | + __('Set to 0 to close registration or leave blank for no limit.', 'event_espresso'), |
|
215 | 215 | |
216 | 216 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/dateForm/useDateFormConfig.ts:129 |
217 | 217 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketForm/useTicketFormConfig.ts:203 |
218 | - __( 'Trash', 'event_espresso' ), |
|
218 | + __('Trash', 'event_espresso'), |
|
219 | 219 | |
220 | 220 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/dateForm/useDateFormConfig.ts:71 |
221 | 221 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/bulkEdit/details/useBulkEditFormConfig.ts:45 |
222 | 222 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketForm/useTicketFormConfig.ts:87 |
223 | 223 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/bulkEdit/details/useBulkEditFormConfig.ts:45 |
224 | - __( 'Basics', 'event_espresso' ), |
|
224 | + __('Basics', 'event_espresso'), |
|
225 | 225 | |
226 | 226 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/dateForm/useDateFormConfig.ts:75 |
227 | 227 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/bulkEdit/details/useBulkEditFormConfig.ts:49 |
@@ -229,250 +229,250 @@ discard block |
||
229 | 229 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketForm/useTicketFormConfig.ts:91 |
230 | 230 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/bulkEdit/details/useBulkEditFormConfig.ts:49 |
231 | 231 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/tableView/useHeaderRowGenerator.tsx:40 |
232 | - __( 'Name', 'event_espresso' ), |
|
232 | + __('Name', 'event_espresso'), |
|
233 | 233 | |
234 | 234 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/dateForm/useDateFormConfig.ts:80 |
235 | 235 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/bulkEdit/details/useBulkEditFormConfig.ts:55 |
236 | 236 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketForm/useTicketFormConfig.ts:96 |
237 | 237 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/bulkEdit/details/useBulkEditFormConfig.ts:55 |
238 | 238 | // Reference: packages/tpc/src/components/table/useHeaderRowGenerator.ts:47 |
239 | - __( 'Description', 'event_espresso' ), |
|
239 | + __('Description', 'event_espresso'), |
|
240 | 240 | |
241 | 241 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/dateForm/useDateFormConfig.ts:88 |
242 | 242 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/bulkEdit/details/useBulkEditFormConfig.ts:63 |
243 | 243 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/bulkEdit/details/useBulkEditFormConfig.ts:63 |
244 | - __( 'Dates', 'event_espresso' ), |
|
244 | + __('Dates', 'event_espresso'), |
|
245 | 245 | |
246 | 246 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/dateForm/useDateFormConfig.ts:92 |
247 | 247 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/tableView/useHeaderRowGenerator.tsx:51 |
248 | 248 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketForm/useTicketFormConfig.ts:108 |
249 | - __( 'Start Date', 'event_espresso' ), |
|
249 | + __('Start Date', 'event_espresso'), |
|
250 | 250 | |
251 | 251 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/dateForm/useDateFormConfig.ts:99 |
252 | 252 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/tableView/useHeaderRowGenerator.tsx:65 |
253 | 253 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketForm/useTicketFormConfig.ts:115 |
254 | - __( 'End Date', 'event_espresso' ), |
|
254 | + __('End Date', 'event_espresso'), |
|
255 | 255 | |
256 | 256 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/DatesList.tsx:34 |
257 | 257 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/tableView/TableView.tsx:33 |
258 | - __( 'Event Dates', 'event_espresso' ), |
|
258 | + __('Event Dates', 'event_espresso'), |
|
259 | 259 | |
260 | 260 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/DatesList.tsx:37 |
261 | - __( 'loading event dates…', 'event_espresso' ), |
|
261 | + __('loading event dates…', 'event_espresso'), |
|
262 | 262 | |
263 | 263 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/DatesListButtons.tsx:20 |
264 | - __( 'Add a date or a ticket in order to use Ticket Assignment Manager', 'event_espresso' ), |
|
264 | + __('Add a date or a ticket in order to use Ticket Assignment Manager', 'event_espresso'), |
|
265 | 265 | |
266 | 266 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/DatesListButtons.tsx:30 |
267 | - __( 'Ticket Assignments', 'event_espresso' ), |
|
267 | + __('Ticket Assignments', 'event_espresso'), |
|
268 | 268 | |
269 | 269 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/actionsMenu/AssignTicketsButton.tsx:25 |
270 | - __( 'Number of related tickets', 'event_espresso' ), |
|
270 | + __('Number of related tickets', 'event_espresso'), |
|
271 | 271 | |
272 | 272 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/actionsMenu/AssignTicketsButton.tsx:26 |
273 | - __( 'There are no tickets assigned to this datetime. Please click the ticket icon to update the assignments.', 'event_espresso' ), |
|
273 | + __('There are no tickets assigned to this datetime. Please click the ticket icon to update the assignments.', 'event_espresso'), |
|
274 | 274 | |
275 | 275 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/actionsMenu/AssignTicketsButton.tsx:34 |
276 | - __( 'assign tickets', 'event_espresso' ), |
|
276 | + __('assign tickets', 'event_espresso'), |
|
277 | 277 | |
278 | 278 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/actionsMenu/dropdown/DateMainMenu.tsx:25 |
279 | - __( 'Permanently delete Datetime?', 'event_espresso' ), |
|
279 | + __('Permanently delete Datetime?', 'event_espresso'), |
|
280 | 280 | |
281 | 281 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/actionsMenu/dropdown/DateMainMenu.tsx:25 |
282 | - __( 'Move Datetime to Trash?', 'event_espresso' ), |
|
282 | + __('Move Datetime to Trash?', 'event_espresso'), |
|
283 | 283 | |
284 | 284 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/actionsMenu/dropdown/DateMainMenu.tsx:27 |
285 | - __( 'Are you sure you want to permanently delete this datetime? This action is permanent and can not be undone.', 'event_espresso' ), |
|
285 | + __('Are you sure you want to permanently delete this datetime? This action is permanent and can not be undone.', 'event_espresso'), |
|
286 | 286 | |
287 | 287 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/actionsMenu/dropdown/DateMainMenu.tsx:30 |
288 | - __( 'Are you sure you want to move this datetime to the trash? You can "untrash" this datetime later if you need to.', 'event_espresso' ), |
|
288 | + __('Are you sure you want to move this datetime to the trash? You can "untrash" this datetime later if you need to.', 'event_espresso'), |
|
289 | 289 | |
290 | 290 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/actionsMenu/dropdown/DateMainMenu.tsx:39 |
291 | 291 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/actionsMenu/dropdown/DeleteTicket.tsx:44 |
292 | - __( 'delete permanently', 'event_espresso' ), |
|
292 | + __('delete permanently', 'event_espresso'), |
|
293 | 293 | |
294 | 294 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/actionsMenu/dropdown/DateMainMenu.tsx:39 |
295 | - __( 'trash datetime', 'event_espresso' ), |
|
295 | + __('trash datetime', 'event_espresso'), |
|
296 | 296 | |
297 | 297 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/actionsMenu/dropdown/DateMainMenu.tsx:45 |
298 | - __( 'event date main menu', 'event_espresso' ), |
|
298 | + __('event date main menu', 'event_espresso'), |
|
299 | 299 | |
300 | 300 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/actionsMenu/dropdown/DateMainMenu.tsx:59 |
301 | - __( 'edit datetime', 'event_espresso' ), |
|
301 | + __('edit datetime', 'event_espresso'), |
|
302 | 302 | |
303 | 303 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/actionsMenu/dropdown/DateMainMenu.tsx:60 |
304 | - __( 'copy datetime', 'event_espresso' ), |
|
304 | + __('copy datetime', 'event_espresso'), |
|
305 | 305 | |
306 | 306 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/bulkEdit/actions/Actions.tsx:36 |
307 | 307 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/bulkEdit/actions/Actions.tsx:39 |
308 | 308 | // Reference: packages/ui-components/src/bulkEdit/BulkActions.tsx:43 |
309 | - __( 'bulk actions', 'event_espresso' ), |
|
309 | + __('bulk actions', 'event_espresso'), |
|
310 | 310 | |
311 | 311 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/bulkEdit/actions/Actions.tsx:40 |
312 | - __( 'edit datetime details', 'event_espresso' ), |
|
312 | + __('edit datetime details', 'event_espresso'), |
|
313 | 313 | |
314 | 314 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/bulkEdit/actions/Actions.tsx:44 |
315 | - __( 'delete datetimes', 'event_espresso' ), |
|
315 | + __('delete datetimes', 'event_espresso'), |
|
316 | 316 | |
317 | 317 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/bulkEdit/actions/Actions.tsx:44 |
318 | - __( 'trash datetimes', 'event_espresso' ), |
|
318 | + __('trash datetimes', 'event_espresso'), |
|
319 | 319 | |
320 | 320 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/bulkEdit/delete/Delete.tsx:14 |
321 | - __( 'Are you sure you want to permanently delete these datetimes? This action can NOT be undone!', 'event_espresso' ), |
|
321 | + __('Are you sure you want to permanently delete these datetimes? This action can NOT be undone!', 'event_espresso'), |
|
322 | 322 | |
323 | 323 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/bulkEdit/delete/Delete.tsx:15 |
324 | - __( 'Are you sure you want to trash these datetimes?', 'event_espresso' ), |
|
324 | + __('Are you sure you want to trash these datetimes?', 'event_espresso'), |
|
325 | 325 | |
326 | 326 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/bulkEdit/delete/Delete.tsx:16 |
327 | - __( 'Delete datetimes permanently', 'event_espresso' ), |
|
327 | + __('Delete datetimes permanently', 'event_espresso'), |
|
328 | 328 | |
329 | 329 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/bulkEdit/delete/Delete.tsx:16 |
330 | - __( 'Trash datetimes', 'event_espresso' ), |
|
330 | + __('Trash datetimes', 'event_espresso'), |
|
331 | 331 | |
332 | 332 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/bulkEdit/details/EditDetails.tsx:21 |
333 | - __( 'Bulk edit date details', 'event_espresso' ), |
|
333 | + __('Bulk edit date details', 'event_espresso'), |
|
334 | 334 | |
335 | 335 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/bulkEdit/details/EditDetails.tsx:22 |
336 | - __( 'any changes will be applied to ALL of the selected dates.', 'event_espresso' ), |
|
336 | + __('any changes will be applied to ALL of the selected dates.', 'event_espresso'), |
|
337 | 337 | |
338 | 338 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/bulkEdit/details/formValidation.ts:12 |
339 | 339 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/bulkEdit/details/formValidation.ts:12 |
340 | - __( 'Name must be at least three characters', 'event_espresso' ), |
|
340 | + __('Name must be at least three characters', 'event_espresso'), |
|
341 | 341 | |
342 | 342 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/bulkEdit/details/useBulkEditFormConfig.ts:67 |
343 | 343 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/bulkEdit/details/useBulkEditFormConfig.ts:67 |
344 | - __( 'Shift dates', 'event_espresso' ), |
|
344 | + __('Shift dates', 'event_espresso'), |
|
345 | 345 | |
346 | 346 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/bulkEdit/details/useBulkEditFormConfig.ts:92 |
347 | 347 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/bulkEdit/details/useBulkEditFormConfig.ts:92 |
348 | - __( 'earlier', 'event_espresso' ), |
|
348 | + __('earlier', 'event_espresso'), |
|
349 | 349 | |
350 | 350 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/bulkEdit/details/useBulkEditFormConfig.ts:96 |
351 | 351 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/bulkEdit/details/useBulkEditFormConfig.ts:96 |
352 | - __( 'later', 'event_espresso' ), |
|
352 | + __('later', 'event_espresso'), |
|
353 | 353 | |
354 | 354 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/cardView/DateCapacity.tsx:37 |
355 | - __( 'edit capacity (registration limit)…', 'event_espresso' ), |
|
355 | + __('edit capacity (registration limit)…', 'event_espresso'), |
|
356 | 356 | |
357 | 357 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/cardView/DateCardSidebar.tsx:38 |
358 | - __( 'Edit Event Date', 'event_espresso' ), |
|
358 | + __('Edit Event Date', 'event_espresso'), |
|
359 | 359 | |
360 | 360 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/cardView/DateCardSidebar.tsx:42 |
361 | - __( 'edit start and end dates', 'event_espresso' ), |
|
361 | + __('edit start and end dates', 'event_espresso'), |
|
362 | 362 | |
363 | 363 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/cardView/DateDetailsPanel.tsx:15 |
364 | 364 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/cardView/TicketDetailsPanel.tsx:15 |
365 | - __( 'sold', 'event_espresso' ), |
|
365 | + __('sold', 'event_espresso'), |
|
366 | 366 | |
367 | 367 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/cardView/DateDetailsPanel.tsx:28 |
368 | - __( 'capacity', 'event_espresso' ), |
|
368 | + __('capacity', 'event_espresso'), |
|
369 | 369 | |
370 | 370 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/cardView/DateDetailsPanel.tsx:34 |
371 | 371 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/cardView/TicketDetailsPanel.tsx:33 |
372 | - __( 'reg list', 'event_espresso' ), |
|
372 | + __('reg list', 'event_espresso'), |
|
373 | 373 | |
374 | 374 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/cardView/Details.tsx:46 |
375 | 375 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/cardView/Details.tsx:45 |
376 | - __( 'Edit description', 'event_espresso' ), |
|
376 | + __('Edit description', 'event_espresso'), |
|
377 | 377 | |
378 | 378 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/cardView/Details.tsx:47 |
379 | 379 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/cardView/Details.tsx:46 |
380 | - __( 'edit description…', 'event_espresso' ), |
|
380 | + __('edit description…', 'event_espresso'), |
|
381 | 381 | |
382 | 382 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/config.ts:10 |
383 | - __( 'Move Date to Trash', 'event_espresso' ), |
|
383 | + __('Move Date to Trash', 'event_espresso'), |
|
384 | 384 | |
385 | 385 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/config.ts:13 |
386 | 386 | // Reference: packages/constants/src/datetime.ts:6 |
387 | - __( 'Active', 'event_espresso' ), |
|
387 | + __('Active', 'event_espresso'), |
|
388 | 388 | |
389 | 389 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/config.ts:14 |
390 | 390 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/config.ts:13 |
391 | - __( 'Trashed', 'event_espresso' ), |
|
391 | + __('Trashed', 'event_espresso'), |
|
392 | 392 | |
393 | 393 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/config.ts:15 |
394 | 394 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/config.ts:14 |
395 | 395 | // Reference: packages/constants/src/datetime.ts:8 |
396 | - __( 'Expired', 'event_espresso' ), |
|
396 | + __('Expired', 'event_espresso'), |
|
397 | 397 | |
398 | 398 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/config.ts:16 |
399 | 399 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/config.ts:16 |
400 | - __( 'Sold Out', 'event_espresso' ), |
|
400 | + __('Sold Out', 'event_espresso'), |
|
401 | 401 | |
402 | 402 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/config.ts:17 |
403 | 403 | // Reference: packages/constants/src/datetime.ts:12 |
404 | - __( 'Upcoming', 'event_espresso' ), |
|
404 | + __('Upcoming', 'event_espresso'), |
|
405 | 405 | |
406 | 406 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/config.ts:7 |
407 | - __( 'Edit Event Date Details', 'event_espresso' ), |
|
407 | + __('Edit Event Date Details', 'event_espresso'), |
|
408 | 408 | |
409 | 409 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/config.ts:8 |
410 | - __( 'View Registrations for this Date', 'event_espresso' ), |
|
410 | + __('View Registrations for this Date', 'event_espresso'), |
|
411 | 411 | |
412 | 412 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/config.ts:9 |
413 | - __( 'Manage Ticket Assignments', 'event_espresso' ), |
|
413 | + __('Manage Ticket Assignments', 'event_espresso'), |
|
414 | 414 | |
415 | 415 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/editable/EditableName.tsx:23 |
416 | 416 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/editable/EditableName.tsx:34 |
417 | - __( 'edit title…', 'event_espresso' ), |
|
417 | + __('edit title…', 'event_espresso'), |
|
418 | 418 | |
419 | 419 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/filterBar/ActiveDatesFilters.tsx:25 |
420 | 420 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/filterBar/ActiveTicketsFilters.tsx:25 |
421 | - __( 'ON', 'event_espresso' ), |
|
421 | + __('ON', 'event_espresso'), |
|
422 | 422 | |
423 | 423 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:10 |
424 | - __( 'end dates only', 'event_espresso' ), |
|
424 | + __('end dates only', 'event_espresso'), |
|
425 | 425 | |
426 | 426 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:11 |
427 | - __( 'start and end dates', 'event_espresso' ), |
|
427 | + __('start and end dates', 'event_espresso'), |
|
428 | 428 | |
429 | 429 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:16 |
430 | - __( 'dates above 90% capacity', 'event_espresso' ), |
|
430 | + __('dates above 90% capacity', 'event_espresso'), |
|
431 | 431 | |
432 | 432 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:17 |
433 | - __( 'dates above 75% capacity', 'event_espresso' ), |
|
433 | + __('dates above 75% capacity', 'event_espresso'), |
|
434 | 434 | |
435 | 435 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:18 |
436 | - __( 'dates above 50% capacity', 'event_espresso' ), |
|
436 | + __('dates above 50% capacity', 'event_espresso'), |
|
437 | 437 | |
438 | 438 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:19 |
439 | - __( 'dates below 50% capacity', 'event_espresso' ), |
|
439 | + __('dates below 50% capacity', 'event_espresso'), |
|
440 | 440 | |
441 | 441 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:23 |
442 | - __( 'all dates', 'event_espresso' ), |
|
442 | + __('all dates', 'event_espresso'), |
|
443 | 443 | |
444 | 444 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:24 |
445 | - __( 'all active and upcoming', 'event_espresso' ), |
|
445 | + __('all active and upcoming', 'event_espresso'), |
|
446 | 446 | |
447 | 447 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:25 |
448 | - __( 'active dates only', 'event_espresso' ), |
|
448 | + __('active dates only', 'event_espresso'), |
|
449 | 449 | |
450 | 450 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:26 |
451 | - __( 'upcoming dates only', 'event_espresso' ), |
|
451 | + __('upcoming dates only', 'event_espresso'), |
|
452 | 452 | |
453 | 453 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:27 |
454 | - __( 'next active or upcoming only', 'event_espresso' ), |
|
454 | + __('next active or upcoming only', 'event_espresso'), |
|
455 | 455 | |
456 | 456 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:28 |
457 | - __( 'sold out dates only', 'event_espresso' ), |
|
457 | + __('sold out dates only', 'event_espresso'), |
|
458 | 458 | |
459 | 459 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:29 |
460 | - __( 'recently expired dates', 'event_espresso' ), |
|
460 | + __('recently expired dates', 'event_espresso'), |
|
461 | 461 | |
462 | 462 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:30 |
463 | - __( 'all expired dates', 'event_espresso' ), |
|
463 | + __('all expired dates', 'event_espresso'), |
|
464 | 464 | |
465 | 465 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:31 |
466 | - __( 'trashed dates only', 'event_espresso' ), |
|
466 | + __('trashed dates only', 'event_espresso'), |
|
467 | 467 | |
468 | 468 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:35 |
469 | 469 | // Reference: packages/dates/src/components/DateRangePicker/DateRangePickerLegend.tsx:9 |
470 | 470 | // Reference: packages/dates/src/components/DateRangePicker/index.tsx:61 |
471 | - __( 'start date', 'event_espresso' ), |
|
471 | + __('start date', 'event_espresso'), |
|
472 | 472 | |
473 | 473 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:36 |
474 | 474 | // Reference: packages/ui-components/src/FormBuilder/FormSection/Tabs/Settings.tsx:26 |
475 | - __( 'name', 'event_espresso' ), |
|
475 | + __('name', 'event_espresso'), |
|
476 | 476 | |
477 | 477 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:37 |
478 | 478 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/tableView/useHeaderRowGenerator.tsx:31 |
@@ -480,141 +480,141 @@ discard block |
||
480 | 480 | // Reference: domains/core/admin/eventEditor/src/ui/ticketAssignmentsManager/components/table/HeaderCell.tsx:27 |
481 | 481 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/tableView/useHeaderRowGenerator.tsx:31 |
482 | 482 | // Reference: packages/tpc/src/components/table/useHeaderRowGenerator.ts:23 |
483 | - __( 'ID', 'event_espresso' ), |
|
483 | + __('ID', 'event_espresso'), |
|
484 | 484 | |
485 | 485 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:38 |
486 | 486 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:47 |
487 | - __( 'custom order', 'event_espresso' ), |
|
487 | + __('custom order', 'event_espresso'), |
|
488 | 488 | |
489 | 489 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:42 |
490 | 490 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:51 |
491 | - __( 'display', 'event_espresso' ), |
|
491 | + __('display', 'event_espresso'), |
|
492 | 492 | |
493 | 493 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:43 |
494 | - __( 'recurrence', 'event_espresso' ), |
|
494 | + __('recurrence', 'event_espresso'), |
|
495 | 495 | |
496 | 496 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:44 |
497 | 497 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:53 |
498 | - __( 'sales', 'event_espresso' ), |
|
498 | + __('sales', 'event_espresso'), |
|
499 | 499 | |
500 | 500 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:45 |
501 | 501 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:55 |
502 | - __( 'sort by', 'event_espresso' ), |
|
502 | + __('sort by', 'event_espresso'), |
|
503 | 503 | |
504 | 504 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:46 |
505 | 505 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:54 |
506 | 506 | // Reference: packages/ee-components/src/EntityList/EntityListFilterBar.tsx:53 |
507 | - __( 'search', 'event_espresso' ), |
|
507 | + __('search', 'event_espresso'), |
|
508 | 508 | |
509 | 509 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:47 |
510 | 510 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:56 |
511 | - __( 'status', 'event_espresso' ), |
|
511 | + __('status', 'event_espresso'), |
|
512 | 512 | |
513 | 513 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/filterBar/controls/options.ts:9 |
514 | - __( 'start dates only', 'event_espresso' ), |
|
514 | + __('start dates only', 'event_espresso'), |
|
515 | 515 | |
516 | 516 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/newDateOptions/AddSingleDate.tsx:26 |
517 | 517 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/newDateOptions/NewDateModal.tsx:12 |
518 | 518 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/newDateOptions/OptionsModalButton.tsx:16 |
519 | - __( 'Add New Date', 'event_espresso' ), |
|
519 | + __('Add New Date', 'event_espresso'), |
|
520 | 520 | |
521 | 521 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/newDateOptions/AddSingleDate.tsx:26 |
522 | - __( 'Add Single Date', 'event_espresso' ), |
|
522 | + __('Add Single Date', 'event_espresso'), |
|
523 | 523 | |
524 | 524 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/newDateOptions/AddSingleDate.tsx:43 |
525 | - __( 'Add a single date that only occurs once', 'event_espresso' ), |
|
525 | + __('Add a single date that only occurs once', 'event_espresso'), |
|
526 | 526 | |
527 | 527 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/newDateOptions/AddSingleDate.tsx:45 |
528 | - __( 'Single Date', 'event_espresso' ), |
|
528 | + __('Single Date', 'event_espresso'), |
|
529 | 529 | |
530 | 530 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/tableView/useHeaderRowGenerator.tsx:106 |
531 | - __( 'Reg list', 'event_espresso' ), |
|
531 | + __('Reg list', 'event_espresso'), |
|
532 | 532 | |
533 | 533 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/tableView/useHeaderRowGenerator.tsx:107 |
534 | 534 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/tableView/useHeaderRowGenerator.tsx:111 |
535 | - __( 'Regs', 'event_espresso' ), |
|
535 | + __('Regs', 'event_espresso'), |
|
536 | 536 | |
537 | 537 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/tableView/useHeaderRowGenerator.tsx:122 |
538 | 538 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/tableView/useHeaderRowGenerator.tsx:126 |
539 | 539 | // Reference: packages/tpc/src/components/table/useHeaderRowGenerator.ts:59 |
540 | - __( 'Actions', 'event_espresso' ), |
|
540 | + __('Actions', 'event_espresso'), |
|
541 | 541 | |
542 | 542 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/tableView/useHeaderRowGenerator.tsx:52 |
543 | - __( 'Start', 'event_espresso' ), |
|
543 | + __('Start', 'event_espresso'), |
|
544 | 544 | |
545 | 545 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/tableView/useHeaderRowGenerator.tsx:66 |
546 | - __( 'End', 'event_espresso' ), |
|
546 | + __('End', 'event_espresso'), |
|
547 | 547 | |
548 | 548 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/tableView/useHeaderRowGenerator.tsx:82 |
549 | - __( 'Cap', 'event_espresso' ), |
|
549 | + __('Cap', 'event_espresso'), |
|
550 | 550 | |
551 | 551 | // Reference: domains/core/admin/eventEditor/src/ui/datetimes/datesList/tableView/useHeaderRowGenerator.tsx:94 |
552 | 552 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/tableView/useHeaderRowGenerator.tsx:98 |
553 | - __( 'Sold', 'event_espresso' ), |
|
553 | + __('Sold', 'event_espresso'), |
|
554 | 554 | |
555 | 555 | // Reference: domains/core/admin/eventEditor/src/ui/registrationForm/RegistrationForm.tsx:248 |
556 | - __( 'Registration Form Builder', 'event_espresso' ), |
|
556 | + __('Registration Form Builder', 'event_espresso'), |
|
557 | 557 | |
558 | 558 | // Reference: domains/core/admin/eventEditor/src/ui/ticketAssignmentsManager/components/ErrorMessage.tsx:18 |
559 | - __( 'Tickets must always have at least one date assigned to them but one or more of the tickets below does not have any. |
|
560 | -Please correct the assignments for the highlighted cells.', 'event_espresso' ), |
|
559 | + __('Tickets must always have at least one date assigned to them but one or more of the tickets below does not have any. |
|
560 | +Please correct the assignments for the highlighted cells.', 'event_espresso'), |
|
561 | 561 | |
562 | 562 | // Reference: domains/core/admin/eventEditor/src/ui/ticketAssignmentsManager/components/ErrorMessage.tsx:22 |
563 | - __( '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. |
|
564 | -Please correct the assignments for the highlighted cells.', 'event_espresso' ), |
|
563 | + __('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. |
|
564 | +Please correct the assignments for the highlighted cells.', 'event_espresso'), |
|
565 | 565 | |
566 | 566 | // Reference: domains/core/admin/eventEditor/src/ui/ticketAssignmentsManager/components/ErrorMessage.tsx:32 |
567 | - __( 'Please Update Assignments', 'event_espresso' ), |
|
567 | + __('Please Update Assignments', 'event_espresso'), |
|
568 | 568 | |
569 | 569 | // Reference: domains/core/admin/eventEditor/src/ui/ticketAssignmentsManager/components/ModalContainer.tsx:26 |
570 | - __( 'There seem to be some dates/tickets which have no tickets/dates assigned. Do you want to fix them now?', 'event_espresso' ), |
|
570 | + __('There seem to be some dates/tickets which have no tickets/dates assigned. Do you want to fix them now?', 'event_espresso'), |
|
571 | 571 | |
572 | 572 | // Reference: domains/core/admin/eventEditor/src/ui/ticketAssignmentsManager/components/ModalContainer.tsx:29 |
573 | 573 | // Reference: packages/tpc/src/hooks/useLockedTicketAction.ts:74 |
574 | 574 | // Reference: packages/ui-components/src/Modal/ModalWithAlert.tsx:21 |
575 | - __( 'Alert!', 'event_espresso' ), |
|
575 | + __('Alert!', 'event_espresso'), |
|
576 | 576 | |
577 | 577 | // Reference: domains/core/admin/eventEditor/src/ui/ticketAssignmentsManager/components/ModalContainer.tsx:42 |
578 | 578 | /* translators: 1 entity id, 2 entity name */ |
579 | - __( 'Ticket Assignment Manager for Datetime: %1$s - %2$s', 'event_espresso' ), |
|
579 | + __('Ticket Assignment Manager for Datetime: %1$s - %2$s', 'event_espresso'), |
|
580 | 580 | |
581 | 581 | // Reference: domains/core/admin/eventEditor/src/ui/ticketAssignmentsManager/components/ModalContainer.tsx:49 |
582 | 582 | /* translators: 1 entity id, 2 entity name */ |
583 | - __( 'Ticket Assignment Manager for Ticket: %1$s - %2$s', 'event_espresso' ), |
|
583 | + __('Ticket Assignment Manager for Ticket: %1$s - %2$s', 'event_espresso'), |
|
584 | 584 | |
585 | 585 | // Reference: domains/core/admin/eventEditor/src/ui/ticketAssignmentsManager/components/TicketAssignmentsManagerModal.tsx:28 |
586 | 586 | // Reference: domains/core/admin/eventEditor/src/ui/ticketAssignmentsManager/components/table/Table.tsx:13 |
587 | - __( 'Ticket Assignment Manager', 'event_espresso' ), |
|
587 | + __('Ticket Assignment Manager', 'event_espresso'), |
|
588 | 588 | |
589 | 589 | // Reference: domains/core/admin/eventEditor/src/ui/ticketAssignmentsManager/components/config.ts:10 |
590 | - __( 'existing relation', 'event_espresso' ), |
|
590 | + __('existing relation', 'event_espresso'), |
|
591 | 591 | |
592 | 592 | // Reference: domains/core/admin/eventEditor/src/ui/ticketAssignmentsManager/components/config.ts:15 |
593 | - __( 'remove existing relation', 'event_espresso' ), |
|
593 | + __('remove existing relation', 'event_espresso'), |
|
594 | 594 | |
595 | 595 | // Reference: domains/core/admin/eventEditor/src/ui/ticketAssignmentsManager/components/config.ts:20 |
596 | - __( 'add new relation', 'event_espresso' ), |
|
596 | + __('add new relation', 'event_espresso'), |
|
597 | 597 | |
598 | 598 | // Reference: domains/core/admin/eventEditor/src/ui/ticketAssignmentsManager/components/config.ts:25 |
599 | - __( 'invalid relation', 'event_espresso' ), |
|
599 | + __('invalid relation', 'event_espresso'), |
|
600 | 600 | |
601 | 601 | // Reference: domains/core/admin/eventEditor/src/ui/ticketAssignmentsManager/components/config.ts:29 |
602 | - __( 'no relation', 'event_espresso' ), |
|
602 | + __('no relation', 'event_espresso'), |
|
603 | 603 | |
604 | 604 | // Reference: domains/core/admin/eventEditor/src/ui/ticketAssignmentsManager/components/table/BodyCell.tsx:24 |
605 | - __( 'assign ticket', 'event_espresso' ), |
|
605 | + __('assign ticket', 'event_espresso'), |
|
606 | 606 | |
607 | 607 | // Reference: domains/core/admin/eventEditor/src/ui/ticketAssignmentsManager/components/table/useGetHeaderRows.tsx:15 |
608 | - __( 'Assignments', 'event_espresso' ), |
|
608 | + __('Assignments', 'event_espresso'), |
|
609 | 609 | |
610 | 610 | // Reference: domains/core/admin/eventEditor/src/ui/ticketAssignmentsManager/components/table/useGetHeaderRows.tsx:16 |
611 | - __( 'Event Dates are listed below', 'event_espresso' ), |
|
611 | + __('Event Dates are listed below', 'event_espresso'), |
|
612 | 612 | |
613 | 613 | // Reference: domains/core/admin/eventEditor/src/ui/ticketAssignmentsManager/components/table/useGetHeaderRows.tsx:17 |
614 | - __( 'Tickets are listed along the top', 'event_espresso' ), |
|
614 | + __('Tickets are listed along the top', 'event_espresso'), |
|
615 | 615 | |
616 | 616 | // Reference: domains/core/admin/eventEditor/src/ui/ticketAssignmentsManager/components/table/useGetHeaderRows.tsx:18 |
617 | - __( 'Click the cell buttons to toggle assigments', 'event_espresso' ), |
|
617 | + __('Click the cell buttons to toggle assigments', 'event_espresso'), |
|
618 | 618 | |
619 | 619 | // Reference: domains/core/admin/eventEditor/src/ui/ticketAssignmentsManager/components/useSubmitButtonProps.ts:29 |
620 | 620 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/bulkEdit/prices/buttons/FooterButtons.tsx:16 |
@@ -623,1292 +623,1292 @@ discard block |
||
623 | 623 | // Reference: packages/tpc/src/buttons/useSubmitButtonProps.tsx:29 |
624 | 624 | // Reference: packages/ui-components/src/Modal/useSubmitButtonProps.tsx:13 |
625 | 625 | // Reference: packages/ui-components/src/Stepper/buttons/Submit.tsx:7 |
626 | - __( 'Submit', 'event_espresso' ), |
|
626 | + __('Submit', 'event_espresso'), |
|
627 | 627 | |
628 | 628 | // Reference: domains/core/admin/eventEditor/src/ui/ticketAssignmentsManager/filters/controls/DatesByMonthControl.tsx:19 |
629 | - __( 'All Dates', 'event_espresso' ), |
|
629 | + __('All Dates', 'event_espresso'), |
|
630 | 630 | |
631 | 631 | // Reference: domains/core/admin/eventEditor/src/ui/ticketAssignmentsManager/filters/controls/DatesByMonthControl.tsx:26 |
632 | - __( 'dates by month', 'event_espresso' ), |
|
632 | + __('dates by month', 'event_espresso'), |
|
633 | 633 | |
634 | 634 | // Reference: domains/core/admin/eventEditor/src/ui/ticketAssignmentsManager/filters/controls/ShowExpiredTicketsControl.tsx:16 |
635 | - __( 'show expired tickets', 'event_espresso' ), |
|
635 | + __('show expired tickets', 'event_espresso'), |
|
636 | 636 | |
637 | 637 | // Reference: domains/core/admin/eventEditor/src/ui/ticketAssignmentsManager/filters/controls/ShowTrashedDatesControl.tsx:13 |
638 | - __( 'show trashed dates', 'event_espresso' ), |
|
638 | + __('show trashed dates', 'event_espresso'), |
|
639 | 639 | |
640 | 640 | // Reference: domains/core/admin/eventEditor/src/ui/ticketAssignmentsManager/filters/controls/ShowTrashedTicketsControl.tsx:16 |
641 | - __( 'show trashed tickets', 'event_espresso' ), |
|
641 | + __('show trashed tickets', 'event_espresso'), |
|
642 | 642 | |
643 | 643 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/TicketRegistrationsLink.tsx:13 |
644 | - __( 'total registrations.', 'event_espresso' ), |
|
644 | + __('total registrations.', 'event_espresso'), |
|
645 | 645 | |
646 | 646 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/TicketRegistrationsLink.tsx:14 |
647 | - __( 'view ALL registrations for this ticket.', 'event_espresso' ), |
|
647 | + __('view ALL registrations for this ticket.', 'event_espresso'), |
|
648 | 648 | |
649 | 649 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/defaultTickets/Container.tsx:38 |
650 | 650 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/actions/Actions.tsx:21 |
651 | - __( 'Default tickets', 'event_espresso' ), |
|
651 | + __('Default tickets', 'event_espresso'), |
|
652 | 652 | |
653 | 653 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/defaultTickets/multiStep/FooterButtons.tsx:26 |
654 | 654 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketForm/multiStep/FooterButtons.tsx:33 |
655 | - __( 'Set ticket prices', 'event_espresso' ), |
|
655 | + __('Set ticket prices', 'event_espresso'), |
|
656 | 656 | |
657 | 657 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/defaultTickets/multiStep/FooterButtons.tsx:31 |
658 | - __( 'Skip prices - Save', 'event_espresso' ), |
|
658 | + __('Skip prices - Save', 'event_espresso'), |
|
659 | 659 | |
660 | 660 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/defaultTickets/multiStep/FooterButtons.tsx:37 |
661 | 661 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketForm/multiStep/FooterButtons.tsx:57 |
662 | - __( 'Ticket details', 'event_espresso' ), |
|
662 | + __('Ticket details', 'event_espresso'), |
|
663 | 663 | |
664 | 664 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/defaultTickets/multiStep/FooterButtons.tsx:38 |
665 | - __( 'Save', 'event_espresso' ), |
|
665 | + __('Save', 'event_espresso'), |
|
666 | 666 | |
667 | 667 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/defaultTickets/multiStep/Modal.tsx:22 |
668 | 668 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketForm/multiStep/Modal.tsx:26 |
669 | 669 | /* translators: %s ticket id */ |
670 | - __( 'Edit ticket %s', 'event_espresso' ), |
|
670 | + __('Edit ticket %s', 'event_espresso'), |
|
671 | 671 | |
672 | 672 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/defaultTickets/multiStep/Modal.tsx:25 |
673 | 673 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketForm/multiStep/Modal.tsx:29 |
674 | - __( 'New Ticket Details', 'event_espresso' ), |
|
674 | + __('New Ticket Details', 'event_espresso'), |
|
675 | 675 | |
676 | 676 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/defaultTickets/multiStep/TicketFormSteps.tsx:10 |
677 | 677 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketForm/multiStep/TicketFormSteps.tsx:10 |
678 | - __( 'primary information about the ticket', 'event_espresso' ), |
|
678 | + __('primary information about the ticket', 'event_espresso'), |
|
679 | 679 | |
680 | 680 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/defaultTickets/multiStep/TicketFormSteps.tsx:10 |
681 | 681 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketForm/multiStep/TicketFormSteps.tsx:10 |
682 | - __( 'Ticket Details', 'event_espresso' ), |
|
682 | + __('Ticket Details', 'event_espresso'), |
|
683 | 683 | |
684 | 684 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/defaultTickets/multiStep/TicketFormSteps.tsx:12 |
685 | 685 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketForm/multiStep/TicketFormSteps.tsx:12 |
686 | - __( 'apply ticket price modifiers and taxes', 'event_espresso' ), |
|
686 | + __('apply ticket price modifiers and taxes', 'event_espresso'), |
|
687 | 687 | |
688 | 688 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/defaultTickets/multiStep/TicketFormSteps.tsx:14 |
689 | 689 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketForm/multiStep/TicketFormSteps.tsx:14 |
690 | - __( 'Price Calculator', 'event_espresso' ), |
|
690 | + __('Price Calculator', 'event_espresso'), |
|
691 | 691 | |
692 | 692 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/defaultTickets/multiStep/TicketFormSteps.tsx:16 |
693 | 693 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketForm/multiStep/TicketFormSteps.tsx:16 |
694 | - __( 'Assign Dates', 'event_espresso' ), |
|
694 | + __('Assign Dates', 'event_espresso'), |
|
695 | 695 | |
696 | 696 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketForm/multiStep/FooterButtons.tsx:39 |
697 | - __( 'Skip prices - assign dates', 'event_espresso' ), |
|
697 | + __('Skip prices - assign dates', 'event_espresso'), |
|
698 | 698 | |
699 | 699 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketForm/multiStep/FooterButtons.tsx:50 |
700 | - __( 'Save and assign dates', 'event_espresso' ), |
|
700 | + __('Save and assign dates', 'event_espresso'), |
|
701 | 701 | |
702 | 702 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketForm/useTicketFormConfig.ts:104 |
703 | - __( 'Ticket Sales', 'event_espresso' ), |
|
703 | + __('Ticket Sales', 'event_espresso'), |
|
704 | 704 | |
705 | 705 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketForm/useTicketFormConfig.ts:130 |
706 | 706 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/bulkEdit/details/useBulkEditFormConfig.ts:112 |
707 | - __( 'Quantity For Sale', 'event_espresso' ), |
|
707 | + __('Quantity For Sale', 'event_espresso'), |
|
708 | 708 | |
709 | 709 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketForm/useTicketFormConfig.ts:136 |
710 | - __( 'The maximum number of this ticket available for sale.', 'event_espresso' ), |
|
710 | + __('The maximum number of this ticket available for sale.', 'event_espresso'), |
|
711 | 711 | |
712 | 712 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketForm/useTicketFormConfig.ts:138 |
713 | - __( 'Set to 0 to stop sales, or leave blank for no limit.', 'event_espresso' ), |
|
713 | + __('Set to 0 to stop sales, or leave blank for no limit.', 'event_espresso'), |
|
714 | 714 | |
715 | 715 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketForm/useTicketFormConfig.ts:144 |
716 | 716 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/bulkEdit/details/useBulkEditFormConfig.ts:121 |
717 | - __( 'Number of Uses', 'event_espresso' ), |
|
717 | + __('Number of Uses', 'event_espresso'), |
|
718 | 718 | |
719 | 719 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketForm/useTicketFormConfig.ts:150 |
720 | - __( 'Controls the total number of times this ticket can be used, regardless of the number of dates it is assigned to.', 'event_espresso' ), |
|
720 | + __('Controls the total number of times this ticket can be used, regardless of the number of dates it is assigned to.', 'event_espresso'), |
|
721 | 721 | |
722 | 722 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketForm/useTicketFormConfig.ts:154 |
723 | - __( 'Example: A ticket might have access to 4 different dates, but setting this field to 2 would mean that the ticket could only be used twice. Leave blank for no limit.', 'event_espresso' ), |
|
723 | + __('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'), |
|
724 | 724 | |
725 | 725 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketForm/useTicketFormConfig.ts:162 |
726 | 726 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/bulkEdit/details/useBulkEditFormConfig.ts:129 |
727 | - __( 'Minimum Quantity', 'event_espresso' ), |
|
727 | + __('Minimum Quantity', 'event_espresso'), |
|
728 | 728 | |
729 | 729 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketForm/useTicketFormConfig.ts:167 |
730 | - __( 'The minimum quantity that can be selected for this ticket. Use this to create ticket bundles or graduated pricing.', 'event_espresso' ), |
|
730 | + __('The minimum quantity that can be selected for this ticket. Use this to create ticket bundles or graduated pricing.', 'event_espresso'), |
|
731 | 731 | |
732 | 732 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketForm/useTicketFormConfig.ts:171 |
733 | - __( 'Leave blank for no minimum.', 'event_espresso' ), |
|
733 | + __('Leave blank for no minimum.', 'event_espresso'), |
|
734 | 734 | |
735 | 735 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketForm/useTicketFormConfig.ts:177 |
736 | 736 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/bulkEdit/details/useBulkEditFormConfig.ts:137 |
737 | - __( 'Maximum Quantity', 'event_espresso' ), |
|
737 | + __('Maximum Quantity', 'event_espresso'), |
|
738 | 738 | |
739 | 739 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketForm/useTicketFormConfig.ts:183 |
740 | - __( 'The maximum quantity that can be selected for this ticket. Use this to create ticket bundles or graduated pricing.', 'event_espresso' ), |
|
740 | + __('The maximum quantity that can be selected for this ticket. Use this to create ticket bundles or graduated pricing.', 'event_espresso'), |
|
741 | 741 | |
742 | 742 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketForm/useTicketFormConfig.ts:187 |
743 | - __( 'Leave blank for no maximum.', 'event_espresso' ), |
|
743 | + __('Leave blank for no maximum.', 'event_espresso'), |
|
744 | 744 | |
745 | 745 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketForm/useTicketFormConfig.ts:193 |
746 | 746 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/bulkEdit/details/useBulkEditFormConfig.ts:146 |
747 | - __( 'Required Ticket', 'event_espresso' ), |
|
747 | + __('Required Ticket', 'event_espresso'), |
|
748 | 748 | |
749 | 749 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketForm/useTicketFormConfig.ts:195 |
750 | - __( 'If enabled, the ticket must be selected and will appear first in frontend ticket lists.', 'event_espresso' ), |
|
750 | + __('If enabled, the ticket must be selected and will appear first in frontend ticket lists.', 'event_espresso'), |
|
751 | 751 | |
752 | 752 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketForm/useTicketFormConfig.ts:209 |
753 | - __( 'Visibility', 'event_espresso' ), |
|
753 | + __('Visibility', 'event_espresso'), |
|
754 | 754 | |
755 | 755 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketForm/useTicketFormConfig.ts:211 |
756 | - __( 'Where the ticket can be viewed throughout the UI.', 'event_espresso' ), |
|
756 | + __('Where the ticket can be viewed throughout the UI.', 'event_espresso'), |
|
757 | 757 | |
758 | 758 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/TicketsList.tsx:35 |
759 | - __( 'Available Tickets', 'event_espresso' ), |
|
759 | + __('Available Tickets', 'event_espresso'), |
|
760 | 760 | |
761 | 761 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/TicketsList.tsx:38 |
762 | - __( 'loading tickets…', 'event_espresso' ), |
|
762 | + __('loading tickets…', 'event_espresso'), |
|
763 | 763 | |
764 | 764 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/actionsMenu/AssignDatesButton.tsx:26 |
765 | - __( 'Number of related dates', 'event_espresso' ), |
|
765 | + __('Number of related dates', 'event_espresso'), |
|
766 | 766 | |
767 | 767 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/actionsMenu/AssignDatesButton.tsx:27 |
768 | - __( 'There are no event dates assigned to this ticket. Please click the calendar icon to update the assignments.', 'event_espresso' ), |
|
768 | + __('There are no event dates assigned to this ticket. Please click the calendar icon to update the assignments.', 'event_espresso'), |
|
769 | 769 | |
770 | 770 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/actionsMenu/AssignDatesButton.tsx:37 |
771 | - __( 'assign dates', 'event_espresso' ), |
|
771 | + __('assign dates', 'event_espresso'), |
|
772 | 772 | |
773 | 773 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/actionsMenu/dropdown/DeleteTicket.tsx:18 |
774 | - __( 'Permanently delete Ticket?', 'event_espresso' ), |
|
774 | + __('Permanently delete Ticket?', 'event_espresso'), |
|
775 | 775 | |
776 | 776 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/actionsMenu/dropdown/DeleteTicket.tsx:18 |
777 | - __( 'Move Ticket to Trash?', 'event_espresso' ), |
|
777 | + __('Move Ticket to Trash?', 'event_espresso'), |
|
778 | 778 | |
779 | 779 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/actionsMenu/dropdown/DeleteTicket.tsx:21 |
780 | - __( 'Are you sure you want to permanently delete this ticket? This action is permanent and can not be undone.', 'event_espresso' ), |
|
780 | + __('Are you sure you want to permanently delete this ticket? This action is permanent and can not be undone.', 'event_espresso'), |
|
781 | 781 | |
782 | 782 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/actionsMenu/dropdown/DeleteTicket.tsx:22 |
783 | - __( 'Are you sure you want to move this ticket to the trash? You can "untrash" this ticket later if you need to.', 'event_espresso' ), |
|
783 | + __('Are you sure you want to move this ticket to the trash? You can "untrash" this ticket later if you need to.', 'event_espresso'), |
|
784 | 784 | |
785 | 785 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/actionsMenu/dropdown/DeleteTicket.tsx:44 |
786 | 786 | // Reference: packages/ee-components/src/SimpleTicketCard/actions/Trash.tsx:6 |
787 | - __( 'trash ticket', 'event_espresso' ), |
|
787 | + __('trash ticket', 'event_espresso'), |
|
788 | 788 | |
789 | 789 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/actionsMenu/dropdown/TicketMainMenu.tsx:25 |
790 | - __( 'ticket main menu', 'event_espresso' ), |
|
790 | + __('ticket main menu', 'event_espresso'), |
|
791 | 791 | |
792 | 792 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/actionsMenu/dropdown/TicketMainMenu.tsx:38 |
793 | 793 | // Reference: packages/ee-components/src/SimpleTicketCard/actions/Edit.tsx:15 |
794 | - __( 'edit ticket', 'event_espresso' ), |
|
794 | + __('edit ticket', 'event_espresso'), |
|
795 | 795 | |
796 | 796 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/actionsMenu/dropdown/TicketMainMenu.tsx:39 |
797 | - __( 'copy ticket', 'event_espresso' ), |
|
797 | + __('copy ticket', 'event_espresso'), |
|
798 | 798 | |
799 | 799 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/bulkEdit/actions/Actions.tsx:43 |
800 | - __( 'edit ticket details', 'event_espresso' ), |
|
800 | + __('edit ticket details', 'event_espresso'), |
|
801 | 801 | |
802 | 802 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/bulkEdit/actions/Actions.tsx:47 |
803 | - __( 'delete tickets', 'event_espresso' ), |
|
803 | + __('delete tickets', 'event_espresso'), |
|
804 | 804 | |
805 | 805 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/bulkEdit/actions/Actions.tsx:47 |
806 | - __( 'trash tickets', 'event_espresso' ), |
|
806 | + __('trash tickets', 'event_espresso'), |
|
807 | 807 | |
808 | 808 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/bulkEdit/actions/Actions.tsx:51 |
809 | - __( 'edit ticket prices', 'event_espresso' ), |
|
809 | + __('edit ticket prices', 'event_espresso'), |
|
810 | 810 | |
811 | 811 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/bulkEdit/delete/Delete.tsx:14 |
812 | - __( 'Are you sure you want to permanently delete these tickets? This action can NOT be undone!', 'event_espresso' ), |
|
812 | + __('Are you sure you want to permanently delete these tickets? This action can NOT be undone!', 'event_espresso'), |
|
813 | 813 | |
814 | 814 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/bulkEdit/delete/Delete.tsx:15 |
815 | - __( 'Are you sure you want to trash these tickets?', 'event_espresso' ), |
|
815 | + __('Are you sure you want to trash these tickets?', 'event_espresso'), |
|
816 | 816 | |
817 | 817 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/bulkEdit/delete/Delete.tsx:16 |
818 | - __( 'Delete tickets permanently', 'event_espresso' ), |
|
818 | + __('Delete tickets permanently', 'event_espresso'), |
|
819 | 819 | |
820 | 820 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/bulkEdit/delete/Delete.tsx:16 |
821 | - __( 'Trash tickets', 'event_espresso' ), |
|
821 | + __('Trash tickets', 'event_espresso'), |
|
822 | 822 | |
823 | 823 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/bulkEdit/details/EditDetails.tsx:21 |
824 | - __( 'Bulk edit ticket details', 'event_espresso' ), |
|
824 | + __('Bulk edit ticket details', 'event_espresso'), |
|
825 | 825 | |
826 | 826 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/bulkEdit/details/EditDetails.tsx:22 |
827 | - __( 'any changes will be applied to ALL of the selected tickets.', 'event_espresso' ), |
|
827 | + __('any changes will be applied to ALL of the selected tickets.', 'event_espresso'), |
|
828 | 828 | |
829 | 829 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/bulkEdit/prices/EditPrices.tsx:19 |
830 | - __( 'Bulk edit ticket prices', 'event_espresso' ), |
|
830 | + __('Bulk edit ticket prices', 'event_espresso'), |
|
831 | 831 | |
832 | 832 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/bulkEdit/prices/buttons/EditModeButtons.tsx:20 |
833 | - __( 'Edit all prices together', 'event_espresso' ), |
|
833 | + __('Edit all prices together', 'event_espresso'), |
|
834 | 834 | |
835 | 835 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/bulkEdit/prices/buttons/EditModeButtons.tsx:21 |
836 | - __( 'Edit all the selected ticket prices dynamically', 'event_espresso' ), |
|
836 | + __('Edit all the selected ticket prices dynamically', 'event_espresso'), |
|
837 | 837 | |
838 | 838 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/bulkEdit/prices/buttons/EditModeButtons.tsx:25 |
839 | - __( 'Edit prices individually', 'event_espresso' ), |
|
839 | + __('Edit prices individually', 'event_espresso'), |
|
840 | 840 | |
841 | 841 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/bulkEdit/prices/buttons/EditModeButtons.tsx:26 |
842 | - __( 'Edit prices for each ticket individually', 'event_espresso' ), |
|
842 | + __('Edit prices for each ticket individually', 'event_espresso'), |
|
843 | 843 | |
844 | 844 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/bulkEdit/prices/buttons/FooterButtons.tsx:14 |
845 | 845 | // Reference: packages/ee-components/src/bulkEdit/details/Submit.tsx:34 |
846 | 846 | // Reference: packages/form/src/ResetButton.tsx:18 |
847 | 847 | // Reference: packages/tpc/src/buttons/useResetButtonProps.tsx:12 |
848 | - __( 'Reset', 'event_espresso' ), |
|
848 | + __('Reset', 'event_espresso'), |
|
849 | 849 | |
850 | 850 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/bulkEdit/prices/buttons/FooterButtons.tsx:15 |
851 | 851 | // Reference: packages/tpc/src/hooks/useLockedTicketAction.ts:76 |
852 | 852 | // Reference: packages/ui-components/src/FormBuilder/FormSection/FormSectionSidebar.tsx:138 |
853 | 853 | // Reference: packages/ui-components/src/Modal/useCancelButtonProps.tsx:10 |
854 | - __( 'Cancel', 'event_espresso' ), |
|
854 | + __('Cancel', 'event_espresso'), |
|
855 | 855 | |
856 | 856 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/bulkEdit/prices/editSeparately/TPCInstance.tsx:26 |
857 | 857 | /* translators: %s ticket name */ |
858 | - __( 'Edit prices for Ticket: %s', 'event_espresso' ), |
|
858 | + __('Edit prices for Ticket: %s', 'event_espresso'), |
|
859 | 859 | |
860 | 860 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/cardView/TicketCardSidebar.tsx:37 |
861 | - __( 'Edit Ticket Sale Dates', 'event_espresso' ), |
|
861 | + __('Edit Ticket Sale Dates', 'event_espresso'), |
|
862 | 862 | |
863 | 863 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/cardView/TicketCardSidebar.tsx:41 |
864 | - __( 'edit ticket sales start and end dates', 'event_espresso' ), |
|
864 | + __('edit ticket sales start and end dates', 'event_espresso'), |
|
865 | 865 | |
866 | 866 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/cardView/TicketDetailsPanel.tsx:28 |
867 | - __( 'quantity', 'event_espresso' ), |
|
867 | + __('quantity', 'event_espresso'), |
|
868 | 868 | |
869 | 869 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/cardView/TicketQuantity.tsx:27 |
870 | - __( 'edit quantity of tickets available…', 'event_espresso' ), |
|
870 | + __('edit quantity of tickets available…', 'event_espresso'), |
|
871 | 871 | |
872 | 872 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/config.ts:10 |
873 | - __( 'Move Ticket to Trash', 'event_espresso' ), |
|
873 | + __('Move Ticket to Trash', 'event_espresso'), |
|
874 | 874 | |
875 | 875 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/config.ts:15 |
876 | 876 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/tableView/useHeaderRowGenerator.tsx:52 |
877 | - __( 'On Sale', 'event_espresso' ), |
|
877 | + __('On Sale', 'event_espresso'), |
|
878 | 878 | |
879 | 879 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/config.ts:17 |
880 | - __( 'Pending', 'event_espresso' ), |
|
880 | + __('Pending', 'event_espresso'), |
|
881 | 881 | |
882 | 882 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/config.ts:7 |
883 | - __( 'Edit Ticket Details', 'event_espresso' ), |
|
883 | + __('Edit Ticket Details', 'event_espresso'), |
|
884 | 884 | |
885 | 885 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/config.ts:8 |
886 | - __( 'Manage Date Assignments', 'event_espresso' ), |
|
886 | + __('Manage Date Assignments', 'event_espresso'), |
|
887 | 887 | |
888 | 888 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/config.ts:9 |
889 | 889 | // Reference: packages/tpc/src/components/table/Table.tsx:44 |
890 | - __( 'Ticket Price Calculator', 'event_espresso' ), |
|
890 | + __('Ticket Price Calculator', 'event_espresso'), |
|
891 | 891 | |
892 | 892 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/editable/EditablePrice.tsx:39 |
893 | - __( 'edit ticket total…', 'event_espresso' ), |
|
893 | + __('edit ticket total…', 'event_espresso'), |
|
894 | 894 | |
895 | 895 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/editable/EditablePrice.tsx:53 |
896 | - __( 'set price…', 'event_espresso' ), |
|
896 | + __('set price…', 'event_espresso'), |
|
897 | 897 | |
898 | 898 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/IsChainedButton.tsx:23 |
899 | - __( 'tickets list is linked to dates list and is showing tickets for above dates only', 'event_espresso' ), |
|
899 | + __('tickets list is linked to dates list and is showing tickets for above dates only', 'event_espresso'), |
|
900 | 900 | |
901 | 901 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/IsChainedButton.tsx:24 |
902 | - __( 'tickets list is unlinked and is showing tickets for all event dates', 'event_espresso' ), |
|
902 | + __('tickets list is unlinked and is showing tickets for all event dates', 'event_espresso'), |
|
903 | 903 | |
904 | 904 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:10 |
905 | - __( 'ticket sales start and end dates', 'event_espresso' ), |
|
905 | + __('ticket sales start and end dates', 'event_espresso'), |
|
906 | 906 | |
907 | 907 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:15 |
908 | - __( 'tickets with 90% or more sold', 'event_espresso' ), |
|
908 | + __('tickets with 90% or more sold', 'event_espresso'), |
|
909 | 909 | |
910 | 910 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:16 |
911 | - __( 'tickets with 75% or more sold', 'event_espresso' ), |
|
911 | + __('tickets with 75% or more sold', 'event_espresso'), |
|
912 | 912 | |
913 | 913 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:17 |
914 | - __( 'tickets with 50% or more sold', 'event_espresso' ), |
|
914 | + __('tickets with 50% or more sold', 'event_espresso'), |
|
915 | 915 | |
916 | 916 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:19 |
917 | - __( 'tickets with less than 50% sold', 'event_espresso' ), |
|
917 | + __('tickets with less than 50% sold', 'event_espresso'), |
|
918 | 918 | |
919 | 919 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:28 |
920 | - __( 'all tickets for all dates', 'event_espresso' ), |
|
920 | + __('all tickets for all dates', 'event_espresso'), |
|
921 | 921 | |
922 | 922 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:29 |
923 | - __( 'all on sale and sale pending', 'event_espresso' ), |
|
923 | + __('all on sale and sale pending', 'event_espresso'), |
|
924 | 924 | |
925 | 925 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:30 |
926 | - __( 'on sale tickets only', 'event_espresso' ), |
|
926 | + __('on sale tickets only', 'event_espresso'), |
|
927 | 927 | |
928 | 928 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:31 |
929 | - __( 'sale pending tickets only', 'event_espresso' ), |
|
929 | + __('sale pending tickets only', 'event_espresso'), |
|
930 | 930 | |
931 | 931 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:32 |
932 | - __( 'next on sale or sale pending only', 'event_espresso' ), |
|
932 | + __('next on sale or sale pending only', 'event_espresso'), |
|
933 | 933 | |
934 | 934 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:33 |
935 | - __( 'sold out tickets only', 'event_espresso' ), |
|
935 | + __('sold out tickets only', 'event_espresso'), |
|
936 | 936 | |
937 | 937 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:34 |
938 | - __( 'expired tickets only', 'event_espresso' ), |
|
938 | + __('expired tickets only', 'event_espresso'), |
|
939 | 939 | |
940 | 940 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:35 |
941 | - __( 'trashed tickets only', 'event_espresso' ), |
|
941 | + __('trashed tickets only', 'event_espresso'), |
|
942 | 942 | |
943 | 943 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:40 |
944 | - __( 'all tickets for above dates', 'event_espresso' ), |
|
944 | + __('all tickets for above dates', 'event_espresso'), |
|
945 | 945 | |
946 | 946 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:44 |
947 | - __( 'ticket sale date', 'event_espresso' ), |
|
947 | + __('ticket sale date', 'event_espresso'), |
|
948 | 948 | |
949 | 949 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:45 |
950 | - __( 'ticket name', 'event_espresso' ), |
|
950 | + __('ticket name', 'event_espresso'), |
|
951 | 951 | |
952 | 952 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:46 |
953 | - __( 'ticket ID', 'event_espresso' ), |
|
953 | + __('ticket ID', 'event_espresso'), |
|
954 | 954 | |
955 | 955 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:52 |
956 | - __( 'link', 'event_espresso' ), |
|
956 | + __('link', 'event_espresso'), |
|
957 | 957 | |
958 | 958 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:8 |
959 | - __( 'ticket sales start date only', 'event_espresso' ), |
|
959 | + __('ticket sales start date only', 'event_espresso'), |
|
960 | 960 | |
961 | 961 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/filterBar/controls/options.ts:9 |
962 | - __( 'ticket sales end date only', 'event_espresso' ), |
|
962 | + __('ticket sales end date only', 'event_espresso'), |
|
963 | 963 | |
964 | 964 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/newTicketOptions/AddSingleTicket.tsx:18 |
965 | - __( 'Add New Ticket', 'event_espresso' ), |
|
965 | + __('Add New Ticket', 'event_espresso'), |
|
966 | 966 | |
967 | 967 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/newTicketOptions/AddSingleTicket.tsx:32 |
968 | - __( 'Add a single ticket and assign the dates to it', 'event_espresso' ), |
|
968 | + __('Add a single ticket and assign the dates to it', 'event_espresso'), |
|
969 | 969 | |
970 | 970 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/newTicketOptions/AddSingleTicket.tsx:34 |
971 | - __( 'Single Ticket', 'event_espresso' ), |
|
971 | + __('Single Ticket', 'event_espresso'), |
|
972 | 972 | |
973 | 973 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/tableView/TableView.tsx:39 |
974 | - __( 'Tickets', 'event_espresso' ), |
|
974 | + __('Tickets', 'event_espresso'), |
|
975 | 975 | |
976 | 976 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/tableView/useHeaderRowGenerator.tsx:110 |
977 | - __( 'Registrations', 'event_espresso' ), |
|
977 | + __('Registrations', 'event_espresso'), |
|
978 | 978 | |
979 | 979 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/tableView/useHeaderRowGenerator.tsx:51 |
980 | - __( 'Goes on Sale', 'event_espresso' ), |
|
980 | + __('Goes on Sale', 'event_espresso'), |
|
981 | 981 | |
982 | 982 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/tableView/useHeaderRowGenerator.tsx:65 |
983 | - __( 'Sale Ends', 'event_espresso' ), |
|
983 | + __('Sale Ends', 'event_espresso'), |
|
984 | 984 | |
985 | 985 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/tableView/useHeaderRowGenerator.tsx:66 |
986 | - __( 'Ends', 'event_espresso' ), |
|
986 | + __('Ends', 'event_espresso'), |
|
987 | 987 | |
988 | 988 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/tableView/useHeaderRowGenerator.tsx:78 |
989 | - __( 'Price', 'event_espresso' ), |
|
989 | + __('Price', 'event_espresso'), |
|
990 | 990 | |
991 | 991 | // Reference: domains/core/admin/eventEditor/src/ui/tickets/ticketsList/tableView/useHeaderRowGenerator.tsx:88 |
992 | - __( 'Quantity', 'event_espresso' ), |
|
992 | + __('Quantity', 'event_espresso'), |
|
993 | 993 | |
994 | 994 | // Reference: domains/core/admin/wpPluginsPage/src/exitSurvey/Popup.tsx:29 |
995 | - __( 'Do you have a moment to share why you are deactivating Event Espresso?', 'event_espresso' ), |
|
995 | + __('Do you have a moment to share why you are deactivating Event Espresso?', 'event_espresso'), |
|
996 | 996 | |
997 | 997 | // Reference: domains/core/admin/wpPluginsPage/src/exitSurvey/Popup.tsx:40 |
998 | - __( 'Skip', 'event_espresso' ), |
|
998 | + __('Skip', 'event_espresso'), |
|
999 | 999 | |
1000 | 1000 | // Reference: domains/core/admin/wpPluginsPage/src/exitSurvey/Popup.tsx:42 |
1001 | - __( 'Sure I\'ll help', 'event_espresso' ), |
|
1001 | + __('Sure I\'ll help', 'event_espresso'), |
|
1002 | 1002 | |
1003 | 1003 | // Reference: packages/adapters/src/Pagination/Pagination.tsx:23 |
1004 | - __( 'pagination', 'event_espresso' ), |
|
1004 | + __('pagination', 'event_espresso'), |
|
1005 | 1005 | |
1006 | 1006 | // Reference: packages/adapters/src/TagSelector/TagSelector.tsx:117 |
1007 | - __( 'toggle menu', 'event_espresso' ), |
|
1007 | + __('toggle menu', 'event_espresso'), |
|
1008 | 1008 | |
1009 | 1009 | // Reference: packages/constants/src/datetime.ts:10 |
1010 | - __( 'Postponed', 'event_espresso' ), |
|
1010 | + __('Postponed', 'event_espresso'), |
|
1011 | 1011 | |
1012 | 1012 | // Reference: packages/constants/src/datetime.ts:11 |
1013 | - __( 'SoldOut', 'event_espresso' ), |
|
1013 | + __('SoldOut', 'event_espresso'), |
|
1014 | 1014 | |
1015 | 1015 | // Reference: packages/constants/src/datetime.ts:7 |
1016 | 1016 | // Reference: packages/predicates/src/registration/statusOptions.ts:10 |
1017 | - __( 'Cancelled', 'event_espresso' ), |
|
1017 | + __('Cancelled', 'event_espresso'), |
|
1018 | 1018 | |
1019 | 1019 | // Reference: packages/constants/src/datetime.ts:9 |
1020 | - __( 'Inactive', 'event_espresso' ), |
|
1020 | + __('Inactive', 'event_espresso'), |
|
1021 | 1021 | |
1022 | 1022 | // Reference: packages/dates/src/components/DateRangePicker/DateRangePickerLegend.tsx:13 |
1023 | - __( 'day in range', 'event_espresso' ), |
|
1023 | + __('day in range', 'event_espresso'), |
|
1024 | 1024 | |
1025 | 1025 | // Reference: packages/dates/src/components/DateRangePicker/DateRangePickerLegend.tsx:17 |
1026 | 1026 | // Reference: packages/dates/src/components/DateRangePicker/index.tsx:79 |
1027 | - __( 'end date', 'event_espresso' ), |
|
1027 | + __('end date', 'event_espresso'), |
|
1028 | 1028 | |
1029 | 1029 | // Reference: packages/dates/src/components/DateTimePicker.tsx:13 |
1030 | 1030 | // Reference: packages/dates/src/components/TimePicker.tsx:13 |
1031 | - __( 'time', 'event_espresso' ), |
|
1031 | + __('time', 'event_espresso'), |
|
1032 | 1032 | |
1033 | 1033 | // Reference: packages/dates/src/constants.ts:5 |
1034 | - __( 'End Date & Time must be set later than the Start Date & Time', 'event_espresso' ), |
|
1034 | + __('End Date & Time must be set later than the Start Date & Time', 'event_espresso'), |
|
1035 | 1035 | |
1036 | 1036 | // Reference: packages/dates/src/constants.ts:7 |
1037 | - __( 'Start Date & Time must be set before the End Date & Time', 'event_espresso' ), |
|
1037 | + __('Start Date & Time must be set before the End Date & Time', 'event_espresso'), |
|
1038 | 1038 | |
1039 | 1039 | // Reference: packages/dates/src/utils/misc.ts:15 |
1040 | - __( 'month(s)', 'event_espresso' ), |
|
1040 | + __('month(s)', 'event_espresso'), |
|
1041 | 1041 | |
1042 | 1042 | // Reference: packages/dates/src/utils/misc.ts:16 |
1043 | - __( 'week(s)', 'event_espresso' ), |
|
1043 | + __('week(s)', 'event_espresso'), |
|
1044 | 1044 | |
1045 | 1045 | // Reference: packages/dates/src/utils/misc.ts:17 |
1046 | - __( 'day(s)', 'event_espresso' ), |
|
1046 | + __('day(s)', 'event_espresso'), |
|
1047 | 1047 | |
1048 | 1048 | // Reference: packages/dates/src/utils/misc.ts:18 |
1049 | - __( 'hour(s)', 'event_espresso' ), |
|
1049 | + __('hour(s)', 'event_espresso'), |
|
1050 | 1050 | |
1051 | 1051 | // Reference: packages/dates/src/utils/misc.ts:19 |
1052 | - __( 'minute(s)', 'event_espresso' ), |
|
1052 | + __('minute(s)', 'event_espresso'), |
|
1053 | 1053 | |
1054 | 1054 | // Reference: packages/edtr-services/src/apollo/initialization/useCacheRehydration.ts:105 |
1055 | - __( 'datetimes initialized', 'event_espresso' ), |
|
1055 | + __('datetimes initialized', 'event_espresso'), |
|
1056 | 1056 | |
1057 | 1057 | // Reference: packages/edtr-services/src/apollo/initialization/useCacheRehydration.ts:115 |
1058 | - __( 'tickets initialized', 'event_espresso' ), |
|
1058 | + __('tickets initialized', 'event_espresso'), |
|
1059 | 1059 | |
1060 | 1060 | // Reference: packages/edtr-services/src/apollo/initialization/useCacheRehydration.ts:125 |
1061 | - __( 'prices initialized', 'event_espresso' ), |
|
1061 | + __('prices initialized', 'event_espresso'), |
|
1062 | 1062 | |
1063 | 1063 | // Reference: packages/edtr-services/src/apollo/initialization/useCacheRehydration.ts:95 |
1064 | - __( 'price types initialized', 'event_espresso' ), |
|
1064 | + __('price types initialized', 'event_espresso'), |
|
1065 | 1065 | |
1066 | 1066 | // Reference: packages/edtr-services/src/apollo/mutations/useReorderEntities.ts:72 |
1067 | - __( 'reordering has been applied', 'event_espresso' ), |
|
1067 | + __('reordering has been applied', 'event_espresso'), |
|
1068 | 1068 | |
1069 | 1069 | // Reference: packages/edtr-services/src/utils/dateAndTime.ts:38 |
1070 | 1070 | // Reference: packages/ui-components/src/EditDateRangeButton/EditDateRangeButton.tsx:39 |
1071 | - __( 'End date has been adjusted', 'event_espresso' ), |
|
1071 | + __('End date has been adjusted', 'event_espresso'), |
|
1072 | 1072 | |
1073 | 1073 | // Reference: packages/edtr-services/src/utils/dateAndTime.ts:59 |
1074 | - __( 'Required', 'event_espresso' ), |
|
1074 | + __('Required', 'event_espresso'), |
|
1075 | 1075 | |
1076 | 1076 | // Reference: packages/edtr-services/src/utils/dateAndTime.ts:64 |
1077 | - __( 'Start Date is required', 'event_espresso' ), |
|
1077 | + __('Start Date is required', 'event_espresso'), |
|
1078 | 1078 | |
1079 | 1079 | // Reference: packages/edtr-services/src/utils/dateAndTime.ts:68 |
1080 | - __( 'End Date is required', 'event_espresso' ), |
|
1080 | + __('End Date is required', 'event_espresso'), |
|
1081 | 1081 | |
1082 | 1082 | // Reference: packages/ee-components/src/EntityList/EntityList.tsx:31 |
1083 | - __( 'no results found', 'event_espresso' ), |
|
1083 | + __('no results found', 'event_espresso'), |
|
1084 | 1084 | |
1085 | 1085 | // Reference: packages/ee-components/src/EntityList/EntityList.tsx:32 |
1086 | - __( 'try changing filter settings', 'event_espresso' ), |
|
1086 | + __('try changing filter settings', 'event_espresso'), |
|
1087 | 1087 | |
1088 | 1088 | // Reference: packages/ee-components/src/SimpleTicketCard/SimpleTicketCard.tsx:27 |
1089 | 1089 | // Reference: packages/ui-components/src/CalendarDateSwitcher/CalendarDateSwitcher.tsx:34 |
1090 | - __( 'starts', 'event_espresso' ), |
|
1090 | + __('starts', 'event_espresso'), |
|
1091 | 1091 | |
1092 | 1092 | // Reference: packages/ee-components/src/SimpleTicketCard/SimpleTicketCard.tsx:34 |
1093 | 1093 | // Reference: packages/ui-components/src/CalendarDateSwitcher/CalendarDateSwitcher.tsx:47 |
1094 | - __( 'ends', 'event_espresso' ), |
|
1094 | + __('ends', 'event_espresso'), |
|
1095 | 1095 | |
1096 | 1096 | // Reference: packages/ee-components/src/bulkEdit/ActionCheckbox.tsx:38 |
1097 | 1097 | /* translators: %d entity id */ |
1098 | - __( 'select entity with id %d', 'event_espresso' ), |
|
1098 | + __('select entity with id %d', 'event_espresso'), |
|
1099 | 1099 | |
1100 | 1100 | // Reference: packages/ee-components/src/bulkEdit/ActionCheckbox.tsx:41 |
1101 | - __( 'select all entities', 'event_espresso' ), |
|
1101 | + __('select all entities', 'event_espresso'), |
|
1102 | 1102 | |
1103 | 1103 | // Reference: packages/ee-components/src/bulkEdit/details/BulkEditDetails.tsx:20 |
1104 | - __( 'Note: ', 'event_espresso' ), |
|
1104 | + __('Note: ', 'event_espresso'), |
|
1105 | 1105 | |
1106 | 1106 | // Reference: packages/ee-components/src/bulkEdit/details/BulkEditDetails.tsx:20 |
1107 | - __( 'any changes will be applied to ALL of the selected entities.', 'event_espresso' ), |
|
1107 | + __('any changes will be applied to ALL of the selected entities.', 'event_espresso'), |
|
1108 | 1108 | |
1109 | 1109 | // Reference: packages/ee-components/src/bulkEdit/details/BulkEditDetails.tsx:26 |
1110 | - __( 'Bulk edit details', 'event_espresso' ), |
|
1110 | + __('Bulk edit details', 'event_espresso'), |
|
1111 | 1111 | |
1112 | 1112 | // Reference: packages/ee-components/src/bulkEdit/details/Submit.tsx:17 |
1113 | - __( 'Are you sure you want to bulk update the details?', 'event_espresso' ), |
|
1113 | + __('Are you sure you want to bulk update the details?', 'event_espresso'), |
|
1114 | 1114 | |
1115 | 1115 | // Reference: packages/ee-components/src/bulkEdit/details/Submit.tsx:18 |
1116 | - __( 'Bulk update details', 'event_espresso' ), |
|
1116 | + __('Bulk update details', 'event_espresso'), |
|
1117 | 1117 | |
1118 | 1118 | // Reference: packages/ee-components/src/filterBar/SortByControl/index.tsx:26 |
1119 | - __( 'reorder dates', 'event_espresso' ), |
|
1119 | + __('reorder dates', 'event_espresso'), |
|
1120 | 1120 | |
1121 | 1121 | // Reference: packages/ee-components/src/filterBar/SortByControl/index.tsx:26 |
1122 | - __( 'reorder tickets', 'event_espresso' ), |
|
1122 | + __('reorder tickets', 'event_espresso'), |
|
1123 | 1123 | |
1124 | 1124 | // Reference: packages/form/src/adapters/WPMediaImage.tsx:12 |
1125 | - __( 'Select Image', 'event_espresso' ), |
|
1125 | + __('Select Image', 'event_espresso'), |
|
1126 | 1126 | |
1127 | 1127 | // Reference: packages/form/src/adapters/WPMediaImage.tsx:44 |
1128 | 1128 | // Reference: packages/rich-text-editor/src/components/AdvancedTextEditor/toolbarButtons/WPMedia.tsx:11 |
1129 | 1129 | // Reference: packages/rich-text-editor/src/rte-old/components/toolbarButtons/WPMedia.tsx:12 |
1130 | - __( 'Select', 'event_espresso' ), |
|
1130 | + __('Select', 'event_espresso'), |
|
1131 | 1131 | |
1132 | 1132 | // Reference: packages/form/src/renderers/RepeatableRenderer.tsx:36 |
1133 | 1133 | /* translators: %d the entry number */ |
1134 | - __( 'Entry %d', 'event_espresso' ), |
|
1134 | + __('Entry %d', 'event_espresso'), |
|
1135 | 1135 | |
1136 | 1136 | // Reference: packages/form/src/renderers/RepeatableRenderer.tsx:52 |
1137 | 1137 | // Reference: packages/ui-components/src/FormBuilder/FormSection/FormSectionSidebar.tsx:130 |
1138 | 1138 | // Reference: packages/ui-components/src/SimpleEntityList/EntityTemplate.tsx:27 |
1139 | - __( 'Add', 'event_espresso' ), |
|
1139 | + __('Add', 'event_espresso'), |
|
1140 | 1140 | |
1141 | 1141 | // Reference: packages/helpers/src/datetimes/getStatusTextLabel.ts:11 |
1142 | 1142 | // Reference: packages/helpers/src/tickets/getStatusTextLabel.ts:17 |
1143 | - __( 'sold out', 'event_espresso' ), |
|
1143 | + __('sold out', 'event_espresso'), |
|
1144 | 1144 | |
1145 | 1145 | // Reference: packages/helpers/src/datetimes/getStatusTextLabel.ts:14 |
1146 | 1146 | // Reference: packages/helpers/src/tickets/getStatusTextLabel.ts:14 |
1147 | - __( 'expired', 'event_espresso' ), |
|
1147 | + __('expired', 'event_espresso'), |
|
1148 | 1148 | |
1149 | 1149 | // Reference: packages/helpers/src/datetimes/getStatusTextLabel.ts:17 |
1150 | - __( 'upcoming', 'event_espresso' ), |
|
1150 | + __('upcoming', 'event_espresso'), |
|
1151 | 1151 | |
1152 | 1152 | // Reference: packages/helpers/src/datetimes/getStatusTextLabel.ts:20 |
1153 | - __( 'active', 'event_espresso' ), |
|
1153 | + __('active', 'event_espresso'), |
|
1154 | 1154 | |
1155 | 1155 | // Reference: packages/helpers/src/datetimes/getStatusTextLabel.ts:23 |
1156 | 1156 | // Reference: packages/helpers/src/tickets/getStatusTextLabel.ts:11 |
1157 | - __( 'trashed', 'event_espresso' ), |
|
1157 | + __('trashed', 'event_espresso'), |
|
1158 | 1158 | |
1159 | 1159 | // Reference: packages/helpers/src/datetimes/getStatusTextLabel.ts:26 |
1160 | - __( 'cancelled', 'event_espresso' ), |
|
1160 | + __('cancelled', 'event_espresso'), |
|
1161 | 1161 | |
1162 | 1162 | // Reference: packages/helpers/src/datetimes/getStatusTextLabel.ts:29 |
1163 | - __( 'postponed', 'event_espresso' ), |
|
1163 | + __('postponed', 'event_espresso'), |
|
1164 | 1164 | |
1165 | 1165 | // Reference: packages/helpers/src/datetimes/getStatusTextLabel.ts:33 |
1166 | - __( 'inactive', 'event_espresso' ), |
|
1166 | + __('inactive', 'event_espresso'), |
|
1167 | 1167 | |
1168 | 1168 | // Reference: packages/helpers/src/tickets/getStatusTextLabel.ts:20 |
1169 | - __( 'pending', 'event_espresso' ), |
|
1169 | + __('pending', 'event_espresso'), |
|
1170 | 1170 | |
1171 | 1171 | // Reference: packages/helpers/src/tickets/getStatusTextLabel.ts:23 |
1172 | - __( 'on sale', 'event_espresso' ), |
|
1172 | + __('on sale', 'event_espresso'), |
|
1173 | 1173 | |
1174 | 1174 | // Reference: packages/predicates/src/registration/statusOptions.ts:14 |
1175 | - __( 'Declined', 'event_espresso' ), |
|
1175 | + __('Declined', 'event_espresso'), |
|
1176 | 1176 | |
1177 | 1177 | // Reference: packages/predicates/src/registration/statusOptions.ts:18 |
1178 | - __( 'Incomplete', 'event_espresso' ), |
|
1178 | + __('Incomplete', 'event_espresso'), |
|
1179 | 1179 | |
1180 | 1180 | // Reference: packages/predicates/src/registration/statusOptions.ts:22 |
1181 | - __( 'Not Approved', 'event_espresso' ), |
|
1181 | + __('Not Approved', 'event_espresso'), |
|
1182 | 1182 | |
1183 | 1183 | // Reference: packages/predicates/src/registration/statusOptions.ts:26 |
1184 | - __( 'Pending Payment', 'event_espresso' ), |
|
1184 | + __('Pending Payment', 'event_espresso'), |
|
1185 | 1185 | |
1186 | 1186 | // Reference: packages/predicates/src/registration/statusOptions.ts:30 |
1187 | - __( 'Wait List', 'event_espresso' ), |
|
1187 | + __('Wait List', 'event_espresso'), |
|
1188 | 1188 | |
1189 | 1189 | // Reference: packages/predicates/src/registration/statusOptions.ts:6 |
1190 | - __( 'Approved', 'event_espresso' ), |
|
1190 | + __('Approved', 'event_espresso'), |
|
1191 | 1191 | |
1192 | 1192 | // Reference: packages/rich-text-editor/src/components/AdvancedTextEditor/toolbarButtons/WPMedia.tsx:9 |
1193 | 1193 | // Reference: packages/rich-text-editor/src/rte-old/components/toolbarButtons/WPMedia.tsx:10 |
1194 | - __( 'Select media', 'event_espresso' ), |
|
1194 | + __('Select media', 'event_espresso'), |
|
1195 | 1195 | |
1196 | 1196 | // Reference: packages/rich-text-editor/src/components/RichTextEditor/RichTextEditor.tsx:84 |
1197 | - __( 'Write something…', 'event_espresso' ), |
|
1197 | + __('Write something…', 'event_espresso'), |
|
1198 | 1198 | |
1199 | 1199 | // Reference: packages/rich-text-editor/src/components/RichTextEditor/Toolbar/Toolbar.tsx:20 |
1200 | - __( 'RTE Toolbar', 'event_espresso' ), |
|
1200 | + __('RTE Toolbar', 'event_espresso'), |
|
1201 | 1201 | |
1202 | 1202 | // Reference: packages/rich-text-editor/src/components/RichTextEditor/Toolbar/controls/blockType/Component.tsx:11 |
1203 | - __( 'Normal', 'event_espresso' ), |
|
1203 | + __('Normal', 'event_espresso'), |
|
1204 | 1204 | |
1205 | 1205 | // Reference: packages/rich-text-editor/src/components/RichTextEditor/Toolbar/controls/blockType/Component.tsx:12 |
1206 | - __( 'H1', 'event_espresso' ), |
|
1206 | + __('H1', 'event_espresso'), |
|
1207 | 1207 | |
1208 | 1208 | // Reference: packages/rich-text-editor/src/components/RichTextEditor/Toolbar/controls/blockType/Component.tsx:13 |
1209 | - __( 'H2', 'event_espresso' ), |
|
1209 | + __('H2', 'event_espresso'), |
|
1210 | 1210 | |
1211 | 1211 | // Reference: packages/rich-text-editor/src/components/RichTextEditor/Toolbar/controls/blockType/Component.tsx:14 |
1212 | - __( 'H3', 'event_espresso' ), |
|
1212 | + __('H3', 'event_espresso'), |
|
1213 | 1213 | |
1214 | 1214 | // Reference: packages/rich-text-editor/src/components/RichTextEditor/Toolbar/controls/blockType/Component.tsx:15 |
1215 | - __( 'H4', 'event_espresso' ), |
|
1215 | + __('H4', 'event_espresso'), |
|
1216 | 1216 | |
1217 | 1217 | // Reference: packages/rich-text-editor/src/components/RichTextEditor/Toolbar/controls/blockType/Component.tsx:16 |
1218 | - __( 'H5', 'event_espresso' ), |
|
1218 | + __('H5', 'event_espresso'), |
|
1219 | 1219 | |
1220 | 1220 | // Reference: packages/rich-text-editor/src/components/RichTextEditor/Toolbar/controls/blockType/Component.tsx:17 |
1221 | - __( 'H6', 'event_espresso' ), |
|
1221 | + __('H6', 'event_espresso'), |
|
1222 | 1222 | |
1223 | 1223 | // Reference: packages/rich-text-editor/src/components/RichTextEditor/Toolbar/controls/blockType/Component.tsx:18 |
1224 | - __( 'Block quote', 'event_espresso' ), |
|
1224 | + __('Block quote', 'event_espresso'), |
|
1225 | 1225 | |
1226 | 1226 | // Reference: packages/rich-text-editor/src/components/RichTextEditor/Toolbar/controls/blockType/Component.tsx:19 |
1227 | - __( 'Code', 'event_espresso' ), |
|
1227 | + __('Code', 'event_espresso'), |
|
1228 | 1228 | |
1229 | 1229 | // Reference: packages/rich-text-editor/src/components/RichTextEditor/Toolbar/controls/colorPicker/Component.tsx:36 |
1230 | - __( 'Set color', 'event_espresso' ), |
|
1230 | + __('Set color', 'event_espresso'), |
|
1231 | 1231 | |
1232 | 1232 | // Reference: packages/rich-text-editor/src/components/RichTextEditor/Toolbar/controls/colorPicker/Component.tsx:45 |
1233 | - __( 'Text color', 'event_espresso' ), |
|
1233 | + __('Text color', 'event_espresso'), |
|
1234 | 1234 | |
1235 | 1235 | // Reference: packages/rich-text-editor/src/components/RichTextEditor/Toolbar/controls/colorPicker/Component.tsx:47 |
1236 | - __( 'Background color', 'event_espresso' ), |
|
1236 | + __('Background color', 'event_espresso'), |
|
1237 | 1237 | |
1238 | 1238 | // Reference: packages/rich-text-editor/src/components/RichTextEditor/Toolbar/controls/image/Component.tsx:35 |
1239 | - __( 'Add image', 'event_espresso' ), |
|
1239 | + __('Add image', 'event_espresso'), |
|
1240 | 1240 | |
1241 | 1241 | // Reference: packages/rich-text-editor/src/components/RichTextEditor/Toolbar/controls/image/Component.tsx:47 |
1242 | - __( 'Image URL', 'event_espresso' ), |
|
1242 | + __('Image URL', 'event_espresso'), |
|
1243 | 1243 | |
1244 | 1244 | // Reference: packages/rich-text-editor/src/components/RichTextEditor/Toolbar/controls/image/Component.tsx:51 |
1245 | - __( 'Alt text', 'event_espresso' ), |
|
1245 | + __('Alt text', 'event_espresso'), |
|
1246 | 1246 | |
1247 | 1247 | // Reference: packages/rich-text-editor/src/components/RichTextEditor/Toolbar/controls/image/Component.tsx:52 |
1248 | - __( 'Width', 'event_espresso' ), |
|
1248 | + __('Width', 'event_espresso'), |
|
1249 | 1249 | |
1250 | 1250 | // Reference: packages/rich-text-editor/src/components/RichTextEditor/Toolbar/controls/image/Component.tsx:56 |
1251 | - __( 'Height', 'event_espresso' ), |
|
1251 | + __('Height', 'event_espresso'), |
|
1252 | 1252 | |
1253 | 1253 | // Reference: packages/rich-text-editor/src/components/RichTextEditor/Toolbar/controls/link/Component.tsx:50 |
1254 | - __( 'Edit link', 'event_espresso' ), |
|
1254 | + __('Edit link', 'event_espresso'), |
|
1255 | 1255 | |
1256 | 1256 | // Reference: packages/rich-text-editor/src/components/RichTextEditor/Toolbar/controls/link/Component.tsx:60 |
1257 | - __( 'URL title', 'event_espresso' ), |
|
1257 | + __('URL title', 'event_espresso'), |
|
1258 | 1258 | |
1259 | 1259 | // Reference: packages/rich-text-editor/src/components/RichTextEditor/Toolbar/controls/list/Component.tsx:11 |
1260 | - __( 'Unordered list', 'event_espresso' ), |
|
1260 | + __('Unordered list', 'event_espresso'), |
|
1261 | 1261 | |
1262 | 1262 | // Reference: packages/rich-text-editor/src/components/RichTextEditor/Toolbar/controls/list/Component.tsx:12 |
1263 | - __( 'Ordered list', 'event_espresso' ), |
|
1263 | + __('Ordered list', 'event_espresso'), |
|
1264 | 1264 | |
1265 | 1265 | // Reference: packages/rich-text-editor/src/components/RichTextEditor/Toolbar/controls/list/Component.tsx:13 |
1266 | 1266 | // Reference: packages/rich-text-editor/src/components/RichTextEditor/Toolbar/controls/textAlign/Component.tsx:13 |
1267 | - __( 'Indent', 'event_espresso' ), |
|
1267 | + __('Indent', 'event_espresso'), |
|
1268 | 1268 | |
1269 | 1269 | // Reference: packages/rich-text-editor/src/components/RichTextEditor/Toolbar/controls/list/Component.tsx:14 |
1270 | 1270 | // Reference: packages/rich-text-editor/src/components/RichTextEditor/Toolbar/controls/textAlign/Component.tsx:14 |
1271 | - __( 'Outdent', 'event_espresso' ), |
|
1271 | + __('Outdent', 'event_espresso'), |
|
1272 | 1272 | |
1273 | 1273 | // Reference: packages/rich-text-editor/src/components/RichTextEditor/Toolbar/controls/textAlign/Component.tsx:11 |
1274 | - __( 'Unordered textalign', 'event_espresso' ), |
|
1274 | + __('Unordered textalign', 'event_espresso'), |
|
1275 | 1275 | |
1276 | 1276 | // Reference: packages/rich-text-editor/src/components/RichTextEditor/Toolbar/controls/textAlign/Component.tsx:12 |
1277 | - __( 'Ordered textalign', 'event_espresso' ), |
|
1277 | + __('Ordered textalign', 'event_espresso'), |
|
1278 | 1278 | |
1279 | 1279 | // Reference: packages/rich-text-editor/src/components/RichTextEditor/render/Image/Toolbar.tsx:31 |
1280 | - __( 'Image toolbar', 'event_espresso' ), |
|
1280 | + __('Image toolbar', 'event_espresso'), |
|
1281 | 1281 | |
1282 | 1282 | // Reference: packages/rich-text-editor/src/components/WithEditMode/WithEditMode.tsx:62 |
1283 | 1283 | // Reference: packages/rich-text-editor/src/rte-old/components/RTEWithEditMode/RTEWithEditMode.tsx:35 |
1284 | - __( 'Visual editor', 'event_espresso' ), |
|
1284 | + __('Visual editor', 'event_espresso'), |
|
1285 | 1285 | |
1286 | 1286 | // Reference: packages/rich-text-editor/src/components/WithEditMode/WithEditMode.tsx:66 |
1287 | 1287 | // Reference: packages/rich-text-editor/src/rte-old/components/RTEWithEditMode/RTEWithEditMode.tsx:39 |
1288 | - __( 'HTML editor', 'event_espresso' ), |
|
1288 | + __('HTML editor', 'event_espresso'), |
|
1289 | 1289 | |
1290 | 1290 | // Reference: packages/rich-text-editor/src/rte-old/components/toolbarButtons/WPMedia.tsx:68 |
1291 | - __( 'Add Media', 'event_espresso' ), |
|
1291 | + __('Add Media', 'event_espresso'), |
|
1292 | 1292 | |
1293 | 1293 | // Reference: packages/tpc/src/buttons/AddPriceModifierButton.tsx:14 |
1294 | - __( 'add new price modifier after this row', 'event_espresso' ), |
|
1294 | + __('add new price modifier after this row', 'event_espresso'), |
|
1295 | 1295 | |
1296 | 1296 | // Reference: packages/tpc/src/buttons/DeleteAllPricesButton.tsx:14 |
1297 | - __( 'Delete all prices', 'event_espresso' ), |
|
1297 | + __('Delete all prices', 'event_espresso'), |
|
1298 | 1298 | |
1299 | 1299 | // Reference: packages/tpc/src/buttons/DeleteAllPricesButton.tsx:27 |
1300 | - __( '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' ), |
|
1300 | + __('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'), |
|
1301 | 1301 | |
1302 | 1302 | // Reference: packages/tpc/src/buttons/DeleteAllPricesButton.tsx:31 |
1303 | - __( 'Delete all prices?', 'event_espresso' ), |
|
1303 | + __('Delete all prices?', 'event_espresso'), |
|
1304 | 1304 | |
1305 | 1305 | // Reference: packages/tpc/src/buttons/DeletePriceModifierButton.tsx:12 |
1306 | - __( 'delete price modifier', 'event_espresso' ), |
|
1306 | + __('delete price modifier', 'event_espresso'), |
|
1307 | 1307 | |
1308 | 1308 | // Reference: packages/tpc/src/buttons/ReverseCalculateButton.tsx:14 |
1309 | - __( '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' ), |
|
1309 | + __('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'), |
|
1310 | 1310 | |
1311 | 1311 | // Reference: packages/tpc/src/buttons/ReverseCalculateButton.tsx:17 |
1312 | - __( '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' ), |
|
1312 | + __('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'), |
|
1313 | 1313 | |
1314 | 1314 | // Reference: packages/tpc/src/buttons/ReverseCalculateButton.tsx:21 |
1315 | - __( 'Disable reverse calculate', 'event_espresso' ), |
|
1315 | + __('Disable reverse calculate', 'event_espresso'), |
|
1316 | 1316 | |
1317 | 1317 | // Reference: packages/tpc/src/buttons/ReverseCalculateButton.tsx:21 |
1318 | - __( 'Enable reverse calculate', 'event_espresso' ), |
|
1318 | + __('Enable reverse calculate', 'event_espresso'), |
|
1319 | 1319 | |
1320 | 1320 | // Reference: packages/tpc/src/buttons/TicketPriceCalculatorButton.tsx:28 |
1321 | - __( 'ticket price calculator', 'event_espresso' ), |
|
1321 | + __('ticket price calculator', 'event_espresso'), |
|
1322 | 1322 | |
1323 | 1323 | // Reference: packages/tpc/src/buttons/taxes/AddDefaultTaxesButton.tsx:9 |
1324 | - __( 'Add default taxes', 'event_espresso' ), |
|
1324 | + __('Add default taxes', 'event_espresso'), |
|
1325 | 1325 | |
1326 | 1326 | // Reference: packages/tpc/src/buttons/taxes/RemoveTaxesButton.tsx:10 |
1327 | - __( 'Are you sure you want to remove all of this ticket\'s taxes?', 'event_espresso' ), |
|
1327 | + __('Are you sure you want to remove all of this ticket\'s taxes?', 'event_espresso'), |
|
1328 | 1328 | |
1329 | 1329 | // Reference: packages/tpc/src/buttons/taxes/RemoveTaxesButton.tsx:14 |
1330 | - __( 'Remove all taxes?', 'event_espresso' ), |
|
1330 | + __('Remove all taxes?', 'event_espresso'), |
|
1331 | 1331 | |
1332 | 1332 | // Reference: packages/tpc/src/buttons/taxes/RemoveTaxesButton.tsx:7 |
1333 | - __( 'Remove taxes', 'event_espresso' ), |
|
1333 | + __('Remove taxes', 'event_espresso'), |
|
1334 | 1334 | |
1335 | 1335 | // Reference: packages/tpc/src/components/DefaultPricesInfo.tsx:29 |
1336 | - __( 'Modify default prices.', 'event_espresso' ), |
|
1336 | + __('Modify default prices.', 'event_espresso'), |
|
1337 | 1337 | |
1338 | 1338 | // Reference: packages/tpc/src/components/DefaultTaxesInfo.tsx:29 |
1339 | - __( 'New default taxes are available. Click the - Add default taxes - button to add them now.', 'event_espresso' ), |
|
1339 | + __('New default taxes are available. Click the - Add default taxes - button to add them now.', 'event_espresso'), |
|
1340 | 1340 | |
1341 | 1341 | // Reference: packages/tpc/src/components/LockedTicketsBanner.tsx:12 |
1342 | - __( 'Editing of prices is disabled', 'event_espresso' ), |
|
1342 | + __('Editing of prices is disabled', 'event_espresso'), |
|
1343 | 1343 | |
1344 | 1344 | // Reference: packages/tpc/src/components/NoPricesBanner/AddDefaultPricesButton.tsx:9 |
1345 | - __( 'Add default prices', 'event_espresso' ), |
|
1345 | + __('Add default prices', 'event_espresso'), |
|
1346 | 1346 | |
1347 | 1347 | // Reference: packages/tpc/src/components/NoPricesBanner/index.tsx:13 |
1348 | - __( 'This Ticket is Currently Free', 'event_espresso' ), |
|
1348 | + __('This Ticket is Currently Free', 'event_espresso'), |
|
1349 | 1349 | |
1350 | 1350 | // Reference: packages/tpc/src/components/NoPricesBanner/index.tsx:21 |
1351 | 1351 | /* translators: %s default prices */ |
1352 | - __( 'Click the button below to load your %s into the calculator.', 'event_espresso' ), |
|
1352 | + __('Click the button below to load your %s into the calculator.', 'event_espresso'), |
|
1353 | 1353 | |
1354 | 1354 | // Reference: packages/tpc/src/components/NoPricesBanner/index.tsx:22 |
1355 | - __( 'default prices', 'event_espresso' ), |
|
1355 | + __('default prices', 'event_espresso'), |
|
1356 | 1356 | |
1357 | 1357 | // Reference: packages/tpc/src/components/NoPricesBanner/index.tsx:29 |
1358 | - __( 'Additional ticket price modifiers can be added or removed.', 'event_espresso' ), |
|
1358 | + __('Additional ticket price modifiers can be added or removed.', 'event_espresso'), |
|
1359 | 1359 | |
1360 | 1360 | // Reference: packages/tpc/src/components/NoPricesBanner/index.tsx:32 |
1361 | - __( 'Click the save button below to assign which dates this ticket will be available for purchase on.', 'event_espresso' ), |
|
1361 | + __('Click the save button below to assign which dates this ticket will be available for purchase on.', 'event_espresso'), |
|
1362 | 1362 | |
1363 | 1363 | // Reference: packages/tpc/src/components/TicketPriceCalculatorModal.tsx:32 |
1364 | 1364 | /* translators: %s ticket name */ |
1365 | - __( 'Price Calculator for Ticket: %s', 'event_espresso' ), |
|
1365 | + __('Price Calculator for Ticket: %s', 'event_espresso'), |
|
1366 | 1366 | |
1367 | 1367 | // Reference: packages/tpc/src/components/table/useFooterRowGenerator.tsx:48 |
1368 | - __( 'Total', 'event_espresso' ), |
|
1368 | + __('Total', 'event_espresso'), |
|
1369 | 1369 | |
1370 | 1370 | // Reference: packages/tpc/src/components/table/useFooterRowGenerator.tsx:57 |
1371 | - __( 'ticket total', 'event_espresso' ), |
|
1371 | + __('ticket total', 'event_espresso'), |
|
1372 | 1372 | |
1373 | 1373 | // Reference: packages/tpc/src/components/table/useHeaderRowGenerator.ts:29 |
1374 | - __( 'Order', 'event_espresso' ), |
|
1374 | + __('Order', 'event_espresso'), |
|
1375 | 1375 | |
1376 | 1376 | // Reference: packages/tpc/src/components/table/useHeaderRowGenerator.ts:35 |
1377 | - __( 'Price Type', 'event_espresso' ), |
|
1377 | + __('Price Type', 'event_espresso'), |
|
1378 | 1378 | |
1379 | 1379 | // Reference: packages/tpc/src/components/table/useHeaderRowGenerator.ts:41 |
1380 | - __( 'Label', 'event_espresso' ), |
|
1380 | + __('Label', 'event_espresso'), |
|
1381 | 1381 | |
1382 | 1382 | // Reference: packages/tpc/src/components/table/useHeaderRowGenerator.ts:53 |
1383 | - __( 'Amount', 'event_espresso' ), |
|
1383 | + __('Amount', 'event_espresso'), |
|
1384 | 1384 | |
1385 | 1385 | // Reference: packages/tpc/src/hooks/useLockedTicketAction.ts:22 |
1386 | - __( 'Copy ticket', 'event_espresso' ), |
|
1386 | + __('Copy ticket', 'event_espresso'), |
|
1387 | 1387 | |
1388 | 1388 | // Reference: packages/tpc/src/hooks/useLockedTicketAction.ts:26 |
1389 | - __( 'Copy and archive this ticket', 'event_espresso' ), |
|
1389 | + __('Copy and archive this ticket', 'event_espresso'), |
|
1390 | 1390 | |
1391 | 1391 | // Reference: packages/tpc/src/hooks/useLockedTicketAction.ts:29 |
1392 | - __( 'OK', 'event_espresso' ), |
|
1392 | + __('OK', 'event_espresso'), |
|
1393 | 1393 | |
1394 | 1394 | // Reference: packages/tpc/src/inputs/PriceAmountInput.tsx:30 |
1395 | - __( 'amount', 'event_espresso' ), |
|
1395 | + __('amount', 'event_espresso'), |
|
1396 | 1396 | |
1397 | 1397 | // Reference: packages/tpc/src/inputs/PriceAmountInput.tsx:42 |
1398 | - __( 'amount…', 'event_espresso' ), |
|
1398 | + __('amount…', 'event_espresso'), |
|
1399 | 1399 | |
1400 | 1400 | // Reference: packages/tpc/src/inputs/PriceDescriptionInput.tsx:14 |
1401 | - __( 'description…', 'event_espresso' ), |
|
1401 | + __('description…', 'event_espresso'), |
|
1402 | 1402 | |
1403 | 1403 | // Reference: packages/tpc/src/inputs/PriceDescriptionInput.tsx:9 |
1404 | - __( 'price description', 'event_espresso' ), |
|
1404 | + __('price description', 'event_espresso'), |
|
1405 | 1405 | |
1406 | 1406 | // Reference: packages/tpc/src/inputs/PriceIdInput.tsx:5 |
1407 | - __( 'price id', 'event_espresso' ), |
|
1407 | + __('price id', 'event_espresso'), |
|
1408 | 1408 | |
1409 | 1409 | // Reference: packages/tpc/src/inputs/PriceNameInput.tsx:13 |
1410 | - __( 'label…', 'event_espresso' ), |
|
1410 | + __('label…', 'event_espresso'), |
|
1411 | 1411 | |
1412 | 1412 | // Reference: packages/tpc/src/inputs/PriceNameInput.tsx:8 |
1413 | - __( 'price name', 'event_espresso' ), |
|
1413 | + __('price name', 'event_espresso'), |
|
1414 | 1414 | |
1415 | 1415 | // Reference: packages/tpc/src/inputs/PriceOrderInput.tsx:14 |
1416 | - __( 'price order', 'event_espresso' ), |
|
1416 | + __('price order', 'event_espresso'), |
|
1417 | 1417 | |
1418 | 1418 | // Reference: packages/tpc/src/inputs/PriceTypeInput.tsx:19 |
1419 | - __( 'price type', 'event_espresso' ), |
|
1419 | + __('price type', 'event_espresso'), |
|
1420 | 1420 | |
1421 | 1421 | // Reference: packages/tpc/src/utils/constants.ts:8 |
1422 | - __( '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' ), |
|
1422 | + __('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'), |
|
1423 | 1423 | |
1424 | 1424 | // Reference: packages/ui-components/src/ActiveFilters/ActiveFilters.tsx:8 |
1425 | - __( 'active filters:', 'event_espresso' ), |
|
1425 | + __('active filters:', 'event_espresso'), |
|
1426 | 1426 | |
1427 | 1427 | // Reference: packages/ui-components/src/ActiveFilters/FilterTag/index.tsx:15 |
1428 | 1428 | /* translators: %s filter name */ |
1429 | - __( 'remove filter - %s', 'event_espresso' ), |
|
1429 | + __('remove filter - %s', 'event_espresso'), |
|
1430 | 1430 | |
1431 | 1431 | // Reference: packages/ui-components/src/CalendarDateRange/CalendarDateRange.tsx:37 |
1432 | - __( 'to', 'event_espresso' ), |
|
1432 | + __('to', 'event_espresso'), |
|
1433 | 1433 | |
1434 | 1434 | // Reference: packages/ui-components/src/CalendarPageDate/CalendarPageDate.tsx:54 |
1435 | - __( 'TO', 'event_espresso' ), |
|
1435 | + __('TO', 'event_espresso'), |
|
1436 | 1436 | |
1437 | 1437 | // Reference: packages/ui-components/src/ColorPicker/ColorPicker.tsx:60 |
1438 | - __( 'Custom color', 'event_espresso' ), |
|
1438 | + __('Custom color', 'event_espresso'), |
|
1439 | 1439 | |
1440 | 1440 | // Reference: packages/ui-components/src/ColorPicker/Swatch.tsx:23 |
1441 | 1441 | /* translators: color name */ |
1442 | - __( 'Color: %s', 'event_espresso' ), |
|
1442 | + __('Color: %s', 'event_espresso'), |
|
1443 | 1443 | |
1444 | 1444 | // Reference: packages/ui-components/src/ColorPicker/constants.ts:13 |
1445 | - __( 'Cyan bluish gray', 'event_espresso' ), |
|
1445 | + __('Cyan bluish gray', 'event_espresso'), |
|
1446 | 1446 | |
1447 | 1447 | // Reference: packages/ui-components/src/ColorPicker/constants.ts:17 |
1448 | - __( 'White', 'event_espresso' ), |
|
1448 | + __('White', 'event_espresso'), |
|
1449 | 1449 | |
1450 | 1450 | // Reference: packages/ui-components/src/ColorPicker/constants.ts:21 |
1451 | - __( 'Pale pink', 'event_espresso' ), |
|
1451 | + __('Pale pink', 'event_espresso'), |
|
1452 | 1452 | |
1453 | 1453 | // Reference: packages/ui-components/src/ColorPicker/constants.ts:25 |
1454 | - __( 'Vivid red', 'event_espresso' ), |
|
1454 | + __('Vivid red', 'event_espresso'), |
|
1455 | 1455 | |
1456 | 1456 | // Reference: packages/ui-components/src/ColorPicker/constants.ts:29 |
1457 | - __( 'Luminous vivid orange', 'event_espresso' ), |
|
1457 | + __('Luminous vivid orange', 'event_espresso'), |
|
1458 | 1458 | |
1459 | 1459 | // Reference: packages/ui-components/src/ColorPicker/constants.ts:33 |
1460 | - __( 'Luminous vivid amber', 'event_espresso' ), |
|
1460 | + __('Luminous vivid amber', 'event_espresso'), |
|
1461 | 1461 | |
1462 | 1462 | // Reference: packages/ui-components/src/ColorPicker/constants.ts:37 |
1463 | - __( 'Light green cyan', 'event_espresso' ), |
|
1463 | + __('Light green cyan', 'event_espresso'), |
|
1464 | 1464 | |
1465 | 1465 | // Reference: packages/ui-components/src/ColorPicker/constants.ts:41 |
1466 | - __( 'Vivid green cyan', 'event_espresso' ), |
|
1466 | + __('Vivid green cyan', 'event_espresso'), |
|
1467 | 1467 | |
1468 | 1468 | // Reference: packages/ui-components/src/ColorPicker/constants.ts:45 |
1469 | - __( 'Pale cyan blue', 'event_espresso' ), |
|
1469 | + __('Pale cyan blue', 'event_espresso'), |
|
1470 | 1470 | |
1471 | 1471 | // Reference: packages/ui-components/src/ColorPicker/constants.ts:49 |
1472 | - __( 'Vivid cyan blue', 'event_espresso' ), |
|
1472 | + __('Vivid cyan blue', 'event_espresso'), |
|
1473 | 1473 | |
1474 | 1474 | // Reference: packages/ui-components/src/ColorPicker/constants.ts:53 |
1475 | - __( 'Vivid purple', 'event_espresso' ), |
|
1475 | + __('Vivid purple', 'event_espresso'), |
|
1476 | 1476 | |
1477 | 1477 | // Reference: packages/ui-components/src/ColorPicker/constants.ts:9 |
1478 | - __( 'Black', 'event_espresso' ), |
|
1478 | + __('Black', 'event_espresso'), |
|
1479 | 1479 | |
1480 | 1480 | // Reference: packages/ui-components/src/Confirm/ConfirmClose.tsx:7 |
1481 | 1481 | // Reference: packages/ui-components/src/Modal/ModalWithAlert.tsx:22 |
1482 | - __( 'Are you sure you want to close this?', 'event_espresso' ), |
|
1482 | + __('Are you sure you want to close this?', 'event_espresso'), |
|
1483 | 1483 | |
1484 | 1484 | // Reference: packages/ui-components/src/Confirm/ConfirmDelete.tsx:7 |
1485 | - __( 'Are you sure you want to delete this?', 'event_espresso' ), |
|
1485 | + __('Are you sure you want to delete this?', 'event_espresso'), |
|
1486 | 1486 | |
1487 | 1487 | // Reference: packages/ui-components/src/Confirm/useConfirmWithButton.tsx:10 |
1488 | - __( 'Please confirm this action.', 'event_espresso' ), |
|
1488 | + __('Please confirm this action.', 'event_espresso'), |
|
1489 | 1489 | |
1490 | 1490 | // Reference: packages/ui-components/src/Confirm/useConfirmationDialog.tsx:32 |
1491 | - __( 'No', 'event_espresso' ), |
|
1491 | + __('No', 'event_espresso'), |
|
1492 | 1492 | |
1493 | 1493 | // Reference: packages/ui-components/src/Confirm/useConfirmationDialog.tsx:33 |
1494 | - __( 'Yes', 'event_espresso' ), |
|
1494 | + __('Yes', 'event_espresso'), |
|
1495 | 1495 | |
1496 | 1496 | // Reference: packages/ui-components/src/CurrencyDisplay/CurrencyDisplay.tsx:34 |
1497 | - __( 'free', 'event_espresso' ), |
|
1497 | + __('free', 'event_espresso'), |
|
1498 | 1498 | |
1499 | 1499 | // Reference: packages/ui-components/src/DateTimeRangePicker/DateTimeRangePicker.tsx:117 |
1500 | 1500 | // Reference: packages/ui-components/src/Popover/PopoverForm/PopoverForm.tsx:44 |
1501 | - __( 'save', 'event_espresso' ), |
|
1501 | + __('save', 'event_espresso'), |
|
1502 | 1502 | |
1503 | 1503 | // Reference: packages/ui-components/src/DebugInfo/DebugInfo.tsx:36 |
1504 | - __( 'Hide Debug Info', 'event_espresso' ), |
|
1504 | + __('Hide Debug Info', 'event_espresso'), |
|
1505 | 1505 | |
1506 | 1506 | // Reference: packages/ui-components/src/DebugInfo/DebugInfo.tsx:36 |
1507 | - __( 'Show Debug Info', 'event_espresso' ), |
|
1507 | + __('Show Debug Info', 'event_espresso'), |
|
1508 | 1508 | |
1509 | 1509 | // Reference: packages/ui-components/src/EditDateRangeButton/EditDateRangeButton.tsx:49 |
1510 | - __( 'Edit Start and End Dates and Times', 'event_espresso' ), |
|
1510 | + __('Edit Start and End Dates and Times', 'event_espresso'), |
|
1511 | 1511 | |
1512 | 1512 | // Reference: packages/ui-components/src/EntityActionsMenu/entityMenuItems/Copy.tsx:8 |
1513 | - __( 'copy', 'event_espresso' ), |
|
1513 | + __('copy', 'event_espresso'), |
|
1514 | 1514 | |
1515 | 1515 | // Reference: packages/ui-components/src/EntityActionsMenu/entityMenuItems/Edit.tsx:8 |
1516 | - __( 'edit', 'event_espresso' ), |
|
1516 | + __('edit', 'event_espresso'), |
|
1517 | 1517 | |
1518 | 1518 | // Reference: packages/ui-components/src/EntityActionsMenu/entityMenuItems/Trash.tsx:8 |
1519 | - __( 'trash', 'event_espresso' ), |
|
1519 | + __('trash', 'event_espresso'), |
|
1520 | 1520 | |
1521 | 1521 | // Reference: packages/ui-components/src/EntityActionsMenu/entityMenuItems/Untrash.tsx:8 |
1522 | - __( 'untrash', 'event_espresso' ), |
|
1522 | + __('untrash', 'event_espresso'), |
|
1523 | 1523 | |
1524 | 1524 | // Reference: packages/ui-components/src/EntityDetailsPanel/EntityDetailsPanelSold.tsx:37 |
1525 | - __( 'view approved registrations for this date.', 'event_espresso' ), |
|
1525 | + __('view approved registrations for this date.', 'event_espresso'), |
|
1526 | 1526 | |
1527 | 1527 | // Reference: packages/ui-components/src/EntityDetailsPanel/EntityDetailsPanelSold.tsx:38 |
1528 | - __( 'view approved registrations for this ticket.', 'event_espresso' ), |
|
1528 | + __('view approved registrations for this ticket.', 'event_espresso'), |
|
1529 | 1529 | |
1530 | 1530 | // Reference: packages/ui-components/src/EntityList/filterBar/buttons/CardViewFilterButton.tsx:21 |
1531 | - __( 'card view', 'event_espresso' ), |
|
1531 | + __('card view', 'event_espresso'), |
|
1532 | 1532 | |
1533 | 1533 | // Reference: packages/ui-components/src/EntityList/filterBar/buttons/TableViewFilterButton.tsx:20 |
1534 | - __( 'table view', 'event_espresso' ), |
|
1534 | + __('table view', 'event_espresso'), |
|
1535 | 1535 | |
1536 | 1536 | // Reference: packages/ui-components/src/EntityList/filterBar/buttons/ToggleBulkActionsButton.tsx:8 |
1537 | - __( 'hide bulk actions', 'event_espresso' ), |
|
1537 | + __('hide bulk actions', 'event_espresso'), |
|
1538 | 1538 | |
1539 | 1539 | // Reference: packages/ui-components/src/EntityList/filterBar/buttons/ToggleBulkActionsButton.tsx:8 |
1540 | - __( 'show bulk actions', 'event_espresso' ), |
|
1540 | + __('show bulk actions', 'event_espresso'), |
|
1541 | 1541 | |
1542 | 1542 | // Reference: packages/ui-components/src/EntityList/filterBar/buttons/ToggleFiltersButton.tsx:9 |
1543 | - __( 'hide filters', 'event_espresso' ), |
|
1543 | + __('hide filters', 'event_espresso'), |
|
1544 | 1544 | |
1545 | 1545 | // Reference: packages/ui-components/src/EntityList/filterBar/buttons/ToggleFiltersButton.tsx:9 |
1546 | - __( 'show filters', 'event_espresso' ), |
|
1546 | + __('show filters', 'event_espresso'), |
|
1547 | 1547 | |
1548 | 1548 | // Reference: packages/ui-components/src/FormBuilder/FormElement/FormElementToolbar.tsx:35 |
1549 | - __( 'form element settings', 'event_espresso' ), |
|
1549 | + __('form element settings', 'event_espresso'), |
|
1550 | 1550 | |
1551 | 1551 | // Reference: packages/ui-components/src/FormBuilder/FormElement/FormElementToolbar.tsx:44 |
1552 | - __( 'copy form element', 'event_espresso' ), |
|
1552 | + __('copy form element', 'event_espresso'), |
|
1553 | 1553 | |
1554 | 1554 | // Reference: packages/ui-components/src/FormBuilder/FormElement/FormElementToolbar.tsx:53 |
1555 | - __( 'delete form element', 'event_espresso' ), |
|
1555 | + __('delete form element', 'event_espresso'), |
|
1556 | 1556 | |
1557 | 1557 | // Reference: packages/ui-components/src/FormBuilder/FormElement/FormElementToolbar.tsx:62 |
1558 | - __( 'click, hold, and drag to reorder form element', 'event_espresso' ), |
|
1558 | + __('click, hold, and drag to reorder form element', 'event_espresso'), |
|
1559 | 1559 | |
1560 | 1560 | // Reference: packages/ui-components/src/FormBuilder/FormElement/Tabs/FormElementTabs.tsx:21 |
1561 | 1561 | // Reference: packages/ui-components/src/FormBuilder/FormSection/Tabs/FormSectionTabs.tsx:19 |
1562 | - __( 'Settings', 'event_espresso' ), |
|
1562 | + __('Settings', 'event_espresso'), |
|
1563 | 1563 | |
1564 | 1564 | // Reference: packages/ui-components/src/FormBuilder/FormElement/Tabs/FormElementTabs.tsx:25 |
1565 | 1565 | // Reference: packages/ui-components/src/FormBuilder/FormSection/Tabs/FormSectionTabs.tsx:23 |
1566 | - __( 'Styles', 'event_espresso' ), |
|
1566 | + __('Styles', 'event_espresso'), |
|
1567 | 1567 | |
1568 | 1568 | // Reference: packages/ui-components/src/FormBuilder/FormElement/Tabs/FormElementTabs.tsx:29 |
1569 | - __( 'Validation', 'event_espresso' ), |
|
1569 | + __('Validation', 'event_espresso'), |
|
1570 | 1570 | |
1571 | 1571 | // Reference: packages/ui-components/src/FormBuilder/FormElement/Tabs/FormElementTabs.tsx:33 |
1572 | 1572 | // Reference: packages/ui-components/src/FormBuilder/FormSection/Tabs/FormSectionTabs.tsx:27 |
1573 | - __( 'Rules', 'event_espresso' ), |
|
1573 | + __('Rules', 'event_espresso'), |
|
1574 | 1574 | |
1575 | 1575 | // Reference: packages/ui-components/src/FormBuilder/FormElement/Tabs/Settings.tsx:24 |
1576 | 1576 | // Reference: packages/ui-components/src/FormBuilder/FormSection/Tabs/Settings.tsx:28 |
1577 | - __( 'admin label', 'event_espresso' ), |
|
1577 | + __('admin label', 'event_espresso'), |
|
1578 | 1578 | |
1579 | 1579 | // Reference: packages/ui-components/src/FormBuilder/FormElement/Tabs/Settings.tsx:29 |
1580 | - __( 'public label', 'event_espresso' ), |
|
1580 | + __('public label', 'event_espresso'), |
|
1581 | 1581 | |
1582 | 1582 | // Reference: packages/ui-components/src/FormBuilder/FormElement/Tabs/Settings.tsx:34 |
1583 | - __( 'placeholder', 'event_espresso' ), |
|
1583 | + __('placeholder', 'event_espresso'), |
|
1584 | 1584 | |
1585 | 1585 | // Reference: packages/ui-components/src/FormBuilder/FormElement/Tabs/Settings.tsx:38 |
1586 | - __( 'help text', 'event_espresso' ), |
|
1586 | + __('help text', 'event_espresso'), |
|
1587 | 1587 | |
1588 | 1588 | // Reference: packages/ui-components/src/FormBuilder/FormElement/Tabs/Styles.tsx:28 |
1589 | - __( 'label css class', 'event_espresso' ), |
|
1589 | + __('label css class', 'event_espresso'), |
|
1590 | 1590 | |
1591 | 1591 | // Reference: packages/ui-components/src/FormBuilder/FormElement/Tabs/Styles.tsx:33 |
1592 | - __( 'input css class', 'event_espresso' ), |
|
1592 | + __('input css class', 'event_espresso'), |
|
1593 | 1593 | |
1594 | 1594 | // Reference: packages/ui-components/src/FormBuilder/FormElement/Tabs/Styles.tsx:38 |
1595 | - __( 'help text css class', 'event_espresso' ), |
|
1595 | + __('help text css class', 'event_espresso'), |
|
1596 | 1596 | |
1597 | 1597 | // Reference: packages/ui-components/src/FormBuilder/FormElement/Tabs/Styles.tsx:43 |
1598 | 1598 | // Reference: packages/ui-components/src/FormBuilder/FormSection/Tabs/Styles.tsx:28 |
1599 | - __( 'custom css', 'event_espresso' ), |
|
1599 | + __('custom css', 'event_espresso'), |
|
1600 | 1600 | |
1601 | 1601 | // Reference: packages/ui-components/src/FormBuilder/FormElement/Tabs/Validation.tsx:29 |
1602 | - __( 'required', 'event_espresso' ), |
|
1602 | + __('required', 'event_espresso'), |
|
1603 | 1603 | |
1604 | 1604 | // Reference: packages/ui-components/src/FormBuilder/FormElement/Tabs/Validation.tsx:31 |
1605 | - __( 'required text', 'event_espresso' ), |
|
1605 | + __('required text', 'event_espresso'), |
|
1606 | 1606 | |
1607 | 1607 | // Reference: packages/ui-components/src/FormBuilder/FormElement/Tabs/Validation.tsx:37 |
1608 | - __( 'min', 'event_espresso' ), |
|
1608 | + __('min', 'event_espresso'), |
|
1609 | 1609 | |
1610 | 1610 | // Reference: packages/ui-components/src/FormBuilder/FormElement/Tabs/Validation.tsx:38 |
1611 | - __( 'max', 'event_espresso' ), |
|
1611 | + __('max', 'event_espresso'), |
|
1612 | 1612 | |
1613 | 1613 | // Reference: packages/ui-components/src/FormBuilder/FormSection/FormSectionSidebar.tsx:106 |
1614 | - __( 'load existing form section', 'event_espresso' ), |
|
1614 | + __('load existing form section', 'event_espresso'), |
|
1615 | 1615 | |
1616 | 1616 | // Reference: packages/ui-components/src/FormBuilder/FormSection/FormSectionSidebar.tsx:123 |
1617 | - __( 'add new form element', 'event_espresso' ), |
|
1617 | + __('add new form element', 'event_espresso'), |
|
1618 | 1618 | |
1619 | 1619 | // Reference: packages/ui-components/src/FormBuilder/FormSection/FormSectionSidebar.tsx:147 |
1620 | - __( 'Add Form Element', 'event_espresso' ), |
|
1620 | + __('Add Form Element', 'event_espresso'), |
|
1621 | 1621 | |
1622 | 1622 | // Reference: packages/ui-components/src/FormBuilder/FormSection/FormSectionSidebar.tsx:99 |
1623 | - __( 'form element order can be changed after adding by using the drag handles in the form element toolbar', 'event_espresso' ), |
|
1623 | + __('form element order can be changed after adding by using the drag handles in the form element toolbar', 'event_espresso'), |
|
1624 | 1624 | |
1625 | 1625 | // Reference: packages/ui-components/src/FormBuilder/FormSection/FormSectionToolbar.tsx:33 |
1626 | - __( 'form section settings', 'event_espresso' ), |
|
1626 | + __('form section settings', 'event_espresso'), |
|
1627 | 1627 | |
1628 | 1628 | // Reference: packages/ui-components/src/FormBuilder/FormSection/FormSectionToolbar.tsx:42 |
1629 | - __( 'copy form section', 'event_espresso' ), |
|
1629 | + __('copy form section', 'event_espresso'), |
|
1630 | 1630 | |
1631 | 1631 | // Reference: packages/ui-components/src/FormBuilder/FormSection/FormSectionToolbar.tsx:52 |
1632 | - __( 'delete form section', 'event_espresso' ), |
|
1632 | + __('delete form section', 'event_espresso'), |
|
1633 | 1633 | |
1634 | 1634 | // Reference: packages/ui-components/src/FormBuilder/FormSection/FormSectionToolbar.tsx:61 |
1635 | - __( 'click, hold, and drag to reorder form section', 'event_espresso' ), |
|
1635 | + __('click, hold, and drag to reorder form section', 'event_espresso'), |
|
1636 | 1636 | |
1637 | 1637 | // Reference: packages/ui-components/src/FormBuilder/FormSection/SaveSection.tsx:44 |
1638 | - __( 'save form section for use in other forms', 'event_espresso' ), |
|
1638 | + __('save form section for use in other forms', 'event_espresso'), |
|
1639 | 1639 | |
1640 | 1640 | // Reference: packages/ui-components/src/FormBuilder/FormSection/SaveSection.tsx:48 |
1641 | - __( 'save as', 'event_espresso' ), |
|
1641 | + __('save as', 'event_espresso'), |
|
1642 | 1642 | |
1643 | 1643 | // Reference: packages/ui-components/src/FormBuilder/FormSection/SaveSection.tsx:52 |
1644 | - __( 'default', 'event_espresso' ), |
|
1644 | + __('default', 'event_espresso'), |
|
1645 | 1645 | |
1646 | 1646 | // Reference: packages/ui-components/src/FormBuilder/FormSection/SaveSection.tsx:55 |
1647 | - __( 'shared', 'event_espresso' ), |
|
1647 | + __('shared', 'event_espresso'), |
|
1648 | 1648 | |
1649 | 1649 | // Reference: packages/ui-components/src/FormBuilder/FormSection/SaveSection.tsx:60 |
1650 | - __( 'default: a copy of this form section will be automatically added to ALL new events', 'event_espresso' ), |
|
1650 | + __('default: a copy of this form section will be automatically added to ALL new events', 'event_espresso'), |
|
1651 | 1651 | |
1652 | 1652 | // Reference: packages/ui-components/src/FormBuilder/FormSection/SaveSection.tsx:63 |
1653 | - __( 'shared: a copy of this form section will be saved for use in other events but not loaded by default', 'event_espresso' ), |
|
1653 | + __('shared: a copy of this form section will be saved for use in other events but not loaded by default', 'event_espresso'), |
|
1654 | 1654 | |
1655 | 1655 | // Reference: packages/ui-components/src/FormBuilder/FormSection/Tabs/Settings.tsx:33 |
1656 | - __( 'show name', 'event_espresso' ), |
|
1656 | + __('show name', 'event_espresso'), |
|
1657 | 1657 | |
1658 | 1658 | // Reference: packages/ui-components/src/FormBuilder/FormSection/Tabs/Styles.tsx:26 |
1659 | - __( 'css class', 'event_espresso' ), |
|
1659 | + __('css class', 'event_espresso'), |
|
1660 | 1660 | |
1661 | 1661 | // Reference: packages/ui-components/src/FormBuilder/constants.ts:100 |
1662 | - __( 'Day Selector', 'event_espresso' ), |
|
1662 | + __('Day Selector', 'event_espresso'), |
|
1663 | 1663 | |
1664 | 1664 | // Reference: packages/ui-components/src/FormBuilder/constants.ts:102 |
1665 | - __( 'adds a dropdown selector that allows users to select the day of the month (01 to 31)', 'event_espresso' ), |
|
1665 | + __('adds a dropdown selector that allows users to select the day of the month (01 to 31)', 'event_espresso'), |
|
1666 | 1666 | |
1667 | 1667 | // Reference: packages/ui-components/src/FormBuilder/constants.ts:105 |
1668 | - __( 'Month Selector', 'event_espresso' ), |
|
1668 | + __('Month Selector', 'event_espresso'), |
|
1669 | 1669 | |
1670 | 1670 | // Reference: packages/ui-components/src/FormBuilder/constants.ts:107 |
1671 | - __( 'adds a dropdown selector that allows users to select the month of the year (01 to 12)', 'event_espresso' ), |
|
1671 | + __('adds a dropdown selector that allows users to select the month of the year (01 to 12)', 'event_espresso'), |
|
1672 | 1672 | |
1673 | 1673 | // Reference: packages/ui-components/src/FormBuilder/constants.ts:110 |
1674 | - __( 'Year Selector', 'event_espresso' ), |
|
1674 | + __('Year Selector', 'event_espresso'), |
|
1675 | 1675 | |
1676 | 1676 | // Reference: packages/ui-components/src/FormBuilder/constants.ts:112 |
1677 | - __( 'adds a dropdown selector that allows users to select the year from a configurable range', 'event_espresso' ), |
|
1677 | + __('adds a dropdown selector that allows users to select the year from a configurable range', 'event_espresso'), |
|
1678 | 1678 | |
1679 | 1679 | // Reference: packages/ui-components/src/FormBuilder/constants.ts:115 |
1680 | - __( 'Radio Buttons', 'event_espresso' ), |
|
1680 | + __('Radio Buttons', 'event_espresso'), |
|
1681 | 1681 | |
1682 | 1682 | // Reference: packages/ui-components/src/FormBuilder/constants.ts:117 |
1683 | - __( 'adds one or more radio buttons that allow users to only select one option from those provided', 'event_espresso' ), |
|
1683 | + __('adds one or more radio buttons that allow users to only select one option from those provided', 'event_espresso'), |
|
1684 | 1684 | |
1685 | 1685 | // Reference: packages/ui-components/src/FormBuilder/constants.ts:120 |
1686 | - __( 'Decimal Number', 'event_espresso' ), |
|
1686 | + __('Decimal Number', 'event_espresso'), |
|
1687 | 1687 | |
1688 | 1688 | // Reference: packages/ui-components/src/FormBuilder/constants.ts:122 |
1689 | - __( 'adds a text input that only accepts numbers whose value is a decimal (float)', 'event_espresso' ), |
|
1689 | + __('adds a text input that only accepts numbers whose value is a decimal (float)', 'event_espresso'), |
|
1690 | 1690 | |
1691 | 1691 | // Reference: packages/ui-components/src/FormBuilder/constants.ts:125 |
1692 | - __( 'Whole Number', 'event_espresso' ), |
|
1692 | + __('Whole Number', 'event_espresso'), |
|
1693 | 1693 | |
1694 | 1694 | // Reference: packages/ui-components/src/FormBuilder/constants.ts:127 |
1695 | - __( 'adds a text input that only accepts numbers whose value is an integer (whole number)', 'event_espresso' ), |
|
1695 | + __('adds a text input that only accepts numbers whose value is an integer (whole number)', 'event_espresso'), |
|
1696 | 1696 | |
1697 | 1697 | // Reference: packages/ui-components/src/FormBuilder/constants.ts:130 |
1698 | - __( 'Number Range', 'event_espresso' ), |
|
1698 | + __('Number Range', 'event_espresso'), |
|
1699 | 1699 | |
1700 | 1700 | // Reference: packages/ui-components/src/FormBuilder/constants.ts:136 |
1701 | - __( 'Phone Number', 'event_espresso' ), |
|
1701 | + __('Phone Number', 'event_espresso'), |
|
1702 | 1702 | |
1703 | 1703 | // Reference: packages/ui-components/src/FormBuilder/constants.ts:142 |
1704 | - __( 'Dropdown', 'event_espresso' ), |
|
1704 | + __('Dropdown', 'event_espresso'), |
|
1705 | 1705 | |
1706 | 1706 | // Reference: packages/ui-components/src/FormBuilder/constants.ts:144 |
1707 | - __( 'adds a dropdown selector that accepts a single value', 'event_espresso' ), |
|
1707 | + __('adds a dropdown selector that accepts a single value', 'event_espresso'), |
|
1708 | 1708 | |
1709 | 1709 | // Reference: packages/ui-components/src/FormBuilder/constants.ts:147 |
1710 | - __( 'Multi Select', 'event_espresso' ), |
|
1710 | + __('Multi Select', 'event_espresso'), |
|
1711 | 1711 | |
1712 | 1712 | // Reference: packages/ui-components/src/FormBuilder/constants.ts:149 |
1713 | - __( 'adds a dropdown selector that accepts multiple values', 'event_espresso' ), |
|
1713 | + __('adds a dropdown selector that accepts multiple values', 'event_espresso'), |
|
1714 | 1714 | |
1715 | 1715 | // Reference: packages/ui-components/src/FormBuilder/constants.ts:152 |
1716 | - __( 'Toggle/Switch', 'event_espresso' ), |
|
1716 | + __('Toggle/Switch', 'event_espresso'), |
|
1717 | 1717 | |
1718 | 1718 | // Reference: packages/ui-components/src/FormBuilder/constants.ts:154 |
1719 | - __( 'adds a toggle or a switch to accept true or false value', 'event_espresso' ), |
|
1719 | + __('adds a toggle or a switch to accept true or false value', 'event_espresso'), |
|
1720 | 1720 | |
1721 | 1721 | // Reference: packages/ui-components/src/FormBuilder/constants.ts:157 |
1722 | - __( 'Multi Checkbox', 'event_espresso' ), |
|
1722 | + __('Multi Checkbox', 'event_espresso'), |
|
1723 | 1723 | |
1724 | 1724 | // Reference: packages/ui-components/src/FormBuilder/constants.ts:159 |
1725 | - __( 'adds checkboxes that allow users to select zero or more options from those provided', 'event_espresso' ), |
|
1725 | + __('adds checkboxes that allow users to select zero or more options from those provided', 'event_espresso'), |
|
1726 | 1726 | |
1727 | 1727 | // Reference: packages/ui-components/src/FormBuilder/constants.ts:162 |
1728 | - __( 'Country Selector', 'event_espresso' ), |
|
1728 | + __('Country Selector', 'event_espresso'), |
|
1729 | 1729 | |
1730 | 1730 | // Reference: packages/ui-components/src/FormBuilder/constants.ts:164 |
1731 | - __( 'adds a dropdown selector populated with names of countries that are enabled for the site', 'event_espresso' ), |
|
1731 | + __('adds a dropdown selector populated with names of countries that are enabled for the site', 'event_espresso'), |
|
1732 | 1732 | |
1733 | 1733 | // Reference: packages/ui-components/src/FormBuilder/constants.ts:167 |
1734 | - __( 'State Selector', 'event_espresso' ), |
|
1734 | + __('State Selector', 'event_espresso'), |
|
1735 | 1735 | |
1736 | 1736 | // Reference: packages/ui-components/src/FormBuilder/constants.ts:173 |
1737 | - __( 'Button', 'event_espresso' ), |
|
1737 | + __('Button', 'event_espresso'), |
|
1738 | 1738 | |
1739 | 1739 | // Reference: packages/ui-components/src/FormBuilder/constants.ts:175 |
1740 | - __( 'adds a button to the form that can be used for triggering fucntionality (requires custom coding)', 'event_espresso' ), |
|
1740 | + __('adds a button to the form that can be used for triggering fucntionality (requires custom coding)', 'event_espresso'), |
|
1741 | 1741 | |
1742 | 1742 | // Reference: packages/ui-components/src/FormBuilder/constants.ts:178 |
1743 | - __( 'Reset Button', 'event_espresso' ), |
|
1743 | + __('Reset Button', 'event_espresso'), |
|
1744 | 1744 | |
1745 | 1745 | // Reference: packages/ui-components/src/FormBuilder/constants.ts:180 |
1746 | - __( 'adds a button that will reset the form back to its orginial state.', 'event_espresso' ), |
|
1746 | + __('adds a button that will reset the form back to its orginial state.', 'event_espresso'), |
|
1747 | 1747 | |
1748 | 1748 | // Reference: packages/ui-components/src/FormBuilder/constants.ts:26 |
1749 | - __( 'Form Section', 'event_espresso' ), |
|
1749 | + __('Form Section', 'event_espresso'), |
|
1750 | 1750 | |
1751 | 1751 | // Reference: packages/ui-components/src/FormBuilder/constants.ts:28 |
1752 | - __( 'Used for creating logical groupings for questions and form elements. Need to add a heading or description? Use the HTML form element.', 'event_espresso' ), |
|
1752 | + __('Used for creating logical groupings for questions and form elements. Need to add a heading or description? Use the HTML form element.', 'event_espresso'), |
|
1753 | 1753 | |
1754 | 1754 | // Reference: packages/ui-components/src/FormBuilder/constants.ts:33 |
1755 | - __( 'HTML Block', 'event_espresso' ), |
|
1755 | + __('HTML Block', 'event_espresso'), |
|
1756 | 1756 | |
1757 | 1757 | // Reference: packages/ui-components/src/FormBuilder/constants.ts:35 |
1758 | - __( 'allows you to add HTML like headings or text paragraphs to your form', 'event_espresso' ), |
|
1758 | + __('allows you to add HTML like headings or text paragraphs to your form', 'event_espresso'), |
|
1759 | 1759 | |
1760 | 1760 | // Reference: packages/ui-components/src/FormBuilder/constants.ts:38 |
1761 | - __( 'Text Input', 'event_espresso' ), |
|
1761 | + __('Text Input', 'event_espresso'), |
|
1762 | 1762 | |
1763 | 1763 | // Reference: packages/ui-components/src/FormBuilder/constants.ts:40 |
1764 | - __( 'adds a text input that only accepts plain text', 'event_espresso' ), |
|
1764 | + __('adds a text input that only accepts plain text', 'event_espresso'), |
|
1765 | 1765 | |
1766 | 1766 | // Reference: packages/ui-components/src/FormBuilder/constants.ts:43 |
1767 | - __( 'Plain Text Area', 'event_espresso' ), |
|
1767 | + __('Plain Text Area', 'event_espresso'), |
|
1768 | 1768 | |
1769 | 1769 | // Reference: packages/ui-components/src/FormBuilder/constants.ts:45 |
1770 | - __( 'adds a textarea block that only accepts plain text', 'event_espresso' ), |
|
1770 | + __('adds a textarea block that only accepts plain text', 'event_espresso'), |
|
1771 | 1771 | |
1772 | 1772 | // Reference: packages/ui-components/src/FormBuilder/constants.ts:48 |
1773 | - __( 'HTML Text Area', 'event_espresso' ), |
|
1773 | + __('HTML Text Area', 'event_espresso'), |
|
1774 | 1774 | |
1775 | 1775 | // Reference: packages/ui-components/src/FormBuilder/constants.ts:50 |
1776 | - __( 'adds a textarea block that accepts text including simple HTML markup', 'event_espresso' ), |
|
1776 | + __('adds a textarea block that accepts text including simple HTML markup', 'event_espresso'), |
|
1777 | 1777 | |
1778 | 1778 | // Reference: packages/ui-components/src/FormBuilder/constants.ts:53 |
1779 | - __( 'Email Address', 'event_espresso' ), |
|
1779 | + __('Email Address', 'event_espresso'), |
|
1780 | 1780 | |
1781 | 1781 | // Reference: packages/ui-components/src/FormBuilder/constants.ts:55 |
1782 | - __( 'adds a text input that only accets a valid email address', 'event_espresso' ), |
|
1782 | + __('adds a text input that only accets a valid email address', 'event_espresso'), |
|
1783 | 1783 | |
1784 | 1784 | // Reference: packages/ui-components/src/FormBuilder/constants.ts:58 |
1785 | - __( 'Email Confirmation', 'event_espresso' ), |
|
1785 | + __('Email Confirmation', 'event_espresso'), |
|
1786 | 1786 | |
1787 | 1787 | // Reference: packages/ui-components/src/FormBuilder/constants.ts:64 |
1788 | - __( 'Password', 'event_espresso' ), |
|
1788 | + __('Password', 'event_espresso'), |
|
1789 | 1789 | |
1790 | 1790 | // Reference: packages/ui-components/src/FormBuilder/constants.ts:66 |
1791 | - __( 'adds a text input that accepts text but masks what the user enters', 'event_espresso' ), |
|
1791 | + __('adds a text input that accepts text but masks what the user enters', 'event_espresso'), |
|
1792 | 1792 | |
1793 | 1793 | // Reference: packages/ui-components/src/FormBuilder/constants.ts:69 |
1794 | - __( 'URL', 'event_espresso' ), |
|
1794 | + __('URL', 'event_espresso'), |
|
1795 | 1795 | |
1796 | 1796 | // Reference: packages/ui-components/src/FormBuilder/constants.ts:71 |
1797 | - __( 'adds a text input for entering a URL address', 'event_espresso' ), |
|
1797 | + __('adds a text input for entering a URL address', 'event_espresso'), |
|
1798 | 1798 | |
1799 | 1799 | // Reference: packages/ui-components/src/FormBuilder/constants.ts:74 |
1800 | - __( 'Date', 'event_espresso' ), |
|
1800 | + __('Date', 'event_espresso'), |
|
1801 | 1801 | |
1802 | 1802 | // Reference: packages/ui-components/src/FormBuilder/constants.ts:76 |
1803 | - __( 'adds a text input that allows users to enter a date directly via keyboard or a datepicker', 'event_espresso' ), |
|
1803 | + __('adds a text input that allows users to enter a date directly via keyboard or a datepicker', 'event_espresso'), |
|
1804 | 1804 | |
1805 | 1805 | // Reference: packages/ui-components/src/FormBuilder/constants.ts:79 |
1806 | - __( 'Local Date', 'event_espresso' ), |
|
1806 | + __('Local Date', 'event_espresso'), |
|
1807 | 1807 | |
1808 | 1808 | // Reference: packages/ui-components/src/FormBuilder/constants.ts:85 |
1809 | - __( 'Month', 'event_espresso' ), |
|
1809 | + __('Month', 'event_espresso'), |
|
1810 | 1810 | |
1811 | 1811 | // Reference: packages/ui-components/src/FormBuilder/constants.ts:87 |
1812 | - __( 'adds a text input that allows users to enter a month and year directly via keyboard or a datepicker', 'event_espresso' ), |
|
1812 | + __('adds a text input that allows users to enter a month and year directly via keyboard or a datepicker', 'event_espresso'), |
|
1813 | 1813 | |
1814 | 1814 | // Reference: packages/ui-components/src/FormBuilder/constants.ts:90 |
1815 | - __( 'Time', 'event_espresso' ), |
|
1815 | + __('Time', 'event_espresso'), |
|
1816 | 1816 | |
1817 | 1817 | // Reference: packages/ui-components/src/FormBuilder/constants.ts:92 |
1818 | - __( 'adds a text input that allows users to enter a time directly via keyboard or a timepicker', 'event_espresso' ), |
|
1818 | + __('adds a text input that allows users to enter a time directly via keyboard or a timepicker', 'event_espresso'), |
|
1819 | 1819 | |
1820 | 1820 | // Reference: packages/ui-components/src/FormBuilder/constants.ts:95 |
1821 | - __( 'Week', 'event_espresso' ), |
|
1821 | + __('Week', 'event_espresso'), |
|
1822 | 1822 | |
1823 | 1823 | // Reference: packages/ui-components/src/FormBuilder/constants.ts:97 |
1824 | - __( 'adds a text input that allows users to enter a week and year directly via keyboard or a datepicker', 'event_espresso' ), |
|
1824 | + __('adds a text input that allows users to enter a week and year directly via keyboard or a datepicker', 'event_espresso'), |
|
1825 | 1825 | |
1826 | 1826 | // Reference: packages/ui-components/src/Legend/ToggleLegendButton.tsx:26 |
1827 | - __( 'hide legend', 'event_espresso' ), |
|
1827 | + __('hide legend', 'event_espresso'), |
|
1828 | 1828 | |
1829 | 1829 | // Reference: packages/ui-components/src/Legend/ToggleLegendButton.tsx:26 |
1830 | - __( 'show legend', 'event_espresso' ), |
|
1830 | + __('show legend', 'event_espresso'), |
|
1831 | 1831 | |
1832 | 1832 | // Reference: packages/ui-components/src/LoadingNotice/LoadingNotice.tsx:11 |
1833 | - __( 'loading…', 'event_espresso' ), |
|
1833 | + __('loading…', 'event_espresso'), |
|
1834 | 1834 | |
1835 | 1835 | // Reference: packages/ui-components/src/Modal/Modal.tsx:58 |
1836 | - __( 'close modal', 'event_espresso' ), |
|
1836 | + __('close modal', 'event_espresso'), |
|
1837 | 1837 | |
1838 | 1838 | // Reference: packages/ui-components/src/Pagination/ItemRender.tsx:10 |
1839 | - __( 'jump to previous', 'event_espresso' ), |
|
1839 | + __('jump to previous', 'event_espresso'), |
|
1840 | 1840 | |
1841 | 1841 | // Reference: packages/ui-components/src/Pagination/ItemRender.tsx:11 |
1842 | - __( 'jump to next', 'event_espresso' ), |
|
1842 | + __('jump to next', 'event_espresso'), |
|
1843 | 1843 | |
1844 | 1844 | // Reference: packages/ui-components/src/Pagination/ItemRender.tsx:12 |
1845 | - __( 'page', 'event_espresso' ), |
|
1845 | + __('page', 'event_espresso'), |
|
1846 | 1846 | |
1847 | 1847 | // Reference: packages/ui-components/src/Pagination/ItemRender.tsx:8 |
1848 | - __( 'previous', 'event_espresso' ), |
|
1848 | + __('previous', 'event_espresso'), |
|
1849 | 1849 | |
1850 | 1850 | // Reference: packages/ui-components/src/Pagination/ItemRender.tsx:9 |
1851 | - __( 'next', 'event_espresso' ), |
|
1851 | + __('next', 'event_espresso'), |
|
1852 | 1852 | |
1853 | 1853 | // Reference: packages/ui-components/src/Pagination/PerPage.tsx:37 |
1854 | - __( 'items per page', 'event_espresso' ), |
|
1854 | + __('items per page', 'event_espresso'), |
|
1855 | 1855 | |
1856 | 1856 | // Reference: packages/ui-components/src/Pagination/constants.ts:10 |
1857 | 1857 | /* translators: %s is per page value */ |
1858 | - __( '%s / page', 'event_espresso' ), |
|
1858 | + __('%s / page', 'event_espresso'), |
|
1859 | 1859 | |
1860 | 1860 | // Reference: packages/ui-components/src/Pagination/constants.ts:13 |
1861 | - __( 'Next Page', 'event_espresso' ), |
|
1861 | + __('Next Page', 'event_espresso'), |
|
1862 | 1862 | |
1863 | 1863 | // Reference: packages/ui-components/src/Pagination/constants.ts:14 |
1864 | - __( 'Previous Page', 'event_espresso' ), |
|
1864 | + __('Previous Page', 'event_espresso'), |
|
1865 | 1865 | |
1866 | 1866 | // Reference: packages/ui-components/src/PercentSign/index.tsx:10 |
1867 | - __( '%', 'event_espresso' ), |
|
1867 | + __('%', 'event_espresso'), |
|
1868 | 1868 | |
1869 | 1869 | // Reference: packages/ui-components/src/SimpleEntityList/EntityOptionsRow/index.tsx:23 |
1870 | - __( 'Select an existing one to use as a template.', 'event_espresso' ), |
|
1870 | + __('Select an existing one to use as a template.', 'event_espresso'), |
|
1871 | 1871 | |
1872 | 1872 | // Reference: packages/ui-components/src/SimpleEntityList/EntityOptionsRow/index.tsx:27 |
1873 | - __( 'or', 'event_espresso' ), |
|
1873 | + __('or', 'event_espresso'), |
|
1874 | 1874 | |
1875 | 1875 | // Reference: packages/ui-components/src/SimpleEntityList/EntityOptionsRow/index.tsx:30 |
1876 | - __( 'Add new and insert details manually', 'event_espresso' ), |
|
1876 | + __('Add new and insert details manually', 'event_espresso'), |
|
1877 | 1877 | |
1878 | 1878 | // Reference: packages/ui-components/src/SimpleEntityList/EntityOptionsRow/index.tsx:34 |
1879 | - __( 'Add New', 'event_espresso' ), |
|
1879 | + __('Add New', 'event_espresso'), |
|
1880 | 1880 | |
1881 | 1881 | // Reference: packages/ui-components/src/Stepper/buttons/Next.tsx:8 |
1882 | - __( 'Next', 'event_espresso' ), |
|
1882 | + __('Next', 'event_espresso'), |
|
1883 | 1883 | |
1884 | 1884 | // Reference: packages/ui-components/src/Stepper/buttons/Previous.tsx:8 |
1885 | - __( 'Previous', 'event_espresso' ), |
|
1885 | + __('Previous', 'event_espresso'), |
|
1886 | 1886 | |
1887 | 1887 | // Reference: packages/ui-components/src/Steps/Steps.tsx:31 |
1888 | - __( 'Steps', 'event_espresso' ), |
|
1888 | + __('Steps', 'event_espresso'), |
|
1889 | 1889 | |
1890 | 1890 | // Reference: packages/ui-components/src/TabbableText/index.tsx:19 |
1891 | - __( 'Click to edit…', 'event_espresso' ), |
|
1891 | + __('Click to edit…', 'event_espresso'), |
|
1892 | 1892 | |
1893 | 1893 | // Reference: packages/ui-components/src/TimezoneTimeInfo/Content.tsx:14 |
1894 | - __( 'The Website\'s Time Zone', 'event_espresso' ), |
|
1894 | + __('The Website\'s Time Zone', 'event_espresso'), |
|
1895 | 1895 | |
1896 | 1896 | // Reference: packages/ui-components/src/TimezoneTimeInfo/Content.tsx:19 |
1897 | - __( 'UTC (Greenwich Mean Time)', 'event_espresso' ), |
|
1897 | + __('UTC (Greenwich Mean Time)', 'event_espresso'), |
|
1898 | 1898 | |
1899 | 1899 | // Reference: packages/ui-components/src/TimezoneTimeInfo/Content.tsx:9 |
1900 | - __( 'Your Local Time Zone', 'event_espresso' ), |
|
1900 | + __('Your Local Time Zone', 'event_espresso'), |
|
1901 | 1901 | |
1902 | 1902 | // Reference: packages/ui-components/src/TimezoneTimeInfo/TimezoneTimeInfo.tsx:27 |
1903 | - __( 'click for timezone information', 'event_espresso' ), |
|
1903 | + __('click for timezone information', 'event_espresso'), |
|
1904 | 1904 | |
1905 | 1905 | // Reference: packages/ui-components/src/TimezoneTimeInfo/TimezoneTimeInfo.tsx:32 |
1906 | - __( 'This Date Converted To:', 'event_espresso' ), |
|
1906 | + __('This Date Converted To:', 'event_espresso'), |
|
1907 | 1907 | |
1908 | 1908 | // Reference: packages/ui-components/src/bulkEdit/BulkActions.tsx:51 |
1909 | - __( 'select all', 'event_espresso' ), |
|
1909 | + __('select all', 'event_espresso'), |
|
1910 | 1910 | |
1911 | 1911 | // Reference: packages/ui-components/src/bulkEdit/BulkActions.tsx:54 |
1912 | - __( 'apply', 'event_espresso' ) |
|
1912 | + __('apply', 'event_espresso') |
|
1913 | 1913 | ); |
1914 | 1914 | /* THIS IS THE END OF THE GENERATED FILE */ |