Completed
Pull Request — master (#991)
by
unknown
33:15
created
templates/txn_admin_details_main_meta_box_txn_details.template.php 2 patches
Indentation   +187 added lines, -187 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>
@@ -291,7 +291,7 @@  discard block
 block discarded – undo
291 291
 
292 292
         <ul id="txn-admin-payment-options-ul">
293 293
             <?php if ($can_edit_payments) :
294
-                ?>
294
+				?>
295 295
                 <li>
296 296
                     <a id="display-txn-admin-apply-payment" class="button-primary no-icon no-hide"
297 297
                        rel="txn-admin-apply-payment"> <!--display-the-hidden -->
@@ -308,9 +308,9 @@  discard block
 block discarded – undo
308 308
                 <li>
309 309
                     <p>
310 310
                         <?php esc_html__(
311
-                            'You do not have access to apply payments or refunds.',
312
-                            'event_espresso'
313
-                        ); ?></p>
311
+							'You do not have access to apply payments or refunds.',
312
+							'event_espresso'
313
+						); ?></p>
314 314
                 </li>
315 315
             <?php endif; ?>
316 316
         </ul>
@@ -328,23 +328,23 @@  discard block
 block discarded – undo
328 328
                 style="display:none;">
329 329
                 <div class="ee-icon ee-icon-cash-edit float-left"></div>
330 330
                 <?php
331
-                echo sprintf(
332
-                    __('Edit Payment #%s for Transaction #%s', 'event_espresso'),
333
-                    '<span></span>',
334
-                    $txn_nmbr['value']
335
-                );
336
-                ?>
331
+				echo sprintf(
332
+					__('Edit Payment #%s for Transaction #%s', 'event_espresso'),
333
+					'<span></span>',
334
+					$txn_nmbr['value']
335
+				);
336
+				?>
337 337
             </h2>
338 338
 
339 339
             <h2 id="admin-modal-dialog-edit-refund-h2" class="admin-modal-dialog-h2 hdr-has-icon" style="display:none;">
340 340
                 <div class="ee-icon ee-icon-cash-edit float-left"></div>
341 341
                 <?php
342
-                echo sprintf(
343
-                    __('Edit Refund #%s for Transaction #%s', 'event_espresso'),
344
-                    '<span></span>',
345
-                    $txn_nmbr['value']
346
-                );
347
-                ?>
342
+				echo sprintf(
343
+					__('Edit Refund #%s for Transaction #%s', 'event_espresso'),
344
+					'<span></span>',
345
+					$txn_nmbr['value']
346
+				);
347
+				?>
348 348
             </h2>
349 349
 
350 350
             <h2 id="admin-modal-dialog-apply-refund-h2" class="admin-modal-dialog-h2 hdr-has-icon"
@@ -378,55 +378,55 @@  discard block
 block discarded – undo
378 378
                         <div class="txn-admin-apply-payment-date-dv admin-modal-dialog-row">
379 379
                             <div class="validation-notice-dv">
380 380
                                 <?php esc_html_e(
381
-                                    'The following is  a required field',
382
-                                    'event_espresso'
383
-                                ); ?></div>
381
+									'The following is  a required field',
382
+									'event_espresso'
383
+								); ?></div>
384 384
                             <label for="txn-admin-payment-date-inp" class="">
385 385
                                 <?php esc_html_e(
386
-                                    'Payment Date',
387
-                                    'event_espresso'
388
-                                ); ?></label>
386
+									'Payment Date',
387
+									'event_espresso'
388
+								); ?></label>
389 389
                             <input name="txn_admin_payment[date]" id="txn-admin-payment-date-inp"
390 390
                                    class="txn-admin-apply-payment-inp required" type="text"
391 391
                                    value="<?php echo date('Y-m-d g:i a', current_time('timestamp')); ?>"/>
392 392
                             <p class="description">
393 393
                                 <?php esc_html_e(
394
-                                    'The date the payment was actually made on',
395
-                                    'event_espresso'
396
-                                ); ?></p>
394
+									'The date the payment was actually made on',
395
+									'event_espresso'
396
+								); ?></p>
397 397
                         </div>
398 398
 
399 399
                         <div class="txn-admin-apply-payment-amount-dv admin-modal-dialog-row">
400 400
                             <div class="validation-notice-dv">
401 401
                                 <?php esc_html_e(
402
-                                    'The following is  a required field',
403
-                                    'event_espresso'
404
-                                ); ?></div>
402
+									'The following is  a required field',
403
+									'event_espresso'
404
+								); ?></div>
405 405
                             <label for="txn-admin-payment-amount-inp" class="">
406 406
                                 <?php esc_html_e(
407
-                                    'Amount',
408
-                                    'event_espresso'
409
-                                ); ?></label>
407
+									'Amount',
408
+									'event_espresso'
409
+								); ?></label>
410 410
                             <input name="txn_admin_payment[amount]" id="txn-admin-payment-amount-inp"
411 411
                                    class="txn-admin-apply-payment-inp required" type="text" value=""/>
412 412
                             <p class="description">
413 413
                                 <?php esc_html_e(
414
-                                    'The amount of the payment',
415
-                                    'event_espresso'
416
-                                ); ?></p>
414
+									'The amount of the payment',
415
+									'event_espresso'
416
+								); ?></p>
417 417
                         </div>
418 418
 
419 419
                         <div class="txn-admin-apply-payment-method-dv admin-modal-dialog-row">
420 420
                             <div class="validation-notice-dv">
421 421
                                 <?php esc_html_e(
422
-                                    'The following is  a required field',
423
-                                    'event_espresso'
424
-                                ); ?></div>
422
+									'The following is  a required field',
423
+									'event_espresso'
424
+								); ?></div>
425 425
                             <label for="txn-admin-payment-method-inp" class="">
426 426
                                 <?php esc_html_e(
427
-                                    'Method of Payment',
428
-                                    'event_espresso'
429
-                                ); ?></label>
427
+									'Method of Payment',
428
+									'event_espresso'
429
+								); ?></label>
430 430
                             <select name="txn_admin_payment[PMD_ID]" id="txn-admin-payment-method-slct"
431 431
                                     class="txn-admin-apply-payment-slct required" type="text">
432 432
                                 <?php foreach ($payment_methods as $method) : ?>
@@ -434,39 +434,39 @@  discard block
 block discarded – undo
434 434
                                     <option id="payment-method-opt-<?php echo $method->slug(); ?>"
435 435
                                             value="<?php echo $method->ID(); ?>"<?php echo $selected; ?>>
436 436
                                         <?php echo sanitize_key(
437
-                                            $method->admin_desc()
438
-                                        )
439
-                                            ? substr(
440
-                                                $method->admin_desc(),
441
-                                                0,
442
-                                                128
443
-                                            )
444
-                                            : $method->admin_name(); ?>&nbsp;&nbsp;
437
+											$method->admin_desc()
438
+										)
439
+											? substr(
440
+												$method->admin_desc(),
441
+												0,
442
+												128
443
+											)
444
+											: $method->admin_name(); ?>&nbsp;&nbsp;
445 445
                                     </option>
446 446
                                 <?php endforeach; ?>
447 447
                             </select>
448 448
                             <p class="description">
449 449
                                 <?php esc_html_e(
450
-                                    'Whether the payment was made via PayPal, Credit Card, Cheque, or Cash',
451
-                                    'event_espresso'
452
-                                ); ?></p>
450
+									'Whether the payment was made via PayPal, Credit Card, Cheque, or Cash',
451
+									'event_espresso'
452
+								); ?></p>
453 453
                         </div>
454 454
 
455 455
                         <div class="mop-PP mop-CC mop-CHQ mop">
456 456
                             <div class="txn-admin-apply-payment-gw-txn-id-dv admin-modal-dialog-row">
457 457
                                 <label for="txn-admin-payment-txn-id-inp" class="">
458 458
                                     <?php esc_html_e(
459
-                                        'TXN ID / CHQ #',
460
-                                        'event_espresso'
461
-                                    ); ?></label>
459
+										'TXN ID / CHQ #',
460
+										'event_espresso'
461
+									); ?></label>
462 462
                                 <input name="txn_admin_payment[txn_id_chq_nmbr]"
463 463
                                        id="txn-admin-payment-txn-id-chq-nmbr-inp" class="txn-admin-apply-payment-inp"
464 464
                                        type="text" maxlength="100"/>
465 465
                                 <p class="description">
466 466
                                     <?php esc_html_e(
467
-                                        'The Transaction ID sent back from the payment gateway, or the Cheque #',
468
-                                        'event_espresso'
469
-                                    ); ?></p>
467
+										'The Transaction ID sent back from the payment gateway, or the Cheque #',
468
+										'event_espresso'
469
+									); ?></p>
470 470
                             </div>
471 471
                         </div>
472 472
 
@@ -479,9 +479,9 @@  discard block
 block discarded – undo
479 479
                                        type="text"/>
480 480
                                 <p class="description">
481 481
                                     <?php esc_html_e(
482
-                                        'The gateway response string (optional)',
483
-                                        'event_espresso'
484
-                                    ); ?></p>
482
+										'The gateway response string (optional)',
483
+										'event_espresso'
484
+									); ?></p>
485 485
                             </div>
486 486
                         </div>
487 487
 
@@ -489,9 +489,9 @@  discard block
 block discarded – undo
489 489
                             <div class="txn-admin-apply-payment-status-dv admin-modal-dialog-row">
490 490
                                 <label for="txn-admin-payment-status-inp" class="">
491 491
                                     <?php esc_html_e(
492
-                                        'Payment Status',
493
-                                        'event_espresso'
494
-                                    ); ?></label>
492
+										'Payment Status',
493
+										'event_espresso'
494
+									); ?></label>
495 495
                                 <select name="txn_admin_payment[status]" id="txn-admin-payment-status-slct"
496 496
                                         class="txn-admin-apply-payment-slct" type="text">
497 497
                                     <?php foreach ($payment_status as $STS_ID => $STS_code) : ?>
@@ -504,52 +504,52 @@  discard block
 block discarded – undo
504 504
                                 </select>
505 505
                                 <p class="description">
506 506
                                     <?php esc_html_e(
507
-                                        'Whether the payment was approved, cancelled, declined or failed after submission to the gateway',
508
-                                        'event_espresso'
509
-                                    ); ?></p>
507
+										'Whether the payment was approved, cancelled, declined or failed after submission to the gateway',
508
+										'event_espresso'
509
+									); ?></p>
510 510
                             </div>
511 511
                         </div>
512 512
 
513 513
                         <div class="txn-admin-apply-payment-po-nmbr-dv admin-modal-dialog-row">
514 514
                             <label for="txn-admin-payment-po-nmbr-inp" class="">
515 515
                                 <?php esc_html_e(
516
-                                    'P.O. / S.O. #',
517
-                                    'event_espresso'
518
-                                ); ?></label>
516
+									'P.O. / S.O. #',
517
+									'event_espresso'
518
+								); ?></label>
519 519
                             <input name="txn_admin_payment[po_number]" id="txn-admin-payment-po-nmbr-inp"
520 520
                                    class="txn-admin-apply-payment-inp" type="text" maxlength="100"/>
521 521
                             <p class="description">
522 522
                                 <?php esc_html_e(
523
-                                    'The Purchase or Sales Order Number if any (optional)',
524
-                                    'event_espresso'
525
-                                ); ?></p>
523
+									'The Purchase or Sales Order Number if any (optional)',
524
+									'event_espresso'
525
+								); ?></p>
526 526
                         </div>
527 527
 
528 528
                         <div class="txn-admin-apply-payment-accounting-dv admin-modal-dialog-row">
529 529
                             <label for="txn-admin-payment-accounting-inp"
530 530
                                    class="last">
531 531
                                 <?php esc_html_e(
532
-                                    'Notes / Extra Accounting',
533
-                                    'event_espresso'
534
-                                ); ?></label>
532
+									'Notes / Extra Accounting',
533
+									'event_espresso'
534
+								); ?></label>
535 535
                             <input name="txn_admin_payment[accounting]" id="txn-admin-payment-accounting-inp"
536 536
                                    class="txn-admin-apply-payment-inp" type="text" value="<?php echo $REG_code; ?>"
537 537
                                    maxlength="100"/> <input type="hidden" id="txn-admin-reg-code-inp"
538 538
                                                             value="<?php echo $REG_code; ?>"/>
539 539
                             <p class="description">
540 540
                                 <?php esc_html_e(
541
-                                    'An extra field you may use for accounting purposes or simple notes. Defaults to the primary registrant\'s registration code.',
542
-                                    'event_espresso'
543
-                                ); ?></p>
541
+									'An extra field you may use for accounting purposes or simple notes. Defaults to the primary registrant\'s registration code.',
542
+									'event_espresso'
543
+								); ?></p>
544 544
                         </div>
545 545
 
546 546
                         <div class="txn-admin-apply-payment-registrations-dv admin-modal-dialog-row">
547 547
                             <label for="txn-admin-payment-registrations-inp"
548 548
                                    class="last">
549 549
                                 <?php esc_html_e(
550
-                                    'Registrations to Apply Payment to:',
551
-                                    'event_espresso'
552
-                                ); ?></label>
550
+									'Registrations to Apply Payment to:',
551
+									'event_espresso'
552
+								); ?></label>
553 553
                             <label class="txn-admin-apply-payment-to-registrations-lbl">
554 554
                                 <input type="radio" value="1" id="txn-admin-apply-payment-to-all-registrations-inp"
555 555
                                        name="txn_admin_payment[apply_to_all_registrations]" checked="checked"/>
@@ -567,15 +567,15 @@  discard block
 block discarded – undo
567 567
                             <label for="txn-admin-payment-reg-status-inp"
568 568
                                    class="last">
569 569
                                 <?php esc_html_e(
570
-                                    'Change Registration Status?',
571
-                                    'event_espresso'
572
-                                ); ?></label>
570
+									'Change Registration Status?',
571
+									'event_espresso'
572
+								); ?></label>
573 573
                             <?php echo $status_change_select; ?>
574 574
                             <p class="description">
575 575
                                 <?php esc_html_e(
576
-                                    'If you wish to change the status for the registrations selected above, then select which status from this dropdown.',
577
-                                    'event_espresso'
578
-                                ); ?></p>
576
+									'If you wish to change the status for the registrations selected above, then select which status from this dropdown.',
577
+									'event_espresso'
578
+								); ?></p>
579 579
                             <br/>
580 580
                         </div>
581 581
 
@@ -596,14 +596,14 @@  discard block
 block discarded – undo
596 596
                             <br class="clear-float"/>
597 597
                             <p class="description">
598 598
                                 <?php printf(
599
-                                    esc_html__(
600
-                                        '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.',
601
-                                        'event_espresso'
602
-                                    ),
603
-                                    '<strong>',
604
-                                    '</strong>',
605
-                                    '<br />'
606
-                                ); ?></p>
599
+									esc_html__(
600
+										'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.',
601
+										'event_espresso'
602
+									),
603
+									'<strong>',
604
+									'</strong>',
605
+									'<br />'
606
+								); ?></p>
607 607
                             <label></label>
608 608
                         </div>
609 609
                         <div class="clear"></div>
@@ -644,9 +644,9 @@  discard block
 block discarded – undo
644 644
                     <li>
645 645
                         <span id="ee-ajax-processing-text" style="display:none;">
646 646
                             <?php esc_html_e(
647
-                                'Processing...',
648
-                                'event_espresso'
649
-                            ); ?></span>
647
+								'Processing...',
648
+								'event_espresso'
649
+							); ?></span>
650 650
                     </li>
651 651
                 </ul>
652 652
 
@@ -661,9 +661,9 @@  discard block
 block discarded – undo
661 661
                 style="display:none;">
662 662
                 <span class="ee-icon ee-icon-cash-add"></span>
663 663
                 <?php echo esc_html__(
664
-                    'Delete Payment/Refund for Transaction #',
665
-                    'event_espresso'
666
-                ) . $txn_nmbr['value']; ?>
664
+					'Delete Payment/Refund for Transaction #',
665
+					'event_espresso'
666
+				) . $txn_nmbr['value']; ?>
667 667
             </h2>
668 668
 
669 669
             <form name="txn-admin-delete-payment-frm" id="txn-admin-delete-payment-frm"
@@ -685,19 +685,19 @@  discard block
 block discarded – undo
685 685
                             <label for="delete-txn-admin-payment-reg-status-inp"
686 686
                                    class="last">
687 687
                                 <?php esc_html_e(
688
-                                    'Change Registration Status?',
689
-                                    'event_espresso'
690
-                                ); ?></label>
688
+									'Change Registration Status?',
689
+									'event_espresso'
690
+								); ?></label>
691 691
                             <?php echo $delete_status_change_select; ?>
692 692
                             <p class="description">
693 693
                                 <?php printf(
694
-                                    esc_html__(
695
-                                        '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',
696
-                                        'event_espresso'
697
-                                    ),
698
-                                    '<strong>',
699
-                                    '</strong>'
700
-                                ); ?></p>
694
+									esc_html__(
695
+										'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',
696
+										'event_espresso'
697
+									),
698
+									'<strong>',
699
+									'</strong>'
700
+								); ?></p>
701 701
                         </div>
702 702
 
703 703
                         <div class="ee-attention txn-admin-apply-payment-accounting-dv admin-modal-dialog-row">
@@ -706,9 +706,9 @@  discard block
 block discarded – undo
706 706
                             <input type="checkbox" value="1" name="delete_txn_reg_status_change[send_notifications]">
707 707
                             <p class="description">
708 708
                                 <?php esc_html_e(
709
-                                    '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.',
710
-                                    'event_espresso'
711
-                                ); ?></p>
709
+									'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.',
710
+									'event_espresso'
711
+								); ?></p>
712 712
                         </div>
713 713
                         <div class="clear"></div>
714 714
 
@@ -740,16 +740,16 @@  discard block
 block discarded – undo
740 740
     <?php endif; // $grand_raw_total > 0?>
741 741
 
742 742
     <?php
743
-    if (WP_DEBUG) {
744
-        $delivered_messages = get_option('EED_Messages__payment', array());
745
-        if (isset($delivered_messages[ $TXN_ID ])) {
746
-            ?>
743
+	if (WP_DEBUG) {
744
+		$delivered_messages = get_option('EED_Messages__payment', array());
745
+		if (isset($delivered_messages[ $TXN_ID ])) {
746
+			?>
747 747
             <h4 class="admin-primary-mbox-h4 hdr-has-icon"><span
748 748
                     class="dashicons dashicons-email-alt"></span>
749 749
                 <?php esc_html_e(
750
-                    'Messages Sent to Primary Registrant',
751
-                    'event_espresso'
752
-                ); ?></h4>
750
+					'Messages Sent to Primary Registrant',
751
+					'event_espresso'
752
+				); ?></h4>
753 753
 
754 754
             <div class="admin-primary-mbox-tbl-wrap">
755 755
                 <table class="admin-primary-mbox-tbl">
@@ -763,26 +763,26 @@  discard block
 block discarded – undo
763 763
                     </thead>
764 764
                     <tbody>
765 765
                     <?php foreach ($delivered_messages[ $TXN_ID ] as $timestamp => $delivered_message) :
766
-                        ?>
766
+						?>
767 767
                         <tr>
768 768
                             <td class="jst-left">
769 769
                                 <?php echo date(
770
-                                    get_option('date_format') . ' ' . get_option('time_format'),
771
-                                    ($timestamp + (get_option('gmt_offset') * HOUR_IN_SECONDS))
772
-                                ); ?></td>
770
+									get_option('date_format') . ' ' . get_option('time_format'),
771
+									($timestamp + (get_option('gmt_offset') * HOUR_IN_SECONDS))
772
+								); ?></td>
773 773
                             <td class="jst-left"><?php echo isset($delivered_message['message_type'])
774
-                                    ? $delivered_message['message_type'] : ''; ?></td>
774
+									? $delivered_message['message_type'] : ''; ?></td>
775 775
                             <td class="jst-left"><?php echo isset($delivered_message['pay_status'])
776
-                                    ? $delivered_message['pay_status'] : ''; ?></td>
776
+									? $delivered_message['pay_status'] : ''; ?></td>
777 777
                             <td class="jst-left"><?php echo isset($delivered_message['txn_status'])
778
-                                    ? $delivered_message['txn_status'] : ''; ?></td>
778
+									? $delivered_message['txn_status'] : ''; ?></td>
779 779
                         </tr>
780 780
                     <?php endforeach; // $delivered_messages?>
781 781
                     </tbody>
782 782
                 </table>
783 783
             </div>
784 784
             <?php
785
-        }
786
-    }
787
-    ?>
785
+		}
786
+	}
787
+	?>
788 788
 </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">
@@ -304,13 +307,16 @@  discard block
 block discarded – undo
304 307
                         <?php esc_html_e('Apply Refund', 'event_espresso'); ?>
305 308
                     </a>
306 309
                 </li>
307
-            <?php else : ?>
310
+            <?php else {
311
+	: ?>
308 312
                 <li>
309 313
                     <p>
310 314
                         <?php esc_html__(
311 315
                             'You do not have access to apply payments or refunds.',
312 316
                             'event_espresso'
313
-                        ); ?></p>
317
+                        );
318
+}
319
+?></p>
314 320
                 </li>
315 321
             <?php endif; ?>
316 322
         </ul>
Please login to merge, or discard this patch.