0) { if (strpos($comment['url'], "http://") !== 0 && strpos($comment['url'], "https://") !== 0) { $comment['url'] = "http://" . $comment['url']; } $user = "${comment['name']}"; } else { $user = $comment['name']; } if (isset($comment['email'])) { $user .= " (${comment['email']})"; } // ----- // Links // ----- $links = ""; $posturl = $baseposturl . $comment['gbid'] . "&"; if ($comment['abuse'] == "1") { $links .= " |"; $links .= ""; } if ($comment['approved'] == "1") { $links .= ""; } else { $links .= ""; } $links .= ""; // --------- // CSS Class // --------- $cssClass = ($comment['abuse'] == "1" ? "background-yellow-light" : ($i % 2 ? '' : 'background-blue-light')); // --------- // Stars // --------- $rating = ""; if ($rating && isset($comment['rating']) && $comment['rating'] > 0) { $rating .= "
"; for ($s = 0; $s < 5; $s++) { if ($comment['rating'] > $s + 1) { $rating .= ""; } else if ($comment['rating'] > $s + 0.5) { $rating .= ""; } else { $rating .= ""; } } $rating .= "
"; } ?>
IP:
" . l10n("cmn_subject") . " " . $comment['objectnumber'] . " - " . $comment['pagetitle'] . ""; } ?> " . $comment['body'] . "" ?>
" . l10n("cmn_subject") . " " . $comment['objectnumber'] . " - " . $comment['pagetitle'] . "
"; } ?> " . $comment['body'] . "" ?>
IP: