aboutsummaryrefslogtreecommitdiffstats
path: root/mod/profiles.php
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-04-12 21:21:33 -0700
committerFriendika <info@friendika.com>2011-04-12 21:21:33 -0700
commite8a0dd40b273df2dc22e10d91fc44fe464b408e7 (patch)
tree243fe266e8deca859f1d858bbeeaeeee9b187987 /mod/profiles.php
parentf04e2e70447e433bdc6acb2094fd988a995d1c08 (diff)
downloadvolse-hubzilla-e8a0dd40b273df2dc22e10d91fc44fe464b408e7.tar.gz
volse-hubzilla-e8a0dd40b273df2dc22e10d91fc44fe464b408e7.tar.bz2
volse-hubzilla-e8a0dd40b273df2dc22e10d91fc44fe464b408e7.zip
profile visibility editor
Diffstat (limited to 'mod/profiles.php')
-rw-r--r--mod/profiles.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/mod/profiles.php b/mod/profiles.php
index 4802f21aa..5ab104aa9 100644
--- a/mod/profiles.php
+++ b/mod/profiles.php
@@ -459,16 +459,16 @@ function profiles_content(&$a) {
));
- $tpl_default = load_view_file('view/profile_entry_default.tpl');
$tpl = load_view_file('view/profile_entry.tpl');
foreach($r as $rr) {
- $template = (($rr['is-default']) ? $tpl_default : $tpl);
- $o .= replace_macros($template, array(
+ $o .= replace_macros($tpl, array(
'$photo' => $rr['thumb'],
'$id' => $rr['id'],
'$alt' => t('Profile Image'),
- '$profile_name' => $rr['profile-name']
+ '$profile_name' => $rr['profile-name'],
+ '$visible' => (($rr['is-default']) ? t('Visible to everybody')
+ : '<a href="' . $a->get_baseurl() . '/profperm/' . $rr['id'] . '" />' . t('Edit visibility') . '</a>')
));
}
}