action = 'options'; $this->data = $data; // Set page title. $GLOBALS['title'] = sprintf( __( '%1$s ‹ %2$s', 'tablepress' ), $this->data['view_actions'][ $this->action ]['page_title'], 'TablePress' ); $this->add_header_message( '' . __( 'Attention: Further action is required to save the changes to your “Custom CSS”!', 'tablepress' ) . '', 'notice-success' ); // Admin page helpers, like script/style loading, could be moved to view. $this->admin_page = TablePress::load_class( 'TablePress_Admin_Page', 'class-admin-page-helper.php', 'classes' ); $this->admin_page->enqueue_style( 'common' ); $this->admin_page->add_admin_footer_text(); $this->add_text_box( 'explanation-text', array( $this, 'textbox_explanation_text' ), 'normal' ); $this->add_text_box( 'credentials-form', array( $this, 'textbox_credentials_form' ), 'normal' ); $this->add_text_box( 'proceed-no-file-saving', array( $this, 'textbox_proceed_no_file_saving' ), 'submit' ); } /** * Render the current view (in this view: without form tag). * * @since 1.0.0 */ public function render() { ?>
print_nav_tab_menu(); // Print all header messages. foreach ( $this->header_messages as $message ) { echo $message; } $this->do_text_boxes( 'header' ); ?>
do_text_boxes( 'normal' ); $this->do_meta_boxes( 'normal' ); $this->do_text_boxes( 'additional' ); $this->do_meta_boxes( 'additional' ); // Print all submit buttons. $this->do_text_boxes( 'submit' ); ?>
do_text_boxes( 'side' ); $this->do_meta_boxes( 'side' ); ?>