Added hAtom for profile and group lists

This commit is contained in:
Sarven Capadisli 2009-11-13 12:13:38 +00:00
parent 21603f0225
commit 12d3c44480
2 changed files with 7 additions and 7 deletions

View File

@ -85,18 +85,18 @@ class GroupList extends Widget
function showGroup() function showGroup()
{ {
$this->out->elementStart('li', array('class' => 'profile', $this->out->elementStart('li', array('class' => 'profile hentry',
'id' => 'group-' . $this->group->id)); 'id' => 'group-' . $this->group->id));
$user = common_current_user(); $user = common_current_user();
$this->out->elementStart('div', 'entity_profile vcard'); $this->out->elementStart('div', 'entity_profile vcard entry-content');
$logo = ($this->group->stream_logo) ? $logo = ($this->group->stream_logo) ?
$this->group->stream_logo : User_group::defaultLogo(AVATAR_STREAM_SIZE); $this->group->stream_logo : User_group::defaultLogo(AVATAR_STREAM_SIZE);
$this->out->elementStart('a', array('href' => $this->group->homeUrl(), $this->out->elementStart('a', array('href' => $this->group->homeUrl(),
'class' => 'url', 'class' => 'url entry-title',
'rel' => 'contact group')); 'rel' => 'contact group'));
$this->out->element('img', array('src' => $logo, $this->out->element('img', array('src' => $logo,
'class' => 'photo avatar', 'class' => 'photo avatar',

View File

@ -76,7 +76,7 @@ class ProfileList extends Widget
function startList() function startList()
{ {
$this->out->elementStart('ul', 'profiles'); $this->out->elementStart('ul', 'profiles xoxo');
} }
function endList() function endList()
@ -140,7 +140,7 @@ class ProfileListItem extends Widget
function startItem() function startItem()
{ {
$this->out->elementStart('li', array('class' => 'profile', $this->out->elementStart('li', array('class' => 'profile hentry',
'id' => 'profile-' . $this->profile->id)); 'id' => 'profile-' . $this->profile->id));
} }
@ -175,14 +175,14 @@ class ProfileListItem extends Widget
function startProfile() function startProfile()
{ {
$this->out->elementStart('div', 'entity_profile vcard'); $this->out->elementStart('div', 'entity_profile vcard entry-content');
} }
function showAvatar() function showAvatar()
{ {
$avatar = $this->profile->getAvatar(AVATAR_STREAM_SIZE); $avatar = $this->profile->getAvatar(AVATAR_STREAM_SIZE);
$this->out->elementStart('a', array('href' => $this->profile->profileurl, $this->out->elementStart('a', array('href' => $this->profile->profileurl,
'class' => 'url', 'class' => 'url entry-title',
'rel' => 'contact')); 'rel' => 'contact'));
$this->out->element('img', array('src' => ($avatar) ? $avatar->displayUrl() : Avatar::defaultImage(AVATAR_STREAM_SIZE), $this->out->element('img', array('src' => ($avatar) ? $avatar->displayUrl() : Avatar::defaultImage(AVATAR_STREAM_SIZE),
'class' => 'photo avatar', 'class' => 'photo avatar',