setup_menu_tabs(); $this->render_page($title); } /** * Render the menu page * * @param string $title - the page title * * @return void */ protected function render_page($title) { $current_tab = $this->get_current_tab(); ?>
'; $message .= __('The settings have been successfully updated.', 'all-in-one-wp-security-and-firewall'); $message .= '
'; if ($return_instead_of_echo) return $message; echo $message; } /** * Renders record(s) successfully deleted message at top of page. * * @param bool $return_instead_of_echo - This is used for when the function needs to return the message * @return mixed */ public static function show_msg_record_deleted_st($return_instead_of_echo = false) { return AIOWPSecurity_Admin_Menu::show_msg_updated_st(__('The selected record(s) has been deleted successfully.', 'all-in-one-wp-security-and-firewall'), $return_instead_of_echo); } /** * Renders record(s) unsuccessfully deleted message at top of page. * * @param bool $return_instead_of_echo - This is used for when the function needs to return the message * @return mixed */ public static function show_msg_record_not_deleted_st($return_instead_of_echo = false) { return AIOWPSecurity_Admin_Menu::show_msg_error_st(__('The selected record(s) have failed to delete.', 'all-in-one-wp-security-and-firewall'), $return_instead_of_echo); } /** * Render successfully updated message * * @param string $msg - This contains the message to show * @param bool $return_instead_of_echo - This is used for when the function needs to return the message * * @return string|void */ public function show_msg_updated($msg, $return_instead_of_echo = false) { $message = ''; $message .= wp_kses_post($msg); $message .= '
'; $message .= wp_kses_post($msg); $message .= '
'; $message .= wp_kses_post($error_msg); $message .= '
'; $message .= wp_kses_post($error_msg); $message .= '