@@ -14,56 +14,56 @@ discard block |
||
14 | 14 | |
15 | 15 | <div id="single-page-checkout" class="ui-widget"> |
16 | 16 | <?php do_action( |
17 | - 'AHEE__registration_page_registration_questions__template__after_spco_attendee_information_header' |
|
18 | - ) ?> |
|
17 | + 'AHEE__registration_page_registration_questions__template__after_spco_attendee_information_header' |
|
18 | + ) ?> |
|
19 | 19 | <div id="spco-attendee_information-dv" class="spco-step-dv"> |
20 | 20 | |
21 | 21 | <p id="spco-attendee_information-pg" class="spco-steps-pg small-text drk-grey-text"> |
22 | 22 | <?php printf( |
23 | - esc_html__( |
|
24 | - 'In order to process your registration, we ask you to provide the following information.%1$sPlease note that all fields marked with an asterisk (%2$s) are required.', |
|
25 | - 'event_espresso' |
|
26 | - ), |
|
27 | - '<br />', |
|
28 | - '<span class="asterisk">*</span>' |
|
29 | - ); ?> |
|
23 | + esc_html__( |
|
24 | + 'In order to process your registration, we ask you to provide the following information.%1$sPlease note that all fields marked with an asterisk (%2$s) are required.', |
|
25 | + 'event_espresso' |
|
26 | + ), |
|
27 | + '<br />', |
|
28 | + '<span class="asterisk">*</span>' |
|
29 | + ); ?> |
|
30 | 30 | </p> |
31 | 31 | |
32 | 32 | <?php |
33 | - global $css_class; |
|
34 | - $att_nmbr = 0; |
|
35 | - $prev_event = ''; |
|
36 | - |
|
37 | - if ($event_queue['total_items'] > 0) { |
|
38 | - foreach ($event_queue['items'] as $line_item => $item) { |
|
39 | - $att_nmbr++; |
|
40 | - if ($item['attendee_questions'] != '') { ?> |
|
33 | + global $css_class; |
|
34 | + $att_nmbr = 0; |
|
35 | + $prev_event = ''; |
|
36 | + |
|
37 | + if ($event_queue['total_items'] > 0) { |
|
38 | + foreach ($event_queue['items'] as $line_item => $item) { |
|
39 | + $att_nmbr++; |
|
40 | + if ($item['attendee_questions'] != '') { ?> |
|
41 | 41 | <div id="spco-attendee-panel-dv-<?php echo esc_attr($line_item); ?>" class="spco-attendee-panel-dv"> |
42 | 42 | <?php |
43 | - if ($item['ticket']->name() != $prev_event) { ?> |
|
43 | + if ($item['ticket']->name() != $prev_event) { ?> |
|
44 | 44 | <p class="spco-ticket-info-pg"> |
45 | 45 | <?php |
46 | - echo esc_html($item['ticket']->name()) . ': '; |
|
47 | - echo esc_html( |
|
48 | - EEH_Template::format_currency($item['ticket']->price(), false, false) |
|
49 | - ); |
|
50 | - $qty_price = $item['ticket']->price() * $ticket_count[ $item['ticket']->ID() ]; |
|
51 | - echo ($item['ticket']->qty() |
|
52 | - ? ' x ' |
|
53 | - . sprintf( |
|
54 | - /* translators: %s: ticket count */ |
|
55 | - esc_html__('%1$s tickets', 'event_espresso'), |
|
56 | - absint($ticket_count[ $item['ticket']->ID() ]) |
|
57 | - ) |
|
58 | - . ' = ' |
|
59 | - . EEH_Template::format_currency($qty_price) |
|
60 | - : ''); |
|
61 | - echo ($item['ticket']->description() |
|
62 | - ? '<br/>' |
|
63 | - . esc_html__('Ticket Details: ', 'event_espresso') |
|
64 | - . wp_kses($item['ticket']->description(), AllowedTags::getAllowedTags()) |
|
65 | - : ''); |
|
66 | - ?> |
|
46 | + echo esc_html($item['ticket']->name()) . ': '; |
|
47 | + echo esc_html( |
|
48 | + EEH_Template::format_currency($item['ticket']->price(), false, false) |
|
49 | + ); |
|
50 | + $qty_price = $item['ticket']->price() * $ticket_count[ $item['ticket']->ID() ]; |
|
51 | + echo ($item['ticket']->qty() |
|
52 | + ? ' x ' |
|
53 | + . sprintf( |
|
54 | + /* translators: %s: ticket count */ |
|
55 | + esc_html__('%1$s tickets', 'event_espresso'), |
|
56 | + absint($ticket_count[ $item['ticket']->ID() ]) |
|
57 | + ) |
|
58 | + . ' = ' |
|
59 | + . EEH_Template::format_currency($qty_price) |
|
60 | + : ''); |
|
61 | + echo ($item['ticket']->description() |
|
62 | + ? '<br/>' |
|
63 | + . esc_html__('Ticket Details: ', 'event_espresso') |
|
64 | + . wp_kses($item['ticket']->description(), AllowedTags::getAllowedTags()) |
|
65 | + : ''); |
|
66 | + ?> |
|
67 | 67 | </p> |
68 | 68 | <?php } ?> |
69 | 69 | |
@@ -75,16 +75,16 @@ discard block |
||
75 | 75 | </legend> |
76 | 76 | |
77 | 77 | <?php |
78 | - // do an action before the questions output, including the item and count |
|
79 | - do_action( |
|
80 | - 'AHEE__registration_page_registration_questions__template___before_questions', |
|
81 | - $item, |
|
82 | - $att_nmbr |
|
83 | - ); |
|
78 | + // do an action before the questions output, including the item and count |
|
79 | + do_action( |
|
80 | + 'AHEE__registration_page_registration_questions__template___before_questions', |
|
81 | + $item, |
|
82 | + $att_nmbr |
|
83 | + ); |
|
84 | 84 | |
85 | - echo esc_html($item['attendee_questions']); |
|
85 | + echo esc_html($item['attendee_questions']); |
|
86 | 86 | |
87 | - if ($att_nmbr == 1 && $print_copy_info) { ?> |
|
87 | + if ($att_nmbr == 1 && $print_copy_info) { ?> |
|
88 | 88 | <input id='primary-attendee' |
89 | 89 | name="qstn[primary_attendee]" |
90 | 90 | type="hidden" |
@@ -96,9 +96,9 @@ discard block |
||
96 | 96 | <p class="spco-copy-all-attendee-pg"> |
97 | 97 | <label class="wide"> |
98 | 98 | <?php esc_html_e( |
99 | - 'Use Registrant #1\'s information for ALL registrants', |
|
100 | - 'event_espresso' |
|
101 | - ); ?> |
|
99 | + 'Use Registrant #1\'s information for ALL registrants', |
|
100 | + 'event_espresso' |
|
101 | + ); ?> |
|
102 | 102 | <input class='spco-copy-all-attendee-chk ui-widget-content ui-corner-all' |
103 | 103 | id="spco-copy-all-attendee-chk" |
104 | 104 | type="checkbox" |
@@ -109,9 +109,9 @@ discard block |
||
109 | 109 | |
110 | 110 | <p class="spco-copy-attendee-pg"> |
111 | 111 | <?php esc_html_e( |
112 | - 'This option allows you to use the above information for all additional registrant question fields. <span>( Please note that some events may have additional questions that you may still be required to answer in order to complete your registration. )</span>', |
|
113 | - 'event_espresso' |
|
114 | - ); ?> |
|
112 | + 'This option allows you to use the above information for all additional registrant question fields. <span>( Please note that some events may have additional questions that you may still be required to answer in order to complete your registration. )</span>', |
|
113 | + 'event_espresso' |
|
114 | + ); ?> |
|
115 | 115 | </p> |
116 | 116 | |
117 | 117 | <a id="display-more-attendee-copy-options" |
@@ -130,15 +130,15 @@ discard block |
||
130 | 130 | </a> |
131 | 131 | <p class="spco-copy-attendee-pg"> |
132 | 132 | <?php esc_html_e( |
133 | - 'The following checkboxes allow you to use the above information for only the selected additional event registrants.', |
|
134 | - 'event_espresso' |
|
135 | - ); ?> |
|
133 | + 'The following checkboxes allow you to use the above information for only the selected additional event registrants.', |
|
134 | + 'event_espresso' |
|
135 | + ); ?> |
|
136 | 136 | </p> |
137 | 137 | |
138 | 138 | <?php |
139 | - foreach ($additional_event_attendees as $event_attendees) { |
|
140 | - foreach ($event_attendees as $attendee) { |
|
141 | - if ($attendee['event_hdr']) { ?> |
|
139 | + foreach ($additional_event_attendees as $event_attendees) { |
|
140 | + foreach ($event_attendees as $attendee) { |
|
141 | + if ($attendee['event_hdr']) { ?> |
|
142 | 142 | <h6 class="spco-copy-attendee-event-hdr"> |
143 | 143 | <?php echo esc_html($attendee['event_hdr']); ?> |
144 | 144 | </h6> |
@@ -147,9 +147,9 @@ discard block |
||
147 | 147 | <p class="event_form_field spco-copy-attendee-chk-pg"> |
148 | 148 | <label> |
149 | 149 | <?php |
150 | - echo esc_html__('Attendee #', 'event_espresso') |
|
151 | - . esc_html($attendee['att_nmbr']); |
|
152 | - ?> |
|
150 | + echo esc_html__('Attendee #', 'event_espresso') |
|
151 | + . esc_html($attendee['att_nmbr']); |
|
152 | + ?> |
|
153 | 153 | <input class="spco-copy-attendee-chk <?php echo esc_attr($css_class); ?>" |
154 | 154 | id="spco-copy-attendee-chk-<?php echo esc_attr($attendee['input_id']);?>" |
155 | 155 | type="checkbox" |
@@ -167,25 +167,25 @@ discard block |
||
167 | 167 | <div class="clear-float"></div> |
168 | 168 | </div> |
169 | 169 | <?php |
170 | - $print_copy_info = false; |
|
171 | - } elseif ($att_nmbr == 1) { |
|
172 | - ?> |
|
170 | + $print_copy_info = false; |
|
171 | + } elseif ($att_nmbr == 1) { |
|
172 | + ?> |
|
173 | 173 | <p id="spco-auto-copy-attendee-pg" class="smaller-text lt-grey-text"> |
174 | 174 | <?php esc_html_e( |
175 | - 'The above information will be used for any additional tickets/registrants.', |
|
176 | - 'event_espresso' |
|
177 | - ); ?> |
|
175 | + 'The above information will be used for any additional tickets/registrants.', |
|
176 | + 'event_espresso' |
|
177 | + ); ?> |
|
178 | 178 | </p> |
179 | 179 | <?php |
180 | - } |
|
181 | - ?> |
|
180 | + } |
|
181 | + ?> |
|
182 | 182 | </fieldset> |
183 | 183 | |
184 | 184 | </div> |
185 | 185 | <?php |
186 | - } else { |
|
187 | - if ($att_nmbr == 1) { |
|
188 | - ?> |
|
186 | + } else { |
|
187 | + if ($att_nmbr == 1) { |
|
188 | + ?> |
|
189 | 189 | <div class='spco-attendee-panel-dv' |
190 | 190 | id="spco-attendee-panel-dv-<?php echo esc_attr($line_item); ?>" |
191 | 191 | > |
@@ -199,21 +199,21 @@ discard block |
||
199 | 199 | > |
200 | 200 | <h6> |
201 | 201 | <?php esc_html_e( |
202 | - 'No information is required to attend this event. Please proceed to the next Step', |
|
203 | - 'event_espresso' |
|
204 | - ); ?> |
|
202 | + 'No information is required to attend this event. Please proceed to the next Step', |
|
203 | + 'event_espresso' |
|
204 | + ); ?> |
|
205 | 205 | </h6> |
206 | 206 | <input type="hidden" id="no-questions" name="qstn[]" value="0" /> |
207 | 207 | </fieldset> |
208 | 208 | </div> |
209 | 209 | <?php |
210 | - } |
|
211 | - } |
|
212 | - echo esc_html($item['additional_attendee_reg_info']); |
|
213 | - $prev_event = $item['ticket']->name(); |
|
214 | - } // $event_queue['items'] as $line_item |
|
215 | - } // $event_queue['total_items'] |
|
216 | - ?> |
|
210 | + } |
|
211 | + } |
|
212 | + echo esc_html($item['additional_attendee_reg_info']); |
|
213 | + $prev_event = $item['ticket']->name(); |
|
214 | + } // $event_queue['items'] as $line_item |
|
215 | + } // $event_queue['total_items'] |
|
216 | + ?> |
|
217 | 217 | <div> |
218 | 218 | <a id="spco-display-event-questions-lnk" |
219 | 219 | class="act-like-link smaller-text hidden hide-if-no-js float-right" |
@@ -43,17 +43,17 @@ discard block |
||
43 | 43 | if ($item['ticket']->name() != $prev_event) { ?> |
44 | 44 | <p class="spco-ticket-info-pg"> |
45 | 45 | <?php |
46 | - echo esc_html($item['ticket']->name()) . ': '; |
|
46 | + echo esc_html($item['ticket']->name()).': '; |
|
47 | 47 | echo esc_html( |
48 | 48 | EEH_Template::format_currency($item['ticket']->price(), false, false) |
49 | 49 | ); |
50 | - $qty_price = $item['ticket']->price() * $ticket_count[ $item['ticket']->ID() ]; |
|
50 | + $qty_price = $item['ticket']->price() * $ticket_count[$item['ticket']->ID()]; |
|
51 | 51 | echo ($item['ticket']->qty() |
52 | 52 | ? ' x ' |
53 | 53 | . sprintf( |
54 | 54 | /* translators: %s: ticket count */ |
55 | 55 | esc_html__('%1$s tickets', 'event_espresso'), |
56 | - absint($ticket_count[ $item['ticket']->ID() ]) |
|
56 | + absint($ticket_count[$item['ticket']->ID()]) |
|
57 | 57 | ) |
58 | 58 | . ' = ' |
59 | 59 | . EEH_Template::format_currency($qty_price) |
@@ -71,7 +71,7 @@ discard block |
||
71 | 71 | id="spco-attendee-wrap-<?php echo esc_attr($line_item); ?>" |
72 | 72 | > |
73 | 73 | <legend class="spco-attendee-lgnd smaller-text lt-grey-text"> |
74 | - <?php echo esc_html__('Registrant #', 'event_espresso') . $att_nmbr; ?> |
|
74 | + <?php echo esc_html__('Registrant #', 'event_espresso').$att_nmbr; ?> |
|
75 | 75 | </legend> |
76 | 76 | |
77 | 77 | <?php |
@@ -151,7 +151,7 @@ discard block |
||
151 | 151 | . esc_html($attendee['att_nmbr']); |
152 | 152 | ?> |
153 | 153 | <input class="spco-copy-attendee-chk <?php echo esc_attr($css_class); ?>" |
154 | - id="spco-copy-attendee-chk-<?php echo esc_attr($attendee['input_id']);?>" |
|
154 | + id="spco-copy-attendee-chk-<?php echo esc_attr($attendee['input_id']); ?>" |
|
155 | 155 | type="checkbox" |
156 | 156 | value="<?php echo esc_attr($attendee['input_id']); ?>" |
157 | 157 | /> |