Files
.circleci
assets
bin
data
inc
lang
patches
tests
utils
views
admin-pages
base
broadcast
checkout
customers
dashboard-statistics
dashboard-widgets
domain
dynamic-styles
email
emails
events
invoice
legacy
signup
pricing-table
steps
step-default.php
step-domain-url-preview.php
step-plans.php
signup-main.php
signup-nav-links.php
signup-steps-navigation.php
limitations
memberships
payments
settings
shortcodes
sites
system-info
taxes
ui
wizards
about.php
admin-notices.php
classes.php
phpcs.xml
.gitignore
.phpcs.xml.dist
LICENSE
autoload.php
composer.json
composer.lock
constants.php
loco.xml
package-lock.json
package.json
phpstan.neon.dist
phpunit.xml.dist
readme.txt
rector.php
setuptest.sh
sunrise.php
uninstall.php
wp-multisite-waas.php
wp-multisite-waas/views/legacy/signup/steps/step-domain-url-preview.php
David Stone d88e50df38 Prep Plugin for release on WordPress.org ()
* 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

47 lines
1.6 KiB
PHP

<?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 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
}
?>
<div id="wu-your-site-block">
<small><?php esc_html_e('Your URL will be', 'wp-multisite-waas'); ?></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 .= $signup->results['blogname'] ?? __('yoursite', 'wp-multisite-waas');
$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>