get_results($sql); echo "

  Recent Comments:

"; echo "
    "; if (empty ($content)) { echo "
  1. "; echo "
    0_0
    "; $randNum = rand(0, 14); if (@ file_exists(TEMPLATEPATH . '/glll_wttt.php')) { echo wttt_get_avatar($wttt_list_email, 40, $default = get_stylesheet_directory_uri() . '/nomail/nomail' . $randNum . '.gif'); } else { echo wttt_get_avatar($wttt_list_email, 40, $default = WP_PLUGIN_URL . '/wp_title_tooltips/nomail/nomail' . $randNum . '.gif'); } echo "Admin"; echo "No Comment"; echo "
    "; echo "For the moment,No Comment~"; echo "
    "; echo "
  2. "; } else { global $comment; foreach ($content as $comment) : $liclass = "
  3. comment_author_email == $wttt_list_email) { $liclass = "
  4. comment_post_ID . "-" . $comment->comment_ID; echo " id=\"wttt-" . $wtttPCId . "\">"; $countclass = "
    "; if ($comment->comment_author_email == $wttt_list_email) { $countclass = "
    "; } echo $countclass; echo $relax_comment_count; echo "
    "; $randNum = rand(0, 14); if (@ file_exists(TEMPLATEPATH . '/glll_wttt.php')) { echo wttt_get_avatar($comment->comment_author_email, 40, $default = get_stylesheet_directory_uri() . '/nomail/nomail' . $randNum . '.gif'); } else { echo wttt_get_avatar($comment->comment_author_email, 40, $default = WP_PLUGIN_URL . '/wp_title_tooltips/nomail/nomail' . $randNum . '.gif'); } echo ""; if (empty ($comment->comment_author_url)) { echo $comment->comment_author; } else { echo "comment_author_url . "\">" . $comment->comment_author . ""; } echo ""; echo ""; $wtttdata = ($comment->comment_date) . " : " . $wtttPCId; echo $wtttdata; echo ""; echo "
    "; $apply_filters_comment_text = apply_filters('comment_text', $comment->comment_content); if (empty ($apply_filters_comment_text)) $apply_filters_comment_text = $comment->comment_content; echo $apply_filters_comment_text; echo "
    "; $relax_comment_count++; echo "
  5. "; endforeach; } echo "
"; } /* get gravatar */ function wttt_get_avatar($email, $size = '40', $default = '') { if (!is_numeric($size)) $size = '40'; if (empty ($email)) $default = "http://www.gravatar.com/avatar/?d=$default&s={$size}"; if (!empty ($email)) { $out = 'http://www.gravatar.com/avatar/'; $out .= md5(strtolower($email)); $out .= '?s=' . $size; $out .= '&d=' . urlencode($default); $avatar = ""; } else { $avatar = ""; } return $avatar; } ?>