html-admin-header-skeleton.php
4 weeks ago
html-admin-page-addons.php
1 year ago
html-admin-page-builder.php
4 months ago
html-admin-page-dashboard.php
2 years ago
html-admin-page-entries-view.php
4 weeks ago
html-admin-page-export.php
1 year ago
html-admin-page-form-migrator.php
2 years ago
html-admin-page-form-templates.php
4 months ago
html-admin-page-import.php
1 year ago
html-admin-page-payments.php
4 weeks ago
html-admin-page-setting.php
2 years ago
html-admin-page-smart-smtp-setup.php
4 weeks ago
html-admin-page-tools-logs.php
2 months ago
html-admin-page-tools.php
3 months ago
html-admin-settings.php
4 weeks ago
html-deactivation-popup.php
3 years ago
html-notice-allow-usage.php
2 months ago
html-notice-custom.php
3 months ago
html-notice-email-failed-notice.php
3 months ago
html-notice-php-deprecation.php
3 months ago
html-notice-review.php
3 months ago
html-notice-survey.php
3 months ago
html-notice-update.php
3 months ago
html-notice-updated.php
3 months ago
html-notice-updating.php
3 months ago
html-admin-page-form-migrator.php
54 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Admin View: Page - Form Migrator |
| 4 | * |
| 5 | * @since 2.0.6 |
| 6 | * |
| 7 | * @package EverestForms/Admin/Form_migrator |
| 8 | */ |
| 9 | |
| 10 | defined( 'ABSPATH' ) || exit; |
| 11 | |
| 12 | ?> |
| 13 | <div class="everest-forms-form-migrator"> |
| 14 | <h3><?php esc_html_e( 'Form Migrator', 'everest-forms' ); ?></h3> |
| 15 | <div class="evf-form-migrator-info"> |
| 16 | <p><?php esc_html_e('', 'everest-forms') ?></p> |
| 17 | <p class="description"> |
| 18 | <i class="dashicons dashicons-info"></i> |
| 19 | <?php |
| 20 | /* translators: %s: Form migrator notice */ |
| 21 | printf( esc_html__( 'Migrate forms from other plugins into Everest Forms seamlessly with just one click.', 'everest-forms' ) ); |
| 22 | ?> |
| 23 | </p> |
| 24 | </div> |
| 25 | <div class="evf-fm-select-popular-form"> |
| 26 | <?php |
| 27 | if ( ! empty( $forms_status ) ) { |
| 28 | echo '<select id="everest-forms-form-migrator" class="evf-enhanced-select" style="min-width: 350px;" name="form_ids[]" data-placeholder="' . esc_attr__( 'Select Form To Migrate', 'everest-forms' ) . '">'; |
| 29 | echo '<option value=""> '.esc_html('-- Select Form To Migrate --', 'everest-forms').'</option>'; |
| 30 | foreach ( $forms_status as $id => $form_status ) { // phpcs:ignore WordPress.WP.GlobalVariablesOverride |
| 31 | $disabled =''; |
| 32 | $extra_text = ''; |
| 33 | if( ! $form_status['installed']) { |
| 34 | $disabled ='disabled'; |
| 35 | $extra_text = esc_html__("(Not Installed)", 'everest-forms'); |
| 36 | }elseif( ! $form_status['active']) { |
| 37 | $disabled ='disabled'; |
| 38 | $extra_text = esc_html__("(Not Active)", 'everest-forms' ); |
| 39 | } |
| 40 | |
| 41 | echo '<option value="' . esc_attr( $form_status['slug'] ) . '" '.esc_attr( $disabled ).'>' . esc_html( $form_status['name'] ) .' '.esc_html( $extra_text ). '</option>'; |
| 42 | } |
| 43 | echo '</select>'; |
| 44 | } else { |
| 45 | echo '<p>' . esc_html__( 'There are no any form migrator.', 'everest-forms' ) . '</p>'; |
| 46 | } |
| 47 | ?> |
| 48 | </div> |
| 49 | <div class="evf-fm-wrapper"> |
| 50 | <div id="evf-fm-forms-list-container" class="evf-fm-form-list-container"> |
| 51 | </div> |
| 52 | </div> |
| 53 | </div> |
| 54 |