} do_header($link->title, 'post'); do_tabs("main", _('noticia'), true); echo '<div id="newswrap">' . "\n"; $link->print_summary(); do_comment_pages($link->comments, $current_page); echo '<div class="comments">'; $comments = $db->get_col("SELECT SQL_CACHE comment_id FROM comments WHERE comment_link_id={$link->id} ORDER BY {$order_field} {$limit}"); if ($comments) { echo '<ol class="comments-list">'; $comment = new CommentMobile(); foreach ($comments as $comment_id) { $comment->id = $comment_id; $comment->read(); echo '<li>'; $comment->print_summary($link, 700, true); echo '</li>'; echo "\n"; } echo "</ol>\n"; } echo '</div>' . "\n"; if ($link->date > $globals['now'] - $globals['time_enabled_comments'] && $link->comments < $globals['max_comments'] && $current_user->authenticated && ($current_user->user_karma > $globals['min_karma_for_comments'] || $current_user->user_id == $link->author)) { print_comment_form(); } do_comment_pages($link->comments, $current_page); echo '</div>'; $globals['tag_status'] = $globals['link']->status; do_footer(); // Show the error if the comment couldn't be inserted if (!empty($new_comment_error)) {