From 84baf7d9d8affddfe3278fd48b8665b51839d563 Mon Sep 17 00:00:00 2001 From: Aimeos Date: Tue, 11 Oct 2022 12:21:41 +0200 Subject: [PATCH] Fixed meta tags for catalog detail images --- src/Base/View/Helper/Image/Standard.php | 39 +++++++++++++------------ 1 file changed, 20 insertions(+), 19 deletions(-) diff --git a/src/Base/View/Helper/Image/Standard.php b/src/Base/View/Helper/Image/Standard.php index 6c29bbacb..0a1de2538 100644 --- a/src/Base/View/Helper/Image/Standard.php +++ b/src/Base/View/Helper/Image/Standard.php @@ -46,26 +46,27 @@ public function transform( \Aimeos\MShop\Media\Item\Iface $media, string $sizes if( !strncmp( $media->getMimetype(), 'video/', 6 ) ) { - return ''; + return ' + + '; } - return '' . $enc->attr( $media->getProperties( 'title' )->first( $media->getName() ) ) . ' - - '; + return ' +
+ ' . $enc->attr( $media->getProperties( 'title' )->first( $media->getName() ) ) . ' +
+ '; } }