Use new code style

This commit is contained in:
David Stone
2025-02-07 19:02:33 -07:00
parent 0181024ae1
commit 8433379d90
672 changed files with 37107 additions and 45249 deletions

View File

@ -7,43 +7,43 @@
?>
<div id="payments-tax-breakthrough" class="wu-widget-inset">
<table class="wp-list-table widefat striped payments wu-border-0">
<tbody>
<table class="wp-list-table widefat striped payments wu-border-0">
<tbody>
<?php if (!empty($tax_breakthrough)) : ?>
<?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 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 _e('Total', 'wp-ultimo'); ?></span></td>
<td><?php echo wu_format_currency($payment->get_tax_total()); ?></td>
</tr>
<?php endif; ?>
<?php if ( ! empty($payment)) : ?>
<tr>
<td><span class="wu-font-bold wu-uppercase wu-text-xs wu-text-gray-700"><?php _e('Total', 'wp-ultimo'); ?></span></td>
<td><?php echo wu_format_currency($payment->get_tax_total()); ?></td>
</tr>
<?php endif; ?>
<?php else : ?>
<?php else : ?>
<tr>
<td colspan="2">
<?php _e('No tax rates.', 'wp-ultimo'); ?>
</td>
</tr>
<tr>
<td colspan="2">
<?php _e('No tax rates.', 'wp-ultimo'); ?>
</td>
</tr>
<?php endif; ?>
<?php endif; ?>
</tbody>
</table>
</tbody>
</table>
</div>
<style>
#wu-line_item_list_table .tablenav.bottom,
#wu-line_item_list_table tfoot {
display: none;
display: none;
}
</style>