' . botaniical_get_svg( array( 'icon' => esc_attr( 'calendar' ) ) ), $block_content );
return $block_content;
}
if ( 'core/post-author' === $block['blockName'] ) {
$block_content = str_replace( '
', '
' . botaniical_get_svg( array( 'icon' => esc_attr( 'user' ) ) ), $block_content );
return $block_content;
}
}
if ( is_single() ) {
// Add chevron icon to the navigations
if ( 'core/post-navigation-link' === $block['blockName'] ) {
if ( isset( $block['attrs']['type'] ) && 'previous' === $block['attrs']['type'] ) {
$block_content = str_replace( '', '' . botaniical_get_svg( array( 'icon' => esc_attr( 'prev' ) ) ), $block_content );
} else {
$block_content = str_replace( 'Next Post', 'Next Post' . botaniical_get_svg( array( 'icon' => esc_attr( 'next' ) ) ), $block_content );
}
return $block_content;
}
}
return $block_content;
}
add_filter( 'render_block', 'botaniical_block_wrapper', 10, 2 );