From 316f0a75cd83b663cf5872df1ff7e25223bf0b43 Mon Sep 17 00:00:00 2001 From: Michael Vogel Date: Mon, 25 Aug 2014 16:17:49 +0200 Subject: [PATCH] Showing the network name on the display page. --- boot.php | 10 ++++++++++ view/templates/profile_vcard.tpl | 2 +- view/theme/vier/templates/profile_vcard.tpl | 2 +- 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/boot.php b/boot.php index ca193693b2..f4468bee92 100644 --- a/boot.php +++ b/boot.php @@ -1487,6 +1487,15 @@ if(! function_exists('profile_sidebar')) { $profile['picdate'] = urlencode($profile['picdate']); + if (($profile['network'] != "") AND ($profile['network'] != NETWORK_DFRN)) { + require_once('include/contact_selectors.php'); + if ($profile['url'] != "") + $profile['network_name'] = ''.network_to_name($profile['network']).""; + else + $profile['network_name'] = network_to_name($profile['network']); + } else + $profile['network_name'] = ""; + call_hooks('profile_sidebar_enter', $profile); @@ -1626,6 +1635,7 @@ if(! function_exists('profile_sidebar')) { '$pdesc' => $pdesc, '$marital' => $marital, '$homepage' => $homepage, + '$network' => t('Network:'), '$diaspora' => $diaspora, '$contact_block' => $contact_block, )); diff --git a/view/templates/profile_vcard.tpl b/view/templates/profile_vcard.tpl index 5c022b6a58..1fddccdfe5 100644 --- a/view/templates/profile_vcard.tpl +++ b/view/templates/profile_vcard.tpl @@ -16,7 +16,7 @@ {{else}}
{{$profile.name}}
{{/if}} - + {{if $profile.network_name}}
{{$network}}
{{$profile.network_name}}
{{/if}} {{if $location}}
{{$location}}
diff --git a/view/theme/vier/templates/profile_vcard.tpl b/view/theme/vier/templates/profile_vcard.tpl index 1d898eeed9..472bf757d0 100644 --- a/view/theme/vier/templates/profile_vcard.tpl +++ b/view/theme/vier/templates/profile_vcard.tpl @@ -36,7 +36,7 @@ {{/if}} {{if $pdesc}}
{{$profile.pdesc}}
{{/if}} - + {{if $profile.network_name}}
{{$network}}
{{$profile.network_name}}
{{/if}} {{if $location}}
{{$location}}

-- 2.39.5