mirror of
https://github.com/jkjoy/typecho-theme-farallon.git
synced 2026-06-27 20:34:30 +00:00
0.7.0
后台增加指定分类ID 显示指定样式
This commit is contained in:
+7
-7
@@ -435,8 +435,8 @@ function commentApprove($widget, $email = NULL)
|
||||
->from('table.comments')
|
||||
->where('mail = ?', $email));
|
||||
$commentNum = $commentNumSql[0]['commentNum'];
|
||||
$linkSql = $db->fetchAll($db->select()->from('table.links')
|
||||
->where('user = ?',$email));
|
||||
//$linkSql = $db->fetchAll($db->select()->from('table.links')
|
||||
// ->where('user = ?',$email));
|
||||
if($commentNum==1){
|
||||
$result['userLevel'] = '初识';
|
||||
$result['bgColor'] = '#999999';
|
||||
@@ -463,11 +463,11 @@ function commentApprove($widget, $email = NULL)
|
||||
}
|
||||
$userDesc = '已有'.$commentNum.'条评论';
|
||||
}
|
||||
if($linkSql){
|
||||
$result['userLevel'] = '博友';
|
||||
$result['bgColor'] = '#21b9bb';
|
||||
$userDesc = '🔗'.$linkSql[0]['description'].' ✌️'.$userDesc;
|
||||
}
|
||||
// if($linkSql){
|
||||
// $result['userLevel'] = '博友';
|
||||
// $result['bgColor'] = '#21b9bb';
|
||||
// $userDesc = '🔗'.$linkSql[0]['description'].' ✌️'.$userDesc;
|
||||
// }
|
||||
|
||||
$result['userDesc'] = $userDesc;
|
||||
$result['commentNum'] = $commentNum;
|
||||
|
||||
Reference in New Issue
Block a user