Skip to content

Instantly share code, notes, and snippets.

@hissy
Created October 17, 2016 06:19
Show Gist options
  • Save hissy/5550d3dece58d04d7839693181f5dbfc to your computer and use it in GitHub Desktop.
Save hissy/5550d3dece58d04d7839693181f5dbfc to your computer and use it in GitHub Desktop.
<?
$av = Loader::helper('concrete/avatar');
$u = new User();
foreach($users as $user) { ?>
<tr>
<td class="ccm-members-directory-avatar"><a href="<?=$user->getUserPublicProfileURL()?>"><?=$user->getUserAvatar()->output()?></a></td>
<td class="ccm-members-directory-name"><a href="<?=$user->getUserPublicProfileURL()?>"><?=ucfirst($user->getUserName())?></a></td>
<td>
<?php
$groups = $user->getUserObject()->getUserGroups();
foreach ($groups as $gID) {
$group = \Group::getByID($gID);
echo $group->getGroupDisplayName() . '<br>';
}
?>
</td>
<?php
foreach($attribs as $ak) { ?>
<td>
<?=$user->getAttribute($ak, 'displaySanitized', 'display'); ?>
</td>
<? } ?>
</tr>
<? } ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment