term_id).'">';
echo esc_html($category->name);
echo ''.esc_html__('Last post', 'asgaros-forum').'';
echo '';
echo '
';
$forums = $this->get_forums($category->term_id);
if (empty($forums)) {
$this->render_notice(__('In this category are no forums yet!', 'asgaros-forum'));
} else {
foreach ($forums as $forum) {
$forumsAvailable = true;
$this->render_forum_element($forum);
}
}
echo '
';
do_action('asgarosforum_after_category');
}
if ($forumsAvailable) {
$this->unread->show_unread_controls();
}
AsgarosForumStatistics::showStatistics();
} else {
$this->render_notice(__('There are no categories yet!', 'asgaros-forum'));
}