aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2017-01-15 21:23:43 -0800
committerzotlabs <mike@macgirvin.com>2017-01-15 21:23:43 -0800
commite5662dc89367dc70f6a07282c807807261503726 (patch)
tree1c5fb77dabe043af58d9aada32abfc0d2ec939f6 /include
parent0ef2cd871956a45cf947e976c59b1d29744959b6 (diff)
downloadvolse-hubzilla-e5662dc89367dc70f6a07282c807807261503726.tar.gz
volse-hubzilla-e5662dc89367dc70f6a07282c807807261503726.tar.bz2
volse-hubzilla-e5662dc89367dc70f6a07282c807807261503726.zip
vcard export from profile
Diffstat (limited to 'include')
-rw-r--r--include/channel.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/channel.php b/include/channel.php
index 5d92b4769..83f48f361 100644
--- a/include/channel.php
+++ b/include/channel.php
@@ -1278,10 +1278,14 @@ function advanced_profile(&$a) {
// logger('mod_profile: things: ' . print_r($things,true), LOGGER_DATA);
+ $exportlink = ((App::$profile['profile_vcard']) ? zid(z_root() . '/profile/' . App::$profile['channel_address'] . '/vcard') : '');
+
return replace_macros($tpl, array(
'$title' => t('Profile'),
'$canlike' => (($profile['canlike'])? true : false),
'$likethis' => t('Like this thing'),
+ '$export' => t('Export'),
+ '$exportlink' => $exportlink,
'$profile' => $profile,
'$fields' => $clean_fields,
'$editmenu' => profile_edit_menu(App::$profile['profile_uid']),