html-admin-page-addons.php
2 years ago
html-admin-page-builder.php
4 years ago
html-admin-page-entries-view.php
3 years ago
html-admin-page-export.php
3 years ago
html-admin-page-form-templates.php
3 years ago
html-admin-page-import.php
3 years ago
html-admin-page-tools-logs.php
4 years ago
html-admin-page-tools.php
5 years ago
html-admin-settings.php
7 years ago
html-deactivation-popup.php
3 years ago
html-notice-allow-usage.php
2 years ago
html-notice-custom.php
6 years ago
html-notice-php-deprecation.php
3 years ago
html-notice-review.php
2 years ago
html-notice-survey.php
4 years ago
html-notice-update.php
6 years ago
html-notice-updated.php
6 years ago
html-notice-updating.php
6 years ago
html-admin-page-export.php
36 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-export-form"> |
| 12 | <h3><?php esc_html_e( 'Export Everest Forms with Settings', 'everest-forms' ); ?></h3> |
| 13 | <p><?php esc_html_e( 'Export your forms along with their settings as JSON file.', 'everest-forms' ); ?></p> |
| 14 | <form method="post" action="<?php echo esc_url( admin_url( 'admin.php?page=evf-tools&tab=export' ) ); ?>"> |
| 15 | <?php |
| 16 | $forms = evf_get_all_forms( true, false ); |
| 17 | if ( ! empty( $forms ) ) { |
| 18 | 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>'; |
| 19 | foreach ( $forms as $id => $form ) { // phpcs:ignore WordPress.WP.GlobalVariablesOverride |
| 20 | echo '<option value="' . esc_attr( $id ) . '">' . esc_html( $form ) . '</option>'; |
| 21 | } |
| 22 | echo '</select>'; |
| 23 | } else { |
| 24 | echo '<p>' . esc_html__( 'You need to create a form before you can use form export.', 'everest-forms' ) . '</p>'; |
| 25 | } |
| 26 | ?> |
| 27 | <div class="publishing-action"> |
| 28 | <?php wp_nonce_field( 'everest_forms_export_nonce', 'everest-forms-export-nonce' ); ?> |
| 29 | <button type="submit" class="everest-forms-btn everest-forms-btn-primary everest-forms-export-form-action" name="everest-forms-export-form"><?php esc_html_e( 'Export', 'everest-forms' ); ?></button> |
| 30 | </div> |
| 31 | </form> |
| 32 | </div> |
| 33 | <?php |
| 34 | do_action( 'html_admin_page_export_entries' ); |
| 35 | ?> |
| 36 |