home *** CD-ROM | disk | FTP | other *** search
/ Maximum CD 2012 January / maximum-cd-2012-01.iso / DiscContents / digsby_setup.exe / lib / plugins / facebook / res / like_link.py.xml < prev    next >
Encoding:
Text File  |  2011-02-08  |  1.4 KB  |  30 lines

  1. <?py
  2. num_likes = ('likes' in post and 'count' in post.likes and post.likes.count) or 0;
  3. user_likes = 'likes' in post and 'user_likes' in post.likes and post.likes.user_likes;
  4. can_like = 'likes' in post and ('can_like' not in post.likes or post.likes.can_like);
  5. ?>
  6.     <span class="like_link_block">
  7. <?py if can_like: ?>
  8.         <?py if not user_likes: ?>
  9.             <span class="like_button_section link_section">
  10.                 ┬╖ <!--! this line has a dot  -->
  11.                 <a href="javascript:null;" class="link like_button">${{_('Like')}}</a>
  12.             </span>
  13.         <?py else: ?>
  14.             <span class="like_button_section link_section">
  15.                 ┬╖ <!--! this line has a dot  -->
  16.                 <a href="javascript:null;" class="link unlike_button">${{_('Unlike')}}</a>
  17.             </span>
  18.         <?py #endif ?>
  19.         <?py if num_likes > 0: ?>
  20.             <a class="link link_section num_likes comment_button_section comment_button" href="javascript:null;">(${num_likes})</a>
  21.         <?py #endif ?>
  22. <?py else: ?>
  23.     <?py if num_likes > 0: ?>
  24.         ┬╖ <!--! this line has a dot  -->
  25.         <a class="link link_section num_likes comment_button_section comment_button" href="javascript:null;">${{_('Likes')}} (${num_likes})</a> <!--! <--needs link2 -->
  26.     <?py #endif ?>
  27. <?py #endif ?>
  28.     </span>
  29. <?py del num_likes, user_likes, can_like ?>
  30.