Use new code style
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
/**
|
||||
* This is the default template used for steps defined ont he steps array
|
||||
* This is the default template used for steps defined ont he steps array
|
||||
*
|
||||
* This template can be overridden by copying it to yourtheme/wp-ultimo/signup/steps/step-default.php.
|
||||
*
|
||||
@ -15,35 +15,34 @@
|
||||
* @version 1.0.0
|
||||
*/
|
||||
|
||||
if (!defined('ABSPATH')) {
|
||||
exit; // Exit if accessed directly
|
||||
if ( ! defined('ABSPATH')) {
|
||||
exit; // Exit if accessed directly
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
<div class="wu-setup-content wu-content-<?php echo $signup->step; ?>">
|
||||
|
||||
<!-- <p class="message" style="width: 320px; margin-left: auto; margin-right: auto; box-sizing: border-box;">
|
||||
Please enter your username or email address. You will receive a link to create a new password via email.
|
||||
</p> -->
|
||||
<!-- <p class="message" style="width: 320px; margin-left: auto; margin-right: auto; box-sizing: border-box;">
|
||||
Please enter your username or email address. You will receive a link to create a new password via email.
|
||||
</p> -->
|
||||
|
||||
<form name="loginform" id="loginform" method="post">
|
||||
<form name="loginform" id="loginform" method="post">
|
||||
|
||||
<?php
|
||||
<?php
|
||||
|
||||
foreach ($fields as $field_slug => $field) {
|
||||
foreach ($fields as $field_slug => $field) {
|
||||
|
||||
/**
|
||||
* Prints each of our fields using a helper function
|
||||
*/
|
||||
wu_print_signup_field($field_slug, $field, $results);
|
||||
/**
|
||||
* Prints each of our fields using a helper function
|
||||
*/
|
||||
wu_print_signup_field($field_slug, $field, $results);
|
||||
} // end foreach;
|
||||
|
||||
} // end foreach;
|
||||
?>
|
||||
|
||||
?>
|
||||
<?php do_action("wp_ultimo_registration_step_$signup->step"); ?>
|
||||
|
||||
<?php do_action("wp_ultimo_registration_step_$signup->step"); ?>
|
||||
|
||||
</form>
|
||||
</form>
|
||||
|
||||
</div>
|
||||
|
@ -15,32 +15,32 @@
|
||||
* @version 1.0.0
|
||||
*/
|
||||
|
||||
if (!defined('ABSPATH')) {
|
||||
exit; // Exit if accessed directly
|
||||
if ( ! defined('ABSPATH')) {
|
||||
exit; // Exit if accessed directly
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
<div id="wu-your-site-block">
|
||||
|
||||
<small><?php _e('Your URL will be', 'wp-ultimo'); ?></small><br>
|
||||
<small><?php _e('Your URL will be', 'wp-ultimo'); ?></small><br>
|
||||
|
||||
<?php
|
||||
/**
|
||||
* Change the base, if sub-domain or subdirectory
|
||||
*/
|
||||
$dynamic_part = '<strong id="wu-your-site" v-html="site_url ? site_url : \'yoursite\'">';
|
||||
// This is used on the yoursite.network.com during sign-up
|
||||
$dynamic_part .= isset($signup->results['blogname']) ? $signup->results['blogname'] : __('yoursite', 'wp-ultimo');
|
||||
$dynamic_part .= '</strong>';
|
||||
<?php
|
||||
/**
|
||||
* Change the base, if sub-domain or subdirectory
|
||||
*/
|
||||
$dynamic_part = '<strong id="wu-your-site" v-html="site_url ? site_url : \'yoursite\'">';
|
||||
// This is used on the yoursite.network.com during sign-up
|
||||
$dynamic_part .= isset($signup->results['blogname']) ? $signup->results['blogname'] : __('yoursite', 'wp-ultimo');
|
||||
$dynamic_part .= '</strong>';
|
||||
|
||||
$site_url = preg_replace('#^https?://#', '', WU_Signup()->get_site_url_for_previewer());
|
||||
$site_url = str_replace('www.', '', $site_url);
|
||||
$site_url = preg_replace('#^https?://#', '', WU_Signup()->get_site_url_for_previewer());
|
||||
$site_url = str_replace('www.', '', $site_url);
|
||||
|
||||
$template = is_subdomain_install() ? sprintf('%s.<span id="wu-site-domain" v-html="site_domain">%s</span>', $dynamic_part, $site_url) : sprintf('<span id="wu-site-domain" v-html="site_domain">%s</span>/%s', $site_url, $dynamic_part);
|
||||
$template = is_subdomain_install() ? sprintf('%s.<span id="wu-site-domain" v-html="site_domain">%s</span>', $dynamic_part, $site_url) : sprintf('<span id="wu-site-domain" v-html="site_domain">%s</span>/%s', $site_url, $dynamic_part);
|
||||
|
||||
echo $template;
|
||||
echo $template;
|
||||
|
||||
?>
|
||||
?>
|
||||
|
||||
</div>
|
||||
|
@ -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,
|
||||
),
|
||||
)
|
||||
);
|
||||
|
Reference in New Issue
Block a user