sforkowany z mirror/friendica
Merge pull request #1428 from FlxAlbroscheit/develop
Access a contact directly from the contact-manager-page2022.09-rc
commit
dd21750d90
|
@ -32,7 +32,8 @@ function contacts_init(&$a) {
|
|||
$a->data['contact'] = $r[0];
|
||||
$vcard_widget = replace_macros(get_markup_template("vcard-widget.tpl"),array(
|
||||
'$name' => $a->data['contact']['name'],
|
||||
'$photo' => $a->data['contact']['photo']
|
||||
'$photo' => $a->data['contact']['photo'],
|
||||
'$url' => $a->data['contact']['url']
|
||||
));
|
||||
$follow_widget = '';
|
||||
}
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
|
||||
<div class="vcard">
|
||||
<div class="fn">{{$name}}</div>
|
||||
<div id="profile-photo-wrapper"><img class="photo" style="width: 175px; height: 175px;" src="{{$photo}}" alt="{{$name}}" /></div>
|
||||
<div class="fn"><a href="{{$url}}">{{$name}}</a></div>
|
||||
<div id="profile-photo-wrapper"><a href="{{$url}}"><img class="photo" style="width: 175px; height: 175px;" src="{{$photo}}" alt="{{$name}}" /></a></div>
|
||||
</div>
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue