@@ -22,32 +22,32 @@ discard block |
||
22 | 22 | <p><?php echo $ticket->description(); ?></p> |
23 | 23 | |
24 | 24 | <?php |
25 | - do_action( |
|
26 | - 'AHEE__ticket_selector_chart_template__ticket_details__after_description', |
|
27 | - $ticket, |
|
28 | - $ticket_price, |
|
29 | - $display_ticket_price |
|
30 | - ); |
|
31 | - ?> |
|
25 | + do_action( |
|
26 | + 'AHEE__ticket_selector_chart_template__ticket_details__after_description', |
|
27 | + $ticket, |
|
28 | + $ticket_price, |
|
29 | + $display_ticket_price |
|
30 | + ); |
|
31 | + ?> |
|
32 | 32 | |
33 | 33 | <section class="tckt-slctr-tkt-sale-dates-sctn"> |
34 | 34 | <h5> |
35 | 35 | <?php echo apply_filters( |
36 | - 'FHEE__ticket_selector_chart_template__ticket_details_sales_date_heading', |
|
37 | - esc_html__('Sale Dates', 'event_espresso') |
|
38 | - ); ?> |
|
36 | + 'FHEE__ticket_selector_chart_template__ticket_details_sales_date_heading', |
|
37 | + esc_html__('Sale Dates', 'event_espresso') |
|
38 | + ); ?> |
|
39 | 39 | </h5> |
40 | 40 | <span class="drk-grey-text small-text no-bold"> - |
41 | 41 | <?php echo apply_filters( |
42 | - 'FHEE__ticket_selector_chart_template__ticket_details_dates_available_message', |
|
43 | - esc_html__('The dates when this option is available for purchase.', 'event_espresso') |
|
44 | - ); ?></span> |
|
42 | + 'FHEE__ticket_selector_chart_template__ticket_details_dates_available_message', |
|
43 | + esc_html__('The dates when this option is available for purchase.', 'event_espresso') |
|
44 | + ); ?></span> |
|
45 | 45 | <br/> |
46 | 46 | <span class="ticket-details-label-spn drk-grey-text"> |
47 | 47 | <?php echo apply_filters( |
48 | - 'FHEE__ticket_selector_chart_template__ticket_details_goes_on_sale', |
|
49 | - esc_html__('Goes On Sale:', 'event_espresso') |
|
50 | - ); ?></span> |
|
48 | + 'FHEE__ticket_selector_chart_template__ticket_details_goes_on_sale', |
|
49 | + esc_html__('Goes On Sale:', 'event_espresso') |
|
50 | + ); ?></span> |
|
51 | 51 | <span class="dashicons dashicons-calendar"></span> |
52 | 52 | <?php echo $ticket->get_i18n_datetime('TKT_start_date', $date_format) . ' '; ?> |
53 | 53 | <span class="dashicons dashicons-clock"></span> |
@@ -55,9 +55,9 @@ discard block |
||
55 | 55 | <br/> |
56 | 56 | <span class="ticket-details-label-spn drk-grey-text"> |
57 | 57 | <?php echo apply_filters( |
58 | - 'FHEE__ticket_selector_chart_template__ticket_details_sales_end', |
|
59 | - esc_html__('Sales End:', 'event_espresso') |
|
60 | - ); ?></span> |
|
58 | + 'FHEE__ticket_selector_chart_template__ticket_details_sales_end', |
|
59 | + esc_html__('Sales End:', 'event_espresso') |
|
60 | + ); ?></span> |
|
61 | 61 | <span class="dashicons dashicons-calendar"></span> |
62 | 62 | <?php echo $ticket->get_i18n_datetime('TKT_end_date', $date_format) . ' '; ?> |
63 | 63 | <span class="dashicons dashicons-clock"></span> |
@@ -72,46 +72,46 @@ discard block |
||
72 | 72 | <section class="tckt-slctr-tkt-quantities-sctn"> |
73 | 73 | <h5> |
74 | 74 | <?php echo apply_filters( |
75 | - 'FHEE__ticket_selector_chart_template__ticket_details_purchasable_quantities_heading', |
|
76 | - esc_html__('Purchasable Quantities', 'event_espresso') |
|
77 | - ); ?></h5> |
|
75 | + 'FHEE__ticket_selector_chart_template__ticket_details_purchasable_quantities_heading', |
|
76 | + esc_html__('Purchasable Quantities', 'event_espresso') |
|
77 | + ); ?></h5> |
|
78 | 78 | <span class="drk-grey-text small-text no-bold"> - |
79 | 79 | <?php echo apply_filters( |
80 | - 'FHEE__ticket_selector_chart_template__ticket_details_purchasable_quantities_message', |
|
81 | - esc_html__( |
|
82 | - 'The number of tickets that can be purchased per transaction (if available).', |
|
83 | - 'event_espresso' |
|
84 | - ) |
|
85 | - ); ?></span><br/> |
|
80 | + 'FHEE__ticket_selector_chart_template__ticket_details_purchasable_quantities_message', |
|
81 | + esc_html__( |
|
82 | + 'The number of tickets that can be purchased per transaction (if available).', |
|
83 | + 'event_espresso' |
|
84 | + ) |
|
85 | + ); ?></span><br/> |
|
86 | 86 | <span class="ticket-details-label-spn drk-grey-text"> |
87 | 87 | <?php echo apply_filters( |
88 | - 'FHEE__ticket_selector_chart_template__ticket_details_purchasable_quantities_min_qty', |
|
89 | - esc_html__('Minimum Qty:', 'event_espresso') |
|
90 | - ); ?></span><?php echo $ticket->min() > 0 ? $ticket->min() : 0; ?> |
|
88 | + 'FHEE__ticket_selector_chart_template__ticket_details_purchasable_quantities_min_qty', |
|
89 | + esc_html__('Minimum Qty:', 'event_espresso') |
|
90 | + ); ?></span><?php echo $ticket->min() > 0 ? $ticket->min() : 0; ?> |
|
91 | 91 | <?php |
92 | - if ($ticket->min() > $remaining) { |
|
93 | - ?> <span |
|
92 | + if ($ticket->min() > $remaining) { |
|
93 | + ?> <span |
|
94 | 94 | class="important-notice small-text"> |
95 | 95 | <?php echo apply_filters( |
96 | - 'FHEE__ticket_selector_chart_template__ticket_details_purchasable_quantities_min_qty_message', |
|
97 | - esc_html__( |
|
98 | - 'The Minimum Quantity purchasable for this ticket exceeds the number of spaces remaining', |
|
99 | - 'event_espresso' |
|
100 | - ) |
|
101 | - ); ?></span> |
|
96 | + 'FHEE__ticket_selector_chart_template__ticket_details_purchasable_quantities_min_qty_message', |
|
97 | + esc_html__( |
|
98 | + 'The Minimum Quantity purchasable for this ticket exceeds the number of spaces remaining', |
|
99 | + 'event_espresso' |
|
100 | + ) |
|
101 | + ); ?></span> |
|
102 | 102 | <?php |
103 | - } ?><br/> |
|
103 | + } ?><br/> |
|
104 | 104 | <?php // $max = min( $max, $max_atndz );?> |
105 | 105 | <span class="ticket-details-label-spn drk-grey-text"> |
106 | 106 | <?php echo apply_filters( |
107 | - 'FHEE__ticket_selector_chart_template__ticket_details_purchasable_quantities_max_qty', |
|
108 | - esc_html__('Maximum Qty:', 'event_espresso') |
|
109 | - ); ?></span> |
|
107 | + 'FHEE__ticket_selector_chart_template__ticket_details_purchasable_quantities_max_qty', |
|
108 | + esc_html__('Maximum Qty:', 'event_espresso') |
|
109 | + ); ?></span> |
|
110 | 110 | <?php echo $ticket->max() === EE_INF ? esc_html__( |
111 | - 'no limit', |
|
112 | - 'event_espresso' |
|
113 | - ) |
|
114 | - : max($ticket->max(), 1); ?><br/> |
|
111 | + 'no limit', |
|
112 | + 'event_espresso' |
|
113 | + ) |
|
114 | + : max($ticket->max(), 1); ?><br/> |
|
115 | 115 | </section> |
116 | 116 | <br/> |
117 | 117 | <?php } ?> |
@@ -120,50 +120,50 @@ discard block |
||
120 | 120 | <section class="tckt-slctr-tkt-uses-sctn"> |
121 | 121 | <h5> |
122 | 122 | <?php echo apply_filters( |
123 | - 'FHEE__ticket_selector_chart_template__ticket_details_event_date_ticket_uses_heading', |
|
124 | - esc_html__('Event Date Ticket Uses', 'event_espresso') |
|
125 | - ); ?></h5> |
|
123 | + 'FHEE__ticket_selector_chart_template__ticket_details_event_date_ticket_uses_heading', |
|
124 | + esc_html__('Event Date Ticket Uses', 'event_espresso') |
|
125 | + ); ?></h5> |
|
126 | 126 | <span class="drk-grey-text small-text no-bold"> - |
127 | 127 | <?php |
128 | - echo apply_filters( |
|
129 | - 'FHEE__ticket_selector_chart_template__ticket_details_event_date_ticket_uses_message', |
|
130 | - sprintf( |
|
131 | - esc_html__( |
|
132 | - 'The number of separate event datetimes (see table below) that this ticket can be used to gain admittance to.%1$s%2$sAdmission is always one person per ticket.%3$s', |
|
133 | - 'event_espresso' |
|
134 | - ), |
|
135 | - '<br/>', |
|
136 | - '<strong>', |
|
137 | - '</strong>' |
|
138 | - ) |
|
139 | - ); |
|
140 | - ?></span><br/> |
|
128 | + echo apply_filters( |
|
129 | + 'FHEE__ticket_selector_chart_template__ticket_details_event_date_ticket_uses_message', |
|
130 | + sprintf( |
|
131 | + esc_html__( |
|
132 | + 'The number of separate event datetimes (see table below) that this ticket can be used to gain admittance to.%1$s%2$sAdmission is always one person per ticket.%3$s', |
|
133 | + 'event_espresso' |
|
134 | + ), |
|
135 | + '<br/>', |
|
136 | + '<strong>', |
|
137 | + '</strong>' |
|
138 | + ) |
|
139 | + ); |
|
140 | + ?></span><br/> |
|
141 | 141 | <span class="ticket-details-label-spn drk-grey-text"> |
142 | 142 | <?php echo apply_filters( |
143 | - 'FHEE__ticket_selector_chart_template__ticket_details_event_date_number_datetimes', |
|
144 | - esc_html__('# Datetimes:', 'event_espresso') |
|
145 | - ); ?></span><?php echo $ticket->uses(); ?><br/> |
|
143 | + 'FHEE__ticket_selector_chart_template__ticket_details_event_date_number_datetimes', |
|
144 | + esc_html__('# Datetimes:', 'event_espresso') |
|
145 | + ); ?></span><?php echo $ticket->uses(); ?><br/> |
|
146 | 146 | </section> |
147 | 147 | <?php } ?> |
148 | 148 | |
149 | 149 | <?php |
150 | - $datetimes = $ticket->datetimes_ordered($event_is_expired, false); |
|
151 | - $chart_column_width = $show_ticket_sale_columns ? ' ee-fourth-width' : ' ee-half-width'; |
|
152 | - if (! empty($datetimes)) { ?> |
|
150 | + $datetimes = $ticket->datetimes_ordered($event_is_expired, false); |
|
151 | + $chart_column_width = $show_ticket_sale_columns ? ' ee-fourth-width' : ' ee-half-width'; |
|
152 | + if (! empty($datetimes)) { ?> |
|
153 | 153 | <section class="tckt-slctr-tkt-datetimes-sctn"> |
154 | 154 | <h5> |
155 | 155 | <?php echo apply_filters( |
156 | - 'FHEE__ticket_selector_chart_template__ticket_details_event_access_heading', |
|
157 | - esc_html__('Access', 'event_espresso') |
|
158 | - ); ?></h5> |
|
156 | + 'FHEE__ticket_selector_chart_template__ticket_details_event_access_heading', |
|
157 | + esc_html__('Access', 'event_espresso') |
|
158 | + ); ?></h5> |
|
159 | 159 | <span class="drk-grey-text small-text no-bold"> - |
160 | 160 | <?php echo apply_filters( |
161 | - 'FHEE__ticket_selector_chart_template__ticket_details_event_access_message', |
|
162 | - esc_html__( |
|
163 | - 'This option allows access to the following dates and times.', |
|
164 | - 'event_espresso' |
|
165 | - ) |
|
166 | - ); ?></span> |
|
161 | + 'FHEE__ticket_selector_chart_template__ticket_details_event_access_message', |
|
162 | + esc_html__( |
|
163 | + 'This option allows access to the following dates and times.', |
|
164 | + 'event_espresso' |
|
165 | + ) |
|
166 | + ); ?></span> |
|
167 | 167 | <div class="tckt-slctr-tkt-details-tbl-wrap-dv"> |
168 | 168 | <table class="tckt-slctr-tkt-details-tbl"> |
169 | 169 | <thead> |
@@ -172,122 +172,122 @@ discard block |
||
172 | 172 | <span class="dashicons dashicons-calendar"></span><span |
173 | 173 | class="small-text"> |
174 | 174 | <?php echo apply_filters( |
175 | - 'FHEE__ticket_selector_chart_template__ticket_details_event_access_table_event_date', |
|
176 | - esc_html__('Date ', 'event_espresso') |
|
177 | - ); ?></span> |
|
175 | + 'FHEE__ticket_selector_chart_template__ticket_details_event_access_table_event_date', |
|
176 | + esc_html__('Date ', 'event_espresso') |
|
177 | + ); ?></span> |
|
178 | 178 | </th> |
179 | 179 | <th class="tckt-slctr-tkt-details-time-th <?php echo $chart_column_width; ?>"> |
180 | 180 | <span class="dashicons dashicons-clock"></span><span |
181 | 181 | class="small-text"> |
182 | 182 | <?php esc_html_e( |
183 | - 'Time ', |
|
184 | - 'event_espresso' |
|
185 | - ); ?></span> |
|
183 | + 'Time ', |
|
184 | + 'event_espresso' |
|
185 | + ); ?></span> |
|
186 | 186 | </th> |
187 | 187 | <?php if ($show_ticket_sale_columns) : ?> |
188 | 188 | <th class="tckt-slctr-tkt-details-this-ticket-sold-th ee-fourth-width cntr"> |
189 | 189 | <span class="smaller-text"> |
190 | 190 | <?php echo apply_filters( |
191 | - 'FHEE__ticket_selector_chart_template__ticket_details_event_access_table_this_ticket_sold', |
|
192 | - sprintf(esc_html__('Sold', 'event_espresso'), '<br/>') |
|
193 | - ); ?></span> |
|
191 | + 'FHEE__ticket_selector_chart_template__ticket_details_event_access_table_this_ticket_sold', |
|
192 | + sprintf(esc_html__('Sold', 'event_espresso'), '<br/>') |
|
193 | + ); ?></span> |
|
194 | 194 | </th> |
195 | 195 | <th class="tckt-slctr-tkt-details-this-ticket-left-th ee-fourth-width cntr"> |
196 | 196 | <span class="smaller-text"> |
197 | 197 | <?php echo apply_filters( |
198 | - 'FHEE__ticket_selector_chart_template__ticket_details_event_access_table_this_ticket_left', |
|
199 | - sprintf(esc_html__('Remaining', 'event_espresso'), '<br/>') |
|
200 | - ); ?></span> |
|
198 | + 'FHEE__ticket_selector_chart_template__ticket_details_event_access_table_this_ticket_left', |
|
199 | + sprintf(esc_html__('Remaining', 'event_espresso'), '<br/>') |
|
200 | + ); ?></span> |
|
201 | 201 | </th> |
202 | 202 | <th |
203 | 203 | class="tckt-slctr-tkt-details-total-tickets-sold-th ee-fourth-width cntr"> |
204 | 204 | <span class="smaller-text"> |
205 | 205 | <?php echo apply_filters( |
206 | - 'FHEE__ticket_selector_chart_template__ticket_details_event_access_table_total_ticket_sold', |
|
207 | - sprintf(esc_html__('Total%sSold', 'event_espresso'), '<br/>') |
|
208 | - ); ?></span> |
|
206 | + 'FHEE__ticket_selector_chart_template__ticket_details_event_access_table_total_ticket_sold', |
|
207 | + sprintf(esc_html__('Total%sSold', 'event_espresso'), '<br/>') |
|
208 | + ); ?></span> |
|
209 | 209 | </th> |
210 | 210 | <th |
211 | 211 | class="tckt-slctr-tkt-details-total-tickets-left-th ee-fourth-width cntr"> |
212 | 212 | <span class="smaller-text"> |
213 | 213 | <?php echo apply_filters( |
214 | - 'FHEE__ticket_selector_chart_template__ticket_details_event_access_table_total_ticket_left', |
|
215 | - sprintf(esc_html__('Total Spaces%sLeft', 'event_espresso'), '<br/>') |
|
216 | - ); ?></span> |
|
214 | + 'FHEE__ticket_selector_chart_template__ticket_details_event_access_table_total_ticket_left', |
|
215 | + sprintf(esc_html__('Total Spaces%sLeft', 'event_espresso'), '<br/>') |
|
216 | + ); ?></span> |
|
217 | 217 | </th> |
218 | 218 | <?php endif; // end $show_ticket_sale_columns conditional ?> |
219 | 219 | </tr> |
220 | 220 | </thead> |
221 | 221 | <tbody> |
222 | 222 | <?php |
223 | - foreach ($datetimes as $datetime) { |
|
224 | - if ($datetime instanceof EE_Datetime) { |
|
225 | - ?> |
|
223 | + foreach ($datetimes as $datetime) { |
|
224 | + if ($datetime instanceof EE_Datetime) { |
|
225 | + ?> |
|
226 | 226 | |
227 | 227 | <tr> |
228 | 228 | <td data-th="<?php |
229 | - echo apply_filters( |
|
230 | - 'FHEE__ticket_selector_chart_template__ticket_details_event_access_table_event_date', |
|
231 | - esc_html__('Event Date ', 'event_espresso') |
|
232 | - ); ?>" class="small-text"> |
|
229 | + echo apply_filters( |
|
230 | + 'FHEE__ticket_selector_chart_template__ticket_details_event_access_table_event_date', |
|
231 | + esc_html__('Event Date ', 'event_espresso') |
|
232 | + ); ?>" class="small-text"> |
|
233 | 233 | <?php $datetime_name = $datetime->name(); ?> |
234 | 234 | <?php echo ! empty($datetime_name) ? '<b>' |
235 | - . $datetime_name |
|
236 | - . '</b><br/>' : ''; ?> |
|
235 | + . $datetime_name |
|
236 | + . '</b><br/>' : ''; ?> |
|
237 | 237 | <?php echo $datetime->date_range( |
238 | - $date_format, |
|
239 | - esc_html__(' to ', 'event_espresso') |
|
240 | - ); ?> |
|
238 | + $date_format, |
|
239 | + esc_html__(' to ', 'event_espresso') |
|
240 | + ); ?> |
|
241 | 241 | </td> |
242 | 242 | <td data-th="<?php esc_html_e('Time ', 'event_espresso'); ?>" |
243 | 243 | class="cntr small-text"> |
244 | 244 | <?php echo $datetime->time_range( |
245 | - $time_format, |
|
246 | - esc_html__(' to ', 'event_espresso') |
|
247 | - ); ?> |
|
245 | + $time_format, |
|
246 | + esc_html__(' to ', 'event_espresso') |
|
247 | + ); ?> |
|
248 | 248 | </td> |
249 | 249 | <?php if ($show_ticket_sale_columns) : ?> |
250 | 250 | <td data-th="<?php |
251 | - echo apply_filters( |
|
252 | - 'FHEE__ticket_selector_chart_template__ticket_details_event_access_table_this_ticket_sold', |
|
253 | - esc_html__('Sold', 'event_espresso') |
|
254 | - ); ?>" class="cntr small-text"> |
|
251 | + echo apply_filters( |
|
252 | + 'FHEE__ticket_selector_chart_template__ticket_details_event_access_table_this_ticket_sold', |
|
253 | + esc_html__('Sold', 'event_espresso') |
|
254 | + ); ?>" class="cntr small-text"> |
|
255 | 255 | <?php echo $ticket->sold(); ?> |
256 | 256 | </td> |
257 | 257 | <td data-th="<?php |
258 | - echo apply_filters( |
|
259 | - 'FHEE__ticket_selector_chart_template__ticket_details_event_access_table_this_ticket_left', |
|
260 | - esc_html__('Remaining', 'event_espresso') |
|
261 | - ); ?>" class="cntr small-text"> |
|
258 | + echo apply_filters( |
|
259 | + 'FHEE__ticket_selector_chart_template__ticket_details_event_access_table_this_ticket_left', |
|
260 | + esc_html__('Remaining', 'event_espresso') |
|
261 | + ); ?>" class="cntr small-text"> |
|
262 | 262 | <?php echo $remaining === EE_INF |
263 | - ? '<span class="smaller-text">' . esc_html__( |
|
264 | - 'unlimited ', |
|
265 | - 'event_espresso' |
|
266 | - ) . '</span>' : $remaining; ?> |
|
263 | + ? '<span class="smaller-text">' . esc_html__( |
|
264 | + 'unlimited ', |
|
265 | + 'event_espresso' |
|
266 | + ) . '</span>' : $remaining; ?> |
|
267 | 267 | </td> |
268 | 268 | <td data-th="<?php |
269 | - echo apply_filters( |
|
270 | - 'FHEE__ticket_selector_chart_template__ticket_details_event_access_table_total_ticket_sold', |
|
271 | - esc_html__('Total Sold', 'event_espresso') |
|
272 | - ); ?>" class="cntr small-text"> |
|
269 | + echo apply_filters( |
|
270 | + 'FHEE__ticket_selector_chart_template__ticket_details_event_access_table_total_ticket_sold', |
|
271 | + esc_html__('Total Sold', 'event_espresso') |
|
272 | + ); ?>" class="cntr small-text"> |
|
273 | 273 | <?php echo $datetime->sold(); ?> |
274 | 274 | </td> |
275 | 275 | <?php $tkts_left = $datetime->sold_out() |
276 | - ? '<span class="sold-out smaller-text">' . esc_html__( |
|
277 | - 'Sold Out', |
|
278 | - 'event_espresso' |
|
279 | - ) . '</span>' : $datetime->spaces_remaining(); ?> |
|
276 | + ? '<span class="sold-out smaller-text">' . esc_html__( |
|
277 | + 'Sold Out', |
|
278 | + 'event_espresso' |
|
279 | + ) . '</span>' : $datetime->spaces_remaining(); ?> |
|
280 | 280 | <td data-th="<?php |
281 | - echo apply_filters( |
|
282 | - 'FHEE__ticket_selector_chart_template__ticket_details_event_access_table_total_ticket_left', |
|
283 | - esc_html__('Total Spaces Left', 'event_espresso') |
|
284 | - ); ?>" class="cntr small-text"> |
|
281 | + echo apply_filters( |
|
282 | + 'FHEE__ticket_selector_chart_template__ticket_details_event_access_table_total_ticket_left', |
|
283 | + esc_html__('Total Spaces Left', 'event_espresso') |
|
284 | + ); ?>" class="cntr small-text"> |
|
285 | 285 | <?php echo $tkts_left === EE_INF ? '<span class="smaller-text">' |
286 | - . esc_html__( |
|
287 | - 'unlimited ', |
|
288 | - 'event_espresso' |
|
289 | - ) |
|
290 | - . '</span>' : $tkts_left; ?> |
|
286 | + . esc_html__( |
|
287 | + 'unlimited ', |
|
288 | + 'event_espresso' |
|
289 | + ) |
|
290 | + . '</span>' : $tkts_left; ?> |
|
291 | 291 | </td> |
292 | 292 | <?php endif; // end $show_ticket_sale_columns conditional ?> |
293 | 293 | </tr> |
@@ -49,7 +49,7 @@ discard block |
||
49 | 49 | esc_html__('Goes On Sale:', 'event_espresso') |
50 | 50 | ); ?></span> |
51 | 51 | <span class="dashicons dashicons-calendar"></span> |
52 | - <?php echo $ticket->get_i18n_datetime('TKT_start_date', $date_format) . ' '; ?> |
|
52 | + <?php echo $ticket->get_i18n_datetime('TKT_start_date', $date_format).' '; ?> |
|
53 | 53 | <span class="dashicons dashicons-clock"></span> |
54 | 54 | <?php echo $ticket->get_i18n_datetime('TKT_start_date', $time_format); ?> |
55 | 55 | <br/> |
@@ -59,7 +59,7 @@ discard block |
||
59 | 59 | esc_html__('Sales End:', 'event_espresso') |
60 | 60 | ); ?></span> |
61 | 61 | <span class="dashicons dashicons-calendar"></span> |
62 | - <?php echo $ticket->get_i18n_datetime('TKT_end_date', $date_format) . ' '; ?> |
|
62 | + <?php echo $ticket->get_i18n_datetime('TKT_end_date', $date_format).' '; ?> |
|
63 | 63 | <span class="dashicons dashicons-clock"></span> |
64 | 64 | <?php echo $ticket->get_i18n_datetime('TKT_end_date', $time_format); ?> |
65 | 65 | <br/> |
@@ -116,7 +116,7 @@ discard block |
||
116 | 116 | <br/> |
117 | 117 | <?php } ?> |
118 | 118 | |
119 | - <?php if ((! defined('EE_DECAF') || EE_DECAF !== true) && $ticket->uses() !== EE_INF) { ?> |
|
119 | + <?php if (( ! defined('EE_DECAF') || EE_DECAF !== true) && $ticket->uses() !== EE_INF) { ?> |
|
120 | 120 | <section class="tckt-slctr-tkt-uses-sctn"> |
121 | 121 | <h5> |
122 | 122 | <?php echo apply_filters( |
@@ -149,7 +149,7 @@ discard block |
||
149 | 149 | <?php |
150 | 150 | $datetimes = $ticket->datetimes_ordered($event_is_expired, false); |
151 | 151 | $chart_column_width = $show_ticket_sale_columns ? ' ee-fourth-width' : ' ee-half-width'; |
152 | - if (! empty($datetimes)) { ?> |
|
152 | + if ( ! empty($datetimes)) { ?> |
|
153 | 153 | <section class="tckt-slctr-tkt-datetimes-sctn"> |
154 | 154 | <h5> |
155 | 155 | <?php echo apply_filters( |
@@ -260,10 +260,10 @@ discard block |
||
260 | 260 | esc_html__('Remaining', 'event_espresso') |
261 | 261 | ); ?>" class="cntr small-text"> |
262 | 262 | <?php echo $remaining === EE_INF |
263 | - ? '<span class="smaller-text">' . esc_html__( |
|
263 | + ? '<span class="smaller-text">'.esc_html__( |
|
264 | 264 | 'unlimited ', |
265 | 265 | 'event_espresso' |
266 | - ) . '</span>' : $remaining; ?> |
|
266 | + ).'</span>' : $remaining; ?> |
|
267 | 267 | </td> |
268 | 268 | <td data-th="<?php |
269 | 269 | echo apply_filters( |
@@ -273,10 +273,10 @@ discard block |
||
273 | 273 | <?php echo $datetime->sold(); ?> |
274 | 274 | </td> |
275 | 275 | <?php $tkts_left = $datetime->sold_out() |
276 | - ? '<span class="sold-out smaller-text">' . esc_html__( |
|
276 | + ? '<span class="sold-out smaller-text">'.esc_html__( |
|
277 | 277 | 'Sold Out', |
278 | 278 | 'event_espresso' |
279 | - ) . '</span>' : $datetime->spaces_remaining(); ?> |
|
279 | + ).'</span>' : $datetime->spaces_remaining(); ?> |
|
280 | 280 | <td data-th="<?php |
281 | 281 | echo apply_filters( |
282 | 282 | 'FHEE__ticket_selector_chart_template__ticket_details_event_access_table_total_ticket_left', |
@@ -305,4 +305,4 @@ discard block |
||
305 | 305 | </div> |
306 | 306 | </td> |
307 | 307 | </tr> |
308 | -<?php endif; // end template_settings->show_ticket_details check |
|
308 | +<?php endif; // end template_settings->show_ticket_details check |
@@ -65,20 +65,20 @@ discard block |
||
65 | 65 | </thead> |
66 | 66 | <tbody> |
67 | 67 | <?php |
68 | - /** |
|
69 | - * Recursive function for traversing all the sub-items of each line item |
|
70 | - * and displaying them in the table |
|
71 | - * |
|
72 | - * @param EE_Line_Item $line_item |
|
73 | - * @param boolean $odd for indicating whether to style this line item as an 'odd' or 'even' |
|
74 | - */ |
|
75 | - function ee_invoice_display_line_item(EE_Line_Item $line_item, $show_line_item_description, $odd = false) |
|
76 | - { |
|
77 | - switch ($line_item->type()) { |
|
78 | - case EEM_Line_Item::type_total: |
|
79 | - foreach ($line_item->children() as $child_line_item) { |
|
80 | - ee_invoice_display_line_item($child_line_item, $show_line_item_description); |
|
81 | - } ?> |
|
68 | + /** |
|
69 | + * Recursive function for traversing all the sub-items of each line item |
|
70 | + * and displaying them in the table |
|
71 | + * |
|
72 | + * @param EE_Line_Item $line_item |
|
73 | + * @param boolean $odd for indicating whether to style this line item as an 'odd' or 'even' |
|
74 | + */ |
|
75 | + function ee_invoice_display_line_item(EE_Line_Item $line_item, $show_line_item_description, $odd = false) |
|
76 | + { |
|
77 | + switch ($line_item->type()) { |
|
78 | + case EEM_Line_Item::type_total: |
|
79 | + foreach ($line_item->children() as $child_line_item) { |
|
80 | + ee_invoice_display_line_item($child_line_item, $show_line_item_description); |
|
81 | + } ?> |
|
82 | 82 | <tr> |
83 | 83 | <td colspan="<?php echo $show_line_item_description ? 5 : 4 ?>"> |
84 | 84 | <hr> |
@@ -90,50 +90,50 @@ discard block |
||
90 | 90 | <td class="total"><?php echo $line_item->total_no_code(); ?></td> |
91 | 91 | </tr> |
92 | 92 | <?php |
93 | - break; |
|
93 | + break; |
|
94 | 94 | |
95 | 95 | |
96 | - case EEM_Line_Item::type_sub_total: |
|
97 | - foreach ($line_item->children() as $child_line_item) { |
|
98 | - // $odd = !$odd; |
|
99 | - ee_invoice_display_line_item($child_line_item, $show_line_item_description, $odd); |
|
100 | - } ?> |
|
96 | + case EEM_Line_Item::type_sub_total: |
|
97 | + foreach ($line_item->children() as $child_line_item) { |
|
98 | + // $odd = !$odd; |
|
99 | + ee_invoice_display_line_item($child_line_item, $show_line_item_description, $odd); |
|
100 | + } ?> |
|
101 | 101 | <tr class="total_tr odd"> |
102 | 102 | <td colspan="<?php echo $show_line_item_description ? 2 : 1 ?>"> </td> |
103 | 103 | <td colspan="2" class="total" id="total_currency"> |
104 | 104 | <?php _e( |
105 | - 'Sub-Total', |
|
106 | - 'event_espresso' |
|
107 | - ); ?></td> |
|
105 | + 'Sub-Total', |
|
106 | + 'event_espresso' |
|
107 | + ); ?></td> |
|
108 | 108 | <td class="total"><?php echo $line_item->total_no_code(); ?></td> |
109 | 109 | </tr> |
110 | 110 | <?php |
111 | - break; |
|
111 | + break; |
|
112 | 112 | |
113 | 113 | |
114 | - case EEM_Line_Item::type_tax_sub_total: |
|
115 | - foreach ($line_item->children() as $child_line_item) { |
|
116 | - $odd = ! $odd; |
|
117 | - ee_invoice_display_line_item($child_line_item, $show_line_item_description, $odd); |
|
118 | - } ?> |
|
114 | + case EEM_Line_Item::type_tax_sub_total: |
|
115 | + foreach ($line_item->children() as $child_line_item) { |
|
116 | + $odd = ! $odd; |
|
117 | + ee_invoice_display_line_item($child_line_item, $show_line_item_description, $odd); |
|
118 | + } ?> |
|
119 | 119 | <tr class="total_tr odd"> |
120 | 120 | <td colspan="<?php echo $show_line_item_description ? 2 : 1 ?>"> </td> |
121 | 121 | <td colspan="2" class="total" id="total_currency"> |
122 | 122 | <?php _e( |
123 | - 'Tax Total', |
|
124 | - 'event_espresso' |
|
125 | - ); ?></td> |
|
123 | + 'Tax Total', |
|
124 | + 'event_espresso' |
|
125 | + ); ?></td> |
|
126 | 126 | <td class="total"><?php echo $line_item->total_no_code(); ?></td> |
127 | 127 | </tr> |
128 | 128 | <?php |
129 | - break; |
|
129 | + break; |
|
130 | 130 | |
131 | 131 | |
132 | - case EEM_Line_Item::type_line_item: |
|
133 | - $subitems = $line_item->children(); |
|
134 | - $has_subitems = count($subitems) > 1; |
|
135 | - if ($has_subitems) { |
|
136 | - ?> |
|
132 | + case EEM_Line_Item::type_line_item: |
|
133 | + $subitems = $line_item->children(); |
|
134 | + $has_subitems = count($subitems) > 1; |
|
135 | + if ($has_subitems) { |
|
136 | + ?> |
|
137 | 137 | <tr class="item <?php echo $odd ? 'odd' : ''; ?>"> |
138 | 138 | <td class="item_l"><?php echo $line_item->name() ?></td> |
139 | 139 | <?php if ($show_line_item_description) { ?> |
@@ -144,18 +144,18 @@ discard block |
||
144 | 144 | <td class="item_c"><?php echo $line_item->unit_price_no_code() ?></td> |
145 | 145 | |
146 | 146 | <td class="item_r"> <?php echo $line_item->total_no_code(); |
147 | - echo $line_item->is_taxable() ? '*' : '' ?> </td> |
|
147 | + echo $line_item->is_taxable() ? '*' : '' ?> </td> |
|
148 | 148 | <?php // <td class="item_l"><?php $datetimes_strings = array(); foreach($datetimes as $datetime){ $datetimes_strings[]= $datetime->start_date_and_time();} echo implode(", ",$datetimes_strings); |
149 | - ?> |
|
149 | + ?> |
|
150 | 150 | </tr> |
151 | 151 | <?php |
152 | - if ($has_subitems) { |
|
153 | - foreach ($line_item->children() as $child_line_item) { |
|
154 | - ee_invoice_display_line_item($child_line_item, $show_line_item_description, $odd); |
|
155 | - } |
|
156 | - } |
|
157 | - } else {// no subitems - just show this line item |
|
158 | - ?> |
|
152 | + if ($has_subitems) { |
|
153 | + foreach ($line_item->children() as $child_line_item) { |
|
154 | + ee_invoice_display_line_item($child_line_item, $show_line_item_description, $odd); |
|
155 | + } |
|
156 | + } |
|
157 | + } else {// no subitems - just show this line item |
|
158 | + ?> |
|
159 | 159 | <tr class="item <?php echo $odd ? 'odd' : ''; ?>"> |
160 | 160 | <td class="item_l"><?php echo $line_item->name() ?></td> |
161 | 161 | <?php if ($show_line_item_description) { ?> |
@@ -164,15 +164,15 @@ discard block |
||
164 | 164 | <td class="item_l"><?php echo $line_item->quantity() ?></td> |
165 | 165 | <td class="item_c"><?php echo $line_item->unit_price_no_code() ?></td> |
166 | 166 | <td class="item_r"> <?php echo $line_item->total_no_code(); |
167 | - echo $line_item->is_taxable() ? '*' : '' ?> </td> |
|
167 | + echo $line_item->is_taxable() ? '*' : '' ?> </td> |
|
168 | 168 | <?php // <td class="item_l"><?php $datetimes_strings = array(); foreach($datetimes as $datetime){ $datetimes_strings[]= $datetime->start_date_and_time();} echo implode(", ",$datetimes_strings); |
169 | - ?> |
|
169 | + ?> |
|
170 | 170 | </tr> |
171 | 171 | <?php } |
172 | 172 | |
173 | - break; |
|
174 | - case EEM_Line_Item::type_sub_line_item: |
|
175 | - ?> |
|
173 | + break; |
|
174 | + case EEM_Line_Item::type_sub_line_item: |
|
175 | + ?> |
|
176 | 176 | <tr class="item subitem-row"> |
177 | 177 | <td class="item_l subitem"><?php echo $line_item->name(); ?></td> |
178 | 178 | <?php if ($show_line_item_description) { ?> |
@@ -188,9 +188,9 @@ discard block |
||
188 | 188 | <td class="item_r"><?php echo $line_item->total_no_code(); ?></td> |
189 | 189 | </tr> |
190 | 190 | <?php |
191 | - break; |
|
192 | - case EEM_Line_Item::type_tax: |
|
193 | - ?> |
|
191 | + break; |
|
192 | + case EEM_Line_Item::type_tax: |
|
193 | + ?> |
|
194 | 194 | <tr class="item sub-item tax-total"> |
195 | 195 | <td class="item_l"><?php echo $line_item->name(); ?></td> |
196 | 196 | <?php if ($show_line_item_description) { ?> |
@@ -200,15 +200,15 @@ discard block |
||
200 | 200 | |
201 | 201 | <td class="item_r"><?php echo $line_item->total_no_code(); ?></td> |
202 | 202 | </tr><?php |
203 | - break; |
|
204 | - } |
|
205 | - } |
|
203 | + break; |
|
204 | + } |
|
205 | + } |
|
206 | 206 | |
207 | - $c = false; |
|
208 | - /* @var $transaction EE_Transaction */ |
|
209 | - $total_line_item = $transaction->total_line_item(); |
|
210 | - ee_invoice_display_line_item($total_line_item, $show_line_item_description); |
|
211 | - /* foreach($transaction->registrations() as $registration){ |
|
207 | + $c = false; |
|
208 | + /* @var $transaction EE_Transaction */ |
|
209 | + $total_line_item = $transaction->total_line_item(); |
|
210 | + ee_invoice_display_line_item($total_line_item, $show_line_item_description); |
|
211 | + /* foreach($transaction->registrations() as $registration){ |
|
212 | 212 | ?> |
213 | 213 | <tr class="item <?php echo ($c = !$c) ? ' odd' : ''; ?>"> |
214 | 214 | <td class="item_l">1</td> |
@@ -237,11 +237,11 @@ discard block |
||
237 | 237 | </thead> |
238 | 238 | <tbody> |
239 | 239 | <?php |
240 | - $c = false; |
|
241 | - if (! empty($payments)) { |
|
242 | - foreach ($payments as $payment) { |
|
243 | - /* @var $payment EE_Payment */ |
|
244 | - ?> |
|
240 | + $c = false; |
|
241 | + if (! empty($payments)) { |
|
242 | + foreach ($payments as $payment) { |
|
243 | + /* @var $payment EE_Payment */ |
|
244 | + ?> |
|
245 | 245 | <tr class='item <?php echo(($c = ! $c) ? ' odd' : '') ?>'> |
246 | 246 | <td><?php $payment->e('PAY_gateway') ?></td> |
247 | 247 | <td><?php echo $payment->timestamp('D M j, Y') ?></td> |
@@ -251,17 +251,17 @@ discard block |
||
251 | 251 | <td class='item_r'><?php echo EEH_Template::format_currency($payment->amount()); ?></td> |
252 | 252 | </tr> |
253 | 253 | <?php } |
254 | - } else { |
|
255 | - ?> |
|
254 | + } else { |
|
255 | + ?> |
|
256 | 256 | <tr class='item'> |
257 | 257 | <td class='aln-cntr' colspan=6> |
258 | 258 | <?php _e( |
259 | - "No approved payments have been received", |
|
260 | - 'event_espresso' |
|
261 | - ) ?></td> |
|
259 | + "No approved payments have been received", |
|
260 | + 'event_espresso' |
|
261 | + ) ?></td> |
|
262 | 262 | </tr> |
263 | 263 | <?php } |
264 | - ?> |
|
264 | + ?> |
|
265 | 265 | </tbody> |
266 | 266 | <tfoot> |
267 | 267 | <tr class='total_tr'> |
@@ -238,7 +238,7 @@ |
||
238 | 238 | <tbody> |
239 | 239 | <?php |
240 | 240 | $c = false; |
241 | - if (! empty($payments)) { |
|
241 | + if ( ! empty($payments)) { |
|
242 | 242 | foreach ($payments as $payment) { |
243 | 243 | /* @var $payment EE_Payment */ |
244 | 244 | ?> |
@@ -8,9 +8,9 @@ |
||
8 | 8 | <head> |
9 | 9 | <title>[organization]<?php __(' Invoice #', 'event_espresso'); ?>[registration_code] |
10 | 10 | <?php __( |
11 | - ' for ', |
|
12 | - 'event_espresso' |
|
13 | - ); ?>[name]</title> |
|
11 | + ' for ', |
|
12 | + 'event_espresso' |
|
13 | + ); ?>[name]</title> |
|
14 | 14 | <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> |
15 | 15 | <!-- Base Stylesheet do not change or remove --> |
16 | 16 | <link rel="stylesheet" type="text/css" href="[base_url]base.css" media="screen"/> |
@@ -43,33 +43,33 @@ discard block |
||
43 | 43 | </h3> |
44 | 44 | <h3 id="invoice-txn-status"><?php _e('Status:', 'event_espresso') ?> <span |
45 | 45 | class="<?php echo $transaction->status_ID( |
46 | - ) ?> plain-text"><?php echo $transaction->pretty_status(); ?></span></h3> |
|
46 | + ) ?> plain-text"><?php echo $transaction->pretty_status(); ?></span></h3> |
|
47 | 47 | </div> |
48 | 48 | </td> |
49 | 49 | </tr> |
50 | 50 | </table> |
51 | 51 | <div class="events"> |
52 | 52 | <?php foreach ($events_for_txn as $event_id => $event) { |
53 | - ?><h3 class="section-title event-name"><img class="icon" |
|
53 | + ?><h3 class="section-title event-name"><img class="icon" |
|
54 | 54 | src="<?php echo EE_IMAGES_URL . 'calendar_year-24x24.png'; ?>"> |
55 | 55 | <?php _e( |
56 | - "Event Name:", |
|
57 | - "event_espresso" |
|
58 | - ) ?> <span class="plain-text"><?php echo $event->name(); ?></span> <span class="small-text link">[ <a |
|
56 | + "Event Name:", |
|
57 | + "event_espresso" |
|
58 | + ) ?> <span class="plain-text"><?php echo $event->name(); ?></span> <span class="small-text link">[ <a |
|
59 | 59 | href='<?php echo $event->get_permalink() ?>'><?php _e('view', 'event_espresso'); ?></a> ]</span> |
60 | 60 | </h3> |
61 | 61 | <?php |
62 | - if (strlen($event->description() > 1)) { |
|
63 | - ?><p class="event-description"><?php $event->description() ?></p> |
|
62 | + if (strlen($event->description() > 1)) { |
|
63 | + ?><p class="event-description"><?php $event->description() ?></p> |
|
64 | 64 | <?php |
65 | - } ?> |
|
65 | + } ?> |
|
66 | 66 | <ul class="tickets-per-event"> |
67 | 67 | <?php foreach ($ticket_line_items_per_event[ $event_id ] as $line_item_id => $line_item) { |
68 | - $ticket = $line_item->ticket(); |
|
69 | - $taxable_html = $ticket->taxable() ? '*' : ''; |
|
70 | - $subitems = $line_item->children(); |
|
71 | - $ticket_uses = $ticket->get_pretty('TKT_uses', __("any", "event_espresso")); |
|
72 | - ?> |
|
68 | + $ticket = $line_item->ticket(); |
|
69 | + $taxable_html = $ticket->taxable() ? '*' : ''; |
|
70 | + $subitems = $line_item->children(); |
|
71 | + $ticket_uses = $ticket->get_pretty('TKT_uses', __("any", "event_espresso")); |
|
72 | + ?> |
|
73 | 73 | <li class="event-ticket"> |
74 | 74 | <div class="ticket-details"> |
75 | 75 | <table class="invoice-amount"> |
@@ -78,9 +78,9 @@ discard block |
||
78 | 78 | <th class="name-column"><?php _e("Ticket", "event_espresso"); ?></th> |
79 | 79 | <th colspan="2" class="desc-column"> |
80 | 80 | <?php _e( |
81 | - "Description", |
|
82 | - "event_espresso" |
|
83 | - ); ?></th> |
|
81 | + "Description", |
|
82 | + "event_espresso" |
|
83 | + ); ?></th> |
|
84 | 84 | <th class="number-column item_c"><?php _e("Quantity", "event_espresso"); ?></th> |
85 | 85 | <th class="number-column item_c"><?php _e("Price", "event_espresso"); ?></th> |
86 | 86 | <th class="number-column item_r"><?php _e("Total", "event_espresso"); ?></th> |
@@ -93,12 +93,12 @@ discard block |
||
93 | 93 | <td colspan="2"><?php echo $line_item->desc(); ?><p |
94 | 94 | class="ticket-note"> |
95 | 95 | <?php echo sprintf( |
96 | - __( |
|
97 | - 'This ticket can be used once at %s of the dates/times below.', |
|
98 | - 'event_espresso' |
|
99 | - ), |
|
100 | - $ticket_uses |
|
101 | - ); ?></p></td> |
|
96 | + __( |
|
97 | + 'This ticket can be used once at %s of the dates/times below.', |
|
98 | + 'event_espresso' |
|
99 | + ), |
|
100 | + $ticket_uses |
|
101 | + ); ?></p></td> |
|
102 | 102 | <td class="item_c"><?php echo $line_item->quantity() ?></td> |
103 | 103 | <td class="item_c"><?php echo $line_item->unit_price_no_code() ?></td> |
104 | 104 | <td class="item_r"><?php echo $line_item->total_no_code() ?></td> |
@@ -109,24 +109,24 @@ discard block |
||
109 | 109 | <td colspan="2"><?php echo $line_item->desc(); ?><p |
110 | 110 | class="ticket-note"> |
111 | 111 | <?php echo sprintf( |
112 | - __( |
|
113 | - 'This ticket can be used once at %s of the dates/times below.', |
|
114 | - 'event_espresso' |
|
115 | - ), |
|
116 | - $ticket_uses |
|
117 | - ); ?></p></td> |
|
112 | + __( |
|
113 | + 'This ticket can be used once at %s of the dates/times below.', |
|
114 | + 'event_espresso' |
|
115 | + ), |
|
116 | + $ticket_uses |
|
117 | + ); ?></p></td> |
|
118 | 118 | <td class="item_c"><?php echo $line_item->quantity() ?></td> |
119 | 119 | <td class="item_c"><?php echo $line_item->unit_price_no_code() ?></td> |
120 | 120 | <td class="item_r"><?php echo $line_item->total_no_code() ?></td> |
121 | 121 | </tr> |
122 | 122 | <?php foreach ($subitems as $sub_line_item) { |
123 | - $is_percent = $sub_line_item->is_percent(); ?> |
|
123 | + $is_percent = $sub_line_item->is_percent(); ?> |
|
124 | 124 | <tr class="subitem-row"> |
125 | 125 | <td class="subitem"><?php echo $sub_line_item->name() ?></td> |
126 | 126 | <td colspan="2"><?php echo $sub_line_item->desc() ?></td> |
127 | 127 | <td class="item_c"><?php // echo $is_percent ? '' : $sub_line_item->quantity()?></td> |
128 | 128 | <td class="item_c"><?php echo $is_percent ? $sub_line_item->percent() . "%" |
129 | - : $sub_line_item->unit_price_no_code() ?></td> |
|
129 | + : $sub_line_item->unit_price_no_code() ?></td> |
|
130 | 130 | <td class="item_r"><?php echo $sub_line_item->total_no_code() ?></td> |
131 | 131 | </tr> |
132 | 132 | <?php } ?> |
@@ -134,9 +134,9 @@ discard block |
||
134 | 134 | <td colspan="4"></td> |
135 | 135 | <td class="total" nowrap="nowrap"> |
136 | 136 | <?php _e( |
137 | - "Ticket Total:", |
|
138 | - "event_espresso" |
|
139 | - ); ?></td> |
|
137 | + "Ticket Total:", |
|
138 | + "event_espresso" |
|
139 | + ); ?></td> |
|
140 | 140 | <td class="item_r"><?php echo $line_item->total_no_code() ?></td> |
141 | 141 | </tr> |
142 | 142 | <?php } ?> |
@@ -150,25 +150,25 @@ discard block |
||
150 | 150 | <h4 class="sub-section-title no-bottom-margin"><img class="icon" |
151 | 151 | src="<?php echo EE_IMAGES_URL . 'clock-16x16.png'; ?>"> |
152 | 152 | <?php echo _n( |
153 | - "Date/Time:", |
|
154 | - "Dates/Times:", |
|
155 | - count($ticket->datetimes()), |
|
156 | - "event_espresso" |
|
157 | - ); ?></h4> |
|
153 | + "Date/Time:", |
|
154 | + "Dates/Times:", |
|
155 | + count($ticket->datetimes()), |
|
156 | + "event_espresso" |
|
157 | + ); ?></h4> |
|
158 | 158 | <ul class="event-dates"> |
159 | 159 | <?php foreach ($ticket->datetimes_ordered() as $datetime) { |
160 | - /* @var $datetime EE_Datetime */ ?> |
|
160 | + /* @var $datetime EE_Datetime */ ?> |
|
161 | 161 | <li><?php |
162 | - echo $datetime->name() ? '<b>' . $datetime->name() . ' </b>' : ''; |
|
163 | - echo sprintf( |
|
164 | - __("%s - %s (%s)", "event_espresso"), |
|
165 | - $datetime->start_date_and_time(), |
|
166 | - $datetime->end_date_and_time(), |
|
167 | - $datetime->get_timezone() |
|
168 | - ); |
|
169 | - echo $datetime->description() |
|
170 | - ? '<p class="ticket-note">' . $datetime->description() . '</p>' |
|
171 | - : '' ?></li> |
|
162 | + echo $datetime->name() ? '<b>' . $datetime->name() . ' </b>' : ''; |
|
163 | + echo sprintf( |
|
164 | + __("%s - %s (%s)", "event_espresso"), |
|
165 | + $datetime->start_date_and_time(), |
|
166 | + $datetime->end_date_and_time(), |
|
167 | + $datetime->get_timezone() |
|
168 | + ); |
|
169 | + echo $datetime->description() |
|
170 | + ? '<p class="ticket-note">' . $datetime->description() . '</p>' |
|
171 | + : '' ?></li> |
|
172 | 172 | <?php } ?> |
173 | 173 | </ul> |
174 | 174 | </div> |
@@ -177,19 +177,19 @@ discard block |
||
177 | 177 | <h4 class="sub-section-title no-bottom-margin"><img class="icon" |
178 | 178 | src="<?php echo EE_IMAGES_URL . 'location-pin-16x16.png'; ?>"> |
179 | 179 | <?php echo _n( |
180 | - "Venue:", |
|
181 | - "Venues:", |
|
182 | - count($event->venues()), |
|
183 | - "event_espresso" |
|
184 | - ); ?></h4> |
|
180 | + "Venue:", |
|
181 | + "Venues:", |
|
182 | + count($event->venues()), |
|
183 | + "event_espresso" |
|
184 | + ); ?></h4> |
|
185 | 185 | <ul class="event-venues"> |
186 | 186 | <?php foreach ($event->venues() as $venue) { ?> |
187 | 187 | <li><?php echo $venue->name() ?> <span class="small-text">[ <a |
188 | 188 | href='<?php echo $venue->get_permalink() ?>'> |
189 | 189 | <?php _e( |
190 | - 'view', |
|
191 | - 'event_espresso' |
|
192 | - ); ?></a> ]</span></li> |
|
190 | + 'view', |
|
191 | + 'event_espresso' |
|
192 | + ); ?></a> ]</span></li> |
|
193 | 193 | <?php } ?> |
194 | 194 | </ul> |
195 | 195 | </div> |
@@ -199,21 +199,21 @@ discard block |
||
199 | 199 | <h4 class="sub-section-title"><img class="icon" |
200 | 200 | src="<?php echo EE_IMAGES_URL . 'users-16x16.png'; ?>"> |
201 | 201 | <?php echo __( |
202 | - "Registration Details", |
|
203 | - "event_espresso" |
|
204 | - ); ?> <span class="small-text link">[ <a class="print_button noPrint" |
|
202 | + "Registration Details", |
|
203 | + "event_espresso" |
|
204 | + ); ?> <span class="small-text link">[ <a class="print_button noPrint" |
|
205 | 205 | href="<?php echo $edit_reg_info_url; ?>"> |
206 | 206 | <?php _e( |
207 | - 'edit', |
|
208 | - 'event_espresso' |
|
209 | - ); ?></a> ]</span></h4> |
|
207 | + 'edit', |
|
208 | + 'event_espresso' |
|
209 | + ); ?></a> ]</span></h4> |
|
210 | 210 | <ul class="ticket-registrations-list"> |
211 | 211 | <?php foreach ($registrations_per_line_item[ $line_item_id ] as $registration) { |
212 | - /* @var $registration EE_Registration */ |
|
213 | - $attendee = $registration->attendee(); |
|
214 | - $answers = $registration->answers( |
|
215 | - array('order_by' => array('Question.Question_Group_Question.QGQ_order' => 'ASC')) |
|
216 | - ); ?> |
|
212 | + /* @var $registration EE_Registration */ |
|
213 | + $attendee = $registration->attendee(); |
|
214 | + $answers = $registration->answers( |
|
215 | + array('order_by' => array('Question.Question_Group_Question.QGQ_order' => 'ASC')) |
|
216 | + ); ?> |
|
217 | 217 | <li class="ticket-registration"> |
218 | 218 | <table class="registration-details"> |
219 | 219 | <tr class="odd"> |
@@ -224,39 +224,39 @@ discard block |
||
224 | 224 | </td> |
225 | 225 | </tr> |
226 | 226 | <?php |
227 | - foreach ($event->question_groups() as $question_group) { |
|
228 | - ?> |
|
227 | + foreach ($event->question_groups() as $question_group) { |
|
228 | + ?> |
|
229 | 229 | <tr> |
230 | 230 | <th><?php $question_group->e('QSG_name'); ?></th> |
231 | 231 | <td></td></tr><?php |
232 | - $has_personal_info = false; |
|
233 | - foreach ($question_group->questions() as $question) { |
|
234 | - if (in_array($question->system_ID(), $questions_to_skip)) { |
|
235 | - $has_personal_info = true; |
|
236 | - continue; |
|
237 | - } |
|
238 | - ?> |
|
232 | + $has_personal_info = false; |
|
233 | + foreach ($question_group->questions() as $question) { |
|
234 | + if (in_array($question->system_ID(), $questions_to_skip)) { |
|
235 | + $has_personal_info = true; |
|
236 | + continue; |
|
237 | + } |
|
238 | + ?> |
|
239 | 239 | <tr> |
240 | 240 | <th><?php echo $question->display_text() ?></th> |
241 | 241 | <td> |
242 | 242 | <?php echo $registration->answer_value_to_question( |
243 | - $question |
|
244 | - ); ?></td> |
|
243 | + $question |
|
244 | + ); ?></td> |
|
245 | 245 | </tr><?php |
246 | - } |
|
247 | - if ($has_personal_info) { |
|
248 | - ?> |
|
246 | + } |
|
247 | + if ($has_personal_info) { |
|
248 | + ?> |
|
249 | 249 | <tr> |
250 | 250 | <th><?php _e('Attendee', 'event_espresso'); ?></th> |
251 | 251 | <td> |
252 | 252 | <?php echo sprintf( |
253 | - __('%s (%s)', "event_espresso"), |
|
254 | - $attendee->full_name(), |
|
255 | - $attendee->email() |
|
256 | - ) ?></td></tr><?php |
|
257 | - } |
|
258 | - } |
|
259 | - ?> |
|
253 | + __('%s (%s)', "event_espresso"), |
|
254 | + $attendee->full_name(), |
|
255 | + $attendee->email() |
|
256 | + ) ?></td></tr><?php |
|
257 | + } |
|
258 | + } |
|
259 | + ?> |
|
260 | 260 | </table> |
261 | 261 | </li> |
262 | 262 | <?php } ?> |
@@ -284,8 +284,8 @@ discard block |
||
284 | 284 | </thead> |
285 | 285 | <tbody> |
286 | 286 | <?php |
287 | - foreach ($tax_total_line_item->children() as $child_tax) { |
|
288 | - ?> |
|
287 | + foreach ($tax_total_line_item->children() as $child_tax) { |
|
288 | + ?> |
|
289 | 289 | <tr> |
290 | 290 | <td><?php echo $child_tax->name() ?></td> |
291 | 291 | <td><?php echo $child_tax->desc() ?></td> |
@@ -307,9 +307,9 @@ discard block |
||
307 | 307 | <div class="grand-total-dv"> |
308 | 308 | <h2 class="grand-total"> |
309 | 309 | <?php printf( |
310 | - __("Grand Total: %s", "event_espresso"), |
|
311 | - EEH_Template::format_currency($total_cost) |
|
312 | - ); ?></h2> |
|
310 | + __("Grand Total: %s", "event_espresso"), |
|
311 | + EEH_Template::format_currency($total_cost) |
|
312 | + ); ?></h2> |
|
313 | 313 | </div> |
314 | 314 | <div class="payment-dv"> |
315 | 315 | <h3 class="section-title"><?php _e("Payments", 'event_espresso') ?></h3> |
@@ -327,11 +327,11 @@ discard block |
||
327 | 327 | </thead> |
328 | 328 | <tbody> |
329 | 329 | <?php |
330 | - $c = false; |
|
331 | - if (! empty($payments)) { |
|
332 | - foreach ($payments as $payment) { |
|
333 | - /* @var $payment EE_Payment */ |
|
334 | - ?> |
|
330 | + $c = false; |
|
331 | + if (! empty($payments)) { |
|
332 | + foreach ($payments as $payment) { |
|
333 | + /* @var $payment EE_Payment */ |
|
334 | + ?> |
|
335 | 335 | <tr class='item <?php echo(($c = ! $c) ? ' odd' : '') ?>'> |
336 | 336 | <td><?php $payment->e('PAY_gateway') ?></td> |
337 | 337 | <td><?php echo $payment->timestamp() ?></td> |
@@ -341,28 +341,28 @@ discard block |
||
341 | 341 | <td class='item_r'><?php echo $payment->amount_no_code() ?></td> |
342 | 342 | </tr> |
343 | 343 | <?php } |
344 | - } else { |
|
345 | - ?> |
|
344 | + } else { |
|
345 | + ?> |
|
346 | 346 | <tr class='item'> |
347 | 347 | <td class='aln-cntr' colspan="6"> |
348 | 348 | <?php _e( |
349 | - "No approved payments have been received.", |
|
350 | - 'event_espresso' |
|
351 | - ) ?> </td> |
|
349 | + "No approved payments have been received.", |
|
350 | + 'event_espresso' |
|
351 | + ) ?> </td> |
|
352 | 352 | </tr> |
353 | 353 | <?php } |
354 | - ?> |
|
354 | + ?> |
|
355 | 355 | <tr class="item"> |
356 | 356 | <td class='aln-cntr' colspan="6"> |
357 | 357 | <?php |
358 | - if ($amount_owed) { |
|
359 | - ?><a class="noPrint" href='<?php echo $retry_payment_url ?>'> |
|
358 | + if ($amount_owed) { |
|
359 | + ?><a class="noPrint" href='<?php echo $retry_payment_url ?>'> |
|
360 | 360 | <?php _e( |
361 | - "Please make a payment.", |
|
362 | - "event_espresso" |
|
363 | - ); |
|
364 | - } |
|
365 | - ?></a></td> |
|
361 | + "Please make a payment.", |
|
362 | + "event_espresso" |
|
363 | + ); |
|
364 | + } |
|
365 | + ?></a></td> |
|
366 | 366 | </tr> |
367 | 367 | </tbody> |
368 | 368 | <tfoot> |
@@ -386,25 +386,25 @@ discard block |
||
386 | 386 | <?php if ($venues_for_events) { ?> |
387 | 387 | <h2> |
388 | 388 | <?php echo _n( |
389 | - "Venue Details:", |
|
390 | - "Venues Details:", |
|
391 | - count($venues_for_events), |
|
392 | - "event_espresso" |
|
393 | - ); ?></h2> |
|
389 | + "Venue Details:", |
|
390 | + "Venues Details:", |
|
391 | + count($venues_for_events), |
|
392 | + "event_espresso" |
|
393 | + ); ?></h2> |
|
394 | 394 | <table class="venue-list"> |
395 | 395 | <?php foreach ($venues_for_events as $venue) { ?> |
396 | 396 | <tr class="venue-details"> |
397 | 397 | <td class="venue-details-part venue-address-dv"> |
398 | 398 | <h3><a href='<?php echo $venue->get_permalink() ?>'><?php |
399 | - echo $venue->name() |
|
400 | - ?></a></h3> |
|
399 | + echo $venue->name() |
|
400 | + ?></a></h3> |
|
401 | 401 | <p><?php echo $venue->description() ?></p> |
402 | 402 | <?php echo EEH_Address::format($venue); ?></td> |
403 | 403 | <?php if ($venue->enable_for_gmap()) { ?> |
404 | 404 | <td class="venue-details-part venue-image-dv"> |
405 | 405 | <?php echo EEH_Venue_View::espresso_google_static_map( |
406 | - $venue |
|
407 | - ) ?></td> |
|
406 | + $venue |
|
407 | + ) ?></td> |
|
408 | 408 | <?php } ?> |
409 | 409 | </tr> |
410 | 410 | <?php } ?> |
@@ -51,7 +51,7 @@ discard block |
||
51 | 51 | <div class="events"> |
52 | 52 | <?php foreach ($events_for_txn as $event_id => $event) { |
53 | 53 | ?><h3 class="section-title event-name"><img class="icon" |
54 | - src="<?php echo EE_IMAGES_URL . 'calendar_year-24x24.png'; ?>"> |
|
54 | + src="<?php echo EE_IMAGES_URL.'calendar_year-24x24.png'; ?>"> |
|
55 | 55 | <?php _e( |
56 | 56 | "Event Name:", |
57 | 57 | "event_espresso" |
@@ -64,7 +64,7 @@ discard block |
||
64 | 64 | <?php |
65 | 65 | } ?> |
66 | 66 | <ul class="tickets-per-event"> |
67 | - <?php foreach ($ticket_line_items_per_event[ $event_id ] as $line_item_id => $line_item) { |
|
67 | + <?php foreach ($ticket_line_items_per_event[$event_id] as $line_item_id => $line_item) { |
|
68 | 68 | $ticket = $line_item->ticket(); |
69 | 69 | $taxable_html = $ticket->taxable() ? '*' : ''; |
70 | 70 | $subitems = $line_item->children(); |
@@ -89,7 +89,7 @@ discard block |
||
89 | 89 | <tbody> |
90 | 90 | <?php if (count($subitems) < 2) { ?> |
91 | 91 | <tr class="item"> |
92 | - <td><?php echo $line_item->name() . $taxable_html ?></td> |
|
92 | + <td><?php echo $line_item->name().$taxable_html ?></td> |
|
93 | 93 | <td colspan="2"><?php echo $line_item->desc(); ?><p |
94 | 94 | class="ticket-note"> |
95 | 95 | <?php echo sprintf( |
@@ -105,7 +105,7 @@ discard block |
||
105 | 105 | </tr> |
106 | 106 | <?php } else { ?> |
107 | 107 | <tr class="item"> |
108 | - <td class="aln-left"><?php echo $line_item->name() . $taxable_html ?></td> |
|
108 | + <td class="aln-left"><?php echo $line_item->name().$taxable_html ?></td> |
|
109 | 109 | <td colspan="2"><?php echo $line_item->desc(); ?><p |
110 | 110 | class="ticket-note"> |
111 | 111 | <?php echo sprintf( |
@@ -125,7 +125,7 @@ discard block |
||
125 | 125 | <td class="subitem"><?php echo $sub_line_item->name() ?></td> |
126 | 126 | <td colspan="2"><?php echo $sub_line_item->desc() ?></td> |
127 | 127 | <td class="item_c"><?php // echo $is_percent ? '' : $sub_line_item->quantity()?></td> |
128 | - <td class="item_c"><?php echo $is_percent ? $sub_line_item->percent() . "%" |
|
128 | + <td class="item_c"><?php echo $is_percent ? $sub_line_item->percent()."%" |
|
129 | 129 | : $sub_line_item->unit_price_no_code() ?></td> |
130 | 130 | <td class="item_r"><?php echo $sub_line_item->total_no_code() ?></td> |
131 | 131 | </tr> |
@@ -148,7 +148,7 @@ discard block |
||
148 | 148 | <div class="ticket-time-and-place-details"> |
149 | 149 | <div class="ticket-time-details"> |
150 | 150 | <h4 class="sub-section-title no-bottom-margin"><img class="icon" |
151 | - src="<?php echo EE_IMAGES_URL . 'clock-16x16.png'; ?>"> |
|
151 | + src="<?php echo EE_IMAGES_URL.'clock-16x16.png'; ?>"> |
|
152 | 152 | <?php echo _n( |
153 | 153 | "Date/Time:", |
154 | 154 | "Dates/Times:", |
@@ -159,7 +159,7 @@ discard block |
||
159 | 159 | <?php foreach ($ticket->datetimes_ordered() as $datetime) { |
160 | 160 | /* @var $datetime EE_Datetime */ ?> |
161 | 161 | <li><?php |
162 | - echo $datetime->name() ? '<b>' . $datetime->name() . ' </b>' : ''; |
|
162 | + echo $datetime->name() ? '<b>'.$datetime->name().' </b>' : ''; |
|
163 | 163 | echo sprintf( |
164 | 164 | __("%s - %s (%s)", "event_espresso"), |
165 | 165 | $datetime->start_date_and_time(), |
@@ -167,7 +167,7 @@ discard block |
||
167 | 167 | $datetime->get_timezone() |
168 | 168 | ); |
169 | 169 | echo $datetime->description() |
170 | - ? '<p class="ticket-note">' . $datetime->description() . '</p>' |
|
170 | + ? '<p class="ticket-note">'.$datetime->description().'</p>' |
|
171 | 171 | : '' ?></li> |
172 | 172 | <?php } ?> |
173 | 173 | </ul> |
@@ -175,7 +175,7 @@ discard block |
||
175 | 175 | <?php if ($event->venues()) { ?> |
176 | 176 | <div class="ticket-place-details"> |
177 | 177 | <h4 class="sub-section-title no-bottom-margin"><img class="icon" |
178 | - src="<?php echo EE_IMAGES_URL . 'location-pin-16x16.png'; ?>"> |
|
178 | + src="<?php echo EE_IMAGES_URL.'location-pin-16x16.png'; ?>"> |
|
179 | 179 | <?php echo _n( |
180 | 180 | "Venue:", |
181 | 181 | "Venues:", |
@@ -197,7 +197,7 @@ discard block |
||
197 | 197 | </div> |
198 | 198 | <div class="ticket-registrations-area"> |
199 | 199 | <h4 class="sub-section-title"><img class="icon" |
200 | - src="<?php echo EE_IMAGES_URL . 'users-16x16.png'; ?>"> |
|
200 | + src="<?php echo EE_IMAGES_URL.'users-16x16.png'; ?>"> |
|
201 | 201 | <?php echo __( |
202 | 202 | "Registration Details", |
203 | 203 | "event_espresso" |
@@ -208,7 +208,7 @@ discard block |
||
208 | 208 | 'event_espresso' |
209 | 209 | ); ?></a> ]</span></h4> |
210 | 210 | <ul class="ticket-registrations-list"> |
211 | - <?php foreach ($registrations_per_line_item[ $line_item_id ] as $registration) { |
|
211 | + <?php foreach ($registrations_per_line_item[$line_item_id] as $registration) { |
|
212 | 212 | /* @var $registration EE_Registration */ |
213 | 213 | $attendee = $registration->attendee(); |
214 | 214 | $answers = $registration->answers( |
@@ -328,7 +328,7 @@ discard block |
||
328 | 328 | <tbody> |
329 | 329 | <?php |
330 | 330 | $c = false; |
331 | - if (! empty($payments)) { |
|
331 | + if ( ! empty($payments)) { |
|
332 | 332 | foreach ($payments as $payment) { |
333 | 333 | /* @var $payment EE_Payment */ |
334 | 334 | ?> |
@@ -17,7 +17,7 @@ discard block |
||
17 | 17 | <label><?php _e('Amount Owing: ', 'event_espresso'); ?></label> |
18 | 18 | </td> |
19 | 19 | <td class="<?php echo ($transaction->paid() == $transaction->total()) ? 'ee-transaction-paid' |
20 | - : 'ee-transaction-unpaid' ?>"> |
|
20 | + : 'ee-transaction-unpaid' ?>"> |
|
21 | 21 | <?php echo EEH_Template::format_currency($transaction->remaining()); ?> |
22 | 22 | </td> |
23 | 23 | </tr> |
@@ -27,12 +27,12 @@ discard block |
||
27 | 27 | </td> |
28 | 28 | <td> |
29 | 29 | <?php $transaction->e_pretty_status(true); |
30 | - if ($show_try_pay_again_link && ! $transaction->is_completed()) { ?> |
|
30 | + if ($show_try_pay_again_link && ! $transaction->is_completed()) { ?> |
|
31 | 31 | <span class="small-text"><a href='<?php echo $SPCO_payment_options_url ?>'> |
32 | 32 | <?php _e( |
33 | - 'View Payment Options', |
|
34 | - 'event_espresso' |
|
35 | - ); ?></a></span> |
|
33 | + 'View Payment Options', |
|
34 | + 'event_espresso' |
|
35 | + ); ?></a></span> |
|
36 | 36 | <?php } ?> |
37 | 37 | </td> |
38 | 38 | </tr> |
@@ -45,9 +45,9 @@ discard block |
||
45 | 45 | </td> |
46 | 46 | </tr> |
47 | 47 | <?php do_action( |
48 | - 'AHEE__thank_you_page_transaction_details_template__after_transaction_table_row', |
|
49 | - $transaction |
|
50 | - ); ?> |
|
48 | + 'AHEE__thank_you_page_transaction_details_template__after_transaction_table_row', |
|
49 | + $transaction |
|
50 | + ); ?> |
|
51 | 51 | </tbody> |
52 | 52 | </table> |
53 | 53 | |
@@ -55,9 +55,9 @@ discard block |
||
55 | 55 | <p class="small-text jst-rght"> |
56 | 56 | <a href='<?php echo $SPCO_payment_options_url ?>'> |
57 | 57 | <?php _e( |
58 | - "Click here to view Payment Options", |
|
59 | - 'event_espresso' |
|
60 | - ); ?></a> |
|
58 | + "Click here to view Payment Options", |
|
59 | + 'event_espresso' |
|
60 | + ); ?></a> |
|
61 | 61 | </p> |
62 | 62 | <br/> |
63 | 63 |
@@ -13,24 +13,24 @@ |
||
13 | 13 | <div class="ee-attention"> |
14 | 14 | <div class="extra-padding-sides"> |
15 | 15 | <?php echo apply_filters( |
16 | - 'FHEE__thank_you_page_overview_template__order_conf_desc', |
|
17 | - sprintf( |
|
18 | - $order_conf_desc, |
|
19 | - '<h3 class="">', |
|
20 | - '</h3>', |
|
21 | - '<br />' |
|
22 | - ) |
|
23 | - ); |
|
24 | - if (! empty($TXN_receipt_url)) : ?> |
|
16 | + 'FHEE__thank_you_page_overview_template__order_conf_desc', |
|
17 | + sprintf( |
|
18 | + $order_conf_desc, |
|
19 | + '<h3 class="">', |
|
20 | + '</h3>', |
|
21 | + '<br />' |
|
22 | + ) |
|
23 | + ); |
|
24 | + if (! empty($TXN_receipt_url)) : ?> |
|
25 | 25 | <br/> |
26 | 26 | <div class="jst-rght"> |
27 | 27 | <a class="ee-button ee-roundish indented-text big-text" |
28 | 28 | href="<?php echo $TXN_receipt_url; ?>"><span |
29 | 29 | class="ee-icon ee-icon-PDF-file-type"></span> |
30 | 30 | <?php echo apply_filters( |
31 | - 'FHEE__thank_you_page_overview_template__order_conf_button_text', |
|
32 | - __('View Full Order Confirmation Receipt', 'event_espresso') |
|
33 | - ); ?></a> |
|
31 | + 'FHEE__thank_you_page_overview_template__order_conf_button_text', |
|
32 | + __('View Full Order Confirmation Receipt', 'event_espresso') |
|
33 | + ); ?></a> |
|
34 | 34 | </div> |
35 | 35 | <?php endif; ?> |
36 | 36 | </div> |
@@ -9,7 +9,7 @@ discard block |
||
9 | 9 | |
10 | 10 | <div id="espresso-thank-you-page-overview-dv" class="width-100"> |
11 | 11 | |
12 | - <?php if (! $revisit) : ?> |
|
12 | + <?php if ( ! $revisit) : ?> |
|
13 | 13 | <div class="ee-attention"> |
14 | 14 | <div class="extra-padding-sides"> |
15 | 15 | <?php echo apply_filters( |
@@ -21,7 +21,7 @@ discard block |
||
21 | 21 | '<br />' |
22 | 22 | ) |
23 | 23 | ); |
24 | - if (! empty($TXN_receipt_url)) : ?> |
|
24 | + if ( ! empty($TXN_receipt_url)) : ?> |
|
25 | 25 | <br/> |
26 | 26 | <div class="jst-rght"> |
27 | 27 | <a class="ee-button ee-roundish indented-text big-text" |
@@ -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> |
@@ -2,36 +2,36 @@ |
||
2 | 2 | /** @type array $registrations_for_free_events */ |
3 | 3 | |
4 | 4 | if (is_array($registrations_for_free_events) && ! empty($registrations_for_free_events)) { |
5 | - echo apply_filters( |
|
6 | - 'FHEE__registration_page_payment_options__no_payment_required_hdr', |
|
7 | - sprintf( |
|
8 | - __('%1$sNo Payment Required%2$s', 'event_espresso'), |
|
9 | - '<h6>', |
|
10 | - '</h6>' |
|
11 | - ) |
|
12 | - ); |
|
13 | - foreach ($registrations_for_free_events as $registration_for_free_event) { |
|
14 | - if ($registration_for_free_event instanceof EE_Registration |
|
15 | - && $registration_for_free_event->ticket()->is_free() |
|
16 | - ) { |
|
17 | - if ($registration_for_free_event->event() instanceof EE_Event) { |
|
18 | - ?> |
|
5 | + echo apply_filters( |
|
6 | + 'FHEE__registration_page_payment_options__no_payment_required_hdr', |
|
7 | + sprintf( |
|
8 | + __('%1$sNo Payment Required%2$s', 'event_espresso'), |
|
9 | + '<h6>', |
|
10 | + '</h6>' |
|
11 | + ) |
|
12 | + ); |
|
13 | + foreach ($registrations_for_free_events as $registration_for_free_event) { |
|
14 | + if ($registration_for_free_event instanceof EE_Registration |
|
15 | + && $registration_for_free_event->ticket()->is_free() |
|
16 | + ) { |
|
17 | + if ($registration_for_free_event->event() instanceof EE_Event) { |
|
18 | + ?> |
|
19 | 19 | <p> |
20 | 20 | <?php echo apply_filters( |
21 | - 'FHEE__registration_page_payment_options__no_payment_required_pg', |
|
22 | - sprintf( |
|
23 | - __( |
|
24 | - '"%1$s" for "%2$s" is free, so no payment is required and no billing will occur.', |
|
25 | - 'event_espresso' |
|
26 | - ), |
|
27 | - $registration_for_free_event->ticket()->name(), |
|
28 | - $registration_for_free_event->event()->name() |
|
29 | - ) |
|
30 | - ); ?> |
|
21 | + 'FHEE__registration_page_payment_options__no_payment_required_pg', |
|
22 | + sprintf( |
|
23 | + __( |
|
24 | + '"%1$s" for "%2$s" is free, so no payment is required and no billing will occur.', |
|
25 | + 'event_espresso' |
|
26 | + ), |
|
27 | + $registration_for_free_event->ticket()->name(), |
|
28 | + $registration_for_free_event->event()->name() |
|
29 | + ) |
|
30 | + ); ?> |
|
31 | 31 | </p> |
32 | 32 | <?php |
33 | - } |
|
34 | - } |
|
35 | - } |
|
33 | + } |
|
34 | + } |
|
35 | + } |
|
36 | 36 | } |
37 | 37 | ?> |