@@ -6,16 +6,16 @@ discard block |
||
6 | 6 | <?php if (!is_admin()) : ?> |
7 | 7 | <p id="spco-attendee_information-pg" class="spco-steps-pg small-text drk-grey-text"> |
8 | 8 | <?php echo apply_filters( |
9 | - 'FHEE__registration_page_attendee_information__attendee_information_pg', |
|
10 | - sprintf( |
|
11 | - esc_html__( |
|
12 | - '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.', |
|
13 | - 'event_espresso' |
|
14 | - ), |
|
15 | - '<br />', |
|
16 | - '<span class="asterisk">*</span>' |
|
17 | - ) |
|
18 | - ); ?> |
|
9 | + 'FHEE__registration_page_attendee_information__attendee_information_pg', |
|
10 | + sprintf( |
|
11 | + esc_html__( |
|
12 | + '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.', |
|
13 | + 'event_espresso' |
|
14 | + ), |
|
15 | + '<br />', |
|
16 | + '<span class="asterisk">*</span>' |
|
17 | + ) |
|
18 | + ); ?> |
|
19 | 19 | </p> |
20 | 20 | <?php endif; ?> |
21 | 21 | |
@@ -25,8 +25,8 @@ discard block |
||
25 | 25 | $prev_ticket = 0; |
26 | 26 | |
27 | 27 | if (count($registrations) > 0) { |
28 | - $ticketID = key($template_args['ticket_count']); |
|
29 | - ?> |
|
28 | + $ticketID = key($template_args['ticket_count']); |
|
29 | + ?> |
|
30 | 30 | |
31 | 31 | <div id="spco-attendee-panel-dv-<?php echo $ticketID; ?>" |
32 | 32 | class="spco-attendee-panel-dv spco-attendee-ticket-<?php echo $ticketID; ?>"> |
@@ -38,54 +38,54 @@ discard block |
||
38 | 38 | <th scope="col" width="" class="jst-left"></th> |
39 | 39 | <th scope="col" width="7.5%" class="jst-rght"> |
40 | 40 | <?php esc_html_e( |
41 | - 'Qty', |
|
42 | - 'event_espresso' |
|
43 | - ); ?></th> |
|
41 | + 'Qty', |
|
42 | + 'event_espresso' |
|
43 | + ); ?></th> |
|
44 | 44 | <th scope="col" width="17.5%" class="jst-rght"> |
45 | 45 | <?php esc_html_e( |
46 | - 'Price', |
|
47 | - 'event_espresso' |
|
48 | - ); ?></th> |
|
46 | + 'Price', |
|
47 | + 'event_espresso' |
|
48 | + ); ?></th> |
|
49 | 49 | <th scope="col" width="17.5%" class="jst-rght"> |
50 | 50 | <?php esc_html_e( |
51 | - 'Total', |
|
52 | - 'event_espresso' |
|
53 | - ); ?></th> |
|
51 | + 'Total', |
|
52 | + 'event_espresso' |
|
53 | + ); ?></th> |
|
54 | 54 | </tr> |
55 | 55 | </thead> |
56 | 56 | <tbody> |
57 | 57 | <?php |
58 | - // Store previous values to avoid duplicated rows. |
|
59 | - $prev_ticket = 0; |
|
60 | - // Display all tickets inside. |
|
61 | - foreach ($registrations as $registration) { |
|
62 | - if ($registration instanceof EE_Registration) { |
|
63 | - if ($registration->ticket()->ID() !== $prev_ticket) { |
|
64 | - echo $ticket_line_item[ $registration->ticket()->ID() ]; |
|
65 | - } |
|
58 | + // Store previous values to avoid duplicated rows. |
|
59 | + $prev_ticket = 0; |
|
60 | + // Display all tickets inside. |
|
61 | + foreach ($registrations as $registration) { |
|
62 | + if ($registration instanceof EE_Registration) { |
|
63 | + if ($registration->ticket()->ID() !== $prev_ticket) { |
|
64 | + echo $ticket_line_item[ $registration->ticket()->ID() ]; |
|
65 | + } |
|
66 | 66 | |
67 | - $prev_ticket = $registration->ticket()->ID(); |
|
68 | - } |
|
69 | - } |
|
70 | - ?> |
|
67 | + $prev_ticket = $registration->ticket()->ID(); |
|
68 | + } |
|
69 | + } |
|
70 | + ?> |
|
71 | 71 | </tbody> |
72 | 72 | </table> |
73 | 73 | </div><!-- close spco-ticket-info-dv --> |
74 | 74 | |
75 | 75 | <?php |
76 | - // Display the forms below the table. |
|
77 | - foreach ($registrations as $registration) { |
|
78 | - if ($registration instanceof EE_Registration) { |
|
79 | - // Attendee Questions. |
|
80 | - $reg_form = EE_Template_Layout::get_subform_name($registration->reg_url_link()); |
|
81 | - echo ${$reg_form}; |
|
82 | - } // if ( $registration instanceof EE_Registration ) |
|
83 | - } // end foreach ( $registrations as $registration ) |
|
76 | + // Display the forms below the table. |
|
77 | + foreach ($registrations as $registration) { |
|
78 | + if ($registration instanceof EE_Registration) { |
|
79 | + // Attendee Questions. |
|
80 | + $reg_form = EE_Template_Layout::get_subform_name($registration->reg_url_link()); |
|
81 | + echo ${$reg_form}; |
|
82 | + } // if ( $registration instanceof EE_Registration ) |
|
83 | + } // end foreach ( $registrations as $registration ) |
|
84 | 84 | |
85 | - ?> |
|
85 | + ?> |
|
86 | 86 | </div><!-- close spco-attendee-panel-dv --> |
87 | 87 | <?php |
88 | - echo $default_hidden_inputs; |
|
88 | + echo $default_hidden_inputs; |
|
89 | 89 | } // end if ( count( $registrations ) > 0 ) |
90 | 90 | |
91 | 91 | ?> |
@@ -3,7 +3,7 @@ discard block |
||
3 | 3 | /** @var array $ticket_line_item */ |
4 | 4 | /** @var string $default_hidden_inputs */ |
5 | 5 | ?> |
6 | -<?php if (!is_admin()) : ?> |
|
6 | +<?php if ( ! is_admin()) : ?> |
|
7 | 7 | <p id="spco-attendee_information-pg" class="spco-steps-pg small-text drk-grey-text"> |
8 | 8 | <?php echo apply_filters( |
9 | 9 | 'FHEE__registration_page_attendee_information__attendee_information_pg', |
@@ -61,7 +61,7 @@ discard block |
||
61 | 61 | foreach ($registrations as $registration) { |
62 | 62 | if ($registration instanceof EE_Registration) { |
63 | 63 | if ($registration->ticket()->ID() !== $prev_ticket) { |
64 | - echo $ticket_line_item[ $registration->ticket()->ID() ]; |
|
64 | + echo $ticket_line_item[$registration->ticket()->ID()]; |
|
65 | 65 | } |
66 | 66 | |
67 | 67 | $prev_ticket = $registration->ticket()->ID(); |