From e0e6762ed8074ad24e4a066d8b4ae22d0eafc2db Mon Sep 17 00:00:00 2001 From: rabuzarus <> Date: Sun, 25 Oct 2015 14:00:08 +0100 Subject: [PATCH] some inital work to have profile pics on manage page --- mod/manage.php | 11 ++++++++++- view/templates/manage.tpl | 22 +++++++++++++++++++--- 2 files changed, 29 insertions(+), 4 deletions(-) diff --git a/mod/manage.php b/mod/manage.php index 5513ebe08d..236a3fb054 100644 --- a/mod/manage.php +++ b/mod/manage.php @@ -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" ' : ''); } diff --git a/view/templates/manage.tpl b/view/templates/manage.tpl index 80477bc40b..d82ddb6d73 100644 --- a/view/templates/manage.tpl +++ b/view/templates/manage.tpl @@ -2,7 +2,7 @@

{{$title}}

{{$desc}}
{{$choose}}
-
+{{*
- {{**}} -
+ + +
*}} + +
+
+ + {{foreach $identities as $id}} + + {{/foreach}} + + + + {{**}} +
+
+ + \ No newline at end of file -- 2.39.5