some inital work to have profile pics on manage page
This commit is contained in:
parent
64a5b33e77
commit
e0e6762ed8
2 changed files with 29 additions and 4 deletions
|
@ -98,7 +98,16 @@ function manage_content(&$a) {
|
|||
}
|
||||
|
||||
$identities = $a->identities;
|
||||
foreach($identities as $key=>$id) {
|
||||
|
||||
//getting profile pics for delegates
|
||||
foreach ($identities as $key=>$id) {
|
||||
$thumb = q("SELECT `thumb` FROM `contact` WHERE `uid` = %d AND `name` = '%s' AND `nick` = '%s' AND (network = 'dfrn' OR self = 1)",
|
||||
intval($a->user['uid']),
|
||||
dbesc($id['username']),
|
||||
dbesc($id['nickname'])
|
||||
);
|
||||
$identities[$key][thumb] = $thumb[0][thumb];
|
||||
|
||||
$identities[$key]['selected'] = (($id['nickname'] === $a->user['nickname']) ? ' selected="selected" ' : '');
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue