Escape everything that should be escaped. Add nonce checks where needed. Sanitize all inputs. Apply Code style changes across the codebase. Correct many deprecation notices. Optimize load order of many filters.
50 lines
1023 B
PHP
50 lines
1023 B
PHP
<?php
|
|
/**
|
|
* Total payments view.
|
|
*
|
|
* @since 2.0.0
|
|
*/
|
|
?>
|
|
<div id="payments-tax-breakthrough" class="wu-widget-inset">
|
|
|
|
<table class="wp-list-table widefat striped payments wu-border-0">
|
|
<tbody>
|
|
|
|
<?php if ( ! empty($tax_breakthrough)) : ?>
|
|
|
|
<?php foreach ($tax_breakthrough as $tax_rate => $tax_total) : ?>
|
|
<tr>
|
|
<td><?php echo $tax_rate; ?>%</td>
|
|
<td><?php echo wu_format_currency($tax_total); ?></td>
|
|
</tr>
|
|
<?php endforeach; ?>
|
|
|
|
<?php if ( ! empty($payment)) : ?>
|
|
<tr>
|
|
<td><span class="wu-font-bold wu-uppercase wu-text-xs wu-text-gray-700"><?php esc_html_e('Total', 'wp-multisite-waas'); ?></span></td>
|
|
<td><?php echo wu_format_currency($payment->get_tax_total()); ?></td>
|
|
</tr>
|
|
<?php endif; ?>
|
|
|
|
<?php else : ?>
|
|
|
|
<tr>
|
|
<td colspan="2">
|
|
<?php esc_html_e('No tax rates.', 'wp-multisite-waas'); ?>
|
|
</td>
|
|
</tr>
|
|
|
|
<?php endif; ?>
|
|
|
|
</tbody>
|
|
</table>
|
|
|
|
</div>
|
|
|
|
<style>
|
|
#wu-line_item_list_table .tablenav.bottom,
|
|
#wu-line_item_list_table tfoot {
|
|
display: none;
|
|
}
|
|
</style>
|