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

@ -15,8 +15,8 @@
* @version 1.0.0
*/
if (!defined('ABSPATH')) {
exit; // Exit if accessed directly
if ( ! defined('ABSPATH')) {
exit; // Exit if accessed directly
}
?>
@ -25,29 +25,33 @@ if (!defined('ABSPATH')) {
<ul class="wu-plans-frequency-selector">
<?php
<?php
$prices = array(
1 => __('Monthly', 'wp-ultimo'),
3 => __('Quarterly', 'wp-ultimo'),
12 => __('Yearly', 'wp-ultimo'),
);
$prices = array(
1 => __('Monthly', 'wp-ultimo'),
3 => __('Quarterly', 'wp-ultimo'),
12 => __('Yearly', 'wp-ultimo'),
);
$first = true;
$first = true;
foreach ($prices as $type => $name) :
foreach ($prices as $type => $name) :
if ( ! wu_get_setting('enable_price_' . $type, true)) {
continue;
}
if (!wu_get_setting('enable_price_'.$type, true)) continue;
?>
?>
<li>
<a class="<?php echo $first ? 'active first' : ''; ?>" data-frequency-selector="<?php echo $type; ?>" href="#">
<?php echo $name; ?>
</a>
</li>
<li>
<a class="<?php echo $first ? 'active first' : ''; ?>" data-frequency-selector="<?php echo $type; ?>" href="#">
<?php echo $name; ?>
</a>
</li>
<?php $first = false; endforeach; ?>
<?php
$first = false;
endforeach;
?>
</ul>