html-admin-header-skeleton.php
3 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
3 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
3 weeks ago
html-admin-page-setting.php
2 years ago
html-admin-page-smart-smtp-setup.php
3 weeks ago
html-admin-page-tools-logs.php
2 months ago
html-admin-page-tools.php
3 months ago
html-admin-settings.php
3 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-export.php
50 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Admin View: Page - Export |
| 4 | * |
| 5 | * @package EverestForms/Admin/Export |
| 6 | */ |
| 7 | |
| 8 | defined( 'ABSPATH' ) || exit; |
| 9 | ?> |
| 10 | |
| 11 | <div class="everest-forms-tabs-wrapper"> |
| 12 | <ul class="everest-forms-tabs"> |
| 13 | <li class="active" data-tab="export-forms-tab"><?php esc_html_e( 'Export Forms', 'everest-forms' ); ?></li> |
| 14 | <?php if ( defined( 'EFP_PLUGIN_FILE' ) ) { ?> |
| 15 | <li data-tab="export-entries-tab"><?php esc_html_e( 'Export Entries', 'everest-forms' ); ?></li> |
| 16 | <?php } ?> |
| 17 | </ul> |
| 18 | |
| 19 | <div class="everest-forms-tab-content active" id="export-forms-tab"> |
| 20 | <div class="everest-forms-export-form"> |
| 21 | <h3><?php esc_html_e( 'Export Everest Forms with Settings', 'everest-forms' ); ?></h3> |
| 22 | <p><?php esc_html_e( 'Export your forms along with their settings as JSON file.', 'everest-forms' ); ?></p> |
| 23 | <form method="post" action="<?php echo esc_url( admin_url( 'admin.php?page=evf-tools&tab=export' ) ); ?>"> |
| 24 | <?php |
| 25 | $forms = evf_get_all_forms( true, false ); |
| 26 | if ( ! empty( $forms ) ) { |
| 27 | echo '<select id="everest-forms-form-export" class="evf-enhanced-select" style="min-width: 350px;" name="form_ids[]" data-placeholder="' . esc_attr__( 'Select Form(s)', 'everest-forms' ) . '" multiple>'; |
| 28 | foreach ( $forms as $id => $form ) { // phpcs:ignore WordPress.WP.GlobalVariablesOverride |
| 29 | echo '<option value="' . esc_attr( $id ) . '">' . esc_html( $form ) . '</option>'; |
| 30 | } |
| 31 | echo '</select>'; |
| 32 | } else { |
| 33 | echo '<p>' . esc_html__( 'You need to create a form before you can use form export.', 'everest-forms' ) . '</p>'; |
| 34 | } |
| 35 | ?> |
| 36 | <div class="publishing-action"> |
| 37 | <?php wp_nonce_field( 'everest_forms_export_nonce', 'everest-forms-export-nonce' ); ?> |
| 38 | <button type="submit" |
| 39 | class="everest-forms-btn everest-forms-btn-primary everest-forms-export-form-action" |
| 40 | name="everest-forms-export-form"><?php esc_html_e( 'Export', 'everest-forms' ); ?></button> |
| 41 | </div> |
| 42 | </form> |
| 43 | </div> |
| 44 | </div> |
| 45 | |
| 46 | <div class="everest-forms-tab-content" id="export-entries-tab"> |
| 47 | <?php do_action( 'html_admin_page_export_entries' ); ?> |
| 48 | </div> |
| 49 | </div> |
| 50 |