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,25 +15,30 @@
* @version 1.0.0
*/
if (!defined('ABSPATH')) {
exit; // Exit if accessed directly
if ( ! defined('ABSPATH')) {
exit; // Exit if accessed directly
}
// Get all available plans
$plans = wu_get_products(array(
'type' => 'plan',
));
$plans = wu_get_products(
array(
'type' => 'plan',
)
);
// Render the selector
wu_get_template('legacy/signup/pricing-table/pricing-table', array(
'plans' => $plans,
'signup' => $signup,
'current_plan' => false,
'is_shortcode' => false,
'atts' => array(
'primary_color' => '#00a1ff', // wu_get_setting('primary-color', '#00a1ff'),
'accent_color' => '#78b336', // wu_get_setting('accent-color', '#78b336'),
'default_pricing_option' => 1, // wu_get_setting('default_pricing_option', 1),
'show_selector' => true,
)
));
wu_get_template(
'legacy/signup/pricing-table/pricing-table',
array(
'plans' => $plans,
'signup' => $signup,
'current_plan' => false,
'is_shortcode' => false,
'atts' => array(
'primary_color' => '#00a1ff', // wu_get_setting('primary-color', '#00a1ff'),
'accent_color' => '#78b336', // wu_get_setting('accent-color', '#78b336'),
'default_pricing_option' => 1, // wu_get_setting('default_pricing_option', 1),
'show_selector' => true,
),
)
);