Guest User

Untitled

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