Merge pull request #1428 from FlxAlbroscheit/develop

Access a contact directly from the contact-manager-page
This commit is contained in:
Tobias Diekershoff 2015-03-12 07:13:31 +01:00
commit dd21750d90
2 changed files with 4 additions and 3 deletions

View File

@ -32,7 +32,8 @@ function contacts_init(&$a) {
$a->data['contact'] = $r[0]; $a->data['contact'] = $r[0];
$vcard_widget = replace_macros(get_markup_template("vcard-widget.tpl"),array( $vcard_widget = replace_macros(get_markup_template("vcard-widget.tpl"),array(
'$name' => $a->data['contact']['name'], '$name' => $a->data['contact']['name'],
'$photo' => $a->data['contact']['photo'] '$photo' => $a->data['contact']['photo'],
'$url' => $a->data['contact']['url']
)); ));
$follow_widget = ''; $follow_widget = '';
} }

View File

@ -1,6 +1,6 @@
<div class="vcard"> <div class="vcard">
<div class="fn">{{$name}}</div> <div class="fn"><a href="{{$url}}">{{$name}}</a></div>
<div id="profile-photo-wrapper"><img class="photo" style="width: 175px; height: 175px;" src="{{$photo}}" alt="{{$name}}" /></div> <div id="profile-photo-wrapper"><a href="{{$url}}"><img class="photo" style="width: 175px; height: 175px;" src="{{$photo}}" alt="{{$name}}" /></a></div>
</div> </div>