* 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
54 lines
1.2 KiB
PHP
54 lines
1.2 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-steps-navigation.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
|
|
}
|
|
|
|
?>
|
|
|
|
<ol class="wu-setup-steps wu-flex">
|
|
|
|
<?php
|
|
foreach ($steps as $index => $step) :
|
|
$step_key = $step['id'];
|
|
|
|
/**
|
|
* Class element of the Step Status Bar
|
|
*
|
|
* @var string
|
|
*/
|
|
$class = '';
|
|
|
|
if ($step_key === $current_step) {
|
|
$class = 'active';
|
|
} elseif (array_search($current_step, array_column($steps, 'id')) > array_search($step_key, array_column($steps, 'id'))) {
|
|
$class = 'done';
|
|
}
|
|
|
|
?>
|
|
|
|
<li class="<?php echo $class; ?> wu-flex-1">
|
|
|
|
<?php echo esc_html($step['name']); ?>
|
|
|
|
</li>
|
|
|
|
<?php endforeach; ?>
|
|
|
|
</ol>
|