story = $story; } /** * Renders the block as an image. * * @since 1.0.0 * * @param array $args Array of Argument to render. * @return string Rendered block type output. */ public function render( array $args = [] ): string { $defaults = [ 'align' => 'none', 'class' => 'wp-block-web-stories-embed', 'height' => 600, 'width' => 360, ]; $args = wp_parse_args( $args, $defaults ); $align = sprintf( 'align%s', $args['align'] ); $class = $args['class']; $url = $this->story->get_url(); $title = $this->story->get_title(); $poster = $this->story->get_poster_portrait(); $poster_srcset = $this->story->get_poster_srcset(); $poster_sizes = $this->story->get_poster_sizes(); ob_start(); ?>
<?php echo esc_attr( $title ); ?> srcset="" sizes="" loading="lazy" decoding="async" />