@@ -46,7 +46,7 @@ |
||
46 | 46 | <meta property="og:title" content="<?= $enc->attr( strip_tags( $this->detailProductItem->getName() ) ) ?>"> |
47 | 47 | <meta property="og:url" content="<?= $enc->attr( $this->url( $this->detailProductItem->getTarget() ?: $detailTarget, $detailController, $detailAction, $params, [], $detailConfig + ['absoluteUri' => true] ) ) ?>"> |
48 | 48 | |
49 | - <?php if( $mediaItem = $this->detailProductItem->getRefItems( 'media', 'default', 'default' )->first() ) : ?> |
|
49 | + <?php if( $mediaItem = $this->detailProductItem->getRefItems( 'media', 'default', 'default' )->first() ) : ?> |
|
50 | 50 | <meta property="og:image" content="<?= $enc->attr( $this->content( $mediaItem->getPreview( true ), $mediaItem->getFileSystem() ) ) ?>"> |
51 | 51 | <meta name="twitter:card" content="summary_large_image"> |
52 | 52 | <?php endif ?> |