import-form.php
23 lines
| 1 | <?php |
| 2 | // If this file is called directly, abort. |
| 3 | if ( ! defined( 'WPINC' ) ) { |
| 4 | die; |
| 5 | } |
| 6 | |
| 7 | ?> |
| 8 | <a href="#" class="page-title-action" id="<?php echo esc_attr( $this->get_id() ); ?>-trigger"> |
| 9 | <?php echo esc_html( $this->get_title() ); ?> |
| 10 | </a> |
| 11 | <form id="<?php echo esc_attr( $this->get_id() ); ?>" |
| 12 | style="display: none; margin: -0 0 0 20px; padding: 5px 15px; align-items: center; background: #fff;" |
| 13 | method="POST" |
| 14 | action="<?php echo esc_url_raw( $this->action_url() ); ?>" |
| 15 | enctype="multipart/form-data"> |
| 16 | <input type="file" name="form_file[]" accept="application/json" multiple="multiple"> |
| 17 | <?php wp_nonce_field( 'jet_fb_import' ); ?> |
| 18 | <button class="button button-primary" type="submit" style="margin: 0 0 0 5px;"> |
| 19 | <?php echo esc_html( $import_button ); ?> |
| 20 | </button> |
| 21 | </form> |
| 22 | <?php |
| 23 |