From 2a840460dddb06c99b616b5adc666ee0f39588de Mon Sep 17 00:00:00 2001 From: redmatrix Date: Tue, 21 Jun 2016 19:25:14 -0700 Subject: vcard spec changes --- include/channel.php | 1 + view/tpl/diaspora_vcard.tpl | 26 ++++++++++++++++---------- view/tpl/profile_vcard.tpl | 22 +++++++++++----------- view/tpl/xchan_vcard.tpl | 6 +++--- 4 files changed, 31 insertions(+), 24 deletions(-) diff --git a/include/channel.php b/include/channel.php index fdb6788be..562aedddc 100644 --- a/include/channel.php +++ b/include/channel.php @@ -1033,6 +1033,7 @@ function profile_sidebar($profile, $block = 0, $show_connect = true, $zcard = fa $diaspora = array( 'podloc' => z_root(), + 'guid' => $profile['channel_guid'] . str_replace('.','',App::get_hostname()), 'searchable' => (($block) ? 'false' : 'true'), 'nickname' => $profile['channel_address'], 'fullname' => $profile['channel_name'], diff --git a/view/tpl/diaspora_vcard.tpl b/view/tpl/diaspora_vcard.tpl index f9dac9306..3812823da 100644 --- a/view/tpl/diaspora_vcard.tpl +++ b/view/tpl/diaspora_vcard.tpl @@ -1,51 +1,57 @@
+
+
Uid
+
+ {{$diaspora.guid}} +
+
Nickname
- {{$diaspora.fullname}} + {{$diaspora.nickname}}
-
+
Full name
- {{$diaspora.fullname}} + {{$diaspora.fullname}}
-
+
First name
- {{$diaspora.firstname}} + {{$diaspora.firstname}}
Family name
- {{$diaspora.lastname}} + {{$diaspora.lastname}}
URL
- {{$diaspora.podloc}}/ + {{$diaspora.podloc}}/
Photo
- +
Photo
- +
Photo
- +
diff --git a/view/tpl/profile_vcard.tpl b/view/tpl/profile_vcard.tpl index 7d7d2019a..626649784 100755 --- a/view/tpl/profile_vcard.tpl +++ b/view/tpl/profile_vcard.tpl @@ -1,6 +1,6 @@ -
+
{{if ! $zcard}} -
{{$profile.fullname}}
+
{{$profile.fullname}}
{{/if}} {{if $connect}} @@ -25,29 +25,29 @@ {{/if}} {{if ! $zcard}} -
{{$profile.fullname}}{{if $profile.online}} {{/if}}
+
{{$profile.fullname}}{{if $profile.online}} {{/if}}
{{if $reddress}}
{{$profile.reddress}}
{{/if}} {{/if}} {{if $pdesc}}
{{$profile.pdesc}}
{{/if}} {{if $location}}
{{$location}}
-
- {{if $profile.address}}
{{$profile.address}}
{{/if}} +
+ {{if $profile.address}}
{{$profile.address}}
{{/if}} - {{$profile.locality}}{{if $profile.locality}}, {{/if}} - {{$profile.region}} - {{$profile.postal_code}} + {{$profile.locality}}{{if $profile.locality}}, {{/if}} + {{$profile.region}} + {{$profile.postal_code}} - {{if $profile.country_name}}{{$profile.country_name}}{{/if}} + {{if $profile.country_name}}{{$profile.country_name}}{{/if}}
{{/if}} - {{if $gender}}
{{$gender}}
{{$profile.gender}}
{{/if}} + {{if $gender}}
{{$gender}}
{{$profile.gender}}
{{/if}} {{if $marital}}
 {{$marital}}
{{$profile.marital}}
{{/if}} - {{if $homepage}}
{{$homepage}}
{{$profile.homepage}}
{{/if}} + {{if $homepage}}
{{$homepage}}
{{$profile.homepage}}
{{/if}} {{if $diaspora}} {{include file="diaspora_vcard.tpl"}} diff --git a/view/tpl/xchan_vcard.tpl b/view/tpl/xchan_vcard.tpl index 9a1e23beb..ac796cd47 100755 --- a/view/tpl/xchan_vcard.tpl +++ b/view/tpl/xchan_vcard.tpl @@ -1,9 +1,9 @@ -
-
{{$name}}
+
+
{{$name}}
{{if $connect}} {{/if}} -
{{$name}}
+
{{$name}}
-- cgit v1.2.3