Skip to content

Commit

Permalink
refactor: Parse ev args
Browse files Browse the repository at this point in the history
Fixes #96
  • Loading branch information
octfx committed Jul 14, 2024
1 parent f84c125 commit 0eff8e9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions includes/EmbedService/EmbedHtmlFormatter.php
Original file line number Diff line number Diff line change
Expand Up @@ -194,8 +194,8 @@ public static function makeThumbHtml( AbstractEmbedService $service ): string {

// phpcs:disable
return <<<HTML
<picture class="embedvideo-thumbnail">
<img src="{$url}" loading="lazy" class="embedvideo-thumbnail__image" alt="Thumbnail for {$service->getTitle()}"/>
<picture class="embedvideo-thumbnail"><!--
--><img src="{$url}" loading="lazy" class="embedvideo-thumbnail__image" alt="Thumbnail for {$service->getTitle()}"/>
</picture>
HTML;
// phpcs:enable
Expand Down
2 changes: 1 addition & 1 deletion includes/EmbedVideo.php
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ public static function parseEV( Parser $parser, PPFrame $frame, array $args, boo
foreach ( $args as $key => $arg ) {
$value = trim( $frame->expand( $arg ) );
if ( $fromTag === true ) {
$expandedArgs[$key] = $value;
$expandedArgs[$key] = $parser->recursiveTagParse( $value, $frame );
} else {
$expandedArgs[] = $value;
}
Expand Down

0 comments on commit 0eff8e9

Please sign in to comment.