widget('Widget_Archive')->created)) {
$postCreated = $this->widget('Widget_Archive')->created;
}
?>
authorId) {
if ($comments->authorId == $comments->ownerId) {
$commentClass .= " comment-by-author";
} else {
$commentClass .= " comment-by-user";
}
}
?>
levelsAlt(" comment-level-odd", " comment-level-even");
} else {
echo " comment-parent";
}
$comments->alt(" comment-odd", " comment-even");
echo $commentClass;
?>">
authorId == $comments->ownerId) { ?>
url) {
echo '' . $comments->author . '';
} else {
// 如果没有网址,也显示为橙色文本
echo '' . $comments->author . '';
}
}
?>
authorId);
} ?>
authorId) . ')';
} ?>
authorId > 0) { ?>
mail); ?>
status == "waiting") { ?>
- 您的评论正等待审核!
children) { ?>
fetchRow($db->select('author')
->from('table.comments')
->where('coid = ?', $parentId));
return isset($row['author']) ? $row['author'] : null;
} catch (Exception $e) {
return null;
}
}
/**
* 获取父评论URL
* @param int $parentId 父评论ID
* @return string 父评论URL
*/
function getParentCommentUrl($parentId) {
$db = Typecho_Db::get();
try {
$row = $db->fetchRow($db->select('url')
->from('table.comments')
->where('coid = ?', $parentId));
return isset($row['url']) && !empty($row['url']) ? $row['url'] : null;
} catch (Exception $e) {
return null;
}
}
?>
hasLogin()) { ?>