html-csv-import-steps.php 614 B

1234567891011121314151617181920212223242526
  1. <?php
  2. /**
  3. * Admin View: Steps
  4. *
  5. * @package WooCommerce\Admin\Importers
  6. */
  7. if ( ! defined( 'ABSPATH' ) ) {
  8. exit;
  9. }
  10. ?>
  11. <ol class="wc-progress-steps">
  12. <?php foreach ( $this->steps as $step_key => $step ) : ?>
  13. <?php
  14. $step_class = '';
  15. if ( $step_key === $this->step ) {
  16. $step_class = 'active';
  17. } elseif ( array_search( $this->step, array_keys( $this->steps ), true ) > array_search( $step_key, array_keys( $this->steps ), true ) ) {
  18. $step_class = 'done';
  19. }
  20. ?>
  21. <li class="<?php echo esc_attr( $step_class ); ?>">
  22. <?php echo esc_html( $step['name'] ); ?>
  23. </li>
  24. <?php endforeach; ?>
  25. </ol>