| @@ -11,9 +11,9 @@ | ||
| 11 | 11 | <html <?php language_attributes(); ?>> |
| 12 | 12 | <head> |
| 13 | 13 | <meta name="viewport" content="width=device-width"/> |
| 14 | 14 | <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> |
| 15 | - <title><?php echo esc_html( 'Kit' ); ?> ‹ <?php bloginfo( 'name' ); ?> — WordPress</title> | |
| 15 | + <title><?php echo esc_html( CONVERTKIT_PLUGIN_NAME ); ?> ‹ <?php bloginfo( 'name' ); ?> — WordPress</title> | |
| 16 | 16 | <script type="text/javascript"> |
| 17 | 17 | var ajaxurl = '<?php echo esc_js( admin_url( 'admin-ajax.php', 'relative' ) ); ?>'; |
| 18 | 18 | </script> |
| 19 | 19 | <?php |
| @@ -27,9 +27,9 @@ | ||
| 27 | 27 | <?php |
| 28 | 28 | if ( ! $this->is_modal() ) { |
| 29 | 29 | ?> |
| 30 | 30 | <header id="convertkit-setup-wizard-header"> |
| 31 | - <h1><?php echo esc_html( 'Kit' ); ?></h1> | |
| 31 | + <h1><?php echo esc_html( CONVERTKIT_PLUGIN_NAME ); ?></h1> | |
| 32 | 32 | </header> |
| 33 | 33 | <?php |
| 34 | 34 | } |
| 35 | 35 | ?> |
| @@ -40,14 +40,12 @@ | ||
| 40 | 40 | ?> |
| 41 | 41 | <div id="convertkit-setup-wizard-progress"> |
| 42 | 42 | <ol> |
| 43 | 43 | <?php |
| 44 | - $step_count = 1; | |
| 45 | - foreach ( $this->steps as $step_name => $step ) { | |
| 44 | + foreach ( $this->steps as $step_count => $step ) { | |
| 46 | 45 | ?> |
| 47 | - <li class="step-<?php echo esc_attr( $step_name ); ?><?php echo ( $step_count <= $this->get_current_step_number() ? ' done' : '' ); ?>"><?php echo esc_html( $step['name'] ); ?></li> | |
| 46 | + <li class="step-<?php echo esc_attr( $step_count ); ?><?php echo ( $step_count <= $this->step ? ' done' : '' ); ?>"><?php echo esc_html( $step['name'] ); ?></li> | |
| 48 | 47 | <?php |
| 49 | - ++$step_count; | |
| 50 | 48 | } |
| 51 | 49 | ?> |
| 52 | 50 | </ol> |
| 53 | 51 | </div> |
| @@ -76,10 +74,10 @@ | ||
| 76 | 74 | <?php |
| 77 | 75 | printf( |
| 78 | 76 | /* translators: %1$s: Current Step, %2$s: Total Steps */ |
| 79 | 77 | esc_html__( 'Step %1$s of %2$s', 'convertkit' ), |
| 80 | - esc_html( $this->get_current_step_number() ), | |
| 81 | - esc_html( $this->get_total_steps() ) | |
| 78 | + esc_html( $this->step ), | |
| 79 | + esc_html( count( $this->steps ) ) | |
| 82 | 80 | ); |
| 83 | 81 | ?> |
| 84 | 82 | </div> |
| 85 | 83 | <?php |