Advertisement
RexHacker

Add Circle Image Style to Popular Posts-2

Mar 2nd, 2014
246
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.16 KB | None | 0 0
  1. <b:widget id='PopularPosts1' locked='false' title='Popular Posts' type='PopularPosts'>
  2. <b:includable id='main'>
  3. <b:if cond='data:title'>
  4. <h2>
  5. <data:title/>
  6. </h2>
  7. </b:if>
  8. <div class='widget-content popular-posts'>
  9. <ul>
  10. <b:loop values='data:posts' var='post'>
  11. <dd>
  12. <b:if cond='data:showThumbnails == &quot;false&quot;'>
  13. <b:if cond='data:showSnippets == &quot;false&quot;'>
  14. <!-- (1) No snippet/thumbnail -->
  15. <a expr:href='data:post.href'><data:post.title/></a>
  16. <b:else/>
  17. <!-- (2) Show only snippets -->
  18. <div class='item-title'>
  19. <a expr:href='data:post.href'><data:post.title/></a>
  20. </div>
  21. <div class='item-snippet'>
  22. <data:post.snippet/>
  23. </div>
  24. </b:if>
  25. <b:else/>
  26. <b:if cond='data:showSnippets == &quot;false&quot;'>
  27. <!-- (3) Show only thumbnails -->
  28. <div class='item-thumbnail-only'>
  29. <b:if cond='data:post.thumbnail'>
  30. <div class='item-thumbnail'>
  31. <a expr:href='data:post.href' target='_blank'>
  32. <img alt='' border='0' expr:height='data:thumbnailSize' expr:src='data:post.thumbnail' expr:width='data:thumbnailSize'/>
  33. </a>
  34. </div>
  35. </b:if>
  36. <div class='item-title'>
  37. <a expr:href='data:post.href'><data:post.title/></a>
  38. </div>
  39. </div>
  40. <div style='clear: both;' />
  41. <b:else/>
  42. <!-- (4) Show snippets and thumbnails -->
  43. <b:if cond='data:post.thumbnail'>
  44. <a expr:href='data:post.href' expr:title='data:post.title' rel='bookmark'><img expr:alt='data:post.title' expr:src='data:post.thumbnail' height='60px' width='60px'/></a>
  45. <b:else/>
  46. <a expr:href='data:post.href' expr:title='data:post.title' rel='bookmark'><img alt='no image' height='60px' src='http://3.bp.blogspot.com/-yIv8Rn_rvvA/T6-sigEHCYI/AAAAAAAABvY/BepU32JUC5g/s1600/helperblogger-default-image.jpg' width='60px'/></a>
  47. </b:if>
  48. </b:if>
  49. </b:if>
  50. </dd>
  51. </b:loop>
  52. </ul>
  53. <div class='clear' />
  54. <b:include name='quickedit' />
  55. </div>
  56. </b:includable>
  57. </b:widget>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement