@@ -64,7 +64,9 @@ discard block |
||
| 64 | 64 | public function renderGalleryImage( WP_Post $attachment ) |
| 65 | 65 | { |
| 66 | 66 | $image = $this->getImageSrc( $attachment->ID ); |
| 67 | - if( !$image )return; |
|
| 67 | + if( !$image ) { |
|
| 68 | + return; |
|
| 69 | + } |
|
| 68 | 70 | return sprintf( |
| 69 | 71 | '<figure data-w="%s" data-h="%s" data-ps="%s" itemprop="associatedMedia" itemscope itemtype="http://schema.org/ImageObject">' . |
| 70 | 72 | '<a href="%s" itemprop="contentUrl"><img src="%s" data-src="%s" itemprop="thumbnail" alt="%s"/></a>' . |
@@ -118,7 +120,9 @@ discard block |
||
| 118 | 120 | { |
| 119 | 121 | $thumbnail = wp_get_attachment_image_src( $id, 'thumbnail' ); |
| 120 | 122 | |
| 121 | - if( !$thumbnail )return; |
|
| 123 | + if( !$thumbnail ) { |
|
| 124 | + return; |
|
| 125 | + } |
|
| 122 | 126 | |
| 123 | 127 | $medium = $this->normalizeImageSrc( wp_get_attachment_image_src( $id, 'medium' ), $thumbnail ); |
| 124 | 128 | $large = $this->normalizeImageSrc( wp_get_attachment_image_src( $id, 'large' ), $medium ); |