Skip to content

Commit

Permalink
Neuer Extension Point MEDIA_LIST_THUMBNAIL (#5448)
Browse files Browse the repository at this point in the history
  • Loading branch information
danspringer committed Jan 2, 2023
1 parent 5e15d02 commit b3da1e4
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions redaxo/src/addons/mediapool/pages/media.list.php
Expand Up @@ -276,6 +276,14 @@
}
}

// Register new EP MEDIA_LIST_THUMBNAIL - fuer Vorschau-Manipulation z.B. fuer Plyr/Lottie
// ----- EXTENSION POINT
$thumbnail = rex_extension::registerPoint(new rex_extension_point('MEDIA_LIST_THUMBNAIL', $thumbnail, [
'id' => $media->getId(),
'filename' => $media->getFileName(),
'media' => $media,
]));

if ('' == $media->getTitle()) {
$fileTitle = '[' . rex_i18n::msg('pool_file_notitle') . ']';
}
Expand Down

0 comments on commit b3da1e4

Please sign in to comment.