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,100 +7,100 @@
?>
<div class="wu-styling">
<ul class="lg:wu-flex wu-my-0 wu-mx-0">
<ul class="lg:wu-flex wu-my-0 wu-mx-0">
<li class="wu-p-2 wu-w-full md:wu-w-4/12 wu-relative" <?php echo wu_tooltip_text(__('MRR stands for Monthly Recurring Revenue', 'wp-ultimo')); ?>>
<li class="wu-p-2 wu-w-full md:wu-w-4/12 wu-relative" <?php echo wu_tooltip_text(__('MRR stands for Monthly Recurring Revenue', 'wp-ultimo')); ?>>
<div>
<div>
<strong class="wu-text-gray-800 wu-text-2xl md:wu-text-xl">
<?php echo wu_format_currency($mrr); ?>
</strong>
<strong class="wu-text-gray-800 wu-text-2xl md:wu-text-xl">
<?php echo wu_format_currency($mrr); ?>
</strong>
</div>
</div>
<div class="wu-text-md wu-text-gray-600">
<span class="wu-block"><?php _e('MRR', 'wp-ultimo'); ?></span>
</div>
<div class="wu-text-md wu-text-gray-600">
<span class="wu-block"><?php _e('MRR', 'wp-ultimo'); ?></span>
</div>
</li>
</li>
<li class="wu-p-2 wu-w-full md:wu-w-4/12 wu-relative">
<li class="wu-p-2 wu-w-full md:wu-w-4/12 wu-relative">
<div>
<div>
<strong class="wu-text-gray-800 wu-text-2xl md:wu-text-xl">
<?php echo wu_format_currency($gross_revenue); ?>
</strong>
<strong class="wu-text-gray-800 wu-text-2xl md:wu-text-xl">
<?php echo wu_format_currency($gross_revenue); ?>
</strong>
</div>
</div>
<div class="wu-text-md wu-text-gray-600">
<span class="wu-block"><?php _e('Gross Revenue', 'wp-ultimo'); ?></span>
</div>
<div class="wu-text-md wu-text-gray-600">
<span class="wu-block"><?php _e('Gross Revenue', 'wp-ultimo'); ?></span>
</div>
</li>
</li>
<li class="wu-p-2 wu-w-full md:wu-w-4/12 wu-relative">
<li class="wu-p-2 wu-w-full md:wu-w-4/12 wu-relative">
<div>
<div>
<strong class="wu-text-gray-800 wu-text-2xl md:wu-text-xl">
<?php echo wu_format_currency($refunds); ?>
</strong>
<strong class="wu-text-gray-800 wu-text-2xl md:wu-text-xl">
<?php echo wu_format_currency($refunds); ?>
</strong>
</div>
</div>
<div class="wu-text-md wu-text-gray-600">
<span class="wu-block"><?php _e('Refunded', 'wp-ultimo'); ?></span>
</div>
<div class="wu-text-md wu-text-gray-600">
<span class="wu-block"><?php _e('Refunded', 'wp-ultimo'); ?></span>
</div>
</li>
</li>
</ul>
</ul>
<div class="wu--mx-3 wu--mb-3 wu-mt-2">
<div class="wu--mx-3 wu--mb-3 wu-mt-2">
<table class="wp-list-table widefat fixed striped wu-border-t-1 wu-border-l-0 wu-border-r-0">
<table class="wp-list-table widefat fixed striped wu-border-t-1 wu-border-l-0 wu-border-r-0">
<thead>
<tr>
<th><?php _e('Product', 'wp-ultimo'); ?></th>
<th class="wu-text-right"><?php _e('Revenue', 'wp-ultimo'); ?></th>
</tr>
</thead>
<thead>
<tr>
<th><?php _e('Product', 'wp-ultimo'); ?></th>
<th class="wu-text-right"><?php _e('Revenue', 'wp-ultimo'); ?></th>
</tr>
</thead>
<tbody>
<tbody>
<?php if (wu_get_products()) : ?>
<?php if (wu_get_products()) : ?>
<?php foreach ($product_stats as $stats) : ?>
<?php foreach ($product_stats as $stats) : ?>
<tr>
<td>
<?php echo $stats['label']; ?>
</td>
<td class="wu-text-right">
<?php echo wu_format_currency($stats['revenue']); ?>
</td>
</tr>
<tr>
<td>
<?php echo $stats['label']; ?>
</td>
<td class="wu-text-right">
<?php echo wu_format_currency($stats['revenue']); ?>
</td>
</tr>
<?php endforeach; ?>
<?php endforeach; ?>
<?php else : ?>
<?php else : ?>
<tr>
<td colspan="2">
<?php _e('No Products found.', 'wp-ultimo'); ?>
</td>
</tr>
<tr>
<td colspan="2">
<?php _e('No Products found.', 'wp-ultimo'); ?>
</td>
</tr>
<?php endif; ?>
<?php endif; ?>
</tbody>
</tbody>
</table>
</table>
</div>
</div>
</div>