process_action_messages( array( 'error_export' => __( 'Error: The export failed.', 'tablepress' ), 'error_load_table' => __( 'Error: This table could not be loaded!', 'tablepress' ), 'error_table_corrupted' => __( 'Error: The internal data of this table is corrupted!', 'tablepress' ), ) ); $this->add_text_box( 'head', array( $this, 'textbox_head' ), 'normal' ); if ( 0 === $data['tables_count'] ) { $this->add_meta_box( 'no-tables', __( 'Export Tables', 'tablepress' ), array( $this, 'postbox_no_tables' ), 'normal' ); } else { $this->admin_page->enqueue_script( 'export', array( 'jquery' ) ); $this->add_meta_box( 'export-form', __( 'Export Pods Tables', 'tablepress' ), array( $this, 'postbox_export_form' ), 'normal' ); $this->data['submit_button_caption'] = _x( 'Download Pods Export File', 'button', 'tablepress' ); $this->add_text_box( 'submit', array( $this, 'textbox_submit_button' ), 'submit' ); } } /** * Print the screen head text. * * @since 0.2.6 * * @param array $data Data for this screen. * @param array $box Information about the text box. */ public function textbox_head( array $data, array $box ) { ?>


'add' ) ); $import_url = TablePress::url( array( 'action' => 'import' ) ); ?>

add or import a table to get started!', 'tablepress' ), $add_url, $import_url ); ?>