viewthread_node.htm 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. <!--{eval $_G[forum_thread][special] = 0;}-->
  2. <!-- main postlist start -->
  3. <!--{eval $needhiddenreply = ($hiddenreplies && $_G['uid'] != $post['authorid'] && $_G['uid'] != $_G['forum_thread']['authorid'] && !$post['first'] && !$_G['forum']['ismoderator']);}-->
  4. <div class="plc cl">
  5. <span class="avatar"><img src="<!--{avatar($post[authorid], small, true)}-->" style="width:32px;height:32px;" /></span>
  6. <div class="pi">
  7. <ul class="authi">
  8. <li class="grey">
  9. <em>
  10. <!--{if isset($post[isstick])}-->
  11. <img src ="{IMGDIR}/settop.png" title="{lang replystick}" class="vm" /> {lang from} {$post[number]}{$postnostick}
  12. <!--{elseif $post[number] == -1}-->
  13. {lang recommend_post}
  14. <!--{else}-->
  15. <!--{if !empty($postno[$post[number]])}-->$postno[$post[number]]<!--{else}-->{$post[number]}{$postno[0]}<!--{/if}-->
  16. <!--{/if}-->
  17. </em><b>
  18. <!--{if $post['authorid'] && $post['username'] && !$post['anonymous']}-->
  19. <a href="home.php?mod=space&uid=$post[authorid]" class="blue">$post[author]</a></b>
  20. <!--{if $post[authorid] != $_G[uid] && $_G[uid]}-->
  21. <a href="forum.php?mod=post&action=reply&fid=$_G[fid]&tid=$_G[tid]&repquote=$post[pid]&extra=$_GET[extra]&page=$page" class="xg1" title="{lang reply}">{lang reply}</a>
  22. <!--{/if}-->
  23. <!--{else}-->
  24. <!--{if !$post['authorid']}-->
  25. <a href="javascript:;">{lang guest} <em>$post[useip]{if $post[port]}:$post[port]{/if}</em></a>
  26. <!--{elseif $post['authorid'] && $post['username'] && $post['anonymous']}-->
  27. <!--{if $_G['forum']['ismoderator']}--><a href="home.php?mod=space&uid=$post[authorid]" target="_blank">{lang anonymous}</a><!--{else}-->{lang anonymous}<!--{/if}-->
  28. <!--{else}-->
  29. $post[author] <em>{lang member_deleted}</em>
  30. <!--{/if}-->
  31. <!--{/if}-->
  32. </li>
  33. <li class="grey rela">
  34. $post[dateline]
  35. </li>
  36. </ul>
  37. <div class="message">
  38. <!--{if $post['warned']}-->
  39. <span class="grey quote">{lang warn_get}</span>
  40. <!--{/if}-->
  41. <!--{if !$post['first'] && !empty($post[subject])}-->
  42. <h2><strong>$post[subject]</strong></h2>
  43. <!--{/if}-->
  44. <!--{if $_G['adminid'] != 1 && $_G['setting']['bannedmessages'] & 1 && (($post['authorid'] && !$post['username']) || ($post['groupid'] == 4 || $post['groupid'] == 5) || $post['status'] == -1 || $post['memberstatus'])}-->
  45. <div class="grey quote">{lang message_banned}</div>
  46. <!--{elseif $_G['adminid'] != 1 && $post['status'] & 1}-->
  47. <div class="grey quote">{lang message_single_banned}</div>
  48. <!--{elseif $needhiddenreply}-->
  49. <div class="grey quote">{lang message_ishidden_hiddenreplies}</div>
  50. <!--{elseif $post['first'] && $_G['forum_threadpay']}-->
  51. <!--{template forum/viewthread_pay}-->
  52. <!--{else}-->
  53. <!--{if $_G['setting']['bannedmessages'] & 1 && (($post['authorid'] && !$post['username']) || ($post['groupid'] == 4 || $post['groupid'] == 5))}-->
  54. <div class="grey quote">{lang admin_message_banned}</div>
  55. <!--{elseif $post['status'] & 1}-->
  56. <div class="grey quote">{lang admin_message_single_banned}</div>
  57. <!--{/if}-->
  58. <!--{if $_G['forum_thread']['price'] > 0 && $_G['forum_thread']['special'] == 0}-->
  59. {lang pay_threads}: <strong>$_G[forum_thread][price] {$_G['setting']['extcredits'][$_G['setting']['creditstransextra'][1]][unit]}{$_G['setting']['extcredits'][$_G['setting']['creditstransextra'][1]][title]} </strong> <a href="forum.php?mod=misc&action=viewpayments&tid=$_G[tid]" >{lang pay_view}</a>
  60. <!--{/if}-->
  61. <!--{if $post['first'] && $threadsort && $threadsortshow}-->
  62. <!--{if $threadsortshow['optionlist'] && !($post['status'] & 1) && !$_G['forum_threadpay']}-->
  63. <!--{if $threadsortshow['optionlist'] == 'expire'}-->
  64. {lang has_expired}
  65. <!--{else}-->
  66. <div class="box_ex2 viewsort">
  67. <h4>$_G[forum][threadsorts][types][$_G[forum_thread][sortid]]</h4>
  68. <!--{loop $threadsortshow['optionlist'] $option}-->
  69. <!--{if $option['type'] != 'info'}-->
  70. $option[title]: <!--{if $option['value']}-->$option[value] $option[unit]<!--{else}--><span class="xg1">--</span><!--{/if}--><br />
  71. <!--{/if}-->
  72. <!--{/loop}-->
  73. </div>
  74. <!--{/if}-->
  75. <!--{/if}-->
  76. <!--{/if}-->
  77. <!--{if $post['first']}-->
  78. <!--{if !$_G[forum_thread][special]}-->
  79. $post[message]
  80. <!--{elseif $_G[forum_thread][special] == 1}-->
  81. <!--{template forum/viewthread_poll}-->
  82. <!--{elseif $_G[forum_thread][special] == 2}-->
  83. <!--{template forum/viewthread_trade}-->
  84. <!--{elseif $_G[forum_thread][special] == 3}-->
  85. <!--{template forum/viewthread_reward}-->
  86. <!--{elseif $_G[forum_thread][special] == 4}-->
  87. <!--{template forum/viewthread_activity}-->
  88. <!--{elseif $_G[forum_thread][special] == 5}-->
  89. <!--{template forum/viewthread_debate}-->
  90. <!--{elseif $threadplughtml}-->
  91. $threadplughtml
  92. $post[message]
  93. <!--{else}-->
  94. $post[message]
  95. <!--{/if}-->
  96. <!--{else}-->
  97. $post[message]
  98. <!--{/if}-->
  99. <!--{/if}-->
  100. </div>
  101. <!--{if $_G['setting']['mobile']['mobilesimpletype'] == 0}-->
  102. <!--{if $post['attachment']}-->
  103. <div class="grey quote">
  104. {lang attachment}: <em><!--{if $_G['uid']}-->{lang attach_nopermission}<!--{else}-->{lang attach_nopermission_login}<!--{/if}--></em>
  105. </div>
  106. <!--{elseif $post['imagelist'] || $post['attachlist']}-->
  107. <!--{if $post['imagelist']}-->
  108. <!--{if count($post['imagelist']) == 1}-->
  109. <ul class="img_one">{echo showattach($post, 1)}</ul>
  110. <!--{else}-->
  111. <ul class="img_list cl vm">{echo showattach($post, 1)}</ul>
  112. <!--{/if}-->
  113. <!--{/if}-->
  114. <!--{if $post['attachlist']}-->
  115. <ul>{echo showattach($post)}</ul>
  116. <!--{/if}-->
  117. <!--{/if}-->
  118. <!--{/if}-->
  119. </div>
  120. </div>
  121. <!-- main postlist end -->