?> <th scope="col"><?php _e("Review", "gd-star-rating"); ?> </th> <?php } ?> </tr> </thead> <tbody> <?php $tr_class = ""; foreach ($rows as $row) { $row = GDSRDB::convert_row($row); $moderate_articles = GDSRDatabase::get_moderation_count($row->pid); $moderate_comments = GDSRDatabase::get_moderation_count_joined($row->pid); if ($moderate_articles == 0) { $moderate_articles = "[ <strong>0</strong> ] "; } else { $moderate_articles = sprintf('[<a href="./admin.php?page=gd-star-rating-stats&gdsr=moderation&pid=%s&vt=article"> <strong style="color: red;">%s</strong> </a>] ', $row->pid, $moderate_articles); } if ($moderate_comments == 0) { $moderate_comments = "[ <strong>0</strong> ] "; } else { $moderate_comments = sprintf('[<a href="./admin.php?page=gd-star-rating-stats&gdsr=moderation&pid=%s&vt=post"> <strong style="color: red;">%s</strong> </a>] ', $row->pid, $moderate_comments); } $comment_count = GDSRDatabase::get_comments_count($row->pid); if ($comment_count == 0) { $comment_count = '<a class="post-com-count" title="0"><span class="comment-count">0</span></a>';