Pending_Account_Screen::render_settings_page()
Summary
No summary available.Source
File: src/BigCommerce/Settings/Screens/Pending_Account_Screen.php
public function render_settings_page() { $account_id = get_option( Onboarding_Api::ACCOUNT_ID, '' ); if ( $account_id ) { $message = __( 'Bear with us just a moment while we finish creating your account.', 'bigcommerce' ); } else { $message = __( 'Bear with us just a moment while we gather information about your account.', 'bigcommerce' ); } ob_start(); printf( '<div class="bc-welcome__account-connection">' ); printf( '<h3 class="bc-welcome__pending-account-message"><i class="spinner bc-connect-spinner"></i> %s</h3>', $message ); printf( '<div class="bc-welcome__account-connection-response" data-js="bc-welcome__account-connection-response"></div>' ); if ( $account_id ) { printf( '<p class="bc-welcome__pending-account-instructions">%s</p>', esc_html( __( 'You’ll receive an email to confirm your email address and set a password for your account.', 'bigcommerce' ) ) ); } printf( '</div>' ); /** * Triggered before the settings screen form starts to render. * The dynamic portion of the hook is the identifier of the settings screen. * * @param string $hook_suffix The hook suffix generated for the screen */ do_action( 'bigcommerce/settings/after_content/page=' . static::NAME, $this->hook_suffix ); $content = ob_get_clean(); printf( '%s<div class="wrap bc-settings bc-settings-%s">%s<div class="bc-settings-content-wrap">%s%s</div></div>', $this->onboarding_page_header(), static::NAME, $this->progress_bar(), $this->get_header(), $content ); }