contact_template is called from multiple places with different params

This commit is contained in:
friendica 2013-02-20 14:17:23 -08:00
parent 9016b5c67a
commit 92f94a0fdc
5 changed files with 5 additions and 5 deletions

View File

@ -594,7 +594,7 @@ function connections_content(&$a) {
'name' => $rr['xchan_name'],
'username' => $rr['xchan_name'],
'sparkle' => $sparkle,
'edit' => z_root() . '/connections/' . $rr['abook_id'],
'link' => z_root() . '/connections/' . $rr['abook_id'],
'url' => $rr['xchan_url'],
'network' => network_to_name($rr['network']),
);

View File

@ -48,7 +48,7 @@ function nogroup_content(&$a) {
'username' => $rr['name'],
'sparkle' => $sparkle,
'itemurl' => $rr['url'],
'url' => $url,
'link' => $url,
'network' => network_to_name($rr['network']),
);
}

View File

@ -70,7 +70,7 @@ function viewconnections_content(&$a) {
'thumb' => $rr['xchan_photo_m'],
'name' => substr($rr['xchan_name'],0,20),
'username' => $rr['xchan_addr'],
'url' => $url,
'link' => $url,
'sparkle' => '',
'itemurl' => $rr['url'],
'network' => '',

View File

@ -1,7 +1,7 @@
<div class="contact-entry-wrapper" id="contact-entry-wrapper-$contact.id" >
<div class="contact-entry-photo-wrapper" >
<a href="$contact.url" title="$contact.img_hover" /><img src="$contact.thumb" alt="$contact.name" /></a>
<a href="$contact.link" title="$contact.img_hover" /><img src="$contact.thumb" alt="$contact.name" /></a>
</div>
<div class="contact-entry-photo-end" ></div>
<div class="contact-entry-name" id="contact-entry-name-$contact.id" >$contact.name</div>

View File

@ -6,7 +6,7 @@
<div class="contact-entry-wrapper" id="contact-entry-wrapper-{{$contact.id}}" >
<div class="contact-entry-photo-wrapper" >
<a href="{{$contact.url}}" title="{{$contact.img_hover}}" /><img src="{{$contact.thumb}}" alt="{{$contact.name}}" /></a>
<a href="{{$contact.link}}" title="{{$contact.img_hover}}" /><img src="{{$contact.thumb}}" alt="{{$contact.name}}" /></a>
</div>
<div class="contact-entry-photo-end" ></div>
<div class="contact-entry-name" id="contact-entry-name-{{$contact.id}}" >{{$contact.name}}</div>