| 1 |
<?php |
| 2 |
/** |
| 3 |
* Outputs the header template for a Setup Wizard screen |
| 4 |
* |
| 5 |
* @package ConvertKit |
| 6 |
* @author ConvertKit |
| 7 |
*/ |
| 8 |
|
| 9 |
?> |
| 10 |
<!DOCTYPE html> |
| 11 |
<html <?php language_attributes(); ?>> |
| 12 |
<head> |
| 13 |
<meta name="viewport" content="width=device-width"/> |
| 14 |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> |
| 15 |
<title><?php echo esc_html( CONVERTKIT_PLUGIN_NAME ); ?> ‹ <?php bloginfo( 'name' ); ?> — WordPress</title> |
| 16 |
<script type="text/javascript"> |
| 17 |
var ajaxurl = '<?php echo esc_js( admin_url( 'admin-ajax.php', 'relative' ) ); ?>'; |
| 18 |
</script> |
| 19 |
<?php |
| 20 |
do_action( 'admin_print_scripts' ); |
| 21 |
do_action( 'admin_print_styles' ); |
| 22 |
do_action( 'admin_head' ); |
| 23 |
?> |
| 24 |
</head> |
| 25 |
<body class="wp-admin wp-core-ui convertkit <?php echo esc_attr( $this->is_modal() ? ' convertkit-modal' : '' ); ?>"> |
| 26 |
<div id="convertkit-setup-wizard"> |
| 27 |
<?php |
| 28 |
if ( ! $this->is_modal() ) { |
| 29 |
?> |
| 30 |
<header id="convertkit-setup-wizard-header"> |
| 31 |
<h1><?php echo esc_html( CONVERTKIT_PLUGIN_NAME ); ?></h1> |
| 32 |
</header> |
| 33 |
<?php |
| 34 |
} |
| 35 |
?> |
| 36 |
|
| 37 |
<div class="wrap"> |
| 38 |
<?php |
| 39 |
if ( ! $this->is_modal() ) { |
| 40 |
?> |
| 41 |
<div id="convertkit-setup-wizard-progress"> |
| 42 |
<ol> |
| 43 |
<?php |
| 44 |
foreach ( $this->steps as $step_count => $step ) { |
| 45 |
?> |
| 46 |
<li class="step-<?php echo esc_attr( $step_count ); ?><?php echo ( $step_count <= $this->step ? ' done' : '' ); ?>"><?php echo esc_html( $step['name'] ); ?></li> |
| 47 |
<?php |
| 48 |
} |
| 49 |
?> |
| 50 |
</ol> |
| 51 |
</div> |
| 52 |
<?php |
| 53 |
} |
| 54 |
|
| 55 |
// If an error occured, display an error notice. |
| 56 |
if ( $this->error ) { |
| 57 |
?> |
| 58 |
<div class="notice notice-error is-dismissible"> |
| 59 |
<p><?php echo esc_html( $this->error ); ?></p> |
| 60 |
</div> |
| 61 |
|
| 62 |
<?php |
| 63 |
} |
| 64 |
?> |
| 65 |
</div> |
| 66 |
|
| 67 |
<div id="convertkit-setup-wizard-body"> |
| 68 |
<form action="<?php echo esc_attr( $this->next_step_url ); ?>" method="POST"> |
| 69 |
<div id="convertkit-setup-wizard-content"> |
| 70 |
<div id="convertkit-setup-wizard-step"> |
| 71 |
<?php |
| 72 |
printf( |
| 73 |
/* translators: %1$s: Current Step, %2$s: Total Steps */ |
| 74 |
esc_html__( 'Step %1$s of %2$s', 'convertkit' ), |
| 75 |
esc_html( $this->step ), |
| 76 |
esc_html( count( $this->steps ) ) |
| 77 |
); |
| 78 |
?> |
| 79 |
</div> |
| 80 |
|