Skip to content

Commit

Permalink
Fixed meta tags for catalog detail images
Browse files Browse the repository at this point in the history
  • Loading branch information
aimeos committed Oct 11, 2022
1 parent 73d8785 commit 5d9a4a3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Base/View/Helper/Image/Standard.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public function transform( \Aimeos\MShop\Media\Item\Iface $media, string $sizes
src="' . $enc->attr( $view->content( $media->getUrl(), $media->getFileSystem() ) ) . '"
alt="' . $enc->attr( $media->getProperties( 'title' )->first( $media->getName() ) ) . '"
' . $variant . ' representativeOfPage="' . ( $main ? 'true' : 'false' ) . '">
<meta contentUrl="' . $enc->attr( $view->content( $media->getUrl(), $media->getFileSystem() ) ) . '"
<meta contentUrl="' . $enc->attr( $view->content( $media->getUrl(), $media->getFileSystem() ) ) . '" />
</video>';
}

Expand All @@ -65,7 +65,7 @@ public function transform( \Aimeos\MShop\Media\Item\Iface $media, string $sizes
data-zoom="' . $enc->attr( $view->content( $media->getUrl(), $media->getFileSystem() ) ) . '"
alt="' . $enc->attr( $media->getProperties( 'title' )->first( $media->getName() ) ) . '"
sizes="' . $sizes . '" ' . $variant . ' representativeOfPage="' . ( $main ? 'true' : 'false' ) . '">
<meta contentUrl="' . $enc->attr( $view->content( $media->getPreview(), $media->getFileSystem() ) ) . '"
<meta contentUrl="' . $enc->attr( $view->content( $media->getPreview(), $media->getFileSystem() ) ) . '" />
</img>';
}
}

0 comments on commit 5d9a4a3

Please sign in to comment.