From 620299dc2571da46c9578f99f743477c7a4b4a4a Mon Sep 17 00:00:00 2001 From: rabuzarus <> Date: Thu, 26 Nov 2015 17:46:38 +0100 Subject: [PATCH] include friendica address in hcard --- include/identity.php | 4 +- view/templates/profile_vcard.tpl | 2 +- view/theme/duepuntozero/style.css | 3 +- .../duepuntozero/templates/profile_vcard.tpl | 14 +++--- view/theme/frost-mobile/style.css | 3 +- .../frost-mobile/templates/profile_vcard.tpl | 2 +- view/theme/frost/style.css | 3 +- view/theme/frost/templates/profile_vcard.tpl | 2 +- view/theme/quattro/dark/style.css | 5 ++- view/theme/quattro/green/style.css | 5 ++- view/theme/quattro/lilac/style.css | 11 +++-- view/theme/quattro/quattro.less | 1 + .../theme/quattro/templates/profile_vcard.tpl | 43 ++++++++++--------- view/theme/vier/templates/profile_vcard.tpl | 3 ++ 14 files changed, 60 insertions(+), 41 deletions(-) diff --git a/include/identity.php b/include/identity.php index 3ab65d9e64..a785ce981d 100644 --- a/include/identity.php +++ b/include/identity.php @@ -62,7 +62,7 @@ if(! function_exists('profile_load')) { if($profile) { $profile_int = intval($profile); - $r = q("SELECT `profile`.`uid` AS `profile_uid`, `profile`.* , `contact`.`avatar-date` AS picdate, `user`.* FROM `profile` + $r = q("SELECT `profile`.`uid` AS `profile_uid`, `profile`.* , `contact`.`avatar-date` AS picdate, `contact`.`addr` AS faddr, `user`.* FROM `profile` INNER JOIN `contact` on `contact`.`uid` = `profile`.`uid` INNER JOIN `user` ON `profile`.`uid` = `user`.`uid` WHERE `user`.`nickname` = '%s' AND `profile`.`id` = %d AND `contact`.`self` = 1 LIMIT 1", dbesc($nickname), @@ -70,7 +70,7 @@ if(! function_exists('profile_load')) { ); } if((!$r) && (!count($r))) { - $r = q("SELECT `profile`.`uid` AS `profile_uid`, `profile`.* , `contact`.`avatar-date` AS picdate, `user`.* FROM `profile` + $r = q("SELECT `profile`.`uid` AS `profile_uid`, `profile`.* , `contact`.`avatar-date` AS picdate, `contact`.`addr` AS faddr, `user`.* FROM `profile` INNER JOIN `contact` ON `contact`.`uid` = `profile`.`uid` INNER JOIN `user` ON `profile`.`uid` = `user`.`uid` WHERE `user`.`nickname` = '%s' AND `profile`.`is-default` = 1 AND `contact`.`self` = 1 LIMIT 1", dbesc($nickname) diff --git a/view/templates/profile_vcard.tpl b/view/templates/profile_vcard.tpl index fe5762973f..05e44432fd 100644 --- a/view/templates/profile_vcard.tpl +++ b/view/templates/profile_vcard.tpl @@ -3,7 +3,7 @@