}
else {
$connlnk = $a->get_baseurl() . '/follow/?url=' . $rr['url'];
- $photo_menu = array(array(t("View Profile"), zrl($rr['url'])));
- $photo_menu[] = array(t("Connect/Follow"), $connlnk);
+ $photo_menu = array(
+ 'profile' => array(t("View Profile"), zrl($rr['url'])),
+ 'follow' => array(t("Connect/Follow"), $connlnk)
+ );
}
$entry = array(
$location_e = $location;
}
- $photo_menu = array(array(t("View Profile"), zrl($profile_link)));
+ $photo_menu = array(
+ 'profile' => array(t("View Profile"), zrl($profile_link))
+ );
$entry = array(
'id' => $rr['id'],
} else {
$connlnk = $a->get_baseurl().'/follow/?url='.(($jj->connect) ? $jj->connect : $jj->url);
$conntxt = t('Connect');
- $photo_menu = array(array(t("View Profile"), zrl($jj->url)));
- $photo_menu[] = array(t("Connect/Follow"), $connlnk);
+ $photo_menu = array(
+ 'profile' => array(t("View Profile"), zrl($jj->url)),
+ 'follow' => array(t("Connect/Follow"), $connlnk)
+ );
}
$jj->photo = str_replace("http:///photo/", get_server()."/photo/", $jj->photo);
if (!count($match)) {
$jj->photo = str_replace("http:///photo/", get_server()."/photo/", $jj->photo);
$connlnk = $a->get_baseurl() . '/follow/?url=' . $jj->url;
- $photo_menu = array(array(t("View Profile"), zrl($jj->url)));
- $photo_menu[] = array(t("Connect/Follow"), $connlnk);
+ $photo_menu = array(
+ 'profile' => array(t("View Profile"), zrl($jj->url)),
+ 'follow' => array(t("Connect/Follow"), $connlnk)
+ );
$contact_details = get_contact_details_by_url($jj->url, local_user());
$connlnk = $a->get_baseurl() . '/follow/?url=' . (($rr['connect']) ? $rr['connect'] : $rr['url']);
$ignlnk = $a->get_baseurl() . '/suggest?ignore=' . $rr['id'];
- $photo_menu = array(array(t("View Profile"), zrl($rr["url"])));
- $photo_menu[] = array(t("Connect/Follow"), $connlnk);
- $photo_menu[] = array(t('Ignore/Hide'), $ignlnk);
+ $photo_menu = array(
+ 'profile' => array(t("View Profile"), zrl($rr["url"])),
+ 'follow' => array(t("Connect/Follow"), $connlnk),
+ 'hide' => array(t('Ignore/Hide'), $ignlnk)
+ );
+
$contact_details = get_contact_details_by_url($rr["url"], local_user(), $rr);
$entry = array(
{{if $contact.photo_menu.edit}}<a class="contact-action-link" href="{{$contact.photo_menu.edit.1}}" data-toggle="tooltip" title="{{$contact.photo_menu.edit.0}}"><i class="fa fa-pencil" aria-hidden="true"></i></a>{{/if}}
{{if $contact.photo_menu.drop}}<a class="contact-action-link" href="{{$contact.photo_menu.drop.1}}" data-toggle="tooltip" title="{{$contact.photo_menu.drop.0}}"><i class="fa fa-user-times" aria-hidden="true"></i></a>{{/if}}
{{if $contact.photo_menu.follow}}<a class="contact-action-link" href="{{$contact.photo_menu.follow.1}}" data-toggle="tooltip" title="{{$contact.photo_menu.follow.0}}"><i class="fa fa-user-plus" aria-hidden="true"></i></a>{{/if}}
+ {{if $contact.photo_menu.hide}}<a class="contact-action-link" href="{{$contact.photo_menu.hide.1}}" data-toggle="tooltip" title="{{$contact.photo_menu.hide.0}}"><i class="fa fa-times" aria-hidden="true"></i></a>{{/if}}
</div>
{{* The contact description (e.g. Name, Network, kind of connection and so on *}}