aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2016-03-17 12:56:55 +0100
committerMario Vavti <mario@mariovavti.com>2016-03-17 12:56:55 +0100
commit40162cd6b712f45ecd21f41d7793b2a6be6ac021 (patch)
treefa4f234f4deb22a868e08a194dfaace1da55c190 /mod
parenta41a05e6c0b0fa5f9497f0880a2db9d8d7374092 (diff)
downloadvolse-hubzilla-40162cd6b712f45ecd21f41d7793b2a6be6ac021.tar.gz
volse-hubzilla-40162cd6b712f45ecd21f41d7793b2a6be6ac021.tar.bz2
volse-hubzilla-40162cd6b712f45ecd21f41d7793b2a6be6ac021.zip
some work on profile listing
Diffstat (limited to 'mod')
-rw-r--r--mod/profiles.php25
1 files changed, 12 insertions, 13 deletions
diff --git a/mod/profiles.php b/mod/profiles.php
index aebcc9022..f891c6033 100644
--- a/mod/profiles.php
+++ b/mod/profiles.php
@@ -758,21 +758,9 @@ function profiles_content(&$a) {
local_channel());
if(count($r)) {
- $tpl_header = get_markup_template('profile_listing_header.tpl');
- $o .= replace_macros($tpl_header,array(
- '$header' => t('Edit/Manage Profiles'),
- '$addstuff' => t('Add profile things'),
- '$stuff_desc' => t('Include desirable objects in your profile'),
- '$chg_photo' => t('Change profile photo'),
- '$cr_new' => t('Create New Profile'),
- '$cr_new_link' => 'profiles/new?t=' . get_form_security_token("profile_new")
- ));
-
-
$tpl = get_markup_template('profile_entry.tpl');
-
foreach($r as $rr) {
- $o .= replace_macros($tpl, array(
+ $profiles .= replace_macros($tpl, array(
'$photo' => $rr['thumb'],
'$id' => $rr['id'],
'$alt' => t('Profile Image'),
@@ -782,6 +770,17 @@ function profiles_content(&$a) {
: '<a href="' . $a->get_baseurl(true) . '/profperm/' . $rr['id'] . '" />' . t('Edit visibility') . '</a>')
));
}
+
+ $tpl_header = get_markup_template('profile_listing_header.tpl');
+ $o .= replace_macros($tpl_header,array(
+ '$header' => t('Edit Profiles'),
+ '$cr_new' => t('Create New'),
+ '$cr_new_link' => 'profiles/new?t=' . get_form_security_token("profile_new"),
+ '$profiles' => $profiles
+ ));
+
+
+
}
return $o;