@@ -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,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_Finalize_Registration |
|
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_Finalize_Registration |
|
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_Finalize_Registration extends EE_SPCO_Reg_Step { |
15 | 15 | |
16 | 16 | /** |
@@ -20,7 +20,7 @@ discard block |
||
20 | 20 | * @param EE_Checkout $checkout |
21 | 21 | * @return \EE_SPCO_Reg_Step_Finalize_Registration |
22 | 22 | */ |
23 | - public function __construct( EE_Checkout $checkout ) { |
|
23 | + public function __construct(EE_Checkout $checkout) { |
|
24 | 24 | $this->_slug = 'finalize_registration'; |
25 | 25 | $this->_name = __('Finalize Registration', 'event_espresso'); |
26 | 26 | $this->_submit_button_text = $this->_name; |
@@ -47,9 +47,9 @@ discard block |
||
47 | 47 | public function initialize_reg_step() { |
48 | 48 | |
49 | 49 | // there's actually no reg form to process if this is the final step |
50 | - if ( $this->is_current_step() ) { |
|
50 | + if ($this->is_current_step()) { |
|
51 | 51 | $this->checkout->step = $_REQUEST['step'] = $this->slug(); |
52 | - $this->checkout->action = $_REQUEST[ 'action' ] = 'process_reg_step'; |
|
52 | + $this->checkout->action = $_REQUEST['action'] = 'process_reg_step'; |
|
53 | 53 | $this->checkout->generate_reg_form = false; |
54 | 54 | } |
55 | 55 | |
@@ -72,7 +72,7 @@ discard block |
||
72 | 72 | */ |
73 | 73 | public function process_reg_step() { |
74 | 74 | // ensure all data gets refreshed from the db |
75 | - $this->checkout->refresh_all_entities( true ); |
|
75 | + $this->checkout->refresh_all_entities(true); |
|
76 | 76 | // ensures that all details and statuses for transaction, registration, and payments are updated |
77 | 77 | $txn_update_params = $this->_finalize_transaction(); |
78 | 78 | // DEBUG LOG |
@@ -86,16 +86,16 @@ discard block |
||
86 | 86 | // ) |
87 | 87 | //); |
88 | 88 | // set a hook point |
89 | - do_action( 'AHEE__EE_SPCO_Reg_Step_Finalize_Registration__process_reg_step__completed', $this->checkout, $txn_update_params ); |
|
89 | + do_action('AHEE__EE_SPCO_Reg_Step_Finalize_Registration__process_reg_step__completed', $this->checkout, $txn_update_params); |
|
90 | 90 | // check if transaction has a primary registrant and that it has a related Attendee object |
91 | - if ( $this->checkout->transaction_has_primary_registrant() ) { |
|
91 | + if ($this->checkout->transaction_has_primary_registrant()) { |
|
92 | 92 | // setup URL for redirect |
93 | 93 | $this->checkout->redirect_url = add_query_arg( |
94 | - array( 'e_reg_url_link' => $this->checkout->transaction->primary_registration()->reg_url_link() ), |
|
94 | + array('e_reg_url_link' => $this->checkout->transaction->primary_registration()->reg_url_link()), |
|
95 | 95 | $this->checkout->thank_you_page_url |
96 | 96 | ); |
97 | 97 | } else { |
98 | - EE_Error::add_error( __( 'A valid Primary Registration for this Transaction could not be found.', 'event_espresso' ), __FILE__, __FUNCTION__, __LINE__ ); |
|
98 | + EE_Error::add_error(__('A valid Primary Registration for this Transaction could not be found.', 'event_espresso'), __FILE__, __FUNCTION__, __LINE__); |
|
99 | 99 | $this->checkout->redirect = false; |
100 | 100 | $this->checkout->continue_reg = false; |
101 | 101 | return false; |
@@ -103,8 +103,8 @@ discard block |
||
103 | 103 | // you don't have to go home but you can't stay here ! |
104 | 104 | $this->checkout->redirect = true; |
105 | 105 | $this->checkout->continue_reg = true; |
106 | - $this->checkout->json_response->set_redirect_url( $this->checkout->redirect_url ); |
|
107 | - if ( ! ( $this->checkout->payment_method instanceof EE_Payment_Method && $this->checkout->payment_method->is_off_site() ) ) { |
|
106 | + $this->checkout->json_response->set_redirect_url($this->checkout->redirect_url); |
|
107 | + if ( ! ($this->checkout->payment_method instanceof EE_Payment_Method && $this->checkout->payment_method->is_off_site())) { |
|
108 | 108 | // mark this reg step as completed |
109 | 109 | $this->checkout->current_step->set_completed(); |
110 | 110 | } |
@@ -121,43 +121,43 @@ discard block |
||
121 | 121 | */ |
122 | 122 | protected function _finalize_transaction() { |
123 | 123 | /** @type EE_Transaction_Processor $transaction_processor */ |
124 | - $transaction_processor = EE_Registry::instance()->load_class( 'Transaction_Processor' ); |
|
124 | + $transaction_processor = EE_Registry::instance()->load_class('Transaction_Processor'); |
|
125 | 125 | //set revisit flag in txn processor |
126 | - $transaction_processor->set_revisit( $this->checkout->revisit ); |
|
126 | + $transaction_processor->set_revisit($this->checkout->revisit); |
|
127 | 127 | // at this point we'll consider a TXN to not have been abandoned |
128 | - $transaction_processor->toggle_abandoned_transaction_status( $this->checkout->transaction ); |
|
129 | - if ( $this->checkout->cart instanceof EE_Cart ) { |
|
128 | + $transaction_processor->toggle_abandoned_transaction_status($this->checkout->transaction); |
|
129 | + if ($this->checkout->cart instanceof EE_Cart) { |
|
130 | 130 | // save TXN data to the cart |
131 | - $this->checkout->cart->get_grand_total()->save_this_and_descendants_to_txn( $this->checkout->transaction->ID() ); |
|
131 | + $this->checkout->cart->get_grand_total()->save_this_and_descendants_to_txn($this->checkout->transaction->ID()); |
|
132 | 132 | } |
133 | 133 | /** @type EE_Transaction_Payments $transaction_payments */ |
134 | - $transaction_payments = EE_Registry::instance()->load_class( 'Transaction_Payments' ); |
|
134 | + $transaction_payments = EE_Registry::instance()->load_class('Transaction_Payments'); |
|
135 | 135 | // maybe update status, but don't save transaction just yet |
136 | - $transaction_payments->update_transaction_status_based_on_total_paid( $this->checkout->transaction, false ); |
|
136 | + $transaction_payments->update_transaction_status_based_on_total_paid($this->checkout->transaction, false); |
|
137 | 137 | // If the selected method of payment used an off-site gateway... |
138 | - if ( $this->checkout->payment_method instanceof EE_Payment_Method ) { |
|
139 | - $is_revisit = filter_var( $this->checkout->revisit, FILTER_VALIDATE_BOOLEAN ); |
|
140 | - if ( $this->checkout->payment_method instanceof EE_Payment_Method && $this->checkout->payment_method->is_off_site() ) { |
|
141 | - $gateway= $this->checkout->payment_method->type_obj()->get_gateway(); |
|
142 | - if ( $gateway instanceof EE_Offsite_Gateway && $gateway->uses_separate_IPN_request() ) { |
|
138 | + if ($this->checkout->payment_method instanceof EE_Payment_Method) { |
|
139 | + $is_revisit = filter_var($this->checkout->revisit, FILTER_VALIDATE_BOOLEAN); |
|
140 | + if ($this->checkout->payment_method instanceof EE_Payment_Method && $this->checkout->payment_method->is_off_site()) { |
|
141 | + $gateway = $this->checkout->payment_method->type_obj()->get_gateway(); |
|
142 | + if ($gateway instanceof EE_Offsite_Gateway && $gateway->uses_separate_IPN_request()) { |
|
143 | 143 | // do NOT trigger notifications because it was already done during the IPN |
144 | - remove_all_filters( 'FHEE__EED_Messages___maybe_registration__deliver_notifications' ); |
|
145 | - add_filter( 'FHEE__EED_Messages___maybe_registration__deliver_notifications', '__return_false', 15 ); |
|
146 | - } else if ( ! $is_revisit ) { |
|
147 | - add_filter( 'FHEE__EED_Messages___maybe_registration__deliver_notifications', '__return_true', 10 ); |
|
144 | + remove_all_filters('FHEE__EED_Messages___maybe_registration__deliver_notifications'); |
|
145 | + add_filter('FHEE__EED_Messages___maybe_registration__deliver_notifications', '__return_false', 15); |
|
146 | + } else if ( ! $is_revisit) { |
|
147 | + add_filter('FHEE__EED_Messages___maybe_registration__deliver_notifications', '__return_true', 10); |
|
148 | 148 | } |
149 | 149 | } else if ( |
150 | 150 | // if SPCO revisit and TXN status has changed due to a payment |
151 | - $is_revisit && ( $this->checkout->txn_status_updated || $this->checkout->any_reg_status_updated() ) |
|
151 | + $is_revisit && ($this->checkout->txn_status_updated || $this->checkout->any_reg_status_updated()) |
|
152 | 152 | ) { |
153 | 153 | // send out notifications |
154 | - add_filter( 'FHEE__EED_Messages___maybe_registration__deliver_notifications', '__return_true', 10 ); |
|
155 | - } else if ( ! $is_revisit ) { |
|
156 | - add_filter( 'FHEE__EED_Messages___maybe_registration__deliver_notifications', '__return_true', 10 ); |
|
154 | + add_filter('FHEE__EED_Messages___maybe_registration__deliver_notifications', '__return_true', 10); |
|
155 | + } else if ( ! $is_revisit) { |
|
156 | + add_filter('FHEE__EED_Messages___maybe_registration__deliver_notifications', '__return_true', 10); |
|
157 | 157 | } |
158 | 158 | } |
159 | 159 | // this will result in the base session properties getting saved to the TXN_Session_data field |
160 | - $this->checkout->transaction->set_txn_session_data( EE_Registry::instance()->SSN->get_session_data( null, true )); |
|
160 | + $this->checkout->transaction->set_txn_session_data(EE_Registry::instance()->SSN->get_session_data(null, true)); |
|
161 | 161 | |
162 | 162 | // update the TXN if payment conditions have changed |
163 | 163 | return $transaction_processor->update_transaction_and_registrations_after_checkout_or_payment( |
@@ -174,7 +174,7 @@ discard block |
||
174 | 174 | * @return boolean |
175 | 175 | */ |
176 | 176 | public function update_reg_step() { |
177 | - EE_Error::doing_it_wrong( __CLASS__ . '::' . __FILE__, __( 'Can not call update_reg_step() on the Finalize Registration reg step.', 'event_espresso'), '4.6.0' ); |
|
177 | + EE_Error::doing_it_wrong(__CLASS__.'::'.__FILE__, __('Can not call update_reg_step() on the Finalize Registration reg step.', 'event_espresso'), '4.6.0'); |
|
178 | 178 | } |
179 | 179 | |
180 | 180 |
@@ -27,7 +27,7 @@ |
||
27 | 27 | /** |
28 | 28 | * Applies all teh individual item validation strategies on each item in the array |
29 | 29 | * @param array $normalized_value |
30 | - * @return boolean |
|
30 | + * @return boolean|null |
|
31 | 31 | */ |
32 | 32 | function validate($normalized_value) { |
33 | 33 | if( is_array($normalized_value)){ |
@@ -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> |