@@ -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' ); |
@@ -1,14 +1,14 @@ discard block |
||
1 | 1 | <div id="ee-single-page-checkout-dv" class=""> |
2 | - <?php if ( apply_filters( |
|
2 | + <?php if (apply_filters( |
|
3 | 3 | 'FHEE__registration_page_wrapper_template__display_time_limit', |
4 | - FALSE ) ) { ?> |
|
4 | + FALSE )) { ?> |
|
5 | 5 | <p id="spco-registration-time-limit-pg" class="spco-steps-pg ee-attention important-notice"> |
6 | 6 | <?php echo sprintf( |
7 | 7 | apply_filters( |
8 | 8 | 'FHEE__registration_page_wrapper_template___time_limit', |
9 | 9 | __('You have %1$s to complete your registration.', 'event_espresso') |
10 | 10 | ), |
11 | - '<span id="spco-registration-time-limit-spn" class="spco-registration-time-limit-spn">' . $registration_time_limit . '</span>' |
|
11 | + '<span id="spco-registration-time-limit-spn" class="spco-registration-time-limit-spn">'.$registration_time_limit.'</span>' |
|
12 | 12 | ); |
13 | 13 | ?> |
14 | 14 | <span id="spco-registration-expiration-spn" class="" |
@@ -16,27 +16,27 @@ discard block |
||
16 | 16 | </p> |
17 | 17 | <?php } ?> |
18 | 18 | <?php |
19 | -if ( ! $empty_cart ) { |
|
20 | - if ( ! $revisit && apply_filters( 'FHEE__registration_page_wrapper_template__steps_display', TRUE )) { |
|
19 | +if ( ! $empty_cart) { |
|
20 | + if ( ! $revisit && apply_filters('FHEE__registration_page_wrapper_template__steps_display', TRUE)) { |
|
21 | 21 | ?> |
22 | 22 | <h2 id="spco-steps-big-hdr" class="spco-steps-big-hdr"><?php _e(' Steps', 'event_espresso'); ?></h2> |
23 | 23 | |
24 | 24 | <div id="spco-steps-display-dv"> |
25 | 25 | <?php |
26 | 26 | $step_nmbr = 1; |
27 | - $total_steps = count( $reg_steps ) - 1; |
|
28 | - foreach ( $reg_steps as $reg_step ) { |
|
29 | - if ( $reg_step instanceof EE_SPCO_Reg_Step && $reg_step->slug() != 'finalize_registration' ) { |
|
27 | + $total_steps = count($reg_steps) - 1; |
|
28 | + foreach ($reg_steps as $reg_step) { |
|
29 | + if ($reg_step instanceof EE_SPCO_Reg_Step && $reg_step->slug() != 'finalize_registration') { |
|
30 | 30 | $slug = $reg_step->slug(); |
31 | 31 | $step_display_dv_class = $reg_step->is_current_step() ? 'active-step' : 'inactive-step'; |
32 | 32 | ?> |
33 | 33 | <div id="spco-step-<?php echo $slug; ?>-display-dv" class="spco-step-display-dv <?php echo $step_display_dv_class; ?> steps-<?php echo $total_steps; ?>"> |
34 | 34 | <h4 id="spco-step-<?php echo $slug; ?>-display-hdr" class="spco-steps-display-hdr"> |
35 | - <span class="spco-step-big-nmbr"><?php echo $step_nmbr; ?></span> <span class="spco-step-name"><?php echo str_replace( ' ', '<br/> ', $reg_step->name() ); ?></span> |
|
35 | + <span class="spco-step-big-nmbr"><?php echo $step_nmbr; ?></span> <span class="spco-step-name"><?php echo str_replace(' ', '<br/> ', $reg_step->name()); ?></span> |
|
36 | 36 | </h4> |
37 | 37 | </div> |
38 | 38 | |
39 | - <?php if ( $step_nmbr < $total_steps ) { ?> |
|
39 | + <?php if ($step_nmbr < $total_steps) { ?> |
|
40 | 40 | <div class="spco-step-arrow-dv">»</div> |
41 | 41 | <?php |
42 | 42 | } |
@@ -50,22 +50,22 @@ discard block |
||
50 | 50 | <?php |
51 | 51 | } |
52 | 52 | |
53 | - do_action( 'AHEE__SPCO__before_registration_steps' ); |
|
53 | + do_action('AHEE__SPCO__before_registration_steps'); |
|
54 | 54 | $step_nmbr = 1; |
55 | - foreach ( $reg_steps as $reg_step ) { |
|
56 | - if ( $reg_step instanceof EE_SPCO_Reg_Step && $reg_step->slug() != 'finalize_registration' ) { |
|
55 | + foreach ($reg_steps as $reg_step) { |
|
56 | + if ($reg_step instanceof EE_SPCO_Reg_Step && $reg_step->slug() != 'finalize_registration') { |
|
57 | 57 | $slug = $reg_step->slug(); |
58 | - do_action( 'AHEE__' . $slug . '__reg_step_start', $reg_step ); |
|
58 | + do_action('AHEE__'.$slug.'__reg_step_start', $reg_step); |
|
59 | 59 | // todo: deprecate hook AHEE__registration_page_attendee_information__start |
60 | 60 | ?> |
61 | 61 | <div id="spco-<?php echo $slug; ?>-dv" class="spco-step-dv <?php echo $reg_step->div_class(); ?>"> |
62 | 62 | <?php echo $reg_step->display_reg_form(); ?> |
63 | - <?php do_action( 'AHEE__SPCO_after_reg_step_form', $slug, $next_step ); ?> |
|
63 | + <?php do_action('AHEE__SPCO_after_reg_step_form', $slug, $next_step); ?> |
|
64 | 64 | </div> |
65 | 65 | <?php $step_nmbr++; |
66 | 66 | } |
67 | 67 | } |
68 | - do_action( 'AHEE__SPCO__after_registration_steps' ); |
|
68 | + do_action('AHEE__SPCO__after_registration_steps'); |
|
69 | 69 | |
70 | 70 | } else { |
71 | 71 | ?> |
@@ -74,7 +74,7 @@ discard block |
||
74 | 74 | <?php echo $cookies_not_set_msg; ?> |
75 | 75 | <?php |
76 | 76 | } |
77 | -do_action( 'AHEE__SPCO__reg_form_footer' ); |
|
77 | +do_action('AHEE__SPCO__reg_form_footer'); |
|
78 | 78 | ?> |
79 | 79 | |
80 | 80 | </div> |