import-form.php
14 lines
| 1 | <a href="#" class="page-title-action" id="<?php echo esc_attr( $this->get_id() ); ?>-trigger"> |
| 2 | <?php echo esc_html( $this->get_title() ); ?> |
| 3 | </a> |
| 4 | <form id="<?php echo esc_attr( $this->get_id() ); ?>" |
| 5 | style="display: none; margin: -0 0 0 20px; padding: 5px 15px; align-items: center; background: #fff;" |
| 6 | method="post" |
| 7 | action="<?php echo esc_url_raw($this->action_url() ); ?>" |
| 8 | enctype="multipart/form-data"> |
| 9 | <input type="file" name="form_file" accept="application/json" multiple="false"> |
| 10 | <button class="button button-primary" type="submit" style="margin: 0 0 0 5px;"> |
| 11 | <?php echo esc_html( $import_button ); ?> |
| 12 | </button> |
| 13 | </form> |
| 14 |