Completed
Branch FET/add-action-to-transactions... (f3d213)
by
unknown
57:11 queued 49:00
created
templates/txn_admin_details_main_meta_box_txn_details.template.php 2 patches
Indentation   +192 added lines, -192 removed lines patch added patch discarded remove patch
@@ -15,9 +15,9 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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 -->
@@ -303,18 +303,18 @@  discard block
 block discarded – undo
303 303
                     </a>
304 304
                 </li>
305 305
                 <?php
306
-                /**
307
-                 * Allows extend the fields at actions area.
308
-                 */
309
-                do_action('AHEE__txn_admin_details_main_meta_box_txn_details__after_actions_buttons');
310
-                ?>
306
+				/**
307
+				 * Allows extend the fields at actions area.
308
+				 */
309
+				do_action('AHEE__txn_admin_details_main_meta_box_txn_details__after_actions_buttons');
310
+				?>
311 311
             <?php else : ?>
312 312
                 <li>
313 313
                     <p>
314 314
                         <?php esc_html__(
315
-                            'You do not have access to apply payments or refunds.',
316
-                            'event_espresso'
317
-                        ); ?></p>
315
+							'You do not have access to apply payments or refunds.',
316
+							'event_espresso'
317
+						); ?></p>
318 318
                 </li>
319 319
             <?php endif; ?>
320 320
         </ul>
@@ -332,23 +332,23 @@  discard block
 block discarded – undo
332 332
                 style="display:none;">
333 333
                 <div class="ee-icon ee-icon-cash-edit float-left"></div>
334 334
                 <?php
335
-                echo sprintf(
336
-                    __('Edit Payment #%s for Transaction #%s', 'event_espresso'),
337
-                    '<span></span>',
338
-                    $txn_nmbr['value']
339
-                );
340
-                ?>
335
+				echo sprintf(
336
+					__('Edit Payment #%s for Transaction #%s', 'event_espresso'),
337
+					'<span></span>',
338
+					$txn_nmbr['value']
339
+				);
340
+				?>
341 341
             </h2>
342 342
 
343 343
             <h2 id="admin-modal-dialog-edit-refund-h2" class="admin-modal-dialog-h2 hdr-has-icon" style="display:none;">
344 344
                 <div class="ee-icon ee-icon-cash-edit float-left"></div>
345 345
                 <?php
346
-                echo sprintf(
347
-                    __('Edit Refund #%s for Transaction #%s', 'event_espresso'),
348
-                    '<span></span>',
349
-                    $txn_nmbr['value']
350
-                );
351
-                ?>
346
+				echo sprintf(
347
+					__('Edit Refund #%s for Transaction #%s', 'event_espresso'),
348
+					'<span></span>',
349
+					$txn_nmbr['value']
350
+				);
351
+				?>
352 352
             </h2>
353 353
 
354 354
             <h2 id="admin-modal-dialog-apply-refund-h2" class="admin-modal-dialog-h2 hdr-has-icon"
@@ -382,55 +382,55 @@  discard block
 block discarded – undo
382 382
                         <div class="txn-admin-apply-payment-date-dv admin-modal-dialog-row">
383 383
                             <div class="validation-notice-dv">
384 384
                                 <?php esc_html_e(
385
-                                    'The following is  a required field',
386
-                                    'event_espresso'
387
-                                ); ?></div>
385
+									'The following is  a required field',
386
+									'event_espresso'
387
+								); ?></div>
388 388
                             <label for="txn-admin-payment-date-inp" class="">
389 389
                                 <?php esc_html_e(
390
-                                    'Payment Date',
391
-                                    'event_espresso'
392
-                                ); ?></label>
390
+									'Payment Date',
391
+									'event_espresso'
392
+								); ?></label>
393 393
                             <input name="txn_admin_payment[date]" id="txn-admin-payment-date-inp"
394 394
                                    class="txn-admin-apply-payment-inp required" type="text"
395 395
                                    value="<?php echo date('Y-m-d g:i a', current_time('timestamp')); ?>"/>
396 396
                             <p class="description">
397 397
                                 <?php esc_html_e(
398
-                                    'The date the payment was actually made on',
399
-                                    'event_espresso'
400
-                                ); ?></p>
398
+									'The date the payment was actually made on',
399
+									'event_espresso'
400
+								); ?></p>
401 401
                         </div>
402 402
 
403 403
                         <div class="txn-admin-apply-payment-amount-dv admin-modal-dialog-row">
404 404
                             <div class="validation-notice-dv">
405 405
                                 <?php esc_html_e(
406
-                                    'The following is  a required field',
407
-                                    'event_espresso'
408
-                                ); ?></div>
406
+									'The following is  a required field',
407
+									'event_espresso'
408
+								); ?></div>
409 409
                             <label for="txn-admin-payment-amount-inp" class="">
410 410
                                 <?php esc_html_e(
411
-                                    'Amount',
412
-                                    'event_espresso'
413
-                                ); ?></label>
411
+									'Amount',
412
+									'event_espresso'
413
+								); ?></label>
414 414
                             <input name="txn_admin_payment[amount]" id="txn-admin-payment-amount-inp"
415 415
                                    class="txn-admin-apply-payment-inp required" type="text" value=""/>
416 416
                             <p class="description">
417 417
                                 <?php esc_html_e(
418
-                                    'The amount of the payment',
419
-                                    'event_espresso'
420
-                                ); ?></p>
418
+									'The amount of the payment',
419
+									'event_espresso'
420
+								); ?></p>
421 421
                         </div>
422 422
 
423 423
                         <div class="txn-admin-apply-payment-method-dv admin-modal-dialog-row">
424 424
                             <div class="validation-notice-dv">
425 425
                                 <?php esc_html_e(
426
-                                    'The following is  a required field',
427
-                                    'event_espresso'
428
-                                ); ?></div>
426
+									'The following is  a required field',
427
+									'event_espresso'
428
+								); ?></div>
429 429
                             <label for="txn-admin-payment-method-inp" class="">
430 430
                                 <?php esc_html_e(
431
-                                    'Method of Payment',
432
-                                    'event_espresso'
433
-                                ); ?></label>
431
+									'Method of Payment',
432
+									'event_espresso'
433
+								); ?></label>
434 434
                             <select name="txn_admin_payment[PMD_ID]" id="txn-admin-payment-method-slct"
435 435
                                     class="txn-admin-apply-payment-slct required" type="text">
436 436
                                 <?php foreach ($payment_methods as $method) : ?>
@@ -438,39 +438,39 @@  discard block
 block discarded – undo
438 438
                                     <option id="payment-method-opt-<?php echo $method->slug(); ?>"
439 439
                                             value="<?php echo $method->ID(); ?>"<?php echo $selected; ?>>
440 440
                                         <?php echo sanitize_key(
441
-                                            $method->admin_desc()
442
-                                        )
443
-                                            ? substr(
444
-                                                $method->admin_desc(),
445
-                                                0,
446
-                                                128
447
-                                            )
448
-                                            : $method->admin_name(); ?>&nbsp;&nbsp;
441
+											$method->admin_desc()
442
+										)
443
+											? substr(
444
+												$method->admin_desc(),
445
+												0,
446
+												128
447
+											)
448
+											: $method->admin_name(); ?>&nbsp;&nbsp;
449 449
                                     </option>
450 450
                                 <?php endforeach; ?>
451 451
                             </select>
452 452
                             <p class="description">
453 453
                                 <?php esc_html_e(
454
-                                    'Whether the payment was made via PayPal, Credit Card, Cheque, or Cash',
455
-                                    'event_espresso'
456
-                                ); ?></p>
454
+									'Whether the payment was made via PayPal, Credit Card, Cheque, or Cash',
455
+									'event_espresso'
456
+								); ?></p>
457 457
                         </div>
458 458
 
459 459
                         <div class="mop-PP mop-CC mop-CHQ mop">
460 460
                             <div class="txn-admin-apply-payment-gw-txn-id-dv admin-modal-dialog-row">
461 461
                                 <label for="txn-admin-payment-txn-id-inp" class="">
462 462
                                     <?php esc_html_e(
463
-                                        'TXN ID / CHQ #',
464
-                                        'event_espresso'
465
-                                    ); ?></label>
463
+										'TXN ID / CHQ #',
464
+										'event_espresso'
465
+									); ?></label>
466 466
                                 <input name="txn_admin_payment[txn_id_chq_nmbr]"
467 467
                                        id="txn-admin-payment-txn-id-chq-nmbr-inp" class="txn-admin-apply-payment-inp"
468 468
                                        type="text" maxlength="100"/>
469 469
                                 <p class="description">
470 470
                                     <?php esc_html_e(
471
-                                        'The Transaction ID sent back from the payment gateway, or the Cheque #',
472
-                                        'event_espresso'
473
-                                    ); ?></p>
471
+										'The Transaction ID sent back from the payment gateway, or the Cheque #',
472
+										'event_espresso'
473
+									); ?></p>
474 474
                             </div>
475 475
                         </div>
476 476
 
@@ -483,9 +483,9 @@  discard block
 block discarded – undo
483 483
                                        type="text"/>
484 484
                                 <p class="description">
485 485
                                     <?php esc_html_e(
486
-                                        'The gateway response string (optional)',
487
-                                        'event_espresso'
488
-                                    ); ?></p>
486
+										'The gateway response string (optional)',
487
+										'event_espresso'
488
+									); ?></p>
489 489
                             </div>
490 490
                         </div>
491 491
 
@@ -493,9 +493,9 @@  discard block
 block discarded – undo
493 493
                             <div class="txn-admin-apply-payment-status-dv admin-modal-dialog-row">
494 494
                                 <label for="txn-admin-payment-status-inp" class="">
495 495
                                     <?php esc_html_e(
496
-                                        'Payment Status',
497
-                                        'event_espresso'
498
-                                    ); ?></label>
496
+										'Payment Status',
497
+										'event_espresso'
498
+									); ?></label>
499 499
                                 <select name="txn_admin_payment[status]" id="txn-admin-payment-status-slct"
500 500
                                         class="txn-admin-apply-payment-slct" type="text">
501 501
                                     <?php foreach ($payment_status as $STS_ID => $STS_code) : ?>
@@ -508,52 +508,52 @@  discard block
 block discarded – undo
508 508
                                 </select>
509 509
                                 <p class="description">
510 510
                                     <?php esc_html_e(
511
-                                        'Whether the payment was approved, cancelled, declined or failed after submission to the gateway',
512
-                                        'event_espresso'
513
-                                    ); ?></p>
511
+										'Whether the payment was approved, cancelled, declined or failed after submission to the gateway',
512
+										'event_espresso'
513
+									); ?></p>
514 514
                             </div>
515 515
                         </div>
516 516
 
517 517
                         <div class="txn-admin-apply-payment-po-nmbr-dv admin-modal-dialog-row">
518 518
                             <label for="txn-admin-payment-po-nmbr-inp" class="">
519 519
                                 <?php esc_html_e(
520
-                                    'P.O. / S.O. #',
521
-                                    'event_espresso'
522
-                                ); ?></label>
520
+									'P.O. / S.O. #',
521
+									'event_espresso'
522
+								); ?></label>
523 523
                             <input name="txn_admin_payment[po_number]" id="txn-admin-payment-po-nmbr-inp"
524 524
                                    class="txn-admin-apply-payment-inp" type="text" maxlength="100"/>
525 525
                             <p class="description">
526 526
                                 <?php esc_html_e(
527
-                                    'The Purchase or Sales Order Number if any (optional)',
528
-                                    'event_espresso'
529
-                                ); ?></p>
527
+									'The Purchase or Sales Order Number if any (optional)',
528
+									'event_espresso'
529
+								); ?></p>
530 530
                         </div>
531 531
 
532 532
                         <div class="txn-admin-apply-payment-accounting-dv admin-modal-dialog-row">
533 533
                             <label for="txn-admin-payment-accounting-inp"
534 534
                                    class="last">
535 535
                                 <?php esc_html_e(
536
-                                    'Notes / Extra Accounting',
537
-                                    'event_espresso'
538
-                                ); ?></label>
536
+									'Notes / Extra Accounting',
537
+									'event_espresso'
538
+								); ?></label>
539 539
                             <input name="txn_admin_payment[accounting]" id="txn-admin-payment-accounting-inp"
540 540
                                    class="txn-admin-apply-payment-inp" type="text" value="<?php echo $REG_code; ?>"
541 541
                                    maxlength="100"/> <input type="hidden" id="txn-admin-reg-code-inp"
542 542
                                                             value="<?php echo $REG_code; ?>"/>
543 543
                             <p class="description">
544 544
                                 <?php esc_html_e(
545
-                                    'An extra field you may use for accounting purposes or simple notes. Defaults to the primary registrant\'s registration code.',
546
-                                    'event_espresso'
547
-                                ); ?></p>
545
+									'An extra field you may use for accounting purposes or simple notes. Defaults to the primary registrant\'s registration code.',
546
+									'event_espresso'
547
+								); ?></p>
548 548
                         </div>
549 549
 
550 550
                         <div class="txn-admin-apply-payment-registrations-dv admin-modal-dialog-row">
551 551
                             <label for="txn-admin-payment-registrations-inp"
552 552
                                    class="last">
553 553
                                 <?php esc_html_e(
554
-                                    'Registrations to Apply Payment to:',
555
-                                    'event_espresso'
556
-                                ); ?></label>
554
+									'Registrations to Apply Payment to:',
555
+									'event_espresso'
556
+								); ?></label>
557 557
                             <label class="txn-admin-apply-payment-to-registrations-lbl">
558 558
                                 <input type="radio" value="1" id="txn-admin-apply-payment-to-all-registrations-inp"
559 559
                                        name="txn_admin_payment[apply_to_all_registrations]" checked="checked"/>
@@ -571,15 +571,15 @@  discard block
 block discarded – undo
571 571
                             <label for="txn-admin-payment-reg-status-inp"
572 572
                                    class="last">
573 573
                                 <?php esc_html_e(
574
-                                    'Change Registration Status?',
575
-                                    'event_espresso'
576
-                                ); ?></label>
574
+									'Change Registration Status?',
575
+									'event_espresso'
576
+								); ?></label>
577 577
                             <?php echo $status_change_select; ?>
578 578
                             <p class="description">
579 579
                                 <?php esc_html_e(
580
-                                    'If you wish to change the status for the registrations selected above, then select which status from this dropdown.',
581
-                                    'event_espresso'
582
-                                ); ?></p>
580
+									'If you wish to change the status for the registrations selected above, then select which status from this dropdown.',
581
+									'event_espresso'
582
+								); ?></p>
583 583
                             <br/>
584 584
                         </div>
585 585
 
@@ -600,14 +600,14 @@  discard block
 block discarded – undo
600 600
                             <br class="clear-float"/>
601 601
                             <p class="description">
602 602
                                 <?php printf(
603
-                                    esc_html__(
604
-                                        '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.',
605
-                                        'event_espresso'
606
-                                    ),
607
-                                    '<strong>',
608
-                                    '</strong>',
609
-                                    '<br />'
610
-                                ); ?></p>
603
+									esc_html__(
604
+										'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.',
605
+										'event_espresso'
606
+									),
607
+									'<strong>',
608
+									'</strong>',
609
+									'<br />'
610
+								); ?></p>
611 611
                             <label></label>
612 612
                         </div>
613 613
                         <div class="clear"></div>
@@ -648,9 +648,9 @@  discard block
 block discarded – undo
648 648
                     <li>
649 649
                         <span id="ee-ajax-processing-text" style="display:none;">
650 650
                             <?php esc_html_e(
651
-                                'Processing...',
652
-                                'event_espresso'
653
-                            ); ?></span>
651
+								'Processing...',
652
+								'event_espresso'
653
+							); ?></span>
654 654
                     </li>
655 655
                 </ul>
656 656
 
@@ -665,9 +665,9 @@  discard block
 block discarded – undo
665 665
                 style="display:none;">
666 666
                 <span class="ee-icon ee-icon-cash-add"></span>
667 667
                 <?php echo esc_html__(
668
-                    'Delete Payment/Refund for Transaction #',
669
-                    'event_espresso'
670
-                ) . $txn_nmbr['value']; ?>
668
+					'Delete Payment/Refund for Transaction #',
669
+					'event_espresso'
670
+				) . $txn_nmbr['value']; ?>
671 671
             </h2>
672 672
 
673 673
             <form name="txn-admin-delete-payment-frm" id="txn-admin-delete-payment-frm"
@@ -689,19 +689,19 @@  discard block
 block discarded – undo
689 689
                             <label for="delete-txn-admin-payment-reg-status-inp"
690 690
                                    class="last">
691 691
                                 <?php esc_html_e(
692
-                                    'Change Registration Status?',
693
-                                    'event_espresso'
694
-                                ); ?></label>
692
+									'Change Registration Status?',
693
+									'event_espresso'
694
+								); ?></label>
695 695
                             <?php echo $delete_status_change_select; ?>
696 696
                             <p class="description">
697 697
                                 <?php printf(
698
-                                    esc_html__(
699
-                                        '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',
700
-                                        'event_espresso'
701
-                                    ),
702
-                                    '<strong>',
703
-                                    '</strong>'
704
-                                ); ?></p>
698
+									esc_html__(
699
+										'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',
700
+										'event_espresso'
701
+									),
702
+									'<strong>',
703
+									'</strong>'
704
+								); ?></p>
705 705
                         </div>
706 706
 
707 707
                         <div class="ee-attention txn-admin-apply-payment-accounting-dv admin-modal-dialog-row">
@@ -710,9 +710,9 @@  discard block
 block discarded – undo
710 710
                             <input type="checkbox" value="1" name="delete_txn_reg_status_change[send_notifications]">
711 711
                             <p class="description">
712 712
                                 <?php esc_html_e(
713
-                                    '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.',
714
-                                    'event_espresso'
715
-                                ); ?></p>
713
+									'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.',
714
+									'event_espresso'
715
+								); ?></p>
716 716
                         </div>
717 717
                         <div class="clear"></div>
718 718
 
@@ -744,16 +744,16 @@  discard block
 block discarded – undo
744 744
     <?php endif; // $grand_raw_total > 0?>
745 745
 
746 746
     <?php
747
-    if (WP_DEBUG) {
748
-        $delivered_messages = get_option('EED_Messages__payment', array());
749
-        if (isset($delivered_messages[ $TXN_ID ])) {
750
-            ?>
747
+	if (WP_DEBUG) {
748
+		$delivered_messages = get_option('EED_Messages__payment', array());
749
+		if (isset($delivered_messages[ $TXN_ID ])) {
750
+			?>
751 751
             <h4 class="admin-primary-mbox-h4 hdr-has-icon"><span
752 752
                     class="dashicons dashicons-email-alt"></span>
753 753
                 <?php esc_html_e(
754
-                    'Messages Sent to Primary Registrant',
755
-                    'event_espresso'
756
-                ); ?></h4>
754
+					'Messages Sent to Primary Registrant',
755
+					'event_espresso'
756
+				); ?></h4>
757 757
 
758 758
             <div class="admin-primary-mbox-tbl-wrap">
759 759
                 <table class="admin-primary-mbox-tbl">
@@ -767,26 +767,26 @@  discard block
 block discarded – undo
767 767
                     </thead>
768 768
                     <tbody>
769 769
                     <?php foreach ($delivered_messages[ $TXN_ID ] as $timestamp => $delivered_message) :
770
-                        ?>
770
+						?>
771 771
                         <tr>
772 772
                             <td class="jst-left">
773 773
                                 <?php echo date(
774
-                                    get_option('date_format') . ' ' . get_option('time_format'),
775
-                                    ($timestamp + (get_option('gmt_offset') * HOUR_IN_SECONDS))
776
-                                ); ?></td>
774
+									get_option('date_format') . ' ' . get_option('time_format'),
775
+									($timestamp + (get_option('gmt_offset') * HOUR_IN_SECONDS))
776
+								); ?></td>
777 777
                             <td class="jst-left"><?php echo isset($delivered_message['message_type'])
778
-                                    ? $delivered_message['message_type'] : ''; ?></td>
778
+									? $delivered_message['message_type'] : ''; ?></td>
779 779
                             <td class="jst-left"><?php echo isset($delivered_message['pay_status'])
780
-                                    ? $delivered_message['pay_status'] : ''; ?></td>
780
+									? $delivered_message['pay_status'] : ''; ?></td>
781 781
                             <td class="jst-left"><?php echo isset($delivered_message['txn_status'])
782
-                                    ? $delivered_message['txn_status'] : ''; ?></td>
782
+									? $delivered_message['txn_status'] : ''; ?></td>
783 783
                         </tr>
784 784
                     <?php endforeach; // $delivered_messages?>
785 785
                     </tbody>
786 786
                 </table>
787 787
             </div>
788 788
             <?php
789
-        }
790
-    }
791
-    ?>
789
+		}
790
+	}
791
+	?>
792 792
 </div>
Please login to merge, or discard this patch.
Braces   +10 added lines, -4 removed lines patch added patch discarded remove patch
@@ -210,10 +210,13 @@  discard block
 block discarded – undo
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">
@@ -308,13 +311,16 @@  discard block
 block discarded – undo
308 311
                  */
309 312
                 do_action('AHEE__txn_admin_details_main_meta_box_txn_details__after_actions_buttons');
310 313
                 ?>
311
-            <?php else : ?>
314
+            <?php else {
315
+	: ?>
312 316
                 <li>
313 317
                     <p>
314 318
                         <?php esc_html__(
315 319
                             'You do not have access to apply payments or refunds.',
316 320
                             'event_espresso'
317
-                        ); ?></p>
321
+                        );
322
+}
323
+?></p>
318 324
                 </li>
319 325
             <?php endif; ?>
320 326
         </ul>
Please login to merge, or discard this patch.