$academy_dashboard, 'instructor_status' => $academy_status, ] ); } else { \Academy\Helper::get_template( 'shortcode/logged-in-student.php', [ 'dashboard_url' => $academy_dashboard ] ); } printf( '
%2$s
', get_block_wrapper_attributes(), ob_get_clean() ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped return; } \Academy\Blocks::use_course_assets(); // The first form for a role keeps the classic form's ID, which its script // (and add-ons such as reCAPTCHA) look for. static $academy_seen = []; $academy_seen[ $academy_role ] = ( $academy_seen[ $academy_role ] ?? 0 ) + 1; $academy_dom_id = 'academy_' . $academy_role . '_reg_form' . ( $academy_seen[ $academy_role ] > 1 ? '_' . $academy_seen[ $academy_role ] : '' ); $academy_submit = '' !== trim( (string) $attributes['submitLabel'] ) ? $attributes['submitLabel'] : ( 'instructor' === $academy_role ? __( 'Register as Instructor', 'academy' ) : __( 'Register as Student', 'academy' ) ); $academy_wrapper = get_block_wrapper_attributes( [ 'class' => 'academy-reg-block', 'style' => \Academy\Blocks::academy_colors_style( $attributes ), ] ); ?>
>