options->switch && in_array('html', $comment->options->switch)) { echo ''; } echo ''; if ($comment->options->switch && in_array('html', $comment->options->switch)) { echo ''; } } /** * 获取上级评论人 */ public static function getCommentHF($coid){ $db = Typecho_Db::get(); $prow = $db->fetchRow($db->select('parent') ->from('table.comments') ->where('coid = ? AND status = ?', $coid, 'approved')); $parent = $prow['parent']; if ($parent != "0") { $arow = $db->fetchRow($db->select('text','author','status') ->from('table.comments') ->where('coid = ?', $parent)); $author = $arow['author']; $status = $arow['status']; if($author){ if($status=='approved'){ $href = '@'.$author.'';; }else if($status=='waiting'){ $href = '评论审核中···'; } } echo $href; } else { echo ""; } } }