Skip to content

Commit

Permalink
[3475695] Updated civictheme_media_get_variables to handle the OEmbed…
Browse files Browse the repository at this point in the history
… (remote video).
  • Loading branch information
Joshua Fernandes committed Nov 13, 2024
1 parent 3ea424d commit afc024b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions web/themes/contrib/civictheme/includes/utilities.inc
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ function civictheme_media_get_variables(MediaInterface $media): ?array {
}

$variables += [
'name' => t('@name', ['@name' => $file->label()]),
'ext' => pathinfo((string) $file->getFileUri(), PATHINFO_EXTENSION) ?: '',
'url' => civictheme_media_get_url($media),
'size' => ByteSizeMarkup::create($file->getSize()),
Expand Down

0 comments on commit afc024b

Please sign in to comment.