| 1 |
<?php |
| 2 |
|
| 3 |
defined('ABSPATH') or die; |
| 4 |
|
| 5 |
// phpcs:disable WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound -- Template variables in view files |
| 6 |
?> |
| 7 |
<div class="ff_transactions"> |
| 8 |
<?php |
| 9 |
do_action_deprecated( |
| 10 |
'fluentform_transactions_before_table', |
| 11 |
[ |
| 12 |
$transactions |
| 13 |
], |
| 14 |
FLUENTFORM_FRAMEWORK_UPGRADE, |
| 15 |
'fluentform/transactions_before_table', |
| 16 |
'Use fluentform/transactions_before_table instead of fluentform_transactions_before_table.' |
| 17 |
); |
| 18 |
do_action('fluentform/transactions_before_table', $transactions); |
| 19 |
?> |
| 20 |
<table style="width: 100%;border: 1px solid #cbcbcb;margin-top: 0;" class="table ffp_order_items_table ffp_table table_bordered"> |
| 21 |
<thead> |
| 22 |
<tr> |
| 23 |
<th class="ff_th_id"><?php esc_html_e('ID', 'fluentform'); ?></th> |
| 24 |
<th class="ff_th_amount"><?php esc_html_e('Amount', 'fluentform'); ?></th> |
| 25 |
<th class="ff_th_status"><?php esc_html_e('Status', 'fluentform'); ?></th> |
| 26 |
<th class="ff_th_payment_method"><?php esc_html_e('Payment Method', 'fluentform'); ?></th> |
| 27 |
<th class="ff_th_date"><?php esc_html_e('Date', 'fluentform'); ?></th> |
| 28 |
<th class="ff_th_action"><?php esc_html_e('Action', 'fluentform'); ?></th> |
| 29 |
<?php |
| 30 |
do_action_deprecated( |
| 31 |
'fluentform_transaction_table_thead_row', |
| 32 |
[ |
| 33 |
$transactions |
| 34 |
], |
| 35 |
FLUENTFORM_FRAMEWORK_UPGRADE, |
| 36 |
'fluentform/transaction_table_thead_row', |
| 37 |
'Use fluentform/transaction_table_thead_row instead of fluentform_transaction_table_thead_row.' |
| 38 |
); |
| 39 |
|
| 40 |
do_action('fluentform/transaction_table_thead_row', $transactions); |
| 41 |
?> |
| 42 |
</tr> |
| 43 |
</thead> |
| 44 |
<tbody> |
| 45 |
<?php foreach ($transactions as $transaction): ?> |
| 46 |
<tr class="ff_row_status_<?php echo esc_attr($transaction->status); ?>"> |
| 47 |
<td class="ff_td_id">#<?php echo esc_html($transaction->id);?></td> |
| 48 |
<td class="ff_td_amount"><?php echo fluentform_sanitize_html($transaction->formatted_amount); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?></td> |
| 49 |
<td class="ff_td_status"><span class="ff_pay_status ff_pay_status_<?php echo esc_attr($transaction->status); ?>"><?php echo esc_html(ucfirst($transaction->status)); ?></span></td> |
| 50 |
<td class="ff_td_payment_method"> |
| 51 |
<span class="ff_pay_method ff_pay_method_<?php echo esc_attr($transaction->payment_method); ?>"> |
| 52 |
<?php echo esc_html(ucfirst(apply_filters('fluentform/payment_method_public_name_' . $transaction->payment_method, $transaction->payment_method))); ?> |
| 53 |
</span> |
| 54 |
</td> |
| 55 |
<td class="ff_td_date"><?php echo esc_html($transaction->formatted_date); ?></td> |
| 56 |
<td class="ff_td_action"> |
| 57 |
<a class="ff_pat_action_view" href="<?php echo esc_url($transaction->view_url) ?>"><?php echo esc_html($config['view_text']); ?></a> |
| 58 |
<?php |
| 59 |
do_action_deprecated( |
| 60 |
'fluentform_transactions_actions', |
| 61 |
[ |
| 62 |
$transactions |
| 63 |
], |
| 64 |
FLUENTFORM_FRAMEWORK_UPGRADE, |
| 65 |
'fluentform/transactions_actions', |
| 66 |
'Use fluentform/transactions_actions instead of fluentform_transactions_actions.' |
| 67 |
); |
| 68 |
do_action('fluentform/transactions_actions', $transaction); |
| 69 |
?> |
| 70 |
</td> |
| 71 |
<?php |
| 72 |
do_action_deprecated( |
| 73 |
'fluentform_transaction_table_tbody_row', |
| 74 |
[ |
| 75 |
$transactions |
| 76 |
], |
| 77 |
FLUENTFORM_FRAMEWORK_UPGRADE, |
| 78 |
'fluentform/transaction_table_tbody_row', |
| 79 |
'Use fluentform/transaction_table_tbody_row instead of fluentform_transaction_table_tbody_row.' |
| 80 |
); |
| 81 |
do_action('fluentform/transaction_table_tbody_row', $transaction, $transactions); |
| 82 |
?> |
| 83 |
</tr> |
| 84 |
<?php endforeach; ?> |
| 85 |
</tbody> |
| 86 |
<?php |
| 87 |
do_action_deprecated( |
| 88 |
'fluentform_transactions_before_table_close', |
| 89 |
[ |
| 90 |
$transactions |
| 91 |
], |
| 92 |
FLUENTFORM_FRAMEWORK_UPGRADE, |
| 93 |
'fluentform/transactions_before_table_close', |
| 94 |
'Use fluentform/transactions_before_table_close instead of fluentform_transactions_before_table_close.' |
| 95 |
); |
| 96 |
do_action('fluentform/transactions_before_table_close', $transactions); ?> |
| 97 |
</table> |
| 98 |
<?php |
| 99 |
do_action_deprecated( |
| 100 |
'fluentform_transactions_after_table', |
| 101 |
[ |
| 102 |
$transactions |
| 103 |
], |
| 104 |
FLUENTFORM_FRAMEWORK_UPGRADE, |
| 105 |
'fluentform/transactions_after_table', |
| 106 |
'Use fluentform/transactions_after_table instead of fluentform_transactions_after_table.' |
| 107 |
); |
| 108 |
do_action('fluentform/transactions_after_table', $transactions); |
| 109 |
?> |
| 110 |
</div> |
| 111 |
|