@@ -1,16 +1,16 @@ |
||
1 | 1 | <?php if ( ! defined('EVENT_ESPRESSO_VERSION')) { exit('No direct script access allowed'); } |
2 | 2 | /** |
3 | - * |
|
4 | - * Class EE_SPCO_JSON_Response |
|
5 | - * |
|
6 | - * Description |
|
7 | - * |
|
8 | - * @package Event Espresso |
|
9 | - * @subpackage core |
|
10 | - * @author Brent Christensen |
|
11 | - * @since $VID:$ |
|
12 | - * |
|
13 | - */ |
|
3 | + * |
|
4 | + * Class EE_SPCO_JSON_Response |
|
5 | + * |
|
6 | + * Description |
|
7 | + * |
|
8 | + * @package Event Espresso |
|
9 | + * @subpackage core |
|
10 | + * @author Brent Christensen |
|
11 | + * @since $VID:$ |
|
12 | + * |
|
13 | + */ |
|
14 | 14 | class EE_SPCO_JSON_Response { |
15 | 15 | |
16 | 16 | /** |
@@ -107,71 +107,71 @@ discard block |
||
107 | 107 | public function __toString() { |
108 | 108 | $JSON_response = array(); |
109 | 109 | // grab notices |
110 | - $notices = EE_Error::get_notices( FALSE ); |
|
111 | - $this->set_attention( isset( $notices['attention'] ) ? $notices['attention'] : '' ); |
|
112 | - $this->set_errors( isset( $notices['errors'] ) ? $notices['errors'] : '' ); |
|
113 | - $this->set_success( isset( $notices['success'] ) ? $notices['success'] : '' ); |
|
110 | + $notices = EE_Error::get_notices(FALSE); |
|
111 | + $this->set_attention(isset($notices['attention']) ? $notices['attention'] : ''); |
|
112 | + $this->set_errors(isset($notices['errors']) ? $notices['errors'] : ''); |
|
113 | + $this->set_success(isset($notices['success']) ? $notices['success'] : ''); |
|
114 | 114 | // add notices to JSON response, but only if they exist |
115 | - if ( $this->attention() ) { |
|
115 | + if ($this->attention()) { |
|
116 | 116 | $JSON_response['attention'] = $this->attention(); |
117 | 117 | } |
118 | - if ( $this->errors() ) { |
|
118 | + if ($this->errors()) { |
|
119 | 119 | $JSON_response['errors'] = $this->errors(); |
120 | 120 | } |
121 | - if ( $this->unexpected_errors() ) { |
|
121 | + if ($this->unexpected_errors()) { |
|
122 | 122 | $JSON_response['unexpected_errors'] = $this->unexpected_errors(); |
123 | 123 | } |
124 | - if ( $this->success() ) { |
|
124 | + if ($this->success()) { |
|
125 | 125 | $JSON_response['success'] = $this->success(); |
126 | 126 | } |
127 | 127 | // but if NO notices are set... at least set the "success" as a key so that the JS knows everything worked |
128 | - if ( ! isset( $JSON_response[ 'attention' ] ) && ! isset( $JSON_response[ 'errors' ] ) && ! isset( $JSON_response[ 'success' ] ) ) { |
|
128 | + if ( ! isset($JSON_response['attention']) && ! isset($JSON_response['errors']) && ! isset($JSON_response['success'])) { |
|
129 | 129 | $JSON_response['success'] = null; |
130 | 130 | } |
131 | 131 | // set redirect_url, IF it exists |
132 | - if ( $this->redirect_url() ) { |
|
132 | + if ($this->redirect_url()) { |
|
133 | 133 | $JSON_response['redirect_url'] = $this->redirect_url(); |
134 | 134 | } |
135 | 135 | // set registration_time_limit, IF it exists |
136 | - if ( $this->registration_time_limit() ) { |
|
136 | + if ($this->registration_time_limit()) { |
|
137 | 137 | $JSON_response['registration_time_limit'] = $this->registration_time_limit(); |
138 | 138 | } |
139 | 139 | // set payment_amount, IF it exists |
140 | - if ( $this->payment_amount() !== null ) { |
|
141 | - $JSON_response[ 'payment_amount' ] = $this->payment_amount(); |
|
140 | + if ($this->payment_amount() !== null) { |
|
141 | + $JSON_response['payment_amount'] = $this->payment_amount(); |
|
142 | 142 | } |
143 | 143 | // grab generic return data |
144 | 144 | $return_data = $this->return_data(); |
145 | 145 | // add billing form validation rules |
146 | - if ( $this->validation_rules() ) { |
|
146 | + if ($this->validation_rules()) { |
|
147 | 147 | $return_data['validation_rules'] = $this->validation_rules(); |
148 | 148 | } |
149 | 149 | // set reg_step_html, IF it exists |
150 | - if ( $this->reg_step_html() ) { |
|
150 | + if ($this->reg_step_html()) { |
|
151 | 151 | $return_data['reg_step_html'] = $this->reg_step_html(); |
152 | 152 | } |
153 | 153 | // set method of payment, IF it exists |
154 | - if ( $this->method_of_payment() ) { |
|
154 | + if ($this->method_of_payment()) { |
|
155 | 155 | $return_data['method_of_payment'] = $this->method_of_payment(); |
156 | 156 | } |
157 | 157 | // set "plz_select_method_of_payment" message, IF it exists |
158 | - if ( $this->plz_select_method_of_payment() ) { |
|
158 | + if ($this->plz_select_method_of_payment()) { |
|
159 | 159 | $return_data['plz_select_method_of_payment'] = $this->plz_select_method_of_payment(); |
160 | 160 | } |
161 | 161 | // set redirect_form, IF it exists |
162 | - if ( $this->redirect_form() ) { |
|
162 | + if ($this->redirect_form()) { |
|
163 | 163 | $return_data['redirect_form'] = $this->redirect_form(); |
164 | 164 | } |
165 | 165 | // and finally, add return_data array to main JSON response array, IF it contains anything |
166 | 166 | // why did we add some of the above properties to the return data array? |
167 | 167 | // because it is easier and cleaner in the Javascript to deal with this way |
168 | - if ( ! empty( $return_data )) { |
|
168 | + if ( ! empty($return_data)) { |
|
169 | 169 | $JSON_response['return_data'] = $return_data; |
170 | 170 | } |
171 | 171 | // filter final array |
172 | - $JSON_response = apply_filters( 'FHEE__EE_SPCO_JSON_Response___toString__JSON_response', $JSON_response ); |
|
172 | + $JSON_response = apply_filters('FHEE__EE_SPCO_JSON_Response___toString__JSON_response', $JSON_response); |
|
173 | 173 | // return encoded array |
174 | - return json_encode( $JSON_response ); |
|
174 | + return json_encode($JSON_response); |
|
175 | 175 | } |
176 | 176 | |
177 | 177 | |
@@ -179,7 +179,7 @@ discard block |
||
179 | 179 | /** |
180 | 180 | * @param string $attention |
181 | 181 | */ |
182 | - public function set_attention( $attention ) { |
|
182 | + public function set_attention($attention) { |
|
183 | 183 | $this->_attention = $attention; |
184 | 184 | } |
185 | 185 | |
@@ -197,7 +197,7 @@ discard block |
||
197 | 197 | /** |
198 | 198 | * @param string $errors |
199 | 199 | */ |
200 | - public function set_errors( $errors ) { |
|
200 | + public function set_errors($errors) { |
|
201 | 201 | $this->_errors = $errors; |
202 | 202 | } |
203 | 203 | |
@@ -224,7 +224,7 @@ discard block |
||
224 | 224 | /** |
225 | 225 | * @param string $unexpected_errors |
226 | 226 | */ |
227 | - public function set_unexpected_errors( $unexpected_errors ) { |
|
227 | + public function set_unexpected_errors($unexpected_errors) { |
|
228 | 228 | $this->_unexpected_errors = $unexpected_errors; |
229 | 229 | } |
230 | 230 | |
@@ -233,7 +233,7 @@ discard block |
||
233 | 233 | /** |
234 | 234 | * @param string $success |
235 | 235 | */ |
236 | - public function set_success( $success ) { |
|
236 | + public function set_success($success) { |
|
237 | 237 | $this->_success = $success; |
238 | 238 | } |
239 | 239 | |
@@ -251,7 +251,7 @@ discard block |
||
251 | 251 | /** |
252 | 252 | * @param string $method_of_payment |
253 | 253 | */ |
254 | - public function set_method_of_payment( $method_of_payment ) { |
|
254 | + public function set_method_of_payment($method_of_payment) { |
|
255 | 255 | $this->_method_of_payment = $method_of_payment; |
256 | 256 | } |
257 | 257 | |
@@ -278,8 +278,8 @@ discard block |
||
278 | 278 | /** |
279 | 279 | * @param float $payment_amount |
280 | 280 | */ |
281 | - public function set_payment_amount( $payment_amount ) { |
|
282 | - $this->_payment_amount = EEH_Money::convert_to_float_from_localized_money( $payment_amount ); |
|
281 | + public function set_payment_amount($payment_amount) { |
|
282 | + $this->_payment_amount = EEH_Money::convert_to_float_from_localized_money($payment_amount); |
|
283 | 283 | } |
284 | 284 | |
285 | 285 | |
@@ -287,7 +287,7 @@ discard block |
||
287 | 287 | /** |
288 | 288 | * @param string $next_step_html |
289 | 289 | */ |
290 | - public function set_reg_step_html( $next_step_html ) { |
|
290 | + public function set_reg_step_html($next_step_html) { |
|
291 | 291 | $this->_reg_step_html = $next_step_html; |
292 | 292 | } |
293 | 293 | |
@@ -305,7 +305,7 @@ discard block |
||
305 | 305 | /** |
306 | 306 | * @param string $redirect_form |
307 | 307 | */ |
308 | - public function set_redirect_form( $redirect_form ) { |
|
308 | + public function set_redirect_form($redirect_form) { |
|
309 | 309 | $this->_redirect_form = $redirect_form; |
310 | 310 | } |
311 | 311 | |
@@ -315,7 +315,7 @@ discard block |
||
315 | 315 | * @return string |
316 | 316 | */ |
317 | 317 | public function redirect_form() { |
318 | - return ! empty( $this->_redirect_form ) ? $this->_redirect_form : FALSE; |
|
318 | + return ! empty($this->_redirect_form) ? $this->_redirect_form : FALSE; |
|
319 | 319 | } |
320 | 320 | |
321 | 321 | |
@@ -323,7 +323,7 @@ discard block |
||
323 | 323 | /** |
324 | 324 | * @param string $plz_select_method_of_payment |
325 | 325 | */ |
326 | - public function set_plz_select_method_of_payment( $plz_select_method_of_payment ) { |
|
326 | + public function set_plz_select_method_of_payment($plz_select_method_of_payment) { |
|
327 | 327 | $this->_plz_select_method_of_payment = $plz_select_method_of_payment; |
328 | 328 | } |
329 | 329 | |
@@ -341,7 +341,7 @@ discard block |
||
341 | 341 | /** |
342 | 342 | * @param string $redirect_url |
343 | 343 | */ |
344 | - public function set_redirect_url( $redirect_url ) { |
|
344 | + public function set_redirect_url($redirect_url) { |
|
345 | 345 | $this->_redirect_url = $redirect_url; |
346 | 346 | } |
347 | 347 | |
@@ -368,7 +368,7 @@ discard block |
||
368 | 368 | /** |
369 | 369 | * @param string $registration_time_limit |
370 | 370 | */ |
371 | - public function set_registration_time_limit( $registration_time_limit ) { |
|
371 | + public function set_registration_time_limit($registration_time_limit) { |
|
372 | 372 | $this->_registration_time_limit = $registration_time_limit; |
373 | 373 | } |
374 | 374 | |
@@ -377,8 +377,8 @@ discard block |
||
377 | 377 | /** |
378 | 378 | * @param array $return_data |
379 | 379 | */ |
380 | - public function set_return_data( $return_data ) { |
|
381 | - $this->_return_data = array_merge( $this->_return_data, $return_data ); |
|
380 | + public function set_return_data($return_data) { |
|
381 | + $this->_return_data = array_merge($this->_return_data, $return_data); |
|
382 | 382 | } |
383 | 383 | |
384 | 384 | |
@@ -395,9 +395,9 @@ discard block |
||
395 | 395 | /** |
396 | 396 | * @param array $validation_rules |
397 | 397 | */ |
398 | - public function add_validation_rules( $validation_rules = array() ) { |
|
399 | - if ( is_array( $validation_rules ) && ! empty( $validation_rules )) { |
|
400 | - $this->_validation_rules = array_merge( $this->_validation_rules, $validation_rules ); |
|
398 | + public function add_validation_rules($validation_rules = array()) { |
|
399 | + if (is_array($validation_rules) && ! empty($validation_rules)) { |
|
400 | + $this->_validation_rules = array_merge($this->_validation_rules, $validation_rules); |
|
401 | 401 | } |
402 | 402 | } |
403 | 403 | |
@@ -407,7 +407,7 @@ discard block |
||
407 | 407 | * @return array | bool |
408 | 408 | */ |
409 | 409 | public function validation_rules() { |
410 | - return ! empty( $this->_validation_rules ) ? $this->_validation_rules : FALSE; |
|
410 | + return ! empty($this->_validation_rules) ? $this->_validation_rules : FALSE; |
|
411 | 411 | } |
412 | 412 | |
413 | 413 |
@@ -20,10 +20,10 @@ discard block |
||
20 | 20 | * @param EE_Checkout $checkout |
21 | 21 | * @return \EE_SPCO_Reg_Step_Registration_Confirmation |
22 | 22 | */ |
23 | - public function __construct( EE_Checkout $checkout ) { |
|
23 | + public function __construct(EE_Checkout $checkout) { |
|
24 | 24 | $this->_slug = 'registration_confirmation'; |
25 | 25 | $this->_name = __('Registration Confirmation', 'event_espresso'); |
26 | - $this->_template = SPCO_TEMPLATES_PATH . 'registration_page_confirmation.template.php'; |
|
26 | + $this->_template = SPCO_TEMPLATES_PATH.'registration_page_confirmation.template.php'; |
|
27 | 27 | $this->checkout = $checkout; |
28 | 28 | } |
29 | 29 | |
@@ -49,7 +49,7 @@ discard block |
||
49 | 49 | * @return string |
50 | 50 | */ |
51 | 51 | public function generate_reg_form() { |
52 | - EE_Registry::instance()->REQ->add_output( 'generate_reg_form' ); |
|
52 | + EE_Registry::instance()->REQ->add_output('generate_reg_form'); |
|
53 | 53 | } |
54 | 54 | |
55 | 55 |
@@ -1,16 +1,16 @@ |
||
1 | 1 | <?php if ( ! defined('EVENT_ESPRESSO_VERSION')) { exit('No direct script access allowed'); } |
2 | 2 | /** |
3 | - * |
|
4 | - * Class EE_SPCO_Reg_Step_Registration_Confirmation |
|
5 | - * |
|
6 | - * Description |
|
7 | - * |
|
8 | - * @package Event Espresso |
|
9 | - * @subpackage core |
|
10 | - * @author Brent Christensen |
|
11 | - * @since 4.5.0 |
|
12 | - * |
|
13 | - */ |
|
3 | + * |
|
4 | + * Class EE_SPCO_Reg_Step_Registration_Confirmation |
|
5 | + * |
|
6 | + * Description |
|
7 | + * |
|
8 | + * @package Event Espresso |
|
9 | + * @subpackage core |
|
10 | + * @author Brent Christensen |
|
11 | + * @since 4.5.0 |
|
12 | + * |
|
13 | + */ |
|
14 | 14 | class EE_SPCO_Reg_Step_Registration_Confirmation extends EE_SPCO_Reg_Step { |
15 | 15 | |
16 | 16 | /** |
@@ -42,7 +42,7 @@ discard block |
||
42 | 42 | |
43 | 43 | |
44 | 44 | /** |
45 | - * @return boolean |
|
45 | + * @return boolean|null |
|
46 | 46 | */ |
47 | 47 | public function initialize_reg_step() { |
48 | 48 | |
@@ -169,7 +169,7 @@ discard block |
||
169 | 169 | |
170 | 170 | |
171 | 171 | /** |
172 | - * @return boolean |
|
172 | + * @return boolean|null |
|
173 | 173 | */ |
174 | 174 | public function update_reg_step() { |
175 | 175 | EE_Error::doing_it_wrong( __CLASS__ . '::' . __FILE__, __( 'Can not call update_reg_step() on the Finalize Registration reg step.', 'event_espresso'), '4.6.0' ); |
@@ -1,3 +1,3 @@ |
||
1 | 1 | <p class="spco-attendee-info-not-required-pg smaller-text lt-grey-text"> |
2 | - <?php echo apply_filters( 'FHEE__registration_page_attendee_information__attendee_info_not_required_pg', __( 'This ticket type does not require any information for additional attendees, so attendee #1\'s information will be used for its registration purposes.', 'event_espresso' ));?> |
|
2 | + <?php echo apply_filters('FHEE__registration_page_attendee_information__attendee_info_not_required_pg', __('This ticket type does not require any information for additional attendees, so attendee #1\'s information will be used for its registration purposes.', 'event_espresso')); ?> |
|
3 | 3 | </p> |
@@ -1,3 +1,3 @@ |
||
1 | 1 | <p id="spco-auto-copy-attendee-pg" class="smaller-text lt-grey-text"> |
2 | - <?php echo apply_filters( 'FHEE__registration_page_attendee_information__auto_copy_attendee_pg', __('The above information will be used for any additional tickets/attendees.', 'event_espresso' ));?> |
|
2 | + <?php echo apply_filters('FHEE__registration_page_attendee_information__auto_copy_attendee_pg', __('The above information will be used for any additional tickets/attendees.', 'event_espresso')); ?> |
|
3 | 3 | </p> |
4 | 4 | \ No newline at end of file |
@@ -1,15 +1,15 @@ discard block |
||
1 | 1 | <div id="spco-copy-attendee-dv" class="hide-if-no-js"> |
2 | 2 | |
3 | 3 | <p class="spco-copy-all-attendee-pg"> |
4 | - <label class="ee-checkbox-label-before ee-checkbox-label-wide"><?php _e('Use Attendee #1\'s information for ALL attendees', 'event_espresso');?> |
|
4 | + <label class="ee-checkbox-label-before ee-checkbox-label-wide"><?php _e('Use Attendee #1\'s information for ALL attendees', 'event_espresso'); ?> |
|
5 | 5 | <input id="spco-copy-all-attendee-chk" class="spco-copy-all-attendee-chk ee-do-not-validate" type="checkbox" value="copy-all"> |
6 | 6 | </label> |
7 | 7 | </p> |
8 | 8 | |
9 | - <p class="spco-copy-attendee-pg"><?php echo apply_filters( 'FHEE__registration_page_attendee_information__copy_attendee_pg', sprintf( __('This option allows you to use the above information for all additional attendee question fields. %sPlease note:%s some events may have additional questions that you may still be required to answer in order to complete your registration.', 'event_espresso'), '<strong>', '</strong>' )); ?></p> |
|
9 | + <p class="spco-copy-attendee-pg"><?php echo apply_filters('FHEE__registration_page_attendee_information__copy_attendee_pg', sprintf(__('This option allows you to use the above information for all additional attendee question fields. %sPlease note:%s some events may have additional questions that you may still be required to answer in order to complete your registration.', 'event_espresso'), '<strong>', '</strong>')); ?></p> |
|
10 | 10 | |
11 | - <a id="display-more-attendee-copy-options" class="display-the-hidden smaller-text float-right" rel="more-attendee-copy-options" ><span class="dashicons dashicons-arrow-right"></span><?php _e('advanced copy options', 'event_espresso');?></a> |
|
12 | - <a id="hide-more-attendee-copy-options" class="hide-the-displayed smaller-text float-right" rel="more-attendee-copy-options" style="display: none;"><span class="dashicons dashicons-arrow-down"></span><?php _e('basic copy options', 'event_espresso');?></a> |
|
11 | + <a id="display-more-attendee-copy-options" class="display-the-hidden smaller-text float-right" rel="more-attendee-copy-options" ><span class="dashicons dashicons-arrow-right"></span><?php _e('advanced copy options', 'event_espresso'); ?></a> |
|
12 | + <a id="hide-more-attendee-copy-options" class="hide-the-displayed smaller-text float-right" rel="more-attendee-copy-options" style="display: none;"><span class="dashicons dashicons-arrow-down"></span><?php _e('basic copy options', 'event_espresso'); ?></a> |
|
13 | 13 | |
14 | 14 | <div id="more-attendee-copy-options-dv" class="" style="display: none;"> |
15 | 15 | |
@@ -17,7 +17,7 @@ discard block |
||
17 | 17 | <?php _e('Only copy the above information to the following selected additional attendees.', 'event_espresso'); ?> |
18 | 18 | </p> |
19 | 19 | |
20 | - <?php foreach ( $spco_copy_attendee_chk as $spco_copy_chk ) { echo $spco_copy_chk; } ?> |
|
20 | + <?php foreach ($spco_copy_attendee_chk as $spco_copy_chk) { echo $spco_copy_chk; } ?> |
|
21 | 21 | |
22 | 22 | </div> |
23 | 23 | <div class="clear-float"></div> |
@@ -1,12 +1,12 @@ |
||
1 | 1 | |
2 | - <h4><span class="orange-text"><?php _e('Important Notice: Events Requiring Pre-Approval', 'event_espresso');?></span></h4> |
|
2 | + <h4><span class="orange-text"><?php _e('Important Notice: Events Requiring Pre-Approval', 'event_espresso'); ?></span></h4> |
|
3 | 3 | <p id="events-requiring-pre-approval-pg" class="small-text drk-grey-text"> |
4 | 4 | <?php echo $events_requiring_pre_approval_msg; ?> |
5 | 5 | </p> |
6 | 6 | <ul id="spco-pre-approval-events-ul"><?php echo $events_requiring_pre_approval; ?></ul> |
7 | 7 | |
8 | - <?php echo $default_hidden_inputs; ?> |
|
9 | - <?php echo $extra_hidden_inputs; ?> |
|
8 | + <?php echo $default_hidden_inputs; ?> |
|
9 | + <?php echo $extra_hidden_inputs; ?> |
|
10 | 10 | |
11 | 11 | <!-- <input id="reg-page-selected-method-of-payment" type="hidden" value="payments_closed" name="selected_method_of_payment">--> |
12 | 12 | <!-- <input type="hidden" id="reg-page-no-payment-required-payment_options" name="_reg-page-no-payment-required" value="1" />--> |
@@ -1,22 +1,22 @@ |
||
1 | 1 | <?php |
2 | -if( is_array( $registrations_for_free_events ) && ! empty( $registrations_for_free_events ) ) { |
|
2 | +if (is_array($registrations_for_free_events) && ! empty($registrations_for_free_events)) { |
|
3 | 3 | echo apply_filters( |
4 | 4 | 'FHEE__registration_page_payment_options__no_payment_required_hdr', |
5 | 5 | sprintf( |
6 | - __( '%1$sNo Payment Required%2$s', 'event_espresso' ), |
|
6 | + __('%1$sNo Payment Required%2$s', 'event_espresso'), |
|
7 | 7 | '<h6>', |
8 | 8 | '</h6>' |
9 | 9 | ) |
10 | 10 | ); |
11 | - foreach ( $registrations_for_free_events as $registration_for_free_event ) { |
|
12 | - if ( $registration_for_free_event instanceof EE_Registration && $registration_for_free_event->ticket()->is_free() ) { |
|
13 | - if ( $registration_for_free_event->event() instanceof EE_Event ) { |
|
11 | + foreach ($registrations_for_free_events as $registration_for_free_event) { |
|
12 | + if ($registration_for_free_event instanceof EE_Registration && $registration_for_free_event->ticket()->is_free()) { |
|
13 | + if ($registration_for_free_event->event() instanceof EE_Event) { |
|
14 | 14 | ?> |
15 | 15 | <p> |
16 | 16 | <?php echo apply_filters( |
17 | 17 | 'FHEE__registration_page_payment_options__no_payment_required_pg', |
18 | 18 | sprintf( |
19 | - __( '"%1$s" for "%2$s" is free, so no payment is required and no billing will occur.', 'event_espresso' ), |
|
19 | + __('"%1$s" for "%2$s" is free, so no payment is required and no billing will occur.', 'event_espresso'), |
|
20 | 20 | $registration_for_free_event->ticket()->name(), |
21 | 21 | $registration_for_free_event->event()->name() |
22 | 22 | ) |
@@ -1,10 +1,10 @@ |
||
1 | 1 | |
2 | - <h4 class="ee-status sold-out"><b><?php _e('Sold Out', 'event_espresso');?></b></h4> |
|
2 | + <h4 class="ee-status sold-out"><b><?php _e('Sold Out', 'event_espresso'); ?></b></h4> |
|
3 | 3 | <ul id="spco-sold-out-events-ul"><?php echo $sold_out_events; ?></ul> |
4 | - <h6 class="pink-text"><?php _e("We're Sorry", 'event_espresso');?></h6> |
|
4 | + <h6 class="pink-text"><?php _e("We're Sorry", 'event_espresso'); ?></h6> |
|
5 | 5 | <p id="events-requiring-pre-approval-pg" class="small-text drk-grey-text"> |
6 | 6 | <?php echo $sold_out_events_msg; ?> |
7 | 7 | </p> |
8 | 8 | |
9 | - <?php echo $default_hidden_inputs; ?> |
|
10 | - <?php echo $extra_hidden_inputs; ?> |
|
9 | + <?php echo $default_hidden_inputs; ?> |
|
10 | + <?php echo $extra_hidden_inputs; ?> |
@@ -1,16 +1,16 @@ |
||
1 | 1 | <?php if ( ! defined('EVENT_ESPRESSO_VERSION')) { exit('No direct script access allowed'); } |
2 | 2 | /** |
3 | - * |
|
4 | - * Class EE_SPCO_Reg_Step_Registration_Confirmation |
|
5 | - * |
|
6 | - * Description |
|
7 | - * |
|
8 | - * @package Event Espresso |
|
9 | - * @subpackage core |
|
10 | - * @author Brent Christensen |
|
11 | - * @since 4.5.0 |
|
12 | - * |
|
13 | - */ |
|
3 | + * |
|
4 | + * Class EE_SPCO_Reg_Step_Registration_Confirmation |
|
5 | + * |
|
6 | + * Description |
|
7 | + * |
|
8 | + * @package Event Espresso |
|
9 | + * @subpackage core |
|
10 | + * @author Brent Christensen |
|
11 | + * @since 4.5.0 |
|
12 | + * |
|
13 | + */ |
|
14 | 14 | class EE_SPCO_Reg_Step_Registration_Confirmation extends EE_SPCO_Reg_Step { |
15 | 15 | |
16 | 16 | /** |
@@ -20,10 +20,10 @@ discard block |
||
20 | 20 | * @param EE_Checkout $checkout |
21 | 21 | * @return \EE_SPCO_Reg_Step_Registration_Confirmation |
22 | 22 | */ |
23 | - public function __construct( EE_Checkout $checkout ) { |
|
23 | + public function __construct(EE_Checkout $checkout) { |
|
24 | 24 | $this->_slug = 'registration_confirmation'; |
25 | 25 | $this->_name = __('Registration Confirmation', 'event_espresso'); |
26 | - $this->_template = SPCO_REG_STEPS_PATH . $this->_slug . DS . 'registration_page_confirmation.template.php'; |
|
26 | + $this->_template = SPCO_REG_STEPS_PATH.$this->_slug.DS.'registration_page_confirmation.template.php'; |
|
27 | 27 | $this->checkout = $checkout; |
28 | 28 | } |
29 | 29 | |
@@ -43,7 +43,7 @@ discard block |
||
43 | 43 | * @return boolean |
44 | 44 | */ |
45 | 45 | public function initialize_reg_step() { |
46 | - $this->checkout->remove_reg_step( $this->_slug ); |
|
46 | + $this->checkout->remove_reg_step($this->_slug); |
|
47 | 47 | } |
48 | 48 | |
49 | 49 |
@@ -42,7 +42,7 @@ discard block |
||
42 | 42 | |
43 | 43 | |
44 | 44 | /** |
45 | - * @return boolean |
|
45 | + * @return boolean|null |
|
46 | 46 | */ |
47 | 47 | public function initialize_reg_step() { |
48 | 48 | |
@@ -169,7 +169,7 @@ discard block |
||
169 | 169 | |
170 | 170 | |
171 | 171 | /** |
172 | - * @return boolean |
|
172 | + * @return boolean|null |
|
173 | 173 | */ |
174 | 174 | public function update_reg_step() { |
175 | 175 | EE_Error::doing_it_wrong( __CLASS__ . '::' . __FILE__, __( 'Can not call update_reg_step() on the Finalize Registration reg step.', 'event_espresso'), '4.6.0' ); |