@@ -9,22 +9,22 @@ discard block |
||
9 | 9 | |
10 | 10 | <div class="ee-registration-details-dv"> |
11 | 11 | <?php |
12 | - $registrations = $transaction->registrations(); |
|
13 | - $registrations = is_array($registrations) ? $registrations : array(); |
|
14 | - $reg_count = count($registrations); |
|
15 | - $reg_cntr = 0; |
|
16 | - $event_name = ''; |
|
17 | - $wait_list = false; |
|
18 | - foreach ($registrations as $registration) { |
|
19 | - if ($registration instanceof EE_Registration) { |
|
20 | - if ($event_name != $registration->event_name() && ! empty($event_name)) { ?> |
|
12 | + $registrations = $transaction->registrations(); |
|
13 | + $registrations = is_array($registrations) ? $registrations : array(); |
|
14 | + $reg_count = count($registrations); |
|
15 | + $reg_cntr = 0; |
|
16 | + $event_name = ''; |
|
17 | + $wait_list = false; |
|
18 | + foreach ($registrations as $registration) { |
|
19 | + if ($registration instanceof EE_Registration) { |
|
20 | + if ($event_name != $registration->event_name() && ! empty($event_name)) { ?> |
|
21 | 21 | </tbody> |
22 | 22 | </table> |
23 | 23 | <?php |
24 | - } |
|
25 | - $reg_cntr++; |
|
26 | - if ($event_name != $registration->event_name()) { |
|
27 | - ?> |
|
24 | + } |
|
25 | + $reg_cntr++; |
|
26 | + if ($event_name != $registration->event_name()) { |
|
27 | + ?> |
|
28 | 28 | <h5> |
29 | 29 | <span class="smaller-text grey-text"><?php _e('for', 'event_espresso'); ?> |
30 | 30 | : </span> <?php echo htmlentities($registration->event_name(), ENT_QUOTES, 'UTF-8'); ?> |
@@ -45,46 +45,46 @@ discard block |
||
45 | 45 | </thead> |
46 | 46 | <tbody> |
47 | 47 | <?php |
48 | - } |
|
49 | - if ($is_primary || (! $is_primary && $reg_url_link == $registration->reg_url_link())) { ?> |
|
48 | + } |
|
49 | + if ($is_primary || (! $is_primary && $reg_url_link == $registration->reg_url_link())) { ?> |
|
50 | 50 | <tr> |
51 | 51 | <td width="40%"> |
52 | 52 | <?php |
53 | - if ($registration->attendee() instanceof EE_Attendee) { |
|
54 | - echo $registration->attendee()->full_name(true); |
|
55 | - } |
|
56 | - ?> |
|
53 | + if ($registration->attendee() instanceof EE_Attendee) { |
|
54 | + echo $registration->attendee()->full_name(true); |
|
55 | + } |
|
56 | + ?> |
|
57 | 57 | <p class="tiny-text" style="margin: .75em 0 0;"> |
58 | 58 | <?php |
59 | - if ($registration->count_question_groups()) { |
|
60 | - ?> |
|
59 | + if ($registration->count_question_groups()) { |
|
60 | + ?> |
|
61 | 61 | <a class="ee-icon-only-lnk" |
62 | 62 | href="<?php echo $registration->edit_attendee_information_url(); ?>" |
63 | 63 | title="<?php |
64 | - esc_attr_e( |
|
65 | - 'Click here to edit Attendee Information', |
|
66 | - 'event_espresso' |
|
67 | - ); ?>"><span class="ee-icon ee-icon-user-edit"></span> |
|
64 | + esc_attr_e( |
|
65 | + 'Click here to edit Attendee Information', |
|
66 | + 'event_espresso' |
|
67 | + ); ?>"><span class="ee-icon ee-icon-user-edit"></span> |
|
68 | 68 | <?php _e( |
69 | - 'edit info', |
|
70 | - 'event_espresso' |
|
71 | - ); ?></a> |
|
69 | + 'edit info', |
|
70 | + 'event_espresso' |
|
71 | + ); ?></a> |
|
72 | 72 | <?php } ?> |
73 | 73 | <a class="ee-resend-reg-confirmation-email ee-icon-only-lnk" |
74 | 74 | href="<?php |
75 | - echo add_query_arg( |
|
76 | - array('token' => $registration->reg_url_link(), 'resend_reg_confirmation' => 'true'), |
|
77 | - EE_Registry::instance()->CFG->core->thank_you_page_url() |
|
78 | - ); ?>" title="<?php |
|
79 | - esc_attr_e( |
|
80 | - 'Click here to resend the Registration Confirmation email', |
|
81 | - 'event_espresso' |
|
82 | - ); ?>" rel="<?php echo $registration->reg_url_link(); ?>"><span |
|
75 | + echo add_query_arg( |
|
76 | + array('token' => $registration->reg_url_link(), 'resend_reg_confirmation' => 'true'), |
|
77 | + EE_Registry::instance()->CFG->core->thank_you_page_url() |
|
78 | + ); ?>" title="<?php |
|
79 | + esc_attr_e( |
|
80 | + 'Click here to resend the Registration Confirmation email', |
|
81 | + 'event_espresso' |
|
82 | + ); ?>" rel="<?php echo $registration->reg_url_link(); ?>"><span |
|
83 | 83 | class="dashicons dashicons-email-alt"></span> |
84 | 84 | <?php _e( |
85 | - 'resend email', |
|
86 | - 'event_espresso' |
|
87 | - ); ?></a> |
|
85 | + 'resend email', |
|
86 | + 'event_espresso' |
|
87 | + ); ?></a> |
|
88 | 88 | </p> |
89 | 89 | </td> |
90 | 90 | <td width="25%" class="jst-left"> |
@@ -93,53 +93,53 @@ discard block |
||
93 | 93 | <td width="35%" class="jst-left"> |
94 | 94 | <?php $registration->e_pretty_status(true) ?> |
95 | 95 | <?php |
96 | - if ($registration->status_ID() === EEM_Registration::status_id_wait_list) { |
|
97 | - $wait_list = true; |
|
98 | - } |
|
99 | - ?> |
|
96 | + if ($registration->status_ID() === EEM_Registration::status_id_wait_list) { |
|
97 | + $wait_list = true; |
|
98 | + } |
|
99 | + ?> |
|
100 | 100 | </td> |
101 | 101 | </tr> |
102 | 102 | <?php do_action( |
103 | - 'AHEE__thank_you_page_registration_details_template__after_registration_table_row', |
|
104 | - $registration |
|
105 | - ); ?> |
|
103 | + 'AHEE__thank_you_page_registration_details_template__after_registration_table_row', |
|
104 | + $registration |
|
105 | + ); ?> |
|
106 | 106 | <?php |
107 | - $event_name = $registration->event_name(); |
|
108 | - } |
|
109 | - if ($reg_cntr >= $reg_count) { |
|
110 | - ?> |
|
107 | + $event_name = $registration->event_name(); |
|
108 | + } |
|
109 | + if ($reg_cntr >= $reg_count) { |
|
110 | + ?> |
|
111 | 111 | </tbody> |
112 | 112 | </table> |
113 | 113 | <?php |
114 | - } |
|
115 | - } |
|
116 | - } |
|
117 | - ?> |
|
114 | + } |
|
115 | + } |
|
116 | + } |
|
117 | + ?> |
|
118 | 118 | <?php if ($is_primary && $SPCO_attendee_information_url) { ?> |
119 | 119 | <p class="small-text jst-rght"> |
120 | 120 | <a href='<?php echo $SPCO_attendee_information_url ?>'> |
121 | 121 | <?php _e( |
122 | - "Click here to edit All Attendee Information", |
|
123 | - 'event_espresso' |
|
124 | - ); ?></a> |
|
122 | + "Click here to edit All Attendee Information", |
|
123 | + 'event_espresso' |
|
124 | + ); ?></a> |
|
125 | 125 | </p> |
126 | 126 | <?php } ?> |
127 | 127 | <?php |
128 | - if ($wait_list) { ?> |
|
128 | + if ($wait_list) { ?> |
|
129 | 129 | <?php |
130 | - echo apply_filters( |
|
131 | - 'AFEE__thank_you_page_registration_details_template__wait_list_notice', |
|
132 | - sprintf( |
|
133 | - __( |
|
134 | - '%1$sre: Wait List Registrations%2$sPlease note that the total cost listed below in the Transaction Details is for ALL registrations, including those that are on the wait list, even though they can not be currently paid for. If any spaces become available however, you may be notified by the Event admin and have the opportunity to secure the remaining tickets by making a payment for them.%3$s', |
|
135 | - 'event_espresso' |
|
136 | - ), |
|
137 | - '<h6 class="" style="margin-bottom:.25em;"><span class="dashicons dashicons-clipboard ee-icon-size-16 purple-text"></span>', |
|
138 | - '</h6 ><p class="ee-wait-list-notice">', |
|
139 | - '</p ><br />' |
|
140 | - ) |
|
141 | - ); |
|
142 | - ?> |
|
130 | + echo apply_filters( |
|
131 | + 'AFEE__thank_you_page_registration_details_template__wait_list_notice', |
|
132 | + sprintf( |
|
133 | + __( |
|
134 | + '%1$sre: Wait List Registrations%2$sPlease note that the total cost listed below in the Transaction Details is for ALL registrations, including those that are on the wait list, even though they can not be currently paid for. If any spaces become available however, you may be notified by the Event admin and have the opportunity to secure the remaining tickets by making a payment for them.%3$s', |
|
135 | + 'event_espresso' |
|
136 | + ), |
|
137 | + '<h6 class="" style="margin-bottom:.25em;"><span class="dashicons dashicons-clipboard ee-icon-size-16 purple-text"></span>', |
|
138 | + '</h6 ><p class="ee-wait-list-notice">', |
|
139 | + '</p ><br />' |
|
140 | + ) |
|
141 | + ); |
|
142 | + ?> |
|
143 | 143 | |
144 | 144 | <?php } ?> |
145 | 145 |
@@ -46,7 +46,7 @@ |
||
46 | 46 | <tbody> |
47 | 47 | <?php |
48 | 48 | } |
49 | - if ($is_primary || (! $is_primary && $reg_url_link == $registration->reg_url_link())) { ?> |
|
49 | + if ($is_primary || ( ! $is_primary && $reg_url_link == $registration->reg_url_link())) { ?> |
|
50 | 50 | <tr> |
51 | 51 | <td width="40%"> |
52 | 52 | <?php |
@@ -5,7 +5,7 @@ discard block |
||
5 | 5 | |
6 | 6 | <div id="espresso-thank-you-page-payment-details-dv"> |
7 | 7 | <?php |
8 | - if (! empty($payments)) { ?> |
|
8 | + if (! empty($payments)) { ?> |
|
9 | 9 | <table class="ee-table"> |
10 | 10 | <thead> |
11 | 11 | <tr> |
@@ -25,40 +25,40 @@ discard block |
||
25 | 25 | </thead> |
26 | 26 | <tbody> |
27 | 27 | <?php |
28 | - foreach ($payments as $payment) { |
|
29 | - echo $payment; |
|
30 | - } |
|
31 | - ?> |
|
28 | + foreach ($payments as $payment) { |
|
29 | + echo $payment; |
|
30 | + } |
|
31 | + ?> |
|
32 | 32 | </tbody> |
33 | 33 | </table> |
34 | 34 | <?php |
35 | - } else { |
|
36 | - if ($transaction->total()) { |
|
37 | - echo apply_filters( |
|
38 | - 'FHEE__payment_overview_template__no_payments_made', |
|
39 | - sprintf( |
|
40 | - __('%sNo payments towards this transaction have been received.%s', 'event_espresso'), |
|
41 | - '<p class="important-notice">', |
|
42 | - '</p>' |
|
43 | - ) |
|
44 | - ); |
|
45 | - do_action('AHEE__thank_you_page_payment_details_template__no_payments_made', $transaction); |
|
46 | - } else { |
|
47 | - echo apply_filters( |
|
48 | - 'FHEE__payment_overview_template__no_payment_required', |
|
49 | - sprintf( |
|
50 | - __('%sNo payment is required for this transaction.%s', 'event_espresso'), |
|
51 | - '<p>', |
|
52 | - '</p>' |
|
53 | - ) |
|
54 | - ); |
|
55 | - do_action('AHEE__thank_you_page_payment_details_template__no_payment_required'); |
|
56 | - } |
|
57 | - } |
|
58 | - echo $gateway_content; |
|
59 | - do_action('AHEE__thank_you_page_payment_details_template__after_gateway_content', $gateway_content); |
|
35 | + } else { |
|
36 | + if ($transaction->total()) { |
|
37 | + echo apply_filters( |
|
38 | + 'FHEE__payment_overview_template__no_payments_made', |
|
39 | + sprintf( |
|
40 | + __('%sNo payments towards this transaction have been received.%s', 'event_espresso'), |
|
41 | + '<p class="important-notice">', |
|
42 | + '</p>' |
|
43 | + ) |
|
44 | + ); |
|
45 | + do_action('AHEE__thank_you_page_payment_details_template__no_payments_made', $transaction); |
|
46 | + } else { |
|
47 | + echo apply_filters( |
|
48 | + 'FHEE__payment_overview_template__no_payment_required', |
|
49 | + sprintf( |
|
50 | + __('%sNo payment is required for this transaction.%s', 'event_espresso'), |
|
51 | + '<p>', |
|
52 | + '</p>' |
|
53 | + ) |
|
54 | + ); |
|
55 | + do_action('AHEE__thank_you_page_payment_details_template__no_payment_required'); |
|
56 | + } |
|
57 | + } |
|
58 | + echo $gateway_content; |
|
59 | + do_action('AHEE__thank_you_page_payment_details_template__after_gateway_content', $gateway_content); |
|
60 | 60 | |
61 | - ?> |
|
61 | + ?> |
|
62 | 62 | |
63 | 63 | <br/> |
64 | 64 | <?php do_action('AHEE__thank_you_page_payment_details_template__after_payment_details'); |
@@ -5,7 +5,7 @@ |
||
5 | 5 | |
6 | 6 | <div id="espresso-thank-you-page-payment-details-dv"> |
7 | 7 | <?php |
8 | - if (! empty($payments)) { ?> |
|
8 | + if ( ! empty($payments)) { ?> |
|
9 | 9 | <table class="ee-table"> |
10 | 10 | <thead> |
11 | 11 | <tr> |
@@ -3,9 +3,9 @@ discard block |
||
3 | 3 | <p class="spco-copy-all-attendee-pg"> |
4 | 4 | <label class="ee-checkbox-label-before ee-checkbox-label-wide"> |
5 | 5 | <?php _e( |
6 | - 'Use Attendee #1\'s information for ALL attendees', |
|
7 | - 'event_espresso' |
|
8 | - ); ?> |
|
6 | + 'Use Attendee #1\'s information for ALL attendees', |
|
7 | + 'event_espresso' |
|
8 | + ); ?> |
|
9 | 9 | <input id="spco-copy-all-attendee-chk" class="spco-copy-all-attendee-chk ee-do-not-validate" type="checkbox" |
10 | 10 | value="copy-all"> |
11 | 11 | </label> |
@@ -13,23 +13,23 @@ discard block |
||
13 | 13 | |
14 | 14 | <p class="spco-copy-attendee-pg"> |
15 | 15 | <?php echo apply_filters( |
16 | - 'FHEE__registration_page_attendee_information__copy_attendee_pg', |
|
17 | - sprintf( |
|
18 | - __( |
|
19 | - '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.', |
|
20 | - 'event_espresso' |
|
21 | - ), |
|
22 | - '<strong>', |
|
23 | - '</strong>' |
|
24 | - ) |
|
25 | - ); ?></p> |
|
16 | + 'FHEE__registration_page_attendee_information__copy_attendee_pg', |
|
17 | + sprintf( |
|
18 | + __( |
|
19 | + '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.', |
|
20 | + 'event_espresso' |
|
21 | + ), |
|
22 | + '<strong>', |
|
23 | + '</strong>' |
|
24 | + ) |
|
25 | + ); ?></p> |
|
26 | 26 | |
27 | 27 | <a id="display-more-attendee-copy-options" class="display-the-hidden smaller-text float-right" |
28 | 28 | rel="more-attendee-copy-options"><span class="dashicons dashicons-arrow-right"></span> |
29 | 29 | <?php _e( |
30 | - 'advanced copy options', |
|
31 | - 'event_espresso' |
|
32 | - ); ?></a> |
|
30 | + 'advanced copy options', |
|
31 | + 'event_espresso' |
|
32 | + ); ?></a> |
|
33 | 33 | <a id="hide-more-attendee-copy-options" class="hide-the-displayed smaller-text float-right" |
34 | 34 | rel="more-attendee-copy-options" style="display: none;"><span |
35 | 35 | class="dashicons dashicons-arrow-down"></span><?php _e('basic copy options', 'event_espresso'); ?></a> |
@@ -38,15 +38,15 @@ discard block |
||
38 | 38 | |
39 | 39 | <p class="spco-copy-attendee-pg"> |
40 | 40 | <?php _e( |
41 | - 'Only copy the above information to the following selected additional attendees.', |
|
42 | - 'event_espresso' |
|
43 | - ); ?> |
|
41 | + 'Only copy the above information to the following selected additional attendees.', |
|
42 | + 'event_espresso' |
|
43 | + ); ?> |
|
44 | 44 | </p> |
45 | 45 | |
46 | 46 | <?php |
47 | - foreach ($spco_copy_attendee_chk as $spco_copy_chk) { |
|
48 | - echo $spco_copy_chk; |
|
49 | - } ?> |
|
47 | + foreach ($spco_copy_attendee_chk as $spco_copy_chk) { |
|
48 | + echo $spco_copy_chk; |
|
49 | + } ?> |
|
50 | 50 | |
51 | 51 | </div> |
52 | 52 | <div class="clear-float"></div> |
@@ -1,9 +1,9 @@ |
||
1 | 1 | <p id="spco-auto-copy-attendee-pg" class="smaller-text lt-grey-text"> |
2 | 2 | <?php echo apply_filters( |
3 | - 'FHEE__registration_page_attendee_information__auto_copy_attendee_pg', |
|
4 | - __( |
|
5 | - 'The above information will be used for any additional tickets/attendees.', |
|
6 | - 'event_espresso' |
|
7 | - ) |
|
8 | - ); ?> |
|
3 | + 'FHEE__registration_page_attendee_information__auto_copy_attendee_pg', |
|
4 | + __( |
|
5 | + 'The above information will be used for any additional tickets/attendees.', |
|
6 | + 'event_espresso' |
|
7 | + ) |
|
8 | + ); ?> |
|
9 | 9 | </p> |
10 | 10 | \ No newline at end of file |
@@ -1,90 +1,90 @@ |
||
1 | 1 | <div id="ee-single-page-checkout-dv" class=""> |
2 | 2 | <?php |
3 | - if (! $empty_cart) { |
|
4 | - if (apply_filters('FHEE__registration_page_wrapper_template__display_time_limit', false)) { ?> |
|
3 | + if (! $empty_cart) { |
|
4 | + if (apply_filters('FHEE__registration_page_wrapper_template__display_time_limit', false)) { ?> |
|
5 | 5 | <p id="spco-registration-time-limit-pg" class="spco-steps-pg ee-attention important-notice" |
6 | 6 | style="display: none;"> |
7 | 7 | <?php echo sprintf( |
8 | - apply_filters( |
|
9 | - 'FHEE__registration_page_wrapper_template___time_limit', |
|
10 | - __('You have %1$s to complete your registration.', 'event_espresso') |
|
11 | - ), |
|
12 | - '<span id="spco-registration-time-limit-spn" class="spco-registration-time-limit-spn">' . $registration_time_limit . '</span>' |
|
13 | - ); |
|
14 | - ?> |
|
8 | + apply_filters( |
|
9 | + 'FHEE__registration_page_wrapper_template___time_limit', |
|
10 | + __('You have %1$s to complete your registration.', 'event_espresso') |
|
11 | + ), |
|
12 | + '<span id="spco-registration-time-limit-spn" class="spco-registration-time-limit-spn">' . $registration_time_limit . '</span>' |
|
13 | + ); |
|
14 | + ?> |
|
15 | 15 | <span id="spco-registration-expiration-spn" class="" style="display:none;"></span> |
16 | 16 | </p> |
17 | 17 | <?php } |
18 | - if (! $revisit && apply_filters('FHEE__registration_page_wrapper_template__steps_display', true)) { |
|
19 | - ?> |
|
18 | + if (! $revisit && apply_filters('FHEE__registration_page_wrapper_template__steps_display', true)) { |
|
19 | + ?> |
|
20 | 20 | <h2 id="spco-steps-big-hdr" class="spco-steps-big-hdr"><?php _e(' Steps', 'event_espresso'); ?></h2> |
21 | 21 | |
22 | 22 | <div id="spco-steps-display-dv"> |
23 | 23 | <?php |
24 | - $step_nmbr = 1; |
|
25 | - $total_steps = count($reg_steps) - 1; |
|
26 | - foreach ($reg_steps as $reg_step) { |
|
27 | - if ($reg_step instanceof EE_SPCO_Reg_Step && $reg_step->slug() != 'finalize_registration') { |
|
28 | - $slug = $reg_step->slug(); |
|
29 | - $step_display_dv_class = $reg_step->is_current_step() ? 'active-step' : 'inactive-step'; |
|
30 | - ?> |
|
24 | + $step_nmbr = 1; |
|
25 | + $total_steps = count($reg_steps) - 1; |
|
26 | + foreach ($reg_steps as $reg_step) { |
|
27 | + if ($reg_step instanceof EE_SPCO_Reg_Step && $reg_step->slug() != 'finalize_registration') { |
|
28 | + $slug = $reg_step->slug(); |
|
29 | + $step_display_dv_class = $reg_step->is_current_step() ? 'active-step' : 'inactive-step'; |
|
30 | + ?> |
|
31 | 31 | <div id="spco-step-<?php echo $slug; ?>-display-dv" |
32 | 32 | class="spco-step-display-dv <?php echo $step_display_dv_class; ?> steps-<?php echo $total_steps; ?>"> |
33 | 33 | <h4 id="spco-step-<?php echo $slug; ?>-display-hdr" class="spco-steps-display-hdr"> |
34 | 34 | <span class="spco-step-big-nmbr"><?php echo $step_nmbr; ?></span> <span |
35 | 35 | class="spco-step-name"> |
36 | 36 | <?php echo str_replace( |
37 | - ' ', |
|
38 | - '<br/> ', |
|
39 | - $reg_step->name() |
|
40 | - ); ?></span> |
|
37 | + ' ', |
|
38 | + '<br/> ', |
|
39 | + $reg_step->name() |
|
40 | + ); ?></span> |
|
41 | 41 | </h4> |
42 | 42 | </div> |
43 | 43 | |
44 | 44 | <?php |
45 | - if ($step_nmbr < $total_steps) { ?> |
|
45 | + if ($step_nmbr < $total_steps) { ?> |
|
46 | 46 | <div class="spco-step-arrow-dv">»</div> |
47 | 47 | <?php |
48 | - } |
|
49 | - $step_nmbr++; |
|
50 | - } |
|
51 | - } |
|
52 | - ?> |
|
48 | + } |
|
49 | + $step_nmbr++; |
|
50 | + } |
|
51 | + } |
|
52 | + ?> |
|
53 | 53 | <div class="clear-float"></div> |
54 | 54 | </div> |
55 | 55 | |
56 | 56 | <?php |
57 | - } |
|
57 | + } |
|
58 | 58 | |
59 | - do_action('AHEE__SPCO__before_registration_steps'); |
|
60 | - $step_nmbr = 1; |
|
61 | - foreach ($reg_steps as $reg_step) { |
|
62 | - if ($reg_step instanceof EE_SPCO_Reg_Step && $reg_step->slug() != 'finalize_registration') { |
|
63 | - $slug = $reg_step->slug(); |
|
64 | - do_action('AHEE__' . $slug . '__reg_step_start', $reg_step); |
|
65 | - // todo: deprecate hook AHEE__registration_page_attendee_information__start |
|
66 | - ?> |
|
59 | + do_action('AHEE__SPCO__before_registration_steps'); |
|
60 | + $step_nmbr = 1; |
|
61 | + foreach ($reg_steps as $reg_step) { |
|
62 | + if ($reg_step instanceof EE_SPCO_Reg_Step && $reg_step->slug() != 'finalize_registration') { |
|
63 | + $slug = $reg_step->slug(); |
|
64 | + do_action('AHEE__' . $slug . '__reg_step_start', $reg_step); |
|
65 | + // todo: deprecate hook AHEE__registration_page_attendee_information__start |
|
66 | + ?> |
|
67 | 67 | <div id="spco-<?php echo $slug; ?>-dv" class="spco-step-dv <?php echo $reg_step->div_class(); ?>"> |
68 | 68 | <?php echo $reg_step->display_reg_form(); ?> |
69 | 69 | <?php do_action('AHEE__SPCO_after_reg_step_form', $slug, $next_step); ?> |
70 | 70 | </div> |
71 | 71 | <?php $step_nmbr++; |
72 | - } |
|
73 | - } |
|
74 | - do_action('AHEE__SPCO__after_registration_steps'); |
|
75 | - } else { |
|
76 | - ?> |
|
72 | + } |
|
73 | + } |
|
74 | + do_action('AHEE__SPCO__after_registration_steps'); |
|
75 | + } else { |
|
76 | + ?> |
|
77 | 77 | <h3 id="spco-empty-cart-hdr" class="spco-step-title-hdr"> |
78 | 78 | <?php esc_html_e( |
79 | - 'Nothing in your Event Queue', |
|
80 | - 'event_espresso' |
|
81 | - ); ?></h3> |
|
79 | + 'Nothing in your Event Queue', |
|
80 | + 'event_espresso' |
|
81 | + ); ?></h3> |
|
82 | 82 | <p><?php echo $empty_msg; ?></p> |
83 | 83 | <?php echo $cookies_not_set_msg; ?> |
84 | 84 | <?php |
85 | - } |
|
86 | - do_action('AHEE__SPCO__reg_form_footer'); |
|
87 | - ?> |
|
85 | + } |
|
86 | + do_action('AHEE__SPCO__reg_form_footer'); |
|
87 | + ?> |
|
88 | 88 | |
89 | 89 | </div> |
90 | 90 |
@@ -1,6 +1,6 @@ discard block |
||
1 | 1 | <div id="ee-single-page-checkout-dv" class=""> |
2 | 2 | <?php |
3 | - if (! $empty_cart) { |
|
3 | + if ( ! $empty_cart) { |
|
4 | 4 | if (apply_filters('FHEE__registration_page_wrapper_template__display_time_limit', false)) { ?> |
5 | 5 | <p id="spco-registration-time-limit-pg" class="spco-steps-pg ee-attention important-notice" |
6 | 6 | style="display: none;"> |
@@ -9,13 +9,13 @@ discard block |
||
9 | 9 | 'FHEE__registration_page_wrapper_template___time_limit', |
10 | 10 | __('You have %1$s to complete your registration.', 'event_espresso') |
11 | 11 | ), |
12 | - '<span id="spco-registration-time-limit-spn" class="spco-registration-time-limit-spn">' . $registration_time_limit . '</span>' |
|
12 | + '<span id="spco-registration-time-limit-spn" class="spco-registration-time-limit-spn">'.$registration_time_limit.'</span>' |
|
13 | 13 | ); |
14 | 14 | ?> |
15 | 15 | <span id="spco-registration-expiration-spn" class="" style="display:none;"></span> |
16 | 16 | </p> |
17 | 17 | <?php } |
18 | - if (! $revisit && apply_filters('FHEE__registration_page_wrapper_template__steps_display', true)) { |
|
18 | + if ( ! $revisit && apply_filters('FHEE__registration_page_wrapper_template__steps_display', true)) { |
|
19 | 19 | ?> |
20 | 20 | <h2 id="spco-steps-big-hdr" class="spco-steps-big-hdr"><?php _e(' Steps', 'event_espresso'); ?></h2> |
21 | 21 | |
@@ -61,7 +61,7 @@ discard block |
||
61 | 61 | foreach ($reg_steps as $reg_step) { |
62 | 62 | if ($reg_step instanceof EE_SPCO_Reg_Step && $reg_step->slug() != 'finalize_registration') { |
63 | 63 | $slug = $reg_step->slug(); |
64 | - do_action('AHEE__' . $slug . '__reg_step_start', $reg_step); |
|
64 | + do_action('AHEE__'.$slug.'__reg_step_start', $reg_step); |
|
65 | 65 | // todo: deprecate hook AHEE__registration_page_attendee_information__start |
66 | 66 | ?> |
67 | 67 | <div id="spco-<?php echo $slug; ?>-dv" class="spco-step-dv <?php echo $reg_step->div_class(); ?>"> |
@@ -12,87 +12,87 @@ |
||
12 | 12 | { |
13 | 13 | |
14 | 14 | |
15 | - /** |
|
16 | - * @return EED_Invoice |
|
17 | - */ |
|
18 | - public static function instance() |
|
19 | - { |
|
20 | - return parent::get_instance(__CLASS__); |
|
21 | - } |
|
15 | + /** |
|
16 | + * @return EED_Invoice |
|
17 | + */ |
|
18 | + public static function instance() |
|
19 | + { |
|
20 | + return parent::get_instance(__CLASS__); |
|
21 | + } |
|
22 | 22 | |
23 | 23 | |
24 | - /** |
|
25 | - * set_hooks - for hooking into EE Core, other modules, etc |
|
26 | - * |
|
27 | - * @access public |
|
28 | - * @return void |
|
29 | - */ |
|
30 | - public static function set_hooks() |
|
31 | - { |
|
32 | - EE_Config::register_route('download_invoice', 'EED_Invoice', 'download_invoice'); |
|
33 | - EE_Config::register_route('launch_invoice', 'EED_Invoice', 'launch_invoice'); |
|
34 | - } |
|
24 | + /** |
|
25 | + * set_hooks - for hooking into EE Core, other modules, etc |
|
26 | + * |
|
27 | + * @access public |
|
28 | + * @return void |
|
29 | + */ |
|
30 | + public static function set_hooks() |
|
31 | + { |
|
32 | + EE_Config::register_route('download_invoice', 'EED_Invoice', 'download_invoice'); |
|
33 | + EE_Config::register_route('launch_invoice', 'EED_Invoice', 'launch_invoice'); |
|
34 | + } |
|
35 | 35 | |
36 | 36 | |
37 | - /** |
|
38 | - * set_hooks_admin - for hooking into EE Admin Core, other modules, etc |
|
39 | - * |
|
40 | - * @access public |
|
41 | - * @return void |
|
42 | - */ |
|
43 | - public static function set_hooks_admin() |
|
44 | - { |
|
45 | - } |
|
37 | + /** |
|
38 | + * set_hooks_admin - for hooking into EE Admin Core, other modules, etc |
|
39 | + * |
|
40 | + * @access public |
|
41 | + * @return void |
|
42 | + */ |
|
43 | + public static function set_hooks_admin() |
|
44 | + { |
|
45 | + } |
|
46 | 46 | |
47 | 47 | |
48 | - /** |
|
49 | - * run - initial module setup |
|
50 | - * |
|
51 | - * @access public |
|
52 | - * @return void |
|
53 | - */ |
|
54 | - public function run($WP) |
|
55 | - { |
|
56 | - if (is_readable(EE_MODULES . 'gateways/Invoice/lib/Invoice.class.php')) { |
|
57 | - require_once(EE_MODULES . 'gateways/Invoice/lib/Invoice.class.php'); |
|
58 | - } else { |
|
59 | - $msg = __('The Invoice.class.php file could not be loaded.', 'event_espresso'); |
|
60 | - EE_Error::add_error($msg, __FILE__, __FUNCTION__, __LINE__); |
|
61 | - } |
|
62 | - } |
|
48 | + /** |
|
49 | + * run - initial module setup |
|
50 | + * |
|
51 | + * @access public |
|
52 | + * @return void |
|
53 | + */ |
|
54 | + public function run($WP) |
|
55 | + { |
|
56 | + if (is_readable(EE_MODULES . 'gateways/Invoice/lib/Invoice.class.php')) { |
|
57 | + require_once(EE_MODULES . 'gateways/Invoice/lib/Invoice.class.php'); |
|
58 | + } else { |
|
59 | + $msg = __('The Invoice.class.php file could not be loaded.', 'event_espresso'); |
|
60 | + EE_Error::add_error($msg, __FILE__, __FUNCTION__, __LINE__); |
|
61 | + } |
|
62 | + } |
|
63 | 63 | |
64 | 64 | |
65 | - /** |
|
66 | - * invoice_launch |
|
67 | - * |
|
68 | - * @access public |
|
69 | - * @return void |
|
70 | - */ |
|
71 | - public function launch_invoice() |
|
72 | - { |
|
73 | - $this->run(null); |
|
74 | - if (EE_Registry::instance()->REQ->is_set('id')) { |
|
75 | - $id = sanitize_key(EE_Registry::instance()->REQ->get('id')); |
|
76 | - $invoice = new Invoice($id); |
|
77 | - $invoice->send_invoice(); |
|
78 | - } |
|
79 | - } |
|
65 | + /** |
|
66 | + * invoice_launch |
|
67 | + * |
|
68 | + * @access public |
|
69 | + * @return void |
|
70 | + */ |
|
71 | + public function launch_invoice() |
|
72 | + { |
|
73 | + $this->run(null); |
|
74 | + if (EE_Registry::instance()->REQ->is_set('id')) { |
|
75 | + $id = sanitize_key(EE_Registry::instance()->REQ->get('id')); |
|
76 | + $invoice = new Invoice($id); |
|
77 | + $invoice->send_invoice(); |
|
78 | + } |
|
79 | + } |
|
80 | 80 | |
81 | 81 | |
82 | - /** |
|
83 | - * download_invoice |
|
84 | - * |
|
85 | - * @access public |
|
86 | - * @return void |
|
87 | - */ |
|
88 | - public function download_invoice() |
|
89 | - { |
|
90 | - $this->run(null); |
|
91 | - if (EE_Registry::instance()->REQ->is_set('id')) { |
|
92 | - $id = sanitize_key(EE_Registry::instance()->REQ->get('id')); |
|
93 | - $invoice = new Invoice($_REQUEST['id']); |
|
94 | - // send invoice but force download |
|
95 | - $invoice->send_invoice(true); |
|
96 | - } |
|
97 | - } |
|
82 | + /** |
|
83 | + * download_invoice |
|
84 | + * |
|
85 | + * @access public |
|
86 | + * @return void |
|
87 | + */ |
|
88 | + public function download_invoice() |
|
89 | + { |
|
90 | + $this->run(null); |
|
91 | + if (EE_Registry::instance()->REQ->is_set('id')) { |
|
92 | + $id = sanitize_key(EE_Registry::instance()->REQ->get('id')); |
|
93 | + $invoice = new Invoice($_REQUEST['id']); |
|
94 | + // send invoice but force download |
|
95 | + $invoice->send_invoice(true); |
|
96 | + } |
|
97 | + } |
|
98 | 98 | } |
@@ -53,8 +53,8 @@ |
||
53 | 53 | */ |
54 | 54 | public function run($WP) |
55 | 55 | { |
56 | - if (is_readable(EE_MODULES . 'gateways/Invoice/lib/Invoice.class.php')) { |
|
57 | - require_once(EE_MODULES . 'gateways/Invoice/lib/Invoice.class.php'); |
|
56 | + if (is_readable(EE_MODULES.'gateways/Invoice/lib/Invoice.class.php')) { |
|
57 | + require_once(EE_MODULES.'gateways/Invoice/lib/Invoice.class.php'); |
|
58 | 58 | } else { |
59 | 59 | $msg = __('The Invoice.class.php file could not be loaded.', 'event_espresso'); |
60 | 60 | EE_Error::add_error($msg, __FILE__, __FUNCTION__, __LINE__); |
@@ -2,25 +2,25 @@ |
||
2 | 2 | |
3 | 3 | <h4 class="important-notice"> |
4 | 4 | <?php _e( |
5 | - 'Debug Mode is turned ON. You will be redirected to the PayPal Sandbox environment. Please use your Sandbox PayPal account for the checkout.', |
|
6 | - 'event_espresso' |
|
7 | - ); ?></h4> |
|
5 | + 'Debug Mode is turned ON. You will be redirected to the PayPal Sandbox environment. Please use your Sandbox PayPal account for the checkout.', |
|
6 | + 'event_espresso' |
|
7 | + ); ?></h4> |
|
8 | 8 | |
9 | 9 | <h4><?php _e('How do I test specific error codes?', 'event_espresso'); ?></h4> |
10 | 10 | <p> |
11 | 11 | <?php _e( |
12 | - 'To trigger an error condition on an amount-related field, |
|
12 | + 'To trigger an error condition on an amount-related field, |
|
13 | 13 | specify a error code value as a number with two digits to the right of the decimal point. |
14 | 14 | For example, specify a value of 107.55 to trigger the 10755 error.', |
15 | - 'event_espresso' |
|
16 | - ); ?> |
|
15 | + 'event_espresso' |
|
16 | + ); ?> |
|
17 | 17 | </p> |
18 | 18 | <p> |
19 | 19 | <?php printf( |
20 | - __('More details can be found here: %1$s Testing Error Conditions %2$s.', 'event_espresso'), |
|
21 | - '<a href="https://developer.paypal.com/docs/classic/lifecycle/sb_error-conditions">', |
|
22 | - '</a>' |
|
23 | - ); ?> |
|
20 | + __('More details can be found here: %1$s Testing Error Conditions %2$s.', 'event_espresso'), |
|
21 | + '<a href="https://developer.paypal.com/docs/classic/lifecycle/sb_error-conditions">', |
|
22 | + '</a>' |
|
23 | + ); ?> |
|
24 | 24 | </p> |
25 | 25 | |
26 | 26 | </div> |
27 | 27 | \ No newline at end of file |
@@ -13,13 +13,13 @@ discard block |
||
13 | 13 | <div class="event-display-boxes"> |
14 | 14 | <?php |
15 | 15 | if (! empty($page_title)) { |
16 | - echo '<h4 id="invoice_title" class="payment_type_title section-heading">' |
|
17 | - . stripslashes_deep( |
|
18 | - $page_title |
|
19 | - ) . '</h4>'; |
|
16 | + echo '<h4 id="invoice_title" class="payment_type_title section-heading">' |
|
17 | + . stripslashes_deep( |
|
18 | + $page_title |
|
19 | + ) . '</h4>'; |
|
20 | 20 | } |
21 | 21 | if (! empty($invoice_url)) { |
22 | - ?> |
|
22 | + ?> |
|
23 | 23 | <p> |
24 | 24 | <a href="<?php echo $invoice_url; ?>" class="ee-button-lnk inline-button ee-invoice-lnk" target="_blank"> |
25 | 25 | <?php _e('View Invoice', 'event_espresso'); ?> |
@@ -27,21 +27,21 @@ discard block |
||
27 | 27 | </p> |
28 | 28 | <?php |
29 | 29 | |
30 | - if (isset($page_confirmation_text)) { |
|
31 | - echo '<div class="event-messages ui-state-highlight"><span class="ui-icon ui-icon-alert"></span><p class="instruct">' |
|
32 | - . stripslashes_deep( |
|
33 | - $page_confirmation_text |
|
34 | - ) . '</p></div>'; |
|
35 | - } |
|
30 | + if (isset($page_confirmation_text)) { |
|
31 | + echo '<div class="event-messages ui-state-highlight"><span class="ui-icon ui-icon-alert"></span><p class="instruct">' |
|
32 | + . stripslashes_deep( |
|
33 | + $page_confirmation_text |
|
34 | + ) . '</p></div>'; |
|
35 | + } |
|
36 | 36 | |
37 | - if (! empty($page_extra_info)) { |
|
38 | - ?> |
|
37 | + if (! empty($page_extra_info)) { |
|
38 | + ?> |
|
39 | 39 | <div class="address-block"> |
40 | 40 | <?php echo wpautop(stripslashes_deep($page_extra_info)); ?> |
41 | 41 | </div> |
42 | 42 | <?php |
43 | - } |
|
44 | - ?> |
|
43 | + } |
|
44 | + ?> |
|
45 | 45 | </div> |
46 | 46 | <?php |
47 | 47 | } |
@@ -12,13 +12,13 @@ discard block |
||
12 | 12 | ?> |
13 | 13 | <div class="event-display-boxes"> |
14 | 14 | <?php |
15 | -if (! empty($page_title)) { |
|
15 | +if ( ! empty($page_title)) { |
|
16 | 16 | echo '<h4 id="invoice_title" class="payment_type_title section-heading">' |
17 | 17 | . stripslashes_deep( |
18 | 18 | $page_title |
19 | - ) . '</h4>'; |
|
19 | + ).'</h4>'; |
|
20 | 20 | } |
21 | -if (! empty($invoice_url)) { |
|
21 | +if ( ! empty($invoice_url)) { |
|
22 | 22 | ?> |
23 | 23 | <p> |
24 | 24 | <a href="<?php echo $invoice_url; ?>" class="ee-button-lnk inline-button ee-invoice-lnk" target="_blank"> |
@@ -31,10 +31,10 @@ discard block |
||
31 | 31 | echo '<div class="event-messages ui-state-highlight"><span class="ui-icon ui-icon-alert"></span><p class="instruct">' |
32 | 32 | . stripslashes_deep( |
33 | 33 | $page_confirmation_text |
34 | - ) . '</p></div>'; |
|
34 | + ).'</p></div>'; |
|
35 | 35 | } |
36 | 36 | |
37 | - if (! empty($page_extra_info)) { |
|
37 | + if ( ! empty($page_extra_info)) { |
|
38 | 38 | ?> |
39 | 39 | <div class="address-block"> |
40 | 40 | <?php echo wpautop(stripslashes_deep($page_extra_info)); ?> |
@@ -23,17 +23,17 @@ |
||
23 | 23 | <li> |
24 | 24 | <strong><?php _e('PayPal Calculates Taxes', 'event_espresso'); ?></strong><br /> |
25 | 25 | <?php printf(__('If set to "Yes", we will indicate to PayPal that it should calculate the taxes on the order and add it. This means PayPal\'s tax calculations will be used on the order instead of Event Espresso\'s. %1$sRead here for more information.%2$s', 'event_espresso'), "<a href='https://www.paypal.com/ca/cgi-bin/webscr?cmd=xpt/Marketing/shipping/EasyCalculateShipAndTax-outside' target='_blank'>", '</a>'); ?><br/> |
26 | -<?php _e('Note: It may confuse users if Event Espresso initially calculates taxes on the order, and then they go to PayPal and it calculates taxes differently. So it is recommended that if PayPal is calculating taxes, that you do not set any taxes in Event Espresso.', 'event_espresso');?> |
|
26 | +<?php _e('Note: It may confuse users if Event Espresso initially calculates taxes on the order, and then they go to PayPal and it calculates taxes differently. So it is recommended that if PayPal is calculating taxes, that you do not set any taxes in Event Espresso.', 'event_espresso'); ?> |
|
27 | 27 | </li> |
28 | 28 | <li> |
29 | 29 | <strong><?php _e('PayPal Calculates Shipping', 'event_espresso'); ?></strong><br /> |
30 | 30 | <?php _e('Similar to the "PayPal Calculates Taxes" setting, if this is set to "Yes", we will indicate to PayPal that it should calculate the shipping on each payment (if there are multiple payments for a single transaction, PayPal is permitted to add shipping charges to each payment.)', 'event_espresso'); ?><br/> |
31 | -<?php _e('Important Note: PayPal will ONLY calculate shipping on an order if "Shipping Address Options" is set to "Prompt for an Address" (otherwise how will PayPal know how much to charge for shipping if it doesn\'t know where it\'s shipping to?)', 'event_espresso');?> |
|
31 | +<?php _e('Important Note: PayPal will ONLY calculate shipping on an order if "Shipping Address Options" is set to "Prompt for an Address" (otherwise how will PayPal know how much to charge for shipping if it doesn\'t know where it\'s shipping to?)', 'event_espresso'); ?> |
|
32 | 32 | <li> |
33 | -<strong><?php _e('Notes Regarding Paypal Taxes and Shipping', 'event_espresso');?></strong><br/> |
|
34 | -<?php _e('If you want PayPal to calculate taxes and shipping on an order, those changes will NOT appear during the initial registration process until the user is redirected to PayPal for payment.', 'event_espresso');?><br/> |
|
35 | -<?php _e('However, after the user has returned from PayPal, their order in Event Espresso will be updated with the new taxes and added shipping charges (e.g. it will appear on their receipt.)', 'event_espresso');?><br/> |
|
36 | -<?php _e('Also Note: In order for PayPal to properly calculate taxes and shipping, they need to receive the entire order at the same time. So if a user goes to make a payment using PayPal, and their order somehow already has a payment on it, PayPal CANNOT calculate taxes or shipping on that order.', 'event_espresso');?> |
|
33 | +<strong><?php _e('Notes Regarding Paypal Taxes and Shipping', 'event_espresso'); ?></strong><br/> |
|
34 | +<?php _e('If you want PayPal to calculate taxes and shipping on an order, those changes will NOT appear during the initial registration process until the user is redirected to PayPal for payment.', 'event_espresso'); ?><br/> |
|
35 | +<?php _e('However, after the user has returned from PayPal, their order in Event Espresso will be updated with the new taxes and added shipping charges (e.g. it will appear on their receipt.)', 'event_espresso'); ?><br/> |
|
36 | +<?php _e('Also Note: In order for PayPal to properly calculate taxes and shipping, they need to receive the entire order at the same time. So if a user goes to make a payment using PayPal, and their order somehow already has a payment on it, PayPal CANNOT calculate taxes or shipping on that order.', 'event_espresso'); ?> |
|
37 | 37 | </li> |
38 | 38 | <li> |
39 | 39 | <strong><?php _e('Shipping Address Options', 'event_espresso'); ?></strong><br /> |