Files
wp-multisite-waas/views/legacy/signup/signup-nav-links.php
David Stone a815fdf179 Prep Plugin for release on WordPress.org
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.
2025-04-07 09:15:21 -06:00

75 lines
1.5 KiB
PHP

<?php
/**
* Displays the navigation part on the bottom of the page
*
* This template can be overridden by copying it to yourtheme/wp-ultimo/signup/signup-nav-links.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.4.0
*/
if ( ! defined('ABSPATH')) {
exit; // Exit if accessed directly
}
?>
<?php
/**
* Get Navigational Links
*
* @var array
*/
$nav_links = apply_filters(
'wu_signup_form_nav_links',
[
home_url() => __('Return to Home', 'wp-multisite-waas'),
wp_login_url() => sprintf('<strong>%s</strong>', __('Log In', 'wp-multisite-waas')),
]
);
if ( ! isset($signup->step)) {
return;
}
?>
<?php if ('plan' != $signup->step && 'template' != $signup->step) : ?>
<p id="nav">
<?php $i = 1; foreach ($nav_links as $link => $label) : ?>
<a href="<?php echo $link; ?>">
<?php echo $label; ?>
</a>
<?php
if ($i < count($nav_links)) {
/**
* We need this in order to maintain backwards compatibility with WordPress login page
*
* @since 1.9.2
*/
echo ' | ';
++$i;
}
?>
<?php endforeach; ?>
</p>
<?php endif; ?>