Guest User

Untitled

a guest
Feb 24th, 2018
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.77 KB | None | 0 0
  1. <#assign
  2. blogEntry = assetRenderer.getAssetObject()
  3. coverImageURL = blogEntry.getCoverImageURL(themeDisplay)
  4. />
  5.  
  6. <!-- Cover Image (as background). The div must have some dimensions -->
  7.  
  8. <#if validator.isNotNull(coverImageURL)>
  9. <div class="cover-image-container" style="background-image: url(${coverImageURL})"></div>
  10. </#if>
  11.  
  12. <!-- Cover Image (as image) -->
  13. <#if validator.isNotNull(coverImageURL)>
  14. <div class="asset-small-image">
  15. <img alt="" class="asset-small-image img-thumbnail" src="${coverImageURL}" width="150" />
  16. </div>
  17. </#if>
  18.  
  19. <!-- Small Image -->
  20.  
  21. <#if blogEntry.isSmallImage()>
  22. <div class="asset-small-image">
  23. <img alt="" class="asset-small-image img-thumbnail" src="${htmlUtil.escape(blogEntry.getSmallImageURL(themeDisplay))}" width="150" />
  24. </div>
  25. </#if>
Add Comment
Please, Sign In to add comment