Advertisement
Guest User

Untitled

a guest
Oct 24th, 2016
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 21.10 KB | None | 0 0
  1. <if test="$this->settings['horizontalTopicView']='no'"></if>
  2. <!-- -->
  3. <!--post:{$post['post']['pid']}-->
  4. <if test="sDeleted:|:$post['post']['_isDeleted'] AND $post['post']['_softDeleteSee']">
  5. {parse template="softDeletedPostBit" group="topic" params="$post, $displayData['sdData'], $topic"}
  6. </if>
  7. <if test="sDeletedNot:|:! $post['post']['_isDeleted']">
  8. <div class='post_block hentry clear clearfix column_view <if test="isSolvedCss:|:$post['post']['_isMarkedAnswered']">solved</if> <if test="postQueued:|:$post['post']['_isHidden']">moderated</if>' id='post_id_{$post['post']['pid']}'>
  9. <a id='entry{$post['post']['pid']}'></a>
  10. <if test="repIgnored:|:!empty( $post['post']['_repignored'] ) AND $post['post']['_repignored'] == 1 && $post['post']['_ignored'] != 1">
  11. <div class='post_ignore'>
  12. <if test="noRep:|:$post['post']['rep_points'] == 0">
  13. <span class='reputation zero' title='{$this->lang->words['top_rep']}'>
  14. </if>
  15. <if test="posRep:|:$post['post']['rep_points'] > 0">
  16. <span class='reputation positive' title='{$this->lang->words['top_rep']}'>
  17. </if>
  18. <if test="negRep:|:$post['post']['rep_points'] < 0">
  19. <span class='reputation negative' title='{$this->lang->words['top_rep']}' >
  20. </if>
  21. {$post['post']['rep_points']}</span> {$this->lang->words['top_this_post_by']} {parse template="userHoverCard" group="global" params="$post['author']"} {$this->lang->words['top_below_thresh']}. <a href='#' title='{$this->lang->words['ignore_view_post']}' id='unhide_post_{$post['post']['pid']}'>{$this->lang->words['rep_view_anyway']}</a>
  22. </div>
  23. </if>
  24.  
  25. <if test="userIgnored:|:$post['post']['_repignored'] == 1 || $post['post']['_ignored']">
  26. <div class='post_ignore'>
  27. <if test="userIgnoredLang:|:$post['post']['_repignored'] == 1">{$this->lang->words['post_ignored_rep']}<else />{$this->lang->words['post_ignored']}</if> {parse template="userHoverCard" group="global" params="$post['author']"}. <a href='#entry{$post['post']['pid']}' title='{$this->lang->words['ignore_view_post']}' style='display: none' id='unhide_post_{$post['post']['pid']}'>{$this->lang->words['rep_view_anyway']}</a>
  28. <if test="userIgnoredLangTwo:|:$this->settings['reputation_enabled'] AND $post['post']['_repignored'] == 1"><div><a href="{parse url="showtopic={$post['post']['topic_id']}&amp;page={$this->request['page']}&amp;rep_filter_set=*&amp;rep_filter=update&amp;secure_key={$this->member->form_hash}" template="showtopic" seotitle="{$topic['title_seo']}" base="public"}">{$this->lang->words['post_ignore_reset_rep']}</a></div></if>
  29. </div>
  30. </if>
  31. <div class='post_wrap' <if test="isNotIgnoring:|:$post['post']['_ignored'] == 1 || $post['post']['_repignored'] == 1">style='display: none'</if>>
  32.  
  33. <if test="$this->settings['horizontalTopicView']!='yes'">
  34.  
  35. <h3>
  36. <span class='post_id right ipsType_small desc blend_links'><if test="hasPages:|:$this->request['page']"><a itemprop="replyToUrl" data-entry-pid='{$post['post']['pid']}' href='{parse url="showtopic={$post['post']['topic_id']}&amp;page={$this->request['page']}{$post['post']['PermalinkUrlBit']}#entry{$post['post']['pid']}" template="showtopic" seotitle="{$topic['title_seo']}" base="public"}' rel='bookmark' title='{$topic['title']}{$this->lang->words['link_to_post']} #{$post['post']['post_count']}'>
  37. <else />
  38. <a itemprop="replyToUrl" data-entry-pid='{$post['post']['pid']}' href='{parse url="showtopic={$post['post']['topic_id']}{$post['post']['PermalinkUrlBit']}#entry{$post['post']['pid']}" template="showtopic" seotitle="{$topic['title_seo']}" base="public"}' rel='bookmark' title='{$topic['title']}{$this->lang->words['link_to_post']} #{$post['post']['post_count']}'>
  39. </if>
  40. #{$post['post']['post_count']}
  41. </a>
  42. </span>
  43. <if test="postModCheckbox:|:$post['post']['moddable'] && ! $topic['_isArchived']">
  44. <span class='right'>
  45. <label for='checkbox_{$post['post']['pid']}' class='post_mod hide'>{$this->lang->words['mod_select_post']}</label> <input type='checkbox' id='checkbox_{$post['post']['pid']}' name='selectedpids[]' value='{$post['post']['pid']}' class='post_mod right'<if test="postModSelected:|:!empty( $post['post']['_pid_selected'] )"> checked='checked'</if> data-status='{$post['post']['queued']}' />
  46. </span>
  47. </if>
  48. <div class='post_username'>
  49.  
  50. <if test="$post['author']['_online']"><img src="{style_images_url}/post_online.png" alt="" class='post_online' data-tooltip="Online" /><else /><img src="{style_images_url}/post_offline.png" alt="" class='post_online' data-tooltip="Offline" /></if>
  51.  
  52. <if test="postMember:|:$post['author']['member_id']">
  53. <span itemprop="creator name" class="author vcard">{parse template="userHoverCard" group="global" params="$post['author']"}</span>
  54. <else />
  55. {parse template="userHoverCard" group="global" params="$post['author']"}
  56. </if></div>
  57.  
  58. <div class='post_date'>
  59. {$this->lang->words['posted']} <abbr class="published" itemprop="commentTime" title="{parse expression="date( 'c', $post['post']['post_date'] )"}">{parse date="$post['post']['post_date']" format="long"}</abbr>
  60. </div>
  61.  
  62. <if test="postIp:|:$post['post']['_show_ip']">
  63. <span class='ip right ipsType_small'>({$this->lang->words['ip']}:
  64. <if test="postAdmin:|:$post['author']['g_access_cp']">
  65. <em>{$this->lang->words['ip_private']}</em>
  66. <else />
  67. <if test="accessModCP:|:$this->memberData['g_is_supmod']"><a href="{parse url="app=core&amp;module=modcp&amp;fromapp=members&amp;tab=iplookup&amp;ip={$post['post']['ip_address']}" base="public"}" title='{$this->lang->words['info_about_this_ip']}'>{$post['post']['ip_address']}</a><else />{$post['post']['ip_address']}</if>
  68. </if>)
  69. </span>
  70. </if>
  71. </h3>
  72.  
  73. </if>
  74.  
  75.  
  76. <div class='author_info <if test="$this->settings['horizontalTopicView']!='yes'">clearfix</if>'>
  77. {parse template="userInfoPane" group="global" params="$post['author'], $post['post']['pid'], array( 'isTopicView' => true, 'wl_id' => $post['post']['wl_id'] )"}
  78. </div>
  79. <div class='post_body'>
  80.  
  81. <if test="isSolvedSausage:|:$post['post']['_isMarkedAnswered']"><div class='answerBadgeInPost'>&#10003; &nbsp;{$this->lang->words['topic_best_answer']}</div></if>
  82.  
  83. <if test="repHighlight:|:$this->settings['reputation_highlight'] AND $post['post']['rep_points'] >= $this->settings['reputation_highlight']">
  84. <p class='rep_highlight'>{parse replacement="popular_post"}<br />{$this->lang->words['popular_post']}</p>
  85. </if>
  86.  
  87. <div itemprop="commentText" class='post entry-content <if test="$post['post']['_repignored'] == 1">imgsize_ignore</if>'>
  88. <if test="isSolvedSausage:|:$post['post']['_isMarkedAnswered']"><div class='ipsPad_top_bottom' style='padding-top: 0; display:none;'><span class='ipsBadge ipsBadge_green'>{$this->lang->words['topic_best_answer']}</span></div></if>
  89. {$post['post']['post']}
  90. {$post['post']['attachmentHtml']}
  91. <br />
  92. <if test="postEditBy:|:$post['post']['edit_by']">
  93. <p class='edit'>
  94. {$post['post']['edit_by']}
  95. <if test="postEditByReason:|:$post['post']['post_edit_reason'] != ''">
  96. <br />
  97. <span class='reason'>{$post['post']['post_edit_reason']}</span>
  98. </if>
  99. </p>
  100. </if>
  101. </div>
  102.  
  103. <if test="$this->settings['horizontalTopicView']=='yes'">
  104. <div class='clearfix'><div class='postInfoBottom left'>
  105.  
  106. <if test="postModCheckbox:|:$post['post']['moddable'] && ! $topic['_isArchived']">
  107. <span class='right'>
  108. <label for='checkbox_{$post['post']['pid']}' class='post_mod hide'>{$this->lang->words['mod_select_post']}</label> <input type='checkbox' id='checkbox_{$post['post']['pid']}' name='selectedpids[]' value='{$post['post']['pid']}' class='post_mod right'<if test="postModSelected:|:!empty( $post['post']['_pid_selected'] )"> checked='checked'</if> data-status='{$post['post']['queued']}' />
  109. </span>
  110. </if>
  111.  
  112. <span class='postDate'>
  113.  
  114. <span class='post_id'><if test="hasPages:|:$this->request['page']"><a itemprop="replyToUrl" data-entry-pid='{$post['post']['pid']}' href='{parse url="showtopic={$post['post']['topic_id']}&amp;page={$this->request['page']}{$post['post']['PermalinkUrlBit']}#entry{$post['post']['pid']}" template="showtopic" seotitle="{$topic['title_seo']}" base="public"}' rel='bookmark' title='{$topic['title']}{$this->lang->words['link_to_post']} #{$post['post']['post_count']}'>
  115. <else />
  116. <a itemprop="replyToUrl" data-entry-pid='{$post['post']['pid']}' href='{parse url="showtopic={$post['post']['topic_id']}{$post['post']['PermalinkUrlBit']}#entry{$post['post']['pid']}" template="showtopic" seotitle="{$topic['title_seo']}" base="public"}' rel='bookmark' title='{$topic['title']}{$this->lang->words['link_to_post']} #{$post['post']['post_count']}'>
  117. </if>
  118. #{$post['post']['post_count']}
  119. <img src='{$this->settings['img_url']}/icon_share.png' class='small' title='{$topic['title']}{$this->lang->words['link_to_post']} #{$post['post']['post_count']}' />
  120. </a>
  121. </span> -
  122.  
  123. {$this->lang->words['posted']} <abbr class="published" itemprop="commentTime" title="{parse expression="date( 'c', $post['post']['post_date'] )"}">{parse date="$post['post']['post_date']" format="long"}</abbr>
  124.  
  125. </span>
  126.  
  127. <if test="postIp:|:$post['post']['_show_ip']">
  128. <span class='ip'>({$this->lang->words['ip']}:
  129. <if test="postAdmin:|:$post['author']['g_access_cp']">
  130. <em>{$this->lang->words['ip_private']}</em>
  131. <else />
  132. <if test="accessModCP:|:$this->memberData['g_is_supmod']"><a href="{parse url="app=core&amp;module=modcp&amp;fromapp=members&amp;tab=iplookup&amp;ip={$post['post']['ip_address']}" base="public"}" title='{$this->lang->words['info_about_this_ip']}'>{$post['post']['ip_address']}</a><else />{$post['post']['ip_address']}</if>
  133. </if>)
  134. </span>
  135. </if>
  136.  
  137. </div> <!-- end postInfoBottom left -->
  138. </if>
  139.  
  140.  
  141. <if test="repButtonsLike:|: ! $topic['_isArchived']">{parse template="repButtons" group="global_other" params="$post['author'], array_merge( array( 'primaryId' => $post['post']['pid'], 'domLikeStripId' => 'like_post_' . $post['post']['pid'], 'domCountId' => 'rep_post_' . $post['post']['pid'], 'app' => 'forums', 'type' => 'pid', 'likeFormatted' => $post['post']['like']['formatted'] ), $post['post'] )"}</if>
  142.  
  143.  
  144. <if test="$this->settings['horizontalTopicView']=='yes'"></div> <!-- end clearfix --> </if>
  145.  
  146. <if test="postSignature:|:$post['post']['signature']">
  147. {$post['post']['signature']}
  148. </if>
  149. <if test="controlsForUnapprovedPost:|:$this->memberData['is_mod'] && ! $topic['_isArchived'] && $post['post']['queued']">
  150. <ul id='postControlsUnapproved_{$post['post']['pid']}' class='post_controls clear clearfix'>
  151. <if test="canDelete:|:$post['post']['_can_delete'] === TRUE && ! $topic['_isArchived']">
  152. <li class='post_del'>
  153. <a href='{parse url="module=moderate&amp;section=moderate&amp;do=postchoice&amp;tact=deletedo&amp;f={$topic['forum_id']}&amp;t={$topic['tid']}&amp;selectedpids[]={$post['post']['pid']}&amp;page={$this->request['page']}&amp;auth_key={$this->member->form_hash}" base="publicWithApp"}' title='{$this->lang->words['post_delete_title']}' onclick='if( !confirm("{$this->lang->words['post_delete_confirm']}") ){ return false; }' >{$this->lang->words['post_delete']}</a>
  154. </li>
  155. </if>
  156. <li class='post_toggle toggle_post' id='toggle_post_{$post['post']['pid']}' style='display: none'>
  157. <a href='{parse url="app=forums&amp;module=moderate&amp;section=moderate&amp;do=postchoice&amp;tact=<if test="!$post['post']['queued']">unapprove<else />approve</if>&amp;selectedpids[{$post['post']['pid']}]={$post['post']['pid']}&amp;t={$topic['tid']}&amp;f={$forum['id']}&amp;auth_key={$this->member->form_hash}" base="public"}' title='{$this->lang->words['post_toggle_visible']}'><span id='toggletext_post_{$post['post']['pid']}'><if test="approveUnapprove:|:$post['post']['queued']==1">{$this->lang->words['post_approve']}<else />{$this->lang->words['post_unapprove']}</if></span></a>
  158. </li>
  159. <if test="canEdit:|:$post['post']['_can_edit'] === TRUE">
  160. <li class='post_edit'><a href='{parse url="module=post&amp;section=post&amp;do=edit_post&amp;f={$topic['forum_id']}&amp;t={$topic['tid']}&amp;p={$post['post']['pid']}&amp;page={$this->request['page']}" base="publicWithApp"}' title='{$this->lang->words['post_edit_title']}' class='edit_post' id='edit_post_{$post['post']['pid']}'>{$this->lang->words['post_edit']}</a></li>
  161. </if>
  162. </ul>
  163. </if>
  164.  
  165. <ul id='postControlsNormal_{$post['post']['pid']}' class='post_controls clear clearfix' <if test="hideNormalControlsForUnapprovedPost:|:$this->memberData['is_mod'] && ! $topic['_isArchived'] && $post['post']['queued']">style='display:none'</if>>
  166. <li class='top <if test="$this->settings['hideTopButton']=='yes'">hide</if>'><a href='#ipboard_body' class='top' title='{$this->lang->words['back_top']}'><img src="{style_images_url}/post_top.png" alt="" /> {$this->lang->words['back_top']}</a></li>
  167. <if test="canAnswerTopic:|:$topic['Perms']['canAnswerTopic'] && $post['post']['post_count'] > 1">
  168. <if test="isAnswered:|:$post['post']['_isMarkedAnswered']">
  169. <if test="canUnanswer:|:$post['post']['_canMarkUnanswered']">
  170. <li><a href="{parse url="module=extras&amp;section=answer&amp;do=unanswer&amp;t={$this->request['t']}&amp;pid={$post['post']['pid']}&amp;auth_key={$this->member->form_hash}" base="publicWithApp"}" data-post-button="unanswer" data-pid="{$post['post']['pid']}"><img class='icon' src="{$this->settings['img_url']}/cross_white_10px.png" alt='' /> {$this->lang->words['topic_mark_unsolved']}</a></li>
  171. </if>
  172. <else />
  173. <if test="notAnswered:|:$post['post']['_canAnswer'] && $topic['topic_firstpost'] != $post['post']['pid']">
  174. <li><a href="{parse url="module=extras&amp;section=answer&amp;do=answer&amp;t={$this->request['t']}&amp;pid={$post['post']['pid']}&amp;auth_key={$this->member->form_hash}" base="publicWithApp"}" data-post-button="answer" data-pid="{$post['post']['pid']}"><img class='icon' src="{$this->settings['img_url']}/tick_10px.png" alt='' /> {$this->lang->words['topic_mark_solved']}</a></li>
  175. </if>
  176. </if>
  177. </if>
  178. <if test="replyButtonWarn:|:!$this->memberData['unacknowledged_warnings'] && !$this->memberData['restrict_post']">
  179. <if test="replyButton:|:$post['post']['_canReply']">
  180. <li><a href="{parse url="module=post&amp;section=post&amp;do=reply_post&amp;f={$this->request['f']}&amp;t={$this->request['t']}&amp;qpid={$post['post']['pid']}" base="publicWithApp"}" class='_ips_trigger_quote' pid="{$post['post']['pid']}" title="{$this->lang->words['tt_reply_to_post']}"><img src="{style_images_url}/comment_new.png" alt="" /> {$this->lang->words['post_reply']}</a></li>
  181. <if test="multiquote:|:!empty( $post['post']['_mq_selected'] )">
  182. <li class='selected multiquote' id='multiq_{$post['post']['pid']}' style='display: none'>
  183. <else />
  184. <li class='multiquote' id='multiq_{$post['post']['pid']}' style='display: none'>
  185. </if>
  186. <a href="{parse url="module=post&amp;section=post&amp;do=reply_post&amp;f={$this->request['f']}&amp;t={$this->request['t']}&amp;qpid={$post['post']['pid']}" base="publicWithApp"}" title="{$this->lang->words['quote_with_mq']}"><img src="{style_images_url}/mq_post.png" alt="" /> {$this->lang->words['mq']}</a>
  187. </li>
  188. </if>
  189. </if>
  190. <if test="canDelete:|:$post['post']['_can_delete'] === TRUE && ! $topic['_isArchived']">
  191. <li id='del_post_{$post['post']['pid']}' class='post_del'>
  192. <a href='{parse url="module=moderate&amp;section=moderate&amp;do=postchoice&amp;tact=deletedo&amp;f={$topic['forum_id']}&amp;t={$topic['tid']}&amp;selectedpids[]={$post['post']['pid']}&amp;page={$this->request['page']}&amp;auth_key={$this->member->form_hash}" base="publicWithApp"}' title='{$this->lang->words['post_delete_title']}' class='delete_post' onclick='return false;' ><img src="{style_images_url}/comment_delete.png" alt="" /> {$this->lang->words['post_delete']}</a>
  193. </li>
  194. </if>
  195. <if test="canHide:|:$post['post']['_softDelete'] && ! $topic['_isArchived']">
  196. <li id='hide_post_{$post['post']['pid']}'>
  197. <a href='{parse url="module=moderate&amp;section=moderate&amp;do=postchoice&amp;tact=delete&amp;f={$topic['forum_id']}&amp;t={$topic['tid']}&amp;selectedpids[]={$post['post']['pid']}&amp;page={$this->request['page']}&amp;auth_key={$this->member->form_hash}" base="publicWithApp"}' class='hide_post'><img src="{style_images_url}/delete.png" alt="" /> {$this->lang->words['post_hide']}</a>
  198. </li>
  199. </if>
  200. <if test="canEdit:|:$post['post']['_can_edit'] === TRUE">
  201. <li class='post_edit'><a href='{parse url="module=post&amp;section=post&amp;do=edit_post&amp;f={$topic['forum_id']}&amp;t={$topic['tid']}&amp;p={$post['post']['pid']}&amp;page={$this->request['page']}" base="publicWithApp"}' title='{$this->lang->words['post_edit_title']}' class='edit_post' id='edit_post_{$post['post']['pid']}'><img src="{style_images_url}/comment_edit.png" alt="" /> {$this->lang->words['post_edit']}</a></li>
  202. </if>
  203. <if test="canReportPost:|:$topic['_canReport'] and ! $topic['_isArchived']">
  204. <li class='report'>
  205. <a href='{parse url="app=core&amp;module=reports&amp;rcom=post&amp;tid={$this->request['t']}&amp;pid={$post['post']['pid']}&amp;page={$this->request['page']}" base="public"}'><img src="{style_images_url}/report.png" alt="" /> {$this->lang->words['report']}</a>
  206. </li>
  207. <if test="postIsReported:|:$this->memberData['_cache']['report_temp']['post_marker']['post'][ $post['post']['pid'] ]['gfx'] > 0">
  208. <li class='report'>
  209. <a href="{$this->settings['base_url']}app=core&amp;module=reports&amp;section=reports&amp;do=show_report&amp;rid={$this->memberData['_cache']['report_temp']['post_marker']['post'][$post['post']['pid']]['info']['id']}" id='post-report-{$post['post']['pid']}' class='ipbmenu'> <span id="rstat-{$this->memberData['_cache']['report_temp']['post_marker']['post'][ $post['post']['pid'] ]['info']['id']}"><img src="{$this->settings['img_url']}/reports/post_alert_{$this->memberData['_cache']['report_temp']['post_marker']['post'][$post['post']['pid']]['gfx']}.png" style='margin-right: 0;' alt="" /></span> </a>
  210. </li>
  211. </if>
  212. </if>
  213. </ul>
  214. <if test="reportedPostData:|:! $topic['_isArchived'] AND $this->memberData['_cache']['report_temp']['post_marker']['post'][ $post['post']['pid'] ]['gfx'] > 0">
  215. <ul id='post-report-{$post['post']['pid']}_menucontent' class='ipbmenu_content report_menu'>
  216. <li><a href="{parse url="app=core&amp;module=reports&amp;do=show_report&amp;rid={$this->memberData['_cache']['report_temp']['post_marker']['post'][ $post['post']['pid'] ]['info']['id']}" base="public"}" id='report_mark_{$post['post']['pid']}'><img src='{$this->settings['img_url']}/reports/mark_complete.png' alt='' /> {$this->lang->words['report_menu_mark_complete']}</a></li>
  217. <li><a href="{$this->settings['base_url']}app=core&amp;module=reports&amp;section=reports&amp;do=show_report&amp;rid={$this->memberData['_cache']['report_temp']['post_marker']['post'][$post['post']['pid']]['info']['id']}"><img src='{$this->settings['img_url']}/reports/view_report.png' alt='' /> {$this->lang->words['report_menu_view_report']}</a></li>
  218. </ul>
  219. <script type="text/javascript">
  220. $('report_mark_{$post['post']['pid']}').observe('click',
  221. ipb.global.updateReportStatus.bindAsEventListener(
  222. this, {$this->memberData['_cache']['report_temp']['post_marker']['post'][$post['post']['pid']]['info']['id']},2,2
  223. )
  224. );
  225. </script>
  226. </if>
  227. </div>
  228. </div>
  229. </div>
  230. </if>
  231.  
  232.  
  233. <if test="initIgnoredPost:|:$post['post']['_repignored'] == 1 || $post['post']['_ignored']">
  234. <script type='text/javascript'>
  235. ipb.topic.setPostHidden( {$post['post']['pid']} );
  236. $('unhide_post_{$post['post']['pid']}').show();
  237. </script>
  238. </if>
  239. <hr />
  240.  
  241. <if test="adCodeCheck:|:$post['post']['_adCode']">
  242. {$post['post']['_adCode']}
  243. </if>
  244. <script type="text/javascript">
  245. var pid = parseInt({$post['post']['pid']});
  246. if ( pid > ipb.topic.topPid ){
  247. ipb.topic.topPid = pid;
  248. }
  249. <if test="sDeletedNotMQ:|:! $post['post']['_isDeleted']">
  250. // Show multiquote for JS browsers
  251. if ( $('multiq_{$post['post']['pid']}') )
  252. {
  253. $('multiq_{$post['post']['pid']}').show();
  254. }
  255.  
  256. if( $('toggle_post_{$post['post']['pid']}') )
  257. {
  258. $('toggle_post_{$post['post']['pid']}').show();
  259. }
  260.  
  261. // Add perm data
  262. ipb.topic.deletePerms[{$post['post']['pid']}] = { 'canDelete' : {parse expression="intval($post['post']['_can_delete'])"}, 'canSoftDelete' : {parse expression="intval($post['post']['_softDelete'])"} };
  263. </if>
  264. </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement