. * @param WP_Block $block The instance of the WP_Block class that represents the block being rendered. * * @package breadcrumb-navxt */ if($attributes['hideonHome'] === true && is_front_page() && !(is_paged() && $GLOBALS['breadcrumb_navxt']->show_paged())) { return; } //Handle in-editor previews, function check to prevent requiring WP6.5 if(function_exists('wp_is_serving_rest_request') && wp_is_serving_rest_request() && isset($block->context['postId']) && current_user_can('read_post', absint($block->context['postId']))) { $preview_post = get_post(absint($block->context['postId'])); if($attributes['format'] === 'list') { $template = "%1\$s\n"; $outer_template = "\n"; } else { $template = '%1$s%2$s'; $outer_template = '%1$s'; } $trail_string_safe = $GLOBALS['breadcrumb_navxt']->_display_post($preview_post, true, $attributes['link'], $attributes['reverseOrder'], $attributes['ignoreCache'], $template, $outer_template); } else if($attributes['format'] === 'list') { $trail_string_safe = bcn_display_list(true, $attributes['link'], $attributes['reverseOrder'], $attributes['ignoreCache']); } else { $trail_string_safe = bcn_display(true, $attributes['link'], $attributes['reverseOrder'], $attributes['ignoreCache']); } if($attributes['format'] === 'list') { ?>
    'breadcrumbs') ) );?>>
'breadcrumbs', 'vocab' => 'https://schema.org/', 'typeof' => 'BreadcrumbList' ) ) );?>>
'breadcrumbs', 'itemtype' => 'https://schema.org/BreadcrumbList' ) ) );?>>
'breadcrumbs' ) ) );?>>