@@ -83,25 +83,25 @@ discard block |
||
83 | 83 | </div> |
84 | 84 | <br class="clear" /> |
85 | 85 | <?php |
86 | - $no_payments = $grand_raw_total > 0 |
|
87 | - || $TXN_status !== EEM_Transaction::complete_status_code |
|
88 | - || ! empty($payments); |
|
89 | - ?> |
|
86 | + $no_payments = $grand_raw_total > 0 |
|
87 | + || $TXN_status !== EEM_Transaction::complete_status_code |
|
88 | + || ! empty($payments); |
|
89 | + ?> |
|
90 | 90 | <?php if ($attendee instanceof EE_Attendee && $no_payments) : ?> |
91 | 91 | <?php $no_payment_text = $can_edit_payments |
92 | - ? esc_html__( |
|
93 | - 'No payments have been applied to this transaction yet. Click "Apply Payment" below to make a payment.', |
|
94 | - 'event_espresso' |
|
95 | - ) |
|
96 | - : esc_html__( |
|
97 | - 'No payments have been applied to this transaction yet.', |
|
98 | - 'event_espresso' |
|
99 | - ); |
|
100 | - ?> |
|
92 | + ? esc_html__( |
|
93 | + 'No payments have been applied to this transaction yet. Click "Apply Payment" below to make a payment.', |
|
94 | + 'event_espresso' |
|
95 | + ) |
|
96 | + : esc_html__( |
|
97 | + 'No payments have been applied to this transaction yet.', |
|
98 | + 'event_espresso' |
|
99 | + ); |
|
100 | + ?> |
|
101 | 101 | |
102 | 102 | <h3 class="admin-primary-mbox-h4 hdr-has-icon"> |
103 | 103 | <span class="ee-icon ee-icon-cash"></span><?php |
104 | - esc_html_e('Payment Details', 'event_espresso'); ?> |
|
104 | + esc_html_e('Payment Details', 'event_espresso'); ?> |
|
105 | 105 | </h3> |
106 | 106 | |
107 | 107 | <div class="admin-primary-mbox-tbl-wrap"> |
@@ -117,9 +117,9 @@ discard block |
||
117 | 117 | <th class="jst-left"><?php esc_html_e('TXN ID / CHQ #', 'event_espresso'); ?></th> |
118 | 118 | <th class="jst-left"><?php esc_html_e('P.O. / S.O. #', 'event_espresso'); ?></th> |
119 | 119 | <th class="jst-left"><?php esc_html_e( |
120 | - 'Notes / Extra Accounting', |
|
121 | - 'event_espresso' |
|
122 | - ); ?></th> |
|
120 | + 'Notes / Extra Accounting', |
|
121 | + 'event_espresso' |
|
122 | + ); ?></th> |
|
123 | 123 | <th class="jst-cntr"><?php esc_html_e('Amount', 'event_espresso'); ?></th> |
124 | 124 | </tr> |
125 | 125 | </thead> |
@@ -127,14 +127,14 @@ discard block |
||
127 | 127 | <?php if ($payments) : ?> |
128 | 128 | <?php $payment_total = 0; ?> |
129 | 129 | <?php foreach ($payments as $PAY_ID => $payment) : |
130 | - if (! $payment instanceof EE_Payment) { |
|
131 | - continue; |
|
132 | - } |
|
133 | - $PAY_ID = absint($PAY_ID); |
|
134 | - $existing_reg_payment_json = isset($existing_reg_payments[ $PAY_ID ]) |
|
135 | - ? wp_json_encode($existing_reg_payments[ $PAY_ID ]) |
|
136 | - : '{}'; |
|
137 | - ?> |
|
130 | + if (! $payment instanceof EE_Payment) { |
|
131 | + continue; |
|
132 | + } |
|
133 | + $PAY_ID = absint($PAY_ID); |
|
134 | + $existing_reg_payment_json = isset($existing_reg_payments[ $PAY_ID ]) |
|
135 | + ? wp_json_encode($existing_reg_payments[ $PAY_ID ]) |
|
136 | + : '{}'; |
|
137 | + ?> |
|
138 | 138 | <tr id="txn-admin-payment-tr-<?php echo absint($PAY_ID); ?>"> |
139 | 139 | <td> |
140 | 140 | <span id="payment-status-<?php echo absint($PAY_ID); ?>" |
@@ -188,15 +188,15 @@ discard block |
||
188 | 188 | </div> |
189 | 189 | <div id="payment-gateway-<?php echo absint($PAY_ID); ?>"> |
190 | 190 | <?php echo ($payment->payment_method() instanceof EE_Payment_Method |
191 | - ? esc_html($payment->payment_method()->admin_name()) |
|
192 | - : esc_html__("Unknown", 'event_espresso')); ?> |
|
191 | + ? esc_html($payment->payment_method()->admin_name()) |
|
192 | + : esc_html__("Unknown", 'event_espresso')); ?> |
|
193 | 193 | </div> |
194 | 194 | <div id="payment-gateway-id-<?php echo absint($PAY_ID); ?>" |
195 | 195 | class="hidden" |
196 | 196 | > |
197 | 197 | <?php echo ($payment->payment_method() instanceof EE_Payment_Method |
198 | - ? esc_html($payment->payment_method()->ID()) |
|
199 | - : 0); ?> |
|
198 | + ? esc_html($payment->payment_method()->ID()) |
|
199 | + : 0); ?> |
|
200 | 200 | </div> |
201 | 201 | </td> |
202 | 202 | <td class=" jst-left"> |
@@ -221,18 +221,18 @@ discard block |
||
221 | 221 | </td> |
222 | 222 | <td class=" jst-rght"> |
223 | 223 | <?php |
224 | - $payment_class = $payment->amount() > 0 |
|
225 | - ? 'txn-admin-payment-status-' . $payment->STS_ID() |
|
226 | - : 'txn-admin-payment-status-PDC'; |
|
227 | - ?> |
|
224 | + $payment_class = $payment->amount() > 0 |
|
225 | + ? 'txn-admin-payment-status-' . $payment->STS_ID() |
|
226 | + : 'txn-admin-payment-status-PDC'; |
|
227 | + ?> |
|
228 | 228 | <span class="<?php echo esc_attr($payment_class); ?>"> |
229 | 229 | <span id="payment-amount-<?php echo absint($PAY_ID); ?>" style="display:inline;"> |
230 | 230 | <?php echo EEH_Template::format_currency( |
231 | - $payment->amount(), |
|
232 | - false, |
|
233 | - false |
|
234 | - ); // already escaped |
|
235 | - ?> |
|
231 | + $payment->amount(), |
|
232 | + false, |
|
233 | + false |
|
234 | + ); // already escaped |
|
235 | + ?> |
|
236 | 236 | </span> |
237 | 237 | </span> |
238 | 238 | </td> |
@@ -240,9 +240,9 @@ discard block |
||
240 | 240 | <?php $payment_total += $payment->STS_ID() == 'PAP' ? $payment->amount() : 0; ?> |
241 | 241 | <?php endforeach; ?> |
242 | 242 | <?php $pay_totals_class = $payment_total > $grand_raw_total |
243 | - ? ' important-notice' |
|
244 | - : ''; |
|
245 | - ?> |
|
243 | + ? ' important-notice' |
|
244 | + : ''; |
|
245 | + ?> |
|
246 | 246 | <tr id="txn-admin-no-payments-tr" class="admin-primary-mbox-total-tr hidden"> |
247 | 247 | <td class=" jst-rght" colspan="10"> |
248 | 248 | <span class="important-notice"><?php echo wp_kses($no_payment_text, AllowedTags::getAllowedTags()); ?></span> |
@@ -254,29 +254,29 @@ discard block |
||
254 | 254 | <th class=" jst-rght" colspan="9"> |
255 | 255 | <span id="payments-total-spn"> |
256 | 256 | <?php |
257 | - $overpaid = $payment_total > $grand_raw_total |
|
258 | - ? '<span id="overpaid">' |
|
259 | - . __('This transaction has been overpaid ! ', 'event_espresso') |
|
260 | - . '</span>' |
|
261 | - : ''; |
|
262 | - echo wp_kses( |
|
263 | - $overpaid |
|
264 | - . sprintf( |
|
265 | - __('Payments Total %s', 'event_espresso'), |
|
266 | - '(' . EE_Registry::instance()->CFG->currency->code . ')' |
|
267 | - ), |
|
268 | - AllowedTags::getAllowedTags() |
|
269 | - ); ?> |
|
257 | + $overpaid = $payment_total > $grand_raw_total |
|
258 | + ? '<span id="overpaid">' |
|
259 | + . __('This transaction has been overpaid ! ', 'event_espresso') |
|
260 | + . '</span>' |
|
261 | + : ''; |
|
262 | + echo wp_kses( |
|
263 | + $overpaid |
|
264 | + . sprintf( |
|
265 | + __('Payments Total %s', 'event_espresso'), |
|
266 | + '(' . EE_Registry::instance()->CFG->currency->code . ')' |
|
267 | + ), |
|
268 | + AllowedTags::getAllowedTags() |
|
269 | + ); ?> |
|
270 | 270 | </span> |
271 | 271 | </th> |
272 | 272 | <th class=" jst-rght"> |
273 | 273 | <span id="txn-admin-payment-total"> |
274 | 274 | <?php |
275 | - echo EEH_Template::format_currency( |
|
276 | - $payment_total, |
|
277 | - false, |
|
278 | - false |
|
279 | - ); // already escaped ?> |
|
275 | + echo EEH_Template::format_currency( |
|
276 | + $payment_total, |
|
277 | + false, |
|
278 | + false |
|
279 | + ); // already escaped ?> |
|
280 | 280 | </span> |
281 | 281 | </th> |
282 | 282 | </tr> |
@@ -359,7 +359,7 @@ discard block |
||
359 | 359 | |
360 | 360 | <ul id="txn-admin-payment-options-ul"> |
361 | 361 | <?php if ($can_edit_payments) : |
362 | - ?> |
|
362 | + ?> |
|
363 | 363 | <li> |
364 | 364 | <a id="display-txn-admin-apply-payment" |
365 | 365 | class="button-primary no-icon no-hide" |
@@ -384,12 +384,12 @@ discard block |
||
384 | 384 | </li> |
385 | 385 | <?php endif; ?> |
386 | 386 | <?php |
387 | - // Allows extend the fields at actions area. |
|
388 | - do_action( |
|
389 | - 'AHEE__txn_admin_details_main_meta_box_txn_details__after_actions_buttons', |
|
390 | - $can_edit_payments |
|
391 | - ); |
|
392 | - ?> |
|
387 | + // Allows extend the fields at actions area. |
|
388 | + do_action( |
|
389 | + 'AHEE__txn_admin_details_main_meta_box_txn_details__after_actions_buttons', |
|
390 | + $can_edit_payments |
|
391 | + ); |
|
392 | + ?> |
|
393 | 393 | </ul> |
394 | 394 | <br class="clear" /> |
395 | 395 | |
@@ -400,7 +400,7 @@ discard block |
||
400 | 400 | > |
401 | 401 | <div class="ee-icon ee-icon-cash-add float-left"></div> |
402 | 402 | <?php |
403 | - echo esc_html__('Apply a Payment to Transaction #', 'event_espresso') . esc_html($txn_nmbr['value']); ?> |
|
403 | + echo esc_html__('Apply a Payment to Transaction #', 'event_espresso') . esc_html($txn_nmbr['value']); ?> |
|
404 | 404 | </h2> |
405 | 405 | |
406 | 406 | <h2 id="admin-modal-dialog-edit-payment-h2" class="admin-modal-dialog-h2 hdr-has-icon" |
@@ -408,23 +408,23 @@ discard block |
||
408 | 408 | > |
409 | 409 | <div class="ee-icon ee-icon-cash-edit float-left"></div> |
410 | 410 | <?php |
411 | - printf( |
|
412 | - esc_html__('Edit Payment #%s for Transaction #%s', 'event_espresso'), |
|
413 | - '<span></span>', |
|
414 | - $txn_nmbr['value'] |
|
415 | - ); |
|
416 | - ?> |
|
411 | + printf( |
|
412 | + esc_html__('Edit Payment #%s for Transaction #%s', 'event_espresso'), |
|
413 | + '<span></span>', |
|
414 | + $txn_nmbr['value'] |
|
415 | + ); |
|
416 | + ?> |
|
417 | 417 | </h2> |
418 | 418 | |
419 | 419 | <h2 id="admin-modal-dialog-edit-refund-h2" class="admin-modal-dialog-h2 hdr-has-icon" style="display:none;"> |
420 | 420 | <div class="ee-icon ee-icon-cash-edit float-left"></div> |
421 | 421 | <?php |
422 | - printf( |
|
423 | - esc_html__('Edit Refund #%s for Transaction #%s', 'event_espresso'), |
|
424 | - '<span></span>', |
|
425 | - $txn_nmbr['value'] |
|
426 | - ); |
|
427 | - ?> |
|
422 | + printf( |
|
423 | + esc_html__('Edit Refund #%s for Transaction #%s', 'event_espresso'), |
|
424 | + '<span></span>', |
|
425 | + $txn_nmbr['value'] |
|
426 | + ); |
|
427 | + ?> |
|
428 | 428 | </h2> |
429 | 429 | |
430 | 430 | <h2 id="admin-modal-dialog-apply-refund-h2" class="admin-modal-dialog-h2 hdr-has-icon" |
@@ -432,9 +432,9 @@ discard block |
||
432 | 432 | > |
433 | 433 | <div class="ee-icon ee-icon-cash-remove float-left"></div> |
434 | 434 | <?php |
435 | - echo esc_html__('Apply a Refund to Transaction #', 'event_espresso'); |
|
436 | - echo esc_html($txn_nmbr['value']); |
|
437 | - ?> |
|
435 | + echo esc_html__('Apply a Refund to Transaction #', 'event_espresso'); |
|
436 | + echo esc_html($txn_nmbr['value']); |
|
437 | + ?> |
|
438 | 438 | </h2> |
439 | 439 | |
440 | 440 | <form name="txn-admin-apply-payment-frm" |
@@ -533,29 +533,29 @@ discard block |
||
533 | 533 | > |
534 | 534 | <?php foreach ($payment_methods as $method) : ?> |
535 | 535 | <?php |
536 | - $selected = $method->slug() == 'cash' |
|
537 | - ? ' selected' |
|
538 | - : ''; |
|
539 | - ?> |
|
536 | + $selected = $method->slug() == 'cash' |
|
537 | + ? ' selected' |
|
538 | + : ''; |
|
539 | + ?> |
|
540 | 540 | <option id="payment-method-opt-<?php echo esc_attr($method->slug()); ?>" |
541 | 541 | value="<?php echo esc_attr($method->ID()); ?>" |
542 | 542 | <?php echo esc_attr($selected); ?> |
543 | 543 | > |
544 | 544 | <?php |
545 | - echo esc_html( |
|
546 | - sanitize_key($method->admin_desc()) |
|
547 | - ? substr($method->admin_desc(), 0, 128) |
|
548 | - : $method->admin_name() |
|
549 | - ); |
|
550 | - ?> |
|
545 | + echo esc_html( |
|
546 | + sanitize_key($method->admin_desc()) |
|
547 | + ? substr($method->admin_desc(), 0, 128) |
|
548 | + : $method->admin_name() |
|
549 | + ); |
|
550 | + ?> |
|
551 | 551 | </option> |
552 | 552 | <?php endforeach; ?> |
553 | 553 | </select> |
554 | 554 | <p class="description"> |
555 | 555 | <?php esc_html_e( |
556 | - 'Whether the payment was made via PayPal, Credit Card, Cheque, or Cash', |
|
557 | - 'event_espresso' |
|
558 | - ); ?> |
|
556 | + 'Whether the payment was made via PayPal, Credit Card, Cheque, or Cash', |
|
557 | + 'event_espresso' |
|
558 | + ); ?> |
|
559 | 559 | </p> |
560 | 560 | </div> |
561 | 561 | |
@@ -563,9 +563,9 @@ discard block |
||
563 | 563 | <div class="txn-admin-apply-payment-gw-txn-id-dv admin-modal-dialog-row"> |
564 | 564 | <label for="txn-admin-payment-txn-id-chq-nmbr-inp" class=""> |
565 | 565 | <?php esc_html_e( |
566 | - 'TXN ID / CHQ #', |
|
567 | - 'event_espresso' |
|
568 | - ); ?> |
|
566 | + 'TXN ID / CHQ #', |
|
567 | + 'event_espresso' |
|
568 | + ); ?> |
|
569 | 569 | </label> |
570 | 570 | <input name="txn_admin_payment[txn_id_chq_nmbr]" |
571 | 571 | id="txn-admin-payment-txn-id-chq-nmbr-inp" |
@@ -574,9 +574,9 @@ discard block |
||
574 | 574 | /> |
575 | 575 | <p class="description"> |
576 | 576 | <?php esc_html_e( |
577 | - 'The Transaction ID sent back from the payment gateway, or the Cheque #', |
|
578 | - 'event_espresso' |
|
579 | - ); ?> |
|
577 | + 'The Transaction ID sent back from the payment gateway, or the Cheque #', |
|
578 | + 'event_espresso' |
|
579 | + ); ?> |
|
580 | 580 | </p> |
581 | 581 | </div> |
582 | 582 | </div> |
@@ -593,9 +593,9 @@ discard block |
||
593 | 593 | /> |
594 | 594 | <p class="description"> |
595 | 595 | <?php esc_html_e( |
596 | - 'The gateway response string (optional)', |
|
597 | - 'event_espresso' |
|
598 | - ); ?> |
|
596 | + 'The gateway response string (optional)', |
|
597 | + 'event_espresso' |
|
598 | + ); ?> |
|
599 | 599 | </p> |
600 | 600 | </div> |
601 | 601 | </div> |
@@ -604,9 +604,9 @@ discard block |
||
604 | 604 | <div class="txn-admin-apply-payment-status-dv admin-modal-dialog-row"> |
605 | 605 | <label for="txn-admin-payment-status-slct" class=""> |
606 | 606 | <?php esc_html_e( |
607 | - 'Payment Status', |
|
608 | - 'event_espresso' |
|
609 | - ); ?> |
|
607 | + 'Payment Status', |
|
608 | + 'event_espresso' |
|
609 | + ); ?> |
|
610 | 610 | </label> |
611 | 611 | <select name="txn_admin_payment[status]" |
612 | 612 | id="txn-admin-payment-status-slct" |
@@ -615,10 +615,10 @@ discard block |
||
615 | 615 | > |
616 | 616 | <?php foreach ($payment_status as $STS_ID => $STS_code) : ?> |
617 | 617 | <?php |
618 | - $selected = $STS_ID == 'PAP' |
|
619 | - ? 'selected' |
|
620 | - : ''; |
|
621 | - ?> |
|
618 | + $selected = $STS_ID == 'PAP' |
|
619 | + ? 'selected' |
|
620 | + : ''; |
|
621 | + ?> |
|
622 | 622 | <option id="payment-status-opt-<?php echo esc_attr($STS_ID); ?>" |
623 | 623 | value="<?php echo esc_attr($STS_ID); ?>" |
624 | 624 | <?php echo esc_attr($selected); ?> |
@@ -629,10 +629,10 @@ discard block |
||
629 | 629 | </select> |
630 | 630 | <p class="description"> |
631 | 631 | <?php |
632 | - esc_html_e( |
|
633 | - 'Whether the payment was approved, cancelled, declined or failed after submission to the gateway', |
|
634 | - 'event_espresso' |
|
635 | - ); ?> |
|
632 | + esc_html_e( |
|
633 | + 'Whether the payment was approved, cancelled, declined or failed after submission to the gateway', |
|
634 | + 'event_espresso' |
|
635 | + ); ?> |
|
636 | 636 | </p> |
637 | 637 | </div> |
638 | 638 | </div> |
@@ -649,9 +649,9 @@ discard block |
||
649 | 649 | /> |
650 | 650 | <p class="description"> |
651 | 651 | <?php esc_html_e( |
652 | - 'The Purchase or Sales Order Number if any (optional)', |
|
653 | - 'event_espresso' |
|
654 | - ); ?> |
|
652 | + 'The Purchase or Sales Order Number if any (optional)', |
|
653 | + 'event_espresso' |
|
654 | + ); ?> |
|
655 | 655 | </p> |
656 | 656 | </div> |
657 | 657 | |
@@ -672,9 +672,9 @@ discard block |
||
672 | 672 | /> |
673 | 673 | <p class="description"> |
674 | 674 | <?php esc_html_e( |
675 | - 'An extra field you may use for accounting purposes or simple notes. Defaults to the primary registrant\'s registration code.', |
|
676 | - 'event_espresso' |
|
677 | - ); ?> |
|
675 | + 'An extra field you may use for accounting purposes or simple notes. Defaults to the primary registrant\'s registration code.', |
|
676 | + 'event_espresso' |
|
677 | + ); ?> |
|
678 | 678 | </p> |
679 | 679 | </div> |
680 | 680 | |
@@ -709,9 +709,9 @@ discard block |
||
709 | 709 | <?php echo wp_kses($status_change_select, AllowedTags::getWithFormTags()); ?> |
710 | 710 | <p class="description"> |
711 | 711 | <?php esc_html_e( |
712 | - 'If you wish to change the status for the registrations selected above, then select which status from this dropdown.', |
|
713 | - 'event_espresso' |
|
714 | - ); ?> |
|
712 | + 'If you wish to change the status for the registrations selected above, then select which status from this dropdown.', |
|
713 | + 'event_espresso' |
|
714 | + ); ?> |
|
715 | 715 | </p> |
716 | 716 | <br /> |
717 | 717 | </div> |
@@ -742,14 +742,14 @@ discard block |
||
742 | 742 | <br class="clear-float" /> |
743 | 743 | <p class="description"> |
744 | 744 | <?php printf( |
745 | - esc_html__( |
|
746 | - '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.', |
|
747 | - 'event_espresso' |
|
748 | - ), |
|
749 | - '<strong>', |
|
750 | - '</strong>', |
|
751 | - '<br />' |
|
752 | - ); ?> |
|
745 | + esc_html__( |
|
746 | + '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.', |
|
747 | + 'event_espresso' |
|
748 | + ), |
|
749 | + '<strong>', |
|
750 | + '</strong>', |
|
751 | + '<br />' |
|
752 | + ); ?> |
|
753 | 753 | </p> |
754 | 754 | </div> |
755 | 755 | <div class="clear"></div> |
@@ -814,10 +814,10 @@ discard block |
||
814 | 814 | > |
815 | 815 | <span class="ee-icon ee-icon-cash-add"></span> |
816 | 816 | <?php printf( |
817 | - esc_html__('Delete Payment/Refund for Transaction #', 'event_espresso'), |
|
818 | - $txn_nmbr['value'] |
|
819 | - ); |
|
820 | - ?> |
|
817 | + esc_html__('Delete Payment/Refund for Transaction #', 'event_espresso'), |
|
818 | + $txn_nmbr['value'] |
|
819 | + ); |
|
820 | + ?> |
|
821 | 821 | </h2> |
822 | 822 | |
823 | 823 | <form name="txn-admin-delete-payment-frm" |
@@ -853,13 +853,13 @@ discard block |
||
853 | 853 | <?php echo wp_kses($delete_status_change_select, AllowedTags::getWithFormTags()); ?> |
854 | 854 | <p class="description"> |
855 | 855 | <?php printf( |
856 | - esc_html__( |
|
857 | - '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', |
|
858 | - 'event_espresso' |
|
859 | - ), |
|
860 | - '<strong>', |
|
861 | - '</strong>' |
|
862 | - ); ?> |
|
856 | + esc_html__( |
|
857 | + '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', |
|
858 | + 'event_espresso' |
|
859 | + ), |
|
860 | + '<strong>', |
|
861 | + '</strong>' |
|
862 | + ); ?> |
|
863 | 863 | </p> |
864 | 864 | </div> |
865 | 865 | |
@@ -874,10 +874,10 @@ discard block |
||
874 | 874 | /> |
875 | 875 | <p class="description"> |
876 | 876 | <?php |
877 | - esc_html_e( |
|
878 | - '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.', |
|
879 | - 'event_espresso' |
|
880 | - ); ?> |
|
877 | + esc_html_e( |
|
878 | + '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.', |
|
879 | + 'event_espresso' |
|
880 | + ); ?> |
|
881 | 881 | </p> |
882 | 882 | </div> |
883 | 883 | <div class="clear"></div> |
@@ -910,8 +910,8 @@ discard block |
||
910 | 910 | <?php endif; // $grand_raw_total > 0?> |
911 | 911 | |
912 | 912 | <?php if (WP_DEBUG) { |
913 | - $delivered_messages = get_option('EED_Messages__payment', []); |
|
914 | - if (isset($delivered_messages[ $TXN_ID ])) { ?> |
|
913 | + $delivered_messages = get_option('EED_Messages__payment', []); |
|
914 | + if (isset($delivered_messages[ $TXN_ID ])) { ?> |
|
915 | 915 | <h4 class="admin-primary-mbox-h4 hdr-has-icon"> |
916 | 916 | <span class="dashicons dashicons-email-alt"></span> |
917 | 917 | <?php esc_html_e('Messages Sent to Primary Registrant', 'event_espresso'); ?> |
@@ -923,39 +923,39 @@ discard block |
||
923 | 923 | <th class="jst-left"><?php esc_html_e('Date & Time', 'event_espresso'); ?></th> |
924 | 924 | <th class="jst-left"><?php esc_html_e('Message Type', 'event_espresso'); ?></th> |
925 | 925 | <th class="jst-left"><?php esc_html_e( |
926 | - 'Payment Status Upon Sending', |
|
927 | - 'event_espresso' |
|
928 | - ); ?></th> |
|
926 | + 'Payment Status Upon Sending', |
|
927 | + 'event_espresso' |
|
928 | + ); ?></th> |
|
929 | 929 | <th class="jst-left"><?php esc_html_e('TXN Status Upon Sending', 'event_espresso'); ?></th> |
930 | 930 | </tr> |
931 | 931 | </thead> |
932 | 932 | <tbody> |
933 | 933 | <?php |
934 | - foreach ($delivered_messages[ $TXN_ID ] as $timestamp => $delivered_message) : |
|
935 | - ?> |
|
934 | + foreach ($delivered_messages[ $TXN_ID ] as $timestamp => $delivered_message) : |
|
935 | + ?> |
|
936 | 936 | <tr> |
937 | 937 | <td class="jst-left"> |
938 | 938 | <?php echo esc_html( |
939 | - date( |
|
940 | - get_option('date_format') . ' ' . get_option('time_format'), |
|
941 | - ($timestamp + (get_option('gmt_offset') * HOUR_IN_SECONDS)) |
|
942 | - ) |
|
943 | - ); ?> |
|
939 | + date( |
|
940 | + get_option('date_format') . ' ' . get_option('time_format'), |
|
941 | + ($timestamp + (get_option('gmt_offset') * HOUR_IN_SECONDS)) |
|
942 | + ) |
|
943 | + ); ?> |
|
944 | 944 | </td> |
945 | 945 | <td class="jst-left"><?php |
946 | - echo isset($delivered_message['message_type']) |
|
947 | - ? esc_html($delivered_message['message_type']) |
|
948 | - : ''; ?> |
|
946 | + echo isset($delivered_message['message_type']) |
|
947 | + ? esc_html($delivered_message['message_type']) |
|
948 | + : ''; ?> |
|
949 | 949 | </td> |
950 | 950 | <td class="jst-left"><?php |
951 | - echo isset($delivered_message['pay_status']) |
|
952 | - ? esc_html($delivered_message['pay_status']) |
|
953 | - : ''; ?> |
|
951 | + echo isset($delivered_message['pay_status']) |
|
952 | + ? esc_html($delivered_message['pay_status']) |
|
953 | + : ''; ?> |
|
954 | 954 | </td> |
955 | 955 | <td class="jst-left"><?php |
956 | - echo isset($delivered_message['txn_status']) |
|
957 | - ? esc_html($delivered_message['txn_status']) |
|
958 | - : ''; ?> |
|
956 | + echo isset($delivered_message['txn_status']) |
|
957 | + ? esc_html($delivered_message['txn_status']) |
|
958 | + : ''; ?> |
|
959 | 959 | </td> |
960 | 960 | </tr> |
961 | 961 | <?php endforeach; // $delivered_messages?> |
@@ -963,7 +963,7 @@ discard block |
||
963 | 963 | </table> |
964 | 964 | </div> |
965 | 965 | <?php |
966 | - } |
|
967 | - } |
|
968 | - ?> |
|
966 | + } |
|
967 | + } |
|
968 | + ?> |
|
969 | 969 | </div> |
@@ -127,12 +127,12 @@ discard block |
||
127 | 127 | <?php if ($payments) : ?> |
128 | 128 | <?php $payment_total = 0; ?> |
129 | 129 | <?php foreach ($payments as $PAY_ID => $payment) : |
130 | - if (! $payment instanceof EE_Payment) { |
|
130 | + if ( ! $payment instanceof EE_Payment) { |
|
131 | 131 | continue; |
132 | 132 | } |
133 | 133 | $PAY_ID = absint($PAY_ID); |
134 | - $existing_reg_payment_json = isset($existing_reg_payments[ $PAY_ID ]) |
|
135 | - ? wp_json_encode($existing_reg_payments[ $PAY_ID ]) |
|
134 | + $existing_reg_payment_json = isset($existing_reg_payments[$PAY_ID]) |
|
135 | + ? wp_json_encode($existing_reg_payments[$PAY_ID]) |
|
136 | 136 | : '{}'; |
137 | 137 | ?> |
138 | 138 | <tr id="txn-admin-payment-tr-<?php echo absint($PAY_ID); ?>"> |
@@ -222,7 +222,7 @@ discard block |
||
222 | 222 | <td class=" jst-rght"> |
223 | 223 | <?php |
224 | 224 | $payment_class = $payment->amount() > 0 |
225 | - ? 'txn-admin-payment-status-' . $payment->STS_ID() |
|
225 | + ? 'txn-admin-payment-status-'.$payment->STS_ID() |
|
226 | 226 | : 'txn-admin-payment-status-PDC'; |
227 | 227 | ?> |
228 | 228 | <span class="<?php echo esc_attr($payment_class); ?>"> |
@@ -263,7 +263,7 @@ discard block |
||
263 | 263 | $overpaid |
264 | 264 | . sprintf( |
265 | 265 | __('Payments Total %s', 'event_espresso'), |
266 | - '(' . EE_Registry::instance()->CFG->currency->code . ')' |
|
266 | + '('.EE_Registry::instance()->CFG->currency->code.')' |
|
267 | 267 | ), |
268 | 268 | AllowedTags::getAllowedTags() |
269 | 269 | ); ?> |
@@ -400,7 +400,7 @@ discard block |
||
400 | 400 | > |
401 | 401 | <div class="ee-icon ee-icon-cash-add float-left"></div> |
402 | 402 | <?php |
403 | - echo esc_html__('Apply a Payment to Transaction #', 'event_espresso') . esc_html($txn_nmbr['value']); ?> |
|
403 | + echo esc_html__('Apply a Payment to Transaction #', 'event_espresso').esc_html($txn_nmbr['value']); ?> |
|
404 | 404 | </h2> |
405 | 405 | |
406 | 406 | <h2 id="admin-modal-dialog-edit-payment-h2" class="admin-modal-dialog-h2 hdr-has-icon" |
@@ -911,7 +911,7 @@ discard block |
||
911 | 911 | |
912 | 912 | <?php if (WP_DEBUG) { |
913 | 913 | $delivered_messages = get_option('EED_Messages__payment', []); |
914 | - if (isset($delivered_messages[ $TXN_ID ])) { ?> |
|
914 | + if (isset($delivered_messages[$TXN_ID])) { ?> |
|
915 | 915 | <h4 class="admin-primary-mbox-h4 hdr-has-icon"> |
916 | 916 | <span class="dashicons dashicons-email-alt"></span> |
917 | 917 | <?php esc_html_e('Messages Sent to Primary Registrant', 'event_espresso'); ?> |
@@ -931,13 +931,13 @@ discard block |
||
931 | 931 | </thead> |
932 | 932 | <tbody> |
933 | 933 | <?php |
934 | - foreach ($delivered_messages[ $TXN_ID ] as $timestamp => $delivered_message) : |
|
934 | + foreach ($delivered_messages[$TXN_ID] as $timestamp => $delivered_message) : |
|
935 | 935 | ?> |
936 | 936 | <tr> |
937 | 937 | <td class="jst-left"> |
938 | 938 | <?php echo esc_html( |
939 | 939 | date( |
940 | - get_option('date_format') . ' ' . get_option('time_format'), |
|
940 | + get_option('date_format').' '.get_option('time_format'), |
|
941 | 941 | ($timestamp + (get_option('gmt_offset') * HOUR_IN_SECONDS)) |
942 | 942 | ) |
943 | 943 | ); ?> |