@@ -15,9 +15,9 @@ discard block |
||
15 | 15 | <a id="display-additional-transaction-session-info" class="display-the-hidden smaller-text" |
16 | 16 | rel="additional-transaction-session-info"> |
17 | 17 | <span class="dashicons dashicons-plus-alt"></span><?php esc_html_e( |
18 | - 'view additional transaction session details', |
|
19 | - 'event_espresso' |
|
20 | - ); ?> |
|
18 | + 'view additional transaction session details', |
|
19 | + 'event_espresso' |
|
20 | + ); ?> |
|
21 | 21 | </a> |
22 | 22 | |
23 | 23 | <div id="additional-transaction-session-info-dv" class="hidden"> |
@@ -25,9 +25,9 @@ discard block |
||
25 | 25 | <a id="hide-additional-transaction-session-info" class="hide-the-displayed hidden smaller-text" |
26 | 26 | rel="additional-transaction-session-info"> |
27 | 27 | <span class="dashicons dashicons-dismiss"></span><?php esc_html_e( |
28 | - 'hide additional transaction session details', |
|
29 | - 'event_espresso' |
|
30 | - ); ?> |
|
28 | + 'hide additional transaction session details', |
|
29 | + 'event_espresso' |
|
30 | + ); ?> |
|
31 | 31 | </a> |
32 | 32 | <br class="clear"/> |
33 | 33 | |
@@ -52,16 +52,16 @@ discard block |
||
52 | 52 | |
53 | 53 | |
54 | 54 | <?php if ($attendee instanceof EE_Attendee && ($grand_raw_total > 0 || $TXN_status !== EEM_Transaction::complete_status_code || ! empty($payments))) : |
55 | - $no_payment_text = $can_edit_payments |
|
56 | - ? esc_html__( |
|
57 | - 'No payments have been applied to this transaction yet. Click "Apply Payment" below to make a payment.', |
|
58 | - 'event_espresso' |
|
59 | - ) |
|
60 | - : esc_html__( |
|
61 | - 'No payments have been applied to this transaction yet.', |
|
62 | - 'event_espresso' |
|
63 | - ); |
|
64 | - ?> |
|
55 | + $no_payment_text = $can_edit_payments |
|
56 | + ? esc_html__( |
|
57 | + 'No payments have been applied to this transaction yet. Click "Apply Payment" below to make a payment.', |
|
58 | + 'event_espresso' |
|
59 | + ) |
|
60 | + : esc_html__( |
|
61 | + 'No payments have been applied to this transaction yet.', |
|
62 | + 'event_espresso' |
|
63 | + ); |
|
64 | + ?> |
|
65 | 65 | |
66 | 66 | <h3 class="admin-primary-mbox-h4 hdr-has-icon"> |
67 | 67 | <span class="ee-icon ee-icon-cash"></span><?php esc_html_e('Payment Details', 'event_espresso'); ?> |
@@ -88,10 +88,10 @@ discard block |
||
88 | 88 | <?php if ($payments) : ?> |
89 | 89 | <?php $payment_total = 0; ?> |
90 | 90 | <?php foreach ($payments as $PAY_ID => $payment) : |
91 | - $existing_reg_payment_json = isset($existing_reg_payments[ $PAY_ID ]) |
|
92 | - ? wp_json_encode($existing_reg_payments[ $PAY_ID ]) |
|
93 | - : '{}'; |
|
94 | - ?> |
|
91 | + $existing_reg_payment_json = isset($existing_reg_payments[ $PAY_ID ]) |
|
92 | + ? wp_json_encode($existing_reg_payments[ $PAY_ID ]) |
|
93 | + : '{}'; |
|
94 | + ?> |
|
95 | 95 | <tr id="txn-admin-payment-tr-<?php echo $PAY_ID; ?>"> |
96 | 96 | <td> |
97 | 97 | <span id="payment-status-<?php echo $PAY_ID; ?>" |
@@ -136,16 +136,16 @@ discard block |
||
136 | 136 | </div> |
137 | 137 | <div id="payment-gateway-<?php echo $PAY_ID; ?>"> |
138 | 138 | <?php echo $payment->payment_method() |
139 | - ? $payment->payment_method()->admin_name() |
|
140 | - : esc_html__( |
|
141 | - "Unknown", |
|
142 | - 'event_espresso' |
|
143 | - ); ?> |
|
139 | + ? $payment->payment_method()->admin_name() |
|
140 | + : esc_html__( |
|
141 | + "Unknown", |
|
142 | + 'event_espresso' |
|
143 | + ); ?> |
|
144 | 144 | </div> |
145 | 145 | <div id="payment-gateway-id-<?php echo $PAY_ID; ?>" |
146 | 146 | class="hidden"><?php echo $payment->payment_method() |
147 | - ? $payment->payment_method()->ID() |
|
148 | - : 0; ?></div> |
|
147 | + ? $payment->payment_method()->ID() |
|
148 | + : 0; ?></div> |
|
149 | 149 | </td> |
150 | 150 | <td class=" jst-left"> |
151 | 151 | <div id="payment-response-<?php echo $PAY_ID; ?>"><?php echo $payment->gateway_response(); ?></div> |
@@ -162,29 +162,29 @@ discard block |
||
162 | 162 | </td> |
163 | 163 | <td class=" jst-rght"> |
164 | 164 | <?php $payment_class = $payment->amount() > 0 |
165 | - ? 'txn-admin-payment-status-' . $payment->STS_ID() |
|
166 | - : 'txn-admin-payment-status-PDC'; ?> |
|
165 | + ? 'txn-admin-payment-status-' . $payment->STS_ID() |
|
166 | + : 'txn-admin-payment-status-PDC'; ?> |
|
167 | 167 | <span class="<?php echo $payment_class; ?>"> |
168 | 168 | <div id="payment-amount-<?php echo $PAY_ID; ?>" style="display:inline;"> |
169 | 169 | <?php echo EEH_Template::format_currency( |
170 | - $payment->amount(), |
|
171 | - false, |
|
172 | - false |
|
173 | - ); ?></div> |
|
170 | + $payment->amount(), |
|
171 | + false, |
|
172 | + false |
|
173 | + ); ?></div> |
|
174 | 174 | </span> |
175 | 175 | </td> |
176 | 176 | </tr> |
177 | 177 | <?php |
178 | - $payment_total += $payment->STS_ID() == 'PAP' ? $payment->amount() : 0; |
|
179 | - ?> |
|
178 | + $payment_total += $payment->STS_ID() == 'PAP' ? $payment->amount() : 0; |
|
179 | + ?> |
|
180 | 180 | <?php endforeach; // $payment?> |
181 | 181 | <?php |
182 | - $pay_totals_class = $payment_total > $grand_raw_total ? ' important-notice' : ''; |
|
183 | - $overpaid = $payment_total > $grand_raw_total |
|
184 | - ? '<span id="overpaid">' . esc_html__('This transaction has been overpaid ! ', 'event_espresso') |
|
185 | - . '</span>' |
|
186 | - : ''; |
|
187 | - ?> |
|
182 | + $pay_totals_class = $payment_total > $grand_raw_total ? ' important-notice' : ''; |
|
183 | + $overpaid = $payment_total > $grand_raw_total |
|
184 | + ? '<span id="overpaid">' . esc_html__('This transaction has been overpaid ! ', 'event_espresso') |
|
185 | + . '</span>' |
|
186 | + : ''; |
|
187 | + ?> |
|
188 | 188 | <tr id="txn-admin-no-payments-tr" class="admin-primary-mbox-total-tr hidden"> |
189 | 189 | <td class=" jst-rght" colspan="10"> |
190 | 190 | <span class="important-notice"><?php echo $no_payment_text; ?></span> |
@@ -195,20 +195,20 @@ discard block |
||
195 | 195 | <th class=" jst-rght" colspan="9"><span |
196 | 196 | id="payments-total-spn"> |
197 | 197 | <?php echo $overpaid |
198 | - . sprintf( |
|
199 | - esc_html__( |
|
200 | - 'Payments Total %s', |
|
201 | - 'event_espresso' |
|
202 | - ), |
|
203 | - '(' . EE_Registry::instance()->CFG->currency->code . ')' |
|
204 | - ); ?></span></th> |
|
198 | + . sprintf( |
|
199 | + esc_html__( |
|
200 | + 'Payments Total %s', |
|
201 | + 'event_espresso' |
|
202 | + ), |
|
203 | + '(' . EE_Registry::instance()->CFG->currency->code . ')' |
|
204 | + ); ?></span></th> |
|
205 | 205 | <th class=" jst-rght"><span |
206 | 206 | id="txn-admin-payment-total"> |
207 | 207 | <?php echo EEH_Template::format_currency( |
208 | - $payment_total, |
|
209 | - false, |
|
210 | - false |
|
211 | - ); ?></span></th> |
|
208 | + $payment_total, |
|
209 | + false, |
|
210 | + false |
|
211 | + ); ?></span></th> |
|
212 | 212 | </tr> |
213 | 213 | <?php else : ?> |
214 | 214 | <tr id="txn-admin-no-payments-tr" class="admin-primary-mbox-total-tr"> |
@@ -220,13 +220,13 @@ discard block |
||
220 | 220 | <th class=" jst-rght" colspan="9"><span |
221 | 221 | id="payments-total-spn"> |
222 | 222 | <?php echo esc_html__( |
223 | - 'Payments Total', |
|
224 | - 'event_espresso' |
|
225 | - ); ?></span></th> |
|
223 | + 'Payments Total', |
|
224 | + 'event_espresso' |
|
225 | + ); ?></span></th> |
|
226 | 226 | <th class=" jst-rght"><span id="txn-admin-payment-total"></span></th> |
227 | 227 | </tr> |
228 | 228 | <?php endif; // $payments |
229 | - ?> |
|
229 | + ?> |
|
230 | 230 | |
231 | 231 | <tr id="txn-admin-payment-empty-row-tr" class="hidden"> |
232 | 232 | <td> |
@@ -289,7 +289,7 @@ discard block |
||
289 | 289 | |
290 | 290 | <ul id="txn-admin-payment-options-ul"> |
291 | 291 | <?php if ($can_edit_payments) : |
292 | - ?> |
|
292 | + ?> |
|
293 | 293 | <li> |
294 | 294 | <a id="display-txn-admin-apply-payment" class="button-primary no-icon no-hide" |
295 | 295 | rel="txn-admin-apply-payment"> <!--display-the-hidden --> |
@@ -306,20 +306,20 @@ discard block |
||
306 | 306 | <li> |
307 | 307 | <p> |
308 | 308 | <?php esc_html__( |
309 | - 'You do not have access to apply payments or refunds.', |
|
310 | - 'event_espresso' |
|
311 | - ); ?></p> |
|
309 | + 'You do not have access to apply payments or refunds.', |
|
310 | + 'event_espresso' |
|
311 | + ); ?></p> |
|
312 | 312 | </li> |
313 | 313 | <?php endif; ?> |
314 | 314 | <?php |
315 | - /** |
|
316 | - * Allows extend the fields at actions area. |
|
317 | - */ |
|
318 | - do_action( |
|
319 | - 'AHEE__txn_admin_details_main_meta_box_txn_details__after_actions_buttons', |
|
320 | - $can_edit_payments |
|
321 | - ); |
|
322 | - ?> |
|
315 | + /** |
|
316 | + * Allows extend the fields at actions area. |
|
317 | + */ |
|
318 | + do_action( |
|
319 | + 'AHEE__txn_admin_details_main_meta_box_txn_details__after_actions_buttons', |
|
320 | + $can_edit_payments |
|
321 | + ); |
|
322 | + ?> |
|
323 | 323 | </ul> |
324 | 324 | <br class="clear"/> |
325 | 325 | |
@@ -335,23 +335,23 @@ discard block |
||
335 | 335 | style="display:none;"> |
336 | 336 | <div class="ee-icon ee-icon-cash-edit float-left"></div> |
337 | 337 | <?php |
338 | - echo sprintf( |
|
339 | - __('Edit Payment #%s for Transaction #%s', 'event_espresso'), |
|
340 | - '<span></span>', |
|
341 | - $txn_nmbr['value'] |
|
342 | - ); |
|
343 | - ?> |
|
338 | + echo sprintf( |
|
339 | + __('Edit Payment #%s for Transaction #%s', 'event_espresso'), |
|
340 | + '<span></span>', |
|
341 | + $txn_nmbr['value'] |
|
342 | + ); |
|
343 | + ?> |
|
344 | 344 | </h2> |
345 | 345 | |
346 | 346 | <h2 id="admin-modal-dialog-edit-refund-h2" class="admin-modal-dialog-h2 hdr-has-icon" style="display:none;"> |
347 | 347 | <div class="ee-icon ee-icon-cash-edit float-left"></div> |
348 | 348 | <?php |
349 | - echo sprintf( |
|
350 | - __('Edit Refund #%s for Transaction #%s', 'event_espresso'), |
|
351 | - '<span></span>', |
|
352 | - $txn_nmbr['value'] |
|
353 | - ); |
|
354 | - ?> |
|
349 | + echo sprintf( |
|
350 | + __('Edit Refund #%s for Transaction #%s', 'event_espresso'), |
|
351 | + '<span></span>', |
|
352 | + $txn_nmbr['value'] |
|
353 | + ); |
|
354 | + ?> |
|
355 | 355 | </h2> |
356 | 356 | |
357 | 357 | <h2 id="admin-modal-dialog-apply-refund-h2" class="admin-modal-dialog-h2 hdr-has-icon" |
@@ -385,55 +385,55 @@ discard block |
||
385 | 385 | <div class="txn-admin-apply-payment-date-dv admin-modal-dialog-row"> |
386 | 386 | <div class="validation-notice-dv"> |
387 | 387 | <?php esc_html_e( |
388 | - 'The following is a required field', |
|
389 | - 'event_espresso' |
|
390 | - ); ?></div> |
|
388 | + 'The following is a required field', |
|
389 | + 'event_espresso' |
|
390 | + ); ?></div> |
|
391 | 391 | <label for="txn-admin-payment-date-inp" class=""> |
392 | 392 | <?php esc_html_e( |
393 | - 'Payment Date', |
|
394 | - 'event_espresso' |
|
395 | - ); ?></label> |
|
393 | + 'Payment Date', |
|
394 | + 'event_espresso' |
|
395 | + ); ?></label> |
|
396 | 396 | <input name="txn_admin_payment[date]" id="txn-admin-payment-date-inp" |
397 | 397 | class="txn-admin-apply-payment-inp required" type="text" |
398 | 398 | value="<?php echo date('Y-m-d g:i a', current_time('timestamp')); ?>"/> |
399 | 399 | <p class="description"> |
400 | 400 | <?php esc_html_e( |
401 | - 'The date the payment was actually made on', |
|
402 | - 'event_espresso' |
|
403 | - ); ?></p> |
|
401 | + 'The date the payment was actually made on', |
|
402 | + 'event_espresso' |
|
403 | + ); ?></p> |
|
404 | 404 | </div> |
405 | 405 | |
406 | 406 | <div class="txn-admin-apply-payment-amount-dv admin-modal-dialog-row"> |
407 | 407 | <div class="validation-notice-dv"> |
408 | 408 | <?php esc_html_e( |
409 | - 'The following is a required field', |
|
410 | - 'event_espresso' |
|
411 | - ); ?></div> |
|
409 | + 'The following is a required field', |
|
410 | + 'event_espresso' |
|
411 | + ); ?></div> |
|
412 | 412 | <label for="txn-admin-payment-amount-inp" class=""> |
413 | 413 | <?php esc_html_e( |
414 | - 'Amount', |
|
415 | - 'event_espresso' |
|
416 | - ); ?></label> |
|
414 | + 'Amount', |
|
415 | + 'event_espresso' |
|
416 | + ); ?></label> |
|
417 | 417 | <input name="txn_admin_payment[amount]" id="txn-admin-payment-amount-inp" |
418 | 418 | class="txn-admin-apply-payment-inp required" type="text" value=""/> |
419 | 419 | <p class="description"> |
420 | 420 | <?php esc_html_e( |
421 | - 'The amount of the payment', |
|
422 | - 'event_espresso' |
|
423 | - ); ?></p> |
|
421 | + 'The amount of the payment', |
|
422 | + 'event_espresso' |
|
423 | + ); ?></p> |
|
424 | 424 | </div> |
425 | 425 | |
426 | 426 | <div class="txn-admin-apply-payment-method-dv admin-modal-dialog-row"> |
427 | 427 | <div class="validation-notice-dv"> |
428 | 428 | <?php esc_html_e( |
429 | - 'The following is a required field', |
|
430 | - 'event_espresso' |
|
431 | - ); ?></div> |
|
429 | + 'The following is a required field', |
|
430 | + 'event_espresso' |
|
431 | + ); ?></div> |
|
432 | 432 | <label for="txn-admin-payment-method-inp" class=""> |
433 | 433 | <?php esc_html_e( |
434 | - 'Method of Payment', |
|
435 | - 'event_espresso' |
|
436 | - ); ?></label> |
|
434 | + 'Method of Payment', |
|
435 | + 'event_espresso' |
|
436 | + ); ?></label> |
|
437 | 437 | <select name="txn_admin_payment[PMD_ID]" id="txn-admin-payment-method-slct" |
438 | 438 | class="txn-admin-apply-payment-slct required" type="text"> |
439 | 439 | <?php foreach ($payment_methods as $method) : ?> |
@@ -441,39 +441,39 @@ discard block |
||
441 | 441 | <option id="payment-method-opt-<?php echo $method->slug(); ?>" |
442 | 442 | value="<?php echo $method->ID(); ?>"<?php echo $selected; ?>> |
443 | 443 | <?php echo sanitize_key( |
444 | - $method->admin_desc() |
|
445 | - ) |
|
446 | - ? substr( |
|
447 | - $method->admin_desc(), |
|
448 | - 0, |
|
449 | - 128 |
|
450 | - ) |
|
451 | - : $method->admin_name(); ?> |
|
444 | + $method->admin_desc() |
|
445 | + ) |
|
446 | + ? substr( |
|
447 | + $method->admin_desc(), |
|
448 | + 0, |
|
449 | + 128 |
|
450 | + ) |
|
451 | + : $method->admin_name(); ?> |
|
452 | 452 | </option> |
453 | 453 | <?php endforeach; ?> |
454 | 454 | </select> |
455 | 455 | <p class="description"> |
456 | 456 | <?php esc_html_e( |
457 | - 'Whether the payment was made via PayPal, Credit Card, Cheque, or Cash', |
|
458 | - 'event_espresso' |
|
459 | - ); ?></p> |
|
457 | + 'Whether the payment was made via PayPal, Credit Card, Cheque, or Cash', |
|
458 | + 'event_espresso' |
|
459 | + ); ?></p> |
|
460 | 460 | </div> |
461 | 461 | |
462 | 462 | <div class="mop-PP mop-CC mop-CHQ mop"> |
463 | 463 | <div class="txn-admin-apply-payment-gw-txn-id-dv admin-modal-dialog-row"> |
464 | 464 | <label for="txn-admin-payment-txn-id-inp" class=""> |
465 | 465 | <?php esc_html_e( |
466 | - 'TXN ID / CHQ #', |
|
467 | - 'event_espresso' |
|
468 | - ); ?></label> |
|
466 | + 'TXN ID / CHQ #', |
|
467 | + 'event_espresso' |
|
468 | + ); ?></label> |
|
469 | 469 | <input name="txn_admin_payment[txn_id_chq_nmbr]" |
470 | 470 | id="txn-admin-payment-txn-id-chq-nmbr-inp" class="txn-admin-apply-payment-inp" |
471 | 471 | type="text" maxlength="100"/> |
472 | 472 | <p class="description"> |
473 | 473 | <?php esc_html_e( |
474 | - 'The Transaction ID sent back from the payment gateway, or the Cheque #', |
|
475 | - 'event_espresso' |
|
476 | - ); ?></p> |
|
474 | + 'The Transaction ID sent back from the payment gateway, or the Cheque #', |
|
475 | + 'event_espresso' |
|
476 | + ); ?></p> |
|
477 | 477 | </div> |
478 | 478 | </div> |
479 | 479 | |
@@ -486,9 +486,9 @@ discard block |
||
486 | 486 | type="text"/> |
487 | 487 | <p class="description"> |
488 | 488 | <?php esc_html_e( |
489 | - 'The gateway response string (optional)', |
|
490 | - 'event_espresso' |
|
491 | - ); ?></p> |
|
489 | + 'The gateway response string (optional)', |
|
490 | + 'event_espresso' |
|
491 | + ); ?></p> |
|
492 | 492 | </div> |
493 | 493 | </div> |
494 | 494 | |
@@ -496,9 +496,9 @@ discard block |
||
496 | 496 | <div class="txn-admin-apply-payment-status-dv admin-modal-dialog-row"> |
497 | 497 | <label for="txn-admin-payment-status-inp" class=""> |
498 | 498 | <?php esc_html_e( |
499 | - 'Payment Status', |
|
500 | - 'event_espresso' |
|
501 | - ); ?></label> |
|
499 | + 'Payment Status', |
|
500 | + 'event_espresso' |
|
501 | + ); ?></label> |
|
502 | 502 | <select name="txn_admin_payment[status]" id="txn-admin-payment-status-slct" |
503 | 503 | class="txn-admin-apply-payment-slct" type="text"> |
504 | 504 | <?php foreach ($payment_status as $STS_ID => $STS_code) : ?> |
@@ -511,52 +511,52 @@ discard block |
||
511 | 511 | </select> |
512 | 512 | <p class="description"> |
513 | 513 | <?php esc_html_e( |
514 | - 'Whether the payment was approved, cancelled, declined or failed after submission to the gateway', |
|
515 | - 'event_espresso' |
|
516 | - ); ?></p> |
|
514 | + 'Whether the payment was approved, cancelled, declined or failed after submission to the gateway', |
|
515 | + 'event_espresso' |
|
516 | + ); ?></p> |
|
517 | 517 | </div> |
518 | 518 | </div> |
519 | 519 | |
520 | 520 | <div class="txn-admin-apply-payment-po-nmbr-dv admin-modal-dialog-row"> |
521 | 521 | <label for="txn-admin-payment-po-nmbr-inp" class=""> |
522 | 522 | <?php esc_html_e( |
523 | - 'P.O. / S.O. #', |
|
524 | - 'event_espresso' |
|
525 | - ); ?></label> |
|
523 | + 'P.O. / S.O. #', |
|
524 | + 'event_espresso' |
|
525 | + ); ?></label> |
|
526 | 526 | <input name="txn_admin_payment[po_number]" id="txn-admin-payment-po-nmbr-inp" |
527 | 527 | class="txn-admin-apply-payment-inp" type="text" maxlength="100"/> |
528 | 528 | <p class="description"> |
529 | 529 | <?php esc_html_e( |
530 | - 'The Purchase or Sales Order Number if any (optional)', |
|
531 | - 'event_espresso' |
|
532 | - ); ?></p> |
|
530 | + 'The Purchase or Sales Order Number if any (optional)', |
|
531 | + 'event_espresso' |
|
532 | + ); ?></p> |
|
533 | 533 | </div> |
534 | 534 | |
535 | 535 | <div class="txn-admin-apply-payment-accounting-dv admin-modal-dialog-row"> |
536 | 536 | <label for="txn-admin-payment-accounting-inp" |
537 | 537 | class="last"> |
538 | 538 | <?php esc_html_e( |
539 | - 'Notes / Extra Accounting', |
|
540 | - 'event_espresso' |
|
541 | - ); ?></label> |
|
539 | + 'Notes / Extra Accounting', |
|
540 | + 'event_espresso' |
|
541 | + ); ?></label> |
|
542 | 542 | <input name="txn_admin_payment[accounting]" id="txn-admin-payment-accounting-inp" |
543 | 543 | class="txn-admin-apply-payment-inp" type="text" value="<?php echo $REG_code; ?>" |
544 | 544 | maxlength="100"/> <input type="hidden" id="txn-admin-reg-code-inp" |
545 | 545 | value="<?php echo $REG_code; ?>"/> |
546 | 546 | <p class="description"> |
547 | 547 | <?php esc_html_e( |
548 | - 'An extra field you may use for accounting purposes or simple notes. Defaults to the primary registrant\'s registration code.', |
|
549 | - 'event_espresso' |
|
550 | - ); ?></p> |
|
548 | + 'An extra field you may use for accounting purposes or simple notes. Defaults to the primary registrant\'s registration code.', |
|
549 | + 'event_espresso' |
|
550 | + ); ?></p> |
|
551 | 551 | </div> |
552 | 552 | |
553 | 553 | <div class="txn-admin-apply-payment-registrations-dv admin-modal-dialog-row"> |
554 | 554 | <label for="txn-admin-payment-registrations-inp" |
555 | 555 | class="last"> |
556 | 556 | <?php esc_html_e( |
557 | - 'Registrations to Apply Payment to:', |
|
558 | - 'event_espresso' |
|
559 | - ); ?></label> |
|
557 | + 'Registrations to Apply Payment to:', |
|
558 | + 'event_espresso' |
|
559 | + ); ?></label> |
|
560 | 560 | <label class="txn-admin-apply-payment-to-registrations-lbl"> |
561 | 561 | <input type="radio" value="1" id="txn-admin-apply-payment-to-all-registrations-inp" |
562 | 562 | name="txn_admin_payment[apply_to_all_registrations]" checked="checked"/> |
@@ -574,15 +574,15 @@ discard block |
||
574 | 574 | <label for="txn-admin-payment-reg-status-inp" |
575 | 575 | class="last"> |
576 | 576 | <?php esc_html_e( |
577 | - 'Change Registration Status?', |
|
578 | - 'event_espresso' |
|
579 | - ); ?></label> |
|
577 | + 'Change Registration Status?', |
|
578 | + 'event_espresso' |
|
579 | + ); ?></label> |
|
580 | 580 | <?php echo $status_change_select; ?> |
581 | 581 | <p class="description"> |
582 | 582 | <?php esc_html_e( |
583 | - 'If you wish to change the status for the registrations selected above, then select which status from this dropdown.', |
|
584 | - 'event_espresso' |
|
585 | - ); ?></p> |
|
583 | + 'If you wish to change the status for the registrations selected above, then select which status from this dropdown.', |
|
584 | + 'event_espresso' |
|
585 | + ); ?></p> |
|
586 | 586 | <br/> |
587 | 587 | </div> |
588 | 588 | |
@@ -603,14 +603,14 @@ discard block |
||
603 | 603 | <br class="clear-float"/> |
604 | 604 | <p class="description"> |
605 | 605 | <?php printf( |
606 | - esc_html__( |
|
607 | - 'By default %1$sa payment message is sent to the primary registrant%2$s after submitting this form.%3$sHowever, if you check the "Registration Messages" box, the system will also send any related messages matching the status of the registrations to %1$seach registration for this transaction%2$s.', |
|
608 | - 'event_espresso' |
|
609 | - ), |
|
610 | - '<strong>', |
|
611 | - '</strong>', |
|
612 | - '<br />' |
|
613 | - ); ?></p> |
|
606 | + esc_html__( |
|
607 | + 'By default %1$sa payment message is sent to the primary registrant%2$s after submitting this form.%3$sHowever, if you check the "Registration Messages" box, the system will also send any related messages matching the status of the registrations to %1$seach registration for this transaction%2$s.', |
|
608 | + 'event_espresso' |
|
609 | + ), |
|
610 | + '<strong>', |
|
611 | + '</strong>', |
|
612 | + '<br />' |
|
613 | + ); ?></p> |
|
614 | 614 | <label></label> |
615 | 615 | </div> |
616 | 616 | <div class="clear"></div> |
@@ -651,9 +651,9 @@ discard block |
||
651 | 651 | <li> |
652 | 652 | <span id="ee-ajax-processing-text" style="display:none;"> |
653 | 653 | <?php esc_html_e( |
654 | - 'Processing...', |
|
655 | - 'event_espresso' |
|
656 | - ); ?></span> |
|
654 | + 'Processing...', |
|
655 | + 'event_espresso' |
|
656 | + ); ?></span> |
|
657 | 657 | </li> |
658 | 658 | </ul> |
659 | 659 | |
@@ -668,9 +668,9 @@ discard block |
||
668 | 668 | style="display:none;"> |
669 | 669 | <span class="ee-icon ee-icon-cash-add"></span> |
670 | 670 | <?php echo esc_html__( |
671 | - 'Delete Payment/Refund for Transaction #', |
|
672 | - 'event_espresso' |
|
673 | - ) . $txn_nmbr['value']; ?> |
|
671 | + 'Delete Payment/Refund for Transaction #', |
|
672 | + 'event_espresso' |
|
673 | + ) . $txn_nmbr['value']; ?> |
|
674 | 674 | </h2> |
675 | 675 | |
676 | 676 | <form name="txn-admin-delete-payment-frm" id="txn-admin-delete-payment-frm" |
@@ -692,19 +692,19 @@ discard block |
||
692 | 692 | <label for="delete-txn-admin-payment-reg-status-inp" |
693 | 693 | class="last"> |
694 | 694 | <?php esc_html_e( |
695 | - 'Change Registration Status?', |
|
696 | - 'event_espresso' |
|
697 | - ); ?></label> |
|
695 | + 'Change Registration Status?', |
|
696 | + 'event_espresso' |
|
697 | + ); ?></label> |
|
698 | 698 | <?php echo $delete_status_change_select; ?> |
699 | 699 | <p class="description"> |
700 | 700 | <?php printf( |
701 | - esc_html__( |
|
702 | - 'If you wish to change the status of all the registrations associated with this transaction after deleting this payment/refund, then select which status from this dropdown. %sNote: ALL registrations associated with this transaction will be updated to this new status.%s', |
|
703 | - 'event_espresso' |
|
704 | - ), |
|
705 | - '<strong>', |
|
706 | - '</strong>' |
|
707 | - ); ?></p> |
|
701 | + esc_html__( |
|
702 | + 'If you wish to change the status of all the registrations associated with this transaction after deleting this payment/refund, then select which status from this dropdown. %sNote: ALL registrations associated with this transaction will be updated to this new status.%s', |
|
703 | + 'event_espresso' |
|
704 | + ), |
|
705 | + '<strong>', |
|
706 | + '</strong>' |
|
707 | + ); ?></p> |
|
708 | 708 | </div> |
709 | 709 | |
710 | 710 | <div class="ee-attention txn-admin-apply-payment-accounting-dv admin-modal-dialog-row"> |
@@ -713,9 +713,9 @@ discard block |
||
713 | 713 | <input type="checkbox" value="1" name="delete_txn_reg_status_change[send_notifications]"> |
714 | 714 | <p class="description"> |
715 | 715 | <?php esc_html_e( |
716 | - 'If you check this box, the system will send any related registration messages matching the status of the registrations to each registration for this transaction. No Payment notifications are sent when deleting a payment.', |
|
717 | - 'event_espresso' |
|
718 | - ); ?></p> |
|
716 | + 'If you check this box, the system will send any related registration messages matching the status of the registrations to each registration for this transaction. No Payment notifications are sent when deleting a payment.', |
|
717 | + 'event_espresso' |
|
718 | + ); ?></p> |
|
719 | 719 | </div> |
720 | 720 | <div class="clear"></div> |
721 | 721 | |
@@ -747,16 +747,16 @@ discard block |
||
747 | 747 | <?php endif; // $grand_raw_total > 0?> |
748 | 748 | |
749 | 749 | <?php |
750 | - if (WP_DEBUG) { |
|
751 | - $delivered_messages = get_option('EED_Messages__payment', array()); |
|
752 | - if (isset($delivered_messages[ $TXN_ID ])) { |
|
753 | - ?> |
|
750 | + if (WP_DEBUG) { |
|
751 | + $delivered_messages = get_option('EED_Messages__payment', array()); |
|
752 | + if (isset($delivered_messages[ $TXN_ID ])) { |
|
753 | + ?> |
|
754 | 754 | <h4 class="admin-primary-mbox-h4 hdr-has-icon"><span |
755 | 755 | class="dashicons dashicons-email-alt"></span> |
756 | 756 | <?php esc_html_e( |
757 | - 'Messages Sent to Primary Registrant', |
|
758 | - 'event_espresso' |
|
759 | - ); ?></h4> |
|
757 | + 'Messages Sent to Primary Registrant', |
|
758 | + 'event_espresso' |
|
759 | + ); ?></h4> |
|
760 | 760 | |
761 | 761 | <div class="admin-primary-mbox-tbl-wrap"> |
762 | 762 | <table class="admin-primary-mbox-tbl"> |
@@ -770,26 +770,26 @@ discard block |
||
770 | 770 | </thead> |
771 | 771 | <tbody> |
772 | 772 | <?php foreach ($delivered_messages[ $TXN_ID ] as $timestamp => $delivered_message) : |
773 | - ?> |
|
773 | + ?> |
|
774 | 774 | <tr> |
775 | 775 | <td class="jst-left"> |
776 | 776 | <?php echo date( |
777 | - get_option('date_format') . ' ' . get_option('time_format'), |
|
778 | - ($timestamp + (get_option('gmt_offset') * HOUR_IN_SECONDS)) |
|
779 | - ); ?></td> |
|
777 | + get_option('date_format') . ' ' . get_option('time_format'), |
|
778 | + ($timestamp + (get_option('gmt_offset') * HOUR_IN_SECONDS)) |
|
779 | + ); ?></td> |
|
780 | 780 | <td class="jst-left"><?php echo isset($delivered_message['message_type']) |
781 | - ? $delivered_message['message_type'] : ''; ?></td> |
|
781 | + ? $delivered_message['message_type'] : ''; ?></td> |
|
782 | 782 | <td class="jst-left"><?php echo isset($delivered_message['pay_status']) |
783 | - ? $delivered_message['pay_status'] : ''; ?></td> |
|
783 | + ? $delivered_message['pay_status'] : ''; ?></td> |
|
784 | 784 | <td class="jst-left"><?php echo isset($delivered_message['txn_status']) |
785 | - ? $delivered_message['txn_status'] : ''; ?></td> |
|
785 | + ? $delivered_message['txn_status'] : ''; ?></td> |
|
786 | 786 | </tr> |
787 | 787 | <?php endforeach; // $delivered_messages?> |
788 | 788 | </tbody> |
789 | 789 | </table> |
790 | 790 | </div> |
791 | 791 | <?php |
792 | - } |
|
793 | - } |
|
794 | - ?> |
|
792 | + } |
|
793 | + } |
|
794 | + ?> |
|
795 | 795 | </div> |
@@ -210,10 +210,13 @@ discard block |
||
210 | 210 | false |
211 | 211 | ); ?></span></th> |
212 | 212 | </tr> |
213 | - <?php else : ?> |
|
213 | + <?php else { |
|
214 | + : ?> |
|
214 | 215 | <tr id="txn-admin-no-payments-tr" class="admin-primary-mbox-total-tr"> |
215 | 216 | <td class=" jst-rght" colspan="10"> |
216 | - <span class="important-notice"><?php echo $no_payment_text; ?></span> |
|
217 | + <span class="important-notice"><?php echo $no_payment_text; |
|
218 | +} |
|
219 | +?></span> |
|
217 | 220 | </td> |
218 | 221 | </tr> |
219 | 222 | <tr id="txn-admin-payments-total-tr" class="admin-primary-mbox-total-tr hidden"> |
@@ -302,13 +305,16 @@ discard block |
||
302 | 305 | <?php esc_html_e('Apply Refund', 'event_espresso'); ?> |
303 | 306 | </a> |
304 | 307 | </li> |
305 | - <?php else : ?> |
|
308 | + <?php else { |
|
309 | + : ?> |
|
306 | 310 | <li> |
307 | 311 | <p> |
308 | 312 | <?php esc_html__( |
309 | 313 | 'You do not have access to apply payments or refunds.', |
310 | 314 | 'event_espresso' |
311 | - ); ?></p> |
|
315 | + ); |
|
316 | +} |
|
317 | +?></p> |
|
312 | 318 | </li> |
313 | 319 | <?php endif; ?> |
314 | 320 | <?php |