| 1 |
<?php |
| 2 |
/** |
| 3 |
* Outputs the content for the Plugin Setup Wizard > Form Importer step. |
| 4 |
* |
| 5 |
* @package ConvertKit |
| 6 |
* @author ConvertKit |
| 7 |
*/ |
| 8 |
|
| 9 |
foreach ( $this->form_importers as $form_importer ) { |
| 10 |
?> |
| 11 |
<div> |
| 12 |
<h1><?php echo esc_html( $form_importer['title'] ); ?></h1> |
| 13 |
<p> |
| 14 |
<?php |
| 15 |
printf( |
| 16 |
/* translators: %s: Form importer title */ |
| 17 |
esc_html__( 'We detected the following %s forms in your content. We recommend replacing these with Kit forms, but you may leave them as is.', 'convertkit' ), |
| 18 |
esc_html( $form_importer['title'] ) |
| 19 |
); |
| 20 |
?> |
| 21 |
</p> |
| 22 |
|
| 23 |
<table class="widefat striped"> |
| 24 |
<thead> |
| 25 |
<tr> |
| 26 |
<th> |
| 27 |
<?php |
| 28 |
/* translators: %s: Form importer title */ |
| 29 |
printf( |
| 30 |
/* translators: %s: Form importer title */ |
| 31 |
esc_html__( '%s Form', 'convertkit' ), |
| 32 |
esc_html( $form_importer['title'] ) |
| 33 |
); |
| 34 |
?> |
| 35 |
</th> |
| 36 |
<th> |
| 37 |
<?php esc_html_e( 'Kit Form', 'convertkit' ); ?> |
| 38 |
</th> |
| 39 |
</tr> |
| 40 |
</thead> |
| 41 |
<tbody> |
| 42 |
<?php |
| 43 |
foreach ( $form_importer['forms'] as $form_importer_form_id => $form_importer_form_title ) { |
| 44 |
?> |
| 45 |
<tr> |
| 46 |
<td><?php echo esc_html( $form_importer_form_title ); ?></td> |
| 47 |
<td> |
| 48 |
<?php |
| 49 |
$this->forms->output_select_field_all( |
| 50 |
'form_importer[' . $form_importer['name'] . '][' . $form_importer_form_id . ']', |
| 51 |
'form-importer-' . $form_importer['name'] . '-' . $form_importer_form_id, |
| 52 |
array( |
| 53 |
'convertkit-select2', |
| 54 |
'widefat', |
| 55 |
), |
| 56 |
'', |
| 57 |
array( |
| 58 |
'0' => esc_html__( 'Don\'t replace.', 'convertkit' ), |
| 59 |
) |
| 60 |
); |
| 61 |
?> |
| 62 |
</td> |
| 63 |
</tr> |
| 64 |
<?php |
| 65 |
} |
| 66 |
?> |
| 67 |
</tbody> |
| 68 |
</table> |
| 69 |
</div> |
| 70 |
<?php |
| 71 |
} |
| 72 |
|