File: //var/www/gosurya-id/wp-content/plugins/embedpress/Gutenberg/block-backend/block-embedpress.php
<?php
// Exit if accessed directly.
if ( ! defined( 'ABSPATH' ) ) {
	exit;
}
/**
 * It renders gutenberg block of embedpress on the frontend
 * @param array $attributes
 */
function embedpress_render_block($attributes){
	if ( !empty( $attributes['embedHTML']) ) {
		$embed         = apply_filters( 'embedpress_gutenberg_embed', $attributes['embedHTML'], $attributes );
		$aligns = [
			'left' => 'alignleft',
			'right' => 'alignright',
			'wide' => 'alignwide',
			'full' => 'alignfull'
		];
		$alignment = isset($attributes['align']) && isset($aligns[$attributes['align']])?$aligns[$attributes['align']]:'';
		ob_start();
		?>
		<div class="embedpress-gutenberg-wrapper <?php echo esc_attr($alignment) ?>">
			<div class="wp-block-embed__wrapper">
				<?php echo $embed; ?>
			</div>
		</div>
		<?php
		return ob_get_clean();
	}
}