Initial Commit

This commit is contained in:
David Stone
2024-11-30 18:24:12 -07:00
commit e8f7955c1c
5432 changed files with 1397750 additions and 0 deletions

View File

@ -0,0 +1,49 @@
<?php
/**
* 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.
*
* HOWEVER, on occasion WP Ultimo 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
}
?>
<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> -->
<form name="loginform" id="loginform" method="post">
<?php
foreach ($fields as $field_slug => $field) {
/**
* Prints each of our fields using a helper function
*/
wu_print_signup_field($field_slug, $field, $results);
} // end foreach;
?>
<?php do_action("wp_ultimo_registration_step_$signup->step"); ?>
</form>
</div>

View File

@ -0,0 +1,46 @@
<?php
/**
* This is the template used to display the URL preview field on the domain step
*
* This template can be overridden by copying it to yourtheme/wp-ultimo/signup/steps/step-domain-url-preview.php.
*
* HOWEVER, on occasion WP Ultimo 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
}
?>
<div id="wu-your-site-block">
<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>';
$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);
echo $template;
?>
</div>

View File

@ -0,0 +1,39 @@
<?php
/**
* This is the template used for the Plan Step, which is usually the first one in the signup process.
*
* This template can be overridden by copying it to yourtheme/wp-ultimo/signup/steps/step-plans.php.
*
* HOWEVER, on occasion WP Ultimo 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
}
// Get all available plans
$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,
)
));