admin_page->enqueue_style( 'codemirror' ); $this->admin_page->enqueue_script( 'codemirror', array(), array(), true ); $this->admin_page->enqueue_script( 'options', array( 'jquery-core', 'tablepress-codemirror', 'jquery-ui-resizable' ), array( 'strings' => array( 'uninstall_warning_1' => __( 'Do you really want to uninstall TablePress and delete ALL data?', 'tablepress' ), 'uninstall_warning_2' => __( 'Are you really sure?', 'tablepress' ), ), ) ); $this->process_action_messages( array( 'success_save' => __( 'Options saved successfully.', 'tablepress' ), 'success_save_error_custom_css' => __( 'Options saved successfully, but “Custom CSS” was not saved to file.', 'tablepress' ), 'error_save' => __( 'Error: Options could not be saved.', 'tablepress' ), 'success_import_wp_table_reloaded' => __( 'The WP-Table Reloaded “Custom CSS” was imported successfully.', 'tablepress' ), ) ); $this->add_text_box( 'head', array( $this, 'textbox_head' ), 'normal' ); if ( current_user_can( 'tablepress_edit_options' ) ) { $this->add_meta_box( 'frontend-options', __( 'Frontend Options', 'tablepress' ), array( $this, 'postbox_frontend_options' ), 'normal' ); } $this->add_meta_box( 'user-options', __( 'User Options', 'tablepress' ), array( $this, 'postbox_user_options' ), 'normal' ); $this->data['submit_button_caption'] = __( 'Save Changes', 'tablepress' ); $this->add_text_box( 'submit', array( $this, 'textbox_submit_button' ), 'submit' ); if ( current_user_can( 'activate_plugins' ) && current_user_can( 'tablepress_edit_options' ) && current_user_can( 'tablepress_delete_tables' ) && ! is_plugin_active_for_network( TABLEPRESS_BASENAME ) ) { $this->add_text_box( 'uninstall-tablepress', array( $this, 'textbox_uninstall_tablepress' ), 'submit' ); } } /** * 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 ) { ?>
'; } _e( 'In the User Options, every TablePress user can choose the position of the plugin in his WordPress admin menu.', 'tablepress' ); ?>
: | |
---|---|
Cascading Style Sheets) can be used to change the styling or layout of a table.', 'tablepress' ), 'http://www.htmldog.com/guides/css/beginner/' ); echo ' '; printf( __( 'You can get styling examples from the FAQ.', 'tablepress' ), 'https://tablepress.org/faq/' ); echo ' '; printf( __( 'Information on available CSS selectors can be found in the documentation.', 'tablepress' ), 'https://tablepress.org/documentation/' ); echo ' '; _e( 'Please note that invalid CSS code will be stripped, if it can not be corrected automatically.', 'tablepress' ); ?> |
will permanently delete all TablePress tables and options from the database.', 'tablepress' ) . '
'
. __( 'It is recommended that you create a backup of the tables (by exporting the tables in the JSON format), in case you later change your mind.', 'tablepress' ) . '
'
. __( 'You will manually need to remove the plugin’s files from the plugin folder afterwards.', 'tablepress' ) . '
'
. __( 'Be very careful with this and only click the button if you know what you are doing!', 'tablepress' );
?>