Current Path : /storage/v11800/athomenoha/public_html/wp-content/plugins/salon-booking-system/views/shortcode/ |
Linux v11800 5.3.0-1023-aws #25~18.04.1-Ubuntu SMP Fri Jun 5 15:19:18 UTC 2020 aarch64
|
Current File : /storage/v11800/athomenoha/public_html/wp-content/plugins/salon-booking-system/views/shortcode/_progbar.php |
<div class="sln-progbar__wrapper">
<?php
$steps = $salon->getSteps();
if (($key = array_search('fbphone', $steps)) !== false) {
unset($steps[$key]);
}
$stepstotal = count($steps);
?>
<div class="sln-progbar__text">
<?php
_e('Step', 'salon-booking-system');
$sommaA = 1;
foreach ($steps as $step) {
echo ' <span>';
if ($step == $salon->getCurrentStep()) {
echo $sommaA . '/' . $stepstotal;
}
echo '</span>';
$sommaA++;
}
?>
</div>
<div class="sln-progbar">
<?php
$revsteps = array_reverse($steps);
$sommaB = 1;
foreach ($revsteps as $step) {
echo '<div class="sln-progbar__item ';
if ($step == $salon->getCurrentStep()) {
echo 'sln-progbar__item--current';
}
echo ' sln-progbar__item--' . $step . '" data-zindex="' . $sommaB . '"><span class="sr-only">' . $step . '</span></div>';
$sommaB++;
}
?>
</div>
</div>