'$desc' => sprintf( tt("%d contact in common", "%d contacts in common", $t), $t),
'$base' => $a->get_baseurl(),
'$uid' => $profile_uid,
- '$cid' => $cid,
+ '$cid' => (($cid) ? $cid : '0'),
+ '$linkmore' => (($t > 5) ? 'true' : ''),
'$more' => t('show more'),
'$items' => $r
));
<div id="remote-friends-in-common" class="bigwidget">
- <div id="rfic-desc">$desc <a href="$base/common/rem/$uid/$cid">$more</a></div>
+ <div id="rfic-desc">$desc {{ if $linkmore }}<a href="$base/common/rem/$uid/$cid">$more</a>{{ endif }}</div>
{{ if $items }}
{{ for $items as $item }}
<div class="profile-match-wrapper">