connect on suggest/match - added to testbubble
This commit is contained in:
parent
622886a33c
commit
eb05d00794
|
@ -22,6 +22,14 @@ function follow_init(&$a) {
|
||||||
// NOTREACHED
|
// NOTREACHED
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
if(! $url) {
|
||||||
|
notice( t('Connect URL missing.') . EOL);
|
||||||
|
goaway($_SESSION['return_url']);
|
||||||
|
// NOTREACHED
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
$ret = probe_url($url);
|
$ret = probe_url($url);
|
||||||
|
|
||||||
if($ret['network'] === NETWORK_DFRN) {
|
if($ret['network'] === NETWORK_DFRN) {
|
||||||
|
|
|
@ -54,6 +54,7 @@ function match_content(&$a) {
|
||||||
'$url' => $jj->url,
|
'$url' => $jj->url,
|
||||||
'$name' => $jj->name,
|
'$name' => $jj->name,
|
||||||
'$photo' => $jj->photo,
|
'$photo' => $jj->photo,
|
||||||
|
'$inttxt' => ' ' . t('is interested in:'),
|
||||||
'$conntxt' => t('Connect'),
|
'$conntxt' => t('Connect'),
|
||||||
'$connlnk' => $connlnk,
|
'$connlnk' => $connlnk,
|
||||||
'$tags' => $jj->tags
|
'$tags' => $jj->tags
|
||||||
|
|
|
@ -4,7 +4,10 @@
|
||||||
<img src="$photo" alt="$name" />
|
<img src="$photo" alt="$name" />
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
<span><a href="$url">$name</a> is interested in:<br />$tags</span>
|
<span><a href="$url">$name</a>$inttxt<br />$tags</span>
|
||||||
<div class="profile-match-break"></div>
|
<div class="profile-match-break"></div>
|
||||||
|
{{ if $connlnk }}
|
||||||
|
<div class="profile-match-connect"><a href="$connlnk" title="$conntxt">$conntxt</a></div>
|
||||||
|
{{ endif }}
|
||||||
<div class="profile-match-end"></div>
|
<div class="profile-match-end"></div>
|
||||||
</div>
|
</div>
|
Loading…
Reference in New Issue
Block a user