Advertisement
Guest User

Untitled

a guest
Dec 10th, 2021
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.38 KB | None | 0 0
  1. {{$idField = $comment::$databaseColumnId;}}
  2. {{$itemClassSafe = str_replace( '\\', '_', mb_substr( $comment::$itemClass, 4 ) );}}
  3. {{if $comment->isIgnored()}}
  4. <div class='ipsComment ipsComment_ignored ipsType_light' id='elIgnoreComment_{$comment->$idField}' data-ignoreCommentID='elComment_{$comment->$idField}' data-ignoreUserID='{$comment->author()->member_id}'>
  5. {lang="ignoring_content" sprintf="$comment->author()->name"} <a href='#elIgnoreComment_{$comment->$idField}_menu' data-ipsMenu data-ipsMenu-menuID='elIgnoreComment_{$comment->$idField}_menu' data-ipsMenu-appendTo='#elIgnoreComment_{$comment->$idField}' data-action="ignoreOptions" title='{lang="see_post_ignore_options"}' class='ipsType_blendLinks'>{lang="options"} <i class='fa fa-caret-down'></i></a>
  6. <ul class='ipsMenu ipsHide' id='elIgnoreComment_{$comment->$idField}_menu'>
  7. <li class='ipsMenu_item ipsJS_show' data-ipsMenuValue='showPost'><a href='#'>{lang="show_this_post"}</a></li>
  8. <li class='ipsMenu_sep ipsJS_show'><hr></li>
  9. <li class='ipsMenu_item' data-ipsMenuValue='stopIgnoring'><a href='{url="app=core&module=system&controller=ignore&do=remove&id={$comment->author()->member_id}" seoTemplate="ignore"}'>{lang="stop_ignoring_posts_by" sprintf="$comment->author()->name"}</a></li>
  10. <li class='ipsMenu_item'><a href='{url="app=core&module=system&controller=ignore" seoTemplate="ignore"}'>{lang="change_ignore_preferences"}</a></li>
  11. </ul>
  12. </div>
  13. {{endif}}
  14. <a id='comment-{$comment->$idField}'></a>
  15. <article {{if $comment->author()->hasHighlightedReplies()}}data-memberGroup="{$comment->author()->member_group_id}" {{endif}} id='elComment_{$comment->$idField}' class='cPost ipsBox ipsResponsive_pull {{if $otherClasses}}{$otherClasses}{{endif}} ipsComment {{if ( settings.reputation_enabled and settings.reputation_highlight and $comment->reactionCount() >= settings.reputation_highlight ) OR $comment->isFeatured()}}ipsComment_popular{{endif}} ipsComment_parent ipsClearfix ipsClear ipsColumns ipsColumns_noSpacing ipsColumns_collapsePhone {{if $comment->author()->hasHighlightedReplies()}}ipsComment_highlighted{{endif}} {{if $comment->isIgnored()}}ipsHide{{endif}} {{if $comment->hidden() OR $item->hidden() === -2}}ipsModerated{{endif}} {{if ( $comment->item()->isSolved() and $comment->item()->mapped('solved_comment_id') == $comment->pid )}}ipsComment_solved{{endif}}'>
  16. {{if $item->isQuestion() and !$comment->new_topic}}
  17. {template="postRating" group="topics" app="forums" params="$item, $comment, $votes"}
  18. {{endif}}
  19.  
  20. {{if $comment->author()->hasHighlightedReplies() || ( $comment->item()->isSolved() and $comment->item()->mapped('solved_comment_id') == $comment->pid ) || $comment->isFeatured() || ( settings.reputation_enabled and settings.reputation_highlight and $comment->reactionCount() >= settings.reputation_highlight ) }}
  21. <div class='ipsResponsive_showPhone ipsComment_badges'>
  22. <ul class='ipsList_reset ipsFlex ipsFlex-fw:wrap ipsGap:2 ipsGap_row:1'>
  23. {{if $comment->author()->hasHighlightedReplies()}}
  24. <li><strong class='ipsBadge ipsBadge_large ipsBadge_highlightedGroup'>{expression="\IPS\Member\Group::load( $comment->author()->member_group_id )->name" raw="true"}</strong></li>
  25. {{endif}}
  26. {{if ( $comment->item()->isSolved() and $comment->item()->mapped('solved_comment_id') == $comment->pid )}}
  27. <li><strong class='ipsBadge ipsBadge_large ipsBadge_positive ipsBadge_reverse'><i class='fa fa-check'></i> {lang="this_is_a_solved_post"}</strong></li>
  28. {{endif}}
  29. {{if $comment->isFeatured()}}
  30. <li><strong class='ipsBadge ipsBadge_large ipsBadge_popular'>{lang="this_is_a_featured_post"}</strong></li>
  31. {{endif}}
  32. {{if ( settings.reputation_enabled and settings.reputation_highlight and $comment->reactionCount() >= settings.reputation_highlight ) }}
  33. <li><strong class='ipsBadge ipsBadge_large ipsBadge_popular'>{lang="this_is_a_popular_post"}</strong></li>
  34. {{endif}}
  35. </ul>
  36. </div>
  37. {{endif}}
  38.  
  39. <div class='cAuthorPane_mobile ipsResponsive_showPhone'>
  40. <div class='cAuthorPane_photo'>
  41. <div class='cAuthorPane_photoWrap'>
  42. {template="userPhoto" app="core" group="global" params="$comment->author(), 'large', $comment->warningRef()"}
  43. {{if $comment->author()->modShowBadge()}}
  44. <span class="cAuthorPane_badge cAuthorPane_badge--moderator" data-ipsTooltip title="{lang="member_is_moderator" sprintf="$comment->author()->name"}"></span>
  45. {{elseif $comment->author()->joinedRecently()}}
  46. <span class="cAuthorPane_badge cAuthorPane_badge--new" data-ipsTooltip title="{lang="member_is_new_badge" sprintf="$comment->author()->name"}"></span>
  47. {{endif}}
  48. {{if !$comment->isAnonymous() and $comment->author()->canHaveAchievements() and \IPS\core\Achievements\Rank::show() and $rank = $comment->author()->rank()}}
  49. <a href="{url="app=core&module=members&controller=profile&id={$comment->author()->member_id}&do=badges" seoTemplate="profile_badges" seoTitle="$comment->author()->members_seo_name"}" rel="nofollow">
  50. {$rank->html( 'cAuthorPane_badge cAuthorPane_badge--rank ipsOutline ipsOutline:2px' )|raw}
  51. </a>
  52. {{endif}}
  53. </div>
  54. </div>
  55. <div class='cAuthorPane_content'>
  56. <h3 class='ipsType_sectionHead cAuthorPane_author ipsType_break ipsType_blendLinks ipsFlex ipsFlex-ai:center'>
  57. {template="userLink" group="global" app="core" params="$comment->author(), $comment->warningRef(), TRUE, $comment->isAnonymous()"}
  58. </h3>
  59. <div class='ipsType_light ipsType_reset'>
  60. <a href='{$comment->item()->url()->setQueryString( array( 'do' => 'findComment', 'comment' => $comment->$idField ) )}' rel="nofollow" class='ipsType_blendLinks'>{$comment->dateLine()|raw}</a>
  61. {{if $comment->ip_address and \IPS\Member::loggedIn()->modPermission('can_use_ip_tools') and \IPS\Member::loggedIn()->canAccessModule( \IPS\Application\Module::get( 'core', 'modcp' ) )}}
  62. &middot; <a class='ipsType_blendLinks ipsType_light ipsType_noUnderline ipsType_noBreak' href="{url="app=core&module=modcp&controller=modcp&tab=ip_tools&ip=$comment->ip_address" seoTemplate="modcp_ip_tools"}" data-ipsMenu data-ipsMenu-menuID='{$comment->$idField}_ip_menu'>{lang="ip_short"} <i class='fa fa-angle-down'></i></a>
  63. {{endif}}
  64. </div>
  65. </div>
  66. </div>
  67. <aside class='ipsComment_author cAuthorPane ipsColumn ipsColumn_medium ipsResponsive_hidePhone'>
  68. <div id='cb-nexxe__comment_author'>
  69. <h3 class='ipsType_sectionHead cAuthorPane_author ipsType_blendLinks ipsType_break'><strong>{template="userLink" group="global" app="core" params="$comment->author(), $comment->warningRef(), FALSE, $comment->isAnonymous()"}</strong>
  70. {{if $comment->isAnonymous() and \IPS\Member::loggedIn()->modPermission('can_view_anonymous_posters')}}
  71. <a data-ipsHover data-ipsHover-width="370" data-ipsHover-onClick href="{{if $comment->isFirst()}}{$comment->item()->url( 'reveal' )->csrf()}{{else}}{$comment->url( 'reveal' )->csrf()}{{endif}}" rel="nofollow"><span class="cAuthorPane_badge cAuthorPane_badge--anon" data-ipsTooltip title="{lang="post_anonymously_reveal"}"></span></a>
  72. {{endif}}
  73. </h3>
  74. <ul class='cAuthorPane_info ipsList_reset'>
  75. <li data-role='photo' class='cAuthorPane_photo'>
  76. <div class='cAuthorPane_photoWrap'>
  77. {template="userPhoto" app="core" group="global" params="$comment->author(), 'large', $comment->warningRef()"}
  78. {{if $comment->author()->modShowBadge()}}
  79. <span class="cAuthorPane_badge cAuthorPane_badge--moderator" data-ipsTooltip title="{lang="member_is_moderator" sprintf="$comment->author()->name"}"></span>
  80. {{elseif $comment->author()->joinedRecently()}}
  81. <span class="cAuthorPane_badge cAuthorPane_badge--new" data-ipsTooltip title="{lang="member_is_new_badge" sprintf="$comment->author()->name"}"></span>
  82. {{endif}}
  83. {{if !$comment->isAnonymous() and $comment->author()->canHaveAchievements() and \IPS\core\Achievements\Rank::show() and $rank = $comment->author()->rank()}}
  84. {$rank->html( 'cAuthorPane_badge cAuthorPane_badge--rank ipsOutline ipsOutline:2px' )|raw}
  85. {{endif}}
  86. </div>
  87. </li>
  88. {{if !$comment->isAnonymous()}}
  89. <li data-role='group'>{expression="\IPS\Member\Group::load( $comment->author()->member_group_id )->formattedName" raw="true"}</li>
  90. {{if \IPS\Member\Group::load( $comment->author()->member_group_id )->g_icon }}
  91. <li data-role='group-icon'><img src='{file="$comment->author()->group['g_icon']" extension="core_Theme"}' alt='' class='cAuthorGroupIcon'></li>
  92. {{endif}}
  93. {{endif}}
  94. {{if $comment->author()->member_id}}
  95. {{if theme.cb__post_option_enable == '1'}}
  96. {template="cb__nexxe__post__icons" app="core" group="_nexxe" params="$comment->author()"}
  97. {{else}}
  98. <li data-role='reputation-badge'>
  99. {template="reputationBadge" group="global" app="core" params="$comment->author()"}
  100. {{if isset( $comment->author_solved_count )}}
  101. &nbsp;{template="solvedBadge" group="global" app="core" params="$comment->author(), $comment->author_solved_count"}
  102. {{endif}}
  103. </li>
  104. <li data-role='posts' class='ipsType_light'>{lang="member_post_count" pluralize="$comment->author()->member_posts"}</li>
  105. {{endif}}
  106.  
  107. {{if $comment->author()->reputationImage()}}
  108. <li data-role='reputation-image' class='ipsPadding:half'>
  109. <img src='{file="$comment->author()->reputationImage()" extension="core_Theme"}' title='{{if $comment->author()->reputation()}}{$comment->author()->reputation()}{{endif}}' alt=''>
  110. </li>
  111. {{endif}}
  112.  
  113. {{if isset( $comment->author_solved_count )}}
  114. <li>
  115. <a href='{url="app=core&module=members&controller=profile&id={$comment->author()->member_id}&do=solutions" seoTemplate="profile_solutions" seoTitle="$comment->author()->members_seo_name"}' title="{lang="solved_badge_tooltip" pluralize="$comment->author_solved_count"}" data-ipsTooltip class='ipsType_blendLinks'>
  116. <i class='fa fa-check-circle'></i> {number="$comment->author_solved_count"}
  117. </a>
  118. </li>
  119. {{endif}}
  120.  
  121. {template="customFieldsDisplay" group="global" app="core" params="$comment->author()"}
  122. {{endif}}
  123. </ul>
  124. </div>
  125. </aside>
  126. <div class='ipsColumn ipsColumn_fluid ipsMargin:none'>
  127. {template="post" group="topics" app="forums" params="$item, $comment, $item::$formLangPrefix . 'comment', $item::$application, $item::$module, $itemClassSafe"}
  128. </div>
  129.  
  130. {template="cb__nexxe__post__menu" app="core" group="_nexxe" params="$comment->author()"}
  131.  
  132. </article>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement