mirror of
https://github.com/friendica/friendica
synced 2025-04-27 05:50:10 +00:00
unify hcard and vcard
This commit is contained in:
parent
0278e60664
commit
89c5989cfb
23 changed files with 234 additions and 124 deletions
|
@ -2318,3 +2318,25 @@ function page_type_translate($page_type) {
|
|||
|
||||
return $trans_type;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief translate and format the networkname of a contact
|
||||
*
|
||||
* @param string $network
|
||||
* Networkname of the contact (e.g. dfrn, rss and so on)
|
||||
* @param sting $url
|
||||
* The contact url
|
||||
* @return string
|
||||
*/
|
||||
function format_network_name($network, $url = 0) {
|
||||
if ($network != "") {
|
||||
require_once('include/contact_selectors.php');
|
||||
if ($url != "")
|
||||
$network_name = '<a href="'.$url.'">'.network_to_name($network, $url)."</a>";
|
||||
else
|
||||
$network_name = network_to_name($network);
|
||||
|
||||
return $network_name;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue