diff --git a/include/identity.php b/include/identity.php index e412c68c9..b9984f10a 100644 --- a/include/identity.php +++ b/include/identity.php @@ -190,7 +190,7 @@ if(! function_exists('profile_sidebar')) { $o = ''; $location = false; $address = false; - $pdesc = true; +// $pdesc = true; if((! is_array($profile)) && (! count($profile))) return $o; @@ -371,7 +371,7 @@ if(! function_exists('profile_sidebar')) { '$account_type' => $account_type, '$location' => $location, '$gender' => $gender, - '$pdesc' => $pdesc, +// '$pdesc' => $pdesc, '$marital' => $marital, '$homepage' => $homepage, '$about' => $about, diff --git a/mod/photos.php b/mod/photos.php index 3f8d3afaf..7ca850bc9 100644 --- a/mod/photos.php +++ b/mod/photos.php @@ -37,18 +37,23 @@ function photos_init(&$a) { $profile = get_profiledata_by_nick($nick, $a->profile_uid); - if((x($profile['page-flags']) == 1) + if((x($profile['page-flags']) == 1) || (x($profile['page-flags']) == 2) - || (x($profile['page-flags']) == 5)) + || (x($profile['page-flags']) == 5)) { $account_type = page_type_translate($profile['page-flags']); + } + else { + $account_type = ""; + } $tpl = get_markup_template("vcard-widget.tpl"); $vcard_widget .= replace_macros($tpl, array( - '$name' => $profile[name], - '$photo' => $profile[photo], - '$addr' => (($profile['addr'] != "") ? $profile['addr'] : ''), + '$name' => $profile['name'], + '$photo' => $profile['photo'], + '$addr' => (($profile['addr'] != "") ? $profile['addr'] : ""), '$account_type' => $account_type, + '$pdesc' => (($profile['pdesc'] != "") ? $profile['pdesc'] : ""), )); diff --git a/mod/videos.php b/mod/videos.php index ae00185cc..de9feac06 100644 --- a/mod/videos.php +++ b/mod/videos.php @@ -33,18 +33,23 @@ function videos_init(&$a) { $profile = get_profiledata_by_nick($nick, $a->profile_uid); - if((x($profile['page-flags']) == 1) + if((x($profile['page-flags']) == 1) || (x($profile['page-flags']) == 2) - || (x($profile['page-flags']) == 5)) + || (x($profile['page-flags']) == 5)) { $account_type = page_type_translate($profile['page-flags']); + } + else { + $account_type = ""; + } $tpl = get_markup_template("vcard-widget.tpl"); $vcard_widget .= replace_macros($tpl, array( - '$name' => $profile[name], - '$photo' => $profile[photo], - '$addr' => (($profile['addr'] != "") ? $profile['addr'] : ''), + '$name' => $profile['name'], + '$photo' => $profile['photo'], + '$addr' => (($profile['addr'] != "") ? $profile['addr'] : ""), '$account_type' => $account_type, + '$pdesc' => (($profile['pdesc'] != "") ? $profile['pdesc'] : ""), )); diff --git a/view/templates/profile_vcard.tpl b/view/templates/profile_vcard.tpl index 1b4e6a6ee..0a3a13f9d 100644 --- a/view/templates/profile_vcard.tpl +++ b/view/templates/profile_vcard.tpl @@ -5,7 +5,7 @@ {{if $profile.addr}}
{{$profile.addr}}
{{/if}} - {{if $pdesc}}
{{$profile.pdesc}}
{{/if}} + {{if $profile.pdesc}}
{{$profile.pdesc}}
{{/if}} {{if $profile.picdate}}
{{$profile.name}}
diff --git a/view/templates/vcard-widget.tpl b/view/templates/vcard-widget.tpl index 77405614c..ec59fa46d 100644 --- a/view/templates/vcard-widget.tpl +++ b/view/templates/vcard-widget.tpl @@ -2,7 +2,7 @@
{{$name}}
{{if $addr}}
{{$addr}}
{{/if}} - {{if $pdesc}}
{{$profile.pdesc}}
{{/if}} + {{if $pdesc}}
{{$pdesc}}
{{/if}} {{if $url}}
{{$name}}
{{else}} diff --git a/view/theme/duepuntozero/templates/profile_vcard.tpl b/view/theme/duepuntozero/templates/profile_vcard.tpl index bfcbda798..bd2e92f9e 100644 --- a/view/theme/duepuntozero/templates/profile_vcard.tpl +++ b/view/theme/duepuntozero/templates/profile_vcard.tpl @@ -5,7 +5,7 @@ {{if $profile.addr}}
{{$profile.addr}}
{{/if}} - {{if $pdesc}}
{{$profile.pdesc}}
{{/if}} + {{if $profile.pdesc}}
{{$profile.pdesc}}
{{/if}}
{{$profile.name}}
{{if $account_type}}
{{$account_type}}
{{/if}} diff --git a/view/theme/frost-mobile/templates/profile_vcard.tpl b/view/theme/frost-mobile/templates/profile_vcard.tpl index a7ea8e6a0..b3024074b 100644 --- a/view/theme/frost-mobile/templates/profile_vcard.tpl +++ b/view/theme/frost-mobile/templates/profile_vcard.tpl @@ -5,7 +5,7 @@ {{if $profile.addr}}
{{$profile.addr}}
{{/if}} - {{if $pdesc}}
{{$profile.pdesc}}
{{/if}} + {{if $profile.pdesc}}
{{$profile.pdesc}}
{{/if}}
{{$profile.name}}
{{if $account_type}}
{{$account_type}}
{{/if}} diff --git a/view/theme/frost/templates/profile_vcard.tpl b/view/theme/frost/templates/profile_vcard.tpl index 9d1a37016..1a0c39a82 100644 --- a/view/theme/frost/templates/profile_vcard.tpl +++ b/view/theme/frost/templates/profile_vcard.tpl @@ -5,7 +5,7 @@ {{if $profile.addr}}
{{$profile.addr}}
{{/if}} - {{if $pdesc}}
{{$profile.pdesc}}
{{/if}} + {{if $profile.pdesc}}
{{$profile.pdesc}}
{{/if}}
{{$profile.name}}
{{if $account_type}}
{{$account_type}}
{{/if}} diff --git a/view/theme/vier/style.css b/view/theme/vier/style.css index 94390d7a4..97a3aaaf9 100644 --- a/view/theme/vier/style.css +++ b/view/theme/vier/style.css @@ -993,6 +993,7 @@ aside .vcard .fn { } aside .vcard .title { margin-bottom: 5px; + float: left; } aside .vcard dl { height: auto; diff --git a/view/theme/vier/templates/profile_vcard.tpl b/view/theme/vier/templates/profile_vcard.tpl index d81faf175..a3b08947d 100644 --- a/view/theme/vier/templates/profile_vcard.tpl +++ b/view/theme/vier/templates/profile_vcard.tpl @@ -15,7 +15,7 @@ {{if $profile.addr}}
{{$profile.addr}}
{{/if}} - {{if $pdesc}}
{{$profile.pdesc}}
{{/if}} + {{if $profile.pdesc}}
{{$profile.pdesc}}
{{/if}} {{if $profile.picdate}}
{{$profile.name}}