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