* element so the bio expands when the photo, name, or title is clicked. * * @package CWC */ namespace CWC; $single = get_field( 'single' ); $members = get_field( 'members' ); if ( empty( $members ) ) { return; } // Enqueue the per-block JS only when this block actually renders. $js_path = '/views/blocks/team-grid/team-grid.js'; if ( file_exists( get_stylesheet_directory() . $js_path ) ) { wp_enqueue_script_module( 'cwc-team-grid', get_stylesheet_directory_uri() . $js_path, array(), (string) filemtime( get_stylesheet_directory() . $js_path ) ); } $modeSingle = ''; $blockID = wp_unique_id( 'single-' ); if ( $single ) { $modeSingle = 'name=' . $blockID; } $classes = 'team-grid container my-section mx-auto'; $wrapper = blockWrapperAttributes( $classes, $is_preview ); ?>
>
> <?php echo esc_attr( $member['image']['alt'] ?? '' ); ?>

Read Bio