<?php
$basepath = 'profile';
-if ($Args) $basepath .= '/.tags' . $Args;
+if (isset($Page->place[0])) {
+ $basepath .= '/.tags/' . $Page->place[0];
+}
$users = glob("$basepath/*/");
if (!$users) return;
$users[$col] = new User($userdir);
}
-if (isset($Place['order'])) {
- $ordercol = $Place['order'];
+if (isset($Page->place['order'])) {
+ $ordercol = $Page->place['order'];
$order = array_map(function ($row) use ($ordercol) {
return $row->$ordercol;
}, $users);
}
}
-if (isset($Place['n'])) {
- array_splice($users, $Place['n']); # limit number of results
+if (isset($Page->place['n'])) {
+ array_splice($users, $Page->place['n']); # limit number of results
}
print '<ul';
-if (@$Place['view'] == 'avatar') {
+if (@$Page->place['view'] == 'avatar') {
print ' class="gallery cat"';
}
elseif (count($users) > 5) {
print ">\n";
foreach ($users as $user) {
- $name = $user->name ?: $user->login;
+ $name = $user->html;
if ($GLOBALS['User'] and $GLOBALS['User']->admin('user')) {
$link = '/login/edit/'.$user->login;
$name = sprintf('<a href="%s">%s</a>', $link, $name);
}
- switch (@$Place['view']) {
+ switch (@$Page->place['view']) {
case 'avatar':
if (!file_exists("{$user->dir}/avatar.jpg")) {
break;