Browse Source

Merge pull request #1428 from FlxAlbroscheit/develop

Access a contact directly from the contact-manager-page
pull/1431/head
Tobias Diekershoff 7 years ago
parent
commit
dd21750d90
  1. 3
      mod/contacts.php
  2. 4
      view/templates/vcard-widget.tpl

3
mod/contacts.php

@ -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 = '';
}

4
view/templates/vcard-widget.tpl

@ -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>

Loading…
Cancel
Save