Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <#assign
- blogEntry = assetRenderer.getAssetObject()
- coverImageURL = blogEntry.getCoverImageURL(themeDisplay)
- />
- <!-- Cover Image (as background). The div must have some dimensions -->
- <#if validator.isNotNull(coverImageURL)>
- <div class="cover-image-container" style="background-image: url(${coverImageURL})"></div>
- </#if>
- <!-- Cover Image (as image) -->
- <#if validator.isNotNull(coverImageURL)>
- <div class="asset-small-image">
- <img alt="" class="asset-small-image img-thumbnail" src="${coverImageURL}" width="150" />
- </div>
- </#if>
- <!-- Small Image -->
- <#if blogEntry.isSmallImage()>
- <div class="asset-small-image">
- <img alt="" class="asset-small-image img-thumbnail" src="${htmlUtil.escape(blogEntry.getSmallImageURL(themeDisplay))}" width="150" />
- </div>
- </#if>
Add Comment
Please, Sign In to add comment