Guest User

Untitled

a guest
Jul 17th, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.57 KB | None | 0 0
  1. <div class="folder-listing" tal:condition="folderContents" >
  2.  
  3. <tal:block tal:repeat="item folderContents">
  4. <div class="tileItem visualIEFloatFix vevent"
  5. tal:define="item_url item/getURL|item/absolute_url;
  6. item_id item/getId|item/id;
  7. item_title_or_id item/pretty_title_or_id;
  8. item_description item/Description;
  9. item_type item/portal_type;
  10. item_type_title item/Type;
  11. item_type_class python: 'contenttype-' + normalizeString(item_type);
  12. item_modified item/ModificationDate;
  13. item_created item/CreationDate;
  14. item_date item/Date;
  15. item_wf_state item/review_state|python: wtool.getInfoFor(item, 'review_state', '');
  16. item_wf_state_class python:'state-' + normalizeString(item_wf_state);
  17. item_creator item/Creator;
  18. item_start item/start/ISO|item/StartDate|nothing;
  19. item_end item/end/ISO|item/EndDate|nothing;
  20. item_object item/getObject;
  21. "
  22. tal:attributes="class string:tileItem visualIEFloatFix vevent ${item_type_class}">
  23.  
  24.  
  25. <h5 tal:content="item/portal_type" />
  26. <tal:image
  27. tal:condition="python:item.meta_type in ('Article', 'Blog Entry')">
  28. <img tal:condition="item_object/getImage"
  29. tal:replace="structure python:obj.tag(scale='thumb', css_class='image-left')"
  30. />
  31. </tal:image>
  32.  
  33.  
  34.  
  35.  
  36.  
  37. <a class="blog-title"
  38. tal:attributes="href item_object/absolute_url"
  39. tal:content="item_object/Title">[Program Title]</a><br />
  40. <span tal:content="item_description">Lorem ipsum dolor sit amet, consectetur adipiscing elit.</span><br />
  41. <span class="blogdate">Posted
  42. <span tal:replace="python:toLocalizedTime(item_date)">
  43. August 16, 2001
  44. </span>
  45. </span>
  46.  
  47. </div>
  48.  
  49. </tal:block>
  50. </div>
  51.  
  52. </tal:foldercontents>
  53. </metal:listingmacro>
  54.  
  55. </div>
Add Comment
Please, Sign In to add comment