"
data-comments-count="">
" . esc_html($wpdiscuz->helper->getNumber($commentsCount)) . " " . esc_html(apply_filters("wpdiscuz_comment_count_phrase", (1 == $commentsCount ? $form->getHeaderTextSingle() : $form->getHeaderTextPlural()), $commentsCount));
} else {
echo "
";
}
?>
options->login["showActivityTab"] || $wpdiscuz->options->login["showSubscriptionsTab"] || $wpdiscuz->options->login["showFollowsTab"] || apply_filters("wpdiscuz_enable_content_modal", false)) && $currentUserEmail) {
echo apply_filters("wpdiscuz_user_settings_button", "
", $currentUser, $currentUserEmail);
}
?>
options);
if (!$wpdiscuz->options->wp["isPaginate"] && $wpdiscuz->options->inline["showInlineFilterButton"] && $wpdiscuz->dbManager->postHasFeedbackForms($post->ID)) {
?>
">
options->thread_display["showReactedFilterButton"]) {
?>
">
options->thread_display["showHottestFilterButton"]) {
?>
">
options->wp["commentOrder"];
if (!$wpdiscuz->options->wp["isPaginate"] && $wpdiscuz->options->thread_display["showSortingButtons"] && $wpdiscuz->options->thread_display["mostVotedByDefault"]) {
$wpdiscuzCommentsOrderBy = "by_vote";
} else {
$wpdiscuzCommentsOrderBy = $wpdiscuz->options->thread_display["orderCommentsBy"];
}
$wpdiscuzCommentsOrderBy = apply_filters("wpdiscuz_comments_order_by", $wpdiscuzCommentsOrderBy);
$wpdiscuzCommentsOrder = apply_filters("wpdiscuz_comments_order", $wpdiscuzCommentsOrder);
if ($wpdiscuz->options->thread_display["showSortingButtons"] && !$wpdiscuz->options->wp["isPaginate"]) {
$sortingButtons = [
[
"orderBy" => $wpdiscuz->options->thread_display["orderCommentsBy"],
"order" => "desc",
"class" => "wpdiscuz-date-sort-desc",
"text" => $wpdiscuz->options->getPhrase("wc_newest"),
"type" => "newest",
],
[
"orderBy" => $wpdiscuz->options->thread_display["orderCommentsBy"],
"order" => "asc",
"class" => "wpdiscuz-date-sort-asc",
"text" => $wpdiscuz->options->getPhrase("wc_oldest"),
"type" => "oldest",
],
];
if ($wpdiscuz->options->thread_layouts["showVotingButtons"]) {
$sortingButtons[] = [
"orderBy" => "by_vote",
"order" => $wpdiscuz->options->wp["commentOrder"],
"class" => "wpdiscuz-vote-sort-up",
"text" => $wpdiscuz->options->getPhrase("wc_most_voted"),
"type" => "by_vote",
];
}
$sortingButtons = apply_filters("wpdiscuz_sorting_buttons_array", $sortingButtons);
?>
$value) {
if ($wpdiscuzCommentsOrderBy === $value["orderBy"] && $wpdiscuzCommentsOrder === $value["order"]) {
?>
wpdiscuz-sort-button-active"
data-sorting="">
$value) {
?>
"
data-sorting="">