Advertisement
Guest User

Untitled

a guest
Aug 28th, 2015
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.24 KB | None | 0 0
  1. {{$idField = $comment::$databaseColumnId;}}
  2. <div id='comment-{$comment->$idField}_wrap' data-controller='core.front.core.comment' data-commentApp='{$app}' data-commentType='{$type}' data-commentID="{$comment->$idField}" data-quoteData='{expression="json_encode( array('usereyed' => $comment->author()->member_id, 'username' => $comment->author()->name, 'timestamp' => $comment->mapped('date'), 'contentapp' => $comment::$application, 'contenttype' => $type, 'contentid' => $item->tid, 'contentclass' => $class, 'contentcommentid' => $comment->$idField) )"}' class='ipsComment_content ipsType_medium {{if $comment->hidden()}}ipsModerated{{endif}} ipsFaded_withHover'>
  3. <div class='ipsComment_meta ipsType_light'>
  4. <p class='ipsPos_right ipsType_reset ipsType_blendLinks ipsFaded ipsFaded_more'>
  5. {{if \IPS\Member::loggedIn()->modPermission('can_use_ip_tools') and \IPS\Member::loggedIn()->canAccessModule( \IPS\Application\Module::get( 'core', 'modcp' ) )}}
  6. <span class='ipsResponsive_hidePhone'>(<a href="{url="app=core&module=modcp&controller=modcp&tab=ip_tools&ip=$comment->ip_address" seoTemplate="modcp_ip_tools"}">{lang="ip_prefix" sprintf="$comment->ip_address"}</a>) &middot;</span>
  7. {{endif}}
  8. <a href='{$comment->item()->url()->setQueryString( array( 'do' => 'findComment', 'comment' => $comment->pid ) )}' data-ipsTooltip title='{lang="share_this_post"}' data-ipsMenu data-ipsMenu-closeOnClick='false' id='elSharePost_{$comment->pid}'><i class='fa fa-share-alt'></i></a>
  9. {{if count( $item->commentMultimodActions() ) and !$comment->mapped('first')}}
  10. &middot; <input type="checkbox" name="multimod[{$comment->$idField}]" value="1" data-role="moderation" data-actions="{{if $comment->canSplit()}}split merge{{endif}} {{if $comment->hidden() === -1 AND $comment->canUnhide()}}unhide{{elseif $comment->hidden() === 1 AND $comment->canUnhide()}}approve{{elseif $comment->canHide()}}hide{{endif}} {{if $comment->canDelete()}}delete{{endif}}" data-state='{{if $comment->tableStates()}}{$comment->tableStates()}{{endif}}'>
  11. {{endif}}
  12. </p>
  13.  
  14. <p class='ipsType_reset'>
  15. {$comment->dateLine()|raw}
  16. {{if $comment->editLine()}}
  17. ({lang="edited_lc"})
  18. {{endif}}
  19. {{if $comment->hidden()}}
  20. &middot; {$comment->hiddenBlurb()}
  21. {{endif}}
  22. {{if $comment instanceof \IPS\Content\ReportCenter and !\IPS\Member::loggedIn()->group['gbw_no_report'] and $comment->hidden() !== 1 }}
  23. &middot; <a href='{$comment->url('report')}' data-ipsDialog data-ipsDialog-remoteSubmit data-ipsDialog-size='medium' data-ipsDialog-flashMessage='{lang="report_submit_success"}' data-ipsDialog-title="{lang="report_post"}" data-action='reportComment' title='{lang="report_content"}' class='ipsFaded ipsFaded_more'><span class='ipsResponsive_showPhone ipsResponsive_inline'><i class='fa fa-flag'></i></span><span class='ipsResponsive_hidePhone ipsResponsive_inline'>{lang="report_post"}</span></a>
  24. {{endif}}
  25. </p>
  26. </div>
  27.  
  28. {{if member.modPermission('mod_see_warn') and $comment->warning}}
  29. {template="commentWarned" group="global" app="core" params="$comment"}
  30. {{endif}}
  31.  
  32.  
  33. <div class='cPost_contentWrap ipsPad'>
  34. {{if settings.reputation_highlight and $comment->reputation() >= settings.reputation_highlight}}
  35. <strong class='ipsComment_popularFlag' data-ipsTooltip title='{lang="this_is_a_popular_post"}'><i class='fa fa-star'></i></strong>
  36. {{endif}}
  37.  
  38. <div data-role='commentContent' itemprop='text' class='ipsType_normal ipsType_richText ipsContained' data-controller='core.front.core.lightboxedImages'>
  39. {$comment->content()|raw}
  40.  
  41. {{if $comment->editLine()}}
  42. {$comment->editLine()|raw}
  43. {{endif}}
  44. </div>
  45.  
  46. {{if !( $comment->hidden() === 1 && ( $comment->canUnhide() || $comment->canDelete() ) )}}
  47. {{if $comment instanceof \IPS\Content\Reputation and settings.reputation_enabled}}
  48. {template="reputation" group="global" app="core" params="$comment, 'ipsResponsive_noFloat'"}
  49. {{endif}}
  50. {{endif}}
  51.  
  52. {{if $comment->author()->signature}}
  53. {template="signature" group="global" app="core" params="$comment->author()"}
  54. {{endif}}
  55.  
  56. <ul class='ipsComment_controls ipsClearfix' data-role="commentControls">
  57. {{if $comment->hidden() === 1 && ( $comment->canUnhide() || $comment->canDelete() )}}
  58. {{if $comment->canUnhide()}}
  59. <li><a href='{$comment->url('unhide')->csrf()}' class='ipsButton ipsButton_verySmall ipsButton_positive' data-action='approveComment'><i class='fa fa-check'></i> {lang="approve"}</a></li>
  60. {{endif}}
  61. {{if $comment->canDelete()}}
  62. <li><a href='{$comment->url('delete')->csrf()}' data-action='deleteComment' data-updateOnDelete="#commentCount" class='ipsButton ipsButton_verySmall ipsButton_negative'><i class='fa fa-times'></i> {lang="delete"}</a></li>
  63. {{endif}}
  64. {{if $comment->canEdit() || $comment->canSplit()}}
  65. <li>
  66. <a href='#elControls_{$comment->$idField}_menu' id='elControls_{$comment->$idField}' data-ipsMenu data-ipsMenu-appendTo='#comment-{$comment->$idField}_wrap'>{lang="options"} &nbsp;<i class='fa fa-caret-down'></i></a>
  67. <ul id='elControls_{$comment->$idField}_menu' class='ipsMenu ipsMenu_narrow ipsHide'>
  68. {{if $comment->canEdit()}}
  69. {{if $comment->mapped('first') and $comment->item()->canEdit()}}
  70. <li class='ipsMenu_item'><a href='{$comment->item()->url()->setQueryString( 'do', 'edit' )}'>{lang="edit"}</a></li>
  71. {{else}}
  72. <li class='ipsMenu_item'><a href='{$comment->url('edit')}' data-action='editComment'>{lang="edit"}</a></li>
  73. {{endif}}
  74. {{endif}}
  75. {{if $comment->canSplit()}}
  76. <li class='ipsMenu_item'><a href='{$comment->url('split')}' data-action='splitComment' data-ipsDialog data-ipsDialog-title="{lang="split_to_new" sprintf="\IPS\Member::loggedIn()->language()->addToStack( $item::$title )"}">{lang="split"}</a></li>
  77. {{endif}}
  78. </ul>
  79. </li>
  80. {{endif}}
  81. {{else}}
  82. {{if $comment->hidden() === 0 and $item->canComment() and $editorName}}
  83. <li data-ipsQuote-editor='{$editorName}' data-ipsQuote-target='#comment-{$comment->$idField}' class='ipsJS_show'>
  84. <button class='ipsButton ipsButton_light ipsButton_verySmall ipsButton_narrow cMultiQuote ipsHide' data-action='multiQuoteComment' data-ipsTooltip data-ipsQuote-multiQuote data-mqId='mq{$comment->$idField}' title='{lang="multiquote"}'><i class='fa fa-plus'></i></button>
  85. </li>
  86. <li data-ipsQuote-editor='{$editorName}' data-ipsQuote-target='#comment-{$comment->$idField}' class='ipsJS_show'>
  87. <a href='#' data-action='quoteComment' data-ipsQuote-singleQuote>{lang="quote"}</a>
  88. </li>
  89. {{endif}}
  90. {{if $comment->canEdit()}}
  91. {{if $comment->mapped('first') and $comment->item()->canEdit()}}
  92. <li><a href='{$comment->item()->url()->setQueryString( 'do', 'edit' )}'>{lang="edit"}</a></li>
  93. {{else}}
  94. <li><a href='{$comment->url('edit')}' data-action='editComment'>{lang="edit"}</a></li>
  95. {{endif}}
  96. {{endif}}
  97. {{if $comment->canDelete() || $comment->canHide() || $comment->canUnhide() || $comment->canSplit()}}
  98. <li>
  99. <a href='#elControls_{$comment->$idField}_menu' id='elControls_{$comment->$idField}' data-ipsMenu data-ipsMenu-appendTo='#comment-{$comment->$idField}_wrap'>{lang="options"} &nbsp;<i class='fa fa-caret-down'></i></a>
  100. <ul id='elControls_{$comment->$idField}_menu' class='ipsMenu ipsMenu_narrow ipsHide'>
  101. {{if $comment instanceof \IPS\Content\Hideable}}
  102. {{if !$comment->hidden() and $comment->canHide()}}
  103. <li class='ipsMenu_item'><a href='{$comment->url('hide')->csrf()}' data-ipsDialog data-ipsDialog-title="{lang="hide"}">{lang="hide"}</a></li>
  104. {{elseif $comment->hidden() and $comment->canUnhide()}}
  105. <li class='ipsMenu_item'><a href='{$comment->url('unhide')->csrf()}'>{lang="unhide"}</a></li>
  106. {{endif}}
  107. {{endif}}
  108. {{if $comment->canSplit()}}
  109. <li class='ipsMenu_item'><a href='{$comment->url('split')}' data-action='splitComment' data-ipsDialog data-ipsDialog-title="{lang="split_to_new" sprintf="\IPS\Member::loggedIn()->language()->addToStack( $item::$title )"}">{lang="split"}</a></li>
  110. {{endif}}
  111. {{if $comment->canDelete()}}
  112. <li class='ipsMenu_item'><a href='{$comment->url('delete')->csrf()}' data-action='deleteComment' data-updateOnDelete="#commentCount">{lang="delete"}</a></li>
  113. {{endif}}
  114. </ul>
  115. </li>
  116. {{endif}}
  117. {{endif}}
  118. <li class='ipsHide' data-role='commentLoading'>
  119. <span class='ipsLoading ipsLoading_tiny ipsLoading_noAnim'></span>
  120. </li>
  121. </ul>
  122. </div>
  123.  
  124. <div class='ipsMenu ipsMenu_wide ipsHide cPostShareMenu' id='elSharePost_{$comment->pid}_menu'>
  125. <div class='ipsPad'>
  126. <h4 class='ipsType_sectionHead'>{lang="share_this_post"}</h4>
  127. <hr class='ipsHr'>
  128. <h5 class='ipsType_normal ipsType_reset'>{lang="link_to_post"}</h5>
  129. <input type='text' value='{$comment->item()->url()->setQueryString( array( 'do' => 'findComment', 'comment' => $comment->$idField ) )}' class='ipsField_fullWidth'>
  130. {{if !$comment->item()->container()->disable_sharelinks and count( $comment->sharelinks() )}}
  131. <h5 class='ipsType_normal ipsType_reset ipsSpacer_top'>{lang="share_externally"}</h5>
  132. {template="sharelinks" group="global" app="core" params="$comment"}
  133. {{endif}}
  134. </div>
  135. </div>
  136. </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement