aboutsummaryrefslogtreecommitdiffstats
path: root/boot.php
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-08-01 05:13:59 -0700
committerFriendika <info@friendika.com>2011-08-01 05:13:59 -0700
commit326a873082cd9f31f70bfb703ad2c3e7fde19bb8 (patch)
treedb431ba643a675b097651b6e77aecd7f1e00153d /boot.php
parent823d7ba42ac619010fa786936ad625461e27e56d (diff)
downloadvolse-hubzilla-326a873082cd9f31f70bfb703ad2c3e7fde19bb8.tar.gz
volse-hubzilla-326a873082cd9f31f70bfb703ad2c3e7fde19bb8.tar.bz2
volse-hubzilla-326a873082cd9f31f70bfb703ad2c3e7fde19bb8.zip
merge diaspora/friendika vcard formats - not yet complete
Diffstat (limited to 'boot.php')
-rw-r--r--boot.php40
1 files changed, 39 insertions, 1 deletions
diff --git a/boot.php b/boot.php
index 025f7ef87..4d4b38512 100644
--- a/boot.php
+++ b/boot.php
@@ -2396,6 +2396,8 @@ function profile_load(&$a, $nickname, $profile = 0) {
if(! function_exists('profile_sidebar')) {
function profile_sidebar($profile) {
+ $a = get_app();
+
$o = '';
$location = '';
$address = false;
@@ -2454,6 +2456,41 @@ function profile_sidebar($profile) {
$location = $gender = $marital = $homepage = '';
}
+ $podloc = $a->get_baseurl();
+ $searchable = (($profile['publish'] && $profile['net-publish']) ? 'true' : 'false' );
+ $nickname = $profile['nick'];
+ $dphoto = $profile['photo'];
+
+ $diaspora_vcard = <<< EOT
+
+<div style="display:none;">
+<dl class='entity_nickname'>
+<dt>Nickname</dt>
+<dd>
+<a class="nickname url uid" href="$podloc" rel="me">$nickname</a>
+</dd>
+</dl>
+<dl class="entity_url">
+<dt>URL</dt>
+<dd>
+<a class="url" href="$podloc" id="pod_location" rel="me">$podloc</a>
+</dd>
+</dl>
+<dl class="entity_photo">
+<dt>Photo</dt>
+<dd>
+<img class="photo avatar" height="175px" src="$dphoto" width='175px'>
+</dd>
+</dl>
+<dl class='entity_searchable'>
+<dt>Searchable</dt>
+<dd>
+<span class='searchable'>$searchable</span>
+</dd>
+</dl>
+</div>
+EOT;
+
$tpl = get_markup_template('profile_vcard.tpl');
$o .= replace_macros($tpl, array(
@@ -2466,7 +2503,8 @@ function profile_sidebar($profile) {
'$gender' => $gender,
'$pubkey' => $pubkey,
'$marital' => $marital,
- '$homepage' => $homepage
+ '$homepage' => $homepage,
+ '$diaspora' => $diaspora_vcard
));