Initial Commit
This commit is contained in:
74
views/payments/line-item-actions.php
Normal file
74
views/payments/line-item-actions.php
Normal file
@ -0,0 +1,74 @@
|
||||
<?php
|
||||
/**
|
||||
* Total payments view.
|
||||
*
|
||||
* @since 2.0.0
|
||||
*/
|
||||
?>
|
||||
<div class="wu-bg-gray-100 wu-mt-3 wu--mb-3 wu--mx-3 wu-p-4 wu-flex wu-border-solid wu-border-0 wu-border-t wu-border-gray-300">
|
||||
|
||||
<div class="wu-justify-self-end wu-mr-auto">
|
||||
|
||||
<ul class="wu-list-none wu-m-0 wu-p-0">
|
||||
|
||||
<?php foreach ($actions as $action_slug => $action) : ?>
|
||||
|
||||
<li class="wu-inline-block wu-m-0 wu-mr-2">
|
||||
|
||||
<a title="<?php echo esc_attr($action['label']); ?>" href="<?php echo esc_attr($action['href']); ?>" class="<?php echo esc_attr($action['classes']); ?>">
|
||||
|
||||
<?php if ($action['icon_classes']) : ?>
|
||||
|
||||
<span class="<?php echo esc_attr($action['icon_classes']); ?>"></span>
|
||||
|
||||
<?php endif; ?>
|
||||
|
||||
<?php echo esc_attr($action['label']); ?>
|
||||
|
||||
</a>
|
||||
|
||||
</li>
|
||||
|
||||
<?php endforeach; ?>
|
||||
|
||||
</ul>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="wu-justify-self-end wu-ml-auto wu-justify-center wu-flex wu-items-center">
|
||||
|
||||
<div>
|
||||
|
||||
<span class="wu-text-xs wu-font-bold wu-uppercase wu-text-gray-600">
|
||||
|
||||
<?php _e('Refunds:', 'wp-ultimo'); ?>
|
||||
|
||||
</span>
|
||||
|
||||
<span class="wu-ml-2 wu-text-gray-700">
|
||||
|
||||
<?php echo wu_format_currency($payment->get_refund_total(), $payment->get_currency()); ?>
|
||||
|
||||
</span>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="wu-ml-6">
|
||||
|
||||
<span class="wu-text-xs wu-font-bold wu-uppercase wu-text-gray-700">
|
||||
|
||||
<?php _e('Total:', 'wp-ultimo'); ?>
|
||||
|
||||
</span>
|
||||
|
||||
<span class="wu-ml-2">
|
||||
|
||||
<?php echo wu_format_currency($payment->get_total(), $payment->get_currency()); ?>
|
||||
|
||||
</span>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
49
views/payments/tax-details.php
Normal file
49
views/payments/tax-details.php
Normal file
@ -0,0 +1,49 @@
|
||||
<?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 _e('Total', 'wp-ultimo'); ?></span></td>
|
||||
<td><?php echo wu_format_currency($payment->get_tax_total()); ?></td>
|
||||
</tr>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php else : ?>
|
||||
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<?php _e('No tax rates.', 'wp-ultimo'); ?>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<?php endif; ?>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
</div>
|
||||
|
||||
<style>
|
||||
#wu-line_item_list_table .tablenav.bottom,
|
||||
#wu-line_item_list_table tfoot {
|
||||
display: none;
|
||||
}
|
||||
</style>
|
Reference in New Issue
Block a user