{if intval($smarty.request.forPhase) neq 0} {assign var="forPhase" value=intval($smarty.request.forPhase)} {/if} {assign var='commentId' value=$cComment->data.post_id} {assign var="votedownindex" value='-1'} {assign var='thisCommentVotesUp' value=$arrVotes.$commentId.values[1]|intval} {assign var='thisCommentVotesDown' value=$arrVotes.$commentId.values.$votedownindex|intval} {assign var='x' value=$cComment->data.post_lvl} {if $x gt 6}{assign var='x' value=6}{/if} {assign var='selectedFileId' value=$cComment->joined.obj_post_user->data.user_profilepic} {assign var='selectedFile' value=$avatarFiles.$selectedFileId} {assign var='attachedFiles' value=$cComment->getFilesV2()} {assign var=attachedFiles value=($uploadsHidden) ? [] : $attachedFiles} {assign var=commentAttachments value=($uploadsHidden) ? [] : $commentAttachments} {if in_array($cComment->user, $modsIds) || $cComment->data.post_ismoderatorcomment eq 1} {assign var='commentBy' value='admin'} {else} {assign var='commentBy' value='author'} {/if} {if $cComment->lvl eq 1} {if $counter > 1} {/if} {assign var='replyCounter' value=0 scope='global'} {if !$cComment->isModeratorComment}
{if in_array($commentId,$reportIds)} {/if}
{/if} {assign var='parentComment' value=$cComment->id scope='global'}
{if $cComment->data.post_moderationstatus ne 3} joined.obj_post_user->data.user_id}>{$cComment->joined.obj_post_user->user_usertype->data.usertype_name|escape} {else} Generic user icon {/if}
{if $cComment->data.post_moderationstatus ne 3} {if $cComment->data.post_moderatoredituser ne 0} {assign var=modId value=$cComment->data.post_moderatoredituser} {assign var=moderator value=$moderators.$modId} {"This comment was edited on"|gettext} {$cComment->data.post_moderatoreditdate|date_format} by data.user_id}>{$moderator->getDisplayName()} {/if}

joined.obj_post_user->data.user_id}>{$cComment->joined.obj_post_user->user_displayName}{if $cComment->joined.obj_post_user->user_usertype->data.usertype_id ne 3 && intval($cComment->joined.obj_post_user->user_usertype->data.usertype_id) ne 0} ({$cComment->joined.obj_post_user->user_usertype->data.usertype_name}){/if} {$cComment->data.post_created|relative_date}

{DataFilter::nl2br(DataFilter::addLinks($cComment->getCommentText()))}

{if count($commentAttachments[$cComment->data.post_id]['allFiles']) gt 0}
{foreach from=$commentAttachments[$cComment->data.post_id]['allFiles'] item=im} {/foreach}
{/if} {if count($commentAttachments[$cComment->data.post_id]['allImages']) gt 0} {/if}
{if $hubbub->hubbub_arrOptions.userTagsEnabledOnComments eq 1} {if isset($postResponseUserTags.$commentId)}

{"Users tagged"|gettext}:

{foreach from=$postResponseUserTags.$commentId item=userTag} {assign var='selectedFile' value=$userTag->joined.obj_user_profilepic} {/foreach}
{/if} {/if} {if $categoryaccess->getData('canModerate') eq 1} {if in_array($commentId,$reportIds)}
  {"Comment reported"|gettext}  {"Pending moderator review"|gettext}
{foreach from=$reports item=cReport} {if $cReport->data.report_post eq $commentId && $cReport->joined.obj_report_reason->data.reportreason_notbad eq 0}
{"Reason"|gettext}:
{assign var='reportReasonId' value=$cReport->data.report_reason} {assign var='reportReason' value=$reportReasons.$reportReasonId} {$reportReason->data.reportreason_text}
{"Reported by"|gettext}:
{if $cReport->data.report_user eq 0} {"System"|gettext} {else} {assign var='reportUser' value=$cReport->data.report_user} {$cReport->joined.obj_report_user->getDisplayName()} {/if}
{if $cReport->data.report_text ne ""}
{"Comments"|gettext}:
"{$cReport->data.report_text}"
{/if}
{/if} {/foreach}
{elseif in_array($commentId,$notBadReportIds)}
{"Pending"|gettext}  {"This comment is pending moderation."|gettext}
{/if} {/if} {if $attachedFiles.allVideos}
Videos
{foreach from=$attachedFiles.allVideos item=f} {cl_video_tag("{$f->getCloudinaryURL()}",[ "poster"=> "{$f->getCloudinaryVideoThumb(640,360)}", "width" => 600, "height" => 360, "crop" => "pad", "background" => "black", "preload" => "none", "controls" => true, "fallback_content" => "Your browser does not support HTML5 video tags"])} {/foreach} {/if} {if $attachedFiles.allAudio}
Audio files
{foreach from=$attachedFiles.allAudio item=f} {/foreach} {/if}

{assign var='post_id' value=$cComment->data.post_id} {if isset($commentVotesUser.$post_id)} {assign var='userVote' value=$commentVotesUser.$post_id} {assign var='userVoteDir' value=$userVote->data.vote_direction} {else} {assign var='userVoteDir' value=0} {/if} {if $allowComment} {"Reply"|gettext} {if $user->isInvalid()} {$thisCommentVotesUp} {elseif $cComment->data.post_user ne $user->data.user_id && $categoryaccess->getData('canVoteComments')} {if $userVoteDir ne 1 && $categoryaccess->getData('canVoteComments') && $cPost->data.post_moderationstatus lt 2} {$thisCommentVotesUp} {else} {$thisCommentVotesUp} {/if} {elseif $cComment->data.post_user eq $user->data.user_id && $categoryaccess->getData('canVoteComments')} {$thisCommentVotesUp} {/if} {/if}

{else} {"This comment has been removed"|gettext} {/if}
{else if $cComment->lvl > 1} {* $cComment->lvl > 1 *} {assign var='replyCounter' value=$replyCounter+1 scope='global'} {if $replyCounter > 1 && Post::getTopComment($cComment)->id neq $topCommentId}
{/if}
{if in_array($commentId,$reportIds)} {/if}
lvl gt 4}style="padding-left:20px;margin-left:8px;"{/if}>
{if $cComment->data.post_moderationstatus ne 3} joined.obj_post_user->data.user_id}>{$cComment->joined.obj_post_user->user_usertype->data.usertype_name|escape} {else} Generic user icon {/if}
{if $cComment->data.post_moderationstatus ne 3}

joined.obj_post_user->data.user_id}>{$cComment->joined.obj_post_user->user_displayName}{if $cComment->joined.obj_post_user->user_usertype->data.usertype_id ne 3 && intval($cComment->joined.obj_post_user->user_usertype->data.usertype_id) ne 0} ({$cComment->joined.obj_post_user->user_usertype->data.usertype_name}){/if} {$cComment->data.post_created|relative_date}

{DataFilter::nl2br(DataFilter::addLinks($cComment->getCommentText()))}

{if count($commentAttachments[$cComment->data.post_id]['allFiles']) gt 0}
{foreach from=$commentAttachments[$cComment->data.post_id]['allFiles'] item=im} {/foreach}
{/if} {if count($commentAttachments[$cComment->data.post_id]['allImages']) gt 0} {/if}
{if $hubbub->hubbub_arrOptions.userTagsEnabledOnComments eq 1} {if isset($postResponseUserTags.$commentId)}

{"Users tagged"|gettext}:

{foreach from=$postResponseUserTags.$commentId item=userTag} {assign var='selectedFile' value=$userTag->joined.obj_user_profilepic} {/foreach}
{/if} {/if} {if $categoryaccess->getData('canModerate') eq 1} {if in_array($commentId,$reportIds)}
  {"Comment reported"|gettext}  {"Pending moderator review"|gettext}
{foreach from=$reports item=cReport} {if $cReport->data.report_post eq $commentId && $cReport->joined.obj_report_reason->data.reportreason_notbad eq 0}
{"Reason"|gettext}:
{assign var='reportReasonId' value=$cReport->data.report_reason} {assign var='reportReason' value=$reportReasons.$reportReasonId} {$reportReason->data.reportreason_text}
{"Reported by"|gettext}:
{if $cReport->data.report_user eq 0} {"System"|gettext} {else} {assign var='reportUser' value=$cReport->data.report_user} {$cReport->joined.obj_report_user->getDisplayName()} {/if}
{if $cReport->data.report_text ne ""}
{"Comments"|gettext}:
"{$cReport->data.report_text}"
{/if}
{/if} {/foreach}
{elseif in_array($commentId,$notBadReportIds)}
{"Pending"|gettext}  {"This comment is pending moderation."|gettext}
{/if} {/if} {if $attachedFiles.allVideos}
Videos
{foreach from=$attachedFiles.allVideos item=f} {if $cComment->lvl eq 2} {cl_video_tag("{$f->getCloudinaryURL()}",[ "poster"=> "{$f->getCloudinaryVideoThumb(540,318)}", "width" => 540, "height" => 318, "crop" => "pad", "background" => "black", "preload" => "none", "controls" => true, "fallback_content" => "Your browser does not support HTML5 video tags"])} {else if $cComment->lvl eq 3} {cl_video_tag("{$f->getCloudinaryURL()}",[ "poster"=> "{$f->getCloudinaryVideoThumb(475,280)}", "width" => 465, "height" => 280, "crop" => "pad", "background" => "black", "preload" => "none", "controls" => true, "fallback_content" => "Your browser does not support HTML5 video tags"])} {else if $cComment->lvl eq 4} {cl_video_tag("{$f->getCloudinaryURL()}",[ "poster"=> "{$f->getCloudinaryVideoThumb(410,241)}", "width" => 410, "height" => 241, "crop" => "pad", "background" => "black", "preload" => "none", "controls" => true, "fallback_content" => "Your browser does not support HTML5 video tags"])} {else} {cl_video_tag("{$f->getCloudinaryURL()}",[ "poster"=> "{$f->getCloudinaryVideoThumb(345,200)}", "width" => 345, "height" => 200, "crop" => "pad", "background" => "black", "preload" => "none", "controls" => true, "fallback_content" => "Your browser does not support HTML5 video tags"])} {/if} {/foreach} {/if} {if $attachedFiles.allAudio}
Audio files
{foreach from=$attachedFiles.allAudio item=f} {/foreach} {/if}

{assign var='post_id' value=$cComment->data.post_id} {if isset($commentVotesUser.$post_id)} {assign var='userVote' value=$commentVotesUser.$post_id} {assign var='userVoteDir' value=$userVote->data.vote_direction} {else} {assign var='userVoteDir' value=0} {/if} {if $allowComment} {"Reply"|gettext} {if $user->isInvalid()} {$thisCommentVotesUp} {elseif $cComment->data.post_user ne $user->data.user_id && $categoryaccess->getData('canVoteComments')} {if $userVoteDir ne 1 && $categoryaccess->getData('canVoteComments') && $cPost->data.post_moderationstatus lt 2} {* {$thisCommentVotesUp}*} {$thisCommentVotesUp} {else} {$thisCommentVotesUp} {/if} {if $userVoteDir ne -1 && $categoryaccess->getData('canVoteComments') && $cPost->data.post_moderationstatus lt 2} {*

  • {$thisCommentVotesDown}
  • *} {else} {*
  • {$thisCommentVotesDown}
  • *} {/if} {elseif $cComment->data.post_user eq $user->data.user_id && $categoryaccess->getData('canVoteComments')} {$thisCommentVotesUp} {/if} {/if}

    {else} {"This comment has been removed"|gettext} {/if}
    {if $replyCounter > 1 && Post::getTopComment($cComment)->id neq $topCommentId}
    {/if} {/if}