admin_page->enqueue_style( 'jsuites' ); $this->admin_page->enqueue_style( 'import', array( 'tablepress-jsuites' ) ); $this->admin_page->enqueue_script( 'jsuites' ); $this->admin_page->enqueue_script( 'import', array( 'tablepress-jsuites' ) ); $this->process_action_messages( array( 'error_import' => __( 'Error: The import failed.', 'tablepress' ), ) ); $this->add_text_box( 'head', array( $this, 'textbox_head' ), 'normal' ); $this->add_meta_box( 'import-form', __( 'Import Tables', 'tablepress' ), array( $this, 'postbox_import_form' ), 'normal' ); } /** * Print the screen head text. * * @since 1.0.0 * * @param array $data Data for this screen. * @param array $box Information about the text box. */ public function textbox_head( array $data, array $box ) { ?>

:
' . __( 'You can also import multiple tables by placing them in a ZIP file.', 'tablepress' ) . ''; } ?>
' . __( 'You can also import multiple tables by placing them in a ZIP file.', 'tablepress' ) . ''; } ?>
' . __( 'You can also import multiple tables by placing them in a ZIP file.', 'tablepress' ) . ''; } ?>
:
' . __( 'TablePress feature: Drag and Drop Import with Format Detection', 'tablepress' ) . ''; $content .= '

' . __( 'Did you know?', 'tablepress' ) . ' ' . __( 'The import of tables is now even more powerful! You can simply drag and drop your files into this area and TablePress will automatically detect the file format!', 'tablepress' ) . '

'; $this->admin_page->print_wp_pointer_js( 'tp20_import_drag_drop_detect_format', '#tables-import-file-upload-dropzone span', array( 'content' => $content, 'position' => array( 'edge' => 'bottom', 'align' => 'center' ), ) ); } } // class TablePress_Import_View