Files
wp-multisite-waas/views/legacy/signup/pricing-table/frequency-selector.php
David Stone d88e50df38 Prep Plugin for release on WordPress.org (#23)
* Update translation text domain
* 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.
* Add Proper Build script
* Use emojii flags
* Fix i18n deprecation  notice for translating too early
* Put all scripts in footer and load async
2025-04-14 11:36:46 -06:00

59 lines
1.3 KiB
PHP

<?php
/**
* Displays the frequency selector for the pricing tables
*
* This template can be overridden by copying it to yourtheme/wp-ultimo/signup/pricing-table/frequency-selector.php.
*
* HOWEVER, on occasion WP Multisite WaaS will need to update template files and you
* (the theme developer) will need to copy the new files to your theme to
* maintain compatibility. We try to do this as little as possible, but it does
* happen. When this occurs the version of the template file will be bumped and
* the readme will list any important changes.
*
* @author NextPress
* @package WP_Ultimo/Views
* @version 1.0.0
*/
if ( ! defined('ABSPATH')) {
exit; // Exit if accessed directly
}
?>
<?php if (wu_get_setting('enable_price_3', true) || wu_get_setting('enable_price_12', true)) : ?>
<ul class="wu-plans-frequency-selector">
<?php
$prices = [
1 => __('Monthly', 'wp-multisite-waas'),
3 => __('Quarterly', 'wp-multisite-waas'),
12 => __('Yearly', 'wp-multisite-waas'),
];
$first = true;
foreach ($prices as $type => $name) :
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>
<?php
$first = false;
endforeach;
?>
</ul>
<?php endif; ?>