home *** CD-ROM | disk | FTP | other *** search
/ Maximum CD 2012 January / maximum-cd-2012-01.iso / DiscContents / digsby_setup.exe / lib / plugins / facebook / res / attachment.py.xml < prev    next >
Encoding:
Text File  |  2009-11-13  |  1.5 KB  |  39 lines

  1. <?py if do_attachment: ?>
  2. <div class="attachment minor">
  3.     <?py if have_media: ?>
  4.         <?py include(r"#{{app.resource('media.py.xml')}}") ?>
  5.     <?py #endif ?>
  6.     <?py if ('name' in post.attachment and post.attachment.name): ?>
  7.         <?py if ('attachment' in post and 'media' in post.attachment and len(post.attachment.media)) > 1: ?>
  8.             <div class="attachment_name multimedia_attachment_name">
  9.         <?py else: ?>
  10.             <div class="attachment_name one_zero_media_attachment_name">
  11.         <?py #endif?>
  12.         <?py if 'href' in post.attachment: ?>
  13.             <a href="${post.attachment.href}">${post.attachment.name}</a>
  14.         <?py else: ?>
  15.             #{linkify(escape(to_str(post.attachment.name)))}
  16.         <?py #endif ?>
  17.         </div>
  18.         <?py if ('caption' in post.attachment and post.attachment.caption): ?>
  19.             <?py if ('attachment' in post and 'media' in post.attachment and len(post.attachment.media)) > 1: ?>
  20.                 <span> - </span>
  21.             <?py else: ?>
  22. <br/>
  23.             <?py #endif?>
  24.             <div class="attachment_caption">#{linkify(post.attachment.caption)}</div>
  25.         <?py #endif ?>
  26.     <?py #endif ?>
  27.     <?py if do_description: ?>
  28.     <div class="attachment_description">
  29.         #{linkify(post.attachment.description)}
  30.     </div>
  31.     <?py #endif ?>
  32.     <?py if have_media: ?>
  33.         <div class="attachment_end media_attachment_end"></div>
  34.     <?py else: ?>
  35.         <div class="attachment_end"></div>
  36.     <?py #endif ?>
  37. </div>
  38. <?py #endif ?>
  39.