home *** CD-ROM | disk | FTP | other *** search
/ Maximum CD 2011 February / maximum-cd-2011-02.iso / DiscContents / digsby_setup85.exe / lib / plugins / facebook / res / medium.py.xml < prev    next >
Encoding:
Text File  |  2009-09-10  |  1.4 KB  |  25 lines

  1.  
  2. <table class="media_table"><tr class="media_row">
  3. <?py for img in post.attachment.media: ?>
  4. <td class="media_cell">
  5.  
  6.     <?py src  = (img.src if 'src' in img else ''); ?>
  7.     <?py href = (img.href if 'href' in img else ''); ?>
  8.     <?py if 'type' in img and img.type == 'photo': ?>
  9.             <?py if bool('alt' in img and img.alt): ?>
  10.                     <a href="${str(src).replace('_s.', '_n.')}" context="${href}" index="${img.photo.index}" aid="${img.photo.aid}" pid="${img.photo.pid}" class="photolinklink"><img alt="${img.alt}" title="${img.alt}" src="${src}" longdesc="${str(src).replace('_s.', '_n.')}" class="picturelink"/></a>
  11.             <?py else: ?>
  12.                     <a href="${str(src).replace('_s.', '_n.')}" context="${href}" index="${img.photo.index}" aid="${img.photo.aid}" pid="${img.photo.pid}" class="photolinklink"><img src="${src}" longdesc="${str(src).replace('_s.', '_n.')}" class="picturelink"/></a>
  13.             <?py #endif ?>
  14.     <?py else: ?>
  15.             <?py if bool('alt' in img and img.alt): ?>
  16.                     <a href="${href}" class="picturelinklink"><img alt="${img.alt}" title="${img.alt}" src="${src}" class="picturelink"/></a>
  17.             <?py else: ?>
  18.                     <a href="${href}" class="picturelinklink"><img src="${src}" class="picturelink"/></a>
  19.             <?py #endif ?>
  20.     <?py #endif ?>
  21.     <?py del src, href ?>
  22. </td>
  23. <?py #endfor ?>
  24. </tr></table>
  25.