Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
MuZhou233 committed May 14, 2020
1 parent a9d985c commit a5c0f10
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions link.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@
$db = Typecho_Db::get();
$users = $db->fetchALL($db->select('name','screenName','url','mail','group','introduction')->from('table.users')->where('url <> ?', ''));

function linkCard($user, $avatarRating){
function linkCard($user){
$url = $user['url'];
$name = $user['screenName'];
$intro = $user['introduction'];
$avatar = Typecho_Common::gravatarUrl($user['mail'], 144, $this->options->commentsAvatarRating, 'mp', $this->request->isSecure());;
$avatar = $user['avatar'];
echo '
<a href="'.$url.'">
<blockquote class="card-meta">
Expand Down Expand Up @@ -43,7 +43,8 @@ function linkCard($user, $avatarRating){
foreach ($users as $user)if ($user['group'] === $group[$i]) {
if (empty($user['screenName'])) $user['screenName'] = $user['name'];
$user['introduction'] = Typecho_Common::subStr(Typecho_Common::stripTags(Widget_Abstract_Contents::markdown($user['introduction'])), 0, 14, '...');
linkCard($user, $this->options->commentsAvatarRating);
$user['avatar'] = Typecho_Common::gravatarUrl($user['mail'], 144, $this->options->commentsAvatarRating, 'mp', $this->request->isSecure());
linkCard($user);
}
break;
}
Expand Down

0 comments on commit a5c0f10

Please sign in to comment.