follow_feed_li.htm 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. <!--{eval $carray = array();}-->
  2. <!--{eval $beforeuser = 0;}-->
  3. <!--{eval $hiddennum = 0;}-->
  4. <!--{loop $list['feed'] $feed}-->
  5. <!--{eval $content = $list['content'][$feed['tid']];}-->
  6. <!--{eval $thread = $list['threads'][$content['tid']];}-->
  7. <!--{if !empty($thread) && $thread['displayorder'] >= 0 || !empty($feed['note'])}-->
  8. <li class="cl{if $lastviewtime && $feed[dateline] > $lastviewtime} unread{/if}" id="feed_li_$feed['feedid']" onmouseover="this.className='flw_feed_hover cl'" onmouseout="this.className='cl'">
  9. <!--{if $_GET['do'] != 'view' && !isset($_GET[banavatar])}-->
  10. <div class="z flw_avt">
  11. <!--{if $beforeuser != $feed['uid']}-->
  12. <!--{eval $beforeuser = $feed['uid'];}-->
  13. <a href="home.php?mod=space&uid=$feed[uid]" class="z" c="1" shref="home.php?mod=space&uid=$feed[uid]"><!--{avatar($feed[uid],'small')}--></a>
  14. <span class="cnr"></span>
  15. <!--{/if}-->
  16. </div>
  17. <!--{/if}-->
  18. <div class="flw_article" {if $_GET['do'] == 'view' || $_GET[banavatar]}style="margin-left:0"{/if}>
  19. <!--{if $feed[uid] == $_G[uid] || $_G['adminid'] == 1}-->
  20. <a href="home.php?mod=spacecp&ac=follow&feedid=$feed[feedid]&op=delete" id="c_delete_$feed['feedid']" onclick="showWindow(this.id, this.href, 'get', 0);" class="flw_delete">{lang delete}</a>
  21. <!--{/if}-->
  22. <div class="flw_author">
  23. <a href="home.php?mod=space&uid=$feed[uid]" c="1" shref="home.php?mod=space&uid=$feed[uid]">$feed['username']</a>
  24. <span class="xg1">&nbsp;<!--{eval echo dgmdate($feed['dateline'], 'u');}--></span>
  25. </div>
  26. <!--{if $feed['note']}-->
  27. <div class="flw_quotenote xs2 pbw">
  28. $feed['note']
  29. </div>
  30. <div class="flw_quote">
  31. <!--{/if}-->
  32. <!--{if !empty($thread) && $thread['displayorder'] >= 0}-->
  33. <h2 class="wx pbn">
  34. <!--{if isset($carray[$feed['cid']])}-->
  35. <a href="javascript:;" onclick="vieworiginal(this, 'original_content_$feed[feedid]');return false;" class="flw_readfull y xw0 xs1 xi2">+ {lang follow_open_feed}</a>
  36. <!--{/if}-->
  37. <!--{if $thread[fid] != $_G[setting][followforumid]}-->
  38. <a href="forum.php?mod=viewthread&tid=$content['tid']&extra=page%3D1" target="_blank">$thread['subject']</a>
  39. <!--{/if}-->
  40. </h2>
  41. <div class="pbm c cl" id="original_content_$feed[feedid]" {if isset($carray[$feed['cid']])} style="display: none"{/if}>
  42. $content['content']
  43. <!--{if $thread['special'] && $thread[fid] != $_G[setting][followforumid]}-->
  44. <br/>
  45. <a href="forum.php?mod=viewthread&tid=$content['tid']&extra=page%3D1" target="_blank">{lang follow_special_thread_tip}</a>
  46. <!--{/if}-->
  47. </div>
  48. <div class="xg1 cl">
  49. <span class="y">
  50. <!--{if helper_access::check_module('follow')}-->
  51. <a href="javascript:;" id="relay_$feed[feedid]" onclick="quickrelay($feed['feedid'], $thread['tid']);">{lang follow_reply}($content['relay'])</a>&nbsp;
  52. <!--{/if}-->
  53. <a href="javascript:;" onclick="quickreply($thread['fid'], $thread['tid'], $feed['feedid'])">{lang reply}($thread['replies'])</a>
  54. </span>
  55. <!--{if $feed['note']}--><a href="home.php?mod=space&uid=$feed[uid]">$thread['author']</a> {lang follow_post_by_time} <!--{date($thread['dateline'])}-->&nbsp;<!--{/if}-->
  56. <!--{if $thread[fid] != $_G[setting][followforumid] && $_G['cache']['forums'][$thread['fid']]['name']}-->#<a href="forum.php?mod=forumdisplay&fid=$thread['fid']">$_G['cache']['forums'][$thread['fid']]['name']</a><!--{/if}-->
  57. </div>
  58. <!--{else}-->
  59. <div class="pbm c cl" id="original_content_$feed[feedid]" {if isset($carray[$feed['cid']])} style="display: none"{/if}>
  60. {lang follow_thread_deleted}
  61. </div>
  62. <!--{/if}-->
  63. <!--{if $feed['note']}--></div><!--{/if}-->
  64. </div>
  65. <div id="replybox_$feed['feedid']" class="flw_replybox cl" style="display: none;"></div>
  66. <div id="relaybox_$feed['feedid']" class="flw_replybox cl" style="display: none;"></div>
  67. </li>
  68. <!--{else}-->
  69. <!--{eval $hiddennum++;}-->
  70. <!--{/if}-->
  71. <!--{if !isset($carray[$feed['cid']])}-->
  72. <!--{eval $carray[$feed['cid']] = $feed['cid'];}-->
  73. <!--{/if}-->
  74. <!--{/loop}-->