%s

', get_block_wrapper_attributes( [ 'class' => 'rooster-docs__breadcrumb' ] ), esc_html__( "The manual's breadcrumb prints here.", 'ai-eshop-optimizer' ) ) ); } return; } $chain = array_reverse( array_merge( [ (int) $current->term_id ], get_ancestors( (int) $current->term_id, 'category', 'taxonomy' ) ) ); $items = ''; foreach ( $chain as $id ) { $term = get_term( $id, 'category' ); if ( $term instanceof WP_Term ) { $items .= '
  • ' . esc_html( $term->name ) . '
  • '; } } if ( is_singular() ) { $items .= '
  • ' . esc_html( (string) get_the_title( (int) get_queried_object_id() ) ) . '
  • '; } $wrapper = get_block_wrapper_attributes( [ 'class' => 'rooster-docs__breadcrumb', 'aria-label' => __( 'Breadcrumb', 'ai-eshop-optimizer' ), 'data-rooster-ui' => 'rooster-one/docs-breadcrumb' ] ); AIEO_Engine_Blocks::out( sprintf( '', $wrapper, $items ) );