blog/view/userlist.php
Найти
Код: Выделить всё
bu.title
Код: Выделить всё
, u.user_avatar, u.user_avatar_type, u.user_avatar_width, u.user_avatar_height
Код: Выделить всё
$template->assign_block_vars('userrow', array(
'BLOG_COUNT' => $row['blog_count'],
'BLOG_TITLE' => ($row['title']) ? censor_text($row['title']) : sprintf($user->lang['USERNAMES_BLOGS'], $row['username']),
'USERNAME' => get_username_string('full', $user_id, $row['username'], $row['user_colour']),
Код: Выделить всё
$avatar_max_dimensions = 40;
if ( $row['user_avatar_width'] >= $row['user_avatar_height'] )
{
$avatar_width = ($row['user_avatar_width'] > $avatar_max_dimensions) ? $avatar_max_dimensions : $row['user_avatar_width'];
$avatar_height = ($avatar_width == $avatar_max_dimensions) ? round($avatar_max_dimensions / $row['user_avatar_width'] * $row['user_avatar_height']) : $row['user_avatar_height'];
}
else
{
$avatar_height = ($row['user_avatar_height'] > $avatar_max_dimensions) ? $avatar_max_dimensions : $row['user_avatar_height'];
$avatar_width = ($avatar_height == $avatar_max_dimensions) ? round($avatar_max_dimensions / $row['user_avatar_height'] * $row['user_avatar_width']) : $row['user_avatar_width'];
}
Код: Выделить всё
'AVATAR' => get_user_avatar($row['user_avatar'], $row['user_avatar_type'], $avatar_width, $avatar_height),
styles/prosilver/template/blog/userlist.html
Найти
Код: Выделить всё
{userrow.USERNAME}
Код: Выделить всё
{userrow.AVATAR}<br />{userrow.USERNAME}