*/ public const LINK_PROTOCOLS = [ 'https', 'http', 'cursor', 'vscode' ]; /** * Render a guide: its steps, or why it cannot work here. * * @param AlbertClientGuide $guide The guide. * @param string $id_prefix Prefix for element ids, unique per place it is drawn. * * @return void * @since 1.5.0 */ public static function render( array $guide, string $id_prefix ): void { $base = $id_prefix . '-' . $guide['id']; if ( $guide['needs_public'] ) { self::render_unavailable( $guide, $base ); return; } if ( $guide['blocked'] !== '' ) { ?>

! $note['after'] ), $base ); ?>
    $step ) { ?>
$note['after'] ), $base ); ?>

> $notes The notes. * @param string $base Element id base. * * @return void * @since 1.5.0 */ private static function render_notes( array $notes, string $base ): void { foreach ( $notes as $index => $note ) { ?>

$more The snippets. * @param string $base Element id base. * * @return void * @since 1.5.0 */ private static function render_more( array $more, string $base ): void { if ( $more === [] ) { return; } ?>

>
>
' . esc_html( $part ) . ''; } return $html; } }