>
]+src=[\'"]([^\'"]+)[\'"][^>]*>/i', $post_content, $matches);
// Check if a matching image URL is found
if (!empty($matches[1])) {
// Get the matched image URL
$image_url = $matches[1];
// Output the custom HTML structure
?>
', '' );
else:
the_title( sprintf( '
' );
endif;
the_excerpt();
?>